/* Love My Legal: design system
   Warm minimalism. Ivory and marble surfaces, walnut depth, brass detail,
   the logo's heart red only for the main call to action. */

@font-face { font-family: "Averia Serif Libre"; src: url("/assets/fonts/AveriaSerifLibre-Regular.ttf") format("truetype"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Averia Serif Libre"; src: url("/assets/fonts/AveriaSerifLibre-Bold.ttf") format("truetype"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Averia Serif Libre"; src: url("/assets/fonts/AveriaSerifLibre-Italic.ttf") format("truetype"); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: "Averia Serif Libre"; src: url("/assets/fonts/AveriaSerifLibre-Light.ttf") format("truetype"); font-weight: 300; font-display: swap; }

:root {
  --ivory: #F7F3EC;
  --marble: #EDEAE6;
  --paper: #FFFDF9;
  --ink: #1C1916;
  --muted: #5F5850;
  --line: #DDD4C6;
  --walnut: #3A2A1F;
  --walnut-2: #4A3628;
  --brass: #A8824F;
  --brass-text: #7E5F33;
  --heart: #D42B2A;
  --heart-hover: #B82322;
  --serif: "Averia Serif Libre", Georgia, serif;
  --sans: "Public Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --wrap: 1120px;
  --narrow: 720px;
  --radius: 14px;
  --shadow: 0 1px 2px rgba(58, 42, 31, .06), 0 8px 24px rgba(58, 42, 31, .06);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--ivory); color: var(--ink); font: 400 17px/1.65 var(--sans); }
img, svg { max-width: 100%; display: block; }
a { color: inherit; text-decoration-color: var(--brass); text-underline-offset: 3px; }
a:hover { color: var(--brass-text); }
:focus-visible { outline: 2px solid var(--brass); outline-offset: 3px; border-radius: 4px; }
h1, h2, h3 { font-family: var(--serif); font-weight: 400; line-height: 1.15; margin: 0 0 .5em; letter-spacing: -.01em; }
h1 { font-size: clamp(2.4rem, 6vw, 4.2rem); }
h2 { font-size: clamp(1.7rem, 3.6vw, 2.5rem); }
h3 { font-size: 1.3rem; }
p { margin: 0 0 1em; }
.sr, .skip:not(:focus) { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.skip:focus { position: fixed; top: 8px; left: 8px; z-index: 99; background: var(--paper); padding: 8px 14px; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.narrow { max-width: var(--narrow); margin: 0 auto; padding: 0 24px; }
.eyebrow { font: 600 .78rem/1 var(--sans); letter-spacing: .16em; text-transform: uppercase; color: var(--brass-text); margin-bottom: 1.1em; }
.lede { font-size: 1.2rem; color: var(--muted); max-width: 40em; }
.rule { width: 56px; height: 1px; background: var(--brass); border: 0; margin: 28px 0; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 20; background: rgba(247, 243, 236, .94); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.header-row { display: flex; align-items: center; justify-content: space-between; min-height: 76px; gap: 24px; padding-top: 8px; padding-bottom: 8px; }
.brand svg { width: 118px; height: auto; color: var(--ink); }
.site-nav { display: flex; align-items: center; gap: 26px; font-size: .95rem; }
.site-nav a { text-decoration: none; color: var(--ink); }
.site-nav a[aria-current="page"] { box-shadow: inset 0 -1px 0 var(--brass); }
.site-nav .nav-attorneys { color: var(--muted); font-size: .88rem; }
.nav-call { border: 1px solid var(--ink); border-radius: 999px; padding: 8px 16px; white-space: nowrap; }
.nav-call:hover { background: var(--ink); color: var(--ivory) !important; }
.menu-btn { display: none; background: none; border: 0; padding: 10px; cursor: pointer; }
.menu-btn span:not(.sr) { display: block; width: 24px; height: 1.5px; background: var(--ink); margin: 6px 0; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; font: 600 1rem/1 var(--sans); padding: 16px 26px; border-radius: 999px; text-decoration: none; border: 1px solid transparent; cursor: pointer; transition: background .15s, color .15s; }
.btn-primary { background: var(--heart); color: #fff; }
.btn-primary:hover { background: var(--heart-hover); color: #fff; }
.btn-ghost { border-color: var(--ink); color: var(--ink); background: transparent; }
.btn-ghost:hover { background: var(--ink); color: var(--ivory); }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

/* Sections */
.section { padding: 88px 0; }
.section-tight { padding: 56px 0; }
.band-marble { background: var(--marble); }
.band-walnut { background: var(--walnut); color: var(--marble); }
.band-walnut h2, .band-walnut h3 { color: var(--paper); }
.band-walnut .eyebrow { color: #D2B27E; }
.band-walnut a { color: var(--paper); }

/* Hero */
.hero { padding: 96px 0 72px; }
.hero h1 { max-width: 12em; }
.hero .tagline { font-family: var(--serif); font-style: italic; color: var(--brass-text); font-size: 1.25rem; margin-bottom: 1.4em; }
.hero .lede { margin-bottom: 1.8em; }
.ways { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-top: 8px; max-width: 760px; }
.way { display: flex; flex-direction: column; gap: 4px; padding: 18px 18px 16px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--paper); text-decoration: none; transition: border-color .15s, transform .15s; }
.way:hover { border-color: var(--brass); transform: translateY(-1px); color: var(--ink); }
.way strong { font-family: var(--serif); font-weight: 400; font-size: 1.2rem; }
.way span { font-size: .85rem; color: var(--muted); }
.way-primary { background: var(--heart); border-color: var(--heart); color: #fff; }
.way-primary span { color: rgba(255, 255, 255, .85); }
.way-primary:hover { background: var(--heart-hover); border-color: var(--heart-hover); color: #fff; }

/* Choices */
.choices { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 12px; margin-top: 32px; }
.choice { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 18px 20px; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); text-decoration: none; font-size: 1rem; text-align: left; width: 100%; font-family: var(--sans); color: var(--ink); cursor: pointer; }
.choice:hover { border-color: var(--brass); color: var(--ink); }
.choice::after { content: "\2192"; color: var(--brass); }

/* Steps */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; counter-reset: step; margin-top: 40px; }
.step { border-top: 1px solid var(--brass); padding-top: 20px; }
.step::before { counter-increment: step; content: "0" counter(step); font-family: var(--serif); color: var(--brass-text); font-size: 1rem; display: block; margin-bottom: 10px; }
.band-walnut .step::before { color: #D2B27E; }

/* Content pages */
.page-hero { padding: 80px 0 40px; }
.page-hero h1 { font-size: clamp(2.2rem, 5vw, 3.4rem); max-width: 16em; }
.prose h2 { margin-top: 1.6em; font-size: clamp(1.5rem, 3vw, 2rem); }
.prose h3 { margin-top: 1.4em; }
.prose ul, .prose ol { padding-left: 1.2em; margin: 0 0 1.2em; }
.prose li { margin-bottom: .4em; }
.card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow); }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.note { font-size: .9rem; color: var(--muted); }
details { border-bottom: 1px solid var(--line); padding: 16px 0; }
details summary { cursor: pointer; font-family: var(--serif); font-size: 1.15rem; list-style: none; }
details summary::after { content: "+"; float: right; color: var(--brass); }
details[open] summary::after { content: "\2212"; }
details p { margin: 12px 0 0; color: var(--muted); }
.matters { columns: 2; column-gap: 48px; }
.matter { break-inside: avoid; padding: 22px 0; border-bottom: 1px solid var(--line); }
.matter h3 { margin-bottom: .3em; }
.matter p { color: var(--muted); margin-bottom: .6em; }
.cta-end { text-align: center; }
.cta-end .btn-row { justify-content: center; }

/* Forms */
.form { display: grid; gap: 20px; }
.field label, .field legend { display: block; font-weight: 600; margin-bottom: 6px; }
.field .hint { display: block; font-size: .88rem; color: var(--muted); font-weight: 400; margin-top: 2px; }
.field input[type=text], .field input[type=email], .field input[type=tel], .field input[type=date], .field select, .field textarea {
  width: 100%; font: inherit; padding: 13px 14px; border: 1px solid var(--line); border-radius: 10px; background: var(--paper); color: var(--ink); }
.field textarea { min-height: 120px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 2px solid var(--brass); outline-offset: 0; border-color: var(--brass); }
fieldset { border: 0; padding: 0; margin: 0; }
.opts { display: grid; gap: 8px; }
.opt { display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; border: 1px solid var(--line); border-radius: 10px; background: var(--paper); cursor: pointer; font-weight: 400 !important; margin: 0 !important; }
.opt input { margin-top: 5px; accent-color: var(--walnut); }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: .95rem; }
.check input { margin-top: 5px; accent-color: var(--walnut); }
.progress { height: 3px; background: var(--line); border-radius: 3px; overflow: hidden; margin-bottom: 28px; }
.progress span { display: block; height: 100%; width: 0; background: var(--brass); transition: width .25s; }
.form-step[hidden] { display: none; }
.form-nav { display: flex; justify-content: space-between; gap: 12px; margin-top: 8px; }
.form-error { color: var(--heart-hover); font-size: .92rem; }
.preview-flag { background: var(--marble); border: 1px dashed var(--brass); padding: 12px 16px; border-radius: 10px; font-size: .9rem; }

/* Footer */
.site-footer { background: var(--walnut); color: #D9CFC1; padding: 64px 0 120px; font-size: .95rem; }
.site-footer a { color: #F2EBE0; text-decoration: none; }
.site-footer a:hover { color: #D2B27E; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; }
.footer-brand { font-family: var(--serif); font-size: 1.6rem; color: var(--paper); margin-bottom: .2em; }
.footer-tag { font-family: var(--serif); font-style: italic; color: #D2B27E; }
.footer-head { font-weight: 600; letter-spacing: .12em; text-transform: uppercase; font-size: .75rem; color: #D2B27E; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 6px; }
.footer-legal { border-top: 1px solid var(--walnut-2); margin-top: 40px; padding-top: 24px; font-size: .82rem; color: #B9AC9A; }

/* Mobile quick bar */
.quickbar { display: none; }

@media (max-width: 900px) {
  .menu-btn { display: block; }
  .site-nav { display: none; position: absolute; top: 76px; left: 0; right: 0; flex-direction: column; align-items: flex-start; gap: 18px; padding: 24px; background: var(--ivory); border-bottom: 1px solid var(--line); }
  .site-nav.open { display: flex; }
  .ways { grid-template-columns: 1fr 1fr; }
  .steps, .grid-2, .grid-3, .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .matters { columns: 1; }
  .section { padding: 64px 0; }
  .hero { padding: 56px 0 48px; }
  .quickbar { display: grid; grid-template-columns: 1.4fr 1fr 1fr; position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; background: var(--paper); border-top: 1px solid var(--line); padding: 10px 10px calc(10px + env(safe-area-inset-bottom)); gap: 8px; }
  .quickbar a { text-align: center; padding: 13px 8px; border-radius: 999px; border: 1px solid var(--ink); text-decoration: none; font-weight: 600; font-size: .95rem; }
  .quickbar .qb-start { background: var(--heart); border-color: var(--heart); color: #fff; }
  body.no-quickbar .quickbar { display: none; }
}

/* Home: one screen, nothing extra */
.home-hero { min-height: calc(100vh - 76px - 70px); display: flex; align-items: center; padding: 72px 0; }
.home-hero h1 { margin-bottom: .8em; }
.home-hero .tagline { font-family: var(--serif); font-style: italic; color: var(--brass-text); font-size: 1.3rem; margin-bottom: 2em; }
.home-attorneys { margin-top: 28px; color: var(--muted); font-size: .95rem; }

/* Practice Areas */
.areas { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 16px; }
.area { display: flex; flex-direction: column; gap: 10px; padding: 24px; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); }
.area h3 { margin: 0; font-size: 1.25rem; }
.area p { margin: 0; color: var(--muted); font-size: .95rem; flex: 1; }
.area .area-links { display: flex; justify-content: space-between; align-items: center; gap: 12px; font-size: .92rem; }
.area .btn { padding: 11px 18px; font-size: .92rem; }

/* Why Love My Legal */
.promise { display: grid; grid-template-columns: 220px 1fr; gap: 32px; padding: 32px 0; border-top: 1px solid var(--line); }
.promise h3 { font-size: 1.4rem; }
.promise p { color: var(--muted); }
@media (max-width: 900px) { .promise { grid-template-columns: 1fr; gap: 8px; } .home-hero { min-height: 0; padding: 48px 0; } }

/* One-question-per-screen questionnaires */
.flow-wrap { padding: 56px 0 80px; }
.flow { padding: 36px; }
.q-screen { animation: qin .22s ease; }
@keyframes qin { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.q-count { display: none; }
.q-label { font-size: clamp(1.5rem, 3.4vw, 2rem); margin-bottom: .4em; outline: none; }
.q-hint { color: var(--muted); font-size: .95rem; margin-top: -4px; }
.q-screen > input[type=text], .q-screen > input[type=email], .q-screen > input[type=tel], .q-screen > textarea {
  width: 100%; font: inherit; font-size: 1.1rem; padding: 14px 16px; border: 1px solid var(--line); border-radius: 10px; background: var(--paper); margin-top: 8px; }
.q-screen > textarea { min-height: 140px; resize: vertical; }
.q-screen > input:focus, .q-screen > textarea:focus { outline: 2px solid var(--brass); border-color: var(--brass); }
.q-screen .opts { margin-top: 12px; }
.q-screen .opt { padding: 15px 16px; font-size: 1.02rem; }
.q-screen .opt:has(input:checked) { border-color: var(--walnut); background: var(--marble); }
.q-screen .form-nav { margin-top: 24px; }
.flow-alt { text-align: center; color: var(--muted); margin-top: 20px; font-size: .95rem; }
.footer-min { padding: 18px 0 100px; font-size: .78rem; color: var(--muted); }
.footer-min p { margin: 0 0 6px; }
.footer-min a { color: var(--muted); }
@media (min-width: 901px) { .footer-min { padding-bottom: 24px; } }
@media (max-width: 900px) { .flow { padding: 24px; } }

/* Get Started tab: the one red action in the menu */
.site-nav .nav-start { background: var(--heart); color: #fff; border-radius: 999px; padding: 8px 18px; font-weight: 600; }
.site-nav .nav-start:hover { background: var(--heart-hover); color: #fff; }
.site-nav .nav-start[aria-current="page"] { box-shadow: none; }
