@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');

/* ==========================================================================
   Moore & Wright - modern visual layer for the PUBLIC website pages only.
   Loaded after style.css on: home, services, service detail, articles,
   article detail, get-estimate, case-tracker. Not used by the staff
   dashboard, client portal or login pages. Same content, same features.
   ========================================================================== */

:root {
    --mw-ink: #0F1115;
    --mw-body: #475062;
    --mw-line: #E6E9EF;
    --mw-soft: #F6F7FA;
    --mw-red: #C8102E;
    --mw-radius: 20px;
    --mw-shadow: 0 1px 2px rgba(16, 24, 40, .04), 0 10px 30px rgba(16, 24, 40, .06);
    --mw-shadow-hover: 0 2px 4px rgba(16, 24, 40, .04), 0 22px 48px rgba(200, 16, 46, .12);
    --text-muted: #5B6472;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    color: var(--mw-body);
    background: #fff;
    font-feature-settings: 'cv11', 'ss01';
}
h1, h2, h3, h4 { color: var(--mw-ink); letter-spacing: -0.025em; }

/* ---------- Buttons ---------- */
.btn-primary, .btn-secondary {
    border-radius: 999px; padding: 14px 26px; font-weight: 600; font-size: .95rem; letter-spacing: 0;
}
.btn-primary { background: linear-gradient(135deg, #C8102E 0%, #E11D3F 100%); box-shadow: 0 6px 18px rgba(200, 16, 46, .28); }
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 10px 26px rgba(200, 16, 46, .38); }
.btn-secondary { background: #fff; color: var(--mw-ink); border: 1px solid var(--mw-line); box-shadow: 0 1px 2px rgba(16, 24, 40, .05); }
.btn-secondary:hover { background: var(--mw-ink); border-color: var(--mw-ink); color: #fff; transform: translateY(-1px); }

/* ---------- Header ---------- */
.site-header {
    background: rgba(255, 255, 255, .82);
    backdrop-filter: saturate(180%) blur(16px); -webkit-backdrop-filter: saturate(180%) blur(16px);
    border-bottom: 1px solid var(--mw-line);
}
.nav-container { height: 76px; max-width: 1280px; gap: 20px; }
.site-logo-img { height: 56px; width: auto; image-rendering: auto; }
.footer-logo-img { height: 64px; width: auto; }
.nav-links a {
    text-transform: none; letter-spacing: 0; font-size: .93rem; font-weight: 500; color: var(--mw-body);
    padding: 8px 14px; border-radius: 999px; background: none; box-shadow: none; transform: none;
}
.nav-links a:hover { color: var(--mw-ink); background: var(--mw-soft); box-shadow: none; transform: none; }
.nav-btn { padding: 10px 20px; font-size: .9rem; }
.nav-login-btn { font-weight: 600; font-size: .9rem; border: 1px solid var(--mw-line) !important; border-radius: 999px !important; padding: 9px 20px !important; background: #fff; color: var(--mw-ink); box-shadow: 0 1px 2px rgba(16,24,40,.05); }
.nav-login-btn:hover { background: var(--mw-soft); }

@media (min-width: 1101px) {
    .main-nav { display: block !important; position: static; width: auto; padding: 0; background: transparent !important; box-shadow: none; margin-left: auto; }
    .main-nav .nav-links { flex-direction: row; align-items: center; gap: 2px; width: auto; }
    .mobile-toggle { display: none !important; }
    [data-theme="dark"] .main-nav { background: transparent !important; }
}
@media (max-width: 1100px) {
    .main-nav { top: 76px; border-bottom: 1px solid var(--mw-line); background: #fff; }
    .main-nav .nav-links { gap: .5rem; }
    .nav-links a { font-size: 1rem; padding: 10px 18px; }
}
@media (max-width: 768px) {
    .nav-container { height: 64px; }
    .site-logo-img { height: 40px; }
    .footer-logo-img { height: 52px; }
    .main-nav { top: 64px; }
}

/* ---------- Hero ---------- */
.hero {
    padding: 150px 0 90px; min-height: 0; align-items: center;
    background:
        radial-gradient(900px 480px at 85% -10%, rgba(200, 16, 46, .09), transparent 60%),
        radial-gradient(700px 400px at -5% 110%, rgba(15, 17, 21, .05), transparent 60%),
        #fff;
}
.hero::after {
    content: ''; position: absolute; inset: 0; z-index: 0; pointer-events: none;
    background-image: linear-gradient(var(--mw-line) 1px, transparent 1px), linear-gradient(90deg, var(--mw-line) 1px, transparent 1px);
    background-size: 56px 56px; opacity: .45;
    -webkit-mask-image: radial-gradient(ellipse 70% 70% at 70% 30%, #000 0%, transparent 75%);
            mask-image: radial-gradient(ellipse 70% 70% at 70% 30%, #000 0%, transparent 75%);
}
.hero-glow { display: none; }
.hero-container { display: grid; grid-template-columns: 1.15fr .85fr; gap: 4rem; align-items: center; }
.hero-content { max-width: none; }
.hero-eyebrow {
    display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px 6px 10px; margin-bottom: 1.5rem;
    background: #fff; border: 1px solid var(--mw-line); border-radius: 999px; box-shadow: 0 1px 2px rgba(16, 24, 40, .05);
    font-size: .82rem; font-weight: 600; color: var(--mw-ink);
}
.hero-eyebrow::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: var(--mw-red); box-shadow: 0 0 0 4px rgba(200, 16, 46, .15); }
.hero h1 { font-size: clamp(2.6rem, 5vw, 4.4rem); line-height: 1.04; letter-spacing: -0.035em; margin-bottom: 1.4rem; font-weight: 800; }
.hero-subtitle { font-size: 1.1rem; line-height: 1.75; color: var(--mw-body); margin-bottom: 2.2rem; max-width: 600px; }
.hero-buttons { gap: .9rem; flex-wrap: wrap; }

.hero-visual { position: relative; z-index: 2; }
.hero-card {
    background: #fff; border: 1px solid var(--mw-line); border-radius: 24px; padding: 1.6rem 1.6rem 1.4rem;
    box-shadow: 0 2px 4px rgba(16, 24, 40, .04), 0 30px 70px rgba(16, 24, 40, .12);
    transform: rotate(1.2deg);
}
.hero-card-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 1.1rem; }
.hero-card-title { font-weight: 700; color: var(--mw-ink); font-size: 1rem; letter-spacing: -0.01em; }
.hero-card-pill { font-size: .72rem; font-weight: 700; color: #0E7A4B; background: #E8F7EF; padding: 4px 10px; border-radius: 999px; }
.hero-check { list-style: none; margin: 0; padding: 0; }
.hero-check li {
    display: flex; align-items: center; gap: 12px; padding: 11px 0; border-top: 1px solid var(--mw-line);
    font-size: .94rem; font-weight: 500; color: var(--mw-ink);
}
.hero-check li:first-child { border-top: none; }
.hero-check .tick {
    flex: 0 0 22px; height: 22px; border-radius: 50%; background: var(--mw-red); color: #fff;
    display: inline-flex; align-items: center; justify-content: center; font-size: .72rem; font-weight: 800;
}
.hero-card-foot { margin-top: 1rem; padding-top: 1rem; border-top: 1px dashed var(--mw-line); display: flex; justify-content: space-between; font-size: .8rem; color: var(--mw-body); }
.hero-card-foot strong { color: var(--mw-ink); }
.hero-chip {
    position: absolute; right: -18px; bottom: -26px; background: var(--mw-ink); color: #fff; border-radius: 16px; padding: 12px 16px;
    box-shadow: 0 18px 40px rgba(15, 17, 21, .3); transform: rotate(2deg); font-size: .78rem; line-height: 1.35;
}
.hero-chip b { display: block; font-size: 1.35rem; letter-spacing: -0.02em; }

/* ---------- Marquee strip ---------- */
.mw-marquee { border-top: 1px solid var(--mw-line); border-bottom: 1px solid var(--mw-line); background: var(--mw-soft); overflow: hidden; white-space: nowrap; padding: 18px 0; }
.mw-marquee-track { display: inline-flex; gap: 0; animation: mwMarquee 38s linear infinite; }
.mw-marquee span { display: inline-flex; align-items: center; padding: 0 28px; font-size: .78rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: #7A8394; }
.mw-marquee span::after { content: ''; width: 5px; height: 5px; border-radius: 50%; background: var(--mw-red); margin-left: 56px; }
@keyframes mwMarquee { to { transform: translateX(-50%); } }

/* ---------- Section headers ---------- */
.section-header { margin-bottom: 3.5rem; }
.section-header::before {
    display: inline-block; margin-bottom: 1rem; padding: 5px 14px; border-radius: 999px;
    background: rgba(200, 16, 46, .08); color: var(--mw-red);
    font-size: .74rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
}
#services .section-header::before { content: 'What we do'; }
#reviews .section-header::before { content: 'Testimonials'; }
#courts .section-header::before { content: 'Coverage'; }
#contact .section-header::before { content: 'Get in touch'; }
.section-header h2 { font-size: clamp(1.9rem, 3.6vw, 2.8rem); font-weight: 800; letter-spacing: -0.03em; }
.section-header p { font-size: 1.08rem; color: var(--mw-body); }

/* ---------- Service cards (numbered) ---------- */
.services, .articles { padding: 110px 0; }
.services-grid { counter-reset: svc; gap: 1.5rem; }
.service-card {
    counter-increment: svc; border-radius: var(--mw-radius); border: 1px solid var(--mw-line);
    padding: 2.2rem 2rem 2rem; box-shadow: var(--mw-shadow); background: #fff;
}
.service-card::before { display: none; }
.service-card:hover { transform: translateY(-6px); box-shadow: var(--mw-shadow-hover); border-color: rgba(200, 16, 46, .3); }
.service-card .card-icon { display: none; }
.service-card h3::before {
    content: counter(svc, decimal-leading-zero); display: inline-flex; align-items: center; justify-content: center;
    width: 44px; height: 44px; margin-bottom: 1.2rem; border-radius: 14px;
    background: var(--mw-ink); color: #fff; font-size: .9rem; font-weight: 700; letter-spacing: .02em;
    transition: background .3s ease;
}
.service-card h3 { display: flex; flex-direction: column; align-items: flex-start; font-size: 1.3rem; margin-bottom: .8rem; }
.service-card:hover h3::before { background: var(--mw-red); }
.service-card p { font-size: .96rem; line-height: 1.7; color: var(--mw-body); }
.learn-more-link { margin-top: 1.1rem; color: var(--mw-red); font-weight: 600; }
.learn-more-link:hover { text-decoration: none; letter-spacing: .01em; }

/* ---------- About ---------- */
.about { padding: 110px 0; background: var(--mw-soft); }
.about-title { font-size: clamp(2rem, 3.8vw, 3rem); font-weight: 800; letter-spacing: -0.03em; }
.about-text { font-size: 1.05rem; line-height: 1.8; color: var(--mw-body); }
.about-checklist { display: grid; gap: .9rem; margin-top: 2rem; }
.about-checklist li {
    margin: 0; padding: 14px 18px; background: #fff; border: 1px solid var(--mw-line); border-radius: 14px;
    font-size: .98rem; font-weight: 500; color: var(--mw-body);
}
.about-stats { grid-template-columns: 1fr; gap: 1rem; }
.stat-box { border-radius: var(--mw-radius); border: 1px solid var(--mw-line); box-shadow: var(--mw-shadow); padding: 2rem; text-align: left; }
.stat-box:hover { transform: translateY(-3px); }
.stat-number { font-size: clamp(2.4rem, 4vw, 3.4rem); letter-spacing: -0.04em; margin-bottom: .25rem; color: var(--mw-ink); }
.stat-label { font-size: .92rem; font-weight: 600; color: var(--mw-body); }
.stat-dark { background: var(--mw-ink); border-color: var(--mw-ink); }
.stat-dark .stat-number, .stat-dark .stat-label { color: #fff; }
.stat-accent { background: linear-gradient(135deg, #C8102E, #E11D3F); border-color: transparent; }
.stat-accent .stat-number, .stat-accent .stat-label { color: #fff; }

/* ---------- Reviews ---------- */
.reviews { padding: 110px 0; background: #fff; }
.review-card { border-radius: var(--mw-radius); border: 1px solid var(--mw-line); box-shadow: var(--mw-shadow); padding: 2rem; }
.review-card:hover { transform: translateY(-4px); box-shadow: var(--mw-shadow-hover); }
.review-stars { color: #F5B301; }
.review-body p { font-size: 1rem; line-height: 1.75; color: var(--mw-body); }

/* ---------- Courts ---------- */
.courts-section { padding: 110px 0; background: var(--mw-soft); }
.courts-map-wrap, .courts-detail-panel { border-radius: var(--mw-radius); border: 1px solid var(--mw-line); box-shadow: var(--mw-shadow); }
.courts-search-wrap { border-radius: 999px; border: 1px solid var(--mw-line); box-shadow: var(--mw-shadow); }
.court-quick-btn { border: 1px solid var(--mw-line); background: #fff; color: var(--mw-ink); font-weight: 600; padding: 10px 20px; }
.court-quick-btn:hover { background: var(--mw-ink); color: #fff; }
.court-chip { border: 1px solid var(--mw-line); font-weight: 500; }

/* ---------- Contact ---------- */
.contact-section { padding: 110px 0; }
.contact-card { border-radius: 24px; border: 1px solid var(--mw-line); box-shadow: var(--mw-shadow); }
.contact-card-icon { border-radius: 14px; }

/* ---------- Sub-page headers ---------- */
.page-header {
    padding: 150px 0 70px;
    background:
        radial-gradient(800px 360px at 80% -20%, rgba(200, 16, 46, .08), transparent 60%),
        linear-gradient(#fff, var(--mw-soft));
    border-bottom: 1px solid var(--mw-line);
}
.page-header h1 { font-size: clamp(2.2rem, 4.4vw, 3.4rem); font-weight: 800; letter-spacing: -0.035em; }
.page-header p { font-size: 1.1rem; color: var(--mw-body); }

/* ---------- Articles ---------- */
.article-card { border-radius: var(--mw-radius); border: 1px solid var(--mw-line); box-shadow: var(--mw-shadow); background: #fff; }
.article-card:hover { transform: translateY(-4px); box-shadow: var(--mw-shadow-hover); }
.article-card::before { display: none; }
.article-category { background: rgba(200, 16, 46, .08); letter-spacing: .08em; }
.read-more { text-transform: none; letter-spacing: 0; color: var(--mw-red); font-weight: 600; }

/* ---------- Forms (estimate, tracker) ---------- */
.estimate-form input, .estimate-form select, .estimate-form textarea,
.tracker-form input, .form-group input[type="text"], .form-group input[type="email"],
.form-group input[type="tel"], .form-group select, .form-group textarea {
    border-radius: 12px; border: 1px solid var(--mw-line); font-family: inherit;
}
.estimate-form input:focus, .estimate-form select:focus, .estimate-form textarea:focus,
.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
    outline: none; border-color: var(--mw-red); box-shadow: 0 0 0 4px rgba(200, 16, 46, .12);
}

/* uniform control heights on the public forms */
.estimate-form input[type="text"], .estimate-form input[type="email"], .estimate-form input[type="tel"],
.estimate-form input[type="date"], .estimate-form select { min-height: 48px; box-sizing: border-box; }
.nav-links a.active { color: var(--mw-ink); background: var(--mw-soft); }

/* ---------- Footer ---------- */
.site-footer { background: #0B0C10; padding-top: 90px; color: #9AA3B2; }
.site-footer h4 { font-size: 1rem; letter-spacing: 0; color: #fff; }
.site-footer ul a { transition: color .2s ease; }
.site-footer ul a:hover { color: #fff; padding-left: 0; }
.footer-bottom { background: transparent; border-top: 1px solid rgba(255, 255, 255, .08); }
.footer-btn { border-radius: 999px; }

/* ---------- Chat button ---------- */
.chat-toggle { box-shadow: 0 10px 28px rgba(200, 16, 46, .4); }
.chat-window { border-radius: 24px; }

/* ---------- Responsive ---------- */
@media (max-width: 992px) {
    .hero-container { grid-template-columns: 1fr; gap: 3rem; }
    .hero { padding: 120px 0 70px; text-align: left; }
    .hero-card { transform: none; }
    .hero-chip { right: 12px; bottom: -22px; }
    .about-stats { grid-template-columns: repeat(3, 1fr); }
    .stat-box { text-align: center; padding: 1.4rem 1rem; }
}
@media (max-width: 768px) {
    .hero { padding: 96px 0 56px; text-align: left; }
    .hero-subtitle { font-size: 1rem; }
    .hero-buttons { align-items: stretch; flex-direction: column; }
    .hero-buttons .btn-primary, .hero-buttons .btn-secondary { max-width: none; width: 100%; }
    .services, .about, .reviews, .courts-section, .contact-section, .articles { padding: 64px 0; }
    .about-stats { grid-template-columns: 1fr; }
    .stat-box { text-align: left; padding: 1.5rem; }
    .page-header { padding: 104px 0 48px; }
}

/* ---------- Dark mode ---------- */
[data-theme="dark"] { --mw-ink: #F2F3F6; --mw-body: #A3A9B6; --mw-line: rgba(255, 255, 255, .09); --mw-soft: #13141A; --text-muted: #9297a3; }
[data-theme="dark"] body { background: #0A0A0C; color: var(--mw-body); }
[data-theme="dark"] .site-header { background: rgba(10, 10, 12, .78); }
[data-theme="dark"] .nav-links a:hover { background: rgba(255, 255, 255, .06); color: #fff; }
@media (max-width: 1100px) { [data-theme="dark"] .main-nav { background: #0F0F12 !important; } }
[data-theme="dark"] .nav-login-btn { background: rgba(255,255,255,.04); color: #fff; }
[data-theme="dark"] .btn-secondary { background: rgba(255, 255, 255, .04); color: #fff; border-color: rgba(255, 255, 255, .14); }
[data-theme="dark"] .btn-secondary:hover { background: #fff; color: #0A0A0C; }
[data-theme="dark"] .hero {
    background: radial-gradient(900px 480px at 85% -10%, rgba(200, 16, 46, .18), transparent 60%), #0A0A0C;
}
[data-theme="dark"] .hero-eyebrow, [data-theme="dark"] .hero-card { background: #15161C; border-color: rgba(255, 255, 255, .09); color: #fff; }
[data-theme="dark"] .hero-eyebrow { color: #fff; }
[data-theme="dark"] .hero-card { box-shadow: 0 30px 70px rgba(0, 0, 0, .5); }
[data-theme="dark"] .hero-card-title, [data-theme="dark"] .hero-check li, [data-theme="dark"] .hero-card-foot strong { color: #F2F3F6; }
[data-theme="dark"] .hero-card-pill { background: rgba(14, 122, 75, .2); color: #5FD3A0; }
[data-theme="dark"] .hero-chip { background: #fff; color: #0A0A0C; }
[data-theme="dark"] .mw-marquee { background: #101116; }
[data-theme="dark"] .mw-marquee span { color: #7C8496; }
[data-theme="dark"] .section-header::before { background: rgba(200, 16, 46, .16); color: #FF5A73; }
[data-theme="dark"] .page-header { background: radial-gradient(800px 360px at 80% -20%, rgba(200, 16, 46, .16), transparent 60%), #0A0A0C; }
[data-theme="dark"] .service-card h3::before { background: rgba(255, 255, 255, .1); }
[data-theme="dark"] .service-card:hover h3::before { background: var(--mw-red); }
[data-theme="dark"] .about, [data-theme="dark"] .courts-section { background: #101116; }
[data-theme="dark"] .about-checklist li { background: #15161C; border-color: rgba(255, 255, 255, .08); color: #D5D8E0; }
[data-theme="dark"] .stat-number, [data-theme="dark"] .stat-label { color: #F2F3F6; }
[data-theme="dark"] .stat-accent .stat-number, [data-theme="dark"] .stat-accent .stat-label { color: #fff; }
[data-theme="dark"] .court-quick-btn { background: rgba(255, 255, 255, .04); border-color: rgba(255, 255, 255, .12); color: #fff; }

@media (prefers-reduced-motion: reduce) {
    .mw-marquee-track { animation: none; }
    * { scroll-behavior: auto !important; }
}


/* ---------- Hero map card ---------- */
.hero-container.no-visual { grid-template-columns: 1fr; }
.hero-map-card { transform: none; padding: 1.3rem 1.3rem 1.2rem; }
.hero-map-wrap { position: relative; background: var(--mw-soft); border-radius: 16px; padding: .5rem; }
#hero-map { width: 100%; height: auto; display: block; }
.hero-map-loading { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font-size: .85rem; font-weight: 600; color: var(--mw-body); }
.hero-map-loading.hidden { display: none; }
#hero-map .hero-state { fill: #DDE1E8; stroke: #fff; stroke-width: 1; cursor: pointer; transition: fill .35s ease, opacity .35s ease; }
#hero-map .hero-state.is-active { fill: var(--mw-red); }
#hero-map .hero-state.is-dim { opacity: .55; }
#hero-map .hero-dc { fill: rgba(15, 17, 21, .15); stroke: var(--mw-ink); stroke-width: 2.5; transition: all .3s ease; }
#hero-map .hero-dc.is-active { fill: rgba(200, 16, 46, .2); stroke: var(--mw-red); stroke-width: 3; r: 13; }
#hero-map .hero-dc-pulse { fill: none; stroke: var(--mw-red); stroke-width: 2; opacity: 0; pointer-events: none; }
#hero-map .hero-dc-pulse.is-active { animation: heroDcPulse 1.5s ease-out infinite; }
@keyframes heroDcPulse { from { opacity: .8; r: 10; } to { opacity: 0; r: 30; } }
.hero-map-tip { position: absolute; top: 0; left: 0; pointer-events: none; opacity: 0; transition: opacity .15s ease; background: var(--mw-ink); color: #fff; font-size: .74rem; font-weight: 600; padding: 5px 10px; border-radius: 8px; white-space: nowrap; z-index: 3; }
.hero-map-tip.visible { opacity: 1; }
.hero-map-caption { display: flex; flex-direction: column; gap: 2px; margin-top: .9rem; padding: .2rem .2rem 0; min-height: 2.6rem; }
.hero-map-caption strong { font-size: 1.02rem; color: var(--mw-ink); letter-spacing: -0.01em; }
.hero-map-caption span { font-size: .82rem; color: var(--mw-body); }
[data-theme="dark"] .hero-map-wrap { background: #101116; }
[data-theme="dark"] #hero-map .hero-state { fill: #2A2C35; stroke: #15161C; }
[data-theme="dark"] #hero-map .hero-state.is-active { fill: var(--mw-red); }
[data-theme="dark"] #hero-map .hero-dc { fill: rgba(255, 255, 255, .12); stroke: #E8E9EC; }
[data-theme="dark"] .hero-map-tip { background: #fff; color: #0A0A0C; }
@media (max-width: 992px) { .hero-map-card { max-width: 560px; } }
