/* Reading Insight site styles */

:root {
  --navy: #183247;
  --teal: #367C78;
  --teal-dark: #2C6663;
  --ivory: #F8F6F1;
  --sage: #DDE9E3;
  --ink: #263238;
  --ink-soft: #3A4A52;
  --muted: #4A5A62;
  --line: #E6E2D8;
  --field: #B9B4A8;
  --white: #FFFFFF;
  --footer-muted: #C9D6DE;
  --serif: "DM Serif Display", Georgia, serif;
  --sans: Inter, system-ui, -apple-system, "Segoe UI", sans-serif;
}

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

html { scroll-behavior: smooth; scroll-padding-top: 96px; }

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

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

a { color: var(--teal-dark); }
a:hover { color: var(--navy); }

:focus-visible { outline: 3px solid var(--teal); outline-offset: 3px; border-radius: 4px; }

h1, h2, h3 {
  margin: 0;
  font-family: var(--serif);
  font-weight: 400;
  color: var(--navy);
  line-height: 1.15;
}
h1 { font-size: clamp(36px, 4.4vw, 56px); }
h2 { font-size: clamp(28px, 3vw, 38px); line-height: 1.2; }
h3 { font-size: clamp(22px, 2vw, 24px); line-height: 1.25; }

p { margin: 0; }

.skip {
  position: absolute; left: 16px; top: -100px;
  background: var(--navy); color: var(--white);
  padding: 10px 16px; border-radius: 8px; z-index: 100;
}
.skip:focus { top: 12px; color: var(--white); }

.wrap { max-width: 1184px; margin: 0 auto; padding: 0 32px; }
.wrap--narrow { max-width: 944px; }

.section { padding: 96px 0; }
.section--white { background: var(--white); }
.section--sage { background: var(--sage); padding: 72px 0; }
.section--tight-top { padding-top: 0; }
.section--rule { border-top: 1px solid var(--line); }

.stack { display: flex; flex-direction: column; gap: 20px; }
.stack--sm { gap: 12px; }
.stack--lg { gap: 48px; }

.eyebrow {
  font-size: 14px; font-weight: 600; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--teal-dark);
}
.lead { font-size: 20px; line-height: 1.6; color: var(--ink-soft); max-width: 600px; }
.strong-line { font-size: 20px; font-weight: 600; color: var(--navy); line-height: 1.4; }
.small { font-size: 14px; line-height: 1.5; color: var(--muted); }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 52px; padding: 0 28px; border-radius: 8px;
  background: var(--teal); color: var(--white);
  border: 1.5px solid var(--teal);
  font: 600 16px/1.2 var(--sans); text-decoration: none; text-align: center;
  cursor: pointer; transition: background-color 0.15s, border-color 0.15s;
}
.btn:hover { background: var(--teal-dark); border-color: var(--teal-dark); color: var(--white); }
.btn--secondary { background: var(--white); color: var(--teal-dark); border-color: var(--teal); }
.btn--secondary:hover { background: var(--sage); color: var(--navy); border-color: var(--teal-dark); }
.btn[disabled] { opacity: 0.6; cursor: not-allowed; }
.btn-row { display: flex; flex-wrap: wrap; gap: 16px; }

.text-link { font-size: 16px; font-weight: 600; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: var(--ivory); border-bottom: 1px solid var(--line);
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 24px; padding-top: 18px; padding-bottom: 18px;
}
.brand { display: flex; flex-direction: column; gap: 2px; text-decoration: none; }
.brand-name { font-family: var(--serif); font-size: 26px; line-height: 1.1; color: var(--navy); }
.brand-tag { font-size: 13px; line-height: 1.3; color: var(--muted); }

.nav { display: flex; align-items: center; gap: 32px; }
.nav-links { display: flex; gap: 32px; margin: 0; padding: 0; list-style: none; }
.nav-links a { font-size: 16px; font-weight: 500; color: var(--ink); text-decoration: none; }
.nav-links a:hover { color: var(--teal-dark); }
.nav-links a[aria-current="page"] {
  color: var(--teal-dark); font-weight: 600;
  text-decoration: underline; text-underline-offset: 6px; text-decoration-thickness: 2px;
}
.btn--header { min-height: 48px; padding: 0 24px; }
.menu-toggle {
  display: none; width: 44px; height: 44px; padding: 0;
  align-items: center; justify-content: center;
  border: 1px solid var(--line); border-radius: 8px; background: var(--white);
  color: var(--navy); cursor: pointer;
}
.show-mobile { display: none; }

/* Hero and splits */
.split { display: flex; flex-wrap: wrap; align-items: center; gap: 56px 72px; }
.split--top { align-items: flex-start; }
.split > * { min-width: 0; }
.split__main { flex: 1.15 1 480px; }
.split__side { flex: 1 1 380px; }
.split__label { flex: 1 1 300px; }
.split__body { flex: 1.8 1 520px; }

.hero { padding: 88px 0 104px; }
.hero h1 { max-width: 640px; }
.illustration { width: 100%; height: auto; border-radius: 16px; }

/* Cards */
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.card {
  background: var(--white); border: 1px solid var(--line); border-radius: 12px;
  padding: 32px; display: flex; flex-direction: column; gap: 14px;
}
.card--ivory { background: var(--ivory); border-color: transparent; }
.card p { font-size: 17px; }
.card .grow { flex-grow: 1; }
.card-links { display: flex; flex-wrap: wrap; gap: 8px 24px; }
.step-num {
  width: 44px; height: 44px; border-radius: 50%;
  background: var(--sage); color: var(--navy);
  font-weight: 600; font-size: 18px;
  display: flex; align-items: center; justify-content: center;
}
.who { border-top: 2px solid var(--teal); padding-top: 20px; display: flex; flex-direction: column; gap: 10px; }
.who p { font-size: 17px; }

.section-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px; }

.about-teaser { display: flex; flex-wrap: wrap; align-items: center; gap: 40px 64px; }
.about-teaser .portrait { flex: 0 0 auto; width: 200px; }
.about-teaser .stack { flex: 1 1 420px; min-width: 0; }
.big-quote { font-family: var(--serif); font-size: clamp(24px, 2.6vw, 32px); line-height: 1.35; color: var(--navy); }

.band { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px 48px; }
.band .stack { flex: 1 1 480px; min-width: 0; gap: 10px; }

.cta-card {
  background: var(--white); border: 1px solid var(--line); border-radius: 16px;
  padding: 56px 40px; text-align: center;
  display: flex; flex-direction: column; align-items: center; gap: 16px;
}

/* Services page */
.service-list {
  background: var(--ivory); border-radius: 12px; padding: 24px 28px;
  margin: 0; list-style: none; display: flex; flex-direction: column; gap: 12px;
}
.service-list__title { font-size: 15px; font-weight: 600; color: var(--navy); }
.service-list li { display: flex; gap: 12px; align-items: flex-start; font-size: 17px; line-height: 1.6; }
.service-list li svg { flex: 0 0 auto; margin-top: 4px; color: var(--teal); }

.faq { display: flex; flex-direction: column; gap: 12px; }
.faq details { background: var(--white); border: 1px solid var(--line); border-radius: 12px; padding: 20px 24px; }
.faq summary { font-size: 18px; font-weight: 600; color: var(--navy); cursor: pointer; }
.faq details p { margin-top: 12px; font-size: 17px; }

/* Forms */
.form-panel { background: var(--white); border-radius: 16px; padding: 32px; }
.form { display: flex; flex-direction: column; gap: 20px; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.form-grid--single { grid-template-columns: minmax(0, 1fr); }
.field { display: flex; flex-direction: column; gap: 6px; }
.field label { font-size: 15px; font-weight: 600; color: var(--navy); }
.field .optional { font-weight: 400; color: var(--muted); }
.field input, .field textarea {
  width: 100%; min-height: 48px; padding: 0 14px;
  border: 1px solid var(--field); border-radius: 8px; background: var(--white);
  font: 16px/1.5 var(--sans); color: var(--ink);
}
.field textarea { padding: 12px 14px; min-height: 160px; resize: vertical; }
.field input:focus, .field textarea:focus { outline: 3px solid var(--sage); border-color: var(--teal); }
.turnstile-slot:empty { display: none; }
.form-status { font-size: 16px; line-height: 1.5; padding: 14px 16px; border-radius: 8px; }
.form-status:empty { display: none; }
.form-status--ok { background: var(--sage); color: var(--navy); }
.form-status--error { background: #FBEAEA; color: #7A1F1F; }

.panel { border-radius: 16px; padding: 36px; display: flex; flex-direction: column; gap: 16px; }
.panel--white { background: var(--white); border: 1px solid var(--line); }
.panel--booking { gap: 24px; }
.cal-embed { width: 100%; min-height: 640px; overflow: auto; }

/* Prose (privacy) */
.prose { max-width: 720px; }
.prose h2 { font-size: 28px; margin-top: 40px; margin-bottom: 12px; }
.prose p, .prose li { font-size: 17px; }
.prose p + p { margin-top: 14px; }
.prose ul { padding-left: 22px; margin: 12px 0 0; }
.prose li + li { margin-top: 6px; }

/* Footer */
.site-footer { background: var(--navy); color: var(--white); }
.footer-inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 32px 48px; padding-top: 56px; padding-bottom: 40px; }
.footer-col { display: flex; flex-direction: column; gap: 10px; font-size: 15px; }
.footer-col a { color: var(--white); }
.footer-nav a { text-decoration: none; }
.footer-nav a:hover, .footer-col a:hover { color: var(--sage); }
.footer-brand { font-family: var(--serif); font-size: 24px; }
.footer-tag { font-size: 14px; color: var(--footer-muted); }
.footer-base { border-top: 1px solid rgba(255, 255, 255, 0.15); }
.footer-base p { padding-top: 20px; padding-bottom: 20px; font-size: 13px; color: var(--footer-muted); }

/* Tablet and below */
@media (max-width: 960px) {
  .grid-3 { grid-template-columns: minmax(0, 1fr); }
}

/* Mobile */
@media (max-width: 860px) {
  body { font-size: 17px; }
  .wrap { padding: 0 20px; }
  .section { padding: 56px 0; }
  .section--sage { padding: 48px 0; }
  .hero { padding: 48px 0 56px; }
  .split { gap: 32px; }
  h1 { font-size: 36px; line-height: 1.12; }
  h2 { font-size: 28px; }
  .lead { font-size: 17px; }
  .strong-line { font-size: 18px; }

  .header-inner { padding-top: 14px; padding-bottom: 14px; gap: 12px; }
  .brand-name { font-size: 22px; }
  .brand-tag { display: none; }
  .nav { gap: 8px; }
  .hide-mobile { display: none; }
  .show-mobile { display: inline; }
  .btn--header { min-height: 44px; padding: 0 16px; font-size: 15px; }
  .menu-toggle { display: inline-flex; }
  .nav-links {
    display: none; position: absolute; left: 0; right: 0; top: 100%;
    flex-direction: column; gap: 0;
    background: var(--ivory); border-bottom: 1px solid var(--line);
    padding: 8px 20px 16px;
  }
  .site-header.is-open .nav-links { display: flex; }
  .nav-links a { display: block; padding: 12px 0; font-size: 17px; }

  .btn-row .btn, .band .btn, .cta-card .btn, .form .btn { width: 100%; }
  .card, .panel, .form-panel { padding: 24px 20px; }
  .card--ivory { padding: 24px; }
  .cta-card { padding: 36px 24px; }
  .about-teaser .portrait { width: 140px; }
  .service-list { padding: 20px; }
  .form-grid { grid-template-columns: minmax(0, 1fr); }
  .footer-inner { padding-top: 44px; padding-bottom: 28px; }
  .footer-nav { flex-direction: row; flex-wrap: wrap; gap: 12px 24px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn { transition: none; }
}
