/* ============================================================
   The Rainmaker Way — shared styles
   Palette + type pulled from dhtrainmaker.netlify.app
   ============================================================ */

:root {
  --ink-navy:     #002B4D;
  --logo-navy:    #225072;
  --light-blue:   #7CAEE1;
  --cloud-accent: #B1D0EF;
  --cloud-light:  #E8F1F8;
  --honey:        #C8922A;
  --honey-hover:  #B5831F;
  --teal:         #7BD9D9;
  --white:        #FFFFFF;
  --off-white:    #F7F9FB;
  --text-body:    #334155;
  --text-muted:   #64748B;
  --border-light: #E2E8F0;

  --shadow: 0 1px 3px rgba(0,43,77,0.06), 0 4px 12px rgba(0,43,77,0.04);
  --shadow-lg: 0 2px 16px rgba(0,43,77,0.10), 0 10px 30px rgba(0,43,77,0.08);
  --radius: 16px;
  --radius-sm: 8px;
  --maxw: 1080px;
}

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

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: 'Nunito', system-ui, -apple-system, sans-serif;
  color: var(--text-body);
  background: var(--white);
  line-height: 1.6;
  font-size: 18px;
  -webkit-font-smoothing: antialiased;
}

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

a { color: var(--logo-navy); }

h1, h2, h3 {
  color: var(--ink-navy);
  line-height: 1.15;
  margin: 0 0 .5em;
  font-weight: 800;
  letter-spacing: -0.01em;
}

h1 { font-size: clamp(2rem, 7vw, 3.4rem); }
h2 { font-size: clamp(1.6rem, 5vw, 2.4rem); }
h3 { font-size: clamp(1.2rem, 3.5vw, 1.5rem); }

p { margin: 0 0 1rem; }

/* ---------- layout ---------- */
.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 22px; }

section { padding: 56px 0; }
@media (min-width: 720px) { section { padding: 84px 0; } }

.section-light { background: var(--off-white); }
.section-cloud { background: var(--cloud-light); }

.eyebrow {
  text-transform: uppercase;
  letter-spacing: .12em;
  font-size: .8rem;
  font-weight: 800;
  color: var(--logo-navy);
  margin: 0 0 .6rem;
}
.section-navy .eyebrow { color: var(--teal); }

.lead { font-size: 1.15rem; color: var(--text-muted); }
.center { text-align: center; }
.measure { max-width: 640px; }
.measure.center { margin-left: auto; margin-right: auto; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  padding: 15px 28px;
  border-radius: var(--radius-sm);
  font-weight: 800;
  font-size: 1.05rem;
  text-decoration: none;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform .12s ease, background .12s ease, box-shadow .12s ease;
  line-height: 1;
}
.btn:active { transform: translateY(1px); }

.btn-primary {
  background: var(--honey);
  color: var(--ink-navy);
  box-shadow: 0 4px 14px rgba(200,146,42,0.30);
}
.btn-primary:hover { background: var(--honey-hover); transform: translateY(-2px); }

.btn-secondary {
  background: transparent;
  color: var(--ink-navy);
  border-color: var(--border-light);
}
.btn-secondary:hover { border-color: var(--logo-navy); background: var(--white); }

.section-navy .btn-secondary,
.btn-ghost-light {
  color: var(--white);
  border-color: rgba(255,255,255,0.35);
}
.section-navy .btn-secondary:hover,
.btn-ghost-light:hover { border-color: var(--white); background: rgba(255,255,255,0.08); }

.btn-row { display: flex; flex-wrap: wrap; gap: 14px; }
.btn-row.center { justify-content: center; }

/* ---------- top wordmark / nav ---------- */
.brandbar {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 18px 0;
}
.brandbar img { width: 38px; height: 38px; object-fit: contain; }
.brandbar .name {
  font-weight: 800;
  font-size: 1.05rem;
  letter-spacing: -0.01em;
}
.section-navy .brandbar .name, .hero .brandbar .name { color: var(--white); }

.brandbar.link { text-decoration: none; }

/* ---------- header hamburger nav ---------- */
.site-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 0;
  position: relative;
  z-index: 60;
}
.site-nav .brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.site-nav .brand img { width: 38px; height: 38px; object-fit: contain; }
.site-nav .brand .name { font-weight: 800; font-size: 1.05rem; letter-spacing: -0.01em; color: var(--ink-navy); }
.hero .site-nav .brand .name { color: var(--white); }
.theme-summer .hero .site-nav .brand .name { color: var(--ink-navy); }

/* toggle button */
.nav-toggle {
  appearance: none; -webkit-appearance: none;
  border: 0; background: transparent; cursor: pointer;
  width: 46px; height: 46px; padding: 0; margin: 0;
  display: inline-flex; align-items: center; justify-content: center;
  color: var(--ink-navy);
}
.hero .nav-toggle { color: var(--white); }
.theme-summer .hero .nav-toggle { color: var(--ink-navy); }
.nav-toggle span { position: relative; display: block; width: 26px; height: 3px; }
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after {
  border-radius: 3px; background: currentColor;
  transition: transform .25s ease, opacity .2s ease, background .2s ease;
}
.nav-toggle span::before, .nav-toggle span::after {
  content: ""; position: absolute; left: 0; width: 26px; height: 3px;
}
.nav-toggle span::before { top: -8px; }
.nav-toggle span::after  { top: 8px; }
.site-nav.open .nav-toggle span { background: transparent; }
.site-nav.open .nav-toggle span::before { transform: translateY(8px) rotate(45deg); }
.site-nav.open .nav-toggle span::after  { transform: translateY(-8px) rotate(-45deg); }

/* dropdown menu */
.nav-menu {
  list-style: none; margin: 0; padding: 8px;
  position: absolute; top: calc(100% + 8px); right: 0; z-index: 60;
  min-width: 220px;
  background: var(--white);
  border: 1px solid var(--border-light);
  border-radius: 14px;
  box-shadow: var(--shadow-lg);
  display: none;
}
.site-nav.open .nav-menu { display: block; }
.nav-menu li { margin: 0; }
.nav-menu a {
  display: block; padding: 12px 16px; border-radius: 9px;
  text-decoration: none; color: var(--ink-navy); font-weight: 800; font-size: 1rem;
}
.nav-menu a:hover { background: var(--cloud-light); }
.nav-menu a.active { color: var(--logo-navy); background: var(--cloud-light); }
@media (prefers-reduced-motion: reduce) {
  .nav-toggle span, .nav-toggle span::before, .nav-toggle span::after { transition: none; }
}

/* ---------- hero (Storm Navy) ---------- */
.hero {
  background:
    radial-gradient(1100px 480px at 75% -10%, rgba(123,217,217,0.16), transparent 60%),
    radial-gradient(900px 500px at 8% 110%, rgba(124,174,225,0.18), transparent 60%),
    var(--ink-navy);
  color: var(--white);
}
.hero h1, .hero h2, .hero h3 { color: var(--white); }
.hero .hero-inner { padding: 8px 0 64px; }
@media (min-width: 720px) { .hero .hero-inner { padding: 20px 0 96px; } }

.hero p { color: rgba(255,255,255,0.86); }

.hero-statement { max-width: 14ch; }
@media (min-width: 720px) { .hero-statement { max-width: 18ch; } }

/* hero two-column: text left, Cloudy mascot right (stacks on mobile) */
.hero-grid { display: grid; gap: 24px; align-items: center; }
@media (min-width: 860px) {
  .hero-grid { grid-template-columns: 1fr minmax(300px, 440px); gap: 52px; }
}
.hero-logo-wrap { text-align: center; }
.hero-logo-wrap img {
  width: 100%;
  max-width: 280px;
  height: auto;
  margin: 0 auto;
  display: block;
  animation: float 3.5s ease-in-out infinite;
}
@media (min-width: 860px) { .hero-logo-wrap img { max-width: 440px; } }
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-10px); }
}
@media (prefers-reduced-motion: reduce) { .hero-logo-wrap img { animation: none; } }

/* section variant that uses navy bg outside hero */
.section-navy { background: var(--ink-navy); color: rgba(255,255,255,0.86); }
.section-navy h1, .section-navy h2, .section-navy h3 { color: var(--white); }

/* ---------- checklist (hero bullets) ---------- */
.checks { list-style: none; padding: 0; margin: 26px 0 30px; display: grid; gap: 14px; }
.checks li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--white);
}
.checks .mark {
  flex: 0 0 26px;
  width: 26px; height: 26px;
  border-radius: 50%;
  background: var(--teal);
  color: var(--ink-navy);
  display: grid; place-items: center;
  font-size: .9rem;
  font-weight: 900;
  margin-top: 2px;
}

/* ---------- cards / lanes ---------- */
.grid { display: grid; gap: 22px; }
@media (min-width: 860px) { .grid-3 { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 720px) { .grid-2 { grid-template-columns: repeat(2, 1fr); } }

.card {
  background: var(--white);
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
}
.card .tag {
  font-size: .78rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--logo-navy);
  margin-bottom: 8px;
}
.card h3 { margin-bottom: .5rem; }
.card p { color: var(--text-body); }
.card .btn { margin-top: auto; align-self: flex-start; }
.card-list { list-style: none; padding: 0; margin: 0 0 22px; display: grid; gap: 12px; }
.card-list li { position: relative; padding-left: 22px; font-size: .96rem; color: var(--text-body); line-height: 1.45; }
.card-list li::before { content: "✓"; position: absolute; left: 0; top: 0; color: var(--teal); font-weight: 900; }
.card-list strong { color: var(--ink-navy); }
.pack-line { font-weight: 800; color: var(--logo-navy); margin: -2px 0 12px; font-size: 1rem; line-height: 1.35; }

/* ============================================================
   HOT BOARD SUMMER — seasonal page theme (broader palette)
   Scoped to .theme-summer so the core brand stays untouched.
   ============================================================ */
.theme-summer {
  --sun-orange: #F2693C;
  --sun-amber:  #F9A23F;
  --sky-blue:   #5BA3DD;
  --peach:      #FCE3CA;
}

/* light, summery sky hero (recreates the soft pastel gradient) */
.theme-summer .hero {
  background:
    radial-gradient(58% 58% at 12% 4%, rgba(249,162,63,0.36), transparent 62%),
    radial-gradient(52% 52% at 90% 20%, rgba(91,163,221,0.32), transparent 62%),
    radial-gradient(72% 66% at 80% 106%, rgba(123,217,217,0.36), transparent 62%),
    radial-gradient(60% 60% at 24% 102%, rgba(124,174,225,0.30), transparent 62%),
    linear-gradient(180deg, #FFF6EA 0%, #EAF4FB 56%, #E7F6F2 100%);
  color: var(--ink-navy);
}
.theme-summer .hero h1 { color: var(--ink-navy); }
.theme-summer .hero p  { color: #3c5a70; }
.theme-summer .hero .brandbar .name { color: var(--ink-navy); }

/* logo banner */
.hbs-hero { text-align: center; }
.hbs-hero .btn-row { justify-content: center; }
.hbs-hero .hero-statement,
.hbs-hero .lead { margin-left: auto; margin-right: auto; }
.hbs-banner {
  width: 100%;
  max-width: 600px;
  height: auto;
  margin: 6px auto 20px;
  display: block;
  filter: drop-shadow(0 12px 26px rgba(0,43,77,0.14));
}
@media (min-width: 720px) { .hbs-banner { max-width: 660px; } }

/* buttons retuned for the season (fixes the low-contrast secondary) */
.theme-summer .btn-primary {
  background: var(--sun-amber);
  color: var(--ink-navy);
  box-shadow: 0 6px 16px rgba(242,105,60,0.30);
}
.theme-summer .btn-primary:hover { background: var(--sun-orange); }
.theme-summer .btn-secondary {
  background: #fff;
  color: var(--ink-navy);
  border-color: var(--sky-blue);
}
.theme-summer .btn-secondary:hover { background: var(--peach); border-color: var(--sun-orange); color: var(--ink-navy); }

/* seasonal accents */
.theme-summer .eyebrow { color: var(--sun-orange); }
.theme-summer .pill {
  background: rgba(242,105,60,0.12);
  color: var(--sun-orange);
  border-color: rgba(242,105,60,0.40);
}
.theme-summer .lane-accent { background: var(--sun-amber); }
.theme-summer .lane-accent.teal { background: var(--sky-blue); }
.theme-summer .lane-accent.blue { background: var(--teal); }
.theme-summer .pack-line { color: var(--sun-orange); }
.theme-summer .card-list li::before { color: var(--sun-amber); }

/* warm tint on the cloud section */
.theme-summer .section-cloud { background: linear-gradient(180deg,#FFF4E7,#FDEFE0); }

.lane-accent { height: 5px; border-radius: 99px; width: 52px; margin-bottom: 18px; background: var(--honey); }
.lane-accent.teal { background: var(--teal); }
.lane-accent.blue { background: var(--light-blue); }

/* ---------- testimonials ---------- */
.quote {
  background: var(--white);
  border: 1px solid var(--border-light);
  border-left: 4px solid var(--teal);
  border-radius: var(--radius);
  padding: 26px;
  box-shadow: var(--shadow);
}
.quote blockquote { margin: 0 0 16px; font-size: 1.05rem; color: var(--text-body); }
.quote .who { font-weight: 800; color: var(--ink-navy); }
.quote .role { color: var(--text-muted); font-size: .92rem; }

/* ---------- client roster (logo wall) ---------- */
.logo-wall {
  list-style: none;
  margin: 30px 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px 22px;
  align-items: center;
  justify-items: center;
}
@media (min-width: 560px) { .logo-wall { grid-template-columns: repeat(3, 1fr); gap: 36px 28px; } }
@media (min-width: 880px) { .logo-wall { grid-template-columns: repeat(5, 1fr); gap: 44px 32px; } }
.logo-wall li { width: 100%; display: flex; align-items: center; justify-content: center; }
.logo-wall img {
  max-width: 100%;
  max-height: 76px;
  width: auto;
  height: auto;
  object-fit: contain;
  transition: transform .2s ease;
}
.logo-wall img:hover { transform: scale(1.04); }

/* ---------- about ---------- */
.about-grid { display: grid; gap: 28px; align-items: start; }
@media (min-width: 760px) { .about-grid { grid-template-columns: 260px 1fr; gap: 40px; } }
.about-photo {
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  width: 100%;
  max-width: 280px;
}
.about-grid .credentials { list-style: none; padding: 0; margin: 18px 0 0; display: grid; gap: 8px; }
.about-grid .credentials li { padding-left: 26px; position: relative; color: var(--text-body); }
.about-grid .credentials li::before {
  content: "✦"; color: var(--honey); position: absolute; left: 0; font-weight: 900;
}

/* ---------- video placeholder ---------- */
.video-slot {
  background: linear-gradient(135deg, #03365c, var(--ink-navy));
  border: 2px dashed rgba(255,255,255,0.25);
  border-radius: var(--radius);
  aspect-ratio: 16 / 9;
  display: grid;
  place-items: center;
  text-align: center;
  color: rgba(255,255,255,0.8);
  padding: 24px;
}
.video-slot .play {
  width: 70px; height: 70px; border-radius: 50%;
  background: var(--honey); color: var(--ink-navy);
  display: grid; place-items: center; font-size: 1.6rem; margin: 0 auto 14px;
  box-shadow: 0 0 0 10px rgba(200,146,42,0.15);
}

/* ---------- email capture ---------- */
.capture {
  background: var(--white);
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 30px;
  max-width: 620px;
  margin: 0 auto;
}
.embed-placeholder {
  border: 2px dashed var(--cloud-accent);
  border-radius: var(--radius-sm);
  background: var(--cloud-light);
  padding: 28px;
  text-align: center;
  color: var(--logo-navy);
}
.embed-placeholder code {
  display: inline-block;
  background: var(--white);
  border: 1px solid var(--border-light);
  border-radius: 6px;
  padding: 2px 8px;
  font-size: .85rem;
  color: var(--text-muted);
}

/* ---------- metrics ---------- */
.metrics { display: grid; gap: 18px; }
@media (min-width: 640px) { .metrics { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 900px) { .metrics { grid-template-columns: repeat(4, 1fr); } }
.metric {
  background: var(--white);
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 24px;
  text-align: center;
}
.metric .num { font-size: clamp(2rem, 6vw, 2.8rem); font-weight: 900; color: var(--honey); line-height: 1; }
.metric .label { color: var(--text-muted); font-weight: 700; margin-top: 8px; font-size: .95rem; }

/* ---------- gains chart (before/after, Dogwood-style) ---------- */
.gains-chart { margin-top: 22px; }
.gains-row {
  display: grid;
  grid-template-columns: 150px 1fr 54px;
  align-items: center;
  gap: 14px;
  margin-bottom: 16px;
}
.gains-label { font-weight: 800; color: var(--ink-navy); font-size: .95rem; }
.gains-bars { display: flex; flex-direction: column; gap: 5px; }
.gains-line { height: 15px; border-radius: 99px; background: var(--border-light); overflow: hidden; }
.gains-before { height: 100%; border-radius: 99px; background: rgba(124,174,225,0.45); }
.gains-after  { height: 100%; border-radius: 99px; background: linear-gradient(90deg, var(--light-blue), var(--teal)); }
.gains-delta { font-weight: 900; color: var(--honey); text-align: right; font-size: 1.05rem; }
.gains-scale-row { display: grid; grid-template-columns: 150px 1fr 54px; gap: 14px; margin-top: 2px; }
.gains-scale { display: flex; justify-content: space-between; padding: 0 1px; }
.gains-scale span { font-size: 10px; color: var(--text-muted); width: 14px; text-align: center; }
.gains-legend { font-size: .9rem; color: var(--text-muted); margin: 4px 0 0; }
.gains-foot { font-size: .85rem; color: var(--text-muted); font-style: italic; margin-top: 16px; line-height: 1.6; max-width: 700px; }

@media (max-width: 560px) {
  .gains-row { grid-template-columns: 1fr auto; column-gap: 10px; row-gap: 4px; margin-bottom: 18px; }
  .gains-label { grid-column: 1; grid-row: 1; }
  .gains-delta { grid-column: 2; grid-row: 1; }
  .gains-bars { grid-column: 1 / -1; grid-row: 2; }
  .gains-scale-row { display: none; }
}

/* ---------- steps / deliverables ---------- */
.numlist { list-style: none; counter-reset: n; padding: 0; margin: 0; display: grid; gap: 16px; }
.numlist li { display: flex; gap: 16px; align-items: flex-start; }
.numlist li::before {
  counter-increment: n;
  content: counter(n);
  flex: 0 0 38px; width: 38px; height: 38px;
  border-radius: 50%;
  background: var(--ink-navy); color: var(--white);
  display: grid; place-items: center; font-weight: 900;
}
.numlist li strong { color: var(--ink-navy); display: block; }

/* ---------- FAQ ---------- */
.faq details {
  background: var(--white);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  padding: 6px 22px;
  margin-bottom: 12px;
  box-shadow: var(--shadow);
}
.faq summary {
  cursor: pointer;
  font-weight: 800;
  color: var(--ink-navy);
  padding: 14px 0;
  list-style: none;
  display: flex;
  justify-content: space-between;
  gap: 12px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--honey); font-weight: 900; font-size: 1.4rem; line-height: 1; }
.faq details[open] summary::after { content: "–"; }
.faq details p { color: var(--text-body); padding-bottom: 8px; }

/* ---------- info rows (team / rhythm) ---------- */
.info { display: grid; gap: 18px; }
@media (min-width: 760px) { .info-3 { grid-template-columns: repeat(3,1fr); } }
.info .item {
  background: var(--white);
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow);
}
.info .item h3 { font-size: 1.15rem; }
.info .item .role { color: var(--honey); font-weight: 800; font-size: .82rem; text-transform: uppercase; letter-spacing: .08em; margin-bottom: 6px; }

/* ---------- footer ---------- */
.footer { background: var(--ink-navy); color: rgba(255,255,255,0.8); padding: 48px 0 40px; }
.footer h3 { color: var(--white); }
.footer a { color: var(--cloud-accent); text-decoration: none; }
.footer a:hover { color: var(--white); text-decoration: underline; }
.footer-grid { display: flex; flex-wrap: wrap; gap: 10px 28px; align-items: center; }
.footer .muted { color: rgba(255,255,255,0.5); font-size: .85rem; margin-top: 22px; }
.footer .brandbar { padding: 0 0 18px; }

/* ---------- misc ---------- */
.spacer-sm { height: 12px; }
.pill {
  display: inline-block;
  background: rgba(123,217,217,0.16);
  color: var(--teal);
  border: 1px solid rgba(123,217,217,0.4);
  padding: 6px 14px;
  border-radius: 99px;
  font-weight: 800;
  font-size: .82rem;
  text-transform: uppercase;
  letter-spacing: .08em;
}
.section-light .pill, .section-cloud .pill, .bg-white .pill {
  background: rgba(200,146,42,0.12);
  color: var(--honey-hover);
  border-color: rgba(200,146,42,0.35);
}
