/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Skip to Content Link (Accessibility) */
.skip-link {
    position: absolute;
    top: -100%;
    left: 1rem;
    background: var(--accent);
    color: #ffffff;
    padding: 0.75rem 1.5rem;
    font-weight: 600;
    font-size: 0.95rem;
    text-decoration: none;
    border-radius: 0 0 0.5rem 0.5rem;
    z-index: 10001;
    transition: top 0.2s;
}

.skip-link:focus {
    top: 0;
}

:root {
    --navy: #1b3a5c;
    --navy-dark: #122a45;
    --navy-light: #2a5080;
    --accent: #2563eb;
    --accent-hover: #1d4ed8;
    --bg-primary: #ffffff;
    --bg-secondary: #f4f6f9;
    --bg-card: #ffffff;
    --text-primary: #1a2332;
    --text-secondary: #4a5568;
    --text-muted: #718096;
    --border: #d1d9e6;
    --border-light: #e8edf3;
    --success: #16a34a;
    --warning: #d97706;
    --error: #dc2626;
    --radius-sm: 0.25rem;
    --radius-md: 0.5rem;
    --radius-lg: 0.75rem;
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.08);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.12);

    /* Legacy aliases for portal/pages CSS */
    --primary-color: var(--accent);
    --primary-dark: var(--accent-hover);
    --secondary-color: var(--bg-secondary);
    --border-color: var(--border);
    --bg-light: var(--bg-secondary);
    --white: #ffffff;
    --shadow-xl: 0 16px 40px rgba(0, 0, 0, 0.14);
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    line-height: 1.6;
    color: var(--text-primary);
    background-color: var(--bg-primary);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

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

/* Scroll Animations */
.fade-up {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.fade-up.visible {
    opacity: 1;
    transform: translateY(0);
}

.fade-up-delay-1 { transition-delay: 0.07s; }
.fade-up-delay-2 { transition-delay: 0.14s; }
.fade-up-delay-3 { transition-delay: 0.21s; }
.fade-up-delay-4 { transition-delay: 0.28s; }

/* ─── Navigation ─── */
.navbar {
    background: var(--navy);
    border-bottom: 3px solid #c8973f;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.nav-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.875rem 0;
}

.logo {
    text-decoration: none;
    display: flex;
    flex-direction: column;
    line-height: 1;
}

.logo-text {
    font-size: 1.25rem;
    font-weight: 700;
    color: #ffffff;
    letter-spacing: -0.01em;
}

.logo-subtitle {
    font-size: 0.65rem;
    color: rgba(255, 255, 255, 0.6);
    letter-spacing: 0.1em;
    text-transform: uppercase;
    margin-top: 2px;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 0.25rem;
    align-items: center;
}

.nav-links a {
    text-decoration: none;
    color: rgba(255, 255, 255, 0.85);
    font-weight: 400;
    font-size: 0.9rem;
    padding: 0.4rem 0.8rem;
    border-radius: var(--radius-sm);
    transition: color 0.15s, background 0.15s;
}

.nav-links a:hover,
.nav-links a.active {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.12);
}

.btn-portal {
    background: rgba(255, 255, 255, 0.15) !important;
    color: #ffffff !important;
    padding: 0.4rem 0.9rem !important;
    border-radius: var(--radius-sm) !important;
    border: 1px solid rgba(255, 255, 255, 0.3) !important;
    font-weight: 500 !important;
    font-size: 0.875rem !important;
    transition: background 0.15s !important;
}

.btn-portal:hover {
    background: rgba(255, 255, 255, 0.25) !important;
}

.btn-apply {
    background: #c8973f !important;
    color: #ffffff !important;
    padding: 0.4rem 0.9rem !important;
    border-radius: var(--radius-sm) !important;
    font-weight: 600 !important;
    font-size: 0.875rem !important;
    border: 1px solid transparent !important;
    transition: background 0.15s !important;
}

.btn-apply:hover {
    background: #b07d2f !important;
    color: #ffffff !important;
}

.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
}

.mobile-menu-toggle span {
    width: 22px;
    height: 2px;
    background: #ffffff;
    border-radius: 2px;
    transition: all 0.25s ease;
    display: block;
}

/* ─── Hero Section ─── */
.hero {
    background: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 100%);
    color: #ffffff;
    padding: 4.5rem 0 4rem;
    border-bottom: 1px solid rgba(0,0,0,0.1);
}

.hero-content {
    max-width: 620px;
}

.hero-eyebrow {
    display: inline-block;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #c8973f;
    margin-bottom: 0.875rem;
}

.hero-title {
    font-size: clamp(2rem, 5vw, 2.875rem);
    font-weight: 700;
    margin-bottom: 1rem;
    line-height: 1.15;
    letter-spacing: -0.02em;
}

.hero-subtitle {
    font-size: 1.0625rem;
    margin-bottom: 2rem;
    color: rgba(255, 255, 255, 0.82);
    font-weight: 400;
    line-height: 1.65;
    max-width: 520px;
}

.hero-buttons {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

/* ─── Buttons ─── */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    padding: 0.7rem 1.5rem;
    border-radius: var(--radius-sm);
    text-decoration: none;
    font-weight: 600;
    transition: all 0.15s ease;
    border: 2px solid transparent;
    cursor: pointer;
    font-size: 0.9375rem;
    white-space: nowrap;
    font-family: inherit;
}

.btn-primary {
    background: var(--accent);
    color: #ffffff;
    border-color: var(--accent);
}

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

.btn-secondary {
    background: transparent;
    color: #ffffff;
    border-color: rgba(255, 255, 255, 0.5);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.75);
    color: #ffffff;
}

.btn-light {
    background: #ffffff;
    color: var(--navy);
    border-color: #ffffff;
}

.btn-light:hover {
    background: #f0f4f8;
    border-color: #f0f4f8;
}

.btn-outline {
    background: transparent;
    color: var(--accent);
    border-color: var(--accent);
}

.btn-outline:hover {
    background: var(--accent);
    color: #ffffff;
}

/* ─── Section Labels ─── */
.section-eyebrow {
    display: block;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 0.625rem;
    text-align: center;
}

/* ─── Features Section ─── */
.features {
    padding: 5rem 0;
    background: var(--bg-secondary);
    border-top: 1px solid var(--border-light);
    border-bottom: 1px solid var(--border-light);
}

.section-title {
    font-size: clamp(1.5rem, 3vw, 2.125rem);
    font-weight: 700;
    text-align: center;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
    letter-spacing: -0.02em;
    line-height: 1.2;
}

.section-subtitle {
    text-align: center;
    font-size: 1rem;
    color: var(--text-secondary);
    margin-bottom: 0;
    max-width: 480px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.65;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.25rem;
    margin-top: 3rem;
}

.feature-card {
    background: var(--bg-card);
    padding: 1.75rem 1.5rem;
    border-radius: var(--radius-md);
    border: 1px solid var(--border);
    box-shadow: var(--shadow-sm);
    transition: box-shadow 0.2s, border-color 0.2s;
}

.feature-card:hover {
    box-shadow: var(--shadow-md);
    border-color: #b8c8dc;
}

.feature-number {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--navy);
    margin-bottom: 0.75rem;
    display: block;
    opacity: 0.25;
    line-height: 1;
}

.feature-icon {
    display: none;
}

.feature-card h3 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.feature-card p {
    color: var(--text-secondary);
    line-height: 1.6;
    font-size: 0.9rem;
}

/* ─── Properties Preview ─── */
.properties-preview {
    padding: 5rem 0;
    background: var(--bg-primary);
}

.properties-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.25rem;
    margin: 2.5rem 0;
}

.property-card {
    background: var(--bg-card);
    border-radius: var(--radius-md);
    overflow: hidden;
    border: 1px solid var(--border);
    box-shadow: var(--shadow-sm);
    transition: box-shadow 0.2s, transform 0.2s;
}

.property-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.property-image {
    position: relative;
    height: 220px;
    background: linear-gradient(135deg, #c8d8e8 0%, #a0b8d0 100%);
    background-size: cover;
    background-position: center;
}

.property-image::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(to bottom, transparent 40%, rgba(0,0,0,0.45) 100%);
}

.property-badge {
    position: absolute;
    bottom: 0.75rem;
    left: 0.75rem;
    background: var(--navy);
    color: #ffffff;
    padding: 0.3rem 0.75rem;
    border-radius: var(--radius-sm);
    font-weight: 600;
    font-size: 0.78rem;
    letter-spacing: 0.03em;
    text-transform: uppercase;
}

.property-content {
    padding: 1.25rem 1.375rem 1.5rem;
}

.property-content h3 {
    font-size: 1.0625rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
    color: var(--text-primary);
}

.property-location {
    color: var(--text-muted);
    margin-bottom: 1rem;
    font-size: 0.875rem;
}

.property-features {
    list-style: none;
    padding: 0;
    border-top: 1px solid var(--border-light);
}

.property-features li {
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--border-light);
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.property-features li:last-child {
    border-bottom: none;
}

.property-features strong {
    color: var(--text-primary);
}

.text-center {
    text-align: center;
    margin-top: 2rem;
}

/* ─── CTA Section ─── */
.cta {
    background: var(--navy);
    color: #ffffff;
    padding: 4.5rem 0;
    border-top: 3px solid #c8973f;
}

.cta-content {
    text-align: center;
    max-width: 420px;
    margin: 0 auto;
}

.cta-content h2 {
    font-size: clamp(1.375rem, 3vw, 1.875rem);
    font-weight: 700;
    margin-bottom: 0.625rem;
    letter-spacing: -0.02em;
    line-height: 1.2;
}

.cta-content p {
    font-size: 0.9375rem;
    margin-bottom: 1.75rem;
    color: rgba(255, 255, 255, 0.78);
    line-height: 1.6;
}

.cta-dual {
    display: grid;
    grid-template-columns: 1fr 1px 1fr;
    align-items: center;
    max-width: 820px;
    margin: 0 auto;
    gap: 0;
}

.cta-divider {
    width: 1px;
    height: 120px;
    background: rgba(255, 255, 255, 0.2);
    margin: 0 auto;
}

/* ─── Footer ─── */
.footer {
    background: #111e2d;
    color: rgba(255, 255, 255, 0.85);
    padding: 3.5rem 0 1.75rem;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 3rem;
    margin-bottom: 2.5rem;
}

.footer-section h3 {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 0.625rem;
    color: #ffffff;
}

.footer-section h4 {
    font-size: 0.7rem;
    font-weight: 700;
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: rgba(255, 255, 255, 0.5);
}

.footer-section p {
    color: rgba(255, 255, 255, 0.6);
    line-height: 1.65;
    font-size: 0.9rem;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 0.45rem;
}

.footer-links a,
.footer-contact a {
    color: rgba(255, 255, 255, 0.65);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.15s;
}

.footer-links a:hover,
.footer-contact a:hover {
    color: #ffffff;
}

.footer-contact {
    list-style: none;
}

.footer-contact li {
    margin-bottom: 0.45rem;
    color: rgba(255, 255, 255, 0.65);
    font-size: 0.9rem;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    padding-top: 1.25rem;
    text-align: center;
}

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

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

@media (max-width: 768px) {
    .nav-links {
        position: fixed;
        top: 61px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 61px);
        background: var(--navy-dark);
        flex-direction: column;
        padding: 2rem 1.5rem;
        gap: 0.5rem;
        transition: left 0.25s ease;
        overflow-y: auto;
    }

    .nav-links.active {
        left: 0;
    }

    .mobile-menu-toggle {
        display: flex;
    }

    .hero {
        padding: 3.5rem 0 3rem;
    }

    .features {
        padding: 3.5rem 0;
    }

    .features-grid {
        grid-template-columns: 1fr 1fr;
        gap: 1rem;
    }

    .properties-preview {
        padding: 3.5rem 0;
    }

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

    .cta {
        padding: 3.5rem 0;
    }

    .cta-dual {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }

    .cta-divider {
        width: 60px;
        height: 1px;
    }

    .footer-content {
        grid-template-columns: 1fr 1fr;
        gap: 2rem;
    }
}

@media (max-width: 480px) {
    .hero-buttons {
        flex-direction: column;
        width: 100%;
        max-width: 260px;
    }

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

    .footer-content {
        grid-template-columns: 1fr;
    }
}
