/* ============================================
   Brookfield Gardens Condo 5 — Styles
   Emerald Green + Cream | Editorial Bold
   ============================================ */

/* ---------- Reset & Base ---------- */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

:root {
    --emerald-950: #042f23;
    --emerald-900: #064e3b;
    --emerald-800: #065f46;
    --emerald-700: #047857;
    --emerald-600: #059669;
    --emerald-500: #10b981;
    --cream-50:  #f8faf5;
    --cream-100: #f0f4e8;
    --cream-200: #e3ebd6;
    --cream-300: #d1dbbc;
    --warm-white: #fafdf7;
    --text-dark:   #0a1f14;
    --text-mid:    #2d4a3a;
    --text-light:  #5a7d68;
    --text-on-dark:#f0f4e8;
    --text-on-dark-muted: #a7c4b0;
    --font-serif:  'Playfair Display', Georgia, 'Times New Roman', serif;
    --font-sans:   'Inter', system-ui, -apple-system, sans-serif;
    --radius-sm:   8px;
    --radius-md:   12px;
    --radius-lg:   20px;
    --radius-xl:   28px;
    --shadow-sm:   0 1px 3px rgba(4,47,35,0.08);
    --shadow-md:   0 4px 20px rgba(4,47,35,0.10);
    --shadow-lg:   0 12px 40px rgba(4,47,35,0.14);
    --transition:  0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-sans);
    color: var(--text-dark);
    background: var(--warm-white);
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: inherit;
    text-decoration: none;
}

button {
    font-family: inherit;
    cursor: pointer;
    border: none;
    background: none;
}

ul { list-style: none; }

/* ---------- Typography ---------- */
.section-eyebrow {
    font-family: var(--font-sans);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--emerald-600);
    margin-bottom: 1rem;
}

.section-eyebrow--light {
    color: var(--cream-300);
}

.section-heading {
    font-family: var(--font-serif);
    font-size: clamp(2rem, 4.5vw, 3.25rem);
    font-weight: 600;
    line-height: 1.15;
    color: var(--text-dark);
    margin-bottom: 1.25rem;
}

.section-heading--light {
    color: var(--text-on-dark);
}

/* ---------- Buttons ---------- */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-family: var(--font-sans);
    font-size: 0.9rem;
    font-weight: 500;
    padding: 0.8rem 1.6rem;
    border-radius: 50px;
    transition: var(--transition);
    white-space: nowrap;
}

.btn--primary {
    background: var(--emerald-700);
    color: #fff;
    box-shadow: 0 4px 14px rgba(4,120,87,0.35);
}

.btn--primary:hover {
    background: var(--emerald-600);
    box-shadow: 0 6px 20px rgba(4,120,87,0.45);
    transform: translateY(-1px);
}

.btn--ghost-light {
    background: rgba(255,255,255,0.12);
    color: #fff;
    border: 1px solid rgba(255,255,255,0.25);
    backdrop-filter: blur(4px);
}

.btn--ghost-light:hover {
    background: rgba(255,255,255,0.22);
    transform: translateY(-1px);
}

.btn--outline {
    background: transparent;
    color: var(--emerald-700);
    border: 1.5px solid var(--emerald-700);
}

.btn--outline:hover {
    background: var(--emerald-700);
    color: #fff;
}

.btn--full {
    width: 100%;
    justify-content: center;
}

/* ---------- Navigation ---------- */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(248,250,245,0.92);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(6,95,70,0.08);
    transition: var(--transition);
}

.nav.scrolled {
    background: rgba(248,250,245,0.97);
    box-shadow: var(--shadow-sm);
}

.nav__inner {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 2rem;
    height: 72px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav__brand {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-family: var(--font-serif);
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--emerald-900);
}

.nav__logo {
    color: var(--emerald-700);
}

.nav__brand-accent {
    color: var(--emerald-500);
    font-weight: 400;
}

.nav__links {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.nav__link {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-mid);
    transition: var(--transition);
    position: relative;
}

.nav__link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 1.5px;
    background: var(--emerald-600);
    transition: var(--transition);
}

.nav__link:hover {
    color: var(--emerald-700);
}

.nav__link:hover::after {
    width: 100%;
}

.nav__link--cta {
    background: var(--emerald-700);
    color: #fff !important;
    padding: 0.55rem 1.2rem;
    border-radius: 50px;
    font-size: 0.85rem;
}

.nav__link--cta::after { display: none; }

.nav__link--cta:hover {
    background: var(--emerald-600);
}

.nav__toggle {
    display: none;
    color: var(--emerald-800);
    padding: 0.5rem;
}

/* Mobile overlay */
.nav__overlay {
    position: fixed;
    inset: 0;
    z-index: 999;
    background: rgba(4,47,35,0.6);
    backdrop-filter: blur(4px);
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
}

.nav__overlay.active {
    opacity: 1;
    visibility: visible;
}

.nav__overlay-links {
    position: absolute;
    right: 0;
    top: 0;
    bottom: 0;
    width: min(320px, 85vw);
    background: var(--cream-50);
    padding: 6rem 2rem 2rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    transform: translateX(100%);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.nav__overlay.active .nav__overlay-links {
    transform: translateX(0);
}

.nav__overlay-link {
    font-family: var(--font-serif);
    font-size: 1.5rem;
    font-weight: 500;
    color: var(--text-dark);
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--cream-200);
    transition: var(--transition);
}

.nav__overlay-link:hover {
    color: var(--emerald-700);
    padding-left: 0.5rem;
}

.nav__overlay-link--cta {
    border-bottom: none;
    margin-top: 1rem;
    background: var(--emerald-700);
    color: #fff;
    text-align: center;
    border-radius: 50px;
    padding: 0.85rem;
    font-family: var(--font-sans);
    font-size: 1rem;
}

/* ---------- Hero ---------- */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: var(--emerald-950);
}

.hero__bg {
    position: absolute;
    inset: 0;
    z-index: 1;
}

.hero__bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.55;
}

.hero__scrim {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        180deg,
        rgba(4,47,35,0.55) 0%,
        rgba(4,47,35,0.70) 50%,
        rgba(4,47,35,0.88) 100%
    );
}

.hero__content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 820px;
    padding: 2rem;
    padding-top: 5rem;
}

.hero__eyebrow {
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--cream-300);
    margin-bottom: 1.5rem;
}

.hero__headline {
    font-family: var(--font-serif);
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    font-weight: 600;
    line-height: 1.1;
    color: #fff;
    margin-bottom: 1.5rem;
}

.hero__headline em {
    font-style: italic;
    color: var(--cream-200);
}

.hero__sub {
    font-size: clamp(1rem, 1.5vw, 1.15rem);
    color: var(--text-on-dark-muted);
    line-height: 1.7;
    max-width: 580px;
    margin: 0 auto 2.5rem;
}

.hero__actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.hero__scroll {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.4rem;
    color: var(--text-on-dark-muted);
    font-size: 0.7rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    animation: float 2.5s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateX(-50%) translateY(0); }
    50% { transform: translateX(-50%) translateY(6px); }
}

/* ---------- Intro Strip ---------- */
.intro {
    background: var(--emerald-900);
    padding: 3rem 2rem;
}

.intro__inner {
    max-width: 900px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.intro__stat {
    text-align: center;
    flex: 1;
}

.intro__stat-num {
    display: block;
    font-family: var(--font-serif);
    font-size: 2.25rem;
    font-weight: 700;
    color: var(--cream-200);
    line-height: 1;
    margin-bottom: 0.4rem;
}

.intro__stat-label {
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--text-on-dark-muted);
}

.intro__divider {
    width: 1px;
    height: 48px;
    background: rgba(167,196,176,0.3);
    flex-shrink: 0;
}

/* ---------- About ---------- */
.about {
    padding: 7rem 2rem;
    background: var(--warm-white);
}

.about__container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.about__text .section-heading {
    margin-bottom: 1.5rem;
}

.about__text p {
    color: var(--text-mid);
    font-size: 1.05rem;
    line-height: 1.8;
    margin-bottom: 1rem;
}

.about__image {
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.about__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    aspect-ratio: 7/5.2;
}

/* ---------- Amenities ---------- */
.amenities {
    background: var(--emerald-900);
    padding: 7rem 2rem;
}

.amenities__container {
    max-width: 1200px;
    margin: 0 auto;
}

.amenities__header {
    text-align: center;
    max-width: 640px;
    margin: 0 auto 4rem;
}

.amenities__header .section-heading {
    color: #fff;
}

.amenities__lead {
    color: var(--text-on-dark-muted);
    font-size: 1.05rem;
    line-height: 1.7;
}

.amenities__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.amenity-card {
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: var(--radius-md);
    padding: 2rem;
    transition: var(--transition);
}

.amenity-card:hover {
    background: rgba(255,255,255,0.10);
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(0,0,0,0.2);
}

.amenity-card__icon {
    width: 52px;
    height: 52px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-sm);
    background: rgba(16,185,129,0.2);
    color: var(--emerald-400);
    margin-bottom: 1.25rem;
}

.amenity-card__title {
    font-family: var(--font-serif);
    font-size: 1.2rem;
    font-weight: 600;
    color: #fff;
    margin-bottom: 0.6rem;
}

.amenity-card__desc {
    font-size: 0.9rem;
    color: var(--text-on-dark-muted);
    line-height: 1.65;
}

/* ---------- Spaces / Gallery ---------- */
.spaces {
    padding: 7rem 2rem;
    background: var(--cream-50);
}

.spaces__container {
    max-width: 1200px;
    margin: 0 auto;
}

.spaces__header {
    text-align: center;
    max-width: 600px;
    margin: 0 auto 4rem;
}

.spaces__grid {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    grid-template-rows: auto auto;
    gap: 1.25rem;
}

.space-card {
    border-radius: var(--radius-md);
    overflow: hidden;
    position: relative;
    cursor: pointer;
}

.space-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.space-card:hover img {
    transform: scale(1.05);
}

.space-card__caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 1.5rem;
    background: linear-gradient(transparent, rgba(4,47,35,0.85));
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    opacity: 0;
    transition: var(--transition);
}

.space-card:hover .space-card__caption {
    opacity: 1;
}

.space-card__tag {
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--cream-300);
}

.space-card__name {
    font-family: var(--font-serif);
    font-size: 1.15rem;
    font-weight: 600;
    color: #fff;
}

.space-card--large {
    grid-column: span 7;
    grid-row: span 2;
    min-height: 480px;
}

.space-card:not(.space-card--large) {
    min-height: 230px;
}

/* ---------- Location ---------- */
.location {
    padding: 7rem 2rem;
    background: var(--warm-white);
}

.location__container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.location__text .section-heading {
    margin-bottom: 1.25rem;
}

.location__text > p {
    color: var(--text-mid);
    font-size: 1.05rem;
    line-height: 1.8;
    margin-bottom: 2rem;
}

.location__highlights {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 2rem;
}

.location__highlights li {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: var(--text-mid);
    font-size: 0.95rem;
}

.location__highlights li svg {
    color: var(--emerald-600);
    flex-shrink: 0;
}

.location__map {
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    min-height: 420px;
}

/* ---------- CTA / Contact ---------- */
.cta {
    background: var(--emerald-900);
    padding: 7rem 2rem;
}

.cta__container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: start;
}

.cta__left .section-heading {
    margin-bottom: 1.25rem;
}

.cta__desc {
    color: var(--text-on-dark-muted);
    font-size: 1.05rem;
    line-height: 1.75;
    margin-bottom: 2.5rem;
}

.cta__phone {
    color: var(--cream-200);
    text-decoration: underline;
    text-underline-offset: 3px;
    transition: var(--transition);
}

.cta__phone:hover {
    color: #fff;
}

.cta__info {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.cta__info-item {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    color: var(--text-on-dark);
    font-size: 0.95rem;
    line-height: 1.6;
}

.cta__info-item svg {
    color: var(--emerald-400);
    flex-shrink: 0;
    margin-top: 2px;
}

.cta__phone-link {
    color: var(--cream-200);
    font-size: 1.25rem;
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition);
}

.cta__phone-link:hover {
    color: #fff;
}

/* Contact Form */
.contact-form {
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: var(--radius-lg);
    padding: 2.5rem;
}

.contact-form__title {
    font-family: var(--font-serif);
    font-size: 1.5rem;
    font-weight: 600;
    color: #fff;
    margin-bottom: 1.75rem;
}

.contact-form__group {
    margin-bottom: 1.25rem;
}

.contact-form__label {
    display: block;
    font-size: 0.8rem;
    font-weight: 500;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--text-on-dark-muted);
    margin-bottom: 0.5rem;
}

.contact-form__input,
.contact-form__textarea {
    width: 100%;
    padding: 0.8rem 1rem;
    background: rgba(255,255,255,0.07);
    border: 1px solid rgba(255,255,255,0.15);
    border-radius: var(--radius-sm);
    color: #fff;
    font-family: var(--font-sans);
    font-size: 0.95rem;
    transition: var(--transition);
    outline: none;
}

.contact-form__input::placeholder,
.contact-form__textarea::placeholder {
    color: var(--text-on-dark-muted);
}

.contact-form__input:focus,
.contact-form__textarea:focus {
    border-color: var(--emerald-500);
    background: rgba(255,255,255,0.10);
}

.contact-form__textarea {
    resize: vertical;
    min-height: 100px;
}

.contact-form__success {
    display: none;
    margin-top: 1rem;
    padding: 1rem;
    background: rgba(16,185,129,0.2);
    border: 1px solid rgba(16,185,129,0.4);
    border-radius: var(--radius-sm);
    color: var(--cream-200);
    font-size: 0.9rem;
    text-align: center;
}

.contact-form__success.visible {
    display: block;
}

/* ---------- Footer ---------- */
.footer {
    background: var(--emerald-950);
    padding: 3.5rem 2rem;
}

.footer__inner {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 1.5rem;
}

.footer__brand {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.footer__logo {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-family: var(--font-serif);
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--cream-200);
}

.footer__logo svg {
    color: var(--emerald-500);
}

.footer__tagline {
    font-size: 0.9rem;
    color: var(--text-on-dark-muted);
}

.footer__details {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.9rem;
    color: var(--text-on-dark-muted);
}

.footer__phone {
    color: var(--emerald-400);
    font-weight: 500;
    transition: var(--transition);
}

.footer__phone:hover {
    color: #fff;
}

.footer__copy {
    font-size: 0.8rem;
    color: var(--text-on-dark-muted);
    opacity: 0.7;
}

/* ---------- Scroll Reveal (progressive enhancement) ---------- */
@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 0;
        transform: translateY(24px);
        transition: opacity 0.7s cubic-bezier(0.4, 0, 0.2, 1), transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
    }

    .reveal.revealed {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
    .amenities__grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .space-card--large {
        grid-column: span 12;
        min-height: 360px;
    }

    .space-card:not(.space-card--large) {
        grid-column: span 6;
        min-height: 200px;
    }
}

@media (max-width: 768px) {
    .nav__links { display: none; }
    .nav__toggle { display: flex; align-items: center; justify-content: center; }

    .hero__content { padding-top: 4rem; }

    .hero__headline {
        font-size: clamp(2rem, 8vw, 3rem);
    }

    .intro__inner {
        flex-wrap: wrap;
        justify-content: center;
        gap: 1.5rem;
    }

    .intro__divider { display: none; }

    .about__container,
    .location__container,
    .cta__container {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }

    .about__image { order: -1; }

    .amenities__grid {
        grid-template-columns: 1fr;
    }

    .spaces__grid {
        grid-template-columns: 1fr;
    }

    .space-card--large {
        grid-column: span 1;
        min-height: 280px;
    }

    .space-card:not(.space-card--large) {
        grid-column: span 1;
        min-height: 200px;
    }

    .space-card__caption { opacity: 1; }

    .location__map { min-height: 280px; }

    .cta__container { gap: 3rem; }
}

@media (max-width: 480px) {
    .nav__inner { padding: 0 1.25rem; }

    .hero__actions {
        flex-direction: column;
        align-items: center;
    }

    .btn { width: 100%; justify-content: center; }

    .intro__stat-num { font-size: 1.75rem; }

    .contact-form { padding: 1.5rem; }
}
