/* ================================================================
   BRAND TOKENS — the ONLY place branding lives.
   Rebrand the entire site by editing the custom properties below.
   ================================================================ */
:root {
  /* client brand */
  --brand:  #2b4a6f;
  --accent: #e8621d;

  /* typefaces (loaded via Google Fonts <link> in each page head) */
  --font-display: 'Fraunces', Georgia, 'Times New Roman', serif;
  --font-body: 'Archivo', 'Helvetica Neue', Arial, sans-serif;

  /* fixed editorial palette — paper & ink, not client branding */
  --ink: #221d18;
  --ink-soft: #5b544c;
  --paper: #f7f1e6;
  --paper-deep: #eee5d3;
  --line: #d8cdba;
  --white: #fffdf8;
}

/* ================================================================
   Base
   ================================================================ */
html { scroll-behavior: smooth; }

body {
  background-color: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  -webkit-font-smoothing: antialiased;
  position: relative;
}

/* paper grain over everything, very subtle */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 60;
  opacity: 0.05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)'/%3E%3C/svg%3E");
}

h1, h2, h3, .display {
  font-family: var(--font-display);
  font-variation-settings: 'SOFT' 40, 'WONK' 1;
  letter-spacing: -0.015em;
}

::selection { background: var(--accent); color: var(--white); }

a:focus-visible, button:focus-visible, input:focus-visible,
select:focus-visible, textarea:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 2px;
}

/* ================================================================
   Small editorial atoms
   ================================================================ */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--brand);
}
.eyebrow::before {
  content: "";
  width: 2.2rem;
  height: 2px;
  background: var(--accent);
}

.section-num {
  font-family: var(--font-display);
  font-size: clamp(3.5rem, 8vw, 6rem);
  line-height: 1;
  color: transparent;
  -webkit-text-stroke: 1.5px var(--line);
  user-select: none;
}

.rule-dotted {
  border: none;
  border-top: 2px dotted var(--line);
}

/* ================================================================
   Buttons — letterpress offset shadow
   ================================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-weight: 700;
  font-size: 0.95rem;
  padding: 0.85rem 1.6rem;
  border: 2px solid var(--ink);
  border-radius: 0.25rem;
  transition: transform 120ms ease, box-shadow 120ms ease, background 120ms ease;
  cursor: pointer;
  text-decoration: none;
}
.btn-brand {
  background: var(--brand);
  color: var(--white);
  box-shadow: 4px 4px 0 var(--ink);
}
.btn-brand:hover { transform: translate(-2px, -2px); box-shadow: 6px 6px 0 var(--ink); }
.btn-brand:active { transform: translate(2px, 2px); box-shadow: 1px 1px 0 var(--ink); }
.btn-ghost {
  background: transparent;
  color: var(--ink);
  box-shadow: 4px 4px 0 rgba(34, 29, 24, 0.15);
}
.btn-ghost:hover { background: var(--paper-deep); transform: translate(-2px, -2px); box-shadow: 6px 6px 0 rgba(34, 29, 24, 0.2); }
.btn-accent {
  background: var(--accent);
  color: var(--white);
  box-shadow: 4px 4px 0 rgba(0, 0, 0, 0.35);
}
.btn-accent:hover { transform: translate(-2px, -2px); box-shadow: 6px 6px 0 rgba(0, 0, 0, 0.35); }
.btn-sm { padding: 0.6rem 1.15rem; font-size: 0.85rem; }

/* ================================================================
   Header / nav
   ================================================================ */
.topbar {
  background: var(--ink);
  color: var(--paper);
  font-size: 0.75rem;
  letter-spacing: 0.08em;
}
.topbar a { color: var(--paper); text-decoration: underline; text-underline-offset: 3px; }
.topbar a:hover { color: var(--white); }

.site-header {
  background: var(--paper);
  border-bottom: 2px solid var(--ink);
  position: sticky;
  top: 0;
  z-index: 50;
}

.wordmark {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.35rem;
  line-height: 1;
  letter-spacing: -0.02em;
  text-decoration: none;
  color: var(--ink);
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
}
.wordmark .spark { color: var(--accent); font-size: 1.5rem; line-height: 0; }

.navlink {
  position: relative;
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--ink-soft);
  text-decoration: none;
  padding: 0.25rem 0;
}
.navlink::after {
  content: "";
  position: absolute;
  left: 0; right: 100%; bottom: -2px;
  height: 2px;
  background: var(--accent);
  transition: right 160ms ease;
}
.navlink:hover { color: var(--ink); }
.navlink:hover::after { right: 0; }
.navlink.active { color: var(--ink); }
.navlink.active::after { right: 0; background: var(--brand); }

/* mobile panel */
.nav-panel {
  display: none;
  border-top: 2px solid var(--ink);
  background: var(--paper);
}
.nav-panel.open { display: block; }
.nav-panel a {
  display: block;
  padding: 0.9rem 1.5rem;
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--ink);
  text-decoration: none;
  border-bottom: 1px solid var(--line);
}
.nav-panel a:hover { background: var(--paper-deep); }

.hamburger { border: 2px solid var(--ink); border-radius: 0.25rem; padding: 0.45rem 0.6rem; background: transparent; }
.hamburger:hover { background: var(--paper-deep); }

/* ================================================================
   Hero
   ================================================================ */
.hero-display {
  font-size: clamp(2.6rem, 6.5vw, 4.8rem);
  line-height: 1.02;
  font-weight: 700;
}
.hero-display em {
  font-style: italic;
  font-weight: 500;
  color: var(--brand);
  font-variation-settings: 'SOFT' 100, 'WONK' 1;
}

.hero-panel {
  position: relative;
  border: 2px solid var(--ink);
  border-radius: 0.5rem;
  background:
    linear-gradient(160deg, color-mix(in srgb, var(--brand) 88%, black) 0%, var(--brand) 55%, color-mix(in srgb, var(--brand) 70%, white) 100%);
  box-shadow: 8px 8px 0 var(--ink);
  overflow: hidden;
}
.hero-panel .rays { position: absolute; inset: 0; opacity: 0.25; }

.stamp {
  animation: spin 22s linear infinite;
  transform-origin: center;
}
@keyframes spin { to { transform: rotate(360deg); } }

.chip {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  border: 1.5px solid var(--ink);
  border-radius: 999px;
  padding: 0.3rem 0.8rem;
  font-size: 0.78rem;
  font-weight: 600;
  background: var(--white);
}
.chip .dot { width: 0.5rem; height: 0.5rem; border-radius: 999px; background: var(--accent); }

/* ================================================================
   Marquee strip
   ================================================================ */
.marquee {
  overflow: hidden;
  border-top: 2px solid var(--ink);
  border-bottom: 2px solid var(--ink);
  background: var(--accent);
  color: var(--white);
}
.marquee-track {
  display: flex;
  gap: 3rem;
  white-space: nowrap;
  padding: 0.7rem 0;
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 600;
  animation: marquee 26s linear infinite;
  width: max-content;
}
@keyframes marquee { to { transform: translateX(-50%); } }

/* ================================================================
   Service cards
   ================================================================ */
.card-service {
  position: relative;
  background: var(--white);
  border: 2px solid var(--ink);
  border-radius: 0.5rem;
  padding: 1.75rem 1.5rem 1.5rem;
  transition: transform 140ms ease, box-shadow 140ms ease;
  box-shadow: 3px 3px 0 rgba(34, 29, 24, 0.12);
}
.card-service:hover {
  transform: translate(-3px, -3px);
  box-shadow: 7px 7px 0 var(--ink);
}
.card-service .num {
  position: absolute;
  top: 0.9rem;
  right: 1.1rem;
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--accent);
}
.card-service .icon {
  width: 2.75rem;
  height: 2.75rem;
  display: grid;
  place-items: center;
  border: 2px solid var(--ink);
  border-radius: 0.4rem;
  background: var(--paper);
  color: var(--brand);
  margin-bottom: 1rem;
}
.card-service h3 { font-size: 1.25rem; font-weight: 700; margin-bottom: 0.4rem; }
.card-service p { color: var(--ink-soft); font-size: 0.92rem; line-height: 1.55; }
.card-link {
  display: inline-block;
  margin-top: 0.9rem;
  font-weight: 700;
  font-size: 0.85rem;
  color: var(--brand);
  text-decoration: none;
  border-bottom: 2px solid var(--accent);
}
.card-link:hover { color: var(--accent); }

/* ================================================================
   Testimonials
   ================================================================ */
.quote-card {
  position: relative;
  background: var(--white);
  border: 2px solid var(--ink);
  border-radius: 0.5rem;
  padding: 2.4rem 1.6rem 1.5rem;
  box-shadow: 5px 5px 0 rgba(34, 29, 24, 0.12);
}
.quote-card::before {
  content: "\201C";
  position: absolute;
  top: -0.4rem;
  left: 1rem;
  font-family: var(--font-display);
  font-size: 4.5rem;
  line-height: 1;
  color: var(--accent);
}
.quote-card blockquote { font-family: var(--font-display); font-size: 1.06rem; line-height: 1.5; font-style: italic; }
.quote-card figcaption { margin-top: 1rem; font-size: 0.82rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-soft); }
.quote-card figcaption::before { content: "— "; color: var(--accent); }

.stars { color: var(--accent); letter-spacing: 0.15em; font-size: 0.9rem; }

/* ================================================================
   CTA band
   ================================================================ */
.cta-band {
  background: var(--brand);
  color: var(--white);
  border-top: 2px solid var(--ink);
  border-bottom: 2px solid var(--ink);
  position: relative;
  overflow: hidden;
}
.cta-band::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: repeating-linear-gradient(-45deg, rgba(255,255,255,0.06) 0 14px, transparent 14px 28px);
}
.cta-band .display { font-size: clamp(2rem, 5vw, 3.4rem); }

/* ================================================================
   Hours table & map placeholder
   ================================================================ */
.hours-table { width: 100%; border-collapse: collapse; }
.hours-table th, .hours-table td {
  text-align: left;
  padding: 0.65rem 0.25rem;
  border-bottom: 2px dotted var(--line);
  font-size: 0.95rem;
}
.hours-table th { font-weight: 700; }
.hours-table td { text-align: right; color: var(--ink-soft); font-variant-numeric: tabular-nums; }
.hours-table tr.today th, .hours-table tr.today td { color: var(--brand); }

.map-ph {
  position: relative;
  border: 2px solid var(--ink);
  border-radius: 0.5rem;
  min-height: 260px;
  overflow: hidden;
  background-color: var(--paper-deep);
  background-image:
    repeating-linear-gradient(0deg, rgba(34,29,24,0.09) 0 2px, transparent 2px 44px),
    repeating-linear-gradient(90deg, rgba(34,29,24,0.09) 0 2px, transparent 2px 56px),
    repeating-linear-gradient(45deg, rgba(34,29,24,0.05) 0 1px, transparent 1px 90px);
  box-shadow: 5px 5px 0 rgba(34, 29, 24, 0.12);
}
.map-pin {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -90%);
  color: var(--accent);
  filter: drop-shadow(2px 3px 0 rgba(34,29,24,0.35));
  animation: bob 2.4s ease-in-out infinite;
}
@keyframes bob { 0%, 100% { transform: translate(-50%, -90%); } 50% { transform: translate(-50%, -110%); } }
.map-label {
  position: absolute;
  left: 0.9rem; bottom: 0.9rem;
  background: var(--white);
  border: 2px solid var(--ink);
  border-radius: 0.3rem;
  padding: 0.45rem 0.8rem;
  font-size: 0.8rem;
  font-weight: 700;
  box-shadow: 3px 3px 0 rgba(34,29,24,0.25);
}

/* ================================================================
   Forms
   ================================================================ */
.field label {
  display: block;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 0.4rem;
}
.field input, .field select, .field textarea {
  width: 100%;
  background: var(--white);
  border: 2px solid var(--ink);
  border-radius: 0.3rem;
  padding: 0.75rem 0.9rem;
  font-size: 0.95rem;
  font-family: var(--font-body);
  color: var(--ink);
  transition: box-shadow 120ms ease;
}
.field input:focus, .field select:focus, .field textarea:focus {
  box-shadow: 3px 3px 0 var(--accent);
}

/* ================================================================
   Numbered process / about lists
   ================================================================ */
.step {
  display: flex;
  gap: 1.1rem;
  align-items: flex-start;
}
.step .step-num {
  flex: none;
  width: 2.6rem;
  height: 2.6rem;
  display: grid;
  place-items: center;
  border: 2px solid var(--ink);
  border-radius: 999px;
  background: var(--accent);
  color: var(--white);
  font-family: var(--font-display);
  font-weight: 700;
  box-shadow: 3px 3px 0 rgba(34,29,24,0.25);
}

details.faq {
  border: 2px solid var(--ink);
  border-radius: 0.4rem;
  background: var(--white);
  padding: 0;
  box-shadow: 3px 3px 0 rgba(34,29,24,0.12);
}
details.faq summary {
  cursor: pointer;
  list-style: none;
  padding: 1rem 1.25rem;
  font-weight: 700;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}
details.faq summary::after { content: "+"; font-family: var(--font-display); font-size: 1.4rem; color: var(--accent); }
details.faq[open] summary::after { content: "\2212"; }
details.faq .faq-body { padding: 0 1.25rem 1.1rem; color: var(--ink-soft); font-size: 0.94rem; line-height: 1.6; }

/* ================================================================
   Footer
   ================================================================ */
.site-footer {
  background: var(--ink);
  color: var(--paper);
  border-top: 2px solid var(--accent);
}
.site-footer .wordmark { color: var(--paper); }
.site-footer a { color: var(--paper); text-decoration: none; }
.site-footer a:hover { color: var(--white); text-decoration: underline; text-underline-offset: 3px; }
.footer-links a { display: block; padding: 0.2rem 0; font-size: 0.92rem; opacity: 0.85; }
.footer-fine { font-size: 0.78rem; opacity: 0.6; }

/* big ghost wordmark at the very bottom */
.footer-ghost {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(3rem, 11vw, 8rem);
  line-height: 0.9;
  color: transparent;
  -webkit-text-stroke: 1px rgba(247, 241, 230, 0.18);
  white-space: nowrap;
  user-select: none;
  pointer-events: none;
}

/* ================================================================
   Misc
   ================================================================ */
.tick { color: var(--brand); font-weight: 800; }

.reveal { animation: rise 640ms cubic-bezier(0.22, 1, 0.36, 1) both; }
.reveal-1 { animation-delay: 80ms; }
.reveal-2 { animation-delay: 180ms; }
.reveal-3 { animation-delay: 300ms; }
@keyframes rise {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (prefers-reduced-motion: reduce) {
  .stamp, .marquee-track, .map-pin, .reveal { animation: none !important; }
  html { scroll-behavior: auto; }
}
