/* Ravn Advisory: site styles. Mobile-first. */

@font-face {
  font-family: "Cormorant Garamond";
  src: url("fonts/cormorant-garamond-latin-500-normal.woff2") format("woff2");
  font-weight: 500; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Cormorant Garamond";
  src: url("fonts/cormorant-garamond-latin-600-normal.woff2") format("woff2");
  font-weight: 600; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Cormorant Garamond";
  src: url("fonts/cormorant-garamond-latin-500-italic.woff2") format("woff2");
  font-weight: 500; font-style: italic; font-display: swap;
}
@font-face {
  font-family: "Inter";
  src: url("fonts/inter-latin-wght-normal.woff2") format("woff2");
  font-weight: 100 900; font-style: normal; font-display: swap;
}

:root {
  --midnight: #142334;
  --oxford: #344B60;
  --pewter: #72838E;   /* rules and large text only: fails AA for body text on parchment */
  --bronze: #AC8960;   /* accent: buttons, key lines; text only on midnight */
  --parchment: #F2EFE8;
  --paper: #F8F6F1;
  --ink: #1B2a3a;
  --rule: #D6D1C6;

  --serif: "Cormorant Garamond", "EB Garamond", Garamond, Georgia, serif;
  --sans: "Inter", "Source Sans 3", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --gutter: 1.25rem;
  --max: 70rem;
  --section-pad: 4.5rem;
}

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

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

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

h1, h2, h3 {
  font-variant-numeric: lining-nums;
  font-family: var(--serif);
  font-weight: 500;
  color: var(--midnight);
  line-height: 1.15;
  margin: 0 0 1rem;
  letter-spacing: -0.005em;
}
h1 { font-size: clamp(2.35rem, 7vw, 4.25rem); }
h2 { font-size: clamp(1.9rem, 4.5vw, 2.75rem); }
h3 { font-size: 1.6rem; font-weight: 600; }
p { margin: 0 0 1rem; }

a { color: var(--oxford); text-underline-offset: 0.2em; }
a:hover { color: var(--midnight); }
:focus-visible { outline: 2px solid var(--bronze); outline-offset: 3px; }

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

.visually-hidden {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; left: 1rem; top: -3rem; z-index: 10;
  background: var(--parchment); color: var(--midnight); padding: .5rem .9rem;
}
.skip-link:focus { top: 1rem; }

/* ---------- Header ---------- */
.site-header {
  background: var(--midnight);
  border-bottom: 1px solid rgba(172, 137, 96, 0.35);
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  min-height: 4.5rem;
}
.wordmark {
  display: inline-flex; flex-direction: column; align-items: center;
  text-decoration: none; color: var(--parchment); line-height: 1;
}
.wordmark-name {
  font-family: var(--serif); font-weight: 500;
  font-size: 1.65rem; letter-spacing: 0.42em; margin-right: -0.42em;
}
.wordmark-sub {
  font-family: var(--sans); font-size: 0.6rem; font-weight: 500;
  letter-spacing: 0.42em; margin-right: -0.42em; margin-top: 0.4rem;
  color: var(--bronze);
}
.wordmark:hover { color: #fff; }
.header-cta {
  color: var(--parchment); font-size: 0.875rem; font-weight: 500;
  letter-spacing: 0.04em; text-decoration: none;
  border-bottom: 1px solid var(--bronze); padding: 0.25rem 0;
}
.header-cta:hover { color: #fff; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block; text-decoration: none;
  font-family: var(--sans); font-weight: 600; font-size: 0.95rem;
  letter-spacing: 0.03em;
  padding: 0.95rem 1.6rem; border-radius: 2px;
  transition: background-color .15s ease, color .15s ease;
}
.btn-primary { background: var(--bronze); color: var(--midnight); }
.btn-primary:hover { background: #BE9C72; color: var(--midnight); }

/* ---------- Hero ---------- */
.hero {
  background: var(--midnight);
  color: var(--parchment);
  padding: 4.5rem 0 5rem;
}
.hero h1 { color: var(--parchment); max-width: 20ch; margin-bottom: 1.5rem; }
.hero-sub { font-size: 1.15rem; color: #C9CFD4; max-width: 36rem; margin-bottom: 2.25rem; }

/* ---------- Credibility ---------- */
.credibility {
  background: var(--paper);
  border-bottom: 1px solid var(--rule);
  padding: 2.25rem 0;
}
.credibility p {
  font-family: var(--serif); font-style: italic; font-weight: 500;
  font-size: clamp(1.3rem, 3vw, 1.65rem); line-height: 1.4;
  color: var(--oxford); margin: 0; max-width: 52rem;
}

/* ---------- Sections ---------- */
.section { padding: var(--section-pad) 0; }
.section + .section { border-top: 1px solid var(--rule); }
.section-label {
  font-size: 0.75rem; font-weight: 600; letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--oxford); margin-bottom: 0.9rem;
  display: flex; align-items: center; gap: 0.85rem;
}
.section-label::before { content: ""; width: 2rem; height: 1px; background: var(--bronze); }
.section h2 { margin-bottom: 2.5rem; }

/* ---------- Results ---------- */
.results-grid {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: 1fr; gap: 0;
  border-top: 1px solid var(--rule);
}
.result {
  display: grid; grid-template-columns: 1fr; gap: 0.35rem;
  padding: 1.5rem 0; border-bottom: 1px solid var(--rule);
}
.result-figure {
  font-variant-numeric: lining-nums;
  font-family: var(--serif); font-weight: 600; font-size: 2.6rem; line-height: 1;
  color: var(--midnight);
}
.result-text { color: var(--oxford); max-width: 34rem; }
.footnote { font-size: 0.85rem; color: var(--oxford); margin-top: 1.5rem; font-style: italic; }

/* ---------- Discovery ---------- */
.discovery { background: var(--paper); }
.pain-list { list-style: none; margin: 0 0 2rem; padding: 0; }
.pain-list li {
  font-family: var(--serif); font-size: clamp(1.4rem, 3.4vw, 1.8rem); line-height: 1.3;
  color: var(--midnight);
  padding: 1rem 0 1rem 1.5rem; position: relative;
  border-bottom: 1px solid var(--rule);
}
.pain-list li::before {
  content: ""; position: absolute; left: 0; top: 1.65rem;
  width: 0.5rem; height: 1px; background: var(--bronze);
}
.pain-close {
  font-family: var(--serif); font-style: italic; font-size: 1.6rem;
  color: var(--oxford); margin-bottom: 1.75rem;
}

/* ---------- Services ---------- */
.services-grid { display: grid; grid-template-columns: 1fr; gap: 1.25rem; }
.service {
  background: var(--paper); border: 1px solid var(--rule);
  border-top: 2px solid var(--midnight);
  padding: 1.75rem 1.5rem;
}
.service h3 { margin-bottom: 0.75rem; }
.service p:last-child { margin-bottom: 0; }
.service-meta {
  font-size: 0.8rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--oxford);
}

/* ---------- Process ---------- */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr; gap: 2rem; }
.step { border-top: 1px solid var(--midnight); padding-top: 1.25rem; }
.step-num {
  display: block; font-family: var(--serif); font-size: 1.1rem; font-weight: 600;
  letter-spacing: 0.1em; color: var(--oxford); margin-bottom: 0.5rem;
}
.step h3 { margin-bottom: 0.4rem; }
.step p { color: var(--oxford); margin: 0; }

/* ---------- About ---------- */
.about-inner { display: grid; grid-template-columns: 1fr; gap: 2.5rem; align-items: start; }
.headshot {
  display: block; width: 100%; max-width: 20rem; height: auto; aspect-ratio: 4 / 5;
  object-fit: cover; border-radius: 2px;
  box-shadow: 0 0 0 1px var(--rule);
}
.about-copy h2 { margin-bottom: 0.75rem; }
.about-name {
  font-size: 0.8rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--midnight); margin-bottom: 1.5rem;
}
.about-name span { color: var(--oxford); font-weight: 500; }
.about-copy p { max-width: 38rem; }

/* ---------- FAQ ---------- */
.faq { background: var(--paper); }
.faq-list { border-top: 1px solid var(--rule); }
.faq details { border-bottom: 1px solid var(--rule); }
.faq summary {
  list-style: none; cursor: pointer;
  display: flex; justify-content: space-between; align-items: baseline; gap: 1rem;
  padding: 1.15rem 0;
  font-family: var(--serif); font-size: clamp(1.3rem, 3vw, 1.55rem); font-weight: 500; line-height: 1.3;
  color: var(--midnight);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; flex: none; font-family: var(--sans); font-weight: 300; font-size: 1.4rem;
  color: var(--oxford); line-height: 1;
}
.faq details[open] summary::after { content: "\2013"; }
.faq details p { color: var(--oxford); max-width: 38rem; margin: 0 0 1.25rem; }

/* ---------- Final CTA ---------- */
.cta {
  background: var(--midnight); color: var(--parchment);
  padding: 5rem 0; text-align: center;
}
.cta h2 { color: var(--parchment); margin-bottom: 1rem; }
.cta p { color: #C9CFD4; }
.cta .btn { margin: 1rem 0 1.5rem; }
.cta-email { font-size: 0.95rem; }
.cta-email a { color: var(--parchment); text-decoration-color: var(--bronze); }
.cta-email a:hover { color: #fff; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--midnight); color: #AEB8C0;
  border-top: 1px solid rgba(242, 239, 232, 0.12);
  padding: 1.75rem 0; font-size: 0.85rem;
}
.footer-inner { display: flex; flex-direction: column; gap: 0.25rem; }
.footer-inner p { margin: 0; }
.site-footer a { color: #D5DBE0; }

/* ---------- Larger screens ---------- */
@media (min-width: 40rem) {
  :root { --gutter: 2rem; --section-pad: 6rem; }
  .hero { padding: 6.5rem 0 7rem; }
  .results-grid { grid-template-columns: repeat(2, 1fr); column-gap: 3rem; }
  .steps { grid-template-columns: repeat(3, 1fr); gap: 2.5rem; }
  .footer-inner { flex-direction: row; justify-content: space-between; }
}
@media (min-width: 60rem) {
  .results-grid { grid-template-columns: repeat(3, 1fr); }
  .result { padding: 2rem 0; }
  .result-figure { font-size: 3.1rem; }
  .services-grid { grid-template-columns: repeat(3, 1fr); }
  .about-inner { grid-template-columns: 20rem 1fr; gap: 4rem; }
  .hero { padding: 8rem 0 8.5rem; }
}
