/* ═══════════════════════════════════════
   EDG GREECE — style.css
═══════════════════════════════════════ */

/* ─── RESET ─── */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Ensure the HTML hidden attribute always wins over author display rules */
[hidden] { display: none !important; }

/* ─── FONTS ─── */
@font-face {
    font-family: 'Sanrello';
    src: url('fonts/sanrello (1).otf') format('opentype'),
         url('fonts/sanrello (1).ttf') format('truetype');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

/* ─── TOKENS ─── */
:root {
    --olive:     #545532;
    --white:     #ffffff;
    --font-head: 'Sanrello', Georgia, serif;
    --font-body: 'Inter', system-ui, sans-serif;
    --nav-h:     100px;
}

/* ─── BASE ─── */
html { scroll-behavior: smooth; }

body {
    font-family: var(--font-body);
    color: var(--white);
    overflow-x: hidden;
    background: #0e0e0c;
}

img { display: block; max-width: 100%; }
a   { color: inherit; text-decoration: none; }

/* All headings: Sanrello, uppercase — always */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-head);
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 0;
}


/* ══════════════════════════════════════
   HERO
══════════════════════════════════════ */
.hero {
    position: relative;
    width: 100%;
    height: 100vh;
    height: 100svh;
    min-height: 560px;
    background-image: url('images/hero-banner.png');
    background-size: cover;
    background-position: center top;
    background-repeat: no-repeat;
    display: flex;
    flex-direction: column;
}

/*
  Desktop: vertical gradient overlay that spreads down from the top.
  Matches Figma element W:1920 H:506 (~47vh) — #545532 fading to transparent.
  This IS the nav background on desktop; nav itself stays transparent.
*/
.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 48vh;
    background: linear-gradient(to bottom, #545532 0%, transparent 100%);
    z-index: 1;
    pointer-events: none;
}


/* ══════════════════════════════════════
   NAVBAR — transparent on desktop
   (gradient ::before provides the dark backing)
══════════════════════════════════════ */
.navbar {
    position: relative;
    z-index: 50;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: var(--nav-h);
    padding: 0 2.5rem;
    background: transparent;
}

/* ─── NAV LINKS ─── */
.nav-links {
    display: flex;
    align-items: center;
    gap: 2.5rem;
    list-style: none;
}

.nav-links a {
    font-size: 0.875rem;
    font-weight: 400;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--white);
    transition: opacity 0.2s;
}

.nav-links a:hover { opacity: 0.6; }

/* ─── LOGO ─── */
.logo img {
    height: 70px;
    width: auto;
}

/* ─── HAMBURGER (hidden on desktop) ─── */
.hamburger {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    width: 40px;
    height: 40px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
}

.hamburger span {
    display: block;
    width: 22px;
    height: 1.5px;
    background: var(--white);
    transition: transform 0.3s ease, opacity 0.2s ease;
    transform-origin: center;
}

.hamburger.is-active span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.hamburger.is-active span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.hamburger.is-active span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }


/* ══════════════════════════════════════
   MOBILE OVERLAY BACKDROP
══════════════════════════════════════ */
.menu-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 80;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.menu-overlay.is-open {
    opacity: 1;
    pointer-events: auto;
}


/* ══════════════════════════════════════
   MOBILE DRAWER
══════════════════════════════════════ */
.mobile-menu {
    position: fixed;
    inset-block: 0;
    left: 0;
    width: min(78vw, 300px);
    background: var(--olive);
    z-index: 90;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 3rem 2.5rem;
    transform: translateX(-100%);
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    will-change: transform;
}

.mobile-menu.is-open { transform: translateX(0); }

.mobile-menu ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 2.2rem;
}

.mobile-menu a {
    font-size: 0.95rem;
    font-weight: 400;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--white);
    transition: opacity 0.2s;
}

.mobile-menu a:hover { opacity: 0.6; }


/* ══════════════════════════════════════
   HERO CONTENT + TITLE
══════════════════════════════════════ */
.hero-content {
    position: relative;
    z-index: 10;
    flex: 1;
    display: flex;
    align-items: flex-end;
    padding-bottom: 4rem;
    overflow: hidden;
}

.hero-title {
    display: flex;
    flex-direction: column;
    width: 100%;
}

.line {
    display: block;
    font-family: var(--font-head);
    font-weight: 400;
    font-size: clamp(3.5rem, 10.8vw, 10.8rem);
    color: var(--white);
    text-transform: uppercase;
    letter-spacing: 0;
    line-height: 0.9;
    white-space: nowrap;
    opacity: 0;
    animation: heroLineIn 1.6s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.line-1 { padding-left: 1.5vw; animation-delay: 0.15s; }
.line-2 { padding-left: 20vw;  animation-delay: 0.5s;  }
.line-3 { padding-left: 43vw;  animation-delay: 0.85s; }


/* ══════════════════════════════════════
   RESPONSIVE — TABLET (≤1024px)
══════════════════════════════════════ */
@media (max-width: 1024px) {
    .line { font-size: clamp(3rem, 10vw, 8rem); }
    .line-2 { padding-left: 18vw; }
    .line-3 { padding-left: 38vw; }
}


/* ══════════════════════════════════════
   RESPONSIVE — MOBILE (≤768px)
══════════════════════════════════════ */
@media (max-width: 768px) {
    :root { --nav-h: 64px; }

    /* Show hamburger, hide desktop nav links */
    .nav-links    { display: none; }
    .hamburger    { display: flex; }
    .menu-overlay { display: block; }

    /*
      Mobile nav: replace the desktop gradient with a solid bar.
      The ::before gradient is disabled on mobile (see below).
    */
    .navbar {
        padding: 0 1.25rem;
        background: #545532;
    }

    /* Remove the tall desktop gradient on mobile — nav has its own solid bg */
    .hero::before {
        display: none;
    }

    .logo img { height: 36px; }

    /* Shorter height on mobile so the full image is more visible */
    .hero {
        height: 75vh;
        height: 75svh;
        min-height: 480px;
        background-position: 38% top;
    }

    /*
      Move text UP — away from the very bottom.
      justify-content: flex-end on the column + bottom padding lifts it
      to roughly the lower-third of the screen instead of the bottom edge.
    */
    .hero-content {
        align-items: flex-end;
        padding-bottom: 18vh;
    }

    /* Headline sizing — tight stagger so all 3 lines stay in frame */
    .line {
        font-size: clamp(2.6rem, 12vw, 4.5rem);
        line-height: 0.9;
        white-space: nowrap;
    }

    .line-1 { padding-left: 2vw;  }
    .line-2 { padding-left: 10vw; }
    .line-3 { padding-left: 20vw; }
}


/* ══════════════════════════════════════
   RESPONSIVE — SMALL PHONE (≤420px)
══════════════════════════════════════ */
@media (max-width: 420px) {
    .line {
        font-size: clamp(2.2rem, 12.5vw, 3rem);
        line-height: 0.88;
    }

    .line-1 { padding-left: 2vw; }
    .line-2 { padding-left: 8vw; }
    .line-3 { padding-left: 16vw; }

    .hero-content { padding-bottom: 15vh; }
}


/* ══════════════════════════════════════
   ABOUT SECTION
══════════════════════════════════════ */

/* ─── TOP HALF — dark green ─── */
.about-dark {
    position: relative;
    overflow: visible;
    background-image: url('images/GREEN-background.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

/* No overlay — background image shows as-is */

.about-dark-inner {
    position: relative;
    z-index: 1;
    padding: 9rem 10% 2rem;
    text-align: center;
}

.about-heading {
    font-size: clamp(2rem, 4.2vw, 4.2rem);
    line-height: 1.15;
    text-align: center;
}

/* Scroll-driven opacity — controlled entirely by JS */
.about-heading {
    will-change: opacity, transform;
}

.about-heading-accent {
    color: #9EAFBA;
}

.about-heading-main {
    color: #E6E5DA;
}

.about-tagline {
    font-family: var(--font-body);
    color: #E6E5DA;
    font-size: clamp(0.85rem, 1.1vw, 1rem);
    text-align: center;
    margin-top: 1.5rem;
    margin-bottom: 3.5rem;
}

/* ─── CENTER IMAGE — straddles dark/light boundary ─── */
.center-image-wrap {
    position: relative;
    z-index: 10;
    width: 55%;
    margin: 2rem auto 0;
    margin-bottom: -20vw;
}

.center-image-clip {
    overflow: hidden;
}

.center-img {
    display: block;
    width: 100%;
    transform: scale(1);
    transform-origin: center center;
    will-change: transform;
}

/* ─── BOTTOM HALF — cream/light ─── */
.about-light {
    position: relative;
    background: #E6E5DA;
    padding: calc(20vw + 5rem) 10% 5rem;
    text-align: center;
}

.stillness-heading {
    color: #9EAFBA;
    font-size: clamp(1.6rem, 3vw, 3.2rem);
    line-height: 1.2;
    text-align: center;
    margin-bottom: 2.5rem;
}

.about-body {
    max-width: min(880px, 78%);
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.about-body p {
    font-family: var(--font-body);
    color: #292D14;
    font-size: clamp(0.85rem, 1.1vw, 1rem);
    line-height: 1.8;
    text-align: center;
}


/* ══════════════════════════════════════
   ABOUT — RESPONSIVE (≤768px)
══════════════════════════════════════ */
@media (max-width: 768px) {
    .about-dark-inner        { padding: 6rem 5% 2rem; }
    .about-heading           { font-size: clamp(1.8rem, 6vw, 2.8rem); }
    .center-image-wrap       { width: 88%; margin-bottom: -30vw; }
    .about-light             { padding: calc(30vw + 4rem) 4% 4rem; }
    .about-body              { max-width: 100%; }
    .stillness-heading       { font-size: clamp(1.5rem, 6vw, 2.4rem); }
}


/* ══════════════════════════════════════
   TICKER / MARQUEE
══════════════════════════════════════ */
.ticker {
    background: #9EAFBA;
    overflow: hidden;
    display: flex;
    align-items: center;
}

.ticker-inner {
    display: flex;
    align-items: center;
    width: max-content;
    will-change: transform;
    animation: tickerScroll 60s linear infinite;
}

.ticker-track {
    display: flex;
    align-items: center;
    flex-shrink: 0;
    padding: 2rem 0;
}

.ticker-track span {
    font-family: var(--font-head);
    font-size: clamp(3rem, 9.375vw, 11.25rem);
    font-weight: 400;
    color: #545532;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    white-space: nowrap;
    line-height: 1.15;
    padding: 0 0.5em;
}

.ticker-sep {
    font-size: clamp(1.2rem, 3vw, 3.5rem) !important;
    padding: 0 0.2em !important;
    letter-spacing: 0 !important;
    opacity: 0.55;
    flex-shrink: 0;
}

@keyframes tickerScroll {
    from { transform: translateX(0); }
    to   { transform: translateX(-50%); }
}

@keyframes heroLineIn {
    from { opacity: 0; transform: translateY(52px); }
    to   { opacity: 1; transform: translateY(0); }
}


/* ══════════════════════════════════════
   RESIDENCES SECTION
══════════════════════════════════════ */
.residences {
    position: relative;
    background-image: url('images/long green background.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    padding: 6rem 0 7rem;
    /* Prevent browser scroll-anchoring from hiding newly revealed cards */
    overflow-anchor: none;
}

/* No overlay — background image shows as-is */

/* ─── HEADER ─── */
.res-header {
    text-align: center;
    margin-bottom: 4rem;
}

.res-title-panel {
    display: inline-block;
}

.res-section-title {
    font-size: clamp(2.8rem, 6.5vw, 6.5rem);
    color: #E6E5DA;
    line-height: 1;
    text-align: center;
    will-change: opacity, transform;
}

/* ─── CARD LISTS ─── */
.res-cards {
    display: flex;
    flex-direction: column;
    gap: 3.5rem;
}

.res-extra {
    display: none;
    flex-direction: column;
    gap: 3.5rem;
    padding-top: 3.5rem;
}

/* ─── CARD ─── */
.res-card {
    display: flex;
    align-items: center;
    width: 82%;
    margin: 0 auto;
}

/* img-left: HTML (img, info) → img on left naturally */
/* img-right: HTML (info, img) → info on left naturally */
.res-card.res-img-left,
.res-card.res-img-right { flex-direction: row; }

/* ─── IMAGE — square with rounded corners ─── */
.res-img-wrap {
    flex: 0 0 54%;
    width: 54%;
    position: relative;
    z-index: 1;
}

.res-img-wrap img {
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    border-radius: 20px;
    display: block;
    height: auto;
}

/* ─── INFO PANEL — glass card ─── */
.res-info {
    width: 52%;
    flex-shrink: 0;
    flex-grow: 0;
    /* Solid fallback for browsers without backdrop-filter */
    background: rgba(30, 35, 12, 0.78);
    /* Glass overlay for browsers that support it */
    background: linear-gradient(160deg, rgba(40, 45, 20, 0.72) 0%, rgba(20, 24, 10, 0.68) 100%);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border: 2px solid rgba(158, 175, 186, 0.30);
    border-radius: 20px;
    padding: 2.8rem 2.5rem 2.2rem;
    display: flex;
    flex-direction: column;
    gap: 1.1rem;
    position: relative;
    z-index: 2;
}

/* Overlap: 54 + 52 − 6 = 100  →  glass panel rides 6% over image */
.res-img-left  .res-info { margin-left:  -6%; }
.res-img-right .res-info { margin-right: -6%; }

/* ─── INFO ELEMENTS ─── */
.res-name {
    font-size: clamp(2rem, 3.8vw, 3.5rem);
    color: #9EAFBA;
    line-height: 1;
}

.res-loc {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    font-family: var(--font-body);
    font-size: 0.85rem;
    color: #ffffff;
    letter-spacing: 0.04em;
}

.pin-icon {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
    color: #ffffff;
}

.res-desc {
    font-family: var(--font-body);
    font-size: clamp(0.78rem, 1vw, 0.9rem);
    color: #ffffff;
    line-height: 1.72;
}

.res-btn {
    display: inline-block;
    align-self: flex-end;
    margin-top: 0.6rem;
    padding: 0.6rem 1.8rem;
    background: #9EAFBA;
    border: none;
    border-radius: 50px;
    font-family: var(--font-body);
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #292D14;
    transition: opacity 0.2s;
    cursor: pointer;
}

.res-btn:hover { opacity: 0.82; }

/* ─── FOOTER ─── */
.res-footer {
    display: flex;
    justify-content: center;
    padding: 3.5rem 0 0.5rem;
    position: relative;
    z-index: 20;
}

.res-view-all {
    background: none;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: #E6E5DA;
    font-family: var(--font-body);
    font-size: 0.75rem;
    font-weight: 400;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    transition: opacity 0.2s;
    padding: 0.75rem 1.5rem;
    min-height: 44px;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
    position: relative;
    z-index: 5;
}

.res-view-all:hover { opacity: 0.65; }

.res-chevron {
    font-size: 1.5rem;
    line-height: 1;
    display: inline-block;
    transition: transform 0.35s ease;
}

.res-chevron.is-flipped { transform: rotate(180deg); }


/* ══════════════════════════════════════
   RESIDENCES — TABLET (≤1024px)
══════════════════════════════════════ */
@media (max-width: 1024px) {
    .res-card { width: 90%; }

    .res-img-wrap { flex: 0 0 52%; width: 52%; }

    .res-info { width: 54%; }

    .res-img-left  .res-info { margin-left:  -6%; }
    .res-img-right .res-info { margin-right: -6%; }
}


/* ══════════════════════════════════════
   RESIDENCES — MOBILE (≤768px)
══════════════════════════════════════ */
@media (max-width: 768px) {
    .residences {
        padding: 4rem 0 0;
        background-size: cover;
        background-position: center top;
    }

    .res-footer {
        background: url('images/GREEN-background.png') center center / cover no-repeat;
        padding: 2rem 0 3rem;
        position: relative;
        z-index: 25;
    }

    .res-header { margin-bottom: 2.5rem; }

    .res-section-title { font-size: clamp(2.6rem, 10vw, 3.8rem); }

    .res-cards  { gap: 2.5rem; padding-bottom: 2.5rem; }
    .res-extra  { gap: 2.5rem; padding-top: 2rem; padding-bottom: 2.5rem; }

    /* Stack: image on top, info below — always */
    .res-card {
        flex-direction: column !important;
        width: 88%;
        align-items: stretch;
    }

    /* img-right HTML order is (info, img); reverse so image appears on top */
    .res-card.res-img-right { flex-direction: column-reverse !important; }

    .res-img-wrap {
        flex: none;
        width: 100%;
    }

    /* Landscape images on mobile, flat bottom merges with info panel */
    .res-img-wrap img {
        aspect-ratio: 4 / 3;
        height: auto;
        min-height: 200px;
        border-radius: 20px 20px 0 0;
    }

    /* On mobile — remove stacking context so nothing blocks the footer button */
    .res-img-wrap {
        position: static;
        z-index: auto;
    }

    .res-info {
        flex: none;
        width: 100%;
        margin-left:  0 !important;
        margin-right: 0 !important;
        background: rgba(30, 35, 12, 0.88);
        border-radius: 0 0 20px 20px;
        border-top: none;
        padding: 1.75rem 1.5rem 1.5rem;
        /* Remove stacking context on mobile — prevents hit-test blocking */
        position: static;
        z-index: auto;
        transform: none;
    }

    .res-card.res-img-right .res-info {
        border-radius: 0 0 20px 20px;
        border-top: none;
    }

    .res-name { font-size: clamp(1.9rem, 8vw, 2.8rem); }

    .res-btn {
        align-self: flex-start;
        margin-top: 0.25rem;
    }
}


/* ══════════════════════════════════════
   STATS + CONTACT SECTION
══════════════════════════════════════ */
.sc-contact {
    background-image: url('images/background2-white.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

/* ── Stat Cards ── */
.stat-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    align-items: start; /* each card its own height; card 2 (2026) is taller */
    gap: 1.5rem;
    padding: 4rem 3rem 4rem;
    max-width: 1440px;
    margin: 0 auto;
}

/* Outer wrapper — no overflow, allows number to bleed below image */
.stat-wrap {
    position: relative;
}

/* Image box — clips image to rounded rect */
.stat-img-box {
    position: relative;
    border-radius: 17px;
    overflow: hidden;
    aspect-ratio: 3 / 4;
}

.stat-img-box img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.stat-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to bottom,
        rgba(230,229,218,0)   45%,
        rgba(230,229,218,0.75) 100%
    );
    transition: background 0.45s ease;
}

.stat-wrap:hover .stat-overlay {
    background: linear-gradient(
        to bottom,
        rgba(230,229,218,0)  30%,
        rgba(41,45,20,0.92) 100%
    );
}

/*
 * stat-foot: pulled UP by margin-top so the number straddles the card bottom.
 * negative margin ≈ half the visual cap-height of the number,
 * putting the top half inside the image and bottom half below it.
 */
.stat-foot {
    display: flex;
    flex-direction: row;
    align-items: flex-end;
    gap: 1rem;
    margin-top: -5.5vw;
    padding: 0 0.75rem;
    position: relative;
    z-index: 2;
}

.stat-n {
    font-family: var(--font-head);
    font-size: clamp(4rem, 13vw, 12rem);
    font-weight: 400;
    color: #545532;
    line-height: 0.85;
    letter-spacing: 0.05em;
    text-transform: none;
    transition: color 0.45s ease;
    flex-shrink: 0;
}

.stat-wrap:hover .stat-n,
.stat-wrap:hover .stat-l {
    color: #9EAFBA;
}

.stat-l {
    font-family: var(--font-body);
    font-size: clamp(0.7rem, 1vw, 0.95rem);
    font-weight: 700;
    color: #292D14;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    line-height: 1.3;
    padding-bottom: 0.5rem;
    transition: color 0.45s ease;
    flex-shrink: 1;
}

/* ── Contact block ── */
.contact-inner {
    max-width: 1400px;
    margin: 0 auto;
    padding: 5rem 4rem 7rem;
    text-align: center;
}

.contact-form-wrap {
    max-width: 860px;
    margin: 0 auto;
    text-align: left;
}

.contact-eyebrow {
    font-family: var(--font-body);
    font-size: 0.8125rem;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: #292D14;
    margin: 0 0 1.5rem;
}

.contact-h {
    font-family: var(--font-head);
    font-size: clamp(2rem, 4.9vw, 4.375rem);
    font-weight: 400;
    color: #292D14;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    line-height: 1.12;
    margin: 0 auto 3.5rem;
    will-change: opacity, transform;
}

/* ── Form ── */
.cform {
    display: flex;
    flex-direction: column;
    gap: 0;
    text-align: left;
}

.cf-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0 3rem;
    margin-bottom: 2rem;
}

.cf-row-full {
    grid-template-columns: 1fr;
}

.cf-field {
    display: flex;
    flex-direction: column;
    position: relative;
}

.cf-field input,
.cf-field textarea {
    font-family: var(--font-body);
    font-size: 0.9375rem;
    color: #292D14;
    background: transparent;
    border: none;
    border-bottom: 1px solid #545532;
    border-radius: 0;
    outline: none;
    padding: 0.75rem 0;
    width: 100%;
    resize: none;
    transition: border-color 0.2s;
    -webkit-appearance: none;
}

.cf-field input::placeholder,
.cf-field textarea::placeholder {
    color: #545532;
    opacity: 0.7;
}

.cf-field input:focus,
.cf-field textarea:focus {
    border-bottom-color: #292D14;
}

.cf-field input.cf-invalid,
.cf-field textarea.cf-invalid {
    border-bottom-color: #c0392b;
}

.cf-err {
    font-family: var(--font-body);
    font-size: 0.75rem;
    color: #c0392b;
    margin-top: 0.35rem;
    min-height: 1rem;
}

/* Phone row */
.cf-phone-row {
    display: flex;
    align-items: center;
    border-bottom: 1px solid #545532;
    transition: border-color 0.2s;
}

.cf-phone-row:focus-within {
    border-color: #292D14;
}

.cf-phone-field .cf-phone-row input {
    border: none;
    flex: 1;
}

.cf-phone-field .cf-phone-row input:focus {
    border: none;
}

.cf-cc-wrap {
    position: relative;
    flex-shrink: 0;
}

.cf-cc-btn {
    display: flex;
    align-items: center;
    gap: 0.3rem;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0.75rem 0.6rem 0.75rem 0;
    font-family: var(--font-body);
    font-size: 0.9375rem;
    color: #292D14;
    outline: none;
    white-space: nowrap;
}

.cf-cc-btn .cf-flag { font-size: 1.1em; }
.cf-cc-btn .cf-dial { font-size: 0.9em; color: #545532; }
.cf-chev { transition: transform 0.2s; flex-shrink: 0; }
.cf-cc-btn[aria-expanded="true"] .cf-chev { transform: rotate(180deg); }

.cf-cc-drop {
    position: absolute;
    top: calc(100% + 4px);
    left: 0;
    min-width: 220px;
    background: #fff;
    border: 1px solid rgba(84,85,50,0.25);
    border-radius: 8px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.12);
    z-index: 200;
    max-height: 280px;
    overflow-y: auto;
    padding: 0.4rem 0;
    list-style: none;
    margin: 0;
}

.cf-cc-drop li {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.5rem 1rem;
    cursor: pointer;
    font-family: var(--font-body);
    font-size: 0.875rem;
    color: #292D14;
    transition: background 0.15s;
}

.cf-cc-drop li:hover,
.cf-cc-drop li:focus {
    background: rgba(84,85,50,0.08);
    outline: none;
}

.cf-cc-drop .cc-flag { font-size: 1.1em; }
.cf-cc-drop .cc-name { flex: 1; }
.cf-cc-drop .cc-dial { color: #545532; font-size: 0.8125rem; }

/* Success state */
.cf-success-wrap {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 4rem 2rem;
    max-width: 560px;
    margin: 0 auto;
    gap: 1.25rem;
}

.cf-success-icon svg {
    display: block;
}

.cf-success-title {
    font-family: var(--font-head);
    font-size: clamp(2rem, 4vw, 3.5rem);
    font-weight: 400;
    color: #292D14;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    margin: 0;
}

.cf-success-msg {
    font-family: var(--font-body);
    font-size: 1rem;
    color: #545532;
    line-height: 1.7;
    margin: 0;
    max-width: 420px;
}

.cf-success-reset {
    margin-top: 0.5rem;
    font-family: var(--font-body);
    font-size: 0.8125rem;
    font-weight: 500;
    letter-spacing: 0.1em;
    color: #545532;
    background: transparent;
    border: 1px solid rgba(84,85,50,0.5);
    border-radius: 50px;
    padding: 0.65rem 1.75rem;
    cursor: pointer;
    transition: background 0.2s, color 0.2s;
}

.cf-success-reset:hover {
    background: #545532;
    color: #E6E5DA;
}

/* Submit */
.cf-submit-wrap {
    display: flex;
    justify-content: center;
    padding-top: 2.5rem;
}

.contact-cta {
    font-family: var(--font-body);
    font-size: 0.875rem;
    font-weight: 500;
    letter-spacing: 0.06em;
    color: #E6E5DA;
    background: #545532;
    border: none;
    border-radius: 50px;
    padding: 1rem 2.5rem;
    cursor: pointer;
    transition: background 0.25s, transform 0.15s;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
    min-height: 48px;
}

.contact-cta:hover { background: #3d4020; }
.contact-cta:active { transform: scale(0.97); }

/*
 * Card 2 ("2026") needs a deeper pull than cards 1 & 3:
 * overlap = full "20" line height + half "26" line height
 * ≈ (13vw × 0.85) + (13vw × 0.85 / 2) ≈ 11vw + 5.5vw = 16.5vw
 * Only applied above the mobile breakpoint (mobile is untouched).
 */
@media (min-width: 769px) {
    .stat-wrap:nth-child(2) .stat-foot {
        margin-top: -16.5vw;
    }
}

/* ── Responsive ── */
@media (max-width: 900px) {
    .stat-cards { padding: 3rem 2rem 3rem; gap: 1.25rem; }
    .stat-n { font-size: clamp(4rem, 16vw, 12rem); }
    .stat-foot { margin-top: -4.5vw; }
    /* Recalculate card-2 overlap at 16vw font: (16×0.85) + (16×0.85/2) ≈ 20vw */
    .stat-wrap:nth-child(2) .stat-foot { margin-top: -20vw; }
}

@media (max-width: 768px) {
    .stat-cards {
        grid-template-columns: 1fr;
        padding: 2.5rem 1.5rem 2rem;
        gap: 0;          /* cards stack; bottom of each card's number acts as gap */
    }

    /* Extra space between stacked cards */
    .stat-wrap { margin-bottom: 3.5rem; }
    .stat-wrap:last-child { margin-bottom: 0; }

    /* Keep portrait ratio on mobile */
    .stat-img-box { aspect-ratio: 3 / 4; }

    /* Scale number to mobile vw */
    .stat-n { font-size: clamp(4rem, 26vw, 8rem); max-width: 55%; }

    .stat-l { font-size: clamp(0.75rem, 3.5vw, 1rem); }

    .stat-foot { margin-top: -12vw; gap: 0.75rem; padding: 0 0.5rem; }

    .contact-inner { padding: 3.5rem 1.5rem 5rem; }

    .contact-h { font-size: clamp(1.8rem, 7.5vw, 3rem); }

    .cf-row {
        grid-template-columns: 1fr;
        gap: 0;
        margin-bottom: 0;
    }

    .cf-field { margin-bottom: 1.75rem; }

    .cf-row-full .cf-field { margin-bottom: 1.75rem; }
}


/* ══════════════════════════════════════
   FOOTER
══════════════════════════════════════ */
.site-footer {
    background-image: url('images/GREEN-background.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    min-height: 420px;
    display: flex;
    align-items: center;
}

.footer-inner {
    width: 100%;
    padding: 3.5rem 6% 2.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0;
}

/* Logo */
.footer-logo-wrap {
    margin-bottom: 2.5rem;
}

.footer-logo {
    height: 90px;
    width: auto;
    display: block;
}

/* Nav */
.footer-nav {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.5rem 3rem;
    margin-bottom: 2.5rem;
    width: 100%;
}

.footer-nav-link {
    font-family: var(--font-body);
    font-size: 0.8125rem;
    font-weight: 400;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: rgba(230,229,218,0.85);
    text-decoration: none;
    transition: color 0.2s;
    white-space: nowrap;
}

.footer-nav-link:hover { color: #fff; }

/* Divider */
.footer-rule {
    width: 100%;
    border: none;
    border-top: 1px solid rgba(230,229,218,0.25);
    margin: 0 0 1.75rem;
}

/* Bottom bar */
.footer-bottom {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.footer-social {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.footer-social-icons-row {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.footer-social-label {
    font-family: var(--font-body);
    font-size: 0.8125rem;
    color: rgba(230,229,218,0.7);
    letter-spacing: 0.05em;
    margin-right: 0.25rem;
}

.footer-social-icon {
    color: rgba(230,229,218,0.75);
    display: flex;
    align-items: center;
    transition: color 0.2s;
    text-decoration: none;
}

.footer-social-icon:hover { color: #fff; }

.footer-copy {
    font-family: var(--font-body);
    font-size: 0.8125rem;
    color: rgba(230,229,218,0.7);
    letter-spacing: 0.03em;
    margin: 0;
}

/* ── Footer responsive ── */
@media (max-width: 768px) {
    .site-footer {
        min-height: unset;
        align-items: center;
    }

    .footer-inner {
        padding: 3rem 1.5rem 2.5rem;
        align-items: center;
        text-align: center;
    }

    .footer-logo { height: 70px; }

    .footer-logo-wrap { margin-bottom: 2rem; }

    .footer-nav {
        flex-direction: column;
        gap: 1.1rem;
        margin-bottom: 2rem;
    }

    .footer-nav-link { font-size: 0.875rem; }

    .footer-bottom {
        flex-direction: column;
        align-items: center;
        gap: 1.25rem;
    }

    .footer-social {
        flex-direction: column;
        align-items: center;
        gap: 0.85rem;
    }

    .footer-social-label { margin-right: 0; }

    .footer-social-icons-row {
        display: flex;
        gap: 1.25rem;
    }

    .footer-copy { text-align: center; }
}
