/* ==========================================================================
   Thomas Care Group — Design System v2
   "Apothecary Editorial" — premium, warm, human, distinctive
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Fraunces:opsz,wght,ital@9..144,300..700,0..1&family=Public+Sans:wght@400;500;600;700&display=swap');

:root {
  --paper: #F3EEE4;
  --paper-deep: #EAE2D0;
  --cream-white: #FBF9F4;
  --ink: #2A2420;
  --ink-soft: #5C4F44;
  --oxblood: #4A2126;
  --oxblood-deep: #33161A;
  --sage: #6E7C63;
  --sage-dim: #E4E5DC;
  --brass: #A6813C;
  --line: #D9CFB9;
  --line-strong: #C6BA9C;

  --font-display: 'Fraunces', Georgia, serif;
  --font-body: 'Public Sans', -apple-system, sans-serif;

  --max-width: 1180px;
  --gutter: 32px;
}

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

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.65;
  font-size: 16.5px;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 500;
  color: var(--oxblood);
  line-height: 1.14;
  letter-spacing: -0.01em;
}

h1 { font-size: clamp(2.6rem, 5.2vw, 4.4rem); font-weight: 440; font-optical-sizing: auto; }
h2 { font-size: clamp(1.9rem, 3.4vw, 2.7rem); }
h3 { font-size: 1.3rem; font-weight: 600; }

p { max-width: 60ch; color: var(--ink-soft); }
p.wide { max-width: none; }

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

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

.kicker {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.05rem;
  color: var(--sage);
  font-weight: 500;
  margin-bottom: 16px;
}

.text-link {
  color: var(--oxblood);
  font-weight: 600;
  font-size: 0.95rem;
  border-bottom: 1px solid var(--line-strong);
  padding-bottom: 2px;
  transition: border-color 0.2s, color 0.2s;
}
.text-link:hover { border-color: var(--oxblood); color: var(--oxblood-deep); }

/* ---------- Header ---------- */

.site-header {
  background: var(--paper);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-bar {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 22px var(--gutter);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 500;
  color: var(--oxblood);
  white-space: nowrap;
}
.brand span { font-style: italic; color: var(--sage); }

.main-nav { display: flex; align-items: center; gap: 32px; }

.main-nav a {
  font-size: 0.93rem;
  color: var(--ink-soft);
  padding: 6px 0;
  border-bottom: 1px solid transparent;
  transition: color 0.15s, border-color 0.15s;
}
.main-nav a:hover,
.main-nav a[aria-current="page"] {
  color: var(--oxblood);
  border-color: var(--brass);
}

.header-cta { display: flex; align-items: center; gap: 18px; }

.phone-link { font-size: 0.92rem; font-weight: 600; color: var(--oxblood); }

.btn {
  display: inline-block;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.9rem;
  padding: 12px 24px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background 0.18s, color 0.18s, border-color 0.18s;
}

.btn-primary { background: var(--oxblood); color: var(--cream-white); }
.btn-primary:hover { background: var(--oxblood-deep); }

.btn-outline { background: transparent; color: var(--oxblood); border-color: var(--oxblood); }
.btn-outline:hover { background: var(--oxblood); color: var(--cream-white); }

.nav-toggle { display: none; background: none; border: none; cursor: pointer; padding: 8px; }
.nav-toggle span { display: block; width: 22px; height: 1.5px; background: var(--oxblood); margin: 5px 0; }

@media (max-width: 880px) {
  .main-nav {
    position: fixed;
    top: 73px; left: 0; right: 0;
    background: var(--paper);
    flex-direction: column;
    align-items: flex-start;
    padding: 20px var(--gutter) 28px;
    border-bottom: 1px solid var(--line);
    gap: 4px;
    transform: translateY(-8px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.18s, transform 0.18s;
  }
  .main-nav.open { transform: translateY(0); opacity: 1; pointer-events: auto; }
  .main-nav a { width: 100%; padding: 12px 0; }
  .header-cta .phone-link { display: none; }
  .nav-toggle { display: block; }
}

/* ---------- Hero ---------- */

.hero-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 96px var(--gutter) 0;
  display: grid;
  grid-template-columns: 7fr 5fr;
  gap: 64px;
  align-items: end;
}

.hero-copy { padding-bottom: 72px; animation: hero-in 0.7s ease-out; }
@keyframes hero-in {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

.hero h1 { margin-bottom: 24px; }

.hero-lede { font-size: 1.12rem; margin-bottom: 32px; }

.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; }

.hero-figure {
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background: var(--sage-dim);
}
.hero-figure img { width: 100%; height: 100%; object-fit: cover; }

@media (max-width: 880px) {
  .hero-inner { grid-template-columns: 1fr; padding-top: 56px; }
  .hero-copy { padding-bottom: 40px; }
  .hero-figure { aspect-ratio: 16/10; }
}

/* ---------- Credentials line ---------- */

.credentials-strip {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  margin-top: 72px;
}

.credentials-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 28px var(--gutter);
  display: flex;
  flex-wrap: wrap;
  gap: 12px 48px;
}

.credential-item { display: flex; align-items: baseline; gap: 10px; }
.credential-item strong {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 500;
  color: var(--oxblood);
}
.credential-item span { font-size: 0.85rem; color: var(--ink-soft); }

/* ---------- Sections ---------- */

section { padding: 96px 0; }
.section-tight { padding: 64px 0; }
.section-alt { background: var(--paper-deep); }

.section-head { max-width: 640px; margin-bottom: 56px; }
.section-head h2 { margin-bottom: 4px; }

/* ---------- Editorial index list (replaces card grids) ---------- */

.index-list { border-top: 1px solid var(--line-strong); }

.index-row {
  display: grid;
  grid-template-columns: 1fr 1.7fr auto;
  gap: 40px;
  align-items: baseline;
  padding: 32px 0;
  border-bottom: 1px solid var(--line);
}

.index-row h3 { color: var(--oxblood); }
.index-row p { font-size: 0.97rem; margin: 0; }

.index-row .text-link { justify-self: end; white-space: nowrap; }

@media (max-width: 760px) {
  .index-row { grid-template-columns: 1fr; gap: 10px; }
  .index-row .text-link { justify-self: start; }
}

/* ---------- Magazine split (asymmetric, replaces 1:1 split) ---------- */

.spread {
  display: grid;
  grid-template-columns: 5fr 7fr;
  gap: 72px;
  align-items: center;
}
.spread.reverse { grid-template-columns: 7fr 5fr; }
.spread.reverse .spread-figure { order: 2; }

.spread-figure { aspect-ratio: 4 / 5; overflow: hidden; background: var(--sage-dim); }
.spread-figure img { width: 100%; height: 100%; object-fit: cover; }

.spread-copy p { margin-top: 18px; }

@media (max-width: 880px) {
  .spread, .spread.reverse { grid-template-columns: 1fr; gap: 32px; }
  .spread.reverse .spread-figure { order: 0; }
  .spread-figure { aspect-ratio: 16/10; }
}

/* ---------- Full-bleed photo band ---------- */

.photo-band { width: 100%; aspect-ratio: 21 / 8; overflow: hidden; background: var(--sage-dim); }
.photo-band img { width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 700px) { .photo-band { aspect-ratio: 4/3; } }

/* ---------- Testimonials — stacked, no cards ---------- */

.quote-list { border-top: 1px solid var(--line-strong); max-width: 820px; }

.quote-item { padding: 40px 0; border-bottom: 1px solid var(--line); }

.quote-item p {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.28rem;
  color: var(--ink);
  max-width: none;
  margin-bottom: 16px;
  line-height: 1.45;
}

.quote-meta { font-size: 0.85rem; color: var(--ink-soft); }
.quote-meta strong { color: var(--oxblood); font-weight: 600; }

/* ---------- Callout band ---------- */

.callout-band { background: var(--oxblood); color: var(--cream-white); }
.callout-band h2 { color: var(--cream-white); }

.callout-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 72px var(--gutter);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
}

.callout-band .btn-outline { color: var(--cream-white); border-color: var(--cream-white); }
.callout-band .btn-outline:hover { background: var(--cream-white); color: var(--oxblood); }

/* ---------- Forms ---------- */

.form-panel { background: var(--cream-white); border: 1px solid var(--line-strong); padding: 44px; }

.form-row { margin-bottom: 20px; }

.form-row label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--oxblood);
  margin-bottom: 7px;
}

.form-row input, .form-row select, .form-row textarea {
  width: 100%;
  font-family: var(--font-body);
  font-size: 0.95rem;
  padding: 12px 14px;
  border: 1px solid var(--line-strong);
  background: var(--paper);
  color: var(--ink);
}

.form-row input:focus, .form-row select:focus, .form-row textarea:focus {
  outline: 2px solid var(--brass);
  outline-offset: 1px;
  border-color: var(--brass);
}

.form-row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
@media (max-width: 560px) { .form-row-2 { grid-template-columns: 1fr; } }

.form-note { font-size: 0.82rem; color: var(--ink-soft); margin-top: 16px; }

.form-status { font-size: 0.88rem; margin-top: 16px; padding: 12px 16px; display: none; }
.form-status.show { display: block; }
.form-status.success { background: var(--sage-dim); color: #3E4F35; border: 1px solid var(--sage); }
.form-status.error { background: #F3E2DF; color: #6B2D24; border: 1px solid #C98F82; }

.contact-detail { padding: 22px 0; border-bottom: 1px solid var(--line); }
.contact-detail h3 { margin-bottom: 8px; font-size: 1.05rem; }

/* ---------- Footer ---------- */

.site-footer { background: var(--ink); color: #BFB6A9; padding: 72px 0 32px; }

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 44px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

.footer-brand { font-family: var(--font-display); font-size: 1.3rem; color: var(--cream-white); margin-bottom: 14px; }
.footer-grid p { color: #A89E90; font-size: 0.88rem; max-width: 34ch; }

.footer-col h4 {
  color: var(--cream-white);
  font-family: var(--font-body);
  font-size: 0.82rem;
  font-weight: 600;
  margin-bottom: 16px;
}

.footer-col a { display: block; font-size: 0.88rem; color: #A89E90; margin-bottom: 11px; transition: color 0.15s; }
.footer-col a:hover { color: var(--cream-white); }

.footer-bottom {
  padding-top: 26px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 0.8rem;
  color: #7E7466;
}

@media (max-width: 880px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr; } }

/* ---------- Page header (interior pages) ---------- */

.page-header { padding: 64px 0 52px; border-bottom: 1px solid var(--line); }
.page-header p { margin-top: 16px; font-size: 1.05rem; }

/* ---------- Utility ---------- */

.mt-0 { margin-top: 0; }
