/* ── Design tokens ── */
:root {
    --navy: #0b1a2e;
    --navy-deep: #071220;
    --navy-light: #132a47;
    --white: #ffffff;
    --off-white: #f7f8fa;
    --gold: #c9a84c;
    --gold-light: #e0c878;
    --gold-dark: #a88a3a;
    --text-muted: #8a9bb5;
    --shadow: 0 4px 24px rgba(7, 18, 32, 0.08);
    --shadow-lg: 0 12px 48px rgba(7, 18, 32, 0.14);
    --radius: 4px;
    --transition: 0.25s ease;
    --font-heading: "Cormorant Garamond", Georgia, serif;
    --font-body: "Inter", system-ui, sans-serif;
    --header-height: 72px;
    --section-padding: 8.5rem;
}

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

html {
    scroll-behavior: smooth;
    scroll-padding-top: var(--header-height);
}

body {
    font-family: var(--font-body);
    font-size: 1rem;
    line-height: 1.6;
    color: var(--navy);
    background-color: var(--white);
    -webkit-font-smoothing: antialiased;
}

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

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

ul {
    list-style: none;
}

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

/* ── Layout ── */
.container {
    width: 100%;
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.section {
    padding: var(--section-padding) 0;
}

.section-alt {
    background-color: var(--off-white);
}

.section-title {
    font-family: var(--font-heading);
    font-size: clamp(2rem, 4vw, 2.75rem);
    font-weight: 600;
    color: var(--navy);
    text-align: center;
    margin-bottom: 3rem;
    letter-spacing: 0.02em;
}

.section-title::after {
    content: "";
    display: block;
    width: 48px;
    height: 2px;
    background: var(--gold);
    margin: 0.75rem auto 0;
}

/* ── Header & nav ── */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    height: var(--header-height);
    background: rgba(11, 26, 46, 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(201, 168, 76, 0.15);
}

.nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.nav-brand {
    font-family: var(--font-heading);
    font-size: 1.35rem;
    font-weight: 600;
    color: var(--white);
    letter-spacing: 0.04em;
    white-space: nowrap;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 0.15rem;
    flex-wrap: nowrap;
}

.nav-links a {
    color: rgba(255, 255, 255, 0.85);
    font-size: 0.72rem;
    font-weight: 500;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    padding: 0.5rem 0.5rem;
    white-space: nowrap;
    transition: color var(--transition);
}

.nav-links a:hover {
    color: var(--gold);
}

.nav-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 40px;
    height: 40px;
    padding: 0;
    background: transparent;
    border: 1px solid rgba(201, 168, 76, 0.35);
    border-radius: var(--radius);
    cursor: pointer;
}

.nav-toggle span {
    display: block;
    width: 18px;
    height: 2px;
    margin: 0 auto;
    background: var(--white);
    transition: transform var(--transition), opacity var(--transition);
}

.site-header.nav-open .nav-toggle span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.site-header.nav-open .nav-toggle span:nth-child(2) {
    opacity: 0;
}

.site-header.nav-open .nav-toggle span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

body.menu-open {
    overflow: hidden;
}

@media (min-width: 1101px) {
    .nav-links {
        margin-left: 1.5rem;
    }
}

@media (min-width: 1280px) {
    .nav-links {
        gap: 0.25rem;
    }

    .nav-links a {
        font-size: 0.8rem;
        letter-spacing: 0.06em;
        padding: 0.5rem 0.75rem;
    }
}

/* ── Hero ── */
#hero {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    min-height: 100svh;
    padding: calc(var(--header-height) + 3rem) 1.5rem 4rem;
    background:
        url("https://images.unsplash.com/photo-1600596542815-ffad4c1539a9?auto=format&fit=crop&w=1920&q=80")
        center / cover no-repeat;
    color: var(--white);
    text-align: center;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to bottom,
        rgba(7, 18, 32, 0.72) 0%,
        rgba(11, 26, 46, 0.55) 50%,
        rgba(7, 18, 32, 0.8) 100%
    );
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
}

.hero-eyebrow {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 1.25rem;
}

#hero h1 {
    font-family: var(--font-heading);
    font-size: clamp(2.5rem, 6vw, 4.25rem);
    font-weight: 600;
    line-height: 1.15;
    letter-spacing: 0.02em;
    margin-bottom: 1.25rem;
}

.hero-subtitle {
    font-size: clamp(1rem, 2vw, 1.15rem);
    font-weight: 300;
    color: rgba(255, 255, 255, 0.85);
    max-width: 540px;
    margin: 0 auto 2.5rem;
    line-height: 1.7;
}

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

.hero-stats-card {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-top: 3rem;
    padding: 2rem 2.5rem;
    background: rgba(11, 26, 46, 0.75);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(201, 168, 76, 0.35);
    border-radius: var(--radius);
    box-shadow: 0 8px 32px rgba(7, 18, 32, 0.3);
}

.hero-stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.35rem;
    padding: 0 1rem;
    border-right: 1px solid rgba(201, 168, 76, 0.2);
}

.hero-stat:last-child {
    border-right: none;
}

.hero-stat-value {
    font-family: var(--font-heading);
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    font-weight: 600;
    color: var(--gold);
    line-height: 1.1;
}

.hero-stat-label {
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.8);
}

/* ── Buttons ── */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.875rem 2rem;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    border-radius: var(--radius);
    transition: background var(--transition), color var(--transition), border-color var(--transition), transform var(--transition);
}

.btn:hover {
    transform: translateY(-1px);
}

.btn-primary {
    background: var(--gold);
    color: var(--navy-deep);
    border: 2px solid var(--gold);
}

.btn-primary:hover {
    background: var(--gold-light);
    border-color: var(--gold-light);
}

.btn-outline {
    background: transparent;
    color: var(--white);
    border: 2px solid rgba(255, 255, 255, 0.6);
}

.btn-outline:hover {
    border-color: var(--gold);
    color: var(--gold);
}

/* ── Cards ── */
.property-card,
.listing-card {
    background: var(--white);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    border: 1px solid rgba(11, 26, 46, 0.06);
    transition: box-shadow var(--transition), transform var(--transition), border-color var(--transition);
}

.listing-card {
    cursor: pointer;
}

.listing-card:focus {
    outline: none;
}

.listing-card:focus-visible {
    outline: 2px solid var(--gold);
    outline-offset: 3px;
}

.listing-card.is-active {
    border-color: var(--gold);
    box-shadow: 0 16px 40px rgba(201, 168, 76, 0.2);
    transform: translateY(-6px);
}

.listing-card.is-active .card-image::after {
    opacity: 1;
}

.listing-card .card-image::after {
    content: "Selected";
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(11, 26, 46, 0.55);
    color: var(--gold);
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    opacity: 0;
    transition: opacity var(--transition);
    pointer-events: none;
}

.property-card:hover,
.listing-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

.card-image {
    position: relative;
    overflow: hidden;
    aspect-ratio: 16 / 10;
    background: var(--navy-light);
}

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.property-card:hover .card-image img,
.listing-card:hover .card-image img {
    transform: scale(1.04);
}

.card-body {
    padding: 1.5rem;
}

.card-price {
    font-family: var(--font-heading);
    font-size: 1.75rem;
    font-weight: 600;
    color: var(--navy);
    margin-bottom: 0.35rem;
}

.card-specs {
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--gold-dark);
    letter-spacing: 0.04em;
    text-transform: uppercase;
    margin-bottom: 0.75rem;
}

.card-description {
    font-size: 0.95rem;
    color: var(--text-muted);
    line-height: 1.65;
}

.featured-card {
    display: grid;
    grid-template-columns: 1fr 1fr;
    max-width: 1050px;
    margin: 0 auto;
}

.featured-card .card-image {
    aspect-ratio: unset;
    height: 100%;
    min-height: 340px;
}

.featured-card .card-body {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 2.25rem 2.75rem;
}

.featured-card .card-price {
    font-size: 2.4rem;
}

.featured-card .card-specs {
    font-size: 1.15rem;
}

.featured-card .card-description {
    font-size: 1.3rem;
}

.featured-card .card-body .btn {
    margin-top: 1.5rem;
    align-self: flex-start;
}

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

/* ── Features ── */
.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.75rem;
}

.feature-card {
    padding: 2rem 1.75rem;
    background: var(--white);
    border: 1px solid rgba(11, 26, 46, 0.06);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    transition: border-color var(--transition), transform var(--transition);
}

.feature-card:hover {
    border-color: rgba(201, 168, 76, 0.35);
    transform: translateY(-3px);
}

.feature-icon {
    display: block;
    font-family: var(--font-heading);
    font-size: 2rem;
    font-weight: 600;
    color: var(--gold);
    margin-bottom: 1rem;
    line-height: 1;
}

.feature-card h3 {
    font-family: var(--font-heading);
    font-size: 1.35rem;
    font-weight: 600;
    color: var(--navy);
    margin-bottom: 0.6rem;
}

.feature-card p {
    font-size: 0.92rem;
    color: var(--text-muted);
    line-height: 1.65;
}

/* ── Meet Your Realtor ── */
.realtor-profile {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 3.5rem;
    align-items: center;
    max-width: 900px;
    margin: 0 auto;
}

.realtor-photo {
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    border: 3px solid var(--gold);
    aspect-ratio: 4 / 5;
}

.realtor-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.realtor-info h3 {
    font-family: var(--font-heading);
    font-size: clamp(2rem, 4vw, 2.75rem);
    font-weight: 600;
    color: var(--navy);
    margin-bottom: 0.5rem;
    letter-spacing: 0.02em;
}

.realtor-title {
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--gold-dark);
    margin-bottom: 2rem;
}

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

.realtor-stats li {
    display: flex;
    flex-direction: column;
    padding: 1.25rem 1.5rem;
    background: var(--off-white);
    border-left: 3px solid var(--gold);
    border-radius: var(--radius);
}

.stat-value {
    font-family: var(--font-heading);
    font-size: 2rem;
    font-weight: 600;
    color: var(--navy);
    line-height: 1.2;
}

.stat-label {
    font-size: 0.85rem;
    font-weight: 500;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-top: 0.25rem;
}

/* ── Testimonials ── */
.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.75rem;
}

.testimonials-grid blockquote {
    padding: 2rem 1.75rem;
    background: var(--white);
    border-radius: var(--radius);
    border-left: 3px solid var(--gold);
    box-shadow: var(--shadow);
}

.testimonials-grid blockquote cite {
    display: block;
    font-style: normal;
    font-family: var(--font-heading);
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--navy);
    margin-bottom: 1rem;
}

.testimonials-grid blockquote cite span {
    display: block;
    font-family: var(--font-body);
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--gold-dark);
    letter-spacing: 0.06em;
    text-transform: uppercase;
    margin-top: 0.25rem;
}

.testimonials-grid blockquote p {
    font-family: var(--font-heading);
    font-size: 1.15rem;
    font-style: italic;
    font-weight: 500;
    color: var(--navy);
    line-height: 1.7;
}

.testimonials-grid blockquote p::before {
    content: "\201C";
    color: var(--gold);
    font-size: 1.5rem;
    line-height: 0;
    vertical-align: -0.2em;
    margin-right: 0.15em;
}

/* ── Contact form ── */
.contact-form {
    max-width: 480px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.form-group label {
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--navy);
}

.form-group input,
.form-group textarea {
    padding: 0.875rem 1rem;
    font-family: inherit;
    font-size: 1rem;
    color: var(--navy);
    background: var(--off-white);
    border: 1px solid rgba(11, 26, 46, 0.12);
    border-radius: var(--radius);
    transition: border-color var(--transition), box-shadow var(--transition);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
    line-height: 1.6;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--gold);
    box-shadow: 0 0 0 3px rgba(201, 168, 76, 0.15);
}

.form-group input.input-error,
.form-group textarea.input-error {
    border-color: #c0392b;
    box-shadow: 0 0 0 3px rgba(192, 57, 43, 0.12);
}

.form-error {
    font-size: 0.8rem;
    color: #c0392b;
    min-height: 1.2em;
}

.form-success {
    max-width: 480px;
    margin: 0 auto;
    padding: 2rem;
    text-align: center;
    background: var(--off-white);
    border: 1px solid rgba(201, 168, 76, 0.35);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.form-success p {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--navy);
    margin-bottom: 1.5rem;
}

.form-success .form-reset-btn {
    width: 100%;
}

.contact-form .btn {
    margin-top: 0.5rem;
    width: 100%;
}

/* ── Footer ── */
footer {
    background: var(--navy-deep);
    color: rgba(255, 255, 255, 0.6);
    text-align: center;
    padding: 2rem 1.5rem;
    font-size: 0.85rem;
    letter-spacing: 0.04em;
    border-top: 1px solid rgba(201, 168, 76, 0.15);
}

/* ── Responsive ── */
@media (max-width: 1100px) {
    .site-header {
        min-height: var(--header-height);
        height: auto;
    }

    .nav {
        flex-wrap: wrap;
        align-items: center;
        height: auto;
        min-height: var(--header-height);
        padding: 0 1.5rem;
    }

    .nav-brand {
        flex: 1 1 auto;
    }

    .nav-toggle {
        display: flex;
        flex-shrink: 0;
    }

    .nav-links {
        display: none;
        flex-direction: column;
        align-items: stretch;
        flex: 1 1 100%;
        width: 100%;
        gap: 0.35rem;
        padding: 1rem 0.5rem 1.25rem;
        border-top: 1px solid rgba(201, 168, 76, 0.15);
    }

    .site-header.nav-open .nav-links {
        display: flex;
    }

    .nav-links a {
        font-size: 0.85rem;
        padding: 0.875rem 1.25rem;
        text-align: center;
        border-radius: var(--radius);
        white-space: normal;
    }

    .nav-links a:hover {
        background: rgba(201, 168, 76, 0.1);
    }
}

@media (max-width: 900px) {
    .listings-grid,
    .features-grid,
    .testimonials-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    :root {
        --header-height: 72px;
    }

    .section {
        --section-padding: 6rem;
    }

    .section-title {
        margin-bottom: 2rem;
    }

    #hero {
        min-height: 85vh;
        min-height: 85svh;
        padding-top: calc(var(--header-height) + 2rem);
    }

    .hero-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .hero-actions .btn {
        width: 100%;
    }

    .hero-stats-card {
        grid-template-columns: 1fr;
        gap: 0;
        margin-top: 2.5rem;
        padding: 1.5rem;
    }

    .hero-stat {
        padding: 1rem 0;
        border-right: none;
        border-bottom: 1px solid rgba(201, 168, 76, 0.2);
    }

    .hero-stat:last-child {
        border-bottom: none;
        padding-bottom: 0;
    }

    .hero-stat:first-child {
        padding-top: 0;
    }

    .listings-grid,
    .features-grid,
    .testimonials-grid {
        grid-template-columns: 1fr;
        gap: 1.25rem;
    }

    .card-body {
        padding: 1.25rem;
    }

    .featured-card {
        grid-template-columns: 1fr;
    }

    .featured-card .card-image {
        min-height: 220px;
    }

    .featured-card .card-body {
        padding: 1.5rem;
    }

    .feature-card {
        padding: 1.5rem;
    }

    .realtor-profile {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }

    .realtor-photo {
        max-width: 320px;
        margin: 0 auto;
    }

    .realtor-stats li {
        align-items: center;
    }
}

@media (max-width: 480px) {
    .nav-brand {
        font-size: 1.15rem;
    }

    .nav-links a {
        font-size: 0.8rem;
        letter-spacing: 0.05em;
    }
}
