/* BearjSpeaks.com — shared styles
   Brand: navy #1B2A41 · gold #FFB627 · blue #2457A6 · sky #4FA8D8 · cream #FFF4E0 · white
   Fonts: Poppins (main), Pacifico (script — never italic) */

:root {
  --navy: #1B2A41;
  --navy-2: #24354F;
  --navy-line: #3A4D6B;
  --gold: #FFB627;
  --blue: #2457A6;
  --sky: #4FA8D8;
  --cream: #FFF4E0;
  --white: #FFFFFF;
  --muted: #56627A;
  --muted-on-navy: #B4BFD0;
  --line: #E6DCC8;
  --wrap: 1200px;
  --shadow: 0 4px 14px rgba(16, 24, 40, 0.14);
}

* { box-sizing: border-box; font-synthesis: none; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: 'Poppins', 'Helvetica Neue', Arial, sans-serif;
  color: var(--navy);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
h1, h2, h3, p, ul, figure, blockquote { margin: 0; }
ul { padding: 0; list-style: none; }
a { color: var(--blue); }
a:hover { color: var(--navy); }
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 3px;
}
[id] { scroll-margin-top: 96px; }
.skip {
  position: absolute; left: -9999px; top: 0; z-index: 100;
  background: var(--gold); color: var(--navy); padding: 12px 20px; font-weight: 700;
}
.skip:focus { left: 12px; top: 12px; }
.sr-only {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}

/* Layout */
.wrap { max-width: var(--wrap); margin: 0 auto; }
.wrap-narrow { max-width: 900px; margin: 0 auto; }
.section { padding: 96px 24px; }
.section-tight { padding: 64px 24px; }
.split { display: flex; flex-wrap: wrap; align-items: center; gap: 56px; }
.split > * { min-width: 0; }
.col-wide { flex: 1 1 520px; }
.col-narrow { flex: 1 1 380px; }
.stack { display: flex; flex-direction: column; gap: 20px; }
.stack-lg { display: flex; flex-direction: column; gap: 48px; }
.center { text-align: center; align-items: center; }
.grid-3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 28px; }
.grid-4 { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 24px; }
.btn-row { display: flex; flex-wrap: wrap; gap: 16px; padding-top: 6px; }
.center .btn-row { justify-content: center; }

/* Backgrounds */
.bg-navy { background: var(--navy); color: var(--cream); }
.bg-sky { background: var(--sky); color: var(--navy); }
.bg-cream { background: var(--cream); }
.bg-gold { background: var(--gold); color: var(--navy); }
.bg-blue { background: var(--blue); color: var(--white); }

/* Type */
.eyebrow { font-size: 13px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--blue); }
.bg-navy .eyebrow { color: var(--sky); }
.bg-sky .eyebrow, .bg-gold .eyebrow { color: var(--navy); }
h1 { font-size: clamp(38px, 5.4vw, 60px); line-height: 1.08; font-weight: 800; }
h2 { font-size: clamp(30px, 4vw, 44px); line-height: 1.14; font-weight: 800; }
h3 { font-size: 22px; line-height: 1.25; font-weight: 700; }
.bg-navy h1, .bg-navy h2, .bg-navy h3 { color: var(--white); }
.lead { font-size: 19px; line-height: 1.6; max-width: 600px; }
.center .lead { margin-left: auto; margin-right: auto; }
.body-lg { font-size: 18px; line-height: 1.65; }
.muted { color: var(--muted); }
.bg-navy .muted { color: var(--muted-on-navy); }
.gold { color: var(--gold); }
.big-q { font-size: clamp(22px, 3vw, 30px); line-height: 1.3; font-weight: 800; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 48px; padding: 14px 30px; border-radius: 999px;
  font-family: inherit; font-size: 17px; font-weight: 700; line-height: 1.2;
  text-decoration: none; border: 2px solid transparent; cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease;
}
.btn:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.btn-gold { background: var(--gold); color: var(--navy); }
.btn-gold:hover { color: var(--navy); }
.btn-navy { background: var(--navy); color: var(--white); }
.btn-navy:hover { color: var(--white); }
.btn-white { background: var(--white); color: var(--navy); }
.btn-sky { background: var(--sky); color: var(--navy); }
.btn-blue { background: var(--blue); color: var(--white); }
.btn-blue:hover { color: var(--white); }
.btn-line { border-color: var(--navy); color: var(--navy); background: transparent; }
.btn-line-sky { border-color: var(--sky); color: var(--white); background: transparent; }
.btn-line-sky:hover { color: var(--white); }
.btn-line-white { border-color: var(--white); color: var(--white); background: transparent; }
.btn-line-white:hover { color: var(--white); }
.btn-lg { font-size: 18px; padding: 18px 36px; }
.btn-block { width: 100%; }
.text-link { font-weight: 700; font-size: 16px; text-decoration: none; }
.text-link:hover { text-decoration: underline; }

/* Logos (live text, so they stay sharp at any size) */
.logo { display: inline-flex; align-items: baseline; gap: 1px; text-decoration: none; line-height: 1; }
.logo-bearj { font-weight: 300; font-size: 30px; color: var(--cream); letter-spacing: 0.01em; }
.logo-speaks { font-family: 'Pacifico', cursive; font-style: normal; font-weight: 400; font-size: 30px; color: var(--gold); }
.sg { display: inline-flex; flex-wrap: wrap; align-items: baseline; column-gap: 0.22em; line-height: 1.1; font-size: 30px; }
.sg-s { font-weight: 300; font-style: normal; color: var(--cream); }
.sg-g { font-family: 'Pacifico', cursive; font-style: normal; font-weight: 400; font-size: 1.55em; line-height: 1; color: var(--gold); position: relative; top: 0.04em; }
.sg-with { font-family: 'Pacifico', cursive; font-style: normal; font-weight: 400; font-size: 0.78em; color: var(--cream); }
.sg-md { font-size: 26px; }
.sg-xl { font-size: clamp(40px, 6.4vw, 64px); }
.sg-cover { font-size: 18px; }

/* Header */
.site-header { background: var(--navy); position: sticky; top: 0; z-index: 40; }
.site-header .bar {
  max-width: var(--wrap); margin: 0 auto; padding: 16px 24px;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
}
.nav { display: flex; align-items: center; gap: 28px; font-size: 15px; font-weight: 500; }
.nav a { color: var(--cream); text-decoration: none; padding-bottom: 4px; border-bottom: 2px solid transparent; }
.nav a:hover { color: var(--white); border-bottom-color: var(--sky); }
.nav a[aria-current="page"] { color: var(--white); border-bottom-color: var(--sky); }
.nav a.btn { color: var(--navy); border: 2px solid transparent; padding: 12px 24px; min-height: 44px; font-size: 15px; }
.nav-toggle {
  display: none; width: 48px; height: 48px; border-radius: 12px; border: none;
  background: var(--navy-2); color: var(--cream); cursor: pointer; align-items: center; justify-content: center;
}
@media (max-width: 960px) {
  .nav-toggle { display: inline-flex; }
  .nav {
    display: none; position: absolute; left: 0; right: 0; top: 100%;
    background: var(--navy); border-top: 1px solid var(--navy-line);
    flex-direction: column; align-items: stretch; gap: 0; padding: 8px 24px 24px;
  }
  .nav.open { display: flex; }
  .nav a { padding: 14px 0; border-bottom: 1px solid var(--navy-line); font-size: 17px; }
  .nav a.btn { margin-top: 16px; border-bottom: 2px solid transparent; }
}

/* Sub navigation bars */
.subnav { background: var(--navy-2); }
.subnav nav { max-width: var(--wrap); margin: 0 auto; padding: 4px 24px; display: flex; flex-wrap: wrap; gap: 4px 24px; font-size: 14px; font-weight: 600; }
.subnav a { color: var(--cream); text-decoration: none; padding: 10px 0; }
.subnav a:hover { color: var(--gold); }
.talkbar { background: var(--white); border-bottom: 1px solid var(--line); }
.talkbar nav { max-width: var(--wrap); margin: 0 auto; padding: 14px 24px; display: flex; flex-wrap: wrap; gap: 12px; align-items: center; font-size: 15px; font-weight: 600; }
.talkbar .label { color: var(--muted); font-weight: 500; margin-right: 8px; }
.talkbar a { background: var(--cream); color: var(--navy); text-decoration: none; padding: 10px 20px; border-radius: 999px; min-height: 44px; display: inline-flex; align-items: center; }
.talkbar a[aria-current="page"] { background: var(--navy); color: var(--white); }

/* Hero */
.hero { padding: 72px 24px 96px; }
.hero .stack { gap: 24px; }
.hero h1 .gold { display: inline; }
.hero-quote { margin-top: 12px; padding: 20px 0 0 24px; border-top: 3px solid var(--sky); max-width: 520px; }
.hero-quote blockquote { font-size: 20px; line-height: 1.5; font-weight: 500; color: var(--white); }
.hero-quote figcaption { margin-top: 8px; font-size: 14px; color: var(--muted-on-navy); }

/* Photos: drop the named file into /images and it appears; until then the slot stays hidden */
.photo { display: none; justify-content: center; }
.photo.is-loaded { display: flex; }
.photo img { width: 100%; object-fit: cover; }
.photo-stage img { max-width: 460px; aspect-ratio: 4 / 5; border-radius: 24px; }
.photo-round img { max-width: 380px; aspect-ratio: 1 / 1; border-radius: 999px; border: 4px solid var(--sky); }
.photo-stoop img { max-width: 420px; aspect-ratio: 1 / 1; border-radius: 999px; border: 6px solid var(--gold); }

/* Credibility strip */
.strip { background: var(--sky); padding: 24px; }
.strip .wrap { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px 56px; font-weight: 600; font-size: 16px; text-align: center; }

/* Cards */
.card { border-radius: 24px; padding: 36px; display: flex; flex-direction: column; gap: 18px; }
.card-cream { background: var(--cream); }
.card-navy { background: var(--navy); color: var(--cream); }
.card-white { background: var(--white); box-shadow: var(--shadow); }
.card-sm { border-radius: 16px; padding: 32px; gap: 10px; }
.card .text-link { margin-top: auto; }
.card-navy .text-link { color: var(--gold); }
.card-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.card-tag { display: flex; align-items: center; gap: 12px; }
.num { width: 44px; height: 44px; flex: none; border-radius: 999px; background: var(--navy); color: var(--gold); font-weight: 800; display: flex; align-items: center; justify-content: center; }
.card-navy .num { background: var(--gold); color: var(--navy); }
.num-sky { background: var(--sky); color: var(--navy); width: 48px; height: 48px; font-size: 20px; }
.pill { background: var(--sky); color: var(--navy); font-size: 12px; font-weight: 700; letter-spacing: 0.1em; padding: 6px 12px; border-radius: 999px; }
.card h3.talk-title { font-size: 28px; line-height: 1.2; }
.card h3.talk-sub { font-size: 22px; line-height: 1.35; font-weight: 600; }

/* Check lists */
.checks { display: flex; flex-direction: column; gap: 12px; font-size: 16px; line-height: 1.5; }
.checks li { display: flex; gap: 10px; }
.checks li::before {
  content: ""; flex: none; width: 22px; height: 22px; margin-top: 1px;
  background: var(--sky);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5L20 7'/%3E%3C/svg%3E") center / contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5L20 7'/%3E%3C/svg%3E") center / contain no-repeat;
}
.bg-navy .checks li::before, .card-navy .checks li::before { background: var(--gold); }

/* Formats */
.formats { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 16px; }
.format { background: var(--navy); color: var(--cream); border-radius: 16px; padding: 20px; display: flex; flex-direction: column; gap: 4px; font-size: 14px; }
.format strong { font-size: 18px; color: var(--white); }
.format-lg { background: var(--navy-2); border-radius: 16px; padding: 32px; display: flex; flex-direction: column; gap: 10px; border: 2px solid transparent; }
.format-lg.featured { border-color: var(--gold); }
.format-lg.featured .eyebrow { color: var(--gold); }

/* Takeaways */
.takeaway { border-top: 4px solid var(--sky); padding-top: 20px; display: flex; flex-direction: column; gap: 10px; }
.takeaway .n { font-size: 40px; font-weight: 800; color: var(--blue); line-height: 1; }
.takeaway h3 { font-size: 20px; }

/* Talk hero panel */
.panel { border-radius: 24px; padding: 44px; background: var(--navy); color: var(--cream); display: flex; flex-direction: column; gap: 16px; }
.panel .n { font-size: 88px; font-weight: 800; line-height: 0.9; color: var(--gold); }
.panel .step { font-size: 30px; font-weight: 800; color: var(--white); line-height: 1.15; }
.panel hr { border: none; border-top: 3px solid var(--sky); width: 72px; margin: 4px 0; }

/* Next-talk banner */
.next { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px; background: var(--sky); color: var(--navy); border-radius: 24px; padding: 40px; text-decoration: none; }
.next:hover { color: var(--navy); }
.next .t { font-size: 32px; font-weight: 800; line-height: 1.2; display: block; }
.next .d { font-size: 17px; display: block; }
.next .eyebrow { display: block; margin-bottom: 6px; }

/* Forms */
.form { display: flex; flex-direction: column; gap: 18px; }
.form-card { background: var(--navy); color: var(--cream); border-radius: 24px; padding: 40px; box-shadow: var(--shadow); display: flex; flex-direction: column; gap: 16px; }
.form-card.light { background: var(--white); color: var(--navy); }
.field { display: flex; flex-direction: column; gap: 6px; }
.field label { font-size: 14px; font-weight: 600; }
.field input, .field textarea {
  font-family: inherit; font-size: 16px; padding: 14px 18px; border-radius: 12px;
  border: 2px solid var(--line); background: var(--white); color: var(--navy); width: 100%;
}
.field textarea { resize: vertical; }
.form-card:not(.light) .field input { border-color: var(--navy-line); }
.field-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 16px; }
.inline-form { max-width: 640px; width: 100%; margin: 0 auto; display: flex; flex-wrap: wrap; gap: 12px; align-items: flex-end; }
.inline-form .field { flex: 1 1 300px; }
.inline-form input { border-radius: 999px; border-color: var(--navy); padding: 15px 20px; font-size: 17px; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 15px; }
.check input { width: 20px; height: 20px; margin: 2px 0 0; flex: none; accent-color: var(--navy); }
.fine { font-size: 13px; line-height: 1.5; color: var(--muted); margin: 0; }
.form-card:not(.light) .fine, .popup .fine { color: var(--muted-on-navy); }
.form-card:not(.light) .check input, .popup .check input { accent-color: var(--gold); }
.opt { font-weight: 400; opacity: 0.75; }
.hp { position: absolute; left: -9999px; }

/* Book */
.cover {
  flex: 0 0 170px; aspect-ratio: 2 / 3; border-radius: 8px; background: var(--navy);
  display: flex; align-items: center; justify-content: center; box-shadow: var(--shadow); padding: 12px;
}

/* Social */
.social { display: flex; flex-wrap: wrap; gap: 12px; font-size: 15px; font-weight: 600; }
.social a { background: var(--navy-2); color: var(--cream); text-decoration: none; padding: 12px 22px; border-radius: 999px; min-height: 44px; display: inline-flex; align-items: center; }
.social a.primary { background: var(--sky); color: var(--navy); }

/* Video slot */
.video {
  width: 100%; aspect-ratio: 16 / 9; border-radius: 24px; background: var(--sky); color: var(--navy);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px;
  text-align: center; padding: 24px; text-decoration: none; font-weight: 600; font-size: 17px;
}
.video:hover { color: var(--navy); }
.video .play { width: 80px; height: 80px; border-radius: 999px; background: var(--gold); display: flex; align-items: center; justify-content: center; }
.video iframe { width: 100%; height: 100%; border: 0; border-radius: 24px; }

/* Footer */
.site-footer { background: var(--navy); color: var(--muted-on-navy); padding: 56px 24px 32px; }
.site-footer .top { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 32px; }
.site-footer .contact { font-size: 14px; }
.site-footer .contact a { color: var(--muted-on-navy); }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 8px 24px; font-size: 15px; }
.site-footer nav a { color: var(--cream); text-decoration: none; padding: 6px 0; }
.site-footer a:hover { color: var(--sky); }
.site-footer .bottom { margin-top: 32px; border-top: 1px solid var(--navy-line); padding-top: 20px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px; font-size: 13px; }
.site-footer .legal { display: flex; flex-wrap: wrap; gap: 8px 20px; }
.site-footer .legal a { color: var(--muted-on-navy); }

/* Popup */
.popup-back {
  position: fixed; inset: 0; z-index: 60; background: rgba(27, 42, 65, 0.72);
  display: none; align-items: center; justify-content: center; padding: 24px; overflow-y: auto;
}
.popup-back.open { display: flex; }
.popup {
  position: relative; width: 600px; max-width: 100%; margin: auto;
  background: var(--navy); color: var(--cream); border-radius: 24px; border-top: 6px solid var(--gold);
  padding: 32px 44px 20px; display: flex; flex-direction: column; align-items: center; gap: 14px; text-align: center;
  box-shadow: 0 20px 60px rgba(16, 24, 40, 0.45);
}
.popup h2 { font-size: 26px; line-height: 1.2; color: var(--white); }
.popup .sg { justify-content: center; font-size: clamp(26px, 5.4vw, 34px); }
.popup .rule { padding: 12px 0; border-top: 2px solid var(--sky); border-bottom: 2px solid var(--sky); font-size: 18px; line-height: 1.4; font-weight: 600; color: var(--white); max-width: 460px; }
.popup form { width: 100%; text-align: left; gap: 12px; }
.popup .field input { border-radius: 999px; border-color: var(--navy-line); padding: 13px 18px; font-size: 16px; }
.popup-x { position: absolute; top: 14px; right: 14px; width: 44px; height: 44px; border-radius: 999px; border: none; background: var(--navy-2); color: var(--cream); cursor: pointer; display: flex; align-items: center; justify-content: center; padding: 0; }
.popup-no { font-family: inherit; background: none; border: none; color: var(--muted-on-navy); font-size: 14px; text-decoration: underline; cursor: pointer; padding: 6px; min-height: 40px; }
@media (max-width: 560px) { .popup { padding: 52px 22px 20px; gap: 13px; } .form-card, .card, .panel { padding: 28px; } .section { padding: 64px 20px; } .hero { padding: 48px 20px 64px; } }

/* Legal pages */
.legal-page { padding: 72px 24px 96px; }
.legal-page .wrap-narrow { max-width: 780px; }
.legal-page h1 { font-size: clamp(32px, 4.4vw, 46px); margin-bottom: 8px; }
.legal-page h2 { font-size: 24px; margin: 36px 0 10px; }
.legal-page h3 { font-size: 19px; margin: 24px 0 8px; }
.legal-page p { margin: 0 0 16px; font-size: 16px; line-height: 1.7; overflow-wrap: anywhere; }
.page-head { background: var(--navy); color: var(--cream); padding: 64px 24px; }
.page-head h1 { color: var(--white); }
.page-head p { color: var(--cream); margin-top: 10px; font-size: 18px; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn { transition: none; }
  .btn:hover { transform: none; }
}
