/*
 * Centrul Medical Dr. Duică — sistem vizual
 * Paleta pornește de la verdele real din logo (rombul suprapus + wordmark),
 * accentuat cu un verde-smarald mai viu pentru interacțiune.
 * Motivul rombului din logo revine ca element grafic în tot site-ul.
 */

@import url('https://fonts.googleapis.com/css2?family=Bricolage+Grotesque:opsz,wght@12..96,500;12..96,600;12..96,700;12..96,800&family=Manrope:wght@400;500;600;700;800&family=IBM+Plex+Mono:wght@500;600&display=swap');

:root {
    /* Culori de bază */
    --pine: #14523D;          /* verde-pin adânc — fundaluri închise, gradient */
    --pine-black: #0B2F22;    /* capătul cel mai închis al gradientului */
    --emerald: #1E8F6B;       /* verde-smarald — culoarea de interacțiune principală */
    --emerald-dark: #146B52;  /* hover pe elemente emerald */
    --mint: #8FE0C6;          /* accent deschis, preluat din romb */
    --ink: #16221C;           /* aproape-negru cu subton verde — titluri, text puternic */
    --muted-1: #55665F;
    --muted-2: #64786F;
    --muted-3: #7C9088;
    --muted-4: #4A5A54;
    --paper: #FFFFFF;
    --mist: #F3F7F5;          /* fundal secțiuni deschise */
    --mist-2: #EAF1EC;
    --hairline: #E8EFEA;
    --border-1: #E1E9E3;
    --border-2: #D6E0D9;
    --border-3: #C7D2CA;
    --border-4: #B3C0B6;
    --border-5: #9FAEA2;

    /* Bootstrap overrides */
    --bs-primary: var(--emerald);
    --bs-primary-rgb: 30, 143, 107;
    --bs-secondary: var(--muted-1);
    --bs-light: var(--mist);
    --bs-dark: var(--ink);
    --bs-font-sans-serif: 'Manrope', sans-serif;

    --font-display: 'Bricolage Grotesque', 'Manrope', sans-serif;
    --font-body: 'Manrope', sans-serif;
    --font-mono: 'IBM Plex Mono', ui-monospace, monospace;
}

/* ====== Bază ====== */
body {
    font-family: var(--font-body);
    background-color: var(--mist);
    color: var(--ink);
    animation: fadeIn 0.5s ease-in-out;
}

h1, h2, h3, h4, h5, h6,
.display-4, .display-5, .display-6 {
    font-family: var(--font-display);
    letter-spacing: -0.01em;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* ====== Butoane ====== */
.btn-primary {
    background-color: var(--emerald);
    border-color: var(--emerald);
}
.btn-primary:hover,
.btn-primary:focus {
    background-color: var(--emerald-dark);
    border-color: var(--emerald-dark);
}
.btn-outline-primary {
    color: var(--emerald);
    border-color: var(--emerald);
}
.btn-outline-primary:hover {
    background-color: var(--emerald);
    color: var(--paper);
}
.text-primary { color: var(--emerald) !important; }
.bg-primary { background-color: var(--emerald) !important; }

/* Buton CTA folosit pe mai multe pagini (despre, servicii, medici, articole, index) */
.btn-cta {
    background: var(--emerald);
    color: var(--paper);
    padding: 0.85rem 2.5rem;
    border-radius: 50px;
    font-weight: 700;
    font-family: var(--font-display);
    border: none;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
}
.btn-cta:hover {
    background: var(--emerald-dark);
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(30, 143, 107, 0.25);
    color: var(--paper);
}

/* ====== Romb — semnătura vizuală a brandului ====== */
/* Reface motivul rombului suprapus din siglă: un mic pătrat rotit la 45°,
   folosit ca marcaj discret în locul iconițelor generice tip "badge" pill. */
.diamond-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    color: var(--emerald);
    font-family: var(--font-mono);
    font-size: 0.72rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.18em;
    margin-bottom: 1.1rem;
}
.diamond-eyebrow::before {
    content: '';
    width: 8px;
    height: 8px;
    border: 1.5px solid var(--emerald);
    transform: rotate(45deg);
    flex-shrink: 0;
}
/* Eticheta text a badge-urilor existente devine eyebrow; iconița Bootstrap originală se ascunde */
.page-badge, .badge-custom, .section-badge, .page-intro-badge {
    background: none;
    border-radius: 0;
}
.page-badge i, .badge-custom i, .section-badge i, .page-intro-badge i {
    display: none;
}

/* ====== Antet: bară utilitară + meniu principal ====== */

/* Link pentru navigare cu tastatura — vizibil doar când primește focus */
.skip-link {
    position: absolute;
    left: -9999px;
    top: 0;
    z-index: 1100;
    background: var(--pine-black);
    color: #fff;
    padding: 0.7rem 1.2rem;
    border-radius: 0 0 10px 0;
    font-weight: 600;
    text-decoration: none;
}
.skip-link:focus { left: 0; color: #fff; }

.site-head {
    position: sticky;
    top: 0;
    z-index: 1030;
    background: var(--paper);
}

/* --- Bara utilitară --- */
.top-bar {
    background: linear-gradient(100deg, var(--pine-black) 0%, var(--pine) 100%);
    color: rgba(255, 255, 255, 0.82);
    font-size: 0.8rem;
    overflow: hidden;
    max-height: 46px;
    transition: max-height 0.3s ease, opacity 0.25s ease;
}
.top-bar .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    height: 46px;
}
.tb-left, .tb-right { display: flex; align-items: center; gap: 1.5rem; min-width: 0; }
.top-bar span, .top-bar a {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.top-bar i { color: var(--mint); font-size: 0.78rem; flex-shrink: 0; }
.top-bar a { color: rgba(255,255,255,0.88); text-decoration: none; font-weight: 600; transition: color 0.25s ease; }
.top-bar a:hover { color: var(--mint); }

/* La derulare, bara utilitară se retrage și rămâne doar meniul */
.site-head.is-scrolled .top-bar { max-height: 0; opacity: 0; }

/* --- Meniul principal --- */
.main-nav {
    background: var(--paper);
    border-bottom: 1px solid var(--hairline);
    transition: box-shadow 0.3s ease, border-color 0.3s ease;
}
.site-head.is-scrolled .main-nav {
    box-shadow: 0 6px 28px rgba(11, 47, 34, 0.08);
    border-color: transparent;
}
.main-nav .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    height: 78px;
    transition: height 0.3s ease;
}
.site-head.is-scrolled .main-nav .container { height: 66px; }

.nav-brand { display: flex; align-items: center; flex-shrink: 0; text-decoration: none; }
.nav-brand img {
    height: 44px;
    width: auto;
    display: block;
    transition: height 0.3s ease;
}
.site-head.is-scrolled .nav-brand img { height: 38px; }
.nav-brand-text {
    font-family: var(--font-display);
    font-weight: 800;
    font-size: 1.05rem;
    color: var(--pine);
    letter-spacing: -0.01em;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    list-style: none;
    /* Centrat între siglă și butonul de acțiune, indiferent de lățimea lor */
    margin: 0 auto;
    padding: 0;
}
.nav-links a {
    position: relative;
    display: block;
    padding: 0.55rem 0.9rem;
    color: var(--muted-1);
    font-weight: 600;
    font-size: 0.93rem;
    letter-spacing: 0.005em;
    text-decoration: none;
    border-radius: 9px;
    transition: color 0.25s ease, background-color 0.25s ease;
}
.nav-links a:hover { color: var(--ink); background: var(--mist); }
.nav-links a.active { color: var(--emerald); }
/* Rombul din siglă marchează pagina curentă, în locul unei simple sublinieri */
.nav-links a.active::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: -2px;
    width: 6px;
    height: 6px;
    margin-left: -3px;
    background: var(--emerald);
    transform: rotate(45deg);
}

.nav-actions { display: flex; align-items: center; gap: 0.75rem; flex-shrink: 0; }
.nav-cta {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    background: var(--emerald);
    color: var(--paper);
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 0.92rem;
    padding: 0.68rem 1.4rem;
    border-radius: 50px;
    text-decoration: none;
    white-space: nowrap;
    transition: background-color 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
}
.nav-cta:hover {
    background: var(--emerald-dark);
    color: var(--paper);
    transform: translateY(-1px);
    box-shadow: 0 8px 22px rgba(30, 143, 107, 0.28);
}

/* --- Buton meniu mobil --- */
.nav-burger {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 44px;
    height: 44px;
    padding: 0 10px;
    border: 1px solid var(--border-2);
    border-radius: 11px;
    background: var(--paper);
    cursor: pointer;
    transition: border-color 0.25s ease;
}
.nav-burger:hover { border-color: var(--emerald); }
.nav-burger span {
    display: block;
    height: 2px;
    width: 100%;
    background: var(--ink);
    border-radius: 2px;
}
.nav-burger span:nth-child(2) { width: 70%; }

/* --- Meniu mobil (offcanvas) --- */
.mobile-nav {
    width: min(340px, 88vw);
    background: linear-gradient(165deg, var(--pine) 0%, var(--pine-black) 100%);
    color: #fff;
}
.mobile-nav .offcanvas-header {
    border-bottom: 1px solid rgba(255,255,255,0.12);
    padding: 1.1rem 1.4rem;
}
.mobile-nav .mn-title {
    font-family: var(--font-mono);
    font-size: 0.68rem;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: var(--mint);
}
.mobile-nav .offcanvas-body { padding: 1rem 1.4rem 1.6rem; display: flex; flex-direction: column; }
.mn-links { list-style: none; margin: 0 0 auto; padding: 0; }
.mn-links a {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    padding: 0.9rem 0;
    color: rgba(255,255,255,0.88);
    font-weight: 600;
    font-size: 1.02rem;
    text-decoration: none;
    border-bottom: 1px solid rgba(255,255,255,0.09);
    transition: color 0.25s ease, padding-left 0.25s ease;
}
.mn-links a:hover, .mn-links a.active { color: var(--mint); padding-left: 0.35rem; }
.mn-links a > i:first-child { font-size: 1rem; opacity: 0.65; width: 1.2rem; }
.mn-links a.active > i:first-child { opacity: 1; }
.mn-arrow { margin-left: auto; font-size: 0.7rem; opacity: 0.4; }

.mn-foot { margin-top: 2rem; display: flex; flex-direction: column; gap: 0.75rem; }
.mn-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.55rem;
    background: var(--mint);
    color: var(--pine-black);
    font-family: var(--font-display);
    font-weight: 700;
    padding: 0.85rem 1.4rem;
    border-radius: 50px;
    text-decoration: none;
}
.mn-cta:hover { background: #A8EBD6; color: var(--pine-black); }
.mn-phone {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    color: rgba(255,255,255,0.86);
    font-weight: 600;
    font-size: 0.95rem;
    text-decoration: none;
}
.mn-phone i { color: var(--mint); }
.mn-phone:hover { color: var(--mint); }
.mn-hours {
    display: flex;
    gap: 0.6rem;
    color: rgba(255,255,255,0.6);
    font-size: 0.85rem;
    line-height: 1.6;
    padding-top: 0.75rem;
    border-top: 1px solid rgba(255,255,255,0.12);
}
.mn-hours i { color: var(--mint); margin-top: 0.15rem; }

@media (max-width: 1199.98px) {
    .nav-links { gap: 0.1rem; }
    .nav-links a { padding: 0.55rem 0.65rem; font-size: 0.88rem; }
}
@media (max-width: 991.98px) {
    .nav-links { display: none; }
    .nav-burger { display: flex; }
    .main-nav .container { height: 68px; }
    .site-head.is-scrolled .main-nav .container { height: 62px; }
    .nav-brand img { height: 38px; }
    .site-head.is-scrolled .nav-brand img { height: 34px; }
    .tb-hide-md { display: none !important; }
}
@media (max-width: 575.98px) {
    .top-bar { font-size: 0.72rem; }
    .top-bar .container { height: 40px; gap: 0.6rem; }
    .tb-left, .tb-right { gap: 0.85rem; }
    .nav-cta span { display: none; }
    .nav-cta { padding: 0.68rem 0.95rem; }
    .nav-cta i { font-size: 1.05rem; }
}
@media (prefers-reduced-motion: reduce) {
    .top-bar, .main-nav, .main-nav .container, .nav-brand img { transition: none; }
}

/* ====== Antetele Paginilor (Hero interior) ====== */
.page-hero {
    height: 42vh;
    min-height: 280px;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    color: #fff;
}
.page-hero::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background:
        linear-gradient(160deg, rgba(11, 47, 34, 0.88) 0%, rgba(20, 82, 61, 0.72) 55%, rgba(20, 82, 61, 0.55) 100%);
    z-index: 1;
}
.page-hero > .container {
    position: relative;
    z-index: 2;
}
.page-hero .page-hero-mark {
    width: 15px;
    height: 15px;
    margin: 0 auto 1.1rem;
    border: 2px solid var(--mint);
    transform: rotate(45deg);
}
.page-hero h1 {
    font-weight: 700;
    text-shadow: 0 2px 12px rgba(0,0,0,0.25);
}
.page-hero p.lead {
    color: rgba(255,255,255,0.88);
    text-shadow: 0 1px 8px rgba(0,0,0,0.2);
}

/* ====== Carusel Homepage ======
   Materialele trimise de clinică sunt în mare parte afișe cu text deja imprimat,
   în formate diferite (2:1, 4:3, 2:3, 1:1). Un hero clasic „full-bleed" le-ar
   decupa textul, iar un caption suprapus s-ar ciocni cu el. De aceea slide-ul
   este împărțit: mesajul site-ului în stânga, afișul întreg (object-fit: contain)
   într-un card alb în dreapta. Înălțimea coloanei media este fixă, ca trecerea
   de la un format la altul să nu „sară". */
.hero-carousel {
    position: relative;
    background:
        radial-gradient(120% 90% at 15% 0%, rgba(30, 143, 107, 0.35) 0%, rgba(30, 143, 107, 0) 60%),
        linear-gradient(150deg, var(--pine-black) 0%, var(--pine) 55%, #0E3A2A 100%);
    overflow: hidden;
}
/* Motivul rombului din siglă, discret, ca textură de fundal */
.hero-carousel::before {
    content: '';
    position: absolute;
    inset: 0;
    background: url("data:image/svg+xml,%3Csvg width='44' height='44' viewBox='0 0 44 44' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' stroke='%23ffffff' stroke-opacity='0.06' stroke-width='1.1'%3E%3Crect x='14' y='14' width='16' height='16' transform='rotate(45 22 22)'/%3E%3C/g%3E%3C/svg%3E");
    pointer-events: none;
    z-index: 0;
}
.hero-carousel .carousel-inner { position: relative; z-index: 1; }
.hero-carousel .carousel-indicators,
.hero-carousel .carousel-control-prev,
.hero-carousel .carousel-control-next { z-index: 3; }

.hero-slide {
    display: flex;
    align-items: center;
    min-height: clamp(540px, 76vh, 780px);
    padding: 4rem 0 5.5rem;
}

/* --- Coloana de text --- */
.hero-copy { color: #fff; }
.hero-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    color: var(--mint);
    font-family: var(--font-mono);
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    margin-bottom: 1.25rem;
}
.hero-eyebrow::before {
    content: '';
    width: 8px;
    height: 8px;
    border: 1.5px solid var(--mint);
    transform: rotate(45deg);
    flex-shrink: 0;
}
.hero-copy h1,
.hero-copy .hero-title {
    font-family: var(--font-display);
    font-weight: 800;
    font-size: clamp(2rem, 3.4vw, 3.1rem);
    line-height: 1.08;
    letter-spacing: -0.02em;
    color: #fff;
    margin-bottom: 1.1rem;
}
.hero-copy p {
    color: rgba(255, 255, 255, 0.78);
    font-size: 1.05rem;
    line-height: 1.65;
    max-width: 46ch;
    margin-bottom: 2rem;
}
.hero-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.75rem 1.5rem;
}
.hero-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    background: var(--mint);
    color: var(--pine-black);
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 0.98rem;
    padding: 0.85rem 2rem;
    border-radius: 50px;
    text-decoration: none;
    transition: transform 0.3s ease, box-shadow 0.3s ease, background-color 0.3s ease;
}
.hero-btn:hover {
    background: #A8EBD6;
    color: var(--pine-black);
    transform: translateY(-2px);
    box-shadow: 0 12px 32px rgba(143, 224, 198, 0.28);
}
.hero-phone {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    color: rgba(255, 255, 255, 0.85);
    font-weight: 600;
    font-size: 0.98rem;
    text-decoration: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.25);
    padding-bottom: 2px;
    transition: color 0.3s ease, border-color 0.3s ease;
}
.hero-phone:hover { color: var(--mint); border-color: var(--mint); }

/* --- Coloana cu afișul --- */
.hero-media {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 524px;
    position: relative;
}
/* Romb decorativ în spatele cardului, ca ancoră vizuală când afișul e îngust */
.hero-media::after {
    content: '';
    position: absolute;
    width: 190px;
    height: 190px;
    right: -30px;
    bottom: -20px;
    border: 1.5px solid rgba(143, 224, 198, 0.22);
    transform: rotate(45deg);
    z-index: 0;
    pointer-events: none;
}
.hero-figure {
    position: relative;
    z-index: 1;
    margin: 0;
    background: #fff;
    border-radius: 20px;
    padding: 12px;
    box-shadow: 0 32px 70px rgba(0, 0, 0, 0.38);
    max-width: 100%;
}
.hero-figure img {
    display: block;
    width: auto;
    height: auto;
    max-width: 100%;
    max-height: 500px;
    border-radius: 11px;
}

/* --- Tranziție între slide-uri: fondu încrucișat --- */
/* Alunecarea implicită a Bootstrap aducea două slide-uri unul lângă altul.
   Cum afișele au înălțimi diferite, la fiecare schimbare apărea un salt scurt,
   perceput ca o clipire. Fondul încrucișat elimină complet mișcarea laterală. */
.hero-carousel.carousel-fade .carousel-item {
    opacity: 0;
    transform: none;
    transition: opacity 0.85s ease-in-out;
    /* Straturi de compoziție proprii — evită repictarea întregii secțiuni */
    will-change: opacity;
    backface-visibility: hidden;
}
.hero-carousel.carousel-fade .carousel-item.active,
.hero-carousel.carousel-fade .carousel-item-next.carousel-item-start,
.hero-carousel.carousel-fade .carousel-item-prev.carousel-item-end {
    opacity: 1;
    z-index: 1;
}
.hero-carousel.carousel-fade .active.carousel-item-start,
.hero-carousel.carousel-fade .active.carousel-item-end {
    opacity: 0;
    z-index: 0;
    transition: opacity 0.85s ease-in-out;
}

/* --- Animație de intrare, DOAR la încărcarea paginii ---
   Bootstrap adaugă clasa .active pe slide-ul nou abia în completeCallBack,
   adică DUPĂ ce fondul încrucișat s-a terminat. O animație legată de .active
   pornea deci la final: conținutul deja estompat dispărea din nou și reapărea.
   La schimbarea slide-ului, singura tranziție este fondul de mai sus.
   Clasa .is-intro este scoasă din JS la prima schimbare de slide. */
@keyframes heroCopyIn {
    from { opacity: 0; transform: translateY(16px); }
    to   { opacity: 1; transform: translateY(0); }
}
@keyframes heroMediaIn {
    from { opacity: 0; transform: translateY(16px) scale(0.985); }
    to   { opacity: 1; transform: translateY(0) scale(1); }
}
.hero-carousel.is-intro .carousel-item.active .hero-copy > * {
    animation: heroCopyIn 0.7s cubic-bezier(0.22, 1, 0.36, 1) backwards;
}
.hero-carousel.is-intro .carousel-item.active .hero-copy > *:nth-child(1) { animation-delay: 0.05s; }
.hero-carousel.is-intro .carousel-item.active .hero-copy > *:nth-child(2) { animation-delay: 0.13s; }
.hero-carousel.is-intro .carousel-item.active .hero-copy > *:nth-child(3) { animation-delay: 0.21s; }
.hero-carousel.is-intro .carousel-item.active .hero-copy > *:nth-child(4) { animation-delay: 0.29s; }
.hero-carousel.is-intro .carousel-item.active .hero-figure {
    animation: heroMediaIn 0.8s cubic-bezier(0.22, 1, 0.36, 1) 0.1s backwards;
}

/* --- Indicatori (romburi, centrate jos) --- */
.hero-carousel .carousel-indicators {
    margin: 0 0 2rem;
    gap: 9px;
}
.hero-carousel .carousel-indicators [data-bs-target] {
    /* Bootstrap pune box-sizing: content-box și borduri transparente pe indicatori */
    box-sizing: border-box;
    width: 10px;
    height: 10px;
    border: 1.5px solid rgba(255, 255, 255, 0.5);
    border-radius: 0;
    transform: rotate(45deg);
    background: transparent;
    opacity: 1;
    margin: 0;
    text-indent: 0;
    transition: background-color 0.3s ease, border-color 0.3s ease;
}
.hero-carousel .carousel-indicators .active {
    background: var(--mint);
    border-color: var(--mint);
}

/* --- Săgeți: butoane rotunde jos-dreapta, ca să nu treacă peste text --- */
.hero-carousel .carousel-control-prev,
.hero-carousel .carousel-control-next {
    top: auto;
    bottom: 1.75rem;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.3);
    background: rgba(255, 255, 255, 0.07);
    opacity: 1;
    transition: background-color 0.3s ease, border-color 0.3s ease;
}
.hero-carousel .carousel-control-prev { left: auto; right: calc(1.5rem + 48px); }
.hero-carousel .carousel-control-next { right: 1.5rem; }
.hero-carousel .carousel-control-prev:hover,
.hero-carousel .carousel-control-next:hover {
    background: var(--mint);
    border-color: var(--mint);
}
.hero-carousel .carousel-control-prev-icon,
.hero-carousel .carousel-control-next-icon { width: 1rem; height: 1rem; }
.hero-carousel .carousel-control-prev:hover .carousel-control-prev-icon,
.hero-carousel .carousel-control-next:hover .carousel-control-next-icon { filter: invert(1); }

@media (max-width: 991.98px) {
    .hero-slide {
        min-height: 0;
        padding: 3rem 0 4.5rem;
    }
    /* Utilitarele Bootstrap de aliniere folosesc !important, deci suprascrierea trebuie la fel */
    .hero-copy,
    .hero-copy.text-start,
    .hero-copy.text-center,
    .hero-copy.text-end { text-align: center !important; }
    .hero-copy p { margin-left: auto; margin-right: auto; }
    .hero-actions { justify-content: center; }
    .hero-media { min-height: 0; margin-top: 2.25rem; }
    .hero-media::after { display: none; }
    .hero-figure img { max-height: 330px; }
    .hero-carousel .carousel-control-prev,
    .hero-carousel .carousel-control-next { display: none; }
}
@media (prefers-reduced-motion: reduce) {
    .hero-carousel .carousel-item.active .hero-copy > *,
    .hero-carousel .carousel-item.active .hero-figure { animation: none; }
}

/* ====== Promo: investigații gratuite (homepage) ====== */
.promo-free {
    background: var(--mist);
    padding: 5.5rem 0;
    position: relative;
}
.promo-free h2 {
    font-family: var(--font-display);
    font-weight: 800;
    font-size: clamp(1.8rem, 2.8vw, 2.5rem);
    line-height: 1.12;
    letter-spacing: -0.02em;
    color: var(--ink);
    margin-bottom: 1rem;
}
.promo-free h2 .promo-highlight {
    color: var(--emerald);
    position: relative;
    white-space: nowrap;
}
.promo-lead {
    color: var(--muted-1);
    font-size: 1.05rem;
    line-height: 1.7;
    max-width: 52ch;
    margin-bottom: 2.25rem;
}
.promo-item {
    display: flex;
    gap: 1.15rem;
    background: var(--paper);
    border: 1px solid var(--hairline);
    border-radius: 18px;
    padding: 1.5rem;
    margin-bottom: 1rem;
    transition: border-color 0.3s ease, box-shadow 0.3s ease, transform 0.3s ease;
}
.promo-item:hover {
    border-color: rgba(30, 143, 107, 0.28);
    box-shadow: 0 14px 40px rgba(11, 47, 34, 0.07);
    transform: translateY(-3px);
}
.promo-item-icon {
    flex-shrink: 0;
    width: 46px;
    height: 46px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    background: rgba(30, 143, 107, 0.1);
    color: var(--emerald);
    font-size: 1.35rem;
}
.promo-item h3 {
    font-family: var(--font-display);
    font-size: 1.08rem;
    font-weight: 700;
    color: var(--ink);
    margin: 0 0 0.4rem;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.5rem;
}
.promo-tag {
    font-family: var(--font-mono);
    font-size: 0.62rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    color: var(--paper);
    background: var(--emerald);
    border-radius: 4px;
    padding: 0.22rem 0.5rem;
    line-height: 1;
}
.promo-item p {
    color: var(--muted-1);
    font-size: 0.93rem;
    line-height: 1.6;
    margin: 0 0 0.85rem;
}
.promo-chips {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    padding: 0;
    margin: 0;
}
.promo-chips li {
    font-size: 0.78rem;
    font-weight: 500;
    color: var(--muted-2);
    background: var(--mist);
    border: 1px solid var(--border-1);
    border-radius: 50px;
    padding: 0.28rem 0.7rem;
}
.promo-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.75rem 1.5rem;
    margin-top: 1.75rem;
}
.promo-phone {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    color: var(--ink);
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1.05rem;
    text-decoration: none;
    transition: color 0.3s ease;
}
.promo-phone i { color: var(--emerald); }
.promo-phone:hover { color: var(--emerald); }

.promo-poster {
    display: block;
    background: var(--paper);
    border-radius: 20px;
    padding: 10px;
    box-shadow: 0 24px 60px rgba(11, 47, 34, 0.12);
    transition: transform 0.35s ease, box-shadow 0.35s ease;
}
.promo-poster:hover {
    transform: translateY(-4px);
    box-shadow: 0 30px 70px rgba(11, 47, 34, 0.16);
}
.promo-poster img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 12px;
}
.promo-poster-note {
    display: block;
    text-align: center;
    font-family: var(--font-mono);
    font-size: 0.68rem;
    text-transform: uppercase;
    letter-spacing: 0.16em;
    color: var(--muted-3);
    margin-top: 0.9rem;
}

@media (max-width: 991.98px) {
    .promo-free { padding: 3.5rem 0; }
    .promo-poster { max-width: 520px; margin: 0 auto; }
}

/* Honeypot */
.honeypot-field {
    position: absolute;
    left: -9999px;
    opacity: 0;
    height: 0;
    width: 0;
    pointer-events: none;
}

/* ====== Recenzii Google (homepage) ======
   Recenziile au lungimi foarte diferite (de la o propoziție la un paragraf),
   așa că grila e pe coloane CSS: cardurile se împachetează de sus în jos și nu
   rămân goluri, cum s-ar întâmpla într-un grid cu rânduri de înălțime egală. */
.reviews-section {
    background: var(--paper);
    padding: 5.5rem 0;
}
.reviews-head { margin-bottom: 3rem; }
.reviews-head h2 {
    font-family: var(--font-display);
    font-weight: 800;
    font-size: clamp(1.8rem, 2.8vw, 2.4rem);
    letter-spacing: -0.02em;
    color: var(--ink);
    margin-bottom: 0.6rem;
}
.reviews-head p {
    color: var(--muted-2);
    font-size: 1rem;
    max-width: 46ch;
    margin: 0;
}

/* --- Cartonașul cu nota generală --- */
.reviews-score {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    background: var(--mist);
    border: 1px solid var(--hairline);
    border-radius: 18px;
    padding: 1.4rem 1.6rem;
}
.reviews-score .rs-mark {
    flex-shrink: 0;
    width: 52px;
    height: 52px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--paper);
    border: 1px solid var(--border-1);
    border-radius: 14px;
}
.reviews-score .g-mark { width: 26px; height: 26px; display: block; }
.reviews-score .rs-body { line-height: 1.25; }
.reviews-score .rs-value {
    font-family: var(--font-display);
    font-size: 2.1rem;
    font-weight: 800;
    color: var(--ink);
    letter-spacing: -0.02em;
}
.reviews-score .rs-stars { color: #F4B400; font-size: 0.9rem; letter-spacing: 1px; margin: 0.15rem 0 0.3rem; }
.reviews-score .rs-count { font-size: 0.86rem; color: var(--muted-2); font-weight: 500; }

.rs-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 0.9rem;
    padding-left: 0.2rem;
    color: var(--emerald);
    font-weight: 600;
    font-size: 0.9rem;
    text-decoration: none;
    transition: color 0.3s ease;
}
.rs-link i { font-size: 0.78rem; }
.rs-link:hover { color: var(--emerald-dark); text-decoration: underline; }

/* --- Grila de recenzii --- */
.reviews-grid {
    columns: 3;
    column-gap: 1.5rem;
}
.review-card {
    break-inside: avoid;
    -webkit-column-break-inside: avoid;
    display: inline-block;
    width: 100%;
    margin-bottom: 1.5rem;
    background: var(--paper);
    border: 1px solid var(--border-1);
    border-radius: 18px;
    padding: 1.5rem;
    transition: border-color 0.3s ease, box-shadow 0.3s ease, transform 0.3s ease;
}
.review-card:hover {
    border-color: rgba(30, 143, 107, 0.28);
    box-shadow: 0 14px 40px rgba(11, 47, 34, 0.07);
    transform: translateY(-3px);
}
.rc-head {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    margin-bottom: 0.9rem;
}
.rc-avatar {
    flex-shrink: 0;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 0.92rem;
    letter-spacing: 0.02em;
}
.rc-id { flex-grow: 1; min-width: 0; }
.rc-name {
    font-weight: 700;
    font-size: 0.94rem;
    color: var(--ink);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.rc-date { font-size: 0.78rem; color: var(--muted-3); }
.rc-source { flex-shrink: 0; display: flex; }
.rc-source .g-mark { width: 17px; height: 17px; display: block; }
.rc-stars { color: #F4B400; font-size: 0.82rem; letter-spacing: 1px; margin-bottom: 0.7rem; }
.rc-text {
    margin: 0;
    color: var(--muted-1);
    font-size: 0.95rem;
    line-height: 1.68;
}

.reviews-foot {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.55rem;
    margin: 1.25rem 0 0;
    color: var(--muted-2);
    font-size: 0.92rem;
}
.reviews-foot i { color: var(--emerald); }

@media (max-width: 1199.98px) {
    .reviews-grid { columns: 2; }
}
@media (max-width: 767.98px) {
    .reviews-section { padding: 3.5rem 0; }
    .reviews-grid { columns: 1; }
    .reviews-head { margin-bottom: 2rem; }
}

/* ====== Cardul de articol (listă + „alte articole") ====== */
.article-card {
    display: flex;
    flex-direction: column;
    height: 100%;
    background: var(--paper);
    border: 1px solid var(--border-1);
    border-radius: 20px;
    overflow: hidden;
    text-decoration: none;
    transition: border-color 0.3s ease, box-shadow 0.3s ease, transform 0.3s ease;
}
.article-card:hover {
    border-color: rgba(30, 143, 107, 0.3);
    box-shadow: 0 18px 48px rgba(11, 47, 34, 0.1);
    transform: translateY(-4px);
}
.ac-cover {
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background: var(--mist-2);
    position: relative;
}
.ac-cover.has-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform 0.5s ease;
}
.article-card:hover .ac-cover.has-photo img { transform: scale(1.05); }

/* Copertă de brand pentru articolele fără fotografie */
.ac-cover.is-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(150deg, var(--pine) 0%, var(--pine-black) 100%);
}
.ac-cover.is-icon::before {
    content: '';
    position: absolute;
    inset: 0;
    background: url("data:image/svg+xml,%3Csvg width='40' height='40' viewBox='0 0 40 40' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' stroke='%23ffffff' stroke-opacity='0.08' stroke-width='1.1'%3E%3Crect x='13' y='13' width='14' height='14' transform='rotate(45 20 20)'/%3E%3C/g%3E%3C/svg%3E");
}
.ac-cover.is-icon i {
    position: relative;
    z-index: 1;
    font-size: 3rem;
    color: var(--mint);
    opacity: 0.92;
    transition: transform 0.4s ease;
}
.article-card:hover .ac-cover.is-icon i { transform: scale(1.08); }

.ac-body { padding: 1.4rem 1.5rem 1.6rem; display: flex; flex-direction: column; flex-grow: 1; }
.ac-meta {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    font-family: var(--font-mono);
    font-size: 0.68rem;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    color: var(--muted-3);
    margin-bottom: 0.7rem;
}
.ac-body h3 {
    font-family: var(--font-display);
    font-size: 1.12rem;
    font-weight: 700;
    line-height: 1.32;
    color: var(--ink);
    margin-bottom: 0.6rem;
    transition: color 0.3s ease;
}
.article-card:hover .ac-body h3 { color: var(--emerald-dark); }
.ac-body p {
    color: var(--muted-2);
    font-size: 0.91rem;
    line-height: 1.65;
    margin: 0 0 1.1rem;
    flex-grow: 1;
}
.ac-more {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--emerald);
    font-weight: 600;
    font-size: 0.88rem;
}
.ac-more i { transition: transform 0.3s ease; }
.article-card:hover .ac-more i { transform: translateX(4px); }

/* ====== Hartă ====== */
.map-container {
    overflow: hidden;
    border-radius: var(--bs-card-border-radius, .375rem);
}
.map-container iframe {
    width: 100% !important;
    height: 200px !important;
    display: block;
    border: 0;
}

/* ====== Scroll to top ====== */
#scrollTopBtn {
    display: none;
    position: fixed;
    bottom: 25px;
    right: 25px;
    z-index: 1030;
    border: none;
    background-color: var(--emerald);
    color: #fff;
    cursor: pointer;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    font-size: 24px;
    box-shadow: 0 4px 12px rgba(20, 82, 61, 0.3);
    transition: background-color 0.3s ease;
}
#scrollTopBtn:hover {
    background-color: var(--emerald-dark);
}

/* ====== Bandă parteneri (deasupra footer-ului, pe toate paginile) ====== */
.partners-band {
    background: var(--mist);
    border-top: 1px solid var(--hairline);
    padding: 2.5rem 0;
}
.partners-label {
    text-align: center;
    font-family: var(--font-mono);
    font-size: 0.66rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.22em;
    color: var(--muted-3);
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.85rem;
}
/* Linii subțiri de-o parte și de alta a etichetei */
.partners-label::before,
.partners-label::after {
    content: '';
    height: 1px;
    width: clamp(1.5rem, 8vw, 5rem);
    background: var(--border-2);
}
.partners-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 1rem;
}
/* Logourile vin din surse diferite, cu fundaluri diferite — cardul alb
   de înălțime fixă le pune pe toate pe același rând vizual. */
.partner-item {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 74px;
    min-width: 170px;
    padding: 0 1.6rem;
    background: var(--paper);
    border: 1px solid var(--hairline);
    border-radius: 14px;
    text-decoration: none;
    transition: border-color 0.3s ease, box-shadow 0.3s ease, transform 0.3s ease;
}
a.partner-item:hover {
    border-color: rgba(30, 143, 107, 0.3);
    box-shadow: 0 10px 28px rgba(11, 47, 34, 0.08);
    transform: translateY(-2px);
}
.partner-item img {
    max-height: 34px;
    max-width: 150px;
    width: auto;
    height: auto;
    object-fit: contain;
}
.partner-item .partner-name {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1rem;
    color: var(--muted-1);
    letter-spacing: 0.01em;
}

@media (max-width: 575.98px) {
    .partners-band { padding: 2rem 0; }
    .partners-list { gap: 0.7rem; }
    .partner-item { height: 62px; min-width: 140px; padding: 0 1.1rem; }
    .partner-item img { max-height: 26px; max-width: 118px; }
}

/* ====== Footer ====== */
footer.bg-dark {
    background: linear-gradient(160deg, var(--pine) 0%, var(--pine-black) 100%) !important;
}
.social-icons .social-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.12);
    color: #fff;
    font-size: 1.2rem;
    margin-right: 10px;
    text-decoration: none;
    transition: background-color 0.3s ease, transform 0.3s ease;
}
.social-icons .social-icon:hover {
    background-color: var(--mint);
    color: var(--pine-black);
    transform: translateY(-3px);
}
