/* Georgia Lien Desk — design system
   Palette: deep navy (trust/legal) + safety amber (construction) on warm paper.
   System font stack only — zero external requests, fast Core Web Vitals. */

:root {
  --navy: #10263f;
  --navy-2: #1b3a5c;
  --navy-3: #24486e;
  --amber: #e8930c;
  --amber-dark: #b97400;
  --amber-pale: #fdf3e1;
  --paper: #f8f7f4;
  --white: #ffffff;
  --ink: #1d2733;
  --muted: #55657a;
  --line: #e2dfd7;
  --danger: #b3261e;
  --danger-pale: #fdecea;
  --ok: #1e7e4b;
  --ok-pale: #e7f4ec;
  --radius: 10px;
  --shadow: 0 1px 2px rgba(16, 38, 63, .06), 0 8px 24px rgba(16, 38, 63, .08);
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "Cascadia Code", "Segoe UI Mono", Consolas, monospace;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}
img, svg { max-width: 100%; height: auto; }
a { color: var(--navy-3); }
a:hover { color: var(--amber-dark); }

.wrap { max-width: 1080px; margin: 0 auto; padding: 0 20px; }
.wrap-narrow { max-width: 760px; margin: 0 auto; padding: 0 20px; }

/* ---------- top trust strip ---------- */
.topbar {
  background: var(--navy);
  color: #cfdcec;
  font-size: 13.5px;
  padding: 7px 0;
}
.topbar .wrap { display: flex; gap: 18px; flex-wrap: wrap; justify-content: center; }
.topbar span::before { content: "✓ "; color: var(--amber); font-weight: 700; }

/* ---------- header / nav ---------- */
header.site {
  background: var(--white);
  border-bottom: 1px solid var(--line);
  position: sticky; top: 0; z-index: 50;
}
header.site .wrap {
  display: flex; align-items: center; justify-content: space-between;
  padding-top: 12px; padding-bottom: 12px; gap: 16px;
}
.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.logo img { width: 40px; height: 40px; }
.logo b { color: var(--navy); font-size: 19px; letter-spacing: .2px; line-height: 1.15; display: block; }
.logo small { color: var(--muted); font-size: 12px; display: block; font-weight: 500; }
nav.main { display: flex; align-items: center; gap: 4px; }
nav.main a {
  text-decoration: none; color: var(--ink); font-weight: 600; font-size: 15px;
  padding: 8px 12px; border-radius: 8px;
}
nav.main a:hover { background: var(--paper); color: var(--navy); }
nav.main a.cta { background: var(--amber); color: var(--navy); margin-left: 8px; }
nav.main a.cta:hover { background: var(--amber-dark); color: var(--white); }
#navToggle {
  display: none; background: none; border: 1px solid var(--line); border-radius: 8px;
  padding: 8px 10px; font-size: 18px; cursor: pointer; color: var(--navy);
  min-width: 44px; min-height: 44px;
}

/* ---------- buttons ---------- */
.btn {
  display: inline-block; text-decoration: none; font-weight: 700; font-size: 16.5px;
  padding: 13px 26px; border-radius: var(--radius); border: 2px solid transparent;
  cursor: pointer; text-align: center;
}
.btn-primary { background: var(--amber); color: var(--navy); }
.btn-primary:hover { background: var(--amber-dark); color: var(--white); }
.btn-ghost { border-color: var(--navy-3); color: var(--navy-2); background: transparent; }
.btn-ghost:hover { background: var(--navy); color: var(--white); border-color: var(--navy); }
.btn-lg { font-size: 18px; padding: 16px 34px; }

/* ---------- hero ---------- */
.hero {
  background: linear-gradient(160deg, var(--navy) 0%, var(--navy-2) 70%, var(--navy-3) 100%);
  color: var(--white); padding: 64px 0 72px;
}
.hero h1 { font-size: clamp(30px, 4.6vw, 46px); line-height: 1.15; margin: 0 0 18px; letter-spacing: -.5px; }
.hero h1 em { color: var(--amber); font-style: normal; }
.hero p.lead { font-size: clamp(17px, 2.2vw, 20px); color: #d7e2ef; max-width: 640px; margin: 0 0 28px; }
.hero .btns { display: flex; gap: 14px; flex-wrap: wrap; }
.hero .subnote { margin-top: 16px; font-size: 14px; color: #a9bdd4; }

/* ---------- sections ---------- */
section.band { padding: 56px 0; }
section.band.alt { background: var(--white); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
h2.section { font-size: clamp(24px, 3.2vw, 32px); color: var(--navy); margin: 0 0 8px; letter-spacing: -.3px; }
p.section-sub { color: var(--muted); margin: 0 0 32px; max-width: 640px; }

/* ---------- cards ---------- */
.grid { display: grid; gap: 20px; }
.grid.c3 { grid-template-columns: repeat(3, 1fr); }
.grid.c2 { grid-template-columns: repeat(2, 1fr); }
.card {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 24px; box-shadow: var(--shadow);
}
.card h3 { margin: 0 0 8px; color: var(--navy); font-size: 19px; }
.card .price { font-size: 26px; font-weight: 800; color: var(--navy); margin: 6px 0 2px; }
.card .price small { font-size: 13px; color: var(--muted); font-weight: 500; }
.card ul { padding-left: 20px; margin: 10px 0; }
.card ul li { margin: 4px 0; font-size: 15.5px; }
.card .card-cta { margin-top: 12px; display: inline-block; font-weight: 700; }

/* ---------- steps ---------- */
.steps { counter-reset: step; display: grid; gap: 18px; grid-template-columns: repeat(4, 1fr); }
.step { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 20px; position: relative; }
.step::before {
  counter-increment: step; content: counter(step);
  display: inline-flex; align-items: center; justify-content: center;
  width: 34px; height: 34px; border-radius: 50%;
  background: var(--amber); color: var(--navy); font-weight: 800; margin-bottom: 10px;
}
.step h3 { margin: 0 0 6px; font-size: 17px; color: var(--navy); }
.step p { margin: 0; font-size: 15px; color: var(--muted); }

/* ---------- callouts ---------- */
.callout {
  border-left: 5px solid var(--amber); background: var(--amber-pale);
  border-radius: 0 var(--radius) var(--radius) 0; padding: 16px 20px; margin: 24px 0;
}
.callout.deadline { border-left-color: var(--danger); background: var(--danger-pale); }
.callout.good { border-left-color: var(--ok); background: var(--ok-pale); }
.callout b:first-child { display: block; margin-bottom: 4px; color: var(--navy); }

/* ---------- article / guide styles ---------- */
article.guide { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(24px, 5vw, 48px); margin: 36px auto; box-shadow: var(--shadow); }
article.guide h1 { font-size: clamp(27px, 3.8vw, 38px); color: var(--navy); line-height: 1.2; margin: 0 0 10px; letter-spacing: -.4px; }
article.guide h2 { font-size: 24px; color: var(--navy); margin: 36px 0 12px; }
article.guide h3 { font-size: 19px; color: var(--navy-2); margin: 26px 0 8px; }
article.guide .byline { color: var(--muted); font-size: 14.5px; border-bottom: 1px solid var(--line); padding-bottom: 16px; margin-bottom: 24px; }
article.guide table { border-collapse: collapse; width: 100%; margin: 18px 0; font-size: 15.5px; }
article.guide th, article.guide td { border: 1px solid var(--line); padding: 10px 12px; text-align: left; vertical-align: top; }
article.guide th { background: var(--paper); color: var(--navy); }
article.guide .statute { font-family: var(--mono); font-size: 14.5px; background: var(--paper); padding: 1px 6px; border-radius: 5px; white-space: nowrap; }

/* ---------- FAQ ---------- */
details.faq {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 0 20px; margin: 10px 0;
}
details.faq summary { cursor: pointer; font-weight: 700; color: var(--navy); padding: 16px 0; font-size: 16.5px; list-style: none; position: relative; padding-right: 30px; }
details.faq summary::after { content: "+"; position: absolute; right: 4px; color: var(--amber-dark); font-size: 22px; font-weight: 400; }
details.faq[open] summary::after { content: "–"; }
details.faq div { padding: 0 0 16px; color: var(--ink); font-size: 15.5px; }

/* ---------- CTA band ---------- */
.cta-band { background: var(--navy); color: var(--white); text-align: center; padding: 56px 0; }
.cta-band h2 { font-size: clamp(24px, 3.4vw, 34px); margin: 0 0 10px; }
.cta-band p { color: #c9d7e7; margin: 0 0 24px; }

/* ---------- disclaimer / footer ---------- */
.disclaimer-block {
  font-size: 13.5px; color: var(--muted); background: var(--white);
  border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 20px; margin: 32px 0;
}
footer.site { background: var(--navy); color: #b8c8da; padding: 44px 0 28px; font-size: 14px; margin-top: 56px; }
footer.site a { color: #d7e2ef; }
footer.site .cols { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 32px; margin-bottom: 28px; }
footer.site h4, footer.site .footer-heading { color: var(--white); font-size: 15px; font-weight: 700; margin: 0 0 10px; }
footer.site ul { list-style: none; padding: 0; margin: 0; }
footer.site li { margin: 6px 0; }
footer.site .legal { border-top: 1px solid rgba(255,255,255,.15); padding-top: 18px; font-size: 12.5px; line-height: 1.6; color: #93a7bd; }

/* ---------- calculator ---------- */
.calc { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow); }
.calc label { display: block; font-weight: 700; color: var(--navy); margin: 16px 0 6px; font-size: 15.5px; }
.calc input[type="date"], .calc select {
  width: 100%; max-width: 380px; padding: 11px 12px; font-size: 16px;
  border: 1.5px solid var(--line); border-radius: 8px; font-family: var(--font); background: var(--white);
}
.calc .hint { font-size: 13.5px; color: var(--muted); margin-top: 3px; }
.calc-result { margin-top: 24px; }
.calc-result .row {
  display: flex; justify-content: space-between; gap: 16px; align-items: baseline;
  border-bottom: 1px dashed var(--line); padding: 12px 4px; flex-wrap: wrap;
}
.calc-result .row b { color: var(--navy); }
.calc-result .date { font-family: var(--mono); font-weight: 700; font-size: 17px; }
.calc-result .date.past { color: var(--danger); }
.calc-result .date.soon { color: var(--amber-dark); }
.calc-result .date.ok { color: var(--ok); }

/* ---------- breadcrumbs / misc ---------- */
.crumbs { font-size: 13.5px; color: var(--muted); margin: 20px 0 0; }
.crumbs a { color: var(--muted); }
.badge { display: inline-block; background: var(--amber-pale); color: var(--amber-dark); border: 1px solid #f2d9ac; font-size: 12.5px; font-weight: 700; padding: 3px 10px; border-radius: 999px; letter-spacing: .3px; text-transform: uppercase; }
.check-list { list-style: none; padding: 0; }
.check-list li { padding-left: 28px; position: relative; margin: 8px 0; }
.check-list li::before { content: "✓"; position: absolute; left: 0; color: var(--ok); font-weight: 800; }
.x-list li::before { content: "✕"; color: var(--danger); }

/* ---------- responsive ---------- */
@media (max-width: 900px) {
  .grid.c3 { grid-template-columns: 1fr 1fr; }
  .steps { grid-template-columns: 1fr 1fr; }
  footer.site .cols { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .grid.c3, .grid.c2, .steps { grid-template-columns: 1fr; }
  footer.site .cols { grid-template-columns: 1fr; }
  #navToggle { display: block; }
  nav.main {
    display: none; position: absolute; top: 100%; left: 0; right: 0;
    background: var(--white); border-bottom: 1px solid var(--line);
    flex-direction: column; align-items: stretch; padding: 10px 16px 16px;
  }
  nav.main.open { display: flex; }
  nav.main a { padding: 12px; }
  .topbar .wrap { gap: 10px; font-size: 12px; }
}
@media print {
  .topbar, header.site nav, #navToggle, footer.site .cols, .cta-band, .btn { display: none !important; }
  footer.site, footer.site .legal, footer.site .legal p { background: #fff !important; color: #000 !important; }
  body { background: #fff; }
}

/* Wide tables scroll inside their own box on small screens instead of widening the page */
.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; margin: 18px 0; }
.table-scroll table { margin: 0; min-width: 560px; }
article.guide .statute { white-space: normal; }

/* Ghost button on the dark hero band needs light text to be readable */
.hero .btn-ghost { color: var(--white); border-color: rgba(255, 255, 255, .6); }
.hero .btn-ghost:hover { background: var(--white); color: var(--navy); border-color: var(--white); }
