/**
 * BoringWeb — design polish (2026-10-13)
 * Încărcat ultimul: homepage (în bundle-ul din site-head-assets), restul paginilor site și blog (link).
 * Fontul rămâne Jost.
 */

/* 1. Text aliniat normal, fără despărțire automată în silabe.
      `p { text-align: justify; hyphens: auto }` rupea cuvintele în română („busi-ness”, „so-luții”)
      și lăsa goluri mari între cuvinte pe mobil. */
p {
    text-align: inherit;
    hyphens: manual;
    -webkit-hyphens: manual;
}

.homepage-faq-answer p,
.homepage-extended-section p,
.homepage-cta-final-section.cta-final--2026 .homepage-cta-final-text-small,
.homepage-cta-final-section.cta-final--2026 .homepage-cta-final-text-last {
    text-align: left;
    hyphens: manual;
    -webkit-hyphens: manual;
}

/* 2. Header: butonul OFERTĂ (desktop + mobil) în paleta verde (era singurul element portocaliu), fără puls și glow */
.navbar .nav-offer-btn,
.navbar .mobile-offer-btn {
    color: #9ae85a;
    background: rgba(130, 213, 66, 0.1);
    border-color: rgba(130, 213, 66, 0.55);
    box-shadow: none;
}

.navbar .nav-offer-btn:hover,
.navbar .nav-offer-btn:focus-visible,
.navbar .mobile-offer-btn:active,
.navbar .mobile-offer-btn:focus-visible {
    color: #0a0a0f;
    background: #82d542;
    border-color: #82d542;
    box-shadow: none;
}

.navbar .nav-offer-btn svg,
.navbar .nav-offer-btn:hover svg,
.navbar .mobile-offer-btn svg {
    stroke: currentColor;
}

.navbar .nav-offer-pulse {
    display: none;
}

/* 3. Badge-uri statice: pulsul anima box-shadow (PSI: animație necompozitată) sau opacitatea
      (badge-ul „Contact” cobora la 35% → contrast insuficient) */
.animated-badge {
    animation: none !important;
    opacity: 1 !important;
    box-shadow: none !important;
}

/* 4. Butoane fără glow colorat (regulile vechi pentru mobil au !important) */
.hs26-actions .btn-primary,
.hs26-actions .btn-secondary,
.mobile-sticky-buttons .mobile-sticky-btn {
    box-shadow: none !important;
}

/* 5. „Despre noi”: grila nu avea coloane pe mobil și se lățea după inelul SVG animat
      (419px pe un ecran de 412px → textul era tăiat în dreapta) */
.ha26__grid {
    grid-template-columns: minmax(0, 1fr);
}

@media (min-width: 960px) {
    .ha26__grid {
        grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
    }
}

/* 6. Text extins: puncte simple în loc de câte un card pentru fiecare rând */
.haud-extended .homepage-extended-section ul {
    gap: 0.45rem 1.35rem;
}

.haud-extended .homepage-extended-section li {
    padding: 0.2rem 0 0.2rem 1.2rem;
    border: 0;
    border-radius: 0;
    background: none;
}

.haud-extended .homepage-extended-section li::before {
    left: 0.15rem;
    top: 0.78em;
    box-shadow: none;
}

/* Restrângere „Citește mai mult” (creată de home-extended-2026.js doar pe mobil) */
.haud-more {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    min-height: 44px;
    margin-top: 0.5rem;
    padding: 0.5rem 0;
    border: 0;
    background: none;
    color: #8fbf5a;
    font: inherit;
    font-size: 0.95rem;
    font-weight: 700;
    cursor: pointer;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.haud-more::after {
    content: '';
    width: 0.45rem;
    height: 0.45rem;
    border-right: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    transform: translateY(-2px) rotate(45deg);
}

.haud-more[aria-expanded='true']::after {
    transform: translateY(2px) rotate(-135deg);
}

.haud-more:focus-visible {
    outline: 2px solid #82d542;
    outline-offset: 2px;
}

@media (max-width: 968px) {
    .haud-collapse.is-collapsed {
        max-height: 16rem;
        overflow: hidden;
        -webkit-mask-image: linear-gradient(to bottom, #000 55%, transparent);
        mask-image: linear-gradient(to bottom, #000 55%, transparent);
    }
}

@media (min-width: 969px) {
    .haud-more {
        display: none;
    }
}

/* 7. Mobil: fără animații de apariție — conținutul stătea invizibil 1–3 s la scroll rapid */
@media (max-width: 968px) {
    .pr26__head,
    .pr26__step,
    .pr26__cta,
    .bf26__head,
    .bf26__tile,
    .bf26__cta,
    .ha26__visual,
    .ha26__head,
    .ha26__values,
    .ha26__stats,
    .ha26__cta,
    .haud-extended .haud-reveal,
    .haud-extended .homepage-extended-section li {
        opacity: 1 !important;
        transform: none !important;
        animation: none !important;
    }
}

/* 8. Homepage mobil: bara fixă WhatsApp/Sună apare după ce treci de butoanele din hero
      (altfel primul ecran avea aceleași două butoane de două ori). home-hero-2026.js pune .bw-sticky-show. */
@media (max-width: 968px) {
    body:has(.hs26-actions) .mobile-sticky-buttons {
        transform: translateY(110%);
        transition: transform 0.25s ease;
    }

    body.bw-sticky-show:has(.hs26-actions) .mobile-sticky-buttons {
        transform: translateY(0);
    }
}

@media (max-width: 968px) and (prefers-reduced-motion: reduce) {
    body:has(.hs26-actions) .mobile-sticky-buttons {
        transition: none;
    }
}

/* 9. Formular ofertă: bifele de consimțământ aveau 13,6px (Lighthouse target-size pe desktop) */
.of26__consent label {
    align-items: center;
    gap: 0.55rem;
}

.of26__consent input[type="checkbox"] {
    margin-top: 0;
    width: 1.25rem;
    height: 1.25rem;
}

/* 10. Butonul alb „Scrie-ne pe WhatsApp” din CTA-urile paginilor de servicii/contact (stil inline în 14 template-uri):
       text #82d542 pe alb avea contrast 1,8:1 → verde închis 6,5:1 */
a[style*="background: white; color: #82d542"] {
    color: #2f6b0e !important;
}

/* 11. Fără despărțire automată în silabe nicăieri (titluri de tip „Prezenta-re”, „cli-enții”) */
h1, h2, h3, h4, p, li {
    hyphens: manual !important;
    -webkit-hyphens: manual !important;
}

/* 12. Footer: identificarea firmei (CUI, Reg. Com., adresă) — text mic, contrast > 4.5:1 */
.footer-company {
    margin: 0.35rem 0 0;
    font-size: 0.8rem;
    line-height: 1.6;
    color: rgba(245, 241, 230, 0.72);
}

.footer-company a {
    color: inherit;
    text-decoration: underline;
    text-underline-offset: 2px;
}

/* 13. Contrast WCAG AA (Lighthouse color-contrast / link-in-text-block) pe paginile de servicii, portofoliu și legale.
       `body` în față = specificitate mai mare decât regulile inline din pagini, chiar dacă acestea vin mai târziu. */
body .cid-page-root .breadcrumb-nav a,
body .breadcrumb-nav .breadcrumb-list li > a {
    color: rgba(245, 241, 230, 0.8) !important;
    opacity: 1 !important;
}

body .hero-badge-one-page,
body .btn-cta-whatsapp-one-page,
body .btn-need-more-one-page,
body .overlay-label-custom {
    color: #0a0a0f !important;
}

body .portfolio-case__sector {
    color: rgba(245, 241, 230, 0.72) !important;
    opacity: 1 !important;
}

body .legal-page-content a,
body .legal-page-content .highlight-box a {
    text-decoration: underline !important;
    text-underline-offset: 2px;
}

/* ===== 2026-10-13 · Homepage SEO: componente noi (hero, servicii pe industrie, tabel de prețuri, ghid, linkuri blog) ===== */

/* Hero: link discret spre oferta de 1.986 RON, sub butoane */
.hs26-offer-link {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    margin-top: 0.9rem;
    font-size: 0.95rem;
    font-weight: 600;
    color: #9ae85a;
    text-decoration: underline;
    text-underline-offset: 3px;
}
.hs26-offer-link:hover,
.hs26-offer-link:focus-visible { color: #b8f07f; }

/* Servicii: pachete pe industrie */
.svc-niche {
    margin-top: clamp(2rem, 4vw, 2.75rem);
    padding-top: clamp(1.5rem, 3vw, 2rem);
    border-top: 1px solid rgba(245, 241, 230, 0.1);
}
.svc-niche__title {
    margin: 0 0 1rem;
    font-size: 0.72rem !important;
    font-weight: 600;
    letter-spacing: 0.24em;
    text-transform: uppercase;
    color: #82d542;
}
.svc-niche__grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
}
@media (min-width: 768px) {
    .svc-niche__grid { grid-template-columns: repeat(2, 1fr); }
}
.svc-niche__card {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    padding: 1.25rem 1.35rem;
    border: 1px solid rgba(130, 213, 66, 0.28);
    border-radius: 14px;
    background: rgba(130, 213, 66, 0.05);
    color: rgba(245, 241, 230, 0.86);
    text-decoration: none;
    transition: border-color 0.2s ease, background 0.2s ease;
}
.svc-niche__card:hover,
.svc-niche__card:focus-visible {
    border-color: rgba(130, 213, 66, 0.6);
    background: rgba(130, 213, 66, 0.09);
}
.svc-niche__name {
    font-size: 1.08rem;
    font-weight: 700;
    color: #f5f1e6;
}
.svc-niche__price {
    font-size: 1.35rem;
    font-weight: 800;
    color: #9ae85a;
    letter-spacing: -0.01em;
}
.svc-niche__price small {
    font-size: 0.8rem;
    font-weight: 500;
    color: rgba(245, 241, 230, 0.7);
}
.svc-niche__desc {
    font-size: 0.92rem;
    line-height: 1.5;
}
.svc-niche__go {
    margin-top: 0.25rem;
    font-size: 0.9rem;
    font-weight: 600;
    color: #9ae85a;
}

/* Tabel de prețuri (secțiunea „Cât costă un site web”) — derulare orizontală doar în container, pe mobil */
.price-table-wrap {
    margin: 1.25rem 0 0.75rem;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    border: 1px solid rgba(245, 241, 230, 0.12);
    border-radius: 14px;
}
.price-table-wrap:focus-visible { outline: 2px solid #82d542; outline-offset: 2px; }
.price-table {
    width: 100%;
    min-width: 560px;
    border-collapse: collapse;
    font-size: 0.95rem;
    line-height: 1.45;
    color: rgba(245, 241, 230, 0.86);
}
.price-table th,
.price-table td {
    padding: 0.85rem 1rem;
    text-align: left;
    vertical-align: top;
    border-bottom: 1px solid rgba(245, 241, 230, 0.08);
}
.price-table thead th {
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: #82d542;
    background: rgba(130, 213, 66, 0.06);
}
.price-table tbody th { font-weight: 700; color: #f5f1e6; }
.price-table tbody th a { color: inherit; text-decoration: underline; text-decoration-color: rgba(130, 213, 66, 0.6); text-underline-offset: 3px; }
.price-table tbody td.is-price { font-weight: 700; color: #9ae85a; white-space: nowrap; }
.price-table tbody tr:last-child th,
.price-table tbody tr:last-child td { border-bottom: 0; }
.homepage-extended-section .price-table-note {
    font-size: 0.9rem;
    color: rgba(245, 241, 230, 0.7);
}

/* „Cum alegi firma”: întrebare + răspuns, în două coloane pe desktop */
.choose-list {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.85rem;
    margin: 1.25rem 0;
}
@media (min-width: 768px) {
    .choose-list { grid-template-columns: repeat(2, 1fr); }
}
.choose-list__item {
    padding: 1rem 1.15rem;
    border: 1px solid rgba(245, 241, 230, 0.1);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.02);
}
.choose-list dt {
    margin: 0 0 0.3rem;
    font-weight: 700;
    color: #f5f1e6;
}
.choose-list dd {
    margin: 0;
    font-size: 0.95rem;
    line-height: 1.55;
    color: rgba(245, 241, 230, 0.8);
}

/* Linkuri spre ghidurile din blog */
.guide-links {
    display: grid;
    gap: 0.6rem;
    margin: 1rem 0;
    padding: 0;
    list-style: none;
}
.haud-extended .homepage-extended-section .guide-links li { padding-left: 0; }
.haud-extended .homepage-extended-section .guide-links li::before { content: none; }
.guide-links a {
    display: block;
    padding: 0.85rem 1rem;
    border: 1px solid rgba(245, 241, 230, 0.1);
    border-radius: 12px;
    color: #f5f1e6;
    font-weight: 600;
    text-decoration: none;
}
.guide-links a::after { content: ' →'; color: #82d542; }
.guide-links a:hover,
.guide-links a:focus-visible { border-color: rgba(130, 213, 66, 0.5); }

/* Hero: titlul nou are 2–3 rânduri; min-height: 4.2em (din homepage-desktop.min.css, pentru titlul vechi) lăsa un gol sub H1 */
.hero.hero--split26 .hs26-title { min-height: 0; }

/* Tabelul de prețuri pe telefon: fiecare rând devine un card (fără derulare laterală) */
@media (max-width: 640px) {
    .price-table-wrap { overflow: visible; }
    .price-table { min-width: 0; }
    .price-table thead {
        position: absolute;
        width: 1px;
        height: 1px;
        overflow: hidden;
        clip: rect(0 0 0 0);
        white-space: nowrap;
    }
    .price-table tr {
        display: block;
        padding: 0.9rem 1rem;
        border-bottom: 1px solid rgba(245, 241, 230, 0.08);
    }
    .price-table tbody tr:last-child { border-bottom: 0; }
    .price-table th,
    .price-table td {
        display: block;
        padding: 0.12rem 0;
        border: 0;
    }
    .price-table tbody th { margin-bottom: 0.3rem; font-size: 1.02rem; }
    .price-table tbody td::before {
        content: attr(data-label) ': ';
        font-weight: 500;
        color: rgba(245, 241, 230, 0.6);
    }
    .price-table tbody td.is-price { white-space: normal; }
}

/* ===== 2026-10-13 · /dezvoltare-web + /en/web-development: blocuri noi (pași, inclus/opțional, tehnologii, proiecte reale) ===== */
.bw-page.wd-page--2026 .wd-services--2026 .svc-niche { margin-top: clamp(2rem, 4vw, 2.75rem); }

.bw-page.wd-page--2026 .extended-content .guide-links a,
.bw-page.wd-page--2026 .extended-content .price-table tbody th a { color: #f5f1e6; }
.bw-page.wd-page--2026 .extended-content .guide-links li { padding-left: 0; }
.bw-page.wd-page--2026 .extended-content .guide-links li::before { content: none; }

/* Pași: număr + titlu + text, fără bordurile de FAQ */
.wd-steps {
    display: grid;
    gap: 0.85rem;
    margin: 1.25rem 0 0;
    padding: 0;
    list-style: none;
    counter-reset: none;
}
.wd-steps__item {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 1rem;
    align-items: start;
    padding: 1.1rem 1.2rem;
    border: 1px solid rgba(245, 241, 230, 0.1);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.025);
}
.wd-steps__item::before { content: none !important; }
.wd-steps__num {
    font-size: 1.05rem;
    font-weight: 800;
    color: #82d542;
    line-height: 1.6;
}
.bw-page.wd-page--2026 .extended-content .wd-steps h3,
.bw-page.wd-page--2026 .extended-content .wd-two-col h3,
.bw-page.wd-page--2026 .extended-content .wd-project h3 {
    margin: 0 0 0.35rem !important;
    padding-top: 0 !important;
    border-top: 0 !important;
    font-size: 1.12rem !important;
}
.bw-page.wd-page--2026 .extended-content .wd-steps p { margin: 0 !important; }

/* Inclus / opțional */
.wd-two-col {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
    margin-top: 1.25rem;
}
@media (min-width: 768px) {
    .wd-two-col { grid-template-columns: repeat(2, 1fr); }
}
.wd-two-col ul { margin: 0.5rem 0 0; padding-left: 1.1rem; }
.bw-page.wd-page--2026 .extended-content .wd-two-col li { margin: 0.25rem 0; }

/* Proiecte reale */
.wd-projects {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
    margin: 1.25rem 0 1rem;
}
@media (min-width: 768px) {
    .wd-projects { grid-template-columns: repeat(2, 1fr); }
}
.wd-project {
    overflow: hidden;
    border: 1px solid rgba(245, 241, 230, 0.1);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.025);
}
.wd-project img {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 10;
    object-fit: cover;
    object-position: top;
    border-bottom: 1px solid rgba(245, 241, 230, 0.08);
}
.wd-project__body { padding: 1rem 1.15rem 1.15rem; }
.bw-page.wd-page--2026 .extended-content .wd-project__sector {
    margin: 0 0 0.25rem !important;
    font-size: 0.72rem !important;
    font-weight: 600;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: #82d542 !important;
}
.bw-page.wd-page--2026 .extended-content .wd-project p { margin: 0 0 0.6rem; font-size: 0.95rem !important; }
.wd-project__link { font-weight: 600; }
/* Linkurile din text se disting și prin subliniere, nu doar prin culoare (accesibilitate) */
.bw-page.wd-page--2026 .extended-content p a,
.bw-page.wd-page--2026 .wd-final-cta p a { text-decoration: underline; text-underline-offset: 0.2em; }

/* ===== 2026-10-14 · PageSpeed 100% + corecturi vizuale ===== */

/* Apelul final de pe homepage: `.cta-final--2026 a { color: accent !important }` (home-polish) colora și butonul
   verde → text verde pe fundal verde. Butonul își păstrează textul închis. */
.homepage-cta-final-section.cta-final--2026 a.haud-cta__primary,
.homepage-cta-final-section.cta-final--2026 a.haud-cta__primary:hover,
.haud-extended a.haud-cta__primary,
.haud-extended a.haud-cta__primary:hover {
    color: #0a0a0f !important;
    text-decoration: none !important;
}

/* Butonul „Vreau oferta pe WhatsApp”: pulsul anima box-shadow (animație ne-compozitată, semnalată de Lighthouse).
   Același efect, cu un strat ::after animat doar prin opacity (rulează pe GPU). */
.of26__btn--primary {
    animation: none !important;
    position: relative;
    isolation: isolate;
}
.of26__btn--primary::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    box-shadow: 0 0 0 1px rgba(107, 184, 50, 0.35), 0 18px 48px rgba(107, 184, 50, 0.5);
    opacity: 0;
    pointer-events: none;
    z-index: -1;
    animation: of26-cta-glow 2.8s ease-in-out infinite;
    will-change: opacity;
}
@keyframes of26-cta-glow {
    0%, 100% { opacity: 0; }
    50% { opacity: 1; }
}
.of26__btn--primary:hover::after { animation: none; opacity: 0; }
@media (prefers-reduced-motion: reduce) {
    .of26__btn--primary::after { animation: none; }
}

/* Hero: <picture> nu creează cutie proprie — imaginea se dimensionează față de .hs26-card__media, ca înainte */
.hs26-card__media picture { display: contents; }

/* Hero: rotația automată a cardurilor animă doar transform + opacity (compozitate pe GPU).
   Conturul/umbra cardului activ se schimbă instant — tranziția lor era „non-composited animation” în Lighthouse. */
.hs26-card {
    transition: transform 0.55s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.45s ease;
}
.hs26-dot::before { transition: none; }
@media (prefers-reduced-motion: reduce) {
    .hs26-card { transition: none; }
}
