/* ============================================
   Homes By Navi — Classic & Elegant Real Estate
   Deep Navy + Warm Gold Palette
   ============================================ */

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

:root {
    --navy-950: #0a1628;
    --navy-900: #0f2140;
    --navy-800: #152d56;
    --navy-700: #1c3a6e;
    --navy-600: #244a8a;
    --gold-500: #C8A961;
    --gold-400: #d4b978;
    --gold-300: #e0c990;
    --gold-600: #a8893e;
    --white: #ffffff;
    --off-white: #f8f6f2;
    --cream: #f5f0e8;
    --gray-100: #f0ece4;
    --gray-200: #e0dbd3;
    --gray-400: #9e9790;
    --gray-600: #6b6560;
    --gray-800: #2d2a27;
    --serif: 'Playfair Display', Georgia, 'Times New Roman', serif;
    --sans: 'Lato', 'Segoe UI', system-ui, sans-serif;
    --shadow-sm: 0 1px 3px rgba(10, 22, 40, 0.08);
    --shadow-md: 0 4px 20px rgba(10, 22, 40, 0.1);
    --shadow-lg: 0 8px 40px rgba(10, 22, 40, 0.12);
    --transition: 0.3s ease;
}

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

body {
    font-family: var(--sans);
    color: var(--gray-800);
    background: var(--white);
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
}

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

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

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

.text-center {
    text-align: center;
}

/* --- Typography --- */
h1, h2, h3, h4 {
    font-family: var(--serif);
    font-weight: 600;
    line-height: 1.25;
    color: var(--navy-900);
}

/* --- Buttons --- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 32px;
    font-family: var(--sans);
    font-size: 0.9375rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    border-radius: 4px;
    border: 2px solid transparent;
    cursor: pointer;
    transition: all var(--transition);
    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(-2px);
    box-shadow: var(--shadow-md);
}

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

.btn-outline-light:hover {
    background: var(--white);
    color: var(--navy-900);
    border-color: var(--white);
}

.btn-full {
    width: 100%;
}

/* --- Section Common --- */
.section {
    padding: 100px 0;
}

.section-label {
    display: inline-block;
    font-family: var(--sans);
    font-size: 0.8125rem;
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--gold-600);
    margin-bottom: 12px;
}

.section-title {
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    margin-bottom: 16px;
}

.section-subtitle {
    font-size: 1.0625rem;
    color: var(--gray-600);
    max-width: 560px;
    margin: 0 auto;
}

/* --- Navbar --- */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(10, 22, 40, 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(200, 169, 97, 0.15);
    transition: background var(--transition);
}

.nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 72px;
}

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

.nav-menu {
    display: flex;
    align-items: center;
    gap: 32px;
    list-style: none;
}

.nav-link {
    font-size: 0.9375rem;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.8);
    transition: color var(--transition);
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 1.5px;
    background: var(--gold-500);
    transition: width var(--transition);
}

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

.nav-link:hover::after {
    width: 100%;
}

.nav-cta-btn {
    padding: 8px 20px;
    background: var(--gold-500);
    color: var(--navy-950) !important;
    border-radius: 4px;
    font-weight: 600;
}

.nav-cta-btn::after {
    display: none;
}

.nav-cta-btn:hover {
    background: var(--gold-400) !important;
    color: var(--navy-950) !important;
}

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

.nav-toggle-line {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--white);
    border-radius: 2px;
    transition: all var(--transition);
}

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

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

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

/* --- Hero --- */
.hero {
    position: relative;
    height: 100vh;
    min-height: 640px;
    display: flex;
    align-items: center;
    justify-content: 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(
        to bottom,
        rgba(10, 22, 40, 0.72) 0%,
        rgba(15, 33, 64, 0.65) 50%,
        rgba(10, 22, 40, 0.80) 100%
    );
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 720px;
    padding: 0 24px;
}

.hero-greeting-label {
    display: inline-block;
    font-family: var(--sans);
    font-size: 0.8125rem;
    font-weight: 600;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--gold-500);
    margin-bottom: 20px;
    padding: 8px 20px;
    border: 1px solid rgba(200, 169, 97, 0.4);
    border-radius: 50px;
}

.hero-headline {
    font-size: clamp(2rem, 5.5vw, 3.5rem);
    font-weight: 700;
    color: var(--white);
    margin-bottom: 24px;
    line-height: 1.15;
}

.hero-sub {
    font-size: clamp(1rem, 2vw, 1.1875rem);
    color: rgba(255, 255, 255, 0.82);
    line-height: 1.7;
    margin-bottom: 40px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

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

.hero-scroll {
    position: absolute;
    bottom: 36px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    color: rgba(255, 255, 255, 0.6);
    animation: scrollBounce 2s ease infinite;
}

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

/* --- About --- */
.about {
    background: var(--white);
}

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

.about-image-wrap {
    position: relative;
}

.about-image-wrap img {
    width: 100%;
    height: 500px;
    object-fit: cover;
    border-radius: 8px;
    box-shadow: var(--shadow-lg);
}

.about-image-accent {
    position: absolute;
    top: -16px;
    left: -16px;
    width: 120px;
    height: 120px;
    border: 3px solid var(--gold-500);
    border-radius: 8px;
    z-index: -1;
}

.about-content {
    padding: 16px 0;
}

.about-text {
    font-size: 1.0625rem;
    color: var(--gray-600);
    margin-bottom: 20px;
    line-height: 1.8;
}

.about-stats {
    display: flex;
    gap: 40px;
    margin-top: 40px;
    padding-top: 32px;
    border-top: 1px solid var(--gray-200);
}

.stat-number {
    display: block;
    font-family: var(--serif);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--navy-900);
}

.stat-label {
    font-size: 0.875rem;
    color: var(--gray-600);
}

/* --- Services --- */
.services {
    background: var(--cream);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 32px;
    margin-top: 56px;
}

.service-card {
    background: var(--white);
    padding: 44px 36px;
    border-radius: 8px;
    box-shadow: var(--shadow-sm);
    transition: all var(--transition);
    border: 1px solid transparent;
}

.service-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: rgba(200, 169, 97, 0.3);
}

.service-icon {
    margin-bottom: 24px;
}

.service-title {
    font-size: 1.3125rem;
    margin-bottom: 12px;
}

.service-desc {
    font-size: 0.9375rem;
    color: var(--gray-600);
    line-height: 1.75;
}

/* --- Areas --- */
.areas {
    background: var(--white);
}

.areas-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
    margin-top: 56px;
}

.area-card {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
    aspect-ratio: 4/3;
    cursor: pointer;
}

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

.area-card:hover img {
    transform: scale(1.06);
}

.area-card-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(10, 22, 40, 0.85) 0%, rgba(10, 22, 40, 0.15) 60%);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 28px;
    transition: background var(--transition);
}

.area-card:hover .area-card-overlay {
    background: linear-gradient(to top, rgba(10, 22, 40, 0.9) 0%, rgba(10, 22, 40, 0.25) 60%);
}

.area-name {
    font-size: 1.3125rem;
    color: var(--white);
    margin-bottom: 6px;
}

.area-desc {
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.78);
    line-height: 1.6;
}

/* --- Testimonials --- */
.testimonials {
    background: var(--navy-900);
}

.testimonials .section-label {
    color: var(--gold-500);
}

.testimonials .section-title {
    color: var(--white);
}

.testimonials .section-subtitle {
    color: rgba(255, 255, 255, 0.65);
}

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

.testimonial-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(200, 169, 97, 0.2);
    border-radius: 8px;
    padding: 36px;
    transition: all var(--transition);
}

.testimonial-card:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(200, 169, 97, 0.4);
    transform: translateY(-4px);
}

.testimonial-quote {
    margin-bottom: 20px;
    opacity: 0.7;
}

.testimonial-text {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.88);
    line-height: 1.8;
    margin-bottom: 24px;
    font-style: italic;
}

.testimonial-author {
    font-size: 0.875rem;
    color: var(--gold-500);
    font-weight: 500;
}

/* --- CTA Banner --- */
.cta-banner {
    position: relative;
    padding: 100px 0;
    overflow: hidden;
}

.cta-bg {
    position: absolute;
    inset: 0;
}

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

.cta-overlay {
    position: absolute;
    inset: 0;
    background: rgba(10, 22, 40, 0.82);
}

.cta-content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 680px;
    margin: 0 auto;
}

.cta-title {
    font-size: clamp(1.75rem, 4vw, 2.75rem);
    color: var(--white);
    margin-bottom: 20px;
}

.cta-text {
    font-size: 1.0625rem;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 36px;
    line-height: 1.75;
}

.cta-actions {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

/* --- Contact --- */
.contact {
    background: var(--off-white);
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: start;
}

.contact-intro {
    font-size: 1.0625rem;
    color: var(--gray-600);
    margin-bottom: 36px;
    line-height: 1.75;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 28px;
    margin-bottom: 32px;
}

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

.contact-icon {
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    background: rgba(200, 169, 97, 0.12);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.contact-label {
    display: block;
    font-size: 0.8125rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--gray-400);
    margin-bottom: 4px;
}

.contact-item p {
    font-size: 1rem;
    color: var(--gray-800);
    line-height: 1.6;
}

.contact-item a {
    color: var(--navy-700);
    transition: color var(--transition);
}

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

.contact-map {
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

/* Contact Form */
.contact-form-wrap {
    background: var(--white);
    padding: 44px;
    border-radius: 8px;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--gray-100);
}

.contact-form-title {
    font-size: 1.5rem;
    margin-bottom: 28px;
}

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

.form-group {
    margin-bottom: 20px;
}

.form-label {
    display: block;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--gray-800);
    margin-bottom: 6px;
}

.form-input {
    width: 100%;
    padding: 12px 16px;
    font-family: var(--sans);
    font-size: 0.9375rem;
    color: var(--gray-800);
    background: var(--off-white);
    border: 1.5px solid var(--gray-200);
    border-radius: 6px;
    transition: all var(--transition);
    outline: none;
}

.form-input:focus {
    border-color: var(--gold-500);
    background: var(--white);
    box-shadow: 0 0 0 3px rgba(200, 169, 97, 0.15);
}

.form-input::placeholder {
    color: var(--gray-400);
}

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

.form-success {
    text-align: center;
    padding: 40px 20px;
}

.success-icon {
    margin-bottom: 16px;
}

.success-title {
    font-size: 1.5rem;
    color: var(--navy-900);
    margin-bottom: 8px;
}

.success-text {
    color: var(--gray-600);
    font-size: 1rem;
}

/* --- Footer --- */
.footer {
    background: var(--navy-950);
    padding: 64px 0 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1.5fr;
    gap: 48px;
    padding-bottom: 48px;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: var(--serif);
    font-size: 1.1875rem;
    font-weight: 600;
    color: var(--white);
    margin-bottom: 16px;
}

.footer-desc {
    font-size: 0.9375rem;
    color: rgba(255, 255, 255, 0.55);
    line-height: 1.7;
    max-width: 300px;
}

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

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

.footer-links a {
    font-size: 0.9375rem;
    color: rgba(255, 255, 255, 0.6);
    transition: color var(--transition);
}

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

.footer-contact li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.6);
    line-height: 1.6;
}

.footer-contact a {
    color: rgba(255, 255, 255, 0.6);
    transition: color var(--transition);
}

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

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding: 24px 0;
    text-align: center;
}

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

/* --- Scroll Reveal --- */
.reveal {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

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

/* --- Responsive --- */
@media (max-width: 1024px) {
    .about-grid {
        gap: 40px;
    }
    
    .services-grid {
        gap: 24px;
    }
    
    .areas-grid {
        gap: 20px;
    }
}

@media (max-width: 900px) {
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 48px;
    }
    
    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 36px;
    }
    
    .footer-brand {
        grid-column: 1 / -1;
    }
}

@media (max-width: 768px) {
    .section {
        padding: 72px 0;
    }
    
    /* Mobile nav */
    .nav-toggle {
        display: flex;
    }
    
    .nav-menu {
        position: fixed;
        top: 72px;
        left: 0;
        right: 0;
        background: rgba(10, 22, 40, 0.98);
        flex-direction: column;
        align-items: center;
        padding: 32px 24px;
        gap: 24px;
        transform: translateY(-120%);
        transition: transform 0.4s ease;
        border-bottom: 1px solid rgba(200, 169, 97, 0.15);
    }
    
    .nav-menu.open {
        transform: translateY(0);
    }
    
    /* About */
    .about-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .about-image-wrap img {
        height: 360px;
    }
    
    .about-image-accent {
        top: -10px;
        left: -10px;
        width: 80px;
        height: 80px;
    }
    
    .about-stats {
        gap: 24px;
    }
    
    /* Services */
    .services-grid {
        grid-template-columns: 1fr;
    }
    
    /* Areas */
    .areas-grid {
        grid-template-columns: 1fr;
    }
    
    .area-card {
        aspect-ratio: 16/9;
    }
    
    /* Testimonials */
    .testimonials-grid {
        grid-template-columns: 1fr;
    }
    
    /* Contact form */
    .contact-form-wrap {
        padding: 28px;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    /* Footer */
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }
    
    .hero-actions {
        flex-direction: column;
        align-items: center;
    }
    
    .cta-actions {
        flex-direction: column;
        align-items: center;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 16px;
    }
    
    .section {
        padding: 56px 0;
    }
    
    .hero {
        min-height: 580px;
    }
    
    .about-stats {
        flex-direction: column;
        gap: 16px;
    }
    
    .service-card {
        padding: 28px 24px;
    }
}

/* --- Reduced Motion --- */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
    }
    
    html {
        scroll-behavior: auto;
    }
    
    .reveal {
        opacity: 1;
        transform: none;
    }
}
