/* ==========================================================================
   Shamuel PLLC — Brand Stylesheet
   Palette: Forest green, ivory, brass. Type: Cormorant Garamond + Inter.
   ========================================================================== */

:root {
  /* Brand colors */
  --green-900: #0c2219;   /* deepest — footer, hero */
  --green-800: #123524;   /* primary brand green */
  --green-700: #1b4a34;
  --green-600: #245c42;
  --green-100: #e6ede8;

  --brass-500: #b08d57;   /* accent — rules, buttons, monogram */
  --brass-400: #c6a573;
  --brass-300: #dcc49c;

  --ivory-50:  #fbf9f4;   /* page background */
  --ivory-100: #f4f0e6;   /* alternate sections */
  --ivory-200: #e9e2d2;   /* borders */

  --ink-900: #1c1f1d;     /* body text */
  --ink-600: #4a514c;     /* secondary text */
  --ink-400: #7a817c;

  /* Type */
  --font-serif: "Cormorant Garamond", "Times New Roman", Georgia, serif;
  --font-sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;

  /* Layout */
  --max-width: 1160px;
  --gutter: clamp(1rem, 4vw, 2rem);
  --radius: 2px;
  --shadow: 0 1px 2px rgba(12, 34, 25, .06), 0 8px 24px rgba(12, 34, 25, .06);
}

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

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

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 1.0625rem;
  line-height: 1.7;
  color: var(--ink-900);
  background: var(--ivory-50);
  -webkit-font-smoothing: antialiased;
}

img, svg { display: block; max-width: 100%; }

a { color: var(--green-700); text-decoration-color: var(--brass-400); text-underline-offset: 3px; }
a:hover { color: var(--green-900); }

h1, h2, h3, h4 {
  text-wrap: balance;
  font-family: var(--font-serif);
  font-weight: 500;
  line-height: 1.15;
  color: var(--green-900);
  margin: 0 0 .6em;
  letter-spacing: -.005em;
}
h1 { font-size: clamp(2.5rem, 5.5vw, 4.25rem); }
h2 { font-size: clamp(2rem, 3.6vw, 2.875rem); }
h3 { font-size: clamp(1.4rem, 2.2vw, 1.75rem); }
h4 { font-size: 1.25rem; font-weight: 600; }

p { margin: 0 0 1.15em; }
ul, ol { padding-left: 1.25em; margin: 0 0 1.25em; }
li { margin-bottom: .4em; }

.skip-link {
  position: absolute; left: -9999px; top: 0;
  background: var(--brass-500); color: var(--green-900); padding: .75rem 1rem; z-index: 100;
}
.skip-link:focus { left: 1rem; top: 1rem; }

:focus-visible { outline: 2px solid var(--brass-500); outline-offset: 3px; }

.container { width: 100%; max-width: var(--max-width); margin: 0 auto; padding: 0 var(--gutter); }
.narrow { max-width: 760px; }

/* ---------- Utility type ---------- */
.eyebrow {
  display: inline-block;
  font-family: var(--font-sans);
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--brass-500);
  margin-bottom: 1rem;
}
.lead { font-size: 1.2rem; color: var(--ink-600); }
.rule { width: 56px; height: 1px; background: var(--brass-500); border: 0; margin: 1.5rem 0; }
.center { text-align: center; }
.center .rule { margin-left: auto; margin-right: auto; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  font-family: var(--font-sans);
  font-size: .8125rem;
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 1rem 1.9rem;
  border: 1px solid transparent;
  border-radius: var(--radius);
  cursor: pointer;
  transition: background-color .2s, color .2s, border-color .2s;
}
.btn-primary { background: var(--brass-500); color: var(--green-900); }
.btn-primary:hover { background: var(--brass-400); color: var(--green-900); }
.btn-outline { border-color: var(--brass-400); color: var(--ivory-50); }
.btn-outline:hover { background: var(--brass-500); color: var(--green-900); }
.btn-dark { background: var(--green-800); color: var(--ivory-50); }
.btn-dark:hover { background: var(--green-900); color: var(--ivory-50); }
.btn-group { display: flex; flex-wrap: wrap; gap: 1rem; }

/* ---------- Header / nav ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: var(--green-900);
  border-bottom: 1px solid rgba(176, 141, 87, .25);
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  min-height: 84px; gap: 1.5rem;
}
.brand { display: flex; align-items: center; gap: .85rem; text-decoration: none; color: var(--ivory-50); }
.brand:hover { color: var(--ivory-50); }
.brand-logo { height: 66px; width: auto; }
.brand-logo-stacked { width: 210px; height: auto; }
@media (max-width: 920px) { .brand-logo { height: 54px; } }

.nav-toggle {
  display: none;
  background: none; border: 1px solid rgba(220, 196, 156, .4); color: var(--ivory-50);
  padding: .55rem .7rem; border-radius: var(--radius); cursor: pointer;
}
.nav-toggle span { display: block; width: 22px; height: 1px; background: currentColor; margin: 5px 0; }

.site-nav ul { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: 2rem; }
.site-nav li { margin: 0; position: relative; }
.site-nav a {
  color: var(--ivory-100);
  text-decoration: none;
  font-size: .8125rem;
  font-weight: 500;
  letter-spacing: .14em;
  text-transform: uppercase;
  padding: .5rem 0;
  border-bottom: 1px solid transparent;
  transition: color .2s, border-color .2s;
}
.site-nav a:hover, .site-nav a[aria-current="page"] { color: var(--brass-300); border-bottom-color: var(--brass-500); }
.site-nav .nav-cta {
  border: 1px solid var(--brass-500); padding: .65rem 1.1rem; color: var(--brass-300);
}
.site-nav .nav-cta:hover { background: var(--brass-500); color: var(--green-900); }

/* Dropdown */
.has-dropdown > .dropdown {
  position: absolute; top: calc(100% + 14px); left: -1.25rem;
  min-width: 230px;
  background: var(--green-900);
  border: 1px solid rgba(176, 141, 87, .3);
  padding: .75rem 0;
  display: block;
  opacity: 0; visibility: hidden; transform: translateY(6px);
  transition: opacity .2s, transform .2s, visibility .2s;
}
.has-dropdown:hover > .dropdown,
.has-dropdown:focus-within > .dropdown { opacity: 1; visibility: visible; transform: none; }
.dropdown li { display: block; }
.dropdown a { display: block; padding: .6rem 1.25rem; border: 0; letter-spacing: .1em; }
.dropdown a:hover { background: var(--green-800); }

@media (max-width: 920px) {
  .nav-toggle { display: block; }
  .site-nav {
    position: absolute; top: 100%; left: 0; right: 0;
    background: var(--green-900);
    border-bottom: 1px solid rgba(176, 141, 87, .25);
    display: none;
  }
  .site-nav.open { display: block; }
  .site-nav ul { flex-direction: column; align-items: stretch; gap: 0; padding: .5rem var(--gutter) 1.5rem; }
  .site-nav a { display: block; padding: .9rem 0; border-bottom: 1px solid rgba(255,255,255,.06); }
  .has-dropdown > .dropdown {
    position: static; opacity: 1; visibility: visible; transform: none;
    border: 0; padding: 0 0 0 1rem; min-width: 0; background: transparent;
  }
  .site-nav .nav-cta { margin-top: 1rem; text-align: center; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  background:
    radial-gradient(ellipse at 80% 20%, rgba(36, 92, 66, .55), transparent 60%),
    linear-gradient(160deg, var(--green-800) 0%, var(--green-900) 70%);
  color: var(--ivory-100);
  padding: clamp(5rem, 12vw, 9rem) 0 clamp(5rem, 10vw, 8rem);
  overflow: hidden;
}
.hero::after {
  /* faint acorn-diamond watermark */
  content: "";
  position: absolute; right: -7rem; bottom: -9rem;
  width: clamp(22rem, 40vw, 34rem); aspect-ratio: 1;
  background: url("../images/symbol.svg") center / contain no-repeat;
  opacity: .06;
  pointer-events: none;
}
.hero .container { position: relative; z-index: 1; }
.hero .display {
  font-family: var(--font-serif); font-weight: 500; line-height: 1.12; letter-spacing: -.005em;
  font-size: clamp(2.5rem, 5.5vw, 4.25rem);
  color: var(--ivory-50); max-width: 16ch; margin: 0 0 .6em;
}
.hero .display em { font-style: italic; color: var(--brass-300); }
.hero .lead { color: rgba(244, 240, 230, .82); max-width: 54ch; margin-bottom: 2.5rem; }

.page-hero {
  background: linear-gradient(160deg, var(--green-800), var(--green-900));
  color: var(--ivory-100);
  padding: clamp(4rem, 9vw, 6.5rem) 0 clamp(3.5rem, 7vw, 5rem);
  border-bottom: 1px solid rgba(176, 141, 87, .25);
}
.page-hero h1 { color: var(--ivory-50); max-width: 20ch; }
.page-hero h1.eyebrow { color: var(--brass-400); max-width: none; }
.page-hero .lead { color: rgba(244, 240, 230, .8); max-width: 60ch; margin: 0; }
.breadcrumb { font-size: .8125rem; letter-spacing: .08em; color: var(--brass-300); margin-bottom: 1.25rem; }
.breadcrumb a { color: var(--brass-300); text-decoration: none; }
.breadcrumb a:hover { color: var(--ivory-50); }

/* ---------- Sections ---------- */
.section { padding: clamp(4rem, 9vw, 7rem) 0; }
.section-alt { background: var(--ivory-100); }
.section-dark { background: var(--green-800); color: var(--ivory-100); }
.section-dark h2, .section-dark h3 { color: var(--ivory-50); }
.section-dark .lead { color: rgba(244, 240, 230, .78); }
.section-head { max-width: 680px; margin-bottom: 3.5rem; }
.section-head.center { margin-left: auto; margin-right: auto; }

/* ---------- Grids & cards ---------- */
.grid { display: grid; gap: 2rem; }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 900px) { .grid-3, .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; } }

.card {
  background: #fff;
  border: 1px solid var(--ivory-200);
  border-top: 2px solid var(--brass-500);
  padding: 2.25rem 2rem;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  display: flex; flex-direction: column;
}
.card p { color: var(--ink-600); }
.card .card-link {
  margin-top: auto;
  font-size: .8125rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase;
  text-decoration: none; color: var(--green-700);
}
.card .card-link::after { content: " \2192"; color: var(--brass-500); }
.card-icon { width: 44px; height: 44px; color: var(--brass-500); margin-bottom: 1.5rem; }

.practice-card { padding: 2.75rem 2.25rem; }
.practice-card .num {
  font-family: var(--font-serif); font-size: 1rem; color: var(--brass-500);
  letter-spacing: .1em; margin-bottom: 1rem;
}

.feature { padding-top: 1.5rem; border-top: 1px solid var(--ivory-200); }
.section-dark .feature { border-top-color: rgba(176, 141, 87, .35); }
.feature h4 { font-family: var(--font-serif); font-size: 1.4rem; font-weight: 500; margin-bottom: .5rem; }
.section-dark .feature h4 { color: var(--brass-300); }
.feature p { font-size: .975rem; color: var(--ink-600); margin: 0; }
.section-dark .feature p { color: rgba(244, 240, 230, .75); }

/* Split layout */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2.5rem, 6vw, 5rem); align-items: center; }
.split.top { align-items: start; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } }

/* Portrait placeholder */
.portrait {
  aspect-ratio: 4 / 5;
  background:
    linear-gradient(160deg, var(--green-700), var(--green-900));
  border: 1px solid var(--brass-500);
  outline: 1px solid var(--brass-500); outline-offset: 12px;
  display: flex; align-items: center; justify-content: center;
  color: rgba(220, 196, 156, .5);
  font-family: var(--font-serif); font-size: 8rem;
  margin: 12px;
}
.portrait img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; }
.portrait .portrait-mark { width: 42%; height: auto; object-fit: contain; opacity: .55; }

/* Pull quote */
.quote {
  font-family: var(--font-serif);
  font-size: clamp(1.6rem, 3vw, 2.25rem);
  font-style: italic;
  line-height: 1.35;
  color: var(--green-800);
  border-left: 2px solid var(--brass-500);
  padding-left: 1.75rem;
  margin: 2rem 0;
}
.section-dark .quote { color: var(--ivory-50); }

/* Check list */
.check-list { list-style: none; padding: 0; }
.check-list li { position: relative; padding-left: 1.9rem; margin-bottom: .85rem; }
.check-list li::before {
  content: ""; position: absolute; left: 0; top: .62em;
  width: 12px; height: 1px; background: var(--brass-500);
}
.check-list li::after {
  content: ""; position: absolute; left: 14px; top: calc(.62em - 3px);
  width: 6px; height: 6px; border: 1px solid var(--brass-500); transform: rotate(45deg);
}

/* Who-needs list with emphasis */
.persona-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr)); gap: 1.25rem; }
.persona {
  background: #fff; border: 1px solid var(--ivory-200); padding: 1.5rem 1.5rem 1.25rem;
  border-left: 2px solid var(--brass-500);
}
.persona h4 { font-family: var(--font-serif); font-size: 1.3rem; font-weight: 600; margin-bottom: .35rem; color: var(--green-800); }
.persona p { font-size: .95rem; color: var(--ink-600); margin: 0; }

/* ---------- Comparison table ---------- */
.table-wrap { overflow-x: auto; border: 1px solid var(--ivory-200); background: #fff; box-shadow: var(--shadow); }
.compare { width: 100%; border-collapse: collapse; font-size: .95rem; min-width: 640px; }
.compare th, .compare td { padding: 1rem 1.25rem; text-align: left; vertical-align: top; border-bottom: 1px solid var(--ivory-200); }
.compare thead th {
  background: var(--green-800); color: var(--ivory-50);
  font-family: var(--font-serif); font-size: 1.2rem; font-weight: 500; letter-spacing: .02em;
}
.compare tbody th { font-weight: 600; color: var(--green-800); background: var(--ivory-100); width: 22%; }
.compare tbody tr:last-child th, .compare tbody tr:last-child td { border-bottom: 0; }

/* ---------- FAQ (details/summary) ---------- */
.faq { border-top: 1px solid var(--ivory-200); }
.faq details { border-bottom: 1px solid var(--ivory-200); }
.faq summary {
  list-style: none; cursor: pointer;
  padding: 1.4rem 2.5rem 1.4rem 0; position: relative;
  font-family: var(--font-serif); font-size: 1.35rem; font-weight: 500; color: var(--green-900);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; position: absolute; right: .25rem; top: 50%; transform: translateY(-50%);
  font-family: var(--font-sans); font-weight: 300; font-size: 1.6rem; color: var(--brass-500);
  transition: transform .2s;
}
.faq details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq .answer { padding: 0 0 1.5rem; color: var(--ink-600); max-width: 72ch; }

/* ---------- Sub-nav for practice pages ---------- */
.subnav { background: #fff; border-bottom: 1px solid var(--ivory-200); }
.subnav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 2rem; overflow-x: auto; }
.subnav li { margin: 0; flex-shrink: 0; }
.subnav a {
  display: block; padding: 1.1rem 0;
  font-size: .78rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase;
  color: var(--ink-600); text-decoration: none; border-bottom: 2px solid transparent;
}
.subnav a:hover { color: var(--green-800); border-bottom-color: var(--brass-500); }

/* Anchored sections shouldn't hide under sticky header */
[id] { scroll-margin-top: 100px; }

/* ---------- CTA band ---------- */
.cta-band {
  background: linear-gradient(160deg, var(--green-800), var(--green-900));
  color: var(--ivory-100);
  padding: clamp(4rem, 8vw, 6rem) 0;
  text-align: center;
  border-top: 1px solid rgba(176, 141, 87, .3);
}
.cta-band h2 { color: var(--ivory-50); max-width: 22ch; margin-left: auto; margin-right: auto; }
.cta-band p { color: rgba(244, 240, 230, .8); max-width: 56ch; margin: 0 auto 2.25rem; }
.cta-band .btn-group { justify-content: center; }

/* ---------- Contact ---------- */
.contact-block { margin-bottom: 2rem; }
.contact-block .label {
  font-size: .72rem; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; color: var(--brass-500);
  display: block; margin-bottom: .35rem;
}
.contact-block .value { font-family: var(--font-serif); font-size: 1.5rem; color: var(--green-900); line-height: 1.35; }
.contact-block .value a { color: var(--green-900); text-decoration: none; border-bottom: 1px solid var(--brass-300); }
.contact-block .value a:hover { border-bottom-color: var(--brass-500); }

.form { background: #fff; border: 1px solid var(--ivory-200); border-top: 2px solid var(--brass-500); padding: clamp(1.75rem, 4vw, 2.75rem); box-shadow: var(--shadow); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; }
@media (max-width: 560px) { .form-row { grid-template-columns: 1fr; } }
.field { margin-bottom: 1.25rem; }
.field label { display: block; font-size: .78rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-600); margin-bottom: .45rem; }
.field input, .field select, .field textarea {
  width: 100%;
  font: inherit; font-size: 1rem; color: var(--ink-900);
  background: var(--ivory-50);
  border: 1px solid var(--ivory-200);
  border-radius: var(--radius);
  padding: .85rem 1rem;
  transition: border-color .2s, background-color .2s;
}
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--brass-500); background: #fff; }
.field textarea { min-height: 150px; resize: vertical; }
.form-note { font-size: .82rem; color: var(--ink-400); margin: 1rem 0 0; }

/* ---------- Notice / disclaimer box ---------- */
.notice {
  background: var(--ivory-100); border-left: 2px solid var(--brass-500);
  padding: 1.25rem 1.5rem; font-size: .92rem; color: var(--ink-600);
}

/* ---------- Footer ---------- */
.site-footer { background: var(--green-900); color: rgba(244, 240, 230, .7); font-size: .92rem; }
.footer-main { padding: 4.5rem 0 3rem; display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 2.5rem; }
@media (max-width: 900px) { .footer-main { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer-main { grid-template-columns: 1fr; } }
.site-footer .footer-heading {
  font-family: var(--font-sans); font-size: .72rem; font-weight: 600; letter-spacing: .22em; text-transform: uppercase;
  color: var(--brass-400); margin: 0 0 1.1rem;
}
.site-footer address { font-style: normal; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: .55rem; }
.site-footer a { color: rgba(244, 240, 230, .82); text-decoration: none; }
.site-footer a:hover { color: var(--brass-300); }
.footer-tagline { font-family: var(--font-serif); font-style: italic; font-size: 1.2rem; color: var(--ivory-100); margin-top: 1.25rem; max-width: 26ch; }
.footer-legal {
  border-top: 1px solid rgba(176, 141, 87, .2);
  padding: 1.75rem 0 2.25rem;
  font-size: .8rem; line-height: 1.6; color: rgba(244, 240, 230, .5);
}
.footer-legal p { margin: 0 0 .6rem; }
.footer-legal .legal-links { display: flex; flex-wrap: wrap; gap: 1.5rem; margin-top: 1rem; }

/* Standalone arrow link */
.text-link, .card .card-link {
  font-size: .8125rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase;
  text-decoration: none; color: var(--green-700);
}
.text-link::after { content: " \2192"; color: var(--brass-500); }
.text-link:hover { color: var(--green-900); }

/* ---------- Utilities ---------- */
.mt-md { margin-top: 2rem; }
.mt-lg { margin-top: 3rem; }
.mb-xl { margin-bottom: 5rem; }
.m-0 { margin: 0; }
.quote-plain { border: 0; padding: 0; }
.persona-stack { grid-template-columns: 1fr; }

/* ---------- Document downloads ---------- */
.doc-list { display: grid; gap: 1rem; align-content: start; }
.doc-card {
  display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 1.25rem;
  background: var(--ivory-50); color: var(--green-900); text-decoration: none;
  border-left: 2px solid var(--brass-500); padding: 1.35rem 1.5rem;
  transition: background-color .2s, transform .2s;
}
.doc-card:hover { background: #fff; color: var(--green-900); transform: translateX(3px); }
.doc-icon { width: 30px; height: 38px; color: var(--brass-500); }
.doc-text { display: flex; flex-direction: column; min-width: 0; }
.doc-title { font-family: var(--font-serif); font-size: 1.4rem; font-weight: 600; line-height: 1.2; }
.doc-meta { font-size: .8rem; color: var(--ink-600); margin-top: .2rem; }
.doc-action { font-size: .75rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--green-700); }
.doc-action::after { content: " \2193"; color: var(--brass-500); }
@media (max-width: 480px) { .doc-card { grid-template-columns: auto 1fr; } .doc-action { grid-column: 2; } }
.card .card-tag { font-family: var(--font-serif); font-style: italic; font-size: 1.2rem; color: var(--brass-500); margin: -.5rem 0 1rem; }
.card .check-list { margin-bottom: 0; }
