/* --- CSS Variables: Warm Luxury Editorial Theme --- */
:root {
    --primary-color: #b87d4b;     /* High-end warm terracotta bronze accent */
    --light-bg: #fdfcfb;          /* Alabaster premium warm-white canvas */
    --alt-bg: #f5f2ee;            /* Soft linen tone for section alternates */
    --dark-slate: #1e242b;        /* Deep editorial charcoal for core typography */
    --card-bg: #ffffff;           /* Stark white for crisp layout element pop */
    --text-muted: #64748b;        /* Muted concrete gray for paragraphs */
    --header-height: 85px;
}

/* --- Universal Resets & Layout Safety Handles --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;       /* Guarantees padding adjustments never break layout grids */
    font-family: -apple-system, BlinkMacSystemFont, 'Didot', 'Playfair Display', Roboto, Helvetica, sans-serif;
    scroll-behavior: smooth;
}

body {
    background-color: var(--light-bg);
    color: var(--dark-slate);
    line-height: 1.6;
}

.accent {
    color: var(--primary-color);
}

/* --- Navigation Header --- */
.main-header {
    background-color: rgba(253, 252, 251, 0.96);
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--header-height);
    display: flex;
    align-items: center;
    z-index: 1000;
    border-bottom: 1px solid rgba(30, 36, 43, 0.06);
}

.header-container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.3rem;
    font-weight: 700;
    letter-spacing: 2px;
    color: var(--dark-slate);
}

.nav-menu {
    display: flex;
    align-items: center;
}

.nav-menu a {
    color: var(--dark-slate);
    text-decoration: none;
    margin-left: 2.5rem;
    font-weight: 500;
    font-size: 0.9rem;
    letter-spacing: 0.5px;
    transition: color 0.3s ease;
}

.nav-menu a:hover {
    color: var(--primary-color);
}

/* --- Reusable Call to Actions (CTAs) --- */
.cta-button {
    display: inline-block;
    padding: 0.8rem 1.6rem;
    border-radius: 2px;          /* Sharp editorial corners instead of rounded pills */
    font-weight: 600;
    text-decoration: none;
    font-size: 0.85rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
}

.phone-cta {
    background-color: transparent;
    color: var(--dark-slate) !important;
    border: 1px solid var(--dark-slate);
    margin-left: 2.5rem;
}

.phone-cta:hover {
    background-color: var(--dark-slate);
    color: var(--light-bg) !important;
}

.primary-cta {
    background-color: var(--dark-slate);
    color: var(--light-bg);
}

.primary-cta:hover {
    background-color: var(--primary-color);
    transform: translateY(-1px);
}

.secondary-cta {
    background-color: transparent;
    color: var(--dark-slate);
    border: 1px solid rgba(30, 36, 43, 0.2);
    margin-left: 1rem;
}

.secondary-cta:hover {
    background-color: rgba(30, 36, 43, 0.04);
}

/* --- Split Hero Layout Engine --- */
.hero-section {
    padding-top: var(--header-height);
    min-height: 85vh;
    display: flex;
    align-items: center;
    background-color: var(--alt-bg);
    overflow: hidden;
}

.hero-container-split {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 4rem;
}

.hero-text-side {
    flex: 1;                     
    text-align: left;            
    max-width: 600px;
}

.hero-title {
    font-size: 3.2rem;
    font-weight: 400;
    line-height: 1.2;
    color: var(--dark-slate);
    margin-bottom: 1.5rem;
    letter-spacing: -0.5px;
}

.hero-subtitle {
    font-size: 1.15rem;
    color: var(--text-muted);
    margin-bottom: 2.5rem;
    font-weight: 300;
}

.hero-image-side {
    flex: 1;
    display: flex;
    justify-content: flex-end;
    height: 65vh;                /* Bounds the portrait box size */
    max-width: 500px;
    position: relative;          /* Crucial: Anchor point for the design mask overlay */
}

.realtor-img {
    width: 100%;
    height: 100%;
    object-fit: cover;           
    border-radius: 4px;
    box-shadow: 0 20px 40px rgba(30, 36, 43, 0.08);
    
    /* LOW-RESOLUTION ANTI-BLUR TRICKS */
    image-rendering: -webkit-optimize-contrast; /* Sharpens pixel edge rendering paths on mobile/Safari */
    max-width: 100%;             /* Prevents layout from up-scaling the file past its actual native size */
    
    /* Trick 1 & 3: Transforms color pixelation into high-contrast B&W with a soft-focus lens glow */
    filter: grayscale(100%) contrast(115%) blur(0.6px); 
}

/* Trick 2: Places a dark luxury vignette pane directly over the image container */
/* This blends the image edges smoothly and masks missing pixel details */
.hero-image-side::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 4px;
    background: linear-gradient(to bottom, rgba(30, 36, 43, 0.15), rgba(30, 36, 43, 0.5));
    pointer-events: none;        /* Ensures visitors can still click through the overlay layer if needed */
}

/* --- Section Formatting --- */
.section-title {
    text-align: center;
    font-size: 2rem;
    font-weight: 400;
    letter-spacing: 1px;
    margin-bottom: 1rem;
    text-transform: uppercase;
    color: var(--dark-slate);
}

.section-subtitle {
    text-align: center;
    color: var(--text-muted);
    font-size: 1rem;
    margin-bottom: 3.5rem;
    font-weight: 300;
}

.services-section, .gallery-section, .quote-section {
    padding: 7rem 5%;
    max-width: 1200px;
    margin: 0 auto;
}

.grid-alt-bg {
    background-color: var(--alt-bg);
    max-width: 100% !important;
    padding-left: 5%;
    padding-right: 5%;
}

/* --- Advantage Metric Panels --- */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 3rem;
}

.service-card {
    background-color: var(--card-bg);
    padding: 3.5rem 2rem;
    border: 1px solid rgba(30, 36, 43, 0.05);
    text-align: center;
    box-shadow: 0 4px 20px rgba(30, 36, 43, 0.02);
    transition: transform 0.3s ease;
}

.service-card:hover {
    transform: translateY(-4px);
}

.service-icon {
    font-size: 2rem;
    margin-bottom: 1.5rem;
}

.service-card h3 {
    font-size: 1.25rem;
    color: var(--dark-slate);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 1rem;
    font-weight: 600;
}

.service-card p {
    color: var(--text-muted);
    font-size: 0.95rem;
    font-weight: 300;
}

/* --- Property Galleries (Listings & Closings) --- */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2.5rem;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    height: 260px;               /* Keeps listing/closing display boxes uniformly sized */
    background-color: var(--dark-slate);
}

.gallery-img {
    width: 100%;
    height: 100%;
    object-fit: cover;           /* Fits home architecture images completely edge-to-edge */
    display: block;
    transition: transform 0.5s ease;
    opacity: 0.9;
}

.gallery-status-tag {
    position: absolute;
    top: 15px;
    left: 15px;
    padding: 0.4rem 0.8rem;
    font-size: 0.7rem;
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: 1px;
    z-index: 10;
    color: #ffffff;
}

.status-active { background-color: var(--primary-color); }
.status-pending { background-color: #64748b; }
.status-closed { background-color: var(--dark-slate); border: 1px solid rgba(255,255,255,0.2); }

.gallery-info {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 1.5rem;
    background: linear-gradient(360deg, rgba(30, 36, 43, 0.95) 0%, rgba(30, 36, 43, 0.3) 100%);
    z-index: 5;
    color: #ffffff;
}

.gallery-info h4 {
    font-size: 1.1rem;
    font-weight: 500;
    margin-bottom: 0.2rem;
    letter-spacing: 0.5px;
}

.gallery-info p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.85rem;
    font-weight: 300;
}

.gallery-item:hover .gallery-img {
    transform: scale(1.04);      /* Soft luxury hover zoom effect */
}

/* --- Consultation Form --- */
.quote-section {
    background-color: var(--alt-bg);
    max-width: 100% !important;
}

.quote-container {
    max-width: 550px;
    margin: 0 auto;
    text-align: center;
}

.quote-container h2 {
    font-size: 1.8rem;
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 0.75rem;
}

.quote-container p {
    color: var(--text-muted);
    margin-bottom: 2.5rem;
    font-size: 0.95rem;
    font-weight: 300;
}

.quote-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.quote-form input, .quote-form select {
    width: 100%;
    padding: 1.1rem;
    background-color: var(--card-bg);
    border: 1px solid rgba(30, 36, 43, 0.1);
    color: var(--dark-slate);
    font-size: 0.95rem;
    font-family: inherit;         /* Fixed: Prevents text inside fields from breaking to system serif fonts */
}

.quote-form input:focus, .quote-form select:focus {
    outline: none;
    border-color: var(--primary-color);
}

.form-submit {
    background-color: var(--dark-slate);
    color: var(--light-bg);
    padding: 1.2rem;
    font-size: 0.9rem;
    font-weight: 600;
    margin-top: 0.5rem;
}

.form-submit:hover {
    background-color: var(--primary-color);
}

/* --- Footer --- */
.main-footer {
    text-align: center;
    padding: 4rem 0;
    color: var(--text-muted);
    font-size: 0.8rem;
    letter-spacing: 0.5px;
    border-top: 1px solid rgba(30, 36, 43, 0.05);
}

/* --- Mobile Viewport Responsiveness Adjustments --- */
@media (max-width: 968px) {
    .hero-container-split {
        flex-direction: column;   /* Stacks the text and portrait vertically on smaller screens */
        text-align: center;
        gap: 2.5rem;
    }

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

    .hero-title {
        font-size: 2.4rem;
    }

    .hero-image-side {
        height: 50vh;             /* Reduces block height on mobile viewports for clean spacing */
        justify-content: center;
        width: 100%;
    }

    .nav-menu {
        display: none;            /* Strips out the navigation menu links to keep mobile headers clean */
    }

    .secondary-cta {
        margin-left: 0;
        margin-top: 1rem;
        display: block;          /* Clean block stacking with top margin breathing room on mobile screens */
    }
}