/* ============================================
   Marriage Breakthrough Program
   Styling matched to stephenhedger.com
   (WordPress / OptimizePress / Corporate Pro)
   ============================================ */

:root {
  /* ---- Brand design tokens (extracted from stephenhedger.com) ---- */
  --color-primary: #1b68fb;          /* CTA blue (rgb 27,104,251) */
  --color-primary-hover: #356ae6;    /* CTA blue hover (rgb 53,106,230) */
  --color-secondary: #000139;        /* deep navy (rgb 0,1,57) */
  --color-secondary-deep: #00002a;   /* darker navy for depth */
  --color-accent: #c9a616;           /* gold accent (rgb 201,166,22) */
  --color-accent-soft: #dcc05a;      /* gold on navy */
  --color-burgundy: #890202;         /* EXACT logo "HEDGER" fill (rgb 137,2,2) */
  --color-burgundy-soft: #d4564d;    /* lighter tint of the logo red for dark backgrounds */
  --color-background: #ffffff;
  --color-surface: #f5f2ea;          /* warm off-white eggshell */
  --color-text: #212529;             /* body text (rgba 33,37,41,.8) */
  --color-heading: #1d283d;          /* heading navy-charcoal */
  --color-muted: #65738d;            /* muted text (rgb 101,115,141) */
  --color-border: #e6e8ec;           /* light borders (~ rgb 232,232,232) */
  --font-heading: "Merriweather", Georgia, "Times New Roman", serif;
  --font-body: "IBM Plex Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --button-radius: 4px;
  --section-padding: clamp(60px, 8vw, 104px);

  /* ---- Internal aliases mapped to the tokens above ---- */
  --navy: var(--color-secondary);
  --navy-deep: var(--color-secondary-deep);
  --charcoal: #1f2225;
  --ivory: var(--color-background);
  --ivory-soft: var(--color-surface);
  --gold: var(--color-accent);
  --gold-soft: var(--color-accent-soft);
  --text-dark: var(--color-text);
  --text-muted: var(--color-muted);
  --text-light: #c9d0e0;             /* on navy */
  --text-light-muted: #8d99b2;       /* muted on navy */
  --line: var(--color-border);
  --line-dark: rgba(255, 255, 255, 0.12);
  --radius: 8px;
  --shadow: 0 24px 60px -34px rgba(0, 1, 57, 0.32);
  --maxw: 1140px;
  --serif: var(--font-heading);
  --sans: var(--font-body);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--sans);
  color: var(--text-dark);
  background: var(--color-background);
  font-weight: 400;
  line-height: 1.65;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

.container {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 24px;
}

.container.narrow { max-width: 820px; }

/* ---------- Typography ---------- */
h1, h2, h3 {
  font-family: var(--serif);
  font-weight: 700;
  line-height: 1.2;
  margin: 0;
  letter-spacing: 0;
}

.eyebrow {
  font-family: var(--sans);
  font-size: 13px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--gold);
  margin: 0 0 16px;
}
.eyebrow.center { text-align: center; }

.section-title {
  font-size: clamp(27px, 3.6vw, 35px);
  color: var(--color-heading);
  margin-bottom: 20px;
}
.section-title.center { text-align: center; }

/* Burgundy heading highlight (matches brand logo) */
.hl { color: var(--color-burgundy); }
.hero .hl { color: var(--color-burgundy-soft); }

.lead {
  font-size: clamp(17px, 2vw, 19px);
  color: var(--text-muted);
  max-width: 760px;
  margin: 0 auto 12px;
  line-height: 1.6;
}
.center { text-align: center; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--sans);
  font-weight: 600;
  font-size: 16px;
  letter-spacing: 0;
  text-decoration: none;
  padding: 15px 30px;
  border-radius: var(--button-radius);
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
  line-height: 1.2;
}
.btn-primary {
  background: var(--color-primary);
  color: #fff;
  box-shadow: 0 12px 26px -14px rgba(27, 104, 251, 0.8);
}
.btn-primary:hover { background: var(--color-primary-hover); transform: translateY(-2px); }
.btn-outline {
  background: transparent;
  color: var(--color-heading);
  border-color: #cfd3da;
}
.btn-outline:hover { border-color: var(--color-primary); color: var(--color-primary); background: rgba(27, 104, 251, 0.04); }
.btn-sm { padding: 11px 20px; font-size: 14px; }
.btn-block { width: 100%; }

.cta-row { margin-top: 32px; }
.cta-row.center { display: flex; justify-content: center; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 1px 0 rgba(0, 1, 57, 0.04);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 74px;
  gap: 24px;
}
.brand-name { font-family: var(--serif); font-size: 22px; font-weight: 700; color: #fff; letter-spacing: 0.2px; }
.header-cta { white-space: nowrap; }

.logo {
  display: inline-flex;
  align-items: center;
  line-height: 0;
  flex-shrink: 0;
  transition: opacity 0.2s ease;
}
.logo-img { height: 30px; width: auto; display: block; }
.logo:hover { opacity: 0.85; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  background:
    radial-gradient(1100px 560px at 78% -12%, rgba(27, 104, 251, 0.22), transparent 60%),
    linear-gradient(165deg, #001049 0%, var(--color-secondary) 58%, var(--color-secondary-deep) 100%);
  color: #fff;
  overflow: hidden;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 16% 82%, rgba(201, 166, 22, 0.10), transparent 46%);
  pointer-events: none;
}
.hero-inner {
  position: relative;
  padding: clamp(52px, 7vw, 96px) 24px clamp(48px, 6vw, 84px);
  text-align: left;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.02fr 1.12fr;
  gap: clamp(32px, 5vw, 64px);
  align-items: center;
}
.hero-copy, .hero-media { min-width: 0; }
.hero .eyebrow { color: var(--gold-soft); }
.hero-title {
  font-size: clamp(30px, 4.4vw, 46px);
  color: #fff;
  margin-bottom: 20px;
  letter-spacing: 0;
}
.hero-sub {
  font-size: clamp(17px, 2.2vw, 20px);
  color: var(--text-light);
  max-width: 560px;
  margin: 0 0 30px;
  line-height: 1.6;
}
.hero-video { margin: 0; }
.hero-video-el {
  width: 100%;
  aspect-ratio: 16 / 9;
  height: auto;
  display: block;
  object-fit: cover;
  border-radius: var(--radius);
  border: 1px solid rgba(255, 255, 255, 0.16);
  box-shadow: 0 34px 80px -34px rgba(0, 0, 0, 0.75);
  background: var(--color-secondary);
}
.hero-ctas {
  display: flex;
  gap: 16px;
  justify-content: flex-start;
  flex-wrap: wrap;
  margin-bottom: 30px;
}
.trust-badges {
  list-style: none;
  display: flex;
  gap: 22px 28px;
  justify-content: flex-start;
  flex-wrap: wrap;
  padding: 0;
  margin: 0;
  font-size: 14px;
  letter-spacing: 0.02em;
  color: var(--text-light);
}
.trust-badges li { display: inline-flex; align-items: center; gap: 9px; }
.badge-dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 0 4px rgba(201, 166, 22, 0.18);
}
.hero-quotes {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  margin: clamp(40px, 6vw, 64px) auto 0;
  border-top: 1px solid var(--line-dark);
  padding-top: 38px;
}
.hero-quotes blockquote {
  margin: 0;
  font-family: var(--serif);
  font-style: italic;
  font-size: 18px;
  color: var(--gold-soft);
  line-height: 1.45;
}

/* ---------- Press / As featured in ---------- */
.press { background: #fff; padding: 44px 0; border-bottom: 1px solid var(--line); }
.press-label {
  text-align: center;
  font-size: 12px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--text-muted);
  margin: 0 0 22px;
}
.press-logos {
  display: block;
  width: 100%;
  max-width: 600px;
  height: auto;
  margin: 0 auto;
  opacity: 0.78;
  mix-blend-mode: multiply;
}

/* ---------- Sections ---------- */
.section { padding: var(--section-padding) 0; }
.section-muted { background: var(--color-surface); }

.two-col {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: clamp(36px, 6vw, 80px);
  align-items: center;
}

/* ---------- Feature (image + copy) ---------- */
.feature {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(32px, 5vw, 68px);
  align-items: center;
  margin-bottom: clamp(40px, 6vw, 64px);
}
.feature-copy { min-width: 0; }
.feature-copy .section-title { margin-bottom: 18px; }
.feature-media img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.lead-left { max-width: none; margin: 0 0 8px; }
.band-image {
  width: 100%;
  max-width: 900px;
  height: auto;
  display: block;
  margin: clamp(36px, 5vw, 52px) auto 4px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

/* ---------- Problem grid ---------- */
.problem-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  margin-top: 8px;
}
.problem-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px 28px;
  box-shadow: 0 14px 34px -30px rgba(0, 1, 57, 0.4);
  transition: border-color 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
}
.problem-card:hover { border-color: rgba(27, 104, 251, 0.3); transform: translateY(-3px); box-shadow: 0 18px 40px -28px rgba(0, 1, 57, 0.35); }
.problem-card h3 { font-size: 21px; color: var(--color-heading); margin-bottom: 12px; }
.problem-card p { margin: 0; color: var(--text-muted); font-size: 15.5px; }

/* ---------- Stephen / portrait ---------- */
.portrait { text-align: center; }
.portrait-photo {
  width: 220px;
  height: 220px;
  margin: 0 auto;
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid #fff;
  background: var(--color-secondary);
  box-shadow: var(--shadow);
}
.portrait-caption {
  margin-top: 18px;
  font-size: 13px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-muted);
}
#stephen p { color: var(--text-muted); margin-bottom: 18px; }

/* ---------- Programme phases ---------- */
.phases {
  list-style: none;
  padding: 0;
  margin: 52px auto 0;
  max-width: 860px;
  display: grid;
  gap: 16px;
}
.phase {
  display: grid;
  grid-template-columns: 84px 1fr;
  gap: 24px;
  align-items: start;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px 32px;
  box-shadow: 0 14px 34px -30px rgba(0, 1, 57, 0.5);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.phase:hover { transform: translateX(4px); box-shadow: 0 18px 40px -28px rgba(0, 1, 57, 0.45); }
.phase-num {
  font-family: var(--serif);
  font-size: 42px;
  color: var(--color-primary);
  line-height: 1;
}
.phase h3 { font-size: 23px; color: var(--color-heading); margin-bottom: 8px; }
.phase p { margin: 0; color: var(--text-muted); font-size: 16px; }

/* ---------- Who grid ---------- */
.who-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  margin-top: 52px;
}
.who-card {
  background: var(--color-surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 32px 28px;
  position: relative;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.who-card::before {
  content: "";
  display: block;
  width: 38px;
  height: 3px;
  background: var(--color-primary);
  margin-bottom: 18px;
}
.who-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.who-card h3 { font-size: 21px; color: var(--color-heading); margin-bottom: 10px; }
.who-card p { margin: 0; color: var(--text-muted); font-size: 15.5px; }

/* ---------- Comparison table ---------- */
.table-wrap { margin: 48px auto 0; max-width: 920px; overflow: hidden; border-radius: var(--radius); border: 1px solid var(--line); background: #fff; box-shadow: var(--shadow); }
.compare { width: 100%; border-collapse: collapse; font-size: 16px; }
.compare th, .compare td { padding: 20px 24px; text-align: left; border-bottom: 1px solid var(--line); }
.compare thead th {
  font-family: var(--serif);
  font-size: 20px;
  font-weight: 700;
  background: var(--color-surface);
  color: var(--text-muted);
}
.compare td { color: var(--text-muted); }
.compare .highlight-col { background: rgba(27, 104, 251, 0.07); color: var(--color-heading); border-left: 1px solid rgba(27, 104, 251, 0.22); }
.compare tbody .highlight-col { font-weight: 500; }
.compare thead .highlight-col { color: var(--color-primary); background: rgba(27, 104, 251, 0.1); }
.compare tbody tr:last-child td { border-bottom: none; }

/* ---------- Quotes / testimonials ---------- */
.quote-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 50px;
}
.quote-card {
  margin: 0;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 36px 30px;
  box-shadow: 0 14px 34px -32px rgba(0, 1, 57, 0.5);
  position: relative;
}
.quote-card::before {
  content: "\201C";
  font-family: var(--serif);
  font-size: 66px;
  color: var(--gold);
  opacity: 0.4;
  position: absolute;
  top: 6px; left: 22px;
  line-height: 1;
}
.quote-card p {
  font-family: var(--serif);
  font-style: italic;
  font-size: 21px;
  color: var(--color-heading);
  margin: 22px 0 18px;
  line-height: 1.45;
}
.quote-card cite {
  font-style: normal;
  font-size: 12.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 600;
}

.story-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  margin-top: 28px;
}
.story-card {
  margin: 0;
  background: var(--color-surface);
  color: var(--text-dark);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 38px 36px;
  box-shadow: 0 14px 34px -32px rgba(0, 1, 57, 0.4);
}
.story-card p { font-size: 18px; line-height: 1.65; color: var(--text-dark); margin: 0 0 20px; }
.story-card cite {
  font-style: normal;
  font-size: 12.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 600;
}

/* ---------- Brochure ---------- */
.brochure .fine-print { font-size: 13px; color: var(--text-muted); margin-top: 16px; }
.brochure p { color: var(--text-muted); }
.brochure-visual { display: flex; justify-content: center; }
.brochure-cover {
  width: 100%;
  max-width: 320px;
  height: auto;
  border-radius: 6px;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

/* ---------- Booking embed ---------- */
.booking-embed {
  margin: 44px auto 0;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}
/* Fallback heights sized to the booking page's measured content height at each
   width (it renders ~955px wide-screen, taller as it narrows). These apply only
   until the booking page loads the @iframe-resizer/child script, at which point
   the parent script sets the height dynamically and these are overridden. */
.booking-embed iframe { display: block; width: 100%; border: 0; height: 1010px; }
@media (max-width: 623px) { .booking-embed iframe { height: 1480px; } }
@media (max-width: 439px) { .booking-embed iframe { height: 1780px; } }

/* ---------- Form ---------- */
.apply-form {
  margin: 48px auto 0;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(28px, 5vw, 48px);
  box-shadow: var(--shadow);
}
.field { margin-bottom: 20px; display: flex; flex-direction: column; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field label {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 8px;
}
.field input,
.field select {
  font-family: var(--sans);
  font-size: 16px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: var(--button-radius);
  background: #fff;
  color: var(--text-dark);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  width: 100%;
}
.field input:focus,
.field select:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(27, 104, 251, 0.16);
}
.apply-form .btn-block { margin-top: 8px; }
.privacy-note { font-size: 13px; color: var(--text-muted); text-align: center; margin: 22px 0 0; line-height: 1.6; }
.next-step {
  margin-top: 28px;
  padding: 32px 28px;
  border-radius: var(--radius);
  background: rgba(27, 104, 251, 0.08);
  border: 1px solid rgba(27, 104, 251, 0.25);
  text-align: center;
}
.next-step h3 { font-size: 23px; margin-bottom: 8px; color: var(--color-heading); }
.next-step p { margin: 0 auto 20px; max-width: 520px; color: var(--text-muted); }

/* ---------- FAQ ---------- */
.faq { margin: 46px auto 0; max-width: 760px; }
.faq-item {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  margin-bottom: 14px;
  overflow: hidden;
}
.faq-item summary {
  cursor: pointer;
  list-style: none;
  padding: 22px 26px;
  font-family: var(--serif);
  font-size: 20px;
  font-weight: 700;
  color: var(--color-heading);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+";
  font-family: var(--sans);
  font-size: 26px;
  font-weight: 300;
  color: var(--color-primary);
  transition: transform 0.25s ease;
  line-height: 1;
}
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-body { padding: 0 26px 24px; }
.faq-body p { margin: 0; color: var(--text-muted); font-size: 16px; }

/* ---------- Footer ---------- */
.site-footer { background: var(--color-surface); color: var(--text-muted); padding: 56px 0 40px; border-top: 1px solid var(--line); }
.footer-inner { display: flex; flex-direction: column; gap: 22px; }
.site-footer .brand-name { color: var(--color-heading); font-size: 24px; }
.footer-sub { font-size: 14px; color: var(--text-muted); margin: 6px 0 0; }
.footer-legal-links { display: flex; gap: 22px; flex-wrap: wrap; margin: 4px 0 0; }
.footer-legal-links a { color: var(--text-muted); text-decoration: none; font-size: 12.5px; letter-spacing: 0.02em; }
.footer-legal-links a:hover { color: var(--color-heading); text-decoration: underline; }
.footer-legal { font-size: 12.5px; color: var(--text-muted); margin: 8px 0 0; border-top: 1px solid var(--line); padding-top: 22px; }

/* ---------- Sticky mobile CTA ---------- */
.sticky-cta {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 70;
  padding: 12px 16px calc(12px + env(safe-area-inset-bottom));
  background: rgba(0, 1, 57, 0.97);
  backdrop-filter: blur(8px);
  border-top: 1px solid var(--line-dark);
  display: none;
}

/* ---------- Reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.in { opacity: 1; transform: none; }

/* ============================================
   Responsive
   ============================================ */
@media (max-width: 980px) {
  .problem-grid, .who-grid, .quote-grid { grid-template-columns: repeat(2, 1fr); }
  .two-col { grid-template-columns: 1fr; }
  .hero-grid { grid-template-columns: 1fr; gap: 36px; }
  .feature { grid-template-columns: 1fr; gap: 28px; margin-bottom: 36px; }
  .portrait { order: -1; }
  .story-grid { grid-template-columns: 1fr; }
  .hero-quotes { grid-template-columns: 1fr; gap: 16px; }
}

@media (max-width: 640px) {
  body { font-size: 16px; }
  .header-cta { display: none; }
  .header-inner { height: 64px; }
  .logo-img { height: 26px; }
  .problem-grid, .who-grid, .quote-grid { grid-template-columns: 1fr; }
  .field-row { grid-template-columns: 1fr; }
  .phase { grid-template-columns: 56px 1fr; gap: 16px; padding: 24px; }
  .phase-num { font-size: 32px; }
  .compare th, .compare td { padding: 14px 14px; font-size: 14px; }
  .compare thead th { font-size: 16px; }
  .sticky-cta { display: block; }
  body { padding-bottom: 76px; }
  .hero-ctas .btn { width: 100%; }
  .trust-badges { gap: 10px 22px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .btn, .phase, .who-card, .problem-card { transition: none; }
}
