/* Rumson Tech Help — v1 draft stylesheet
   Palette drawn from the locked navy mansion badge: deep navy + brass/gold.
   Type: Georgia serif display + system sans body (no webfont downloads = fast). */

:root {
  --navy: #0b2239;
  --navy-deep: #071829;
  --navy-soft: #143350;
  --gold: #c9a24b;
  --gold-text: #856718; /* darkened brass for small text — WCAG AA on white (5.3:1) and cream (4.9:1) */
  --gold-soft: #e8d9ae;
  --cream: #faf7f0;
  --paper: #ffffff;
  --ink: #1d2733;
  --ink-soft: #4a5866;
  --line: #e3ded1;
  --radius: 14px;
  --maxw: 1080px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

/* Skip link — visible on keyboard focus */
.skip-link {
  position: absolute; left: 16px; top: -60px; z-index: 50;
  background: var(--gold); color: var(--navy-deep); font-weight: 700;
  padding: 10px 18px; border-radius: 999px; text-decoration: none;
}
.skip-link:focus { top: 10px; }

/* Anchor targets clear the sticky header */
section[id], .card[id] { scroll-margin-top: 118px; }

/* Deliberate keyboard-focus treatment on light and navy surfaces */
a:focus-visible, .btn:focus-visible, .header-call:focus-visible {
  outline: 3px solid var(--gold-text); outline-offset: 2px;
}
.site-header a:focus-visible, .site-footer a:focus-visible, .navy-band a:focus-visible {
  outline-color: var(--gold-soft);
}

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.65;
  font-size: 17px;
}

h1, h2, h3, .serif {
  font-family: Georgia, "Times New Roman", Times, serif;
  font-weight: 600;
  color: var(--navy);
  line-height: 1.2;
  margin: 0 0 0.5em;
}

h1 { font-size: clamp(2rem, 5vw, 3.1rem); }
h2 { font-size: clamp(1.55rem, 3.4vw, 2.15rem); }
h3 { font-size: 1.2rem; }
h1, h2 { letter-spacing: -0.01em; } /* display-type micro-tightening (design pass) */

p { margin: 0 0 1em; }
/* Base list normalization — one indent rhythm for bare body-copy lists;
   component lists (.card, .trust, .towns, footer…) set their own below. */
ul { margin: 0 0 1em; padding-left: 22px; }
a { color: var(--navy-soft); }

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 22px; }
section { padding: 64px 0; }
section.tight { padding: 40px 0; }
/* Page-tempo utilities — one gap for section heads, one for follow-ons,
   so per-page padding can't drift (replaces inline padding-top styles). */
section.page-head { padding-top: 52px; }
section.follow { padding-top: 10px; }
.alt { background: var(--cream); }
.navy-band { background: var(--navy); color: #eef1f4; }
.navy-band h2, .navy-band h3 { color: #fff; }
.navy-band a { color: var(--gold-soft); }

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--gold-text);
  margin-bottom: 10px;
}

.lede { font-size: 1.13rem; color: var(--ink-soft); max-width: 46em; }
.center { text-align: center; }
.center .lede { margin-left: auto; margin-right: auto; }

/* ---------- Header ---------- */
.site-header {
  background: var(--navy);
  color: #fff;
  position: sticky;
  top: 0;
  z-index: 20;
  box-shadow: 0 2px 14px rgba(7, 24, 41, 0.25);
}
.header-in {
  display: flex; align-items: center; gap: 18px;
  padding: 12px 22px; /* keeps .wrap's 22px gutter — the old `12px 0` overrode it */
  flex-wrap: wrap;
}
.brand { display: flex; align-items: center; gap: 13px; text-decoration: none; color: #fff; }
.brand img { width: 52px; height: 52px; border-radius: 50%; display: block; }
.brand .brand-name {
  font-family: Georgia, serif; font-size: 1.28rem; font-weight: 700; letter-spacing: 0.01em; line-height: 1.1;
}
.brand .brand-tag { font-size: 0.78rem; color: var(--gold-soft); font-style: italic; font-family: Georgia, serif; }
.main-nav { margin-left: auto; display: flex; gap: 4px; flex-wrap: wrap; }
.main-nav a {
  color: #dbe3ea; text-decoration: none; font-size: 0.95rem;
  padding: 11px 11px; border-radius: 8px;
}
.main-nav a:hover { background: var(--navy-soft); color: #fff; }
.main-nav a[aria-current="page"] { color: var(--gold-soft); box-shadow: inset 0 -2px 0 var(--gold); border-radius: 0; }
.header-call {
  background: var(--gold); color: var(--navy-deep); text-decoration: none;
  font-weight: 700; padding: 10px 16px; border-radius: 999px; font-size: 0.95rem; white-space: nowrap;
}
.header-call:hover { background: var(--gold-soft); }

/* ---------- Hero ---------- */
.hero { background: linear-gradient(180deg, var(--navy) 0%, var(--navy-deep) 100%); color: #eef1f4; padding: 70px 0 64px; }
.hero h1 { color: #fff; }
.hero .tagline { font-family: Georgia, serif; font-style: italic; color: var(--gold-soft); font-size: clamp(1.15rem, 2.6vw, 1.45rem); margin-bottom: 18px; }
.hero p { color: #cfd9e1; max-width: 44em; }
.hero-grid { display: grid; grid-template-columns: 1.5fr 1fr; gap: 44px; align-items: center; }
.hero-badge { text-align: center; }
.hero-badge img { width: min(300px, 70vw); height: auto; border-radius: 50%; box-shadow: 0 18px 50px rgba(0,0,0,0.45); }

.cta-row { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 26px; }
.btn {
  display: inline-block; text-decoration: none; font-weight: 700;
  padding: 13px 22px; border-radius: 999px; font-size: 1rem;
}
.btn-block { display: block; text-align: center; }
.btn-gold { background: var(--gold); color: var(--navy-deep); }
.btn-gold:hover { background: var(--gold-soft); }
.btn-ghost { border: 1.5px solid #8fa5b8; color: #eef1f4; }
.btn-ghost:hover { border-color: var(--gold-soft); color: var(--gold-soft); }
.btn-navy { background: var(--navy); color: #fff; }
.btn-navy:hover { background: var(--navy-soft); }
.btn-outline { border: 1.5px solid var(--navy); color: var(--navy); }
.btn-outline:hover { border-color: var(--gold); color: var(--navy); }

/* ---------- Trust strip ---------- */
.trust { background: var(--cream); border-bottom: 1px solid var(--line); padding: 22px 0; }
.trust ul {
  list-style: none; margin: 0; padding: 0;
  display: flex; flex-wrap: wrap; gap: 10px 34px; justify-content: center;
  font-size: 0.97rem; color: var(--navy); font-weight: 600; text-align: center;
}
.trust li::before { content: "◆"; color: var(--gold); margin-right: 9px; font-size: 0.7em; vertical-align: 2px; }
/* Desktop/tablet: two even trust columns so the diamonds line up */
@media (min-width: 861px) { .trust li { flex: 1 1 40%; } }

/* ---------- Cards & grids ---------- */
.grid { display: grid; gap: 20px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
/* Design pass: text-listing grids hug content height (no stretched voids);
   feature-panel grids top-align so panels share the heading's top line. */
.grid.hug { align-items: start; }
.grid-top { align-items: start; }
.card {
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px 24px;
  box-shadow: 0 1px 2px rgba(11,34,57,.05), 0 10px 30px rgba(11,34,57,.05);
  display: flex; flex-direction: column;
}
.alt .card { background: #fff; }
.card h3 { margin-bottom: 8px; }
.card p, .card li { color: var(--ink-soft); font-size: 0.98rem; }
.card ul { margin: 0; padding-left: 19px; }
.card li { margin-bottom: 5px; }
.card .more { font-weight: 700; font-size: 0.92rem; display: inline-block; padding: 7px 0; }
/* Pin a card's closing link row to the card bottom (equal-height tile rows) */
.card p:has(> .more) { margin-top: auto; padding-top: 12px; }
/* Services everyday grid: an odd card count leaves the last card a full row */
#everyday .grid-2 > .card:last-child { grid-column: 1 / -1; }
#everyday .grid-2 > .card:last-child p { max-width: 62ch; }

.kicker-num {
  display: inline-flex; align-items: center; justify-content: center;
  width: 34px; height: 34px; border-radius: 50%;
  background: var(--navy); color: var(--gold-soft);
  font-family: Georgia, serif; font-weight: 700; margin-bottom: 12px;
}

/* Designed content panel (replaces the v1 logo placeholder panels).
   A real panel of useful content in the site palette — no substitute
   "photography," no external imagery. */
.feature-panel {
  border-radius: var(--radius);
  background:
    radial-gradient(120% 120% at 20% 0%, var(--navy-soft) 0%, var(--navy) 55%, var(--navy-deep) 100%);
  border-top: 4px solid var(--gold);
  color: #dbe3ea;
  padding: 28px 28px 20px;
}
.feature-panel h3 { color: #fff; font-size: 1.25rem; margin-bottom: 12px; }
.feature-panel ul { margin: 0; padding-left: 20px; }
.feature-panel li { margin-bottom: 9px; font-size: 0.99rem; }
.feature-panel li strong { color: var(--gold-soft); font-weight: 700; }
.feature-panel p { color: #dbe3ea; font-size: 0.99rem; }

/* ---------- Steps ---------- */
.steps { counter-reset: step; }
.step { display: flex; gap: 18px; margin-bottom: 26px; }
.step .kicker-num { flex: 0 0 auto; margin-top: 3px; }
.step p { color: var(--ink-soft); margin: 0; }

/* ---------- Pricing ---------- */
.price-note { color: var(--ink-soft); max-width: 46em; }
/* Scroll region for the pricing table on narrow screens */
.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; border-radius: var(--radius); }
.table-scroll:focus-visible { outline: 3px solid var(--gold-text); outline-offset: 2px; }
.scroll-hint { display: none; color: var(--ink-soft); font-size: 0.86rem; margin: 8px 2px 0; }
table.prices { width: 100%; border-collapse: collapse; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
table.prices caption { text-align: left; color: var(--ink-soft); font-size: 0.92rem; padding: 0 2px 10px; }
table.prices th, table.prices td { text-align: left; padding: 15px 18px; vertical-align: top; }
table.prices thead th { background: var(--navy); color: #fff; font-family: Georgia, serif; font-weight: 600; }
table.prices tbody tr { border-top: 1px solid var(--line); }
table.prices tbody tr:nth-child(even) { background: var(--cream); }
table.prices td.price { font-weight: 700; color: var(--navy); white-space: nowrap; font-size: 1.05rem; }
/* Design pass: prices read as a scannable right edge (presentation only) */
table.prices th:last-child, table.prices td.price { text-align: right; }
table.prices td small { color: var(--ink-soft); display: block; font-weight: 400; }

/* ---------- Towns ---------- */
.towns { columns: 3; column-gap: 34px; list-style: none; padding: 0; margin: 0; }
.towns li { padding: 7px 0; border-bottom: 1px solid var(--line); color: var(--ink-soft); break-inside: avoid; }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy-deep); color: #b9c6d1; padding: 52px 0 30px; font-size: 0.95rem; }
.footer-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 36px; margin-bottom: 34px; }
.site-footer h3 { color: #fff; font-size: 1.05rem; margin-bottom: 10px; }
.site-footer a { color: var(--gold-soft); text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: 4px; }
.site-footer a { display: inline-block; padding: 5px 0; }
/* Footer brand = the locked navy badge + text (mirrors the header block).
   Replaces the off-brand wide lockup image (design pass MUST-fix). */
.footer-brand { display: flex; align-items: center; gap: 13px; margin-bottom: 14px; }
.footer-brand img { width: 64px; height: 64px; border-radius: 50%; display: block; }
.site-footer .brand-name { font-family: Georgia, serif; font-size: 1.28rem; font-weight: 700; color: #fff; line-height: 1.1; }
.site-footer .brand-tag { font-size: 0.78rem; color: var(--gold-soft); font-style: italic; font-family: Georgia, serif; }
.footer-fine { border-top: 1px solid #22374d; padding-top: 18px; font-size: 0.84rem; color: #8496a6; display: flex; flex-wrap: wrap; gap: 6px 22px; }

/* ---------- Alert / urgent ---------- */
.alert-band { background: #fdf3e3; border-bottom: 1px solid #ecd9ae; }
.alert-band .wrap { padding-top: 16px; padding-bottom: 16px; }
.alert-band p { margin: 0; color: #5c4a1f; max-width: 52em; }
.do-dont { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; align-items: start; }
.do-dont ul { margin: 0; padding-left: 19px; color: var(--ink-soft); }
.do-dont li { margin-bottom: 7px; }

/* ---------- Responsive ---------- */
/* In-between widths: trim nav padding so brand + nav + call pill
   stay on one header line (UX review N4 — verified wrapping at 900px) */
@media (max-width: 1080px) and (min-width: 861px) {
  .main-nav a { padding-left: 8px; padding-right: 8px; }
  .header-in { gap: 10px; }
}
/* 861–1000px: even trimmed, one line doesn't fit — stack deliberately
   (brand + call on row one, nav full-width beneath) instead of letting
   the pill wrap alone. Mirrors the mobile header pattern. */
@media (max-width: 1000px) and (min-width: 861px) {
  .main-nav { order: 3; flex-basis: 100%; margin-left: 0; }
  .header-call { margin-left: auto; }
}
@media (max-width: 860px) {
  /* Mobile hero: copy first, headline + Call inside the first viewport;
     the badge follows the CTAs as a sign-off (UX design pass M2). */
  .hero { padding: 34px 0 42px; }
  .hero-grid { grid-template-columns: 1fr; }
  .hero-badge img { width: 120px; }
  .cta-row .btn-block { flex: 1 1 100%; }
  .grid-2, .grid-3 { grid-template-columns: 1fr; }
  .do-dont { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .towns { columns: 2; }
  section { padding: 48px 0; }

  /* Compact sticky header: brand + call on row one, nav as a
     single swipeable row beneath — no tall wrapped stack. */
  .header-in { gap: 8px 12px; padding: 8px 16px 10px; }
  .brand { gap: 9px; }
  .brand img { width: 38px; height: 38px; }
  .brand .brand-name { font-size: 1.05rem; }
  .brand .brand-tag { display: none; }
  .header-call { margin-left: auto; padding: 11px 14px; font-size: 0.9rem; }
  .main-nav {
    order: 3; flex-basis: 100%; margin-left: 0;
    /* Mobile-fix pass: wrap onto full rows instead of a sideways scroll
       row — every link sits on screen; none clipped off the right edge
       behind the old fade mask (independent review finding). */
    flex-wrap: wrap;
  }
  .main-nav a { padding: 11px 7px; font-size: 0.86rem; white-space: nowrap; }
  section[id], .card[id] { scroll-margin-top: 176px; }

  /* Pricing table: fit the phone instead of scrolling sideways, so each
     service name and its price stay paired in the same row on screen
     (independent review finding). Fixed layout + column shares keep the
     nowrap price column fully visible at 360px; the table no longer
     scrolls, so the swipe hint stays hidden (base rule). */
  table.prices { min-width: 0; table-layout: fixed; }
  table.prices th:nth-child(1), table.prices td:nth-child(1) { width: 31%; }
  table.prices th:nth-child(2), table.prices td:nth-child(2) { width: 43%; }
  table.prices th:nth-child(3), table.prices td:nth-child(3) { width: 26%; }
  table.prices th, table.prices td { padding: 12px 9px; }
}

/* Keyword-bearing subhead paired with each page's voice H1 (SEO pass, auditor fix).
   Design pass: sized to match .lede and demoted into the body family —
   on the hero it takes the body-text color so gold appears once (the tagline). */
.keyword-sub { font-weight: 600; font-size: 1.13rem; color: var(--navy); margin-top: 10px; max-width: 46em; }
.hero .keyword-sub { color: #cfd9e1; }
