/* =========================================================================
   Get My Security Deposit Back — shared design system
   Palette: cream #f7f4ec / navy #1a2b4a / amber #b8893a
   Type: Fraunces (display, used with restraint) + Inter (body/UI)
   Tone: calm, practical, plenty of air. No adversarial imagery.
   ========================================================================= */

:root {
  /* Core palette */
  --cream: #f7f4ec;
  --cream-deep: #efe9db;     /* section banding */
  --navy: #1a2b4a;
  --navy-soft: #2a3d5f;
  --amber: #b8893a;
  --amber-deep: #9c7230;     /* hover */
  --amber-tint: #f3e7d0;     /* soft fills */
  --ink: #232a33;            /* body text (softer than pure navy) */
  --muted: #6b7180;
  --line: #e2dccd;           /* hairline borders on cream */
  --white: #ffffff;

  /* Type scale */
  --step--1: clamp(0.84rem, 0.8rem + 0.2vw, 0.95rem);
  --step-0: clamp(1.05rem, 1rem + 0.3vw, 1.18rem);
  --step-1: clamp(1.3rem, 1.2rem + 0.5vw, 1.55rem);
  --step-2: clamp(1.7rem, 1.45rem + 1.1vw, 2.3rem);
  --step-3: clamp(2.1rem, 1.7rem + 2vw, 3.2rem);
  --step-4: clamp(2.6rem, 2rem + 3vw, 4.2rem);

  --maxw: 1080px;
  --maxw-text: 720px;        /* readable measure for prose */
  --radius: 14px;
  --radius-lg: 22px;
  --shadow: 0 14px 40px rgba(26, 43, 74, 0.10);
  --shadow-sm: 0 4px 14px rgba(26, 43, 74, 0.07);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: 'Inter', ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: var(--step-0);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: 'Fraunces', Georgia, 'Times New Roman', serif;
  color: var(--navy);
  line-height: 1.12;
  margin: 0 0 0.5em;
  font-weight: 600;
  letter-spacing: -0.01em;
}
h1 { font-size: var(--step-4); }
h2 { font-size: var(--step-3); }
h3 { font-size: var(--step-1); }
p { margin: 0 0 1rem; }
a { color: var(--amber-deep); }

/* ---------- Layout primitives ---------- */
.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
.measure { max-width: var(--maxw-text); }
.section { padding: clamp(56px, 8vw, 104px) 0; }
.section--band { background: var(--cream-deep); }
.section--navy { background: var(--navy); color: #e9edf4; }
.section--navy h1, .section--navy h2, .section--navy h3 { color: var(--white); }
.section--navy a { color: var(--amber-tint); }
.center { text-align: center; }
.stack > * + * { margin-top: 1rem; }
.eyebrow {
  font-family: 'Inter', sans-serif;
  font-size: var(--step--1);
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--amber-deep);
  margin: 0 0 0.6rem;
}
.section--navy .eyebrow { color: var(--amber); }
.lede { font-size: var(--step-1); color: var(--navy-soft); font-family: 'Fraunces', serif; font-weight: 400; line-height: 1.4; }
.section--navy .lede { color: #cdd6e6; }
.fine { font-size: var(--step--1); color: var(--muted); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  font-size: var(--step-0);
  line-height: 1;
  padding: 0.95em 1.6em;
  border-radius: 999px;
  border: 1.5px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.12s ease, background 0.15s ease, box-shadow 0.15s ease;
}
.btn--primary { background: var(--amber); color: #1a1206; box-shadow: var(--shadow-sm); }
.btn--primary:hover { background: var(--amber-deep); color: #fff; transform: translateY(-1px); }
.btn--ghost { background: transparent; color: var(--navy); border-color: var(--line); }
.btn--ghost:hover { border-color: var(--navy); }
.section--navy .btn--ghost { color: #fff; border-color: rgba(255,255,255,0.35); }
.section--navy .btn--ghost:hover { border-color: #fff; }
.btn--lg { font-size: var(--step-1); padding: 1.05em 1.9em; }

/* ---------- Cards ---------- */
.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 28px 26px;
  box-shadow: var(--shadow-sm);
}
.grid { display: grid; gap: 22px; }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 760px) {
  .grid--2, .grid--3 { grid-template-columns: 1fr; }
}

/* outcome tiers */
.tier { border-top: 4px solid var(--line); }
.tier--strong { border-top-color: #3f8f5b; }
.tier--moderate { border-top-color: var(--amber); }
.tier--weak { border-top-color: var(--muted); }
.tier h3 { margin-bottom: 0.4rem; }

/* ---------- Icon tiles ---------- */
.icon-tile { display: flex; gap: 16px; align-items: flex-start; }
.icon-tile .ic { flex: 0 0 auto; width: 46px; height: 46px; color: var(--amber-deep); }
.icon-tile h3 { font-size: var(--step-0); font-family: 'Inter', sans-serif; font-weight: 700; color: var(--navy); margin-bottom: 0.25rem; }
.icon-tile p { margin: 0; color: var(--muted); font-size: var(--step--1); }

/* ---------- Header / nav ---------- */
.site-header {
  position: sticky; top: 0; z-index: 40;
  background: rgba(247, 244, 236, 0.88);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.nav { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 14px 24px; max-width: var(--maxw); margin: 0 auto; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.brand-mark { width: 30px; height: 30px; color: var(--amber-deep); }
.brand-name { font-family: 'Fraunces', serif; font-weight: 600; color: var(--navy); font-size: 1.16rem; letter-spacing: -0.01em; }
.nav-links { display: flex; align-items: center; gap: 6px; list-style: none; margin: 0; padding: 0; }
.nav-links a {
  text-decoration: none; color: var(--navy-soft); font-weight: 500;
  font-size: 0.97rem; padding: 8px 12px; border-radius: 8px; transition: background 0.15s ease, color 0.15s ease;
}
.nav-links a:hover { background: var(--amber-tint); color: var(--navy); }
.nav-links a[aria-current="page"] { color: var(--amber-deep); font-weight: 700; }
.nav-cta { margin-left: 4px; }
.nav-toggle { display: none; background: none; border: 0; cursor: pointer; padding: 8px; color: var(--navy); }
.nav-toggle svg { width: 26px; height: 26px; }

@media (max-width: 860px) {
  .nav-toggle { display: inline-flex; }
  .nav-links {
    position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 2px;
    background: var(--cream); border-bottom: 1px solid var(--line);
    padding: 12px 16px 18px; display: none;
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 12px; font-size: 1.05rem; }
  .nav-cta { margin: 8px 0 0; }
}

/* ---------- Footer ---------- */
.site-footer { background: var(--navy); color: #b9c2d4; padding: 56px 0 36px; }
.site-footer a { color: #d7deeb; text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr; gap: 32px; }
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr; gap: 26px; } }
.footer-grid h4 { color: #fff; font-family: 'Inter', sans-serif; font-size: 0.95rem; letter-spacing: 0.04em; text-transform: uppercase; margin-bottom: 14px; }
.footer-links { list-style: none; margin: 0; padding: 0; }
.footer-links li { margin-bottom: 9px; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.12); margin-top: 40px; padding-top: 22px; font-size: 0.85rem; color: #8e99ad; }
.footer-disclaimer { font-size: 0.85rem; color: #9aa4b8; max-width: 60ch; line-height: 1.6; }

/* ---------- Accessibility ---------- */
:focus-visible { outline: 3px solid var(--amber); outline-offset: 2px; border-radius: 4px; }
.skip-link { position: absolute; left: -9999px; top: 0; background: var(--navy); color: #fff; padding: 10px 16px; border-radius: 0 0 8px 0; z-index: 100; }
.skip-link:focus { left: 0; }
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

/* ---------- Small utilities ---------- */
.pill { display: inline-block; background: var(--amber-tint); color: var(--amber-deep); font-size: var(--step--1); font-weight: 600; padding: 5px 12px; border-radius: 999px; }
.check-list { list-style: none; margin: 0; padding: 0; }
.check-list li { position: relative; padding-left: 30px; margin-bottom: 12px; }
.check-list li::before {
  content: ""; position: absolute; left: 0; top: 6px; width: 18px; height: 18px;
  background: var(--amber); border-radius: 50%;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M9 16.2 4.8 12l-1.4 1.4L9 19 21 7l-1.4-1.4z'/%3E%3C/svg%3E") center/14px no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M9 16.2 4.8 12l-1.4 1.4L9 19 21 7l-1.4-1.4z'/%3E%3C/svg%3E") center/14px no-repeat;
}

/* ---------- FAQ ---------- */
.faq-item { padding: 22px 0; border-bottom: 1px solid var(--line); }
.faq-item:last-child { border-bottom: 0; }
.faq-item h3 { margin-bottom: 0.4rem; }
.faq-item p { margin: 0; color: var(--ink); }
