/* ==========================================================================
   Tom Brittingham Coaching — shared styles
   Design tokens: warm bronze/amber accent (echoes the golden-hour photography),
   deep charcoal navy for dark sections, warm off-white page background.
   Fonts: Fraunces (display/serif, editorial warmth) + Inter (body, clean & plain).
   ========================================================================== */

:root {
  --navy: #161b22;
  --navy-soft: #212834;
  --cream: #faf7f2;
  --surface: #ffffff;
  --ink: #20242c;
  --ink-muted: #5c6370;
  --amber: #b8803a;
  --amber-deep: #8f5f26;
  --amber-pale: #f3e6d4;
  --border: #e6ded2;
  --white: #ffffff;
  --shadow: 0 20px 50px -20px rgba(22, 27, 34, 0.35);
  --max-width: 1180px;
  --radius: 14px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: "Fraunces", Georgia, serif;
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.01em;
  margin: 0 0 0.5em;
  text-wrap: balance;
}

h1 { font-size: clamp(2.3rem, 5vw, 3.6rem); font-weight: 600; }
h2 { font-size: clamp(1.8rem, 3.4vw, 2.5rem); }
h3 { font-size: clamp(1.25rem, 2vw, 1.5rem); }

p { margin: 0 0 1.1em; max-width: 62ch; }

a { color: inherit; }

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

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

/* ---------- Nav ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(250, 247, 242, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 28px;
  max-width: var(--max-width);
  margin: 0 auto;
}

.nav-logo {
  font-family: "Fraunces", serif;
  font-weight: 600;
  font-size: 1.15rem;
  text-decoration: none;
  color: var(--ink);
  letter-spacing: -0.01em;
}

.nav-logo span { color: var(--amber-deep); }

.nav-links {
  display: flex;
  align-items: center;
  gap: 30px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links a {
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--ink-muted);
  transition: color 0.15s ease;
}

.nav-links a:hover,
.nav-links a.active { color: var(--ink); }

.nav-tag {
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  background: var(--amber-pale);
  color: var(--amber-deep);
  padding: 2px 7px;
  border-radius: 100px;
  margin-left: 6px;
  vertical-align: middle;
  font-weight: 700;
}

.nav-cta {
  display: inline-flex;
  align-items: center;
  background: var(--navy);
  color: var(--white) !important;
  padding: 10px 20px;
  border-radius: 100px;
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
  transition: background 0.15s ease, transform 0.15s ease;
}

.nav-cta:hover { background: var(--amber-deep); transform: translateY(-1px); }

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--ink);
  margin: 5px 0;
  transition: 0.2s ease;
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 15px 30px;
  border-radius: 100px;
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: transform 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
  font-family: "Inter", sans-serif;
}

.btn-primary {
  background: var(--amber);
  color: var(--white);
  box-shadow: 0 12px 24px -10px rgba(184, 128, 58, 0.55);
}

.btn-primary:hover { background: var(--amber-deep); transform: translateY(-2px); }

.btn-ghost {
  background: transparent;
  color: var(--white);
  border: 1px solid rgba(255, 255, 255, 0.45);
}

.btn-ghost:hover { background: rgba(255, 255, 255, 0.12); }

.btn-dark {
  background: var(--navy);
  color: var(--white);
}

.btn-dark:hover { background: var(--navy-soft); transform: translateY(-2px); }

/* ---------- Hero (Home) ---------- */

.hero {
  position: relative;
  min-height: 92vh;
  display: flex;
  align-items: flex-end;
  color: var(--white);
  overflow: hidden;
}

.hero-media {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 62% 12%;
}

.hero-scrim {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(14, 16, 20, 0.15) 0%, rgba(14, 16, 20, 0.35) 45%, rgba(10, 11, 14, 0.92) 100%),
    linear-gradient(90deg, rgba(10, 11, 14, 0.55) 0%, rgba(10, 11, 14, 0.05) 65%);
}

.hero-content {
  position: relative;
  z-index: 1;
  padding: 0 28px 72px;
  max-width: var(--max-width);
  margin: 0 auto;
  width: 100%;
}

.hero-content .eyebrow { color: var(--amber-pale); }

.hero-content h1 {
  color: var(--white);
  max-width: 16ch;
  font-size: clamp(2.4rem, 5.4vw, 3.9rem);
}

.hero-content .subhead {
  color: rgba(255, 255, 255, 0.86);
  max-width: 52ch;
  font-size: clamp(1.05rem, 1.6vw, 1.25rem);
}

.hero-note {
  margin-top: 36px;
  display: flex;
  gap: 14px;
  align-items: center;
}

/* ---------- Eyebrow / section labels ---------- */

.eyebrow {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--amber-deep);
  margin-bottom: 14px;
}

/* ---------- Generic sections ---------- */

section { padding: 96px 0; }

.section-tight { padding: 64px 0; }

.section-dark {
  background: var(--navy);
  color: rgba(255, 255, 255, 0.92);
}

.section-dark h2, .section-dark h3 { color: var(--white); }
.section-dark p { color: rgba(255, 255, 255, 0.72); }
.section-dark .eyebrow { color: var(--amber-pale); }

.section-header { max-width: 640px; margin-bottom: 52px; }
.section-header.center { margin-left: auto; margin-right: auto; text-align: center; }

/* ---------- Moments (softened "problem" section) ---------- */

.moments-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  list-style: none;
  margin: 0 0 44px;
  padding: 0;
}

.moment-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 30px 26px;
}

.moment-icon {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--amber-pale);
  color: var(--amber-deep);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
}

.moment-icon svg { width: 18px; height: 18px; }

.moment-card p {
  margin: 0;
  font-weight: 500;
  font-size: 1.05rem;
  color: var(--ink);
}

.problem-close,
.pull-line {
  font-size: 1.2rem;
  font-weight: 500;
  color: var(--ink);
  border-left: 3px solid var(--amber);
  padding-left: 20px;
  max-width: 54ch;
}

/* ---------- Pull quote (editorial, for story content) ---------- */

.pull-quote {
  font-family: "Fraunces", serif;
  font-size: clamp(1.3rem, 2.2vw, 1.75rem);
  font-weight: 500;
  font-style: italic;
  line-height: 1.45;
  color: var(--ink);
  border-left: 3px solid var(--amber);
  padding-left: 26px;
  max-width: 56ch;
  margin: 1.4em 0;
}

/* ---------- Journey (3-phase engagement teaser) ---------- */

.journey {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 36px;
}

.journey-step {
  padding-top: 26px;
  border-top: 3px solid var(--amber);
}

.journey-phase {
  display: block;
  font-family: "Fraunces", serif;
  font-size: 0.8rem;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--amber-deep);
  font-weight: 700;
  margin-bottom: 12px;
}

.journey-step h3 { margin-bottom: 10px; }
.journey-step p { color: var(--ink-muted); margin-bottom: 0; }

.section-dark .journey-phase { color: var(--amber-pale); }
.section-dark .journey-step { border-top-color: var(--amber); }

.journey-foot {
  margin-top: 44px;
  font-size: 1rem;
  color: var(--ink-muted);
  max-width: 56ch;
}

/* ---------- Guide teaser / split layout ---------- */

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.split-reverse { direction: rtl; }
.split-reverse > * { direction: ltr; }

.split img {
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.portrait-frame {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  aspect-ratio: 4 / 5;
}

.portrait-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 0;
  box-shadow: none;
}

/* ---------- Pillars ---------- */

.pillars-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.pillar-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 22px;
  text-align: center;
  color: var(--ink);
}

.pillar-card .pillar-card-name {
  display: block;
  font-weight: 600;
  font-size: 0.98rem;
  margin-bottom: 8px;
}

.pillar-card p {
  margin: 0;
  font-weight: 400;
  font-size: 0.88rem;
  color: var(--ink-muted);
}

.pillar-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--amber);
  margin: 0 auto 16px;
}

/* ---------- Services list (narrative, no numbering) ---------- */

.pillar-list { list-style: none; margin: 0; padding: 0; }

.pillar-row {
  padding: 32px 0 32px 28px;
  border-top: 1px solid var(--border);
  border-left: 3px solid var(--amber-pale);
  transition: border-color 0.2s ease;
}

.pillar-row:last-child { border-bottom: 1px solid var(--border); }
.pillar-row:hover { border-left-color: var(--amber); }

.pillar-row h3 { margin-bottom: 8px; }
.pillar-row p { margin: 0; color: var(--ink-muted); }
.pillar-row .pillar-lede {
  color: var(--ink);
  font-weight: 500;
  margin-bottom: 10px;
}

/* ---------- Card / teaser ---------- */

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 36px;
}

.teaser-5x5 {
  background: var(--navy);
  color: var(--white);
  border-radius: var(--radius);
  padding: 48px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 32px;
}

.teaser-5x5 p { color: rgba(255,255,255,0.75); margin-bottom: 0; }

.tag-coming-soon {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: var(--amber);
  color: var(--white);
  padding: 5px 12px;
  border-radius: 100px;
}

/* ---------- CTA band ---------- */

.cta-band {
  background: var(--navy);
  color: var(--white);
  text-align: center;
  padding: 90px 0;
}

.cta-band h2 { color: var(--white); max-width: 18ch; margin: 0 auto 28px; }

/* ---------- Pricing table ---------- */

.pricing-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}

.pricing-table th, .pricing-table td {
  text-align: left;
  padding: 20px 24px;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
}

.pricing-table th {
  font-family: "Fraunces", serif;
  font-weight: 600;
  background: var(--cream);
  font-size: 0.95rem;
}

.pricing-table tr:last-child td { border-bottom: none; }

.pricing-table td:first-child { font-weight: 700; }

.price-cell { font-weight: 700; color: var(--amber-deep); white-space: nowrap; }

.pricing-note {
  margin-top: 18px;
  font-size: 0.92rem;
  color: var(--ink-muted);
}

/* ---------- Pricing cards (softer alternative to the bare table) ---------- */

.pricing-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.pricing-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px 26px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.pricing-card.featured {
  border-color: var(--amber);
  box-shadow: var(--shadow);
}

.pricing-card h3 { margin-bottom: 0; }
.pricing-card .price-cell { font-size: 1.35rem; display: block; white-space: normal; }
.pricing-card .price-tag-note { font-size: 0.85rem; font-weight: 400; color: var(--ink-muted); display: block; margin-top: 2px; }
.pricing-card p.card-desc { margin: 0; color: var(--ink-muted); flex-grow: 1; }

/* ---------- Form (Book a Call) ---------- */

.form-grid {
  display: grid;
  gap: 20px;
}

.form-row-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

label {
  display: block;
  font-weight: 600;
  font-size: 0.92rem;
  margin-bottom: 7px;
}

input, textarea {
  width: 100%;
  padding: 13px 16px;
  border: 1px solid var(--border);
  border-radius: 10px;
  font-family: inherit;
  font-size: 1rem;
  background: var(--surface);
  color: var(--ink);
}

input:focus, textarea:focus {
  outline: none;
  border-color: var(--amber);
  box-shadow: 0 0 0 3px rgba(184, 128, 58, 0.18);
}

textarea { resize: vertical; min-height: 110px; }

#form-success {
  display: none;
  background: var(--amber-pale);
  border: 1px solid var(--amber);
  border-radius: var(--radius);
  padding: 22px 26px;
  margin-top: 24px;
  font-weight: 500;
}

#form-success.visible { display: block; }

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

.site-footer {
  background: var(--navy);
  color: rgba(255, 255, 255, 0.6);
  padding: 48px 0;
  font-size: 0.9rem;
}

.footer-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}

.footer-links { display: flex; gap: 22px; list-style: none; padding: 0; margin: 0; }
.footer-links a { text-decoration: none; color: rgba(255,255,255,0.6); }
.footer-links a:hover { color: var(--white); }

.footer-social { display: flex; gap: 10px; list-style: none; padding: 0; margin: 0; }
.footer-social a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: rgba(255, 255, 255, 0.6);
  transition: border-color 0.2s ease, color 0.2s ease;
}
.footer-social a:hover { border-color: var(--amber); color: var(--amber-pale); }
.footer-social svg { width: 16px; height: 16px; }

/* ---------- Image break (full-bleed photo + quote, mid-page breathing room) ---------- */

.image-break {
  position: relative;
  min-height: 42vh;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  overflow: hidden;
}

.image-break img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.image-break .scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(10, 11, 14, 0.4), rgba(10, 11, 14, 0.62));
}

.image-break .quote {
  position: relative;
  z-index: 1;
  max-width: 640px;
  text-align: center;
  padding: 0 28px;
  font-family: "Fraunces", serif;
  font-size: clamp(1.3rem, 2.6vw, 1.9rem);
  font-weight: 500;
  font-style: italic;
  line-height: 1.42;
}

/* ---------- Life grid (two-up photo pair) ---------- */

.life-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 28px;
}

.life-grid img {
  width: 100%;
  height: 280px;
  object-fit: cover;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

/* ---------- Misc page hero (non-home pages) ---------- */

.page-hero {
  padding: 150px 0 70px;
  background: var(--cream);
  border-bottom: 1px solid var(--border);
}

.page-hero.with-photo {
  padding-top: 150px;
  padding-bottom: 90px;
}

.page-hero.with-photo .container {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 56px;
  align-items: center;
}

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

.text-center { text-align: center; }
.mt-0 { margin-top: 0; }
.muted { color: var(--ink-muted); }
.narrow { max-width: 640px; }
.stack { display: flex; flex-direction: column; gap: 18px; }
.inline-cta { display: flex; gap: 16px; flex-wrap: wrap; align-items: center; }

/* ==========================================================================
   Responsive
   ========================================================================== */

@media (max-width: 920px) {
  .split { grid-template-columns: 1fr; gap: 40px; }
  .split-reverse { direction: ltr; }
  .page-hero.with-photo { padding-top: 130px; }
  .page-hero.with-photo .container { grid-template-columns: 1fr; }
  .teaser-5x5 { grid-template-columns: 1fr; text-align: center; }
}

@media (max-width: 720px) {
  .nav-links { position: fixed; top: 64px; left: 0; right: 0; height: calc(100vh - 64px); height: calc(100dvh - 64px); background: var(--cream); flex-direction: column; justify-content: flex-start; align-items: flex-start; padding: 36px 28px; gap: 26px; overflow-y: auto; transform: translateY(-120%); transition: transform 0.25s ease; z-index: 40; }
  .nav-links.open { transform: translateY(0); }
  .nav-cta { order: 3; }
  .nav-toggle { display: block; }
  .moments-grid { grid-template-columns: 1fr; }
  .pillars-grid { grid-template-columns: 1fr; }
  .journey { grid-template-columns: 1fr; gap: 28px; }
  .pricing-cards { grid-template-columns: 1fr; }
  .life-grid { grid-template-columns: 1fr; }
  .life-grid img { height: 220px; }
  .form-row-2 { grid-template-columns: 1fr; }
  section { padding: 64px 0; }
  .hero { min-height: 86vh; align-items: flex-end; }
  .hero-content { padding-bottom: 56px; }
  .page-hero { padding: 120px 0 48px; }
  .image-break { min-height: 36vh; }
}
