/* Maple Valley — maplevalleyfirm.com */
:root {
  --red: #A61F19;
  --red-deep: #861812;
  --red-tint: #F7EAE8;
  --cream: #FAF7F2;
  --white: #FFFFFF;
  --ink: #1F2328;
  --muted: #5A5F66;
  --line: #E6E1D9;
  --serif: "Libre Caslon Text", Georgia, "Times New Roman", serif;
  --sans: "IBM Plex Sans", "Segoe UI", Arial, sans-serif;
  --radius: 10px;
  --wrap: 1120px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font: 400 17px/1.6 var(--sans);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--red); }
a:hover { color: var(--red-deep); }
:focus-visible { outline: 3px solid var(--red); outline-offset: 2px; border-radius: 4px; }

h1, h2, h3 { font-family: var(--serif); font-weight: 700; line-height: 1.15; margin: 0 0 .5em; color: var(--ink); }
h1 { font-size: clamp(2.1rem, 5.2vw, 3.5rem); letter-spacing: -.01em; }
h2 { font-size: clamp(1.6rem, 3.4vw, 2.3rem); }
h3 { font-size: 1.2rem; }
p { margin: 0 0 1em; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }
.section { padding: 72px 0; }
section[id] { scroll-margin-top: 76px; }
.section--tint { background: var(--red-tint); }
.section--white { background: var(--white); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.eyebrow { font: 600 .8rem/1.2 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--red); margin-bottom: 14px; }
.lead { font-size: 1.15rem; color: var(--muted); max-width: 640px; }
.center { text-align: center; }
.center .lead { margin-left: auto; margin-right: auto; }
.small { font-size: .88rem; color: var(--muted); }

/* Top bar + header */
.topbar { height: 6px; background: var(--red); }
.header { position: sticky; top: 0; z-index: 50; background: rgba(250, 247, 242, .96); backdrop-filter: blur(6px); border-bottom: 1px solid var(--line); }
.header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 68px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.brand__mark { height: 38px; width: auto; }
.brand__word { height: 17px; width: auto; }
.nav { display: flex; align-items: center; gap: 22px; }
.nav a { color: var(--ink); text-decoration: none; font-weight: 500; font-size: .95rem; }
.nav a:hover { color: var(--red); }
.header__actions { display: flex; align-items: center; gap: 14px; }
.header__phone { color: var(--ink); text-decoration: none; font-weight: 600; white-space: nowrap; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 12px 22px; border-radius: 8px; font: 600 1rem/1.2 var(--sans); text-decoration: none; cursor: pointer; border: 2px solid var(--red); transition: background .15s, color .15s; }
.btn--primary { background: var(--red); color: var(--white); }
.btn--primary:hover { background: var(--red-deep); border-color: var(--red-deep); color: var(--white); }
.btn--ghost { background: transparent; color: var(--red); }
.btn--ghost:hover { background: var(--red); color: var(--white); }
.btn--sm { min-height: 40px; padding: 8px 16px; font-size: .92rem; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; margin: 28px 0 18px; }

/* Hero */
.hero { padding: 72px 0 64px; }
.hero__grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 56px; align-items: center; }
.hero__photo { border-radius: 14px; overflow: hidden; box-shadow: 0 18px 40px rgba(31, 35, 40, .14); }
.trust { display: flex; flex-wrap: wrap; gap: 8px 22px; padding: 0; margin: 0; list-style: none; color: var(--muted); font-size: .93rem; }
.trust li { display: flex; align-items: center; gap: 7px; }
.trust svg { flex: none; color: var(--red); }

/* Cards and grids */
.grid { display: grid; gap: 20px; }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }
.steps.steps--4 { grid-template-columns: repeat(4, 1fr); }
.card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; }
.card h3 { margin-bottom: .4em; }
.card p:last-child { margin-bottom: 0; }
.card__meta { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--line); font-weight: 600; }
.card__meta a { text-decoration: none; }
.icon { width: 40px; height: 40px; border-radius: 8px; background: var(--red-tint); color: var(--red); display: grid; place-items: center; margin-bottom: 14px; }

.steps { counter-reset: step; display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; padding: 0; margin: 32px 0 0; list-style: none; }
.steps li { position: relative; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px 26px 26px 26px; }
.steps li::before { counter-increment: step; content: counter(step); display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: var(--red); color: var(--white); font: 700 1rem var(--serif); margin-bottom: 12px; }
.steps strong { display: block; font-family: var(--serif); font-size: 1.1rem; margin-bottom: 4px; }

/* Pricing */
.price { display: flex; flex-direction: column; }
.price--featured { border: 2px solid var(--red); position: relative; }
.price__badge { position: absolute; top: -13px; left: 26px; background: var(--red); color: var(--white); font-size: .75rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; padding: 4px 10px; border-radius: 20px; }
.price__amount { font: 700 2.2rem/1 var(--serif); margin: 6px 0 4px; }
.price__amount span { font: 400 1rem var(--sans); color: var(--muted); }
.price ul { list-style: none; padding: 0; margin: 16px 0 0; }
.price li { padding: 7px 0 7px 26px; position: relative; border-top: 1px solid var(--line); font-size: .95rem; }
.price li::before { content: ""; position: absolute; left: 4px; top: 14px; width: 10px; height: 6px; border-left: 2px solid var(--red); border-bottom: 2px solid var(--red); transform: rotate(-45deg); }
.chips { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; padding: 0; margin: 24px 0 0; list-style: none; }
.chips li { background: var(--white); border: 1px solid var(--line); border-radius: 30px; padding: 7px 14px; font-size: .9rem; }

.checklist { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px 28px; }
.checklist li { position: relative; padding-left: 30px; }
.checklist li::before { content: ""; position: absolute; left: 4px; top: 8px; width: 12px; height: 7px; border-left: 2px solid var(--red); border-bottom: 2px solid var(--red); transform: rotate(-45deg); }

/* About */
.about { display: grid; grid-template-columns: 340px 1fr; gap: 48px; align-items: center; }
.about__photo { border-radius: 14px; overflow: hidden; }
.creds { list-style: none; padding: 0; margin: 18px 0 0; }
.creds li { padding-left: 20px; position: relative; margin: 6px 0; }
.creds li::before { content: ""; position: absolute; left: 0; top: 10px; width: 8px; height: 8px; background: var(--red); }

/* FAQ */
.faq { max-width: 780px; margin: 32px auto 0; }
.faq details { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); margin-bottom: 12px; }
.faq summary { cursor: pointer; list-style: none; padding: 18px 52px 18px 22px; font-weight: 600; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 22px; top: 50%; transform: translateY(-50%); font: 400 1.5rem var(--sans); color: var(--red); }
.faq details[open] summary::after { content: "\2212"; }
.faq details > p { padding: 0 22px 18px; margin: 0; color: var(--muted); }

/* Form */
.quote { display: grid; grid-template-columns: .85fr 1.15fr; gap: 48px; align-items: start; }
.form { background: var(--white); border: 1px solid var(--line); border-radius: 14px; padding: 28px; display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field--full { grid-column: 1 / -1; }
.field label { font-weight: 600; font-size: .9rem; }
.field label .req { color: var(--red); }
.field input, .field select, .field textarea { font: inherit; font-size: 1rem; padding: 11px 12px; border: 1px solid #CFC8BD; border-radius: 8px; background: var(--white); color: var(--ink); width: 100%; }
.field textarea { min-height: 96px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 2px solid var(--red); outline-offset: 0; border-color: var(--red); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form__status { grid-column: 1 / -1; margin: 0; font-weight: 600; color: var(--red-deep); min-height: 1.2em; }
.form .btn { width: 100%; }

/* CTA band */
.band { background: var(--red); color: var(--white); padding: 56px 0; }
.band h2 { color: var(--white); margin-bottom: 18px; }
.band .btn--primary { background: var(--white); color: var(--red); border-color: var(--white); }
.band .btn--primary:hover { background: var(--cream); color: var(--red-deep); }

/* Footer */
.footer { background: #1B1E22; color: #C9CDD2; padding: 48px 0 110px; font-size: .92rem; }
.footer a { color: #FFFFFF; }
.footer__grid { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 24px; }
.footer__brand img { height: 46px; width: auto; filter: brightness(0) invert(1); opacity: .95; }
.footer__legal { margin-top: 28px; padding-top: 20px; border-top: 1px solid #343A40; color: #9AA0A6; font-size: .82rem; }

/* Desktop dropdown */
.nav .dd { position: relative; }
.nav .dd > button { font: 500 .95rem var(--sans); color: var(--ink); background: none; border: 0; padding: 8px 0; cursor: pointer; display: flex; align-items: center; gap: 5px; }
.nav .dd > button::after { content: ""; width: 6px; height: 6px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg) translateY(-2px); }
.nav .dd__menu { display: none; position: absolute; top: 100%; left: -16px; min-width: 240px; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: 0 14px 30px rgba(31, 35, 40, .12); padding: 8px; }
.nav .dd:hover .dd__menu, .nav .dd:focus-within .dd__menu { display: block; }
.nav .dd__menu a { display: block; padding: 9px 12px; border-radius: 6px; }
.nav .dd__menu a:hover { background: var(--red-tint); }
.nav a[aria-current="page"] { color: var(--red); }

/* Mobile menu */
.mnav { display: none; position: relative; }
.mnav summary { list-style: none; cursor: pointer; width: 44px; height: 44px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 8px; background: var(--white); }
.mnav summary::-webkit-details-marker { display: none; }
.mnav summary span, .mnav summary span::before, .mnav summary span::after { display: block; width: 18px; height: 2px; background: var(--ink); position: relative; content: ""; }
.mnav summary span::before { position: absolute; top: -6px; }
.mnav summary span::after { position: absolute; top: 6px; }
.mnav__panel { position: absolute; right: 0; top: 52px; width: min(300px, calc(100vw - 32px)); background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: 0 14px 30px rgba(31, 35, 40, .14); padding: 10px; }
.mnav__panel a { display: block; padding: 11px 12px; color: var(--ink); text-decoration: none; font-weight: 500; border-radius: 6px; }
.mnav__panel a:hover { background: var(--red-tint); }
.mnav__panel .sub { padding-left: 26px; font-weight: 400; color: var(--muted); }
.mnav__panel .btn { margin-top: 8px; width: 100%; color: var(--white); }

/* Sample report card (hero visual) */
.report { background: var(--white); border: 1px solid var(--line); border-radius: 14px; box-shadow: 0 18px 40px rgba(31, 35, 40, .12); padding: 22px; font-size: .92rem; }
.report__head { display: flex; align-items: center; gap: 12px; padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.report__head img { height: 30px; width: auto; }
.report__head strong { display: block; font-family: var(--serif); font-size: 1.05rem; }
.report__head span { color: var(--muted); font-size: .82rem; }
.report__tag { margin-left: auto; background: var(--red-tint); color: var(--red-deep) !important; font-weight: 600; border-radius: 20px; padding: 4px 10px; white-space: nowrap; }
.report__kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin: 16px 0; }
.report__kpis div { background: var(--cream); border-radius: 8px; padding: 10px 12px; }
.report__kpis small { display: block; color: var(--muted); font-size: .75rem; }
.report__kpis b { font: 700 1.1rem var(--serif); }
.report__bars { display: flex; align-items: flex-end; gap: 8px; height: 64px; margin: 4px 0 6px; }
.report__bars i { flex: 1; background: var(--red-tint); border-radius: 4px 4px 0 0; }
.report__bars i:last-child { background: var(--red); }
.report__axis { display: flex; justify-content: space-between; color: var(--muted); font-size: .72rem; margin-bottom: 14px; }
.report__checks { list-style: none; padding: 0; margin: 0; }
.report__checks li { display: flex; justify-content: space-between; gap: 10px; padding: 7px 0; border-top: 1px solid var(--line); }
.report__checks li span:first-child::before { content: ""; display: inline-block; width: 10px; height: 5px; border-left: 2px solid var(--red); border-bottom: 2px solid var(--red); transform: rotate(-45deg); margin: 0 10px 3px 2px; }
.report__checks li span:last-child { color: var(--muted); }
.report__note { margin-top: 12px; background: var(--cream); border-left: 3px solid var(--red); padding: 10px 12px; border-radius: 0 8px 8px 0; color: var(--muted); }
.ba { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 14px; }
.ba div { border-radius: 10px; padding: 14px; }
.ba .before { background: #F3F1EC; }
.ba .after { background: var(--red-tint); }
.ba h4 { margin: 0 0 8px; font: 600 .78rem var(--sans); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.ba p { margin: 4px 0; font-size: .9rem; }
.ba b { font-family: var(--serif); font-size: 1.15rem; }

/* Comparison table */
.table-wrap { overflow-x: auto; margin-top: 28px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--white); }
.compare { width: 100%; border-collapse: collapse; min-width: 560px; font-size: .95rem; }
.compare th, .compare td { padding: 12px 16px; border-bottom: 1px solid var(--line); text-align: center; }
.compare th:first-child, .compare td:first-child { text-align: left; }
.compare thead th { font-family: var(--serif); font-size: 1.05rem; background: var(--cream); }
.compare tbody tr:last-child td { border-bottom: 0; }
.yes { color: var(--red); font-weight: 700; }
.no { color: #A7ACB1; }

/* Industries */
.industry { display: grid; grid-template-columns: 280px 1fr; gap: 32px; padding: 36px 0; border-top: 1px solid var(--line); }
.industry:first-of-type { border-top: 0; }
.industry h2 { font-size: 1.6rem; }
.industry h3 { font-size: 1rem; font-family: var(--sans); font-weight: 600; margin-top: 0; }

/* Page heading band */
.pagehead { padding: 64px 0 40px; }
.pagehead h1 { max-width: 820px; }

/* Contact */
.contact-list { list-style: none; padding: 0; margin: 24px 0 0; }
.contact-list li { padding: 14px 0; border-top: 1px solid var(--line); }
.contact-list b { display: block; font-size: .8rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin-bottom: 2px; }

/* Mobile call bar */
.mobilebar { display: none; }

@media (max-width: 900px) {
  .hero__grid, .about, .quote { grid-template-columns: 1fr; gap: 32px; }
  .hero__photo { max-width: 420px; }
  .about__photo { max-width: 320px; }
  .grid--3, .steps, .grid--4 { grid-template-columns: 1fr; }
  .nav { display: none; }
  .header__actions .btn { display: none; }
  .mnav { display: block; }
  .industry { grid-template-columns: 1fr; gap: 8px; }
}
@media (max-width: 1000px) and (min-width: 901px) { .grid--4, .steps.steps--4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 900px) { .steps.steps--4 { grid-template-columns: 1fr; } }
@media (max-width: 640px) {
  body { font-size: 16px; }
  .section { padding: 52px 0; }
  .hero { padding: 40px 0 44px; }
  .grid--2, .checklist, .form, .ba { grid-template-columns: 1fr; }
  .report { padding: 16px; }
  .report__head { flex-wrap: wrap; }
  .report__head > div { flex: 1; min-width: 0; }
  .report__tag { margin-left: 0; order: 3; }
  .report__kpis { grid-template-columns: 1fr 1fr 1fr; gap: 6px; }
  .report__kpis div { padding: 8px; }
  .report__kpis b { font-size: .95rem; }
  .brand__mark { height: 32px; }
  .brand__word { height: 14px; }
  .header__phone { display: none; }
  .header .btn { display: none; }
  .btn-row .btn { flex: 1 1 100%; }
  .mobilebar { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; padding: 10px 14px calc(10px + env(safe-area-inset-bottom)); background: var(--white); border-top: 1px solid var(--line); box-shadow: 0 -6px 20px rgba(0, 0, 0, .06); }
  .mobilebar .btn { width: 100%; }
}
@media (max-width: 340px) { .brand__word { display: none; } }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
