/* Costa Cálida Legal — shared styles for every page */

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

:root {
  --ivory: #F6F1E7;
  --ivory-deep: #EEE6D3;
  --navy: #1C2B3A;
  --navy-deep: #111B26;
  --gold: #7E6023;          /* text/lines on light backgrounds (4.5:1+) */
  --gold-bright: #B8972E;   /* accents on navy backgrounds */
  --text: #1C2B3A;
  --text-mid: #52503F;
  --text-light: #6E6A54;
  --border: #DDD3BE;
  --bg: #FCFAF5;
  --serif: 'Playfair Display', Georgia, serif;
  --body: 'Lora', Georgia, serif;
  --header-h: 76px;
}

html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }

body {
  font-family: var(--body);
  color: var(--text);
  background: var(--bg);
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

body.nav-open { overflow: hidden; }

img { max-width: 100%; display: block; }
a { color: var(--gold); }
.crest { display: inline-block; vertical-align: middle; flex-shrink: 0; }

:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }
.why :focus-visible, .hero-card :focus-visible, .site-footer :focus-visible { outline-color: var(--gold-bright); }

.skip-link {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 300;
  background: var(--navy);
  color: var(--ivory);
  padding: 0.75rem 1.25rem;
  text-decoration: none;
  transition: top 0.15s;
}
.skip-link:focus { top: 0.75rem; }

/* ---------- HEADER / NAV ---------- */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
  padding: 0 3rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-h);
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  font-family: var(--serif);
  font-size: 2rem;
  font-weight: 500;
  color: var(--navy);
  text-decoration: none;
  letter-spacing: 0.04em;
  white-space: nowrap;
}

.nav-logo .crest { color: var(--gold); }
.nav-logo em { font-style: normal; color: var(--gold); }

.site-nav { height: 100%; }

.nav-links {
  display: flex;
  align-items: stretch;
  gap: 2rem;
  height: 100%;
  list-style: none;
}

.nav-links > li { display: flex; align-items: center; position: relative; }

.nav-links a {
  color: var(--text-mid);
  text-decoration: none;
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  transition: color 0.2s;
}

.nav-links > li > a { padding: 0.45rem 0; border-bottom: 2px solid transparent; white-space: nowrap; }
.nav-links a:hover { color: var(--navy); }
.nav-links > li > a[aria-current="page"],
.nav-links > li.is-current > a { color: var(--navy); border-bottom-color: var(--gold); }

.nav-links > li > a.nav-cta {
  background: var(--navy);
  color: var(--ivory);
  padding: 0.65rem 1.4rem;
  border: 1px solid var(--navy);
}
.nav-links > li > a.nav-cta:hover,
.nav-links > li > a.nav-cta[aria-current="page"] { background: var(--navy-deep); color: var(--ivory); border-color: var(--navy-deep); }

/* dropdown */
.sub-toggle {
  background: none;
  border: none;
  cursor: pointer;
  width: 1.75rem;
  height: 1.75rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--text-mid);
}

.sub-toggle::before {
  content: '';
  width: 0.42rem;
  height: 0.42rem;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: rotate(45deg) translate(-1px, -1px);
  transition: transform 0.2s;
}

.has-sub.open .sub-toggle::before { transform: rotate(-135deg) translate(-1px, -1px); }

.sub {
  display: none;
  position: absolute;
  top: 100%;
  left: -1.25rem;
  min-width: 310px;
  list-style: none;
  background: var(--bg);
  border: 1px solid var(--border);
  border-top: 2px solid var(--gold);
  box-shadow: 0 14px 30px rgba(17, 27, 38, 0.12);
  padding: 0.5rem 0;
}

.has-sub:hover > .sub,
.has-sub:focus-within > .sub,
.has-sub.open > .sub { display: block; }

.sub a {
  display: block;
  padding: 0.7rem 1.25rem;
  font-size: 0.88rem;
  letter-spacing: 0.02em;
  text-transform: none;
  border-bottom: none;
}

.sub a:hover { background: var(--ivory); }
.sub a[aria-current="page"] { color: var(--navy); background: var(--ivory); font-weight: 600; }
.sub .sub-all { border-bottom: 1px solid var(--border); margin-bottom: 0.35rem; font-weight: 600; color: var(--navy); }

/* hamburger */
.nav-toggle {
  display: none;
  width: 46px;
  height: 46px;
  background: none;
  border: 1px solid var(--border);
  cursor: pointer;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
}

.nav-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--navy);
  transition: transform 0.2s, opacity 0.2s;
}

.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- COMMON ---------- */
main { display: block; }
section { padding: 6rem 3rem; }
.container { max-width: 1200px; margin: 0 auto; }

.section-eyebrow {
  font-size: 0.76rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.section-eyebrow::before { content: ''; display: block; width: 1.5rem; height: 1px; background: var(--gold); }

.section-title {
  font-family: var(--serif);
  font-size: clamp(1.8rem, 2.5vw, 2.6rem);
  font-weight: 500;
  color: var(--navy);
  line-height: 1.25;
  margin-bottom: 1rem;
}

.section-title em { font-style: italic; color: var(--gold); }
.section-sub { font-size: 0.98rem; color: var(--text-mid); max-width: 560px; line-height: 1.85; }

.gold-line { width: 3rem; height: 1px; background: var(--gold); margin: 2rem 0; position: relative; }
.gold-line::before, .gold-line::after {
  content: '';
  position: absolute;
  width: 4px; height: 4px;
  background: var(--gold);
  transform: rotate(45deg) translateY(-50%);
  top: 50%;
}
.gold-line::before { left: -2px; }
.gold-line::after { right: -2px; }

.btn-primary, .btn-outline {
  display: inline-block;
  padding: 0.9rem 2.2rem;
  font-family: var(--body);
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none;
  border: 1px solid var(--navy);
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
  text-align: center;
}

.btn-primary { background: var(--navy); color: var(--ivory); }
.btn-primary:hover { background: var(--navy-deep); }
.btn-outline { background: none; color: var(--navy); }
.btn-outline:hover { background: var(--navy); color: var(--ivory); }
.btn-row { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem; }

.text-link { font-size: 0.85rem; font-weight: 600; letter-spacing: 0.04em; color: var(--gold); text-decoration: none; border-bottom: 1px solid currentColor; }
.text-link:hover { color: var(--navy); }

/* ---------- HOME: HERO ---------- */
.hero { padding: calc(var(--header-h) + 3.5rem) 3rem 4.5rem; background: var(--bg); }

.hero-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: center;
}

.hero-eyebrow {
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.hero-eyebrow::before { content: ''; display: block; width: 2rem; height: 1px; background: var(--gold); }

.hero h1 {
  font-family: var(--serif);
  font-size: clamp(2.2rem, 3.5vw, 3.4rem);
  font-weight: 500;
  color: var(--navy);
  line-height: 1.2;
  margin-bottom: 1.5rem;
}

.hero h1 em { font-style: italic; color: var(--gold); }
.hero-desc { font-size: 1rem; color: var(--text-mid); line-height: 1.85; margin-bottom: 2rem; max-width: 520px; }

.hero-chips { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-bottom: 2rem; list-style: none; }

.hero-chips a {
  display: block;
  font-size: 0.76rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--gold);
  text-decoration: none;
  padding: 0.35rem 0.85rem;
  border: 1px solid rgba(126, 96, 35, 0.35);
  transition: background 0.2s, color 0.2s;
}

.hero-chips a:hover { background: var(--navy); color: var(--ivory); border-color: var(--navy); }
.hero-note { font-size: 0.82rem; font-style: italic; color: var(--text-light); margin-top: 1rem; }

.hero-visual { display: flex; flex-direction: column; }

.hero-photo { position: relative; height: 360px; }
.hero-photo img { width: 100%; height: 100%; object-fit: cover; }
.hero-photo::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(28, 43, 58, 0.05) 0%, rgba(28, 43, 58, 0.4) 100%);
}

.hero-card { background: var(--navy); padding: 2.4rem 2.6rem; position: relative; border: 1px solid var(--navy); }

.hero-card::before, .hero-card::after { content: ''; position: absolute; border: 1px solid rgba(184, 151, 46, 0.45); pointer-events: none; }
.hero-card::before { top: 10px; left: 10px; right: 10px; bottom: 10px; }
.hero-card::after { top: 16px; left: 16px; right: 16px; bottom: 16px; border-color: rgba(184, 151, 46, 0.22); }

.hero-card-title { font-family: var(--serif); font-size: 1rem; font-style: italic; color: var(--gold-bright); text-align: center; margin-bottom: 1.25rem; }

.trust-item { display: flex; align-items: flex-start; gap: 1rem; padding: 1rem 0; border-bottom: 1px solid rgba(184, 151, 46, 0.18); }
.trust-item:last-of-type { border-bottom: none; }

.trust-icon {
  width: 30px; height: 30px;
  border: 1px solid var(--gold-bright);
  display: flex; align-items: center; justify-content: center;
  color: var(--gold-bright);
  font-size: 0.8rem;
  flex-shrink: 0;
}

.trust-text strong { display: block; font-size: 0.9rem; font-weight: 600; color: var(--ivory); margin-bottom: 0.15rem; }
.trust-text span { font-size: 0.82rem; color: rgba(246, 241, 231, 0.75); line-height: 1.6; display: block; }

.hero-card-cta {
  display: block;
  margin-top: 1.25rem;
  background: var(--gold-bright);
  color: var(--navy-deep);
  text-align: center;
  text-decoration: none;
  padding: 0.95rem 1rem;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  transition: background 0.2s;
}
.hero-card-cta:hover { background: #cfae44; }

/* ---------- HOME: SERVICES ---------- */
.services { background: var(--ivory); }
.services-head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 1.5rem; margin-bottom: 3rem; }

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
}

.service-card { background: var(--bg); padding: 2.4rem; display: flex; flex-direction: column; transition: background 0.2s; }
.service-crest { margin-bottom: 1.4rem; color: var(--gold); transition: color 0.2s; }
.service-title { font-family: var(--serif); font-size: 1.25rem; font-weight: 500; color: var(--navy); margin-bottom: 0.7rem; line-height: 1.3; transition: color 0.2s; }
.service-desc { font-size: 0.9rem; color: var(--text-mid); line-height: 1.8; margin-bottom: 1.5rem; transition: color 0.2s; }
.service-links { list-style: none; margin-top: auto; border-top: 1px solid var(--border); }
.service-links li { border-bottom: 1px solid var(--border); }

.service-links a {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.75rem 0;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--navy);
  text-decoration: none;
  transition: color 0.2s;
}

.service-links a::after { content: '→'; color: var(--gold); transition: color 0.2s, transform 0.2s; }
.service-links a:hover::after { transform: translateX(3px); }

.service-card:hover, .service-card:focus-within { background: var(--navy); }
.service-card:hover .service-crest, .service-card:focus-within .service-crest { color: var(--gold-bright); }
.service-card:hover .service-title, .service-card:focus-within .service-title { color: var(--ivory); }
.service-card:hover .service-desc, .service-card:focus-within .service-desc { color: rgba(246, 241, 231, 0.8); }
.service-card:hover .service-links, .service-card:focus-within .service-links,
.service-card:hover .service-links li, .service-card:focus-within .service-links li { border-color: rgba(184, 151, 46, 0.3); }
.service-card:hover .service-links a, .service-card:focus-within .service-links a { color: var(--ivory); }
.service-card:hover .service-links a::after, .service-card:focus-within .service-links a::after { color: var(--gold-bright); }
.service-card:hover :focus-visible, .service-card:focus-within :focus-visible { outline-color: var(--gold-bright); }

/* ---------- HOME: PROCESS ---------- */
.process { background: var(--bg); }
.process-grid { display: grid; grid-template-columns: repeat(4, 1fr); margin-top: 3rem; border: 1px solid var(--border); background: var(--ivory); }
.process-step { padding: 2.2rem; border-right: 1px solid var(--border); }
.process-step:last-child { border-right: none; }
.step-num { font-family: var(--serif); font-size: 2.6rem; font-weight: 500; font-style: italic; color: var(--gold); opacity: 0.45; line-height: 1; margin-bottom: 1.2rem; }
.step-title { font-family: var(--serif); font-size: 1.05rem; font-weight: 500; color: var(--navy); margin-bottom: 0.5rem; }
.step-desc { font-size: 0.86rem; color: var(--text-mid); line-height: 1.75; }
.section-foot { margin-top: 2rem; }

/* ---------- HOME: WHY ---------- */
.why { background: var(--navy); }
.why .section-title { color: var(--ivory); }
.why .section-title em { color: var(--gold-bright); }
.why .section-eyebrow { color: var(--gold-bright); }
.why .section-eyebrow::before { background: var(--gold-bright); }
.why-list { display: grid; grid-template-columns: 1fr 1fr; column-gap: 5rem; border-top: 1px solid rgba(184, 151, 46, 0.18); margin-top: 3rem; list-style: none; }
.why-item { padding: 1.75rem 0; border-bottom: 1px solid rgba(184, 151, 46, 0.18); display: grid; grid-template-columns: 1.4rem 1fr; gap: 1.25rem; align-items: start; }
.why-mark { width: 7px; height: 7px; background: var(--gold-bright); transform: rotate(45deg); margin-top: 0.6rem; }
.why-title { font-family: var(--serif); font-size: 1.12rem; font-weight: 500; color: var(--ivory); margin-bottom: 0.4rem; }
.why-text { font-size: 0.9rem; color: rgba(246, 241, 231, 0.8); line-height: 1.8; }

/* ---------- HOME: ABOUT TEASER ---------- */
.about { background: var(--ivory); }
.about-inner { display: grid; grid-template-columns: 1fr 1.1fr; gap: 5rem; align-items: center; }

.about-panel { background: var(--navy); padding: 3.5rem 3rem; position: relative; min-height: 340px; display: flex; flex-direction: column; justify-content: center; gap: 1.5rem; }
.about-panel::before { content: ''; position: absolute; inset: 12px; border: 1px solid rgba(184, 151, 46, 0.4); pointer-events: none; }
.about-panel .crest { color: var(--gold-bright); }
.about-quote { font-family: var(--serif); font-size: 1.3rem; font-style: italic; color: var(--ivory); line-height: 1.6; position: relative; }

.about-content p { color: var(--text-mid); line-height: 1.9; margin-bottom: 1.25rem; font-size: 0.98rem; }
.about-certs { margin: 1.75rem 0; border-top: 1px solid var(--border); padding-top: 1.5rem; display: flex; flex-direction: column; gap: 0.65rem; list-style: none; }
.cert-item { display: flex; align-items: center; gap: 0.75rem; font-size: 0.88rem; color: var(--text-mid); }
.cert-dot { width: 5px; height: 5px; background: var(--gold); transform: rotate(45deg); flex-shrink: 0; }

/* ---------- CTA BAND ---------- */
.cta-band { background: var(--bg); text-align: center; border-top: 1px solid var(--border); }
.cta-band .section-eyebrow { justify-content: center; }
.cta-band .section-eyebrow::before { display: none; }
.cta-band .section-sub { margin: 0 auto 2rem; }
.cta-band .btn-row { justify-content: center; }

/* ---------- FOOTER ---------- */
.site-footer { background: var(--navy-deep); border-top: 2px solid var(--gold-bright); padding: 4rem 3rem 2rem; color: rgba(246, 241, 231, 0.75); }
.footer-grid { max-width: 1200px; margin: 0 auto; display: grid; grid-template-columns: 1.3fr 1fr 1fr 1fr; gap: 3rem; }
.footer-logo { display: inline-flex; align-items: center; gap: 0.6rem; font-family: var(--serif); font-size: 1.2rem; color: var(--ivory); text-decoration: none; margin-bottom: 1rem; }
.footer-logo .crest { color: var(--gold-bright); }
.footer-logo em { font-style: normal; color: var(--gold-bright); }
.footer-brand p { font-size: 0.85rem; line-height: 1.8; }
.footer-h { font-family: var(--serif); font-size: 0.95rem; font-weight: 500; color: var(--ivory); margin-bottom: 1rem; }
.footer-list { list-style: none; display: flex; flex-direction: column; gap: 0.55rem; }
.footer-list a, .footer-btn { font-family: var(--body); font-size: 0.86rem; color: rgba(246, 241, 231, 0.75); text-decoration: none; background: none; border: none; padding: 0; cursor: pointer; text-align: left; transition: color 0.2s; }
.footer-list a:hover, .footer-btn:hover { color: var(--gold-bright); text-decoration: underline; text-underline-offset: 3px; }
.footer-bottom { max-width: 1200px; margin: 3rem auto 0; padding-top: 1.5rem; border-top: 1px solid rgba(246, 241, 231, 0.14); font-size: 0.78rem; color: rgba(246, 241, 231, 0.65); }

/* ---------- INNER PAGES ---------- */
.page-head { background: var(--ivory); padding: calc(var(--header-h) + 3rem) 3rem 3rem; border-bottom: 1px solid var(--border); }
.page-head h1 { font-family: var(--serif); font-size: clamp(2rem, 3.4vw, 3rem); font-weight: 500; color: var(--navy); line-height: 1.2; max-width: 820px; margin-bottom: 1rem; }
.lead { font-size: 1.08rem; color: var(--text-mid); line-height: 1.8; max-width: 720px; }

.breadcrumb ol { display: flex; flex-wrap: wrap; gap: 0.4rem; list-style: none; font-size: 0.8rem; color: var(--text-light); margin-bottom: 1.5rem; }
.breadcrumb li + li::before { content: '/'; margin-right: 0.4rem; }
.breadcrumb a { color: var(--text-mid); }

.page-body { padding: 4rem 3rem 5rem; }
.page-grid { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 4rem; align-items: start; }

.prose { max-width: 740px; }
.prose h2 { font-family: var(--serif); font-size: 1.5rem; font-weight: 500; color: var(--navy); margin: 2.5rem 0 0.9rem; line-height: 1.3; }
.prose h2:first-child { margin-top: 0; }
.prose p { color: var(--text-mid); line-height: 1.9; margin-bottom: 1.1rem; }
.prose strong { color: var(--navy); }
.prose a { color: var(--gold); text-underline-offset: 3px; }

.note-box { border-left: 3px solid var(--gold); background: var(--ivory); padding: 1rem 1.25rem; font-size: 0.9rem !important; line-height: 1.7 !important; margin-bottom: 2rem !important; }

.steps { list-style: none; counter-reset: step; margin: 0 0 1.25rem; }
.steps li { counter-increment: step; position: relative; padding: 0 0 1.1rem 3rem; color: var(--text-mid); line-height: 1.8; }
.steps li::before { content: counter(step); position: absolute; left: 0; top: 0; width: 2rem; height: 2rem; border: 1px solid var(--gold); color: var(--gold); display: flex; align-items: center; justify-content: center; font-family: var(--serif); font-size: 0.95rem; }

.checklist { list-style: none; margin: 0 0 1.25rem; }
.checklist li { position: relative; padding-left: 1.5rem; margin-bottom: 0.55rem; color: var(--text-mid); line-height: 1.8; }
.checklist li::before { content: ''; position: absolute; left: 0.1rem; top: 0.72rem; width: 5px; height: 5px; background: var(--gold); transform: rotate(45deg); }

.faq { margin: 0 0 1.5rem; border-top: 1px solid var(--border); }
.faq details { border-bottom: 1px solid var(--border); }
.faq summary { cursor: pointer; list-style: none; padding: 1rem 2.5rem 1rem 0; font-family: var(--serif); font-size: 1.05rem; color: var(--navy); position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; position: absolute; right: 0.5rem; top: 0.8rem; font-size: 1.3rem; color: var(--gold); }
.faq details[open] summary::after { content: '\2212'; }
.faq details p { padding: 0 0 1.1rem; margin: 0; }

.article-cta { margin-top: 2.5rem; padding: 1.75rem 2rem; background: var(--ivory); border: 1px solid var(--border); border-left: 3px solid var(--gold); display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem; }
.article-cta p { margin: 0; color: var(--navy); font-family: var(--serif); font-size: 1.1rem; }
.prose .article-cta .btn-primary { color: var(--ivory); text-decoration: none; }

.aside { position: sticky; top: calc(var(--header-h) + 1.5rem); display: flex; flex-direction: column; gap: 1.5rem; }
.aside-card { background: var(--navy); color: rgba(246, 241, 231, 0.85); padding: 2rem; position: relative; }
.aside-card::before { content: ''; position: absolute; inset: 8px; border: 1px solid rgba(184, 151, 46, 0.4); pointer-events: none; }
.aside-title { font-family: var(--serif); font-size: 1.1rem; color: var(--navy); margin-bottom: 0.75rem; }
.aside-card .aside-title { color: var(--ivory); position: relative; }
.aside-card p { font-size: 0.88rem; line-height: 1.7; margin-bottom: 1.1rem; position: relative; }
.aside-cta { display: block; position: relative; background: var(--gold-bright); color: var(--navy-deep); text-align: center; text-decoration: none; padding: 0.9rem 1rem; font-size: 0.78rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; transition: background 0.2s; }
.aside-cta:hover { background: #cfae44; }
.aside-card .aside-contact { margin: 1.1rem 0 0; font-size: 0.84rem; }
.aside-contact a { color: var(--ivory); }
.aside-card :focus-visible { outline-color: var(--gold-bright); }
.aside-links { border: 1px solid var(--border); padding: 1.5rem 1.75rem; background: var(--bg); }
.aside-links ul { list-style: none; }
.aside-links li { border-bottom: 1px solid var(--border); }
.aside-links li:last-child { border-bottom: none; }
.aside-links a { display: block; padding: 0.6rem 0; font-size: 0.9rem; color: var(--navy); text-decoration: none; }
.aside-links a:hover { color: var(--gold); text-decoration: underline; text-underline-offset: 3px; }

/* services overview */
.svc-group { margin-bottom: 3.5rem; }
.svc-group h2 { font-family: var(--serif); font-size: 1.6rem; font-weight: 500; color: var(--navy); margin-bottom: 0.5rem; }
.svc-group > p { color: var(--text-mid); max-width: 680px; margin-bottom: 1.5rem; }
.svc-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 1.25rem; }
.svc-card { background: var(--bg); border: 1px solid var(--border); padding: 2rem; display: flex; flex-direction: column; transition: background 0.2s, border-color 0.2s; }
.svc-card:hover { background: var(--ivory); border-color: var(--gold); }
.svc-card h3 { font-family: var(--serif); font-size: 1.15rem; font-weight: 500; margin-bottom: 0.6rem; }
.svc-card h3 a { color: var(--navy); text-decoration: none; }
.svc-card p { font-size: 0.9rem; color: var(--text-mid); line-height: 1.8; margin-bottom: 1.25rem; }
.svc-card .text-link { margin-top: auto; align-self: flex-start; }

/* ---------- LEGAL / POLICY PAGES ---------- */
.page-meta { font-size: 0.82rem; color: var(--text-light); }
.page-meta:empty { display: none; }
.prose-wide { max-width: 820px; }
.prose ul:not([class]) { margin: 0 0 1.1rem 1.25rem; }
.prose ul:not([class]) li { color: var(--text-mid); line-height: 1.8; margin-bottom: 0.4rem; }
.prose code { font-size: 0.85rem; color: var(--navy); }
.table-wrap { overflow-x: auto; margin: 1rem 0 1.5rem; border: 1px solid var(--border); }
.prose table { width: 100%; border-collapse: collapse; font-size: 0.86rem; min-width: 560px; }
.prose th, .prose td { text-align: left; vertical-align: top; padding: 0.75rem 0.9rem; border-bottom: 1px solid var(--border); color: var(--text-mid); }
.prose th { background: var(--ivory); color: var(--navy); font-size: 0.72rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; }
.prose tr:last-child td { border-bottom: none; }

/* ---------- CONTACT FORM ---------- */
.contact-grid { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 4rem; align-items: start; }
.form-card { background: var(--ivory); border: 1px solid var(--border); padding: 2.5rem; }
.form-title { font-family: var(--serif); font-size: 1.4rem; font-weight: 500; color: var(--navy); margin-bottom: 1.5rem; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.fg { margin-bottom: 1.25rem; }
.fg label { display: block; font-size: 0.72rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-mid); margin-bottom: 0.5rem; }
.fg input, .fg select, .fg textarea { width: 100%; padding: 0.8rem 1rem; border: 1px solid #b9ad92; background: var(--bg); font-family: var(--body); font-size: 0.95rem; color: var(--text); border-radius: 0; appearance: none; -webkit-appearance: none; }
.fg select { background-image: linear-gradient(45deg, transparent 50%, var(--navy) 50%), linear-gradient(135deg, var(--navy) 50%, transparent 50%); background-position: calc(100% - 20px) 50%, calc(100% - 14px) 50%; background-size: 6px 6px; background-repeat: no-repeat; padding-right: 2.5rem; }
.fg textarea { min-height: 150px; resize: vertical; }
.fg input:focus, .fg select:focus, .fg textarea:focus { outline: 2px solid var(--gold); outline-offset: 1px; border-color: var(--gold); }
.consent { display: flex; gap: 0.7rem; align-items: flex-start; font-size: 0.85rem; color: var(--text-mid); line-height: 1.6; margin-bottom: 1.25rem; }
.consent input { margin-top: 0.3rem; accent-color: var(--navy); flex-shrink: 0; width: 1.05rem; height: 1.05rem; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.btn-block { width: 100%; }
.form-status { font-size: 0.9rem; margin-top: 1rem; text-align: center; }
.form-status:empty { display: none; }
.form-status.err { color: #9B2C2C; }
.form-status.ok { color: #2F6B3A; }
.form-note { font-size: 0.8rem; color: var(--text-light); margin-top: 1rem; text-align: center; }

.contact-card { background: var(--navy); color: rgba(246, 241, 231, 0.85); padding: 2.5rem 2rem; position: relative; }
.contact-card::before { content: ''; position: absolute; inset: 8px; border: 1px solid rgba(184, 151, 46, 0.4); pointer-events: none; }
.contact-card h2 { font-family: var(--serif); font-size: 1.3rem; font-weight: 500; color: var(--ivory); margin-bottom: 1.25rem; position: relative; }
.contact-list { list-style: none; position: relative; }
.contact-list li { padding: 0.9rem 0; border-bottom: 1px solid rgba(184, 151, 46, 0.25); font-size: 0.95rem; }
.contact-list li:last-child { border-bottom: none; }
.contact-label { display: block; font-size: 0.7rem; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--gold-bright); margin-bottom: 0.15rem; }
.contact-list a { color: var(--ivory); }
.contact-card :focus-visible { outline-color: var(--gold-bright); }
.contact-note { font-size: 0.85rem; line-height: 1.7; margin-top: 1.25rem; position: relative; }

/* ---------- THANK YOU ---------- */
.thanks { padding: calc(var(--header-h) + 5rem) 3rem 6rem; }
.thanks-card { max-width: 720px; margin: 0 auto; background: var(--ivory); border: 1px solid var(--border); padding: 3rem; text-align: center; }
.thanks-card .crest { color: var(--gold); margin-bottom: 1.25rem; }
.thanks-card .section-eyebrow { justify-content: center; }
.thanks-card .section-eyebrow::before { display: none; }
.thanks-card h1 { font-family: var(--serif); font-size: clamp(1.9rem, 3vw, 2.6rem); font-weight: 500; color: var(--navy); line-height: 1.25; margin-bottom: 0.5rem; }
.thanks-card h1 em { font-style: italic; color: var(--gold); }
.thanks-card p { color: var(--text-mid); margin-bottom: 1rem; }
.thanks-card .btn-row { justify-content: center; margin-top: 1.75rem; }

/* ---------- RESPONSIVE ---------- */
@media (max-width: 1250px) {
  .site-header { padding: 0 2rem; }
  .nav-logo { font-size: 1.7rem; }
  .nav-logo .crest { width: 36px; height: 36px; }
  .nav-links { gap: 1.5rem; }
}

@media (max-width: 1060px) {
  .nav-toggle { display: flex; }

  .site-nav {
    display: none;
    position: fixed;
    top: var(--header-h);
    left: 0; right: 0; bottom: 0;
    height: auto;
    background: var(--bg);
    overflow-y: auto;
    padding: 0.5rem 1.5rem 3rem;
  }

  .site-nav.open { display: block; }

  .nav-links { flex-direction: column; align-items: stretch; gap: 0; height: auto; }
  .nav-links > li { display: block; border-bottom: 1px solid var(--border); }
  .nav-links > li > a { display: block; padding: 1rem 0; font-size: 0.9rem; border-bottom: none; }
  .nav-links > li > a[aria-current="page"], .nav-links > li.is-current > a { border-bottom: none; color: var(--gold); }

  .nav-links > li.has-sub { display: flex; flex-wrap: wrap; align-items: center; }
  .has-sub > a { flex: 1; }
  .sub-toggle { width: 3rem; height: 3rem; }
  .has-sub:hover > .sub, .has-sub:focus-within > .sub { display: none; }
  .has-sub.open > .sub { display: block; }
  .sub { position: static; width: 100%; min-width: 0; border: none; box-shadow: none; padding: 0 0 0.75rem 1rem; }
  .sub a { padding: 0.65rem 0; }
  .sub a:hover { background: none; }
  .sub .sub-all { border-bottom: none; margin-bottom: 0; }

  .nav-links > li:last-child { border-bottom: none; margin-top: 1.25rem; }
  .nav-links > li > a.nav-cta { text-align: center; padding: 1rem; }
}

@media (max-width: 900px) {
  .site-header { padding: 0 1.25rem; }
  section { padding: 4rem 1.5rem; }
  .hero { padding: calc(var(--header-h) + 2rem) 1.5rem 3rem; }
  .hero-inner, .about-inner { grid-template-columns: 1fr; gap: 2.5rem; }
  .page-head { padding: calc(var(--header-h) + 2rem) 1.5rem 2rem; }
  .page-body { padding: 3rem 1.5rem 4rem; }
  .page-grid, .contact-grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .form-card { padding: 2rem 1.5rem; }
  .thanks { padding: calc(var(--header-h) + 2.5rem) 1.5rem 4rem; }
  .thanks-card { padding: 2.25rem 1.5rem; }
  .aside { position: static; }
  .article-cta { padding: 1.5rem; }
  .hero-photo { height: 260px; }
  .hero-card { padding: 2rem 1.5rem; }
  .services-grid { grid-template-columns: 1fr; }
  .process-grid { grid-template-columns: 1fr 1fr; }
  .process-step:nth-child(2) { border-right: none; }
  .process-step:nth-child(-n+2) { border-bottom: 1px solid var(--border); }
  .why-list { grid-template-columns: 1fr; }
  .about-panel { padding: 2.5rem 1.75rem; min-height: 0; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 2.5rem; }
  .site-footer { padding: 3rem 1.5rem 1.5rem; }
}

@media (max-width: 600px) {
  .process-grid, .form-row { grid-template-columns: 1fr; }
  .thanks-card .btn-primary, .thanks-card .btn-outline { width: 100%; }
  .process-step { border-right: none; border-bottom: 1px solid var(--border); }
  .process-step:last-child { border-bottom: none; }
  .hero .btn-primary, .hero .btn-outline, .cta-band .btn-primary, .cta-band .btn-outline { width: 100%; }
  .footer-grid { grid-template-columns: 1fr; }
}

@media (max-width: 420px) {
  .nav-logo { font-size: 1.45rem; gap: 0.5rem; letter-spacing: 0.02em; }
  .nav-logo .crest { width: 30px; height: 30px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
