/* ============================================
   Montecito Pines Apartments — Styles
   Bold editorial · Deep navy + warm gold
   ============================================ */

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

:root {
    --navy-950: #0a1628;
    --navy-900: #0f2140;
    --navy-800: #152d56;
    --navy-700: #1a3665;
    --navy-600: #1e3f73;
    --gold-500: #C9A84C;
    --gold-400: #d4b760;
    --gold-300: #e0c97a;
    --gold-200: #ecd89e;
    --cream-50: #FAF8F4;
    --cream-100: #F5F0E8;
    --cream-200: #EDE6D8;
    --warm-gray-50: #F7F6F3;
    --warm-gray-100: #F0EDE7;
    --warm-gray-200: #E2DED4;
    --warm-gray-300: #C8C2B6;
    --warm-gray-400: #9E9789;
    --warm-gray-500: #6B6559;
    --warm-gray-600: #4A453A;
    --warm-gray-700: #2E2A22;
    --font-serif: 'Playfair Display', Georgia, 'Times New Roman', serif;
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --shadow-sm: 0 1px 2px rgba(10, 22, 40, 0.04);
    --shadow-md: 0 4px 16px rgba(10, 22, 40, 0.08);
    --shadow-lg: 0 12px 40px rgba(10, 22, 40, 0.12);
    --shadow-xl: 0 24px 60px rgba(10, 22, 40, 0.16);
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 16px;
    --radius-xl: 24px;
}

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

body {
    font-family: var(--font-sans);
    color: var(--warm-gray-700);
    background: var(--cream-50);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

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

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

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
}

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

.section-title {
    font-family: var(--font-serif);
    font-size: clamp(2rem, 4vw, 3.25rem);
    font-weight: 700;
    line-height: 1.15;
    color: var(--navy-900);
    margin-bottom: 20px;
}

.section-desc {
    font-size: 1.0625rem;
    line-height: 1.7;
    color: var(--warm-gray-500);
    max-width: 560px;
}

.section-header {
    margin-bottom: 64px;
}

/* --- Buttons --- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-family: var(--font-sans);
    font-size: 0.875rem;
    font-weight: 500;
    padding: 14px 28px;
    border-radius: var(--radius-sm);
    border: 1.5px solid transparent;
    cursor: pointer;
    transition: all 0.25s ease;
    white-space: nowrap;
}

.btn-primary {
    background: var(--gold-500);
    color: var(--navy-950);
    border-color: var(--gold-500);
}

.btn-primary:hover {
    background: var(--gold-400);
    border-color: var(--gold-400);
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

.btn-outline-light {
    background: transparent;
    color: #ffffff;
    border-color: rgba(255, 255, 255, 0.4);
}

.btn-outline-light:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.7);
}

.btn-full {
    width: 100%;
}

/* --- Navbar --- */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(10, 22, 40, 0.0);
    backdrop-filter: blur(0px);
    transition: all 0.35s ease;
    border-bottom: 1px solid transparent;
}

.navbar.scrolled {
    background: rgba(10, 22, 40, 0.95);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(201, 168, 76, 0.15);
}

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

.nav-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-serif);
    font-size: 1.125rem;
    font-weight: 600;
    color: #ffffff;
}

.nav-logo-icon {
    flex-shrink: 0;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 32px;
}

.nav-links a {
    font-size: 0.875rem;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.75);
    transition: color 0.2s ease;
    letter-spacing: 0.01em;
}

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

.nav-cta {
    font-weight: 500 !important;
    color: var(--gold-500) !important;
    padding: 10px 20px;
    border: 1px solid rgba(201, 168, 76, 0.4);
    border-radius: var(--radius-sm);
    transition: all 0.25s ease !important;
}

.nav-cta:hover {
    background: rgba(201, 168, 76, 0.12) !important;
    border-color: var(--gold-500) !important;
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
}

.nav-toggle span {
    display: block;
    width: 22px;
    height: 1.5px;
    background: #ffffff;
    transition: all 0.25s ease;
    transform-origin: center;
}

.nav-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(4px, 5px);
}

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

.nav-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(4px, -5px);
}

/* --- Hero --- */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.hero-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        135deg,
        rgba(10, 22, 40, 0.88) 0%,
        rgba(15, 33, 64, 0.80) 40%,
        rgba(21, 46, 86, 0.65) 100%
    );
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 1280px;
    margin: 0 auto;
    padding: 120px 24px 80px;
    width: 100%;
}

.hero-card {
    max-width: 680px;
}

.hero-eyebrow {
    font-family: var(--font-sans);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--gold-500);
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.hero-eyebrow::before {
    content: '';
    display: block;
    width: 32px;
    height: 1px;
    background: var(--gold-500);
}

.hero-headline {
    font-family: var(--font-serif);
    font-size: clamp(2.25rem, 5.5vw, 4rem);
    font-weight: 700;
    line-height: 1.1;
    color: #ffffff;
    margin-bottom: 24px;
    letter-spacing: -0.01em;
}

.hero-sub {
    font-size: 1.125rem;
    line-height: 1.75;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 40px;
    max-width: 540px;
}

.hero-actions {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

/* --- Hero Stats --- */
.hero-stats {
    position: absolute;
    bottom: 0;
    right: 0;
    z-index: 2;
    display: flex;
    gap: 0;
}

.stat-card {
    background: rgba(255, 255, 255, 0.07);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 28px 32px;
    text-align: center;
    min-width: 160px;
}

.stat-card:first-child {
    border-radius: 0;
}

.stat-number {
    font-family: var(--font-serif);
    font-size: 2rem;
    font-weight: 700;
    color: var(--gold-500);
    margin-bottom: 6px;
}

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

/* --- Section Base --- */
.section {
    padding: 120px 0;
}

/* --- Living Section --- */
.living {
    background: var(--cream-50);
}

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

.living-card {
    background: #ffffff;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--warm-gray-200);
    transition: all 0.35s ease;
}

.living-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.living-card-img {
    position: relative;
    overflow: hidden;
    aspect-ratio: 3/2;
}

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

.living-card:hover .living-card-img img {
    transform: scale(1.04);
}

.living-card-tag {
    position: absolute;
    top: 16px;
    left: 16px;
    background: var(--navy-900);
    color: var(--gold-500);
    font-size: 0.6875rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    padding: 6px 12px;
    border-radius: var(--radius-sm);
}

.living-card-body {
    padding: 28px;
}

.living-card-body h3 {
    font-family: var(--font-serif);
    font-size: 1.375rem;
    font-weight: 700;
    color: var(--navy-900);
    margin-bottom: 12px;
}

.living-card-body p {
    font-size: 0.9375rem;
    line-height: 1.65;
    color: var(--warm-gray-500);
    margin-bottom: 20px;
}

.living-features {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.living-features li {
    font-size: 0.8125rem;
    color: var(--warm-gray-600);
    padding-left: 16px;
    position: relative;
}

.living-features li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 7px;
    width: 6px;
    height: 6px;
    background: var(--gold-500);
    border-radius: 50%;
}

/* --- Amenities Section --- */
.amenities {
    background: var(--navy-950);
    padding: 120px 0;
}

.amenities-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.amenities-visual {
    position: relative;
}

.amenities-img-main {
    border-radius: var(--radius-xl);
    overflow: hidden;
    aspect-ratio: 4/5;
}

.amenities-img-main img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.amenities-img-accent {
    position: absolute;
    bottom: -40px;
    right: -40px;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-xl);
    border: 4px solid var(--navy-900);
}

.amenities-content .section-header {
    margin-bottom: 40px;
}

.amenities-content .section-title {
    color: #ffffff;
}

.amenities-content .section-desc {
    color: rgba(255, 255, 255, 0.55);
}

.amenities-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.amenity-item {
    display: flex;
    align-items: flex-start;
    gap: 14px;
}

.amenity-icon {
    flex-shrink: 0;
    color: var(--gold-500);
    margin-top: 2px;
}

.amenity-item span {
    font-size: 0.9375rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.85);
    line-height: 1.4;
}

/* --- Neighborhood Section --- */
.neighborhood {
    background: var(--cream-100);
}

.neighborhood-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: stretch;
}

.neighborhood-content .section-header {
    margin-bottom: 40px;
}

.nearby-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.nearby-item {
    background: #ffffff;
    padding: 20px 24px;
    border-radius: var(--radius-md);
    border: 1px solid var(--warm-gray-200);
    transition: all 0.25s ease;
}

.nearby-item:hover {
    border-color: var(--gold-500);
    box-shadow: var(--shadow-md);
}

.nearby-dist {
    font-family: var(--font-serif);
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--gold-500);
    margin-bottom: 4px;
}

.nearby-name {
    font-size: 0.875rem;
    color: var(--warm-gray-600);
    font-weight: 500;
}

.neighborhood-map {
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    min-height: 480px;
}

.neighborhood-map iframe {
    width: 100%;
    height: 100%;
    min-height: 480px;
}

/* --- About Section --- */
.about {
    background: var(--cream-50);
}

.about-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.about-image {
    border-radius: var(--radius-xl);
    overflow: hidden;
    aspect-ratio: 7/9;
}

.about-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.about-text {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-bottom: 48px;
}

.about-text p {
    font-size: 1rem;
    line-height: 1.75;
    color: var(--warm-gray-500);
}

.about-text p:first-of-type {
    font-size: 1.0625rem;
    color: var(--warm-gray-600);
}

.about-values {
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.value-item {
    display: grid;
    grid-template-columns: 48px 1fr;
    gap: 20px;
}

.value-number {
    font-family: var(--font-serif);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--gold-500);
    opacity: 0.6;
    line-height: 1;
    padding-top: 4px;
}

.value-title {
    font-family: var(--font-serif);
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--navy-900);
    margin-bottom: 6px;
}

.value-desc {
    font-size: 0.9375rem;
    line-height: 1.65;
    color: var(--warm-gray-500);
}

/* --- CTA Section --- */
.cta {
    background: var(--navy-900);
    padding: 120px 0;
}

.cta-card {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: start;
    background: var(--navy-800);
    border-radius: var(--radius-xl);
    padding: 64px;
    border: 1px solid rgba(201, 168, 76, 0.15);
}

.cta-headline {
    font-family: var(--font-serif);
    font-size: clamp(2rem, 3.5vw, 2.75rem);
    font-weight: 700;
    line-height: 1.15;
    color: #ffffff;
    margin-bottom: 20px;
}

.cta-desc {
    font-size: 1.0625rem;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.55);
}

.cta-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

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

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group label {
    font-size: 0.8125rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.6);
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.form-group input,
.form-group select,
.form-group textarea {
    font-family: var(--font-sans);
    font-size: 0.9375rem;
    padding: 12px 16px;
    border-radius: var(--radius-sm);
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(255, 255, 255, 0.06);
    color: #ffffff;
    transition: all 0.2s ease;
    outline: none;
}

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

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: var(--gold-500);
    background: rgba(255, 255, 255, 0.09);
}

.form-group select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='rgba(255,255,255,0.5)' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    padding-right: 36px;
}

.form-group select option {
    background: var(--navy-900);
    color: #ffffff;
}

.form-group textarea {
    resize: vertical;
    min-height: 100px;
}

.form-success {
    text-align: center;
    padding: 48px 24px;
}

.success-icon {
    margin: 0 auto 20px;
}

.form-success h3 {
    font-family: var(--font-serif);
    font-size: 1.5rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 12px;
}

.form-success p {
    font-size: 0.9375rem;
    color: rgba(255, 255, 255, 0.6);
    line-height: 1.65;
}

/* --- CTA Contact Info --- */
.cta-contact-info {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 32px;
    margin-top: 64px;
}

.contact-item {
    display: flex;
    gap: 16px;
}

.contact-icon {
    flex-shrink: 0;
    margin-top: 2px;
}

.contact-label {
    font-size: 0.6875rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.4);
    margin-bottom: 6px;
}

.contact-item div {
    font-size: 0.9375rem;
    color: rgba(255, 255, 255, 0.75);
    line-height: 1.6;
}

.contact-item a {
    color: rgba(255, 255, 255, 0.75);
    transition: color 0.2s ease;
}

.contact-item a:hover {
    color: var(--gold-400);
}

/* --- Footer --- */
.footer {
    background: var(--navy-950);
    border-top: 1px solid rgba(201, 168, 76, 0.1);
    padding: 80px 0 0;
}

.footer-top {
    display: grid;
    grid-template-columns: 1.5fr 2fr;
    gap: 80px;
    padding-bottom: 64px;
}

.footer-brand p {
    font-size: 0.9375rem;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.45);
    margin-top: 20px;
    max-width: 320px;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-serif);
    font-size: 1.125rem;
    font-weight: 600;
    color: #ffffff;
}

.footer-links {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
}

.footer-col h4 {
    font-family: var(--font-sans);
    font-size: 0.6875rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--gold-500);
    margin-bottom: 20px;
}

.footer-col a {
    display: block;
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.5);
    padding: 6px 0;
    transition: color 0.2s ease;
}

.footer-col a:hover {
    color: rgba(255, 255, 255, 0.85);
}

.footer-col span {
    display: block;
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.5);
    line-height: 1.7;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    padding: 24px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-bottom p {
    font-size: 0.8125rem;
    color: rgba(255, 255, 255, 0.3);
}

/* --- Animations --- */
@media (prefers-reduced-motion: no-preference) {
    .reveal-up {
        opacity: 0;
        transform: translateY(24px);
        transition: opacity 0.6s ease, transform 0.6s ease;
    }

    .reveal-left {
        opacity: 0;
        transform: translateX(-24px);
        transition: opacity 0.6s ease, transform 0.6s ease;
    }

    .reveal-right {
        opacity: 0;
        transform: translateX(24px);
        transition: opacity 0.6s ease, transform 0.6s ease;
    }

    .reveal-up.revealed,
    .reveal-left.revealed,
    .reveal-right.revealed {
        opacity: 1;
        transform: translate(0, 0);
    }

    .stat-card.reveal-up.revealed {
        opacity: 1;
        transform: translate(0, 0);
    }
}

/* Default visible state for reduced-motion or no-JS */
@media (prefers-reduced-motion: reduce) {
    .reveal-up,
    .reveal-left,
    .reveal-right {
        opacity: 1;
        transform: none;
    }
}

/* --- Responsive --- */
@media (max-width: 1024px) {
    .hero-stats {
        position: relative;
        bottom: auto;
        right: auto;
        flex-wrap: wrap;
        margin-top: 48px;
    }

    .stat-card {
        flex: 1;
        min-width: 140px;
    }

    .living-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .living-grid .living-card:last-child {
        grid-column: span 2;
        max-width: 50%;
        margin: 0 auto;
    }

    .amenities-layout,
    .neighborhood-layout,
    .about-layout {
        grid-template-columns: 1fr;
        gap: 48px;
    }

    .amenities-img-accent {
        right: 0;
        bottom: -24px;
    }

    .cta-card {
        grid-template-columns: 1fr;
        gap: 48px;
        padding: 40px;
    }

    .footer-top {
        grid-template-columns: 1fr;
        gap: 48px;
    }
}

@media (max-width: 768px) {
    .nav-toggle {
        display: flex;
    }

    .nav-links {
        position: fixed;
        top: 72px;
        left: 0;
        right: 0;
        background: rgba(10, 22, 40, 0.97);
        backdrop-filter: blur(16px);
        flex-direction: column;
        padding: 32px 24px;
        gap: 24px;
        transform: translateY(-100%);
        opacity: 0;
        pointer-events: none;
        transition: all 0.3s ease;
        border-bottom: 1px solid rgba(201, 168, 76, 0.15);
    }

    .nav-links.open {
        transform: translateY(0);
        opacity: 1;
        pointer-events: all;
    }

    .hero-stats {
        flex-direction: column;
    }

    .stat-card {
        border-radius: 0;
    }

    .stat-card:first-child {
        border-radius: var(--radius-lg) var(--radius-lg) 0 0;
    }

    .stat-card:last-child {
        border-radius: 0 0 var(--radius-lg) var(--radius-lg);
    }

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

    .living-grid .living-card:last-child {
        grid-column: span 1;
        max-width: 100%;
    }

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

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

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

    .cta-contact-info {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .cta-card {
        padding: 28px;
    }

    .footer-links {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 8px;
        text-align: center;
    }

    .section {
        padding: 80px 0;
    }
}

@media (max-width: 480px) {
    .hero-headline {
        font-size: 1.875rem;
    }

    .hero-actions {
        flex-direction: column;
    }

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

    .section-title {
        font-size: 1.75rem;
    }
}
