/* ==========================================================================
   MW Theme — Matthew Wolfe, Coldwell Banker Realty
   Color System: CB Blue (#012169) + White + Cream (#f5f3ef)
   Typography: Playfair Display (headings) + Inter (body)
   ========================================================================== */

:root {
    --mw-blue: #012169;
    --mw-blue-deep: #001040;
    --mw-blue-light: #1a3a7a;
    --mw-white: #ffffff;
    --mw-cream: #f5f3ef;
    --mw-warm: #eee9e2;
    --mw-text: #333333;
    --mw-text-light: #666666;
    --mw-serif: 'Italiana', serif;
    --mw-sans: 'Inter', -apple-system, sans-serif;
}

/* RESET */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; }
body { font-family: var(--mw-sans); color: var(--mw-text); background: var(--mw-cream); line-height: 1.6; }
a { text-decoration: none; color: inherit; }
img { max-width: 100%; height: auto; display: block; }
ul { list-style: none; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }

/* TYPOGRAPHY */
h1, h2, h3, h4, h5 { font-family: var(--mw-serif); font-weight: 400; line-height: 1.15; color: var(--mw-blue); }

/* ===================== HEADER ===================== */
.mw-header {
    position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
    background: rgba(1, 33, 105, 0.95); backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255,255,255,0.08);
    transition: background 0.3s, box-shadow 0.3s;
}
.mw-header.scrolled { box-shadow: 0 4px 24px rgba(0,0,0,0.15); }
.mw-header { transition: background 0.3s, box-shadow 0.3s, transform 0.35s ease; }
.mw-header--hidden { transform: translateY(-100%); }
.mw-header__inner {
    display: flex; align-items: center; justify-content: space-between;
    max-width: 1200px; margin: 0 auto; padding: 0 24px; height: 80px;
}
.mw-header__logo { color: #fff; font-family: var(--mw-serif); font-size: 20px; font-weight: 500; letter-spacing: 0.5px; }
.mw-header__logo span { font-weight: 300; opacity: 0.7; font-size: 13px; display: block; font-family: var(--mw-sans); letter-spacing: 2px; text-transform: uppercase; }
.mw-header__nav { display: flex; align-items: center; gap: 36px; }
.mw-header__nav a {
    color: rgba(255,255,255,0.7); font-size: 13px; font-weight: 500;
    letter-spacing: 1.5px; text-transform: uppercase; transition: color 0.3s;
    font-family: var(--mw-sans);
}
.mw-header__nav a:hover { color: #fff; }
.mw-header__cta {
    background: transparent; border: 1px solid rgba(255,255,255,0.3); color: #fff;
    padding: 10px 24px; font-size: 12px; font-weight: 600; letter-spacing: 2px;
    text-transform: uppercase; font-family: var(--mw-sans); cursor: pointer; transition: all 0.3s;
}
.mw-header__cta:hover { background: #fff; color: var(--mw-blue); }

/* Mobile menu toggle */
.mw-header__toggle { display: none; background: none; border: none; cursor: pointer; padding: 8px; }
.mw-header__toggle span { display: block; width: 24px; height: 2px; background: #fff; margin: 5px 0; transition: all 0.3s; }

/* ===================== HERO ===================== */
.mw-hero {
    position: relative; min-height: 100vh; display: flex; align-items: center;
    overflow: hidden; background: var(--mw-blue-deep);
}
.mw-hero__bg {
    position: absolute; inset: 0; background-size: cover; background-position: center;
    z-index: 0; transform: scale(1.05);
}
.mw-hero__overlay {
    position: absolute; inset: 0; z-index: 1;
    background: linear-gradient(160deg, rgba(1,33,105,0.88) 0%, rgba(0,16,64,0.6) 50%, rgba(1,33,105,0.85) 100%);
}
.mw-hero__watermark {
    position: absolute; font-family: var(--mw-serif); font-size: clamp(120px, 16vw, 240px);
    color: rgba(255,255,255,0.05); white-space: nowrap; pointer-events: none; z-index: 1;
    bottom: -20px; right: -30px; line-height: 1; user-select: none;
}
.mw-hero__content {
    position: relative; z-index: 2; padding: 160px 0 120px; width: 100%;
}
.mw-hero__eyebrow {
    font-family: var(--mw-sans); font-size: 12px; letter-spacing: 5px;
    text-transform: uppercase; color: rgba(255,255,255,0.5); font-weight: 600; margin-bottom: 24px;
}
.mw-hero__title {
    font-family: var(--mw-serif); font-size: clamp(42px, 5.5vw, 72px);
    color: #fff; font-weight: 400; line-height: 1.08; margin-bottom: 24px; max-width: 700px;
}
.mw-hero__subtitle {
    font-family: var(--mw-sans); font-size: 17px; color: rgba(255,255,255,0.6);
    line-height: 1.7; max-width: 520px; margin-bottom: 40px;
}
.mw-hero__stats {
    display: flex; gap: 48px; margin-top: 48px; padding-top: 40px;
    border-top: 1px solid rgba(255,255,255,0.1);
}
.mw-hero__stat-value {
    font-family: var(--mw-serif); font-size: 36px; color: #fff; margin-bottom: 6px;
}
.mw-hero__stat-label {
    font-family: var(--mw-sans); font-size: 11px; color: rgba(255,255,255,0.45);
    letter-spacing: 2px; text-transform: uppercase; font-weight: 600;
}
.mw-hero__actions { display: flex; gap: 16px; margin-top: 8px; }
.mw-btn {
    display: inline-block; padding: 16px 40px; font-family: var(--mw-sans);
    font-size: 12px; font-weight: 700; letter-spacing: 2.5px; text-transform: uppercase;
    transition: all 0.4s; cursor: pointer; border: none;
}
.mw-btn--primary { background: #fff; color: var(--mw-blue); }
.mw-btn--primary:hover { background: var(--mw-cream); transform: translateY(-2px); box-shadow: 0 8px 24px rgba(0,0,0,0.15); }
.mw-btn--outline { background: transparent; color: #fff; border: 1px solid rgba(255,255,255,0.3); }
.mw-btn--outline:hover { background: rgba(255,255,255,0.1); }
.mw-btn--blue { background: var(--mw-blue); color: #fff; }
.mw-btn--blue:hover { background: var(--mw-blue-light); transform: translateY(-2px); box-shadow: 0 8px 24px rgba(1,33,105,0.3); }

/* ===================== SECTIONS ===================== */
.mw-section { position: relative; overflow: hidden; }
.mw-section--cream { background: var(--mw-cream); }
.mw-section--warm { background: var(--mw-warm); }
.mw-section--blue { background: var(--mw-blue); }
.mw-section--deep { background: linear-gradient(160deg, var(--mw-blue) 0%, var(--mw-blue-deep) 100%); }
.mw-eyebrow {
    font-family: var(--mw-sans); font-size: 12px; letter-spacing: 4px;
    text-transform: uppercase; color: var(--mw-blue); font-weight: 600; margin-bottom: 14px;
}
.mw-eyebrow--light { color: rgba(255,255,255,0.5); }
.mw-heading { font-family: var(--mw-serif); color: var(--mw-blue); margin-bottom: 24px; line-height: 1.15; }
.mw-heading--light { color: #fff; }
.mw-watermark {
    position: absolute; font-family: var(--mw-serif); font-size: clamp(100px, 14vw, 220px);
    color: rgba(1,33,105,0.06); white-space: nowrap; pointer-events: none; z-index: 0;
    line-height: 1; user-select: none;
}
.mw-watermark--light { color: rgba(255,255,255,0.05); }

/* ===================== ABOUT ===================== */
.mw-about { padding: 120px 0; }
.mw-about__grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: 80px; align-items: center; }
.mw-about__image { position: relative; }
.mw-about__image img { width: 100%; height: 500px; object-fit: cover; }
.mw-about__image::after {
    content: ''; position: absolute; top: 20px; left: 20px; right: -20px; bottom: -20px;
    border: 2px solid var(--mw-blue); z-index: -1; opacity: 0.15;
}
.mw-about__text p { color: var(--mw-text-light); font-size: 16px; line-height: 1.85; margin-bottom: 20px; }
.mw-about__accolades { display: flex; gap: 32px; margin-top: 32px; padding-top: 32px; border-top: 1px solid rgba(1,33,105,0.1); }
.mw-about__accolade { text-align: center; }
.mw-about__accolade-value { font-family: var(--mw-serif); font-size: 28px; color: var(--mw-blue); }
.mw-about__accolade-label { font-size: 11px; color: var(--mw-text-light); text-transform: uppercase; letter-spacing: 1.5px; font-weight: 600; margin-top: 4px; }

/* ===================== AREAS / COMMUNITIES ===================== */
.mw-areas { padding: 120px 0; }
.mw-areas__header { text-align: center; margin-bottom: 60px; }
.mw-areas__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.mw-area {
    position: relative; height: 400px; overflow: hidden; cursor: pointer;
    display: flex; align-items: flex-end;
}
.mw-area__bg {
    position: absolute; inset: 0; background-size: cover; background-position: center;
    transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.mw-area:hover .mw-area__bg { transform: scale(1.08); }
.mw-area__overlay {
    position: absolute; inset: 0;
    background: linear-gradient(to top, rgba(0,16,64,0.85) 0%, rgba(0,16,64,0.2) 60%, transparent 100%);
}
.mw-area__content { position: relative; z-index: 2; padding: 32px; width: 100%; }
.mw-area__name { font-family: var(--mw-serif); font-size: 26px; color: #fff; margin-bottom: 6px; }
.mw-area__county { font-size: 12px; color: rgba(255,255,255,0.5); letter-spacing: 2px; text-transform: uppercase; font-weight: 600; }

/* ===================== LISTINGS ===================== */
.mw-listings { padding: 120px 0; }
.mw-listings__header { text-align: center; margin-bottom: 60px; }
.mw-listings__grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 32px; }
.mw-listing { background: #fff; overflow: hidden; transition: transform 0.4s, box-shadow 0.4s; }
.mw-listing:hover { transform: translateY(-6px); box-shadow: 0 20px 48px rgba(0,0,0,0.1); }
.mw-listing__image { height: 280px; background-size: cover; background-position: center; position: relative; }
.mw-listing__badge {
    position: absolute; top: 16px; left: 16px; background: var(--mw-blue); color: #fff;
    padding: 6px 14px; font-size: 11px; font-weight: 600; letter-spacing: 1.5px; text-transform: uppercase;
}
.mw-listing__info { padding: 28px; }
.mw-listing__price { font-family: var(--mw-serif); font-size: 28px; color: var(--mw-blue); margin-bottom: 8px; }
.mw-listing__address { color: var(--mw-text-light); font-size: 14px; margin-bottom: 16px; }
.mw-listing__details { display: flex; gap: 24px; }
.mw-listing__detail { font-size: 13px; color: var(--mw-text-light); }
.mw-listing__detail strong { color: var(--mw-text); }

/* ===================== TESTIMONIALS ===================== */
.mw-testimonials { padding: 120px 0; }
.mw-testimonials__header { text-align: center; margin-bottom: 60px; }
.mw-testimonial {
    max-width: 800px; margin: 0 auto; text-align: center; padding: 60px 40px;
    background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.06);
}
.mw-testimonial__quote {
    font-family: var(--mw-serif); font-size: 22px; color: #fff;
    line-height: 1.7; font-style: italic; margin-bottom: 24px;
}
.mw-testimonial__author { font-size: 14px; color: rgba(255,255,255,0.5); font-weight: 600; letter-spacing: 1px; text-transform: uppercase; }

/* ===================== CTA ===================== */
.mw-cta { position: relative; padding: 140px 0; text-align: center; overflow: hidden; }
.mw-cta__bg { position: absolute; inset: 0; background-size: cover; background-position: center; }
.mw-cta__overlay {
    position: absolute; inset: 0;
    background: linear-gradient(160deg, rgba(1,33,105,0.9) 0%, rgba(0,16,64,0.8) 100%);
}
.mw-cta__inner { position: relative; z-index: 2; }
.mw-cta__title { font-family: var(--mw-serif); font-size: clamp(30px, 4vw, 48px); color: #fff; margin-bottom: 18px; }
.mw-cta__text { color: rgba(255,255,255,0.6); font-size: 17px; max-width: 540px; margin: 0 auto 36px; line-height: 1.75; }

/* ===================== FOOTER ===================== */
.mw-footer { background: var(--mw-blue-deep); padding: 80px 0 40px; }
.mw-footer__grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 48px; margin-bottom: 60px; }
.mw-footer__brand { color: #fff; font-family: var(--mw-serif); font-size: 20px; margin-bottom: 16px; }
.mw-footer__brand span { display: block; font-size: 12px; font-family: var(--mw-sans); opacity: 0.4; letter-spacing: 2px; text-transform: uppercase; font-weight: 500; margin-top: 4px; }
.mw-footer__text { color: rgba(255,255,255,0.4); font-size: 14px; line-height: 1.7; }
.mw-footer__heading { color: rgba(255,255,255,0.5); font-size: 11px; letter-spacing: 2px; text-transform: uppercase; font-weight: 600; margin-bottom: 20px; font-family: var(--mw-sans); }
.mw-footer__links a { display: block; color: rgba(255,255,255,0.5); font-size: 14px; padding: 6px 0; transition: color 0.3s; }
.mw-footer__links a:hover { color: #fff; }
.mw-footer__social { display: flex; gap: 16px; margin-top: 20px; }
.mw-footer__social a { color: rgba(255,255,255,0.4); font-size: 14px; transition: color 0.3s; }
.mw-footer__social a:hover { color: #fff; }
.mw-footer__bottom {
    border-top: 1px solid rgba(255,255,255,0.06); padding-top: 24px;
    display: flex; justify-content: space-between; align-items: center;
}
.mw-footer__copy { color: rgba(255,255,255,0.3); font-size: 12px; }
.mw-footer__legal { display: flex; gap: 24px; }
.mw-footer__legal a { color: rgba(255,255,255,0.3); font-size: 12px; transition: color 0.3s; }
.mw-footer__legal a:hover { color: rgba(255,255,255,0.6); }

/* ===================== REVEAL ===================== */
.mw-reveal { opacity: 0; transform: translateY(30px); transition: opacity 0.7s ease, transform 0.7s ease; }
.mw-reveal.revealed { opacity: 1; transform: translateY(0); }

/* ===================== RESPONSIVE ===================== */
@media (max-width: 991px) {
    .mw-about__grid { grid-template-columns: 1fr; gap: 40px; }
    .mw-areas__grid { grid-template-columns: repeat(2, 1fr); }
    .mw-footer__grid { grid-template-columns: repeat(2, 1fr); }
    .mw-header__nav { display: none; }
    .mw-header__toggle { display: block; }
    .mw-hero__stats { gap: 32px; flex-wrap: wrap; }
}
@media (max-width: 768px) {
    .mw-areas__grid { grid-template-columns: 1fr; }
    .mw-listings__grid { grid-template-columns: 1fr; }
    .mw-hero__actions { flex-direction: column; }
    .mw-footer__grid { grid-template-columns: 1fr; }
    .mw-footer__bottom { flex-direction: column; gap: 12px; text-align: center; }
}

/* Area marquee */
.mw-marquee__item{color:#fff;}

/* ===================== INTERACTIVE MAP ===================== */
.mw-map__layout{display:grid;grid-template-columns:1fr 1fr;gap:60px;align-items:center;}
.mw-map__svg-wrap{position:relative;}
.mw-map__svg{width:100%;height:auto;max-height:600px;}
.mw-map__path{transition:all 0.4s ease;cursor:pointer;}
.mw-map__county:hover .mw-map__path,
.mw-map__county.active .mw-map__path{fill:rgba(26,58,122,0.5);stroke:rgba(255,255,255,0.5);filter:url(#glow);}
.mw-map__county-name{font-family:var(--mw-serif);font-size:18px;fill:rgba(255,255,255,0.25);text-anchor:middle;pointer-events:none;}
.mw-map__county-sub{font-family:var(--mw-sans);font-size:10px;fill:rgba(255,255,255,0.15);text-anchor:middle;letter-spacing:3px;text-transform:uppercase;pointer-events:none;}
.mw-map__county:hover .mw-map__county-name,
.mw-map__county.active .mw-map__county-name{fill:rgba(255,255,255,0.6);}
.mw-map__county:hover .mw-map__county-sub,
.mw-map__county.active .mw-map__county-sub{fill:rgba(255,255,255,0.4);}
.mw-map__dot{fill:#fff;opacity:0.5;transition:all 0.3s;}
.mw-map__dot--lg{opacity:0.7;}
.mw-map__dot--sm{opacity:0.3;}
.mw-map__county:hover .mw-map__dot,
.mw-map__county.active .mw-map__dot{opacity:1;filter:url(#glow);}
.mw-map__city{font-family:var(--mw-sans);font-size:11px;fill:rgba(255,255,255,0.4);pointer-events:none;transition:fill 0.3s;}
.mw-map__city--primary{font-size:13px;font-weight:600;fill:rgba(255,255,255,0.6);}
.mw-map__city--sm{font-size:9px;fill:rgba(255,255,255,0.25);}
.mw-map__county:hover .mw-map__city,
.mw-map__county.active .mw-map__city{fill:rgba(255,255,255,0.8);}
.mw-map__county:hover .mw-map__city--sm,
.mw-map__county.active .mw-map__city--sm{fill:rgba(255,255,255,0.6);}
.mw-map__lake{font-family:var(--mw-serif);font-size:11px;fill:rgba(255,255,255,0.08);font-style:italic;text-anchor:middle;pointer-events:none;}

/* Area links list */
.mw-map__areas{display:flex;flex-direction:column;gap:0;}
.mw-map__area-link{display:flex;justify-content:space-between;align-items:center;padding:14px 0;border-bottom:1px solid rgba(255,255,255,0.08);text-decoration:none;transition:all 0.3s;cursor:pointer;}
.mw-map__area-link:hover,.mw-map__area-link.highlighted{padding-left:12px;border-bottom-color:rgba(255,255,255,0.2);}
.mw-map__area-name{font-family:var(--mw-sans);font-size:15px;color:rgba(255,255,255,0.6);transition:color 0.3s;font-weight:500;}
.mw-map__area-link:hover .mw-map__area-name,
.mw-map__area-link.highlighted .mw-map__area-name{color:#fff;}
.mw-map__area-arrow{font-size:18px;color:rgba(255,255,255,0.2);transition:all 0.3s;}
.mw-map__area-link:hover .mw-map__area-arrow,
.mw-map__area-link.highlighted .mw-map__area-arrow{color:#fff;transform:translateX(4px);}

@media(max-width:991px){
    .mw-map__layout{grid-template-columns:1fr;gap:40px;}
    .mw-map__svg-wrap{max-width:400px;margin:0 auto;}
}
