/* =============================================================
   BuyWakeCounty.com — Main Stylesheet
   Design: Modern editorial with deep blue + warm amber accent.
   Typography: DM Serif Display (headings) + Plus Jakarta Sans (body).
   Approach: Mobile-first responsive.
   ============================================================= */

/* ─── Variables ──────────────────────────────────────────────── */
:root {
    --clr-deep:       #0c1e3a;
    --clr-navy:       #142d55;
    --clr-slate:      #2a4068;
    --clr-mid:        #4a6380;
    --clr-soft:       #8da4be;
    --clr-light:      #d6e2ee;
    --clr-offwhite:   #f0f4f8;
    --clr-white:      #ffffff;
    --clr-amber:      #d4943a;
    --clr-amber-light:#e8b96e;
    --clr-amber-dark: #b07a2e;
    --clr-success:    #2e8b57;
    --clr-danger:     #c0392b;
    --clr-warm-bg:    #faf8f5;
    
    --font-heading:   'DM Serif Display', Georgia, 'Times New Roman', serif;
    --font-body:      'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    
    --shadow-sm:      0 1px 3px rgba(12,30,58,0.08);
    --shadow-md:      0 4px 12px rgba(12,30,58,0.10);
    --shadow-lg:      0 8px 30px rgba(12,30,58,0.12);
    --shadow-xl:      0 20px 60px rgba(12,30,58,0.15);
    
    --radius-sm:      6px;
    --radius-md:      10px;
    --radius-lg:      16px;
    --radius-xl:      24px;
    
    --max-width:      1200px;
    --header-height:  72px;
}

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

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
    font-size: 16px;
}

body {
    font-family: var(--font-body);
    font-weight: 400;
    line-height: 1.7;
    color: var(--clr-deep);
    background: var(--clr-white);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--clr-amber-dark); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--clr-amber); }

.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 24px;
}

/* ─── Accessibility ──────────────────────────────────────────── */
.skip-link {
    position: absolute;
    top: -100%;
    left: 0;
    background: var(--clr-deep);
    color: var(--clr-white);
    padding: 12px 24px;
    z-index: 10000;
    font-weight: 600;
}
.skip-link:focus { top: 0; }

/* ─── Typography ─────────────────────────────────────────────── */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 400;
    line-height: 1.2;
    color: var(--clr-deep);
}

h1 { font-size: clamp(2.2rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.8rem, 4vw, 2.6rem); margin-bottom: 0.5em; }
h3 { font-size: clamp(1.3rem, 2.5vw, 1.6rem); margin-bottom: 0.4em; }
h4 { font-size: 1.15rem; }

p { margin-bottom: 1rem; }

.section-label {
    display: inline-block;
    font-family: var(--font-body);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--clr-amber);
    margin-bottom: 8px;
}

/* ─── Buttons ────────────────────────────────────────────────── */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 32px;
    font-family: var(--font-body);
    font-size: 0.95rem;
    font-weight: 600;
    border-radius: var(--radius-sm);
    border: 2px solid transparent;
    cursor: pointer;
    transition: all 0.25s ease;
    text-decoration: none;
    line-height: 1.2;
}

.btn-primary {
    background: var(--clr-amber);
    color: var(--clr-white);
    border-color: var(--clr-amber);
}
.btn-primary:hover {
    background: var(--clr-amber-dark);
    border-color: var(--clr-amber-dark);
    color: var(--clr-white);
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

.btn-light {
    background: var(--clr-white);
    color: var(--clr-deep);
    border-color: var(--clr-white);
}
.btn-light:hover {
    background: var(--clr-offwhite);
    color: var(--clr-deep);
    transform: translateY(-1px);
}

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

.btn-outline {
    background: transparent;
    color: var(--clr-amber-dark);
    border-color: var(--clr-amber);
}
.btn-outline:hover {
    background: var(--clr-amber);
    color: var(--clr-white);
}

/* ─── Top Bar ────────────────────────────────────────────────── */
.topbar {
    background: var(--clr-deep);
    color: var(--clr-soft);
    font-size: 0.82rem;
    padding: 8px 0;
}
.topbar-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.topbar-text i { margin-right: 6px; color: var(--clr-amber); }
.topbar-phone {
    color: var(--clr-white);
    font-weight: 600;
}
.topbar-phone:hover { color: var(--clr-amber-light); }
.topbar-phone i { margin-right: 5px; }

/* ─── Header / Nav ───────────────────────────────────────────── */
.site-header {
    background: var(--clr-white);
    border-bottom: 1px solid var(--clr-light);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: var(--shadow-sm);
}

.nav-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: var(--header-height);
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--clr-deep);
    font-size: 1.15rem;
    font-weight: 400;
}
.logo:hover { color: var(--clr-deep); }
.logo-icon { color: var(--clr-amber); font-size: 1.4rem; }
.logo-text { font-family: var(--font-body); }
.logo-text strong { font-weight: 700; }
.logo-text small { font-weight: 300; color: var(--clr-mid); font-size: 0.85em; }

.main-nav ul {
    display: flex;
    list-style: none;
    gap: 4px;
}
.main-nav a {
    display: block;
    padding: 10px 16px;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--clr-slate);
    border-radius: var(--radius-sm);
    transition: all 0.2s;
}
.main-nav a:hover {
    color: var(--clr-deep);
    background: var(--clr-offwhite);
}
.nav-cta {
    background: var(--clr-amber) !important;
    color: var(--clr-white) !important;
    font-weight: 600 !important;
}
.nav-cta:hover {
    background: var(--clr-amber-dark) !important;
}

/* Hamburger */
.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
}
.nav-toggle span {
    display: block;
    width: 26px;
    height: 2.5px;
    background: var(--clr-deep);
    border-radius: 2px;
    transition: all 0.3s;
}
.nav-toggle.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.nav-toggle.active span:nth-child(2) { opacity: 0; }
.nav-toggle.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* ─── Hero Section ───────────────────────────────────────────── */
.hero {
    position: relative;
    background: linear-gradient(135deg, var(--clr-deep) 0%, var(--clr-navy) 50%, var(--clr-slate) 100%);
    color: var(--clr-white);
    padding: 100px 0 120px;
    overflow: hidden;
}
.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Ccircle cx='30' cy='30' r='1.5'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    pointer-events: none;
}
.hero::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    right: 0;
    width: 100%;
    height: 60px;
    background: var(--clr-white);
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 60' preserveAspectRatio='none'%3E%3Cpath d='M0,60 L0,20 Q360,0 720,20 Q1080,40 1440,20 L1440,60 Z' fill='%23fff'/%3E%3C/svg%3E");
    mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 60' preserveAspectRatio='none'%3E%3Cpath d='M0,60 L0,20 Q360,0 720,20 Q1080,40 1440,20 L1440,60 Z' fill='%23fff'/%3E%3C/svg%3E");
    -webkit-mask-size: 100% 100%;
    mask-size: 100% 100%;
}

.hero .container { position: relative; z-index: 1; }

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

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(212,148,58,0.15);
    border: 1px solid rgba(212,148,58,0.3);
    color: var(--clr-amber-light);
    padding: 8px 18px;
    border-radius: 50px;
    font-size: 0.82rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    margin-bottom: 24px;
}
.hero-badge i { font-size: 0.7rem; }

.hero h1 {
    color: var(--clr-white);
    margin-bottom: 20px;
    line-height: 1.15;
}
.hero h1 em {
    font-style: italic;
    color: var(--clr-amber-light);
}

.hero-sub {
    font-size: 1.15rem;
    line-height: 1.7;
    color: var(--clr-soft);
    margin-bottom: 36px;
    max-width: 520px;
}

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

.hero-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}
.hero-stat {
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: var(--radius-md);
    padding: 28px 24px;
    text-align: center;
    backdrop-filter: blur(10px);
    transition: transform 0.3s, border-color 0.3s;
}
.hero-stat:hover {
    transform: translateY(-3px);
    border-color: rgba(212,148,58,0.3);
}
.hero-stat .number {
    display: block;
    font-family: var(--font-heading);
    font-size: 2.4rem;
    color: var(--clr-amber-light);
    line-height: 1.1;
    margin-bottom: 6px;
}
.hero-stat .label {
    font-size: 0.82rem;
    color: var(--clr-soft);
    font-weight: 500;
}

/* ─── Section Defaults ───────────────────────────────────────── */
.section {
    padding: 80px 0;
}
.section-alt {
    background: var(--clr-offwhite);
}
.section-warm {
    background: var(--clr-warm-bg);
}
.section-dark {
    background: var(--clr-deep);
    color: var(--clr-white);
}
.section-dark h2, .section-dark h3, .section-dark h4 { color: var(--clr-white); }

.section-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 50px;
}
.section-header p {
    color: var(--clr-mid);
    font-size: 1.05rem;
}

/* ─── Feature Cards Grid ─────────────────────────────────────── */
.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 28px;
}

.card {
    background: var(--clr-white);
    border-radius: var(--radius-md);
    padding: 36px 30px;
    border: 1px solid var(--clr-light);
    transition: all 0.3s ease;
    position: relative;
}
.card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: var(--clr-amber);
}
.card-icon {
    width: 52px;
    height: 52px;
    background: linear-gradient(135deg, rgba(212,148,58,0.12), rgba(212,148,58,0.04));
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    color: var(--clr-amber);
    margin-bottom: 20px;
}
.card h3 { margin-bottom: 10px; }
.card p { color: var(--clr-mid); font-size: 0.95rem; margin-bottom: 0; }

/* ─── Stats Row ──────────────────────────────────────────────── */
.stats-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    padding: 60px 0;
}
.stat-item {
    text-align: center;
}
.stat-item .number {
    display: block;
    font-family: var(--font-heading);
    font-size: 2.8rem;
    color: var(--clr-amber);
    line-height: 1.1;
    margin-bottom: 8px;
}
.stat-item .label {
    font-size: 0.9rem;
    color: var(--clr-mid);
    font-weight: 500;
}

/* ─── Two-Column Content ─────────────────────────────────────── */
.two-col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}
.two-col-content h2 { margin-bottom: 16px; }
.two-col-content p { color: var(--clr-mid); }
.two-col-content ul {
    list-style: none;
    margin: 20px 0;
}
.two-col-content ul li {
    padding: 8px 0 8px 30px;
    position: relative;
    color: var(--clr-mid);
}
.two-col-content ul li::before {
    content: '\f058';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    left: 0;
    color: var(--clr-amber);
}

.two-col-visual {
    background: linear-gradient(135deg, var(--clr-navy), var(--clr-slate));
    border-radius: var(--radius-lg);
    padding: 40px;
    color: var(--clr-white);
    min-height: 380px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.two-col-visual h3 { color: var(--clr-white); margin-bottom: 16px; }
.two-col-visual p { color: var(--clr-soft); }

/* ─── Price Comparison Table ─────────────────────────────────── */
.compare-table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
    font-size: 0.92rem;
}
.compare-table th {
    background: rgba(0,0,0,0.3);
    color: var(--clr-white);
    padding: 14px 18px;
    text-align: left;
    font-weight: 600;
    font-family: var(--font-body);
}
.compare-table th:first-child { border-radius: var(--radius-sm) 0 0 0; }
.compare-table th:last-child { border-radius: 0 var(--radius-sm) 0 0; }
.compare-table td {
    padding: 14px 18px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    color: var(--clr-white);
}
.compare-table tr:nth-child(even) { background: rgba(255,255,255,0.06); }
.compare-table tr:nth-child(odd) { background: rgba(255,255,255,0.02); }
.compare-table .highlight { color: #5dda8f; font-weight: 700; }

/* ─── Testimonials ───────────────────────────────────────────── */
.testimonial-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 28px;
}
.testimonial {
    background: var(--clr-white);
    border-radius: var(--radius-md);
    padding: 32px;
    border: 1px solid var(--clr-light);
    position: relative;
}
.testimonial::before {
    content: '\201C';
    font-family: var(--font-heading);
    font-size: 4rem;
    color: var(--clr-amber);
    opacity: 0.2;
    position: absolute;
    top: 10px;
    left: 20px;
    line-height: 1;
}
.testimonial-stars {
    color: var(--clr-amber);
    font-size: 0.9rem;
    margin-bottom: 12px;
}
.testimonial p {
    font-style: italic;
    color: var(--clr-mid);
    margin-bottom: 12px;
}
.testimonial-author {
    font-weight: 600;
    font-size: 0.88rem;
    color: var(--clr-deep);
}

/* ─── About / Agent Section ──────────────────────────────────── */
.agent-card {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 48px;
    align-items: start;
    background: var(--clr-white);
    border-radius: var(--radius-lg);
    padding: 48px;
    border: 1px solid var(--clr-light);
    box-shadow: var(--shadow-md);
}
.agent-photo {
    width: 100%;
    border-radius: var(--radius-md);
    aspect-ratio: 3/4;
    object-fit: cover;
    object-position: center 20%;
    background: var(--clr-offwhite);
}
.agent-photo-placeholder {
    width: 100%;
    border-radius: var(--radius-md);
    aspect-ratio: 3/4;
    background: linear-gradient(135deg, var(--clr-navy), var(--clr-slate));
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--clr-soft);
    font-size: 4rem;
}
.agent-creds {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 20px 0;
}
.agent-cred {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: var(--clr-offwhite);
    color: var(--clr-deep);
    padding: 6px 14px;
    border-radius: 50px;
    font-size: 0.82rem;
    font-weight: 600;
}
.agent-cred i { color: var(--clr-amber); }

/* ─── Contact Form ───────────────────────────────────────────── */
.contact-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
}

.form-group {
    margin-bottom: 20px;
}
.form-group label {
    display: block;
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--clr-deep);
    margin-bottom: 6px;
}
.form-group label .required { color: var(--clr-danger); }

.form-control {
    width: 100%;
    padding: 12px 16px;
    font-family: var(--font-body);
    font-size: 0.95rem;
    border: 2px solid var(--clr-light);
    border-radius: var(--radius-sm);
    background: var(--clr-white);
    color: var(--clr-deep);
    transition: border-color 0.2s, box-shadow 0.2s;
    -webkit-appearance: none;
}
.form-control:focus {
    outline: none;
    border-color: var(--clr-amber);
    box-shadow: 0 0 0 3px rgba(212,148,58,0.15);
}
.form-control::placeholder { color: var(--clr-soft); }

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

select.form-control {
    cursor: pointer;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%234a6380' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    padding-right: 36px;
}

/* Honeypot field — hidden from humans, visible to bots */
.form-hp { position: absolute; left: -9999px; opacity: 0; height: 0; width: 0; overflow: hidden; }

.form-messages {
    padding: 16px 20px;
    border-radius: var(--radius-sm);
    margin-bottom: 20px;
    font-size: 0.92rem;
    font-weight: 500;
}
.form-success {
    background: rgba(46,139,87,0.08);
    border: 1px solid rgba(46,139,87,0.25);
    color: var(--clr-success);
}
.form-error {
    background: rgba(192,57,43,0.08);
    border: 1px solid rgba(192,57,43,0.25);
    color: var(--clr-danger);
}

.contact-info-side h3 { margin-bottom: 20px; }
.contact-info-item {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    margin-bottom: 24px;
}
.contact-info-item i {
    color: var(--clr-amber);
    font-size: 1.1rem;
    margin-top: 3px;
    width: 20px;
    text-align: center;
}
.contact-info-item strong { display: block; margin-bottom: 2px; }
.contact-info-item a { color: var(--clr-deep); }
.contact-info-item a:hover { color: var(--clr-amber); }

/* ─── CTA Banner ─────────────────────────────────────────────── */
.cta-banner {
    background: linear-gradient(135deg, var(--clr-deep) 0%, var(--clr-navy) 60%, var(--clr-slate) 100%);
    color: var(--clr-white);
    padding: 80px 0;
    text-align: center;
}
.cta-banner h2 { color: var(--clr-white); margin-bottom: 16px; }
.cta-banner p { color: var(--clr-soft); max-width: 600px; margin: 0 auto 32px; font-size: 1.05rem; }
.cta-buttons { display: flex; justify-content: center; gap: 16px; flex-wrap: wrap; }

/* ─── Footer ─────────────────────────────────────────────────── */
.site-footer {
    background: var(--clr-deep);
    color: var(--clr-soft);
    padding: 60px 0 30px;
}
.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}
.footer-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 16px;
}
.footer-logo .logo-icon { color: var(--clr-amber); font-size: 1.3rem; }
.footer-logo .logo-text { color: var(--clr-white); font-size: 1.05rem; }
.footer-logo .logo-text strong { color: var(--clr-white); }
.footer-logo .logo-text small { color: var(--clr-soft); }

.footer-about p { font-size: 0.9rem; line-height: 1.7; }
.footer-brokerage { font-weight: 600; color: var(--clr-amber-light); }

.footer-col h4 {
    color: var(--clr-white);
    font-family: var(--font-body);
    font-weight: 700;
    font-size: 0.88rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 18px;
}
.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 10px; }
.footer-col ul a {
    color: var(--clr-soft);
    font-size: 0.9rem;
    transition: color 0.2s;
}
.footer-col ul a:hover { color: var(--clr-amber-light); }

.footer-contact p {
    font-size: 0.9rem;
    margin-bottom: 10px;
}
.footer-contact a { color: var(--clr-soft); }
.footer-contact a:hover { color: var(--clr-amber-light); }
.footer-contact i { color: var(--clr-amber); margin-right: 8px; width: 16px; }

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.08);
    padding-top: 24px;
    text-align: center;
    font-size: 0.82rem;
}
.footer-bottom p { margin-bottom: 6px; }
.footer-credits a { color: var(--clr-soft); margin: 0 6px; }
.footer-credits a:hover { color: var(--clr-amber-light); }
.footer-built a { color: var(--clr-mid); }
.footer-built a:hover { color: var(--clr-amber); }

/* ─── 404 Page ───────────────────────────────────────────────── */
.error-page {
    text-align: center;
    padding: 120px 0;
}
.error-page h1 { font-size: 6rem; color: var(--clr-amber); margin-bottom: 10px; }
.error-page p { color: var(--clr-mid); font-size: 1.1rem; margin-bottom: 30px; }

/* ─── Page Hero (inner pages) ────────────────────────────────── */
.page-hero {
    background: linear-gradient(135deg, var(--clr-deep), var(--clr-navy));
    color: var(--clr-white);
    padding: 70px 0 80px;
    text-align: center;
    position: relative;
}
.page-hero::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    right: 0;
    width: 100%;
    height: 50px;
    background: var(--clr-white);
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 50' preserveAspectRatio='none'%3E%3Cpath d='M0,50 L0,15 Q360,0 720,15 Q1080,30 1440,15 L1440,50 Z' fill='%23fff'/%3E%3C/svg%3E");
    mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 50' preserveAspectRatio='none'%3E%3Cpath d='M0,50 L0,15 Q360,0 720,15 Q1080,30 1440,15 L1440,50 Z' fill='%23fff'/%3E%3C/svg%3E");
    -webkit-mask-size: 100% 100%;
    mask-size: 100% 100%;
}
.page-hero h1 { color: var(--clr-white); margin-bottom: 12px; }
.page-hero p { color: var(--clr-soft); max-width: 600px; margin: 0 auto; font-size: 1.1rem; }

/* ─── Content Sections for SEO pages ─────────────────────────── */
.content-section { padding: 70px 0; }
.content-section .container { max-width: 860px; }
.content-section h2 {
    margin-bottom: 20px;
    padding-bottom: 14px;
    border-bottom: 2px solid var(--clr-light);
}
.content-section h2:not(:first-child) { margin-top: 50px; }
.content-section h3 { margin-top: 30px; margin-bottom: 12px; }
.content-section p { color: var(--clr-mid); line-height: 1.8; }
.content-section p.wide { max-width: 100%; }
.content-section ul, .content-section ol {
    padding-left: 20px;
    margin: 16px 0;
    color: var(--clr-mid);
}
.content-section li { margin-bottom: 8px; line-height: 1.7; }

/* ─── Neighborhoods Grid ─────────────────────────────────────── */
.neighborhood-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
}
.neighborhood-card {
    background: var(--clr-white);
    border: 1px solid var(--clr-light);
    border-radius: var(--radius-md);
    padding: 30px 28px;
    transition: all 0.3s;
}
.neighborhood-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: var(--clr-amber);
}
.neighborhood-card h3 {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
}
.neighborhood-card .price-tag {
    display: inline-block;
    background: var(--clr-offwhite);
    color: var(--clr-amber-dark);
    font-family: var(--font-body);
    font-size: 0.82rem;
    font-weight: 700;
    padding: 4px 12px;
    border-radius: 50px;
    margin-bottom: 12px;
}
.neighborhood-card p { color: var(--clr-mid); font-size: 0.92rem; margin-bottom: 0; }

/* ─── Responsive ─────────────────────────────────────────────── */
@media (max-width: 992px) {
    .hero-grid { grid-template-columns: 1fr; gap: 40px; }
    .hero-stats { order: 2; }
    .two-col { grid-template-columns: 1fr; gap: 40px; }
    .two-col-visual { min-height: auto; padding: 30px; }
    .agent-card { grid-template-columns: 1fr; }
    .contact-section { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .stats-row { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
    .topbar-text { display: none; }
    .topbar-inner { justify-content: center; }
    
    .nav-toggle { display: flex; }
    .main-nav {
        display: none;
        position: absolute;
        top: var(--header-height);
        left: 0;
        right: 0;
        background: var(--clr-white);
        border-bottom: 1px solid var(--clr-light);
        box-shadow: var(--shadow-lg);
        z-index: 999;
    }
    .main-nav.open { display: block; }
    .main-nav ul {
        flex-direction: column;
        padding: 16px;
        gap: 4px;
    }
    .main-nav a { padding: 14px 16px; }
    
    .hero { padding: 50px 0 70px; }
    .hero h1 { font-size: clamp(1.8rem, 6vw, 2.6rem); }
    .hero-sub { font-size: 1rem; }
    .hero-stats { grid-template-columns: 1fr 1fr; gap: 12px; }
    .hero-stat { padding: 20px 16px; }
    .hero-stat .number { font-size: 1.8rem; }
    .hero-stat .label { font-size: 0.75rem; }
    
    .section { padding: 50px 0; }
    .section-header { margin-bottom: 36px; }
    
    .page-hero { padding: 50px 0 60px; }
    .page-hero h1 { font-size: clamp(1.6rem, 5vw, 2.2rem); }
    
    .cards-grid { grid-template-columns: 1fr; }
    .card { padding: 28px 24px; }
    
    .stats-row { grid-template-columns: 1fr 1fr; gap: 20px; }
    .stat-item .number { font-size: 2rem; }
    
    .two-col-visual { padding: 24px; min-height: auto; }
    .compare-table { font-size: 0.85rem; }
    .compare-table th, .compare-table td { padding: 10px 12px; }
    
    .testimonial-grid { grid-template-columns: 1fr; }
    
    .agent-card { padding: 28px 24px; gap: 28px; }
    .agent-creds { gap: 8px; }
    .agent-cred { font-size: 0.75rem; padding: 5px 10px; }
    
    .neighborhood-grid { grid-template-columns: 1fr; }
    
    .footer-grid { grid-template-columns: 1fr; gap: 30px; }
    
    .cta-banner { padding: 50px 0; }
    .cta-banner h2 { font-size: clamp(1.4rem, 4vw, 1.8rem); }
    
    .content-section .container { padding: 0 20px; }
    
    /* Fix overflow on mobile */
    .container { padding: 0 16px; overflow-x: hidden; }
    body { overflow-x: hidden; }
}

@media (max-width: 480px) {
    .hero-actions { flex-direction: column; }
    .hero-actions .btn { width: 100%; justify-content: center; }
    .cta-buttons { flex-direction: column; align-items: center; }
    .cta-buttons .btn { width: 100%; max-width: 320px; justify-content: center; }
    .hero-stats { grid-template-columns: 1fr 1fr; gap: 10px; }
    .hero-stat { padding: 16px 12px; }
    .hero-stat .number { font-size: 1.5rem; }
    
    .stats-row { grid-template-columns: 1fr; gap: 16px; }
    
    h2 { font-size: clamp(1.4rem, 5vw, 1.8rem); }
    
    .compare-table { font-size: 0.8rem; }
    .compare-table th, .compare-table td { padding: 8px 10px; }
    
    .agent-card { padding: 20px 16px; }
    
    .contact-info-side img { width: 140px !important; height: 140px !important; }
}

/* ─── Animations ─────────────────────────────────────────────── */
@keyframes fadeUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.fade-up {
    animation: fadeUp 0.6s ease forwards;
}

/* ─── Print Styles ───────────────────────────────────────────── */
@media print {
    .topbar, .site-header, .nav-toggle, .cta-banner, .site-footer { display: none; }
    body { color: #000; }
    a { color: #000; text-decoration: underline; }
}
