/* ═══════════════════════════════════════════════════════════════
   Home Key Atlanta — Public Site Styles  v2 (Luxury Editorial)
   Fonts: Cormorant Garamond (display) · Be Vietnam Pro (body)
   Palette: Forest #1B3A2D · Gold #C9A84C · Cream #FAFAF7
   ═══════════════════════════════════════════════════════════════ */

:root {
    --green:         #1B3A2D;
    --green-mid:     #2D5A45;
    --green-light:   #3D7A5E;
    --gold:          #C9A84C;
    --gold-dim:      rgba(201,168,76,.15);
    --gold-faint:    rgba(201,168,76,.07);
    --cream:         #FAFAF7;
    --cream-dark:    #F2EFE8;
    --border:        #E5E1D8;
    --text:          #1A1A1A;
    --text-muted:    #6B7280;
    --radius:        16px;
    --radius-sm:     8px;

    /* Admin dashboard aliases */
    --brand:         #1B3A2D;
    --brand-light:   #2D5A45;
    --accent:        #C9A84C;
    --accent-dark:   #A8893A;
}

* { -webkit-tap-highlight-color: transparent; }

html { scroll-behavior: smooth; }

body {
    font-family: 'Be Vietnam Pro', sans-serif;
    font-size: 15px;
    color: var(--text);
    background: var(--cream);
}

.safe-top    { padding-top:    env(safe-area-inset-top); }
.safe-bottom { padding-bottom: env(safe-area-inset-bottom); }


/* ── PUBLIC NAV ─────────────────────────────────────────────────── */
.pub-nav {
    background: #faf8f3;
    border-bottom: 1px solid var(--border);
    padding: 1rem 1.5rem;
    position: sticky;
    top: 0;
    z-index: 200;
    transition: box-shadow .3s, background .3s;
}
/* Desktop only: frosted-glass blur. Below md the backdrop-filter creates a
   containing block that breaks the fixed-position offcanvas drawer, so we
   scope it to >= md where the nav is inline and there's no drawer. */
@media (min-width: 768px) {
    .pub-nav {
        background: rgba(250,250,247,.92);
        backdrop-filter: blur(20px) saturate(180%);
        -webkit-backdrop-filter: blur(20px) saturate(180%);
    }
}
.pub-nav.scrolled {
    background: rgba(250,250,247,.98);
    box-shadow: 0 1px 28px rgba(27,58,45,.07);
}

.pub-nav .navbar-brand {
    font-family: 'Cormorant Garamond', serif;
    font-weight: 700;
    font-size: 1.5rem;
    color: var(--green);
    letter-spacing: -.02em;
    display: flex;
    align-items: center;
    gap: .5rem;
    line-height: 1;
}
.pub-nav .navbar-brand .nav-icon {
    color: var(--gold);
    font-size: 1.05rem;
}
.pub-nav .navbar-brand:hover { color: var(--green); }

.pub-nav .nav-link {
    color: var(--text-muted);
    font-size: .76rem;
    font-weight: 600;
    letter-spacing: .09em;
    text-transform: uppercase;
    padding: .55rem .7rem;
    position: relative;
    transition: color .2s;
}
.pub-nav .nav-link::after {
    content: '';
    position: absolute;
    bottom: 2px;
    left: .7rem;
    right: .7rem;
    height: 1.5px;
    background: var(--gold);
    border-radius: 2px;
    transform: scaleX(0);
    transform-origin: center;
    transition: transform .25s ease;
}
.pub-nav .nav-link:hover { color: var(--green); }
.pub-nav .nav-link:hover::after { transform: scaleX(1); }

.pub-nav .navbar-toggler { border: 1px solid var(--border); border-radius: 8px; }
.pub-nav .navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='%231B3A2D' stroke-width='2.2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/* ── MOBILE NAV DRAWER (slides in from right on < md) ────────────────────── */
@media (max-width: 767.98px) {
    /* The offcanvas drawer lives inside .pub-nav. Bootstrap's backdrop is appended to <body>
       at z-index 1040, so .pub-nav's stacking context must sit above it or the drawer (and
       its close button) ends up behind the backdrop and unclickable. */
    .pub-nav { z-index: 1050; }
    .pub-nav-drawer {
        width: min(82vw, 340px) !important;
        background: #faf8f3;
        box-shadow: -8px 0 32px rgba(27,58,45,.12);
    }
    .pub-nav-drawer .offcanvas-header {
        padding: 1rem 1.25rem;
        border-bottom: 1px solid var(--border);
    }
    /* The X sits at the same screen position as the hamburger toggler underneath
       the drawer. iOS Safari was hit-testing through to the toggler (or nowhere)
       instead of the X. Force the X onto its own stacking layer with a 44×44
       Apple-HIG tap target. */
    .pub-nav-drawer .offcanvas-header .btn-close {
        position: relative;
        z-index: 5;
        padding: .85rem;
        min-width: 44px;
        min-height: 44px;
        background-size: 1rem;
    }
    /* While the drawer is open, neutralize the hamburger toggler that sits
       directly under the X — otherwise iOS may steal the tap. Bootstrap toggles
       aria-expanded="true" on the toggler when the offcanvas is shown. */
    .pub-nav .navbar-toggler[aria-expanded="true"] {
        pointer-events: none;
    }
    .pub-nav-drawer .offcanvas-body {
        padding: 1rem 1.25rem 1.5rem;
    }
    .pub-nav-drawer .navbar-nav { width: 100%; gap: .15rem; }
    .pub-nav-drawer .nav-item   { width: 100%; }
    .pub-nav-drawer .nav-link {
        font-size: .95rem;
        letter-spacing: .04em;
        padding: .85rem .25rem;
        min-height: 44px;
        text-transform: none;
        border-bottom: 1px solid rgba(0,0,0,.04);
    }
    .pub-nav-drawer .nav-link::after { display: none; }
    .pub-nav-drawer .dropdown-menu {
        position: static !important;
        border: 0;
        padding-left: 1rem;
        box-shadow: none;
        background: transparent;
        margin: 0;
    }
    .pub-nav-drawer .dropdown-item {
        padding: .65rem .25rem;
        min-height: 40px;
    }
    .pub-nav-drawer .btn-accent,
    .pub-nav-drawer .btn-outline-accent {
        display: flex;
        justify-content: center;
        width: 100%;
        margin-top: .5rem;
    }
}

.btn-accent {
    background: var(--green);
    color: #fff;
    border: none;
    padding: .55rem 1.4rem;
    border-radius: 50px;
    font-weight: 600;
    font-size: .78rem;
    letter-spacing: .05em;
    text-transform: uppercase;
    transition: background .22s, box-shadow .22s, transform .18s;
    display: inline-flex;
    align-items: center;
}
.btn-accent:hover {
    background: var(--green-mid);
    color: #fff;
    box-shadow: 0 4px 18px rgba(27,58,45,.22);
    transform: translateY(-1px);
}


/* ── TOP UTILITY BAR (desktop) ──────────────────────────────────── */
.pub-utility {
    background: var(--green);
    color: rgba(255,255,255,.85);
    font-size: .78rem;
    padding: .35rem 1.5rem;
    border-bottom: 1px solid rgba(255,255,255,.06);
    position: relative;
    z-index: 201;
}
.pub-utility .pub-utility-link {
    color: rgba(255,255,255,.85);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    line-height: 1.4;
    transition: color .18s;
}
.pub-utility .pub-utility-link:hover { color: var(--gold); }
.pub-utility .pub-utility-link i { color: var(--gold); font-size: .78rem; }

.pub-utility .pub-utility-social {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 26px; height: 26px;
    border-radius: 50%;
    color: rgba(255,255,255,.82);
    background: rgba(255,255,255,.06);
    border: 1px solid rgba(255,255,255,.1);
    text-decoration: none;
    font-size: .78rem;
    transition: color .18s, background .18s, border-color .18s, transform .18s;
}
.pub-utility .pub-utility-social:hover {
    color: var(--green);
    background: var(--gold);
    border-color: var(--gold);
    transform: translateY(-1px);
}
/* Contact icon buttons (phone/email) — same circle style as social icons */
.pub-utility .pub-utility-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 26px; height: 26px;
    border-radius: 50%;
    color: rgba(255,255,255,.82);
    background: rgba(255,255,255,.06);
    border: 1px solid rgba(255,255,255,.1);
    font-size: .78rem;
    cursor: pointer;
    padding: 0;
    transition: color .18s, background .18s, border-color .18s, transform .18s;
}
.pub-utility .pub-utility-icon:hover,
.pub-utility .dropdown.show > .pub-utility-icon {
    color: var(--green);
    background: var(--gold);
    border-color: var(--gold);
    transform: translateY(-1px);
}
.pub-utility .pub-utility-icon::after { display: none; }

/* Dropdown panel from the utility bar */
.pub-utility .dropdown-menu {
    border-radius: 8px;
    border: 1px solid rgba(0,0,0,.08);
    box-shadow: 0 8px 24px rgba(0,0,0,.12);
    min-width: 220px;
    margin-top: .5rem;
    padding: .35rem;
}
.pub-utility .dropdown-menu .dropdown-item {
    font-size: .82rem;
    border-radius: 6px;
}
.pub-utility .dropdown-menu .dropdown-item:hover,
.pub-utility .dropdown-menu .dropdown-item:focus {
    background: var(--gold-faint);
    color: var(--green);
}

.pub-utility .pub-utility-divider {
    width: 1px; height: 16px;
    background: rgba(255,255,255,.18);
    margin: 0 .35rem;
}
.pub-utility .pub-utility-lang {
    color: rgba(255,255,255,.6);
    font-size: .72rem;
    font-weight: 600;
    text-decoration: none;
    padding: .15rem .5rem;
    border-radius: 4px;
    letter-spacing: .04em;
    transition: color .18s, background .18s;
}
.pub-utility .pub-utility-lang:hover { color: #fff; }
.pub-utility .pub-utility-lang.active { color: var(--gold); background: rgba(201,168,76,.12); }


/* ── ABOUT DROPDOWN ─────────────────────────────────────────────── */
.pub-nav .dropdown-toggle::after { margin-left: .35em; vertical-align: .12em; }
.pub-dropdown {
    background: var(--cream);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    box-shadow: 0 8px 32px rgba(27,58,45,.12);
    padding: .35rem 0;
    margin-top: .25rem;
    min-width: 180px;
}
.pub-dropdown .dropdown-item {
    color: var(--text-muted);
    font-size: .76rem;
    font-weight: 600;
    letter-spacing: .09em;
    text-transform: uppercase;
    padding: .55rem 1rem;
    transition: color .18s, background .18s;
}
.pub-dropdown .dropdown-item:hover,
.pub-dropdown .dropdown-item:focus,
.pub-dropdown .dropdown-item:active {
    color: var(--green);
    background: var(--gold-faint);
}
.pub-dropdown .dropdown-divider {
    border-top-color: var(--border);
    margin: .35rem 0;
}


/* ── MOBILE UTILITY (inside collapsed nav) ──────────────────────── */
.pub-nav-mobile-utility {
    border-top: 1px solid var(--border);
}
.pub-nav-mobile-link {
    color: var(--text-muted);
    text-decoration: none;
    font-size: .85rem;
    padding: .4rem 0;
    display: inline-flex;
    align-items: center;
    min-height: 44px;
}
.pub-nav-mobile-link i { color: var(--gold); }
.pub-nav-mobile-link:hover { color: var(--green); }
.pub-nav-mobile-social {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px; height: 40px;
    border-radius: 50%;
    color: var(--green);
    background: var(--cream-dark);
    border: 1px solid var(--border);
    text-decoration: none;
    font-size: 1rem;
    transition: color .18s, background .18s, border-color .18s;
}
.pub-nav-mobile-social:hover {
    color: var(--green);
    background: var(--gold);
    border-color: var(--gold);
}


/* ── HERO ───────────────────────────────────────────────────────── */
@keyframes orb-drift-a {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33%       { transform: translate(40px, -50px) scale(1.08); }
    66%       { transform: translate(-25px, 25px) scale(.93); }
}
@keyframes orb-drift-b {
    0%, 100% { transform: translate(0, 0) scale(1); }
    40%       { transform: translate(-45px, 30px) scale(1.12); }
    70%       { transform: translate(30px, -35px) scale(.91); }
}
@keyframes orb-drift-c {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50%       { transform: translate(20px, -20px) scale(1.06); }
}
@keyframes badge-pulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(201,168,76,.22); }
    50%       { box-shadow: 0 0 0 10px rgba(201,168,76,0); }
}
@keyframes hero-entry {
    from { opacity: 0; transform: translateY(28px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* Respect user preference: kill non-essential motion (orbs, pulses, slide-ins,
   scroll-reveal transitions) for visitors with prefers-reduced-motion. */
@media (prefers-reduced-motion: reduce) {
    .hero-orb,
    .hero-orb-1,
    .hero-orb-2,
    .hero-orb-3 { animation: none !important; }
    .hero-badge { animation: none !important; }
    .reveal,
    .reveal.visible {
        opacity: 1 !important;
        transform: none !important;
        transition: none !important;
    }
    *, *::before, *::after {
        animation-duration: 0.001ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.001ms !important;
        scroll-behavior: auto !important;
    }
}

.hero {
    background: #0B1D13;
    color: #fff;
    min-height: 100svh;
    text-align: center;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* Directional ambient light */
.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 80% 60% at 20% 60%, rgba(27,58,45,.75) 0%, transparent 70%),
        radial-gradient(ellipse 60% 50% at 80% 30%, rgba(201,168,76,.07) 0%, transparent 60%);
    pointer-events: none;
    z-index: 0;
}
/* Background image mode — uploaded via admin */
.hero.has-bg {
    background-color: #0B1D13;
    background-size: cover;
    background-position: center top;
    background-repeat: no-repeat;
}
.hero.has-bg::before {
    background:
        linear-gradient(to bottom, rgba(11,29,19,.80) 0%, rgba(11,29,19,.60) 50%, rgba(11,29,19,.85) 100%),
        radial-gradient(ellipse 70% 50% at 80% 20%, rgba(201,168,76,.10) 0%, transparent 60%);
}

/* Subtle grid texture */
.hero::after {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255,255,255,.018) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,.018) 1px, transparent 1px);
    background-size: 64px 64px;
    pointer-events: none;
    z-index: 0;
}

/* Ambient floating orbs */
.hero-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(70px);
    pointer-events: none;
    will-change: transform;
    z-index: 0;
}
.hero-orb-1 {
    width: 520px; height: 520px;
    background: radial-gradient(circle, rgba(27,58,45,.95) 0%, rgba(11,29,19,0) 70%);
    top: -120px; right: -80px;
    animation: orb-drift-a 20s ease-in-out infinite;
}
.hero-orb-2 {
    width: 640px; height: 640px;
    background: radial-gradient(circle, rgba(201,168,76,.1) 0%, rgba(201,168,76,0) 70%);
    bottom: -200px; left: -120px;
    animation: orb-drift-b 26s ease-in-out infinite;
}
.hero-orb-3 {
    width: 320px; height: 320px;
    background: radial-gradient(circle, rgba(45,90,69,.55) 0%, rgba(45,90,69,0) 70%);
    top: 38%; left: 58%;
    animation: orb-drift-c 32s ease-in-out infinite reverse;
}

.hero-inner {
    position: relative;
    z-index: 1;
    padding: 7rem 1.5rem 9rem;
    max-width: 800px;
    margin: 0 auto;
    width: 100%;
}

/* Staggered entry animation */
.hero-inner > * { animation: hero-entry .9s cubic-bezier(.22,1,.36,1) both; }
.hero-photo   { animation-delay: .05s; }
.hero-badge   { animation-delay: .18s; }
.hero h1      { animation-delay: .28s; }
.hero-tagline { animation-delay: .40s; }
.hero-cta     { animation-delay: .52s; }
.hero-stats   { animation-delay: .64s; }

.hero-photo {
    width: 148px; height: 148px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid rgba(201,168,76,.55);
    box-shadow:
        0 0 0 9px rgba(201,168,76,.07),
        0 0 0 18px rgba(201,168,76,.035),
        0 24px 72px rgba(0,0,0,.55);
    margin-bottom: 2.25rem;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    background: rgba(201,168,76,.07);
    border: 1px solid rgba(201,168,76,.22);
    color: rgba(232,213,160,.88);
    font-size: .7rem;
    font-weight: 600;
    letter-spacing: .11em;
    text-transform: uppercase;
    padding: .44rem 1.15rem;
    border-radius: 50px;
    margin-bottom: 1.6rem;
    animation: badge-pulse 3.5s ease-in-out infinite;
}
.hero-badge i { color: var(--gold); font-size: .74rem; }

.hero h1 {
    font-family: 'Cormorant Garamond', serif;
    font-size: clamp(3rem, 8.5vw, 5.8rem);
    font-weight: 700;
    line-height: .98;
    letter-spacing: -.035em;
    margin-bottom: 1.35rem;
    background: linear-gradient(
        140deg,
        #ffffff 0%,
        rgba(255,255,255,.88) 40%,
        rgba(201,168,76,.55) 100%
    );
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-tagline {
    font-size: clamp(.97rem, 2vw, 1.12rem);
    color: rgba(255,255,255,.55);
    max-width: 460px;
    margin: 0 auto 2.75rem;
    line-height: 1.78;
    font-weight: 300;
    letter-spacing: .015em;
}

.hero-cta { display: flex; flex-wrap: wrap; gap: .9rem; justify-content: center; }

.btn-hero-primary {
    background: var(--gold);
    color: var(--green);
    border: none;
    padding: .82rem 2.1rem;
    border-radius: 50px;
    font-weight: 700;
    font-size: .82rem;
    letter-spacing: .05em;
    text-transform: uppercase;
    transition: all .25s cubic-bezier(.34,1.56,.64,1);
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    text-decoration: none;
    box-shadow: 0 4px 28px rgba(201,168,76,.28);
}
.btn-hero-primary:hover {
    background: #d4b45e;
    color: var(--green);
    box-shadow: 0 10px 40px rgba(201,168,76,.48);
    transform: translateY(-3px);
}

.btn-hero-secondary {
    background: rgba(255,255,255,.05);
    color: rgba(255,255,255,.82);
    border: 1px solid rgba(255,255,255,.16);
    padding: .82rem 2.1rem;
    border-radius: 50px;
    font-weight: 500;
    font-size: .82rem;
    letter-spacing: .03em;
    transition: all .25s;
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    text-decoration: none;
    backdrop-filter: blur(10px);
}
.btn-hero-secondary:hover {
    background: rgba(255,255,255,.12);
    color: #fff;
    border-color: rgba(255,255,255,.35);
    transform: translateY(-3px);
}

/* SVG wave at bottom of hero */
.hero-wave {
    position: absolute;
    bottom: -1px;
    left: 0; right: 0;
    z-index: 2;
    line-height: 0;
    pointer-events: none;
}
.hero-wave svg { display: block; width: 100%; height: auto; }

/* Hero Stats */
.hero-stats {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    margin-top: 3.5rem;
    border: 1px solid rgba(255,255,255,.07);
    border-radius: 20px;
    overflow: hidden;
    max-width: 560px;
    margin-left: auto;
    margin-right: auto;
    background: rgba(255,255,255,.04);
    backdrop-filter: blur(16px);
}
.hero-stat {
    flex: 1;
    min-width: 130px;
    padding: 1.3rem .75rem;
    border-right: 1px solid rgba(255,255,255,.06);
    text-align: center;
}
.hero-stat:last-child { border-right: none; }
.hero-stat-value {
    display: block;
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.65rem;
    font-weight: 700;
    color: var(--gold);
    line-height: 1;
    margin-bottom: .3rem;
}
.hero-stat-label {
    display: block;
    font-size: .66rem;
    font-weight: 600;
    letter-spacing: .08em;
    text-transform: uppercase;
    opacity: .5;
}


/* ── WAVE DIVIDERS ──────────────────────────────────────────────── */
.wave-divider {
    line-height: 0;
    overflow: hidden;
    display: block;
    margin: 0;
    padding: 0;
}
.wave-divider svg { display: block; width: 100%; }


/* ── SECTION COMMON ─────────────────────────────────────────────── */
.section-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: .6rem;
    font-size: .69rem;
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 1rem;
}
.section-eyebrow::before {
    content: '';
    width: 28px;
    height: 1.5px;
    background: var(--gold);
    display: inline-block;
    border-radius: 2px;
}

.section-title {
    font-family: 'Cormorant Garamond', serif;
    font-size: clamp(2.2rem, 5vw, 3.3rem);
    font-weight: 700;
    letter-spacing: -.03em;
    color: var(--green);
    line-height: 1.06;
    margin-bottom: .65rem;
}
.section-title.on-dark { color: #fff; }

.section-sub {
    text-align: center;
    color: var(--text-muted);
    font-size: .92rem;
    margin-bottom: 3.5rem;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.72;
}
.section-sub.on-dark { color: rgba(255,255,255,.52); }

.section-center { text-align: center; }


/* ── ABOUT ──────────────────────────────────────────────────────── */
.about-img {
    border-radius: var(--radius);
    box-shadow: 0 20px 64px rgba(27,58,45,.14);
    width: 100%;
    object-fit: cover;
    transition: transform .7s cubic-bezier(.25,.46,.45,.94), box-shadow .7s ease;
}
.about-img:hover {
    transform: scale(1.02) translateY(-4px);
    box-shadow: 0 32px 80px rgba(27,58,45,.2);
}

.about-text p {
    line-height: 1.9;
    color: #555;
    font-size: .94rem;
    margin-bottom: 1.15rem;
}

.cert-badge {
    display: inline-flex;
    align-items: center;
    gap: .45rem;
    background: var(--green);
    color: rgba(255,255,255,.85);
    font-size: .74rem;
    font-weight: 600;
    letter-spacing: .03em;
    padding: .42rem 1rem;
    border-radius: 50px;
    transition: background .22s, transform .18s;
}
.cert-badge:hover { background: var(--green-mid); transform: translateY(-1px); }
.cert-badge i { color: var(--gold); font-size: .78rem; }


/* ── SERVICES ───────────────────────────────────────────────────── */
.feature-grid { display: grid; gap: 1.25rem; }
@media (min-width: 640px)  { .feature-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 992px)  { .feature-grid { grid-template-columns: repeat(3, 1fr); } }

.feature-card {
    background: #fff;
    border: 1px solid var(--border);
    border-top: 3px solid var(--gold);
    border-radius: var(--radius);
    padding: 1.8rem 1.5rem;
    display: flex;
    gap: 1.2rem;
    align-items: flex-start;
    transition: transform .28s cubic-bezier(.34,1.56,.64,1), box-shadow .28s ease, border-top-color .22s;
    position: relative;
    overflow: hidden;
}
.feature-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(201,168,76,.04) 0%, transparent 55%);
    opacity: 0;
    transition: opacity .3s ease;
    pointer-events: none;
}
.feature-card:hover {
    transform: translateY(-7px);
    box-shadow: 0 18px 52px rgba(27,58,45,.12);
    border-top-color: var(--green);
}
.feature-card:hover::before { opacity: 1; }
.feature-card .icon {
    width: 52px; height: 52px;
    border-radius: 14px;
    background: linear-gradient(135deg, var(--green) 0%, var(--green-mid) 100%);
    color: var(--gold);
    display: flex; align-items: center; justify-content: center;
    font-size: 1.3rem;
    flex-shrink: 0;
    box-shadow: 0 4px 18px rgba(27,58,45,.22);
}
.feature-card h6,
.feature-card .feature-card-title {
    font-weight: 700;
    margin-bottom: .35rem;
    font-size: .95rem;
    color: var(--green);
    line-height: 1.3;
    letter-spacing: -.01em;
}
.feature-card p {
    font-size: .84rem;
    color: var(--text-muted);
    margin: 0;
    line-height: 1.68;
}


/* ── TEAM ───────────────────────────────────────────────────────── */
.team-card {
    background: #fff;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    overflow: hidden;
    transition: transform .32s cubic-bezier(.34,1.56,.64,1), box-shadow .32s ease;
    height: 100%;
}
.team-card:hover {
    transform: translateY(-9px);
    box-shadow: 0 24px 64px rgba(27,58,45,.13);
}
.team-card-top {
    background: var(--cream-dark);
    padding: 2.5rem 1.5rem 1.75rem;
    text-align: center;
    position: relative;
    border-bottom: 1px solid var(--border);
}
.team-card-top::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--gold) 0%, rgba(201,168,76,.25) 100%);
}
/* Remove old wave cut */
.team-card-top::after { display: none; }

.team-photo {
    width: 112px; height: 112px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid rgba(201,168,76,.48);
    box-shadow: 0 8px 36px rgba(27,58,45,.16);
}
.team-photo-placeholder {
    width: 112px; height: 112px;
    border-radius: 50%;
    background: var(--green);
    display: flex; align-items: center; justify-content: center;
    font-family: 'Cormorant Garamond', serif;
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--gold);
    border: 3px solid rgba(201,168,76,.38);
    margin: 0 auto;
}
.team-card-body { padding: 1.75rem 1.5rem 2rem; text-align: center; }
.team-name {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.55rem;
    font-weight: 700;
    color: var(--green);
    margin-bottom: .2rem;
    letter-spacing: -.025em;
}
.team-title {
    font-size: .69rem;
    font-weight: 700;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 1.1rem;
    display: block;
}
.team-bio {
    font-size: .86rem;
    color: var(--text-muted);
    line-height: 1.76;
    margin-bottom: 1.5rem;
}
.team-actions { display: flex; gap: .55rem; justify-content: center; flex-wrap: wrap; }
.btn-team-contact {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    font-size: .78rem;
    font-weight: 600;
    color: var(--green);
    border: 1.5px solid var(--border);
    padding: .46rem 1.1rem;
    border-radius: 50px;
    text-decoration: none;
    transition: all .22s;
    background: transparent;
    letter-spacing: .02em;
}
.btn-team-contact:hover {
    background: var(--green);
    color: #fff;
    border-color: var(--green);
    transform: translateY(-1px);
    box-shadow: 0 4px 14px rgba(27,58,45,.18);
}


/* ── AREAS ──────────────────────────────────────────────────────── */
.areas-bg {
    background: var(--green);
    position: relative;
    overflow: hidden;
}
.areas-bg::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255,255,255,.02) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,.02) 1px, transparent 1px);
    background-size: 52px 52px;
    pointer-events: none;
}
/* Ambient gold glow bottom-right */
.areas-bg::after {
    content: '';
    position: absolute;
    width: 500px; height: 500px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(201,168,76,.08) 0%, transparent 70%);
    bottom: -150px; right: -100px;
    pointer-events: none;
}
.areas-inner { position: relative; z-index: 1; }

.area-chips { display: flex; flex-wrap: wrap; gap: .75rem; justify-content: center; }
.area-chip {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    background: rgba(255,255,255,.06);
    border: 1px solid rgba(255,255,255,.11);
    color: rgba(255,255,255,.76);
    font-size: .83rem;
    font-weight: 500;
    padding: .68rem 1.4rem;
    border-radius: 50px;
    transition: all .25s;
    cursor: default;
    letter-spacing: .01em;
}
.area-chip:hover {
    background: rgba(201,168,76,.13);
    border-color: rgba(201,168,76,.38);
    color: #fff;
    transform: translateY(-2px);
}
.area-chip i { color: var(--gold); font-size: .76rem; }


/* ── TESTIMONIALS ───────────────────────────────────────────────── */
.testimonial-card {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 2.25rem 2rem 2rem;
    height: 100%;
    transition: transform .28s ease, box-shadow .28s ease;
    position: relative;
    overflow: hidden;
}
.testimonial-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--gold), rgba(201,168,76,.15));
}
.testimonial-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 14px 48px rgba(27,58,45,.1);
}
.testimonial-quote {
    font-family: 'Cormorant Garamond', serif;
    font-size: 6.5rem;
    line-height: .52;
    color: var(--gold);
    opacity: .18;
    display: block;
    margin-bottom: .65rem;
    font-weight: 700;
    letter-spacing: -.06em;
}
.testimonial-stars {
    color: var(--gold);
    font-size: .82rem;
    margin-bottom: 1rem;
    letter-spacing: .08em;
}
.testimonial-text {
    font-size: .89rem;
    color: #555;
    line-height: 1.85;
    font-style: italic;
    margin-bottom: 1.4rem;
}
.testimonial-author {
    font-weight: 700;
    font-size: .88rem;
    color: var(--green);
    display: block;
    letter-spacing: .01em;
}
.testimonial-location {
    font-size: .76rem;
    color: var(--text-muted);
}


/* ── OFFICE ─────────────────────────────────────────────────────── */
.office-card {
    background: #fff;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    overflow: hidden;
    box-shadow: 0 4px 28px rgba(27,58,45,.06);
}
.office-info-row {
    display: flex;
    gap: 1.1rem;
    align-items: flex-start;
    padding: 1.1rem 1.5rem;
    border-bottom: 1px solid var(--border);
    transition: background .2s;
}
.office-info-row:hover { background: var(--cream); }
.office-info-row:last-child { border-bottom: none; }
.office-icon {
    width: 40px; height: 40px;
    border-radius: 12px;
    background: var(--gold-dim);
    color: var(--gold);
    display: flex; align-items: center; justify-content: center;
    font-size: 1rem;
    flex-shrink: 0;
    margin-top: .1rem;
}
.office-label {
    font-size: .68rem;
    font-weight: 700;
    letter-spacing: .09em;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: .2rem;
    display: block;
}
.office-value {
    font-size: .9rem;
    color: var(--text);
    line-height: 1.65;
}
.office-value a {
    color: var(--green);
    text-decoration: none;
    font-weight: 500;
}
.office-value a:hover { color: var(--gold); }

.office-map {
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid var(--border);
    box-shadow: 0 8px 36px rgba(27,58,45,.09);
}


/* ── CTA BANNER ─────────────────────────────────────────────────── */
.cta-section {
    background: #0B1D13;
    color: #fff;
    text-align: center;
    position: relative;
    overflow: hidden;
    padding: 9rem 1.5rem;
}
/* Centered ambient glow */
.cta-section::before {
    content: '';
    position: absolute;
    width: 800px; height: 500px;
    border-radius: 50%;
    background: radial-gradient(ellipse, rgba(27,58,45,.9) 0%, transparent 70%);
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    pointer-events: none;
}
/* Gold ring accent */
.cta-section::after {
    content: '';
    position: absolute;
    width: 560px; height: 560px;
    border-radius: 50%;
    border: 1px solid rgba(201,168,76,.07);
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    pointer-events: none;
}

/* Second decorative ring */
.cta-inner {
    position: relative;
    z-index: 1;
}
.cta-inner::before {
    content: '';
    position: absolute;
    width: 360px; height: 360px;
    border-radius: 50%;
    border: 1px solid rgba(201,168,76,.04);
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    pointer-events: none;
}

.cta-title {
    font-family: 'Cormorant Garamond', serif;
    font-size: clamp(2.6rem, 6.5vw, 4.2rem);
    font-weight: 700;
    letter-spacing: -.035em;
    margin-bottom: 1rem;
    line-height: 1.03;
    background: linear-gradient(
        140deg,
        #ffffff 0%,
        rgba(255,255,255,.82) 45%,
        rgba(201,168,76,.5) 100%
    );
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.cta-sub {
    color: rgba(255,255,255,.5);
    max-width: 400px;
    margin: 0 auto 2.75rem;
    line-height: 1.78;
    font-size: .94rem;
    font-weight: 300;
    letter-spacing: .01em;
}
.btn-gold {
    background: var(--gold);
    color: var(--green);
    font-weight: 700;
    font-size: .84rem;
    letter-spacing: .055em;
    text-transform: uppercase;
    padding: .92rem 2.6rem;
    border-radius: 50px;
    border: none;
    transition: all .28s cubic-bezier(.34,1.56,.64,1);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: .55rem;
    box-shadow: 0 4px 28px rgba(201,168,76,.25);
}
.btn-gold:hover {
    background: #d4b45e;
    color: var(--green);
    box-shadow: 0 12px 44px rgba(201,168,76,.48);
    transform: translateY(-3px);
}


/* ── PROPERTIES (public listings) ───────────────────────────────── */
.properties-hero {
    background: linear-gradient(150deg, #0B1D13 0%, var(--green) 60%, #1F4835 100%);
    color: #fff;
    padding: 4.5rem 0 3.5rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}
.properties-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: radial-gradient(circle, rgba(201,168,76,.06) 1px, transparent 1px);
    background-size: 32px 32px;
}
.properties-hero > .container { position: relative; z-index: 1; }
.properties-eyebrow {
    color: var(--gold);
    font-size: .76rem;
    letter-spacing: .22em;
    text-transform: uppercase;
    font-weight: 700;
    margin-bottom: 1rem;
}
.properties-h1 {
    font-family: 'Cormorant Garamond', serif;
    font-size: clamp(2.2rem, 4.5vw, 3.4rem);
    font-weight: 700;
    letter-spacing: -.02em;
    margin-bottom: .9rem;
}
.properties-sub {
    color: rgba(255,255,255,.78);
    font-size: 1.05rem;
    max-width: 640px;
    margin: 0 auto;
}

.properties-grid-section { padding: 3rem 0 5rem; }

.properties-empty {
    text-align: center;
    padding: 4rem 1rem;
    background: var(--cream);
    border: 1px dashed var(--border);
    border-radius: var(--radius);
}

.property-card {
    display: block;
    background: #fff;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    height: 100%;
    transition: transform .32s cubic-bezier(.34,1.56,.64,1), box-shadow .32s ease;
}
.property-card:hover {
    transform: translateY(-7px);
    box-shadow: 0 24px 56px rgba(27,58,45,.14);
    color: inherit;
}
.property-card-media {
    position: relative;
    aspect-ratio: 4 / 3;
    background: var(--cream-dark);
    overflow: hidden;
}
.property-card-media img {
    width: 100%; height: 100%;
    object-fit: cover;
    transition: transform .8s ease;
}
.property-card:hover .property-card-media img { transform: scale(1.05); }
.property-card-media-placeholder {
    width: 100%; height: 100%;
    display: flex; align-items: center; justify-content: center;
    color: rgba(27,58,45,.2);
    font-size: 3rem;
    background: var(--cream-dark);
}
.property-card-status {
    position: absolute;
    top: .8rem; left: .8rem;
    padding: .25rem .65rem;
    font-size: .68rem;
    font-weight: 700;
    letter-spacing: .1em;
    text-transform: uppercase;
    border-radius: 4px;
    background: rgba(0,0,0,.7);
    color: #fff;
}
.property-card-status.is-active  { background: var(--green); }
.property-card-status.is-pending { background: #C97A1E; }
.property-card-feature {
    position: absolute;
    top: .8rem; right: .8rem;
    padding: .25rem .55rem;
    font-size: .68rem;
    font-weight: 700;
    letter-spacing: .06em;
    text-transform: uppercase;
    border-radius: 4px;
    background: var(--gold);
    color: var(--green);
    display: inline-flex;
    align-items: center;
    gap: .3rem;
}
.property-card-body { padding: 1.25rem 1.35rem 1.4rem; }
.property-card-price {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.55rem;
    font-weight: 700;
    color: var(--green);
    letter-spacing: -.02em;
    margin-bottom: .25rem;
}
.property-card-address {
    font-weight: 600;
    color: var(--text);
    margin-bottom: .1rem;
    font-size: .95rem;
}
.property-card-meta {
    color: var(--text-muted);
    font-size: .84rem;
    margin-bottom: .8rem;
}
.property-card-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    padding-top: .8rem;
    border-top: 1px solid var(--border);
    font-size: .82rem;
    color: var(--text-muted);
}
.property-card-stats strong {
    color: var(--green);
    font-weight: 700;
    margin-right: .15rem;
}

/* ── PROPERTY DETAIL ────────────────────────────────────────────── */
.property-hero {
    background: #0B1D13;
    position: relative;
}
.property-hero-img {
    width: 100%;
    height: clamp(360px, 65vh, 720px);
    object-fit: cover;
}
.property-hero-empty {
    height: clamp(280px, 40vh, 440px);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: .8rem;
    color: rgba(255,255,255,.55);
    font-size: 1rem;
}
.property-hero-empty i { font-size: 3rem; color: rgba(201,168,76,.5); }
.property-hero .carousel-indicators { margin-bottom: 1rem; }
.property-hero .carousel-indicators button {
    width: 8px; height: 8px;
    border-radius: 50%;
    background: rgba(255,255,255,.4);
    border: none;
    opacity: 1;
}
.property-hero .carousel-indicators .active { background: var(--gold); }

.property-body { padding: 3rem 0 5rem; }
.property-title-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1.5rem;
    padding-bottom: 1.5rem;
    margin-bottom: 1.5rem;
    border-bottom: 1px solid var(--border);
}
.property-price {
    font-family: 'Cormorant Garamond', serif;
    font-size: clamp(2rem, 3.5vw, 2.8rem);
    font-weight: 700;
    color: var(--green);
    letter-spacing: -.02em;
    margin-bottom: .25rem;
}
.property-address {
    font-family: 'Cormorant Garamond', serif;
    font-size: clamp(1.2rem, 2vw, 1.5rem);
    font-weight: 600;
    color: var(--text);
    margin-bottom: .15rem;
    letter-spacing: -.01em;
}
.property-locality {
    color: var(--text-muted);
    font-size: .95rem;
}
.property-status-badge {
    padding: .35rem .8rem;
    font-size: .7rem;
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;
    border-radius: 4px;
    background: rgba(0,0,0,.7);
    color: #fff;
    flex-shrink: 0;
}
.property-status-badge.is-active  { background: var(--green); }
.property-status-badge.is-pending { background: #C97A1E; }

.property-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 0;
    background: var(--cream);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: .75rem 0;
    margin-bottom: 2rem;
}
.property-stats > div {
    flex: 1 1 0;
    min-width: 110px;
    text-align: center;
    padding: .5rem 1rem;
    border-right: 1px solid var(--border);
}
.property-stats > div:last-child { border-right: none; }
.property-stats .stat-num {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--green);
}
.property-stats .stat-label {
    font-size: .72rem;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--text-muted);
    font-weight: 600;
    margin-top: .15rem;
}

.property-section { margin-bottom: 2rem; }
.property-section-title {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--green);
    margin-bottom: 1rem;
    letter-spacing: -.01em;
}
.property-description {
    font-size: .98rem;
    line-height: 1.78;
    color: var(--text);
    white-space: pre-wrap;
}
.property-mls {
    font-size: .82rem;
    color: var(--text-muted);
    padding-top: 1rem;
    border-top: 1px solid var(--border);
}
.property-mls span:last-child { color: var(--text); font-weight: 600; margin-left: .35rem; }

.property-sidebar {
    position: sticky;
    top: 7rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}
.property-agent-card,
.property-inquiry-card {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.4rem 1.5rem;
}
.property-agent-card { border-left: 3px solid var(--gold); }
.property-agent-label {
    font-size: .68rem;
    letter-spacing: .15em;
    text-transform: uppercase;
    color: var(--text-muted);
    font-weight: 700;
    margin-bottom: .3rem;
}
.property-agent-name {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--green);
    margin-bottom: .9rem;
    letter-spacing: -.01em;
}
.property-agent-contacts {
    display: flex;
    flex-direction: column;
    gap: .5rem;
}
.property-agent-link {
    color: var(--text);
    text-decoration: none;
    font-size: .88rem;
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    transition: color .18s;
}
.property-agent-link:hover { color: var(--gold); }
.property-agent-link i { color: var(--gold); font-size: .78rem; }

.property-inquiry-title {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--green);
    margin-bottom: .35rem;
}
.property-inquiry-sub {
    color: var(--text-muted);
    font-size: .85rem;
    margin-bottom: 1rem;
}
.property-inquiry-footnote {
    text-align: center;
    color: var(--text-muted);
    font-size: .74rem;
    margin-top: .9rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: .4rem;
}
.property-inquiry-footnote i { color: var(--green); }

@media (max-width: 991px) {
    .property-sidebar { position: static; }
}


/* ── FOOTER ─────────────────────────────────────────────────────── */
.pub-footer {
    background: #071310;
    color: rgba(255,255,255,.38);
    text-align: center;
    padding: 2.5rem 1.5rem 2.25rem;
    font-size: .82rem;
    position: relative;
}
/* Gold top rule */
.pub-footer::before {
    content: '';
    position: absolute;
    top: 0; left: 50%;
    transform: translateX(-50%);
    width: 90px; height: 1px;
    background: linear-gradient(90deg, transparent, rgba(201,168,76,.6), transparent);
}

.pub-footer .footer-brand {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
    opacity: .82;
    transition: opacity .22s;
}
.pub-footer .footer-brand:hover { opacity: 1; }
.pub-footer .footer-brand-logo {
    height: 36px;
    width: auto;
    max-width: 100%;
    display: block;
    object-fit: contain;
    filter: drop-shadow(0 6px 18px rgba(0,0,0,.28));
    user-select: none;
    -webkit-user-drag: none;
}
@media (max-width: 420px) {
    .pub-footer .footer-brand-logo { height: 28px; }
}
.pub-footer .footer-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: .2rem 1.25rem;
    margin-bottom: 1rem;
    font-size: .78rem;
    letter-spacing: .04em;
    text-transform: uppercase;
    font-weight: 600;
}
.pub-footer a {
    color: rgba(255,255,255,.48);
    text-decoration: none;
    transition: color .2s;
}
.pub-footer a:hover { color: var(--gold); }
.pub-footer .footer-contact-link:hover { color: var(--gold) !important; }
.pub-footer .footer-contact { margin-bottom: .75rem; }
.pub-footer .footer-contact a { color: rgba(255,255,255,.55); }
.pub-footer .footer-sep { color: rgba(255,255,255,.15); margin: 0 .35rem; }

/* ── FOOTER SOCIAL ICONS ────────────────────────────────────────── */
.pub-footer .footer-socials {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: .55rem;
    margin-top: .25rem;
}
.pub-footer .footer-social-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px; height: 38px;
    border-radius: 50%;
    color: rgba(255,255,255,.7);
    background: rgba(255,255,255,.04);
    border: 1px solid rgba(255,255,255,.14);
    text-decoration: none;
    font-size: 1rem;
    transition: color .2s, background .2s, border-color .2s, transform .2s;
}
.pub-footer .footer-social-icon:hover {
    color: var(--green);
    background: var(--gold);
    border-color: var(--gold);
    transform: translateY(-2px);
}

/* Dropdown menus inside the dark footer sit on a white background. Match the
   header utility-bar dropdown look: white card, dark bold names, gold-faint
   hover. Selectors are scoped via .footer-socials so the .pub-footer a
   cascade can't repaint the link text gold. */
.pub-footer .footer-socials .dropdown-menu {
    border-radius: 8px;
    border: 1px solid rgba(0,0,0,.08);
    box-shadow: 0 8px 24px rgba(0,0,0,.12);
    min-width: 220px;
    margin-top: .5rem;
    padding: .35rem;
}
.pub-footer .footer-socials .dropdown-menu a.dropdown-item {
    color: #212529;
    font-size: .82rem;
    border-radius: 6px;
    text-decoration: none;
}
.pub-footer .footer-socials .dropdown-menu a.dropdown-item strong,
.pub-footer .footer-socials .dropdown-menu a.dropdown-item small {
    color: inherit;
}
.pub-footer .footer-socials .dropdown-menu a.dropdown-item:hover,
.pub-footer .footer-socials .dropdown-menu a.dropdown-item:focus {
    color: var(--green);
    background: var(--gold-faint);
}


/* ── SCROLL REVEAL ──────────────────────────────────────────────── */
.reveal {
    opacity: 0;
    transform: translateY(34px);
    transition: opacity .75s cubic-bezier(.25,.46,.45,.94), transform .75s cubic-bezier(.25,.46,.45,.94);
}
.reveal.visible { opacity: 1; transform: none; }
.reveal-delay-1 { transition-delay: .12s; }
.reveal-delay-2 { transition-delay: .24s; }
.reveal-delay-3 { transition-delay: .36s; }
.reveal-delay-4 { transition-delay: .48s; }


/* ── AGENT PROFILE ──────────────────────────────────────────────── */
.profile-hero {
    background: linear-gradient(150deg, #0B1D13 0%, var(--green) 55%, #1F4835 100%);
    padding: 4.5rem 0 5.5rem;
    color: #fff;
    position: relative;
    overflow: hidden;
}
.profile-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: radial-gradient(circle, rgba(201,168,76,.055) 1px, transparent 1px);
    background-size: 32px 32px;
}
.profile-hero::after {
    content: '';
    position: absolute;
    bottom: -1px; left: 0; right: 0;
    height: 70px;
    background: var(--cream);
    clip-path: polygon(0 100%, 100% 100%, 100% 20%, 0 100%);
}
.profile-hero-inner { position: relative; z-index: 1; }
.profile-photo {
    width: 130px; height: 130px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid rgba(201,168,76,.52);
    box-shadow: 0 0 0 9px rgba(201,168,76,.07), 0 14px 48px rgba(0,0,0,.38);
}
.profile-photo-placeholder {
    width: 130px; height: 130px;
    border-radius: 50%;
    background: rgba(255,255,255,.08);
    display: flex; align-items: center; justify-content: center;
    font-size: 3rem;
    color: rgba(255,255,255,.5);
    border: 3px solid rgba(201,168,76,.28);
    box-shadow: 0 0 0 9px rgba(201,168,76,.05);
}
.profile-name {
    font-family: 'Cormorant Garamond', serif;
    font-size: clamp(1.9rem, 4vw, 2.8rem);
    font-weight: 700;
    letter-spacing: -.03em;
    margin-bottom: .25rem;
}
.profile-title {
    font-size: .78rem;
    font-weight: 600;
    letter-spacing: .09em;
    text-transform: uppercase;
    color: #E8D5A0;
    opacity: .82;
    margin-bottom: .3rem;
}
.profile-license {
    font-size: .8rem;
    color: rgba(255,255,255,.42);
    margin-bottom: 1.25rem;
}
.social-btn {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    padding: .48rem 1.2rem;
    border-radius: 50px;
    font-size: .78rem;
    font-weight: 600;
    text-decoration: none;
    background: rgba(255,255,255,.07);
    color: rgba(255,255,255,.86);
    border: 1px solid rgba(255,255,255,.16);
    transition: all .22s;
    backdrop-filter: blur(8px);
    letter-spacing: .02em;
}
.social-btn:hover {
    background: rgba(201,168,76,.14);
    border-color: rgba(201,168,76,.38);
    color: #fff;
}
.profile-body { background: var(--cream); padding: 4rem 0 5rem; }
.profile-section-title {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.55rem;
    font-weight: 700;
    color: var(--green);
    margin-bottom: 1rem;
    letter-spacing: -.025em;
}
.profile-bio-text {
    line-height: 1.9;
    color: #555;
    white-space: pre-line;
    font-size: .94rem;
}
.profile-info-row {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: .95rem 0;
    border-bottom: 1px solid var(--border);
}
.profile-info-row:last-child { border-bottom: none; }
.profile-info-icon {
    width: 38px; height: 38px;
    border-radius: 10px;
    background: var(--gold-dim);
    color: var(--gold);
    display: flex; align-items: center; justify-content: center;
    font-size: .95rem;
    flex-shrink: 0;
}
.profile-info-val { font-size: .9rem; color: var(--text); }
.profile-info-val a { color: var(--green); text-decoration: none; font-weight: 500; }
.profile-info-val a:hover { color: var(--gold); }
.action-card {
    background: #fff;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    box-shadow: 0 4px 24px rgba(27,58,45,.07);
    overflow: hidden;
}
.qr-img { width: 150px; height: 150px; border-radius: 10px; }
.btn-vcard {
    background: var(--green);
    color: #fff;
    border: none;
    width: 100%;
    padding: .75rem;
    border-radius: 50px;
    font-weight: 600;
    font-size: .85rem;
    transition: all .22s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: .5rem;
    text-decoration: none;
}
.btn-vcard:hover { background: var(--green-mid); color: #fff; transform: translateY(-1px); }
.btn-email-profile {
    background: transparent;
    color: var(--green);
    border: 1.5px solid var(--border);
    padding: .68rem 1.5rem;
    border-radius: 50px;
    font-weight: 600;
    font-size: .88rem;
    transition: all .22s;
    display: inline-flex;
    align-items: center;
    gap: .45rem;
    text-decoration: none;
}
.btn-email-profile:hover { background: var(--green); color: #fff; border-color: var(--green); }


/* ── HOME CONTACT SECTION ───────────────────────────────────────── */
.home-contact-info { display: flex; flex-direction: column; gap: 1.1rem; }
.home-contact-row { display: flex; align-items: center; gap: 1rem; }
.home-contact-avatar {
    width: 44px; height: 44px;
    border-radius: 50%;
    background: var(--green);
    color: var(--gold);
    display: flex; align-items: center; justify-content: center;
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.2rem;
    font-weight: 700;
    flex-shrink: 0;
}
.home-contact-name { font-weight: 700; font-size: .9rem; color: var(--green); margin-bottom: .15rem; }
.home-contact-links a { font-size: .84rem; color: var(--text-muted); text-decoration: none; transition: color .2s; }
.home-contact-links a:hover { color: var(--gold); }

/* Inline chat card — same visual as the popup widget but always visible */
.inline-chat-card {
    background: #fff;
    border-radius: 20px;
    box-shadow: 0 12px 56px rgba(27,58,45,.14);
    border: 1px solid var(--border);
    overflow: hidden;
    max-width: 440px;
    margin: 0 auto;
}
.inline-chat-header {
    background: var(--green);
    color: #fff;
    padding: 1rem 1.25rem;
    display: flex;
    align-items: center;
    gap: .75rem;
}
.inline-chat-avatar {
    width: 40px; height: 40px;
    border-radius: 50%;
    background: var(--gold);
    color: var(--green);
    display: flex; align-items: center; justify-content: center;
    font-size: 1rem;
    flex-shrink: 0;
}
.inline-chat-title { font-size: 1rem; font-weight: 700; line-height: 1.2; }
.inline-chat-sub   { font-size: .74rem; opacity: .75; }

.inline-chat-body {
    padding: 1.25rem;
    background: #f8f7f4;
    display: flex;
    flex-direction: column;
    gap: .85rem;
}
.inline-chat-greeting {
    font-size: .9rem;
    color: #4a4a4a;
    line-height: 1.55;
    padding: .7rem .9rem;
    background: #fff;
    border-radius: 14px;
    border-bottom-left-radius: 4px;
    box-shadow: 0 1px 4px rgba(0,0,0,.07);
}
.inline-chat-field label {
    display: block;
    font-size: .76rem;
    font-weight: 700;
    color: #555;
    margin-bottom: .3rem;
    text-transform: uppercase;
    letter-spacing: .04em;
}
.inline-chat-field input,
.inline-chat-field textarea {
    width: 100%;
    border: 1.5px solid #d0cbc4;
    border-radius: 10px;
    padding: .55rem .8rem;
    font-size: .9rem;
    font-family: inherit;
    outline: none;
    background: #fff;
    transition: border-color .15s;
    resize: none;
}
.inline-chat-field input:focus,
.inline-chat-field textarea:focus { border-color: var(--green); }

.inline-chat-consent {
    font-size: .7rem;
    color: #888;
    line-height: 1.5;
    margin: 0;
}
.inline-chat-consent a { color: var(--green); }
.inline-chat-consent a:hover { color: var(--gold); }

#ic-send-btn {
    width: 100%;
    background: var(--green);
    color: #fff;
    border: none;
    border-radius: 10px;
    padding: .72rem;
    font-size: .95rem;
    font-weight: 700;
    font-family: inherit;
    cursor: pointer;
    transition: background .18s, opacity .18s;
    display: flex;
    align-items: center;
    justify-content: center;
}
#ic-send-btn:hover:not(:disabled) { background: var(--gold); }
#ic-send-btn:disabled { opacity: .42; cursor: not-allowed; }


/* ── INQUIRY / CONTACT FORM ─────────────────────────────────────── */
.inquiry-card {
    background: #fff;
    border-radius: var(--radius);
    padding: 2.25rem 1.75rem;
    box-shadow: 0 8px 44px rgba(27,58,45,.09);
    border: 1px solid var(--border);
    max-width: 760px;
    margin: 0 auto;
}
.inquiry-card .form-label { font-weight: 600; font-size: .87rem; color: var(--green); }
.feature-check-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
    gap: .4rem .75rem;
}
.feature-check-grid .form-check-label { font-size: .9rem; }


/* ── THANK-YOU PAGE ─────────────────────────────────────────────── */
.thankyou-wrap {
    min-height: 60vh;
    display: flex; align-items: center; justify-content: center;
    padding: 2rem 1rem;
}
.thankyou-box { text-align: center; max-width: 480px; }
.thankyou-icon { font-size: 4rem; color: var(--gold); }


/* ── DASHBOARD / ADMIN MOBILE TWEAKS ────────────────────────────── */
@media (max-width: 767.98px) {
    .table-responsive { font-size: .875rem; }
    .card { border-radius: var(--radius); }
    .btn  { font-size: .9rem; }
    .nav-link, .btn { min-height: 44px; display: inline-flex; align-items: center; }
    .sidebar .nav-link { min-height: 44px; }
    .btn-group-mobile { display: flex; flex-direction: column; gap: .4rem; }
    .px-4 { padding-left: 1rem !important; padding-right: 1rem !important; }
    .card-body.p-4 { padding: 1rem !important; }
    body { overflow-x: hidden; }
    .pipeline-hint { display: block; }
    .hero-inner { padding: 5.5rem 1.25rem 7.5rem; }
}
@media (min-width: 768px) { .pipeline-hint { display: none; } }
@media (max-width: 767.98px) { .col-hide-mobile { display: none !important; } }
@media (max-width: 575.98px) {
    .profile-hero { padding: 3rem 0 5rem; }
    .qr-img { width: 120px !important; height: 120px !important; }
    .hero-stats { border-radius: 12px; }
    .hero-stat { min-width: 100px; }
}

/* iOS auto-zooms form fields when font-size < 16px on focus. Force 16px on
   mobile so the keyboard doesn't push the page sideways. Desktop unchanged. */
@media (max-width: 767.98px) {
    .form-control, .form-select, textarea, input[type="text"], input[type="email"],
    input[type="password"], input[type="tel"], input[type="number"], input[type="search"],
    input[type="url"], input[type="date"] {
        font-size: 16px !important;
        min-height: 44px;
    }
    /* But keep visible labels small */
    .form-label, label { font-size: .85rem; }
}
