/* ==========================================================================
   Law Offices of Adam C. Phillips — design system v2
   Palette + hierarchy taken from the firm BRANDBOOK (Logo and Marketing/Finals):
     DARK BLUE  #0C3147  (RGB 12 49 71)   — authority, primary ground
     BLUE       #1F465C  (RGB 31 70 92)   — corporate blue
     BEIGE      #F9EEE8  (RGB 249 238 232)— warm wash, backgrounds
     SILVER     gradient — refined luxury, "more understated than gold"
   Brand fonts are Praetoria + BD Megalona (print-only licenses); web stand-ins:
     Marcellus (lapidary caps, Praetoria feel) + Cormorant Garamond (Megalona feel)
     + Lato for UI/body.
   Hand-written CSS, no build step. Edit tokens here; every page follows.
   ========================================================================== */

:root {
  --ink:         #0C3147;   /* brandbook dark blue */
  --navy:        #1F465C;   /* brandbook blue      */
  --navy-deep:   #12374C;
  --navy-darker: #0C3147;
  --beige:       #F9EEE8;   /* brandbook beige     */
  --beige-deep:  #F2E2D8;

  /* silver ramp (brandbook "gradient silver") */
  --silver-hi:   #F4F6F7;
  --silver:      #C9CFD4;
  --silver-mid:  #AAB3BA;
  --silver-low:  #8B959D;
  --silver-grad: linear-gradient(160deg, #F2F4F5 0%, #D8DDE1 38%, #B4BDC4 72%, #DCE1E4 100%);

  --gold:        #C9CFD4;   /* legacy alias — now silver */
  --gold-bright: #E4E8EA;

  --body:        #3E4C57;
  --muted:       #71808B;
  --line:        #E7E0DA;
  --line-cool:   #DFE4E7;
  --wash:        var(--beige);
  --white:       #FFFFFF;

  --display: 'Marcellus', 'Times New Roman', serif;
  --serif:   'Cormorant Garamond', Georgia, serif;
  --sans:    'Lato', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

  --wrap: 1180px;
  --radius: 3px;
  --shadow-sm: 0 1px 2px rgba(12,49,71,.06), 0 1px 6px rgba(12,49,71,.05);
  --shadow:    0 10px 30px rgba(12,49,71,.10);
  --shadow-lg: 0 24px 64px rgba(12,49,71,.22);
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--sans);
  font-size: 16.5px;
  font-weight: 400;
  line-height: 1.75;
  color: var(--body);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 {
  font-family: var(--display);
  font-weight: 400;
  color: var(--ink);
  line-height: 1.14;
  margin: 0 0 .55em;
  letter-spacing: .015em;
}
h1 { font-size: clamp(2.1rem, 5vw, 3.6rem); }
h2 { font-size: clamp(1.6rem, 3.2vw, 2.4rem); }
h3 { font-size: 1.28rem; }
h4 {
  font-family: var(--sans); font-size: .82rem; font-weight: 700;
  letter-spacing: .18em; text-transform: uppercase;
  color: var(--navy); margin: 0 0 .7em;
}
p { margin: 0 0 1.1em; }
a { color: var(--navy); text-decoration: none; transition: color .15s ease; }
a:hover { color: var(--silver-low); }
img { max-width: 100%; height: auto; display: block; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.narrow { max-width: 820px; margin: 0 auto; }
.center { text-align: center; }

/* small-caps kicker above headings */
.eyebrow {
  font-family: var(--sans);
  font-size: .74rem;
  font-weight: 700;
  letter-spacing: .3em;
  text-transform: uppercase;
  color: var(--silver-mid);
  margin-bottom: 1.1rem;
  display: flex;
  align-items: center;
  gap: 14px;
}
.eyebrow::before { content: ''; width: 34px; height: 1px; background: var(--silver-mid); flex: none; }
.center .eyebrow, .section-head .eyebrow, .page-hero .eyebrow, .hero .eyebrow { justify-content: center; }
.center .eyebrow::after, .section-head .eyebrow::after, .page-hero .eyebrow::after, .hero .eyebrow::after {
  content: ''; width: 34px; height: 1px; background: var(--silver-mid); flex: none;
}
.hero .eyebrow, .hero .eyebrow::before, .hero .eyebrow::after { justify-content: flex-start; }
.hero .eyebrow { color: var(--silver); }
.hero .eyebrow::before, .hero .eyebrow::after { background: var(--silver-low); }
.hero .eyebrow::after { display: none; }
.eyebrow-dark { color: var(--navy); }
.eyebrow-dark::before, .eyebrow-dark::after { background: var(--silver-mid); }

/* ---------- buttons ---------- */
.btn {
  display: inline-block;
  font-family: var(--sans);
  font-weight: 700;
  font-size: .8rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  padding: 17px 34px;
  border-radius: var(--radius);
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform .18s ease, background .18s ease, color .18s ease,
              box-shadow .18s ease, border-color .18s ease;
  text-align: center;
}
.btn:hover { transform: translateY(-2px); }

/* primary: brandbook gradient silver, dark blue text */
.btn-gold {
  background: var(--silver-grad);
  color: var(--ink);
  border-color: rgba(12,49,71,.12);
  box-shadow: 0 8px 22px rgba(12,49,71,.22);
}
.btn-gold:hover { color: var(--ink); box-shadow: 0 12px 28px rgba(12,49,71,.3); filter: brightness(1.04); }

.btn-navy { background: var(--ink); color: #fff; }
.btn-navy:hover { background: var(--navy); color: #fff; }

.btn-ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,.5); }
.btn-ghost:hover { background: rgba(255,255,255,.1); color: #fff; border-color: rgba(255,255,255,.85); }

.btn-outline { background: transparent; color: var(--ink); border-color: var(--silver-mid); }
.btn-outline:hover { background: var(--ink); color: #fff; border-color: var(--ink); }

/* ---------- header ---------- */
.topbar {
  background: var(--ink);
  color: rgba(255,255,255,.75);
  font-size: .8rem;
  letter-spacing: .06em;
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.topbar .wrap { display: flex; justify-content: flex-end; gap: 22px; align-items: center; min-height: 38px; }
.topbar a { color: rgba(255,255,255,.75); }
.topbar a:hover { color: #fff; }

.site-header {
  position: sticky; top: 0; z-index: 60;
  background: rgba(12,49,71,.97);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; min-height: 80px; gap: 20px; }
.brand { display: flex; align-items: center; gap: 14px; }
.brand img.crest { height: 52px; width: auto; }
.brand-text { font-family: var(--display); color: #fff; line-height: 1.2; }
.brand-text strong { display: block; font-weight: 400; font-size: 1.12rem; letter-spacing: .06em; white-space: nowrap; }
.brand-text span {
  font-size: .62rem; letter-spacing: .34em; text-transform: uppercase;
  color: var(--silver); font-family: var(--sans); font-weight: 700;
}

.nav { display: flex; align-items: center; gap: 24px; }
.nav a {
  white-space: nowrap;
  color: rgba(255,255,255,.85);
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  padding: 8px 0;
  border-bottom: 1px solid transparent;
}
.nav a:hover, .nav a.active { color: #fff; border-bottom-color: var(--silver); }
.nav .btn { padding: 13px 24px; font-size: .72rem; border-bottom: 0; white-space: nowrap; }

.nav-toggle { display: none; background: none; border: 0; cursor: pointer; padding: 10px; }
.nav-toggle span { display: block; width: 26px; height: 2px; background: #fff; margin: 5px 0; transition: .2s; }

@media (max-width: 1150px) {
  .nav { gap: 16px; }
  .nav a { letter-spacing: .06em; font-size: .76rem; }
}
@media (max-width: 1020px) {
  .nav-toggle { display: block; }
  .nav {
    position: fixed; inset: 80px 0 auto 0;
    background: var(--ink);
    flex-direction: column; align-items: stretch;
    gap: 0; padding: 8px 24px 28px;
    display: none;
    box-shadow: var(--shadow-lg);
    max-height: calc(100vh - 80px); overflow-y: auto;
    border-top: 1px solid rgba(255,255,255,.1);
  }
  .nav.open { display: flex; }
  .nav a { padding: 16px 0; border-bottom: 1px solid rgba(255,255,255,.09); font-size: .84rem; }
  .nav .btn { margin-top: 18px; }
}

/* ---------- hero ---------- */
.hero {
  position: relative;
  background:
    radial-gradient(ellipse 90% 90% at 85% -10%, rgba(31,70,92,.9), transparent 60%),
    linear-gradient(165deg, #0A2A3D 0%, var(--ink) 45%, #123B52 100%);
  color: #fff;
  overflow: hidden;
}
.hero::before {
  /* silver crest watermark */
  content: '';
  position: absolute; inset: 0;
  background: url('/images/silver-crest.png') no-repeat;
  background-size: min(52vw, 640px);
  background-position: right -120px top -60px;
  opacity: .07;
  pointer-events: none;
}
.hero::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(201,207,212,.5), transparent);
}
.hero-inner {
  position: relative; z-index: 2;
  display: grid; grid-template-columns: 1.12fr .88fr; gap: 64px; align-items: center;
  padding-top: 96px; padding-bottom: 104px;
}
.hero h1 { color: #fff; margin-bottom: .5em; }
.hero .lede { font-family: var(--serif); font-size: 1.36rem; line-height: 1.55; color: rgba(249,238,232,.92); max-width: 30em; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 38px; }
.hero-photo { position: relative; }
.hero-photo::before {
  content: ''; position: absolute; inset: 18px -18px -18px 18px;
  border: 1px solid rgba(201,207,212,.35);
  border-radius: var(--radius);
  pointer-events: none;
}
.hero-photo img {
  position: relative;
  width: 100%; border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
}
.hero-badge {
  position: absolute; z-index: 2; bottom: -20px; left: -22px;
  background: var(--silver-grad); color: var(--ink);
  font-family: var(--display);
  padding: 14px 22px; border-radius: var(--radius);
  box-shadow: 0 14px 34px rgba(0,0,0,.35);
  font-size: 1rem; line-height: 1.3; max-width: 68%;
  letter-spacing: .04em;
}
.hero-badge span { font-family: var(--sans); }
@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; padding-top: 56px; padding-bottom: 72px; gap: 44px; }
  .hero-photo { order: -1; max-width: 430px; margin: 0 auto; width: 100%; }
  .hero-photo::before { inset: 12px -12px -12px 12px; }
  .hero-badge { left: -8px; }
  .hero .eyebrow { justify-content: flex-start; }
  .hero-cta .btn { flex: 1 1 100%; }
}

/* page hero (interior pages) */
.page-hero {
  position: relative;
  background:
    radial-gradient(ellipse 80% 120% at 50% -30%, rgba(31,70,92,.85), transparent 65%),
    linear-gradient(170deg, #0A2A3D 0%, var(--ink) 60%, #113850 100%);
  color: #fff; padding: 82px 0 76px; text-align: center;
  overflow: hidden;
}
.page-hero::before {
  content: '';
  position: absolute; left: 50%; top: 50%;
  width: 560px; height: 560px; transform: translate(-50%, -50%);
  background: url('/images/silver-crest.png') no-repeat center / contain;
  opacity: .06; pointer-events: none;
}
.page-hero > .wrap { position: relative; z-index: 2; }
.page-hero h1 { color: #fff; margin-bottom: .4em; }
.page-hero p { font-family: var(--serif); color: rgba(249,238,232,.9); font-size: 1.28rem; line-height: 1.55; max-width: 42em; margin: 0 auto; }
@media (max-width: 700px) { .page-hero { padding: 58px 0 54px; } }

/* ---------- trust strip ---------- */
.trust {
  background: var(--beige);
  border-bottom: 1px solid var(--line);
  padding: 30px 0;
}
.trust-grid { display: flex; flex-wrap: wrap; justify-content: center; gap: 20px 58px; text-align: center; }
.trust-item { font-family: var(--display); color: var(--ink); font-size: 1.22rem; letter-spacing: .02em; }
.trust-item small {
  display: block; font-family: var(--sans); font-weight: 700; font-size: .68rem;
  color: var(--muted); letter-spacing: .22em; text-transform: uppercase; margin-top: 3px;
}
@media (max-width: 700px) {
  .trust-grid { gap: 18px 26px; }
  .trust-item { font-size: 1.05rem; }
}

/* ---------- sections ---------- */
section { padding: 92px 0; }
section.tight { padding: 60px 0; }
section.wash { background: var(--beige); }
section.navy { background: var(--ink); color: rgba(255,255,255,.88); }
section.navy h2, section.navy h3 { color: #fff; }
@media (max-width: 700px) { section { padding: 62px 0; } }

.section-head { text-align: center; max-width: 46em; margin: 0 auto 56px; }
.section-head p { font-family: var(--serif); font-size: 1.22rem; line-height: 1.6; color: var(--muted); }
section.navy .section-head p { color: rgba(249,238,232,.8); }
@media (max-width: 700px) { .section-head { margin-bottom: 38px; } }

/* ---------- cards ---------- */
.grid { display: grid; gap: 24px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 960px) { .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; } }

.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 36px 30px;
  transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
}
.card:hover { transform: translateY(-5px); box-shadow: var(--shadow); border-color: var(--silver); }
.card h3 { margin-bottom: .55em; }
.card p:last-child { margin-bottom: 0; }
.card .more {
  font-family: var(--sans); font-weight: 700; font-size: .74rem;
  letter-spacing: .2em; text-transform: uppercase; color: var(--navy);
}
.card .more:hover { color: var(--silver-low); }
.card-icon {
  width: 44px; height: 2px;
  background: linear-gradient(90deg, var(--silver-mid), var(--silver-hi));
  margin-bottom: 22px;
}

/* result cards */
.result {
  background: var(--white);
  border: 1px solid var(--line);
  border-top: 2px solid var(--silver-mid);
  border-radius: var(--radius);
  padding: 34px 30px;
  transition: transform .22s ease, box-shadow .22s ease;
}
.result:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.result .amount { font-family: var(--display); font-size: 2.3rem; color: var(--ink); line-height: 1; letter-spacing: .01em; }
.result .kind {
  font-size: .68rem; letter-spacing: .24em; text-transform: uppercase;
  color: var(--silver-low); font-weight: 700; margin: 12px 0 16px;
}
.result p { margin: 0; font-size: .96rem; }

/* quotes */
.quote {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 34px 30px;
  position: relative;
}
.quote::before {
  content: '\201C';
  font-family: var(--serif); font-size: 4.6rem; color: var(--silver);
  position: absolute; top: 2px; left: 22px; line-height: 1;
}
.quote p {
  position: relative;
  font-family: var(--serif); font-size: 1.13rem; line-height: 1.62;
  font-style: italic; color: var(--body); margin: 16px 0 0;
}
.stars { color: var(--silver-mid); letter-spacing: 4px; font-size: .95rem; }

/* feature row */
.feature { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.feature.rev > :first-child { order: 2; }
@media (max-width: 900px) { .feature { grid-template-columns: 1fr; gap: 36px; } .feature.rev > :first-child { order: 0; } }
.feature img { border-radius: var(--radius); box-shadow: var(--shadow); }
.feature > div:has(> img) { position: relative; }

.checklist { list-style: none; padding: 0; margin: 0; }
.checklist li { position: relative; padding-left: 30px; margin-bottom: 13px; }
.checklist li::before {
  content: ''; position: absolute; left: 0; top: .62em;
  width: 14px; height: 1.5px; background: var(--silver-mid);
}

.pill-list { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; margin: 18px 0 0; }
.pill-list li {
  background: var(--beige); border: 1px solid var(--line);
  border-radius: 100px; padding: 5px 15px; font-size: .84rem; color: var(--body);
}

/* ---------- CTA band ---------- */
.cta-band {
  position: relative;
  background:
    radial-gradient(ellipse 70% 130% at 50% -40%, rgba(31,70,92,.9), transparent 60%),
    linear-gradient(170deg, #0A2A3D, var(--ink));
  color: #fff; text-align: center; padding: 88px 0;
  overflow: hidden;
}
.cta-band::before {
  content: '';
  position: absolute; left: 50%; bottom: -180px; width: 520px; height: 520px;
  transform: translateX(-50%);
  background: url('/images/silver-crest.png') no-repeat center / contain;
  opacity: .06; pointer-events: none;
}
.cta-band .wrap { position: relative; z-index: 2; }
.cta-band h2 { color: #fff; }
.cta-band p { font-family: var(--serif); color: rgba(249,238,232,.9); font-size: 1.24rem; line-height: 1.6; max-width: 38em; margin: 0 auto 34px; }
.cta-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
@media (max-width: 700px) {
  .cta-band { padding: 64px 0; }
  .cta-actions .btn { flex: 1 1 100%; }
}

/* ---------- forms ---------- */
.form-card {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 36px; box-shadow: var(--shadow);
}
.form-card.on-dark { box-shadow: var(--shadow-lg); }
.field { margin-bottom: 18px; }
.field label {
  display: block; font-size: .72rem; font-weight: 700; letter-spacing: .16em;
  text-transform: uppercase; color: var(--ink); margin-bottom: 8px;
}
.field input, .field select, .field textarea {
  width: 100%; padding: 14px 15px; font-family: var(--sans); font-size: 1rem;
  border: 1px solid var(--silver); border-radius: var(--radius);
  background: #fff; color: var(--ink);
  transition: border-color .15s ease, box-shadow .15s ease;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--navy); box-shadow: 0 0 0 3px rgba(31,70,92,.14);
}
.field textarea { min-height: 118px; resize: vertical; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 620px) { .field-row { grid-template-columns: 1fr; } }
.form-note { font-size: .82rem; color: var(--muted); margin: 14px 0 0; line-height: 1.6; }
.btn-block { width: 100%; }
.form-status { margin-top: 14px; font-size: .95rem; display: none; padding: 12px 14px; border-radius: var(--radius); }
.form-status.ok   { display: block; background: #EAF4EC; color: #1B6B3A; border: 1px solid #C4E0CC; }
.form-status.err  { display: block; background: #FBEDEA; color: #A32E20; border: 1px solid #F0CCC4; }

/* ---------- footer ---------- */
.site-footer {
  background: #0A2A3D;
  color: rgba(249,238,232,.66);
  padding: 74px 0 0; font-size: .94rem;
  border-top: 1px solid rgba(201,207,212,.18);
}
.site-footer h4 {
  color: var(--silver); font-family: var(--sans); font-size: .72rem;
  letter-spacing: .26em; margin-bottom: 20px;
}
.site-footer a { color: rgba(249,238,232,.66); }
.site-footer a:hover { color: #fff; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.3fr; gap: 44px; padding-bottom: 52px; }
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; gap: 36px; } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr; } }
.footer-grid ul { list-style: none; padding: 0; margin: 0; }
.footer-grid li { margin-bottom: 10px; }
.footer-brand img.footer-logo { width: 230px; height: auto; margin-bottom: 20px; }
.footer-bottom {
  border-top: 1px solid rgba(201,207,212,.16); padding: 26px 0 36px;
  font-size: .8rem; color: rgba(249,238,232,.45);
}
.footer-bottom .disclaimer { margin-top: 10px; max-width: 72em; line-height: 1.65; }
.addr { font-style: normal; line-height: 1.75; }
.addr strong { color: rgba(255,255,255,.9); display: block; font-weight: 700; margin-bottom: 2px; }

/* ---------- misc ---------- */
.prose { max-width: 780px; margin: 0 auto; }
.prose p { font-size: 1.06rem; }
.prose h2 { margin-top: 2em; }
.prose h3 { margin-top: 1.6em; }
.prose ul, .prose ol { padding-left: 22px; }
.prose li { margin-bottom: .5em; }
.meta { color: var(--muted); font-size: .88rem; letter-spacing: .05em; }
.back-link {
  font-size: .74rem; font-weight: 700; letter-spacing: .22em;
  text-transform: uppercase; color: var(--silver-low);
}
.back-link:hover { color: var(--ink); }

.skip {
  position: absolute; left: -9999px; top: 0;
  background: var(--silver-grad); color: var(--ink); padding: 12px 20px; z-index: 200; font-weight: 700;
}
.skip:focus { left: 12px; top: 12px; }

@media print { .site-header, .topbar, .site-footer, .cta-band { display: none; } }

/* ---------- award badges (trust banner) ---------- */
.awards {
  display: flex; flex-wrap: wrap; justify-content: center;
  gap: 26px 72px; align-items: stretch; text-align: center;
}
.award { display: flex; flex-direction: column; align-items: center; justify-content: flex-end; gap: 14px; }
.award-medal {
  width: 92px; height: 92px; border-radius: 50%;
  background: var(--silver-grad);
  padding: 4px;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 6px 18px rgba(12,49,71,.18);
}
.award-medal span {
  width: 100%; height: 100%; border-radius: 50%;
  background: var(--white);
  border: 1px solid var(--silver-mid);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--sans); font-weight: 700; font-size: .58rem;
  letter-spacing: .14em; line-height: 1.5; color: var(--ink);
}
.award-logo { height: 76px; width: auto; }
.award-name {
  font-family: var(--display); color: var(--ink); font-size: 1.02rem; letter-spacing: .02em;
}
@media (max-width: 700px) {
  .awards { gap: 22px 28px; }
  .award-medal { width: 76px; height: 76px; }
  .award-logo { height: 60px; }
  .award-name { font-size: .88rem; }
}
.award-medallion { width: 96px; height: 96px; }
@media (max-width: 700px) { .award-medallion { width: 76px; height: 76px; } }
