/* ===================================================
   XYLON FUNES REAL ESTATE — style.css
   =================================================== */

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

:root {
    --gold:      #c9a96e;
    --gold-dim:  rgba(201, 169, 110, 0.15);
    --dark:      #0a0a0a;
    --dark2:     #111111;
    --dark3:     #161616;
    --white:     #ffffff;
    --gray:      #888888;
}

html { scroll-behavior: smooth; }

body {
    font-family: 'Montserrat', sans-serif;
    background: var(--dark);
    color: var(--white);
    overflow-x: hidden;
}

img {
    display: block;
    width: 100%;
}

/* ===== UTILITY CLASSES ===== */
.section-label {
    font-size: 10px;
    letter-spacing: 5px;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 18px;
}

.section-title {
    font-family: 'Playfair Display', serif;
    font-size: clamp(34px, 5vw, 62px);
    font-weight: 700;
    line-height: 1.08;
    margin-bottom: 22px;
}

.section-body {
    font-size: 14px;
    line-height: 1.95;
    color: rgba(255, 255, 255, 0.6);
}

.section-body.mt { margin-top: 16px; }

.btn-gold {
    display: inline-block;
    background: var(--gold);
    color: var(--dark);
    padding: 14px 38px;
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 3px;
    text-transform: uppercase;
    text-decoration: none;
    border: 1px solid var(--gold);
    transition: background 0.3s, color 0.3s;
    cursor: pointer;
    font-family: 'Montserrat', sans-serif;
}
.btn-gold:hover {
    background: transparent;
    color: var(--gold);
}

.btn-outline {
    display: inline-block;
    background: transparent;
    color: var(--white);
    padding: 14px 38px;
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 3px;
    text-transform: uppercase;
    text-decoration: none;
    border: 1px solid rgba(255, 255, 255, 0.45);
    transition: border-color 0.3s, background 0.3s;
    cursor: pointer;
}
.btn-outline:hover {
    border-color: var(--white);
    background: rgba(255, 255, 255, 0.06);
}

/* ===== SCROLL REVEAL ===== */
.reveal {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ===== NAVBAR ===== */
#navbar {
    position: fixed;
    inset: 0 0 auto 0;
    z-index: 200;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 22px 48px;
    transition: background 0.4s, padding 0.3s;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.65), transparent);
}

#navbar.scrolled {
    background: rgba(10, 10, 10, 0.96);
    padding: 16px 48px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

.nav-links {
    display: flex;
    gap: 36px;
    list-style: none;
}

.nav-links a {
    color: rgba(255, 255, 255, 0.85);
    text-decoration: none;
    font-size: 10px;
    font-weight: 500;
    letter-spacing: 2.5px;
    text-transform: uppercase;
    transition: color 0.25s;
}
.nav-links a:hover { color: var(--gold); }

.nav-logo {
    text-align: center;
    text-decoration: none;
    flex-shrink: 0;
}
.nav-logo .monogram {
    font-family: 'Playfair Display', serif;
    font-size: 30px;
    line-height: 1;
    color: var(--white);
    letter-spacing: 2px;
}
.nav-logo .wordmark {
    font-size: 8px;
    letter-spacing: 5px;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.7);
    margin-top: 5px;
}

.nav-right {
    display: flex;
    align-items: center;
    gap: 28px;
}

/* ===== LANGUAGE SWITCHER ===== */
.lang-switch {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 2px;
}
.lang-active {
    color: var(--gold);
}
.lang-sep {
    color: rgba(255, 255, 255, 0.2);
}
.lang-link {
    color: rgba(255, 255, 255, 0.5);
    text-decoration: none;
    transition: color 0.25s;
}
.lang-link:hover { color: var(--white); }

.nav-cta {
    background: transparent;
    color: var(--gold);
    border: 1px solid var(--gold);
    padding: 9px 22px;
    font-family: 'Montserrat', sans-serif;
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 2.5px;
    text-transform: uppercase;
    text-decoration: none;
    transition: background 0.3s, color 0.3s;
}
.nav-cta:hover {
    background: var(--gold);
    color: var(--dark);
}

.hamburger {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 28px;
    height: 28px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
}
.hamburger span {
    display: block;
    height: 1px;
    background: var(--white);
    transition: transform 0.3s, opacity 0.3s;
}
.hamburger.open span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* ===== MOBILE MENU ===== */
#mobile-menu {
    position: fixed;
    inset: 0;
    z-index: 190;
    background: rgba(10, 10, 10, 0.98);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 40px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.35s;
}
#mobile-menu.open {
    opacity: 1;
    pointer-events: all;
}
#mobile-menu a {
    font-family: 'Playfair Display', serif;
    font-size: 36px;
    color: var(--white);
    text-decoration: none;
    transition: color 0.25s;
}
#mobile-menu a:hover { color: var(--gold); }

/* ===== HERO ===== */
#hero {
    position: relative;
    height: 100vh;
    min-height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    inset: 0;
    background-image: url('https://images.unsplash.com/photo-1600596542815-ffad4c1539a9?w=1920&q=80');
    background-size: cover;
    background-position: center 40%;
    transform: scale(1.04);
    transition: transform 8s ease-out;
}
.hero-bg.loaded { transform: scale(1); }

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to bottom,
        rgba(0, 0, 0, 0.3) 0%,
        rgba(0, 0, 0, 0.52) 50%,
        rgba(0, 0, 0, 0.72) 100%
    );
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 880px;
    padding: 0 32px;
}

.hero-eyebrow {
    font-size: 10px;
    letter-spacing: 6px;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 20px;
}

.hero-headline {
    font-family: 'Playfair Display', serif;
    font-size: clamp(56px, 9vw, 108px);
    font-weight: 900;
    line-height: 0.95;
    text-transform: uppercase;
    margin-bottom: 28px;
}
.hero-headline em {
    font-style: italic;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.75);
}

.hero-sub {
    font-size: 13px;
    line-height: 1.95;
    color: rgba(255, 255, 255, 0.75);
    max-width: 560px;
    margin: 0 auto 44px;
    font-weight: 300;
}

.hero-btns {
    display: flex;
    gap: 14px;
    justify-content: center;
    flex-wrap: wrap;
}

.hero-scroll-hint {
    position: absolute;
    bottom: 36px;
    right: 48px;
    display: flex;
    align-items: center;
    gap: 14px;
    font-size: 9px;
    letter-spacing: 4px;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
    transition: color 0.25s;
}
.hero-scroll-hint:hover { color: var(--gold); }
.hero-scroll-hint::before {
    content: '';
    display: block;
    width: 44px;
    height: 1px;
    background: currentColor;
}

/* ===== STATS BAR ===== */
#stats {
    background: var(--dark2);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
}

.stat-item {
    flex: 1;
    min-width: 160px;
    text-align: center;
    padding: 52px 32px;
    border-right: 1px solid rgba(255, 255, 255, 0.05);
}
.stat-item:last-child { border-right: none; }

.stat-num {
    font-family: 'Playfair Display', serif;
    font-size: 50px;
    color: var(--gold);
    line-height: 1;
}

.stat-lbl {
    font-size: 9px;
    letter-spacing: 3.5px;
    text-transform: uppercase;
    color: var(--gray);
    margin-top: 12px;
}

/* ===== ABOUT ===== */
#about {
    padding: 120px 48px;
    max-width: 1280px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 100px;
    align-items: center;
}

.about-img-wrap {
    position: relative;
}
.about-img-wrap img {
    aspect-ratio: 3 / 4;
    object-fit: cover;
    object-position: top center;
}
.about-img-border {
    position: absolute;
    bottom: -24px;
    right: -24px;
    width: 56%;
    height: 56%;
    border: 1px solid var(--gold);
    pointer-events: none;
}

.about-badges {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    margin: 36px 0;
}

.badge {
    border: 1px solid rgba(201, 169, 110, 0.35);
    padding: 10px 20px;
    font-size: 10px;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--gold);
}

/* ===== SERVICES ===== */
#services {
    background: var(--dark2);
    padding: 120px 48px;
}

.services-header {
    text-align: center;
    margin-bottom: 70px;
}
.services-header .section-title {
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 0;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    max-width: 1280px;
    margin: 0 auto;
    border: 1px solid rgba(255, 255, 255, 0.06);
}

.service-card {
    padding: 64px 48px;
    border-right: 1px solid rgba(255, 255, 255, 0.06);
    transition: background 0.3s;
}
.service-card:last-child { border-right: none; }
.service-card:hover { background: rgba(255, 255, 255, 0.025); }

.service-num {
    font-family: 'Playfair Display', serif;
    font-size: 52px;
    color: var(--gold-dim);
    line-height: 1;
    margin-bottom: 28px;
}

.service-title {
    font-family: 'Playfair Display', serif;
    font-size: 26px;
    margin-bottom: 16px;
}

.service-body {
    font-size: 13px;
    line-height: 1.95;
    color: rgba(255, 255, 255, 0.55);
}

.service-link {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-top: 28px;
    font-size: 10px;
    letter-spacing: 2.5px;
    text-transform: uppercase;
    color: var(--gold);
    text-decoration: none;
    transition: gap 0.25s;
}
.service-link:hover { gap: 16px; }
.service-link::after { content: '→'; }

/* ===== COMMUNITIES ===== */
#communities {
    padding: 120px 48px;
    max-width: 1280px;
    margin: 0 auto;
}

.communities-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 52px;
    flex-wrap: wrap;
    gap: 20px;
}

.communities-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

.community-card {
    position: relative;
    overflow: hidden;
    cursor: pointer;
}
.community-card img {
    aspect-ratio: 4 / 5;
    object-fit: cover;
    transition: transform 0.65s ease;
}
.community-card:hover img { transform: scale(1.06); }

.community-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.82) 0%, rgba(0, 0, 0, 0.1) 55%);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 36px 32px;
}

.community-name {
    font-family: 'Playfair Display', serif;
    font-size: 28px;
}
.community-state {
    font-size: 10px;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--gold);
    margin-top: 6px;
}

/* ===== TESTIMONIALS ===== */
#testimonials {
    background: var(--dark2);
    padding: 120px 48px;
    text-align: center;
}

#testimonials .section-title {
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 60px;
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2px;
    max-width: 1280px;
    margin: 0 auto;
}

.testimonial-card {
    background: var(--dark3);
    padding: 52px 44px;
    text-align: left;
}

.testimonial-quote {
    font-family: 'Playfair Display', serif;
    font-size: 56px;
    color: var(--gold);
    line-height: 0.7;
    margin-bottom: 20px;
}

.testimonial-body {
    font-size: 14px;
    line-height: 1.9;
    color: rgba(255, 255, 255, 0.65);
    margin-bottom: 32px;
}

.testimonial-name {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.testimonial-loc {
    font-size: 11px;
    color: var(--gold);
    margin-top: 4px;
    letter-spacing: 1px;
}

/* ===== CONTACT ===== */
#contact {
    padding: 130px 48px;
    max-width: 720px;
    margin: 0 auto;
    text-align: center;
}

#contact .section-title { margin-bottom: 16px; }
#contact .section-body {
    max-width: 480px;
    margin: 0 auto 52px;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 14px;
    text-align: left;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}

.contact-form input,
.contact-form textarea,
.contact-form select {
    width: 100%;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--white);
    padding: 17px 22px;
    font-family: 'Montserrat', sans-serif;
    font-size: 12px;
    letter-spacing: 0.5px;
    outline: none;
    transition: border-color 0.3s;
    appearance: none;
}

.contact-form select option { background: #111; }

.contact-form input:focus,
.contact-form textarea:focus,
.contact-form select:focus { border-color: var(--gold); }

.contact-form input::placeholder,
.contact-form textarea::placeholder { color: rgba(255, 255, 255, 0.3); }

.contact-form textarea {
    resize: vertical;
    min-height: 130px;
}

.contact-form button {
    width: 100%;
    padding: 18px;
}

.form-success {
    display: none;
    text-align: center;
    padding: 48px 0;
}
.form-success .check {
    font-size: 48px;
    color: var(--gold);
    margin-bottom: 16px;
}
.form-success p {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.65);
    line-height: 1.8;
}

/* ===== FOOTER ===== */
footer {
    background: var(--dark);
    border-top: 1px solid rgba(255, 255, 255, 0.07);
    padding: 64px 48px 40px;
}

.footer-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding-bottom: 48px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
    flex-wrap: wrap;
    gap: 40px;
}

.footer-logo-wrap .monogram {
    font-family: 'Playfair Display', serif;
    font-size: 36px;
    line-height: 1;
    letter-spacing: 2px;
}
.footer-logo-wrap .wordmark {
    font-size: 9px;
    letter-spacing: 5px;
    text-transform: uppercase;
    color: var(--gold);
    margin-top: 8px;
}
.footer-logo-wrap .tagline {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.4);
    margin-top: 16px;
    max-width: 240px;
    line-height: 1.7;
}

.footer-nav {
    display: flex;
    gap: 64px;
    flex-wrap: wrap;
}

.footer-col h4 {
    font-size: 9px;
    letter-spacing: 4px;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 20px;
}

.footer-col ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-col ul a {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.5);
    text-decoration: none;
    transition: color 0.25s;
}
.footer-col ul a:hover { color: var(--white); }

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 32px;
    flex-wrap: wrap;
    gap: 16px;
}

.footer-copy,
.footer-license {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.28);
    letter-spacing: 0.5px;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 900px) {
    #navbar          { padding: 18px 24px; }
    #navbar.scrolled { padding: 14px 24px; }
    .nav-links       { display: none; }

    #about {
        grid-template-columns: 1fr;
        gap: 48px;
        padding: 80px 24px;
    }
    .about-img-border { display: none; }

    .services-grid    { grid-template-columns: 1fr; }
    .service-card {
        border-right: none;
        border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    }
    .service-card:last-child { border-bottom: none; }

    #communities       { padding: 80px 24px; }
    .communities-grid  { grid-template-columns: 1fr; }

    #testimonials      { padding: 80px 24px; }
    .testimonials-grid { grid-template-columns: 1fr; }

    #contact  { padding: 80px 24px; }
    .form-row { grid-template-columns: 1fr; }

    footer         { padding: 48px 24px 32px; }
    .footer-top    { flex-direction: column; }
    .footer-bottom { flex-direction: column; align-items: flex-start; }

    .hero-scroll-hint { display: none; }

    #stats     { flex-direction: column; align-items: center; }
    .stat-item {
        border-right: none;
        border-bottom: 1px solid rgba(255, 255, 255, 0.05);
        width: 100%;
    }
    .stat-item:last-child { border-bottom: none; }
}
