/* =========================================================
   Happiness Is You Still Being You — ysby.co.uk
   Shared stylesheet for all five pages.
   Palette and type taken from the book cover.
   ========================================================= */

/* ----- Design tokens ----- */
:root {
  --cream:        #f7efe0;   /* page background */
  --cream-deep:   #f0e6d2;   /* alternating section background */
  --cream-card:   #fbf6ec;   /* raised cards */
  --navy:         #1c2b3a;   /* headings, primary buttons */
  --navy-soft:    #2a3c4e;
  --ink:          #26333f;   /* body text */
  --ink-soft:     #52616e;   /* muted text */
  --gold:         #b78a34;   /* accents, rules, author name */
  --gold-light:   #cba45a;
  --rust:         #c05b39;   /* sparing highlight accent */
  --line:         rgba(183, 138, 52, 0.32);
  --line-soft:    rgba(28, 43, 58, 0.12);
  --shadow:       0 18px 44px rgba(28, 43, 58, 0.10);
  --shadow-soft:  0 8px 24px rgba(28, 43, 58, 0.07);

  --font-display: "Playfair Display", Georgia, "Times New Roman", serif;
  --font-body:    "Lora", Georgia, "Times New Roman", serif;
  --font-eyebrow: "Montserrat", -apple-system, "Segoe UI", Helvetica, Arial, sans-serif;

  --wrap: 1120px;
  --wrap-narrow: 820px;
}

/* ----- Reset ----- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1.075rem;
  line-height: 1.72;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; display: block; }
a { color: var(--navy); text-decoration: none; }
a:hover { color: var(--rust); }

/* ----- Layout ----- */
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.wrap-narrow { max-width: var(--wrap-narrow); }
section { padding: 88px 0; }
.section-alt { background: var(--cream-deep); }
.section-navy { background: var(--navy); color: #f3ead9; }
.section-navy h2, .section-navy h3 { color: #ffffff; }

/* ----- Typography ----- */
h1, h2, h3, h4 { font-family: var(--font-display); color: var(--navy); font-weight: 700; line-height: 1.12; margin: 0 0 0.5em; }
h1 { font-size: clamp(2.5rem, 6vw, 4.15rem); letter-spacing: -0.01em; }
h2 { font-size: clamp(1.9rem, 3.6vw, 2.7rem); }
h3 { font-size: clamp(1.3rem, 2.2vw, 1.6rem); }
p { margin: 0 0 1.15em; }
.lead { font-size: 1.28rem; line-height: 1.6; color: var(--ink); }
.muted { color: var(--ink-soft); }
strong { font-weight: 600; }
em { color: var(--rust); }

.eyebrow {
  font-family: var(--font-eyebrow);
  text-transform: uppercase;
  letter-spacing: 0.22em;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--gold);
  margin: 0 0 1.1rem;
}
.section-navy .eyebrow { color: var(--gold-light); }
.accent { color: var(--rust); }

/* ----- Ornamental divider (echoes the cover rule) ----- */
.rule {
  display: flex; align-items: center; justify-content: center; gap: 14px;
  margin: 0 0 2.4rem;
}
.rule::before, .rule::after {
  content: ""; height: 1px; width: 64px; background: var(--gold);
  opacity: 0.7;
}
.rule .diamond { width: 7px; height: 7px; background: var(--gold); transform: rotate(45deg); }
.rule.center { margin-left: auto; margin-right: auto; }
.rule.start { justify-content: flex-start; }
.rule.start::before { display: none; }

/* ----- Buttons ----- */
.btn {
  display: inline-flex; align-items: center; gap: 0.55em;
  font-family: var(--font-eyebrow); font-weight: 600;
  font-size: 0.86rem; letter-spacing: 0.06em;
  padding: 15px 30px; border-radius: 2px; cursor: pointer;
  border: 1.5px solid var(--navy); transition: all 0.2s ease;
  text-align: center;
}
.btn-primary { background: var(--navy); color: #f7efe0; }
.btn-primary:hover { background: #12202d; color: #fff; transform: translateY(-1px); }
.btn-ghost { background: transparent; color: var(--navy); }
.btn-ghost:hover { background: var(--navy); color: #f7efe0; }
.btn-gold { background: var(--gold); border-color: var(--gold); color: #fff; }
.btn-gold:hover { background: #a67a29; border-color: #a67a29; color: #fff; }
.section-navy .btn-ghost { color: #f3ead9; border-color: rgba(243,234,217,0.55); }
.section-navy .btn-ghost:hover { background: #f3ead9; color: var(--navy); }
.btn-row { display: flex; flex-wrap: wrap; gap: 16px; }
.btn-disabled { opacity: 0.45; cursor: not-allowed; pointer-events: none; }

.arrow-link {
  font-family: var(--font-eyebrow); font-weight: 600; font-size: 0.85rem;
  letter-spacing: 0.05em; color: var(--rust); display: inline-flex; align-items: center; gap: 0.4em;
}
.arrow-link::after { content: "\2192"; transition: transform 0.2s ease; }
.arrow-link:hover { color: var(--navy); }
.arrow-link:hover::after { transform: translateX(4px); }

/* ----- Header / nav ----- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(247, 239, 224, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.nav {
  display: flex; align-items: center; justify-content: space-between;
  height: 76px;
}
.brand { display: flex; align-items: center; gap: 12px; }
.brand .bowtie { width: 44px; height: auto; flex: none; }
.brand-name {
  font-family: var(--font-display); font-weight: 700; color: var(--navy);
  font-size: 1.12rem; line-height: 1; letter-spacing: 0.01em;
}
.brand-name span { display: block; font-family: var(--font-eyebrow); font-weight: 600;
  font-size: 0.6rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--gold); margin-top: 4px; }

.nav-links { display: flex; align-items: center; gap: 22px; list-style: none; margin: 0; padding: 0; }
.nav-links a {
  font-family: var(--font-eyebrow); font-weight: 500; font-size: 0.82rem;
  letter-spacing: 0.04em; color: var(--navy); padding: 6px 0; position: relative;
}
.nav-links a::after {
  content: ""; position: absolute; left: 0; bottom: 0; width: 0; height: 2px;
  background: var(--rust); transition: width 0.2s ease;
}
.nav-links a:hover, .nav-links a.active { color: var(--rust); }
.nav-links a.active::after, .nav-links a:hover::after { width: 100%; }
.nav-cta { margin-left: 6px; }
.nav-cta .btn { padding: 11px 22px; font-size: 0.78rem; }

.nav-toggle { display: none; background: none; border: 0; cursor: pointer; padding: 8px; }
.nav-toggle span { display: block; width: 24px; height: 2px; background: var(--navy); margin: 5px 0; transition: 0.25s; }

/* ----- Hero ----- */
.hero { padding: 76px 0 84px; position: relative; overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 60px; align-items: center; }
.hero h1 { margin-bottom: 0.3em; }
.hero .lead { max-width: 33ch; }
.hero-credit {
  font-family: var(--font-eyebrow); font-weight: 500; font-size: 0.82rem;
  letter-spacing: 0.05em; color: var(--ink-soft); margin: 22px 0 30px;
  padding-left: 16px; border-left: 2px solid var(--gold);
}
.hero-media { position: relative; }

/* ----- Photo placeholder ----- */
.photo-ph {
  position: relative; border-radius: 4px; overflow: hidden;
  background:
    radial-gradient(120% 90% at 70% 20%, #23384b 0%, #1c2b3a 55%, #16232f 100%);
  border: 1px solid rgba(183,138,52,0.35);
  box-shadow: var(--shadow);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center; color: #e9dcc2; min-height: 440px; padding: 34px;
}
.photo-ph.portrait { aspect-ratio: 4 / 5; min-height: 0; }
.photo-ph .bowtie { width: 96px; opacity: 0.92; margin-bottom: 22px; }
.photo-ph .ph-label { font-family: var(--font-eyebrow); text-transform: uppercase; letter-spacing: 0.2em; font-size: 0.68rem; color: var(--gold-light); }
.photo-ph .ph-note { font-family: var(--font-eyebrow); font-size: 0.74rem; color: rgba(233,220,194,0.6); margin-top: 8px; letter-spacing: 0.03em; }
.ph-frame { position: absolute; inset: 12px; border: 1px solid rgba(203,164,90,0.4); border-radius: 2px; pointer-events: none; }
.author-photo { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: center 28%; border-radius: 4px; border: 1px solid var(--line); box-shadow: var(--shadow); background: var(--cream-deep); }
.speaking-photo { width: 100%; border-radius: 4px; border: 1px solid var(--line); box-shadow: var(--shadow); }
.photo-caption { font-family: var(--font-eyebrow); font-size: 0.74rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-soft); text-align: center; margin-top: 12px; }

/* ----- Three feature cards (home) ----- */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.card {
  background: var(--cream-card); border: 1px solid var(--line);
  border-radius: 4px; padding: 34px 30px; box-shadow: var(--shadow-soft);
  display: flex; flex-direction: column;
}
.card h3 { margin-bottom: 0.5em; }
.card p { color: var(--ink-soft); font-size: 1rem; }
.card .arrow-link { margin-top: auto; padding-top: 12px; }
.card-cover { margin: -34px -30px 22px; background: var(--navy); padding: 26px; text-align: center; }
.card-cover img { margin: 0 auto; max-height: 220px; width: auto; box-shadow: 0 10px 26px rgba(0,0,0,0.35); }

/* ----- Two column feature (book / method) ----- */
.split { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 60px; align-items: center; }
.split.reverse { grid-template-columns: 1.1fr 0.9fr; }
.book-cover-wrap { display: flex; justify-content: center; }
.book-cover-wrap img, .book-cover-wrap svg {
  width: 100%; max-width: 360px; height: auto; border-radius: 3px;
  box-shadow: 0 24px 50px rgba(28,43,58,0.28); border: 1px solid var(--line);
}

/* ----- Lists with bowtie markers ----- */
.tick-list { list-style: none; margin: 1.4rem 0 0; padding: 0; }
.tick-list li {
  position: relative; padding: 0 0 1rem 40px; margin: 0;
  font-size: 1.06rem;
}
.tick-list li::before {
  content: ""; position: absolute; left: 0; top: 0.5em; width: 18px; height: 12px;
  background: var(--gold);
  -webkit-mask: var(--bowtie-mask) center / contain no-repeat;
          mask: var(--bowtie-mask) center / contain no-repeat;
}
.section-navy .tick-list li::before { background: var(--gold-light); }
.two-col { columns: 2; column-gap: 48px; }
.two-col .tick-list li { break-inside: avoid; }

/* ----- Video holding space ----- */
.video-holder {
  position: relative; aspect-ratio: 16 / 9; width: 100%;
  background: radial-gradient(120% 120% at 50% 30%, #23384b 0%, #1c2b3a 60%, #141f2a 100%);
  border: 1px solid rgba(203,164,90,0.4); border-radius: 6px;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center; color: #ecdfc6; box-shadow: var(--shadow); overflow: hidden;
}
.video-holder .play {
  width: 84px; height: 84px; border-radius: 50%; border: 2px solid var(--gold-light);
  display: flex; align-items: center; justify-content: center; margin-bottom: 20px;
  background: rgba(183,138,52,0.14);
}
.video-holder .play::before {
  content: ""; border-style: solid; border-width: 15px 0 15px 24px;
  border-color: transparent transparent transparent var(--gold-light); margin-left: 6px;
}
.video-holder .vh-title { font-family: var(--font-display); font-size: 1.5rem; color: #fff; margin-bottom: 6px; }
.video-holder .vh-note { font-family: var(--font-eyebrow); font-size: 0.76rem; letter-spacing: 0.06em; color: rgba(236,223,198,0.66); max-width: 34ch; }

/* ----- Capture band (middle rung) ----- */
.capture { background: var(--navy); color: #f3ead9; border-radius: 6px; padding: 48px 52px; box-shadow: var(--shadow); }
.capture-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 44px; align-items: center; }
.capture h2 { color: #fff; margin-bottom: 0.35em; }
.capture p { color: rgba(243,234,217,0.82); margin-bottom: 0; }
.capture .form-row { display: flex; gap: 12px; flex-wrap: wrap; }
.capture input[type=email] {
  flex: 1 1 220px; padding: 15px 18px; border-radius: 3px; border: 1px solid rgba(243,234,217,0.3);
  background: rgba(255,255,255,0.06); color: #fff; font-family: var(--font-body); font-size: 1rem;
}
.capture input[type=email]::placeholder { color: rgba(243,234,217,0.5); }
.capture .form-note { font-family: var(--font-eyebrow); font-size: 0.72rem; letter-spacing: 0.04em; color: rgba(243,234,217,0.6); margin-top: 14px; }
.form-success { display: none; font-family: var(--font-eyebrow); font-size: 0.95rem; color: var(--gold-light); }
.form-success.show { display: block; }

/* ----- Contact form ----- */
.form-card { background: var(--cream-card); border: 1px solid var(--line); border-radius: 6px; padding: 44px; box-shadow: var(--shadow-soft); }
.field { margin-bottom: 22px; }
.field label { display: block; font-family: var(--font-eyebrow); font-weight: 600; font-size: 0.78rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--navy); margin-bottom: 8px; }
.field label .opt { color: var(--ink-soft); font-weight: 500; text-transform: none; letter-spacing: 0.02em; }
.field input, .field select, .field textarea {
  width: 100%; padding: 14px 16px; border: 1px solid var(--line-soft); border-radius: 3px;
  background: #fff; font-family: var(--font-body); font-size: 1.02rem; color: var(--ink);
}
.field input:focus, .field select:focus, .field textarea:focus { outline: 2px solid var(--gold); outline-offset: 1px; border-color: var(--gold); }
.field textarea { min-height: 150px; resize: vertical; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.honeypot { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* ----- Quote block ----- */
.pullquote {
  font-family: var(--font-display); font-size: clamp(1.5rem, 3vw, 2.05rem);
  line-height: 1.4; color: var(--navy); font-style: italic; font-weight: 500;
  border-left: 3px solid var(--gold); padding-left: 28px; margin: 0 0 1.6rem;
}

/* ----- Prompt cards ----- */
.prompt-card { background: var(--cream-card); border: 1px solid var(--line); border-radius: 4px; padding: 26px 28px; margin-bottom: 22px; box-shadow: var(--shadow-soft); }
.prompt-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 14px; flex-wrap: wrap; }
.prompt-head h3 { margin: 0; }
.prompt-text {
  white-space: pre-wrap; background: #fff; border-left: 3px solid var(--gold);
  border-radius: 0 3px 3px 0; padding: 20px 22px; font-size: 1.01rem; line-height: 1.7; color: var(--ink);
}
.prompt-text .ph { color: var(--rust); font-style: italic; }
.prompt-text .ph.filled { color: var(--ink); font-style: normal; background: rgba(183,138,52,0.13); border-radius: 2px; padding: 0 3px; }
.fill-ins { margin-top: 18px; border-top: 1px dashed var(--line); padding-top: 18px; }
.fill-label { font-family: var(--font-eyebrow); font-size: 0.72rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--gold); margin-bottom: 14px; }
.fill-field { margin-bottom: 14px; }
.fill-field:last-child { margin-bottom: 0; }
.fill-field > span { display: block; font-family: var(--font-eyebrow); font-size: 0.8rem; font-weight: 600; color: var(--navy); margin-bottom: 6px; }
.fill-field textarea, .fill-field input {
  width: 100%; padding: 12px 14px; border: 1px solid var(--line-soft); border-radius: 3px;
  background: #fff; font-family: var(--font-body); font-size: 1rem; color: var(--ink);
}
.fill-field textarea { min-height: 92px; resize: vertical; }
.fill-field textarea:focus, .fill-field input:focus { outline: 2px solid var(--gold); outline-offset: 1px; border-color: var(--gold); }
.copy-btn {
  font-family: var(--font-eyebrow); font-weight: 600; font-size: 0.72rem; letter-spacing: 0.08em;
  text-transform: uppercase; padding: 9px 18px; border-radius: 2px; border: 1.5px solid var(--navy);
  background: transparent; color: var(--navy); cursor: pointer; transition: all 0.2s ease; flex: none;
}
.copy-btn:hover { background: var(--navy); color: var(--cream); }
.copy-btn.done { background: var(--gold); border-color: var(--gold); color: #fff; }
.note-box { background: var(--cream-deep); border: 1px solid var(--line); border-radius: 4px; padding: 28px 30px; }
.note-box .tick-list li { padding-bottom: 0.7rem; }

/* ----- Hidden placeholder sections (testimonials, reviews) ----- */
.hidden-section { display: none; }

/* ----- Contact strip ----- */
.contact-strip { text-align: center; }
.contact-strip .email { font-family: var(--font-display); font-size: clamp(1.5rem, 3vw, 2.1rem); color: var(--gold); }
.contact-strip .email:hover { color: var(--rust); }

/* ----- Footer ----- */
.site-footer { background: var(--navy); color: #d9cdb2; padding: 60px 0 34px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; align-items: start; }
.site-footer h4 { color: #fff; font-family: var(--font-eyebrow); font-size: 0.76rem; letter-spacing: 0.16em; text-transform: uppercase; font-weight: 600; margin-bottom: 18px; }
.site-footer .bowtie { width: 40px; margin-bottom: 16px; }
.site-footer .f-title { font-family: var(--font-display); font-size: 1.35rem; color: #fff; margin-bottom: 6px; line-height: 1.2; }
.site-footer .f-tag { font-family: var(--font-eyebrow); font-size: 0.74rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--gold-light); }
.footer-links { list-style: none; margin: 0; padding: 0; }
.footer-links li { margin-bottom: 10px; }
.footer-links a { color: #d9cdb2; font-size: 0.98rem; }
.footer-links a:hover { color: var(--gold-light); }
.site-footer .f-email { color: var(--gold-light); }
.footer-base {
  margin-top: 44px; padding-top: 22px; border-top: 1px solid rgba(243,234,217,0.14);
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px;
  font-family: var(--font-eyebrow); font-size: 0.72rem; letter-spacing: 0.05em; color: rgba(217,205,178,0.6);
}

/* ----- Helpers ----- */
.center { text-align: center; }
.mt-0 { margin-top: 0; }
.max-60 { max-width: 60ch; }
.max-60.center { margin-left: auto; margin-right: auto; }
.stack-sm > * + * { margin-top: 14px; }

/* ----- Responsive ----- */
@media (max-width: 900px) {
  section { padding: 64px 0; }
  .hero-grid, .split, .split.reverse, .capture-grid { grid-template-columns: 1fr; gap: 40px; }
  .hero-media { order: -1; max-width: 420px; }
  .cards { grid-template-columns: 1fr; gap: 20px; }
  .footer-grid { grid-template-columns: 1fr; gap: 30px; }
  .two-col { columns: 1; }
  .nav-links, .nav-cta { display: none; }
  .nav-toggle { display: block; }
  .site-header.open .nav-links {
    display: flex; flex-direction: column; align-items: flex-start; gap: 4px;
    position: absolute; top: 76px; left: 0; right: 0; background: var(--cream);
    border-bottom: 1px solid var(--line); padding: 18px 24px 24px;
  }
  .site-header.open .nav-links a { padding: 10px 0; width: 100%; border-bottom: 1px solid var(--line-soft); }
  .site-header.open .nav-cta { display: block; position: absolute; top: 76px; margin-top: 250px; left: 24px; right: 24px; }
  .capture { padding: 36px 28px; }
  .form-card { padding: 30px 22px; }
  .field-row { grid-template-columns: 1fr; gap: 0; }
}
@media (max-width: 520px) {
  .btn-row .btn { width: 100%; justify-content: center; }
}

/* ----- Bowtie mask (used for list markers) ----- */
:root {
  --bowtie-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 36 24'%3E%3Cpath d='M17 12L4 3v18zM19 12l13-9v18zM14 12a4 4 0 018 0 4 4 0 01-8 0z'/%3E%3C/svg%3E");
}
