/* ============================================================
   TIME BOSS — SHARED STYLES
   v4 · Editorial Warmth direction
   ============================================================ */

/* ── RESET ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

/* ── GRAIN TEXTURE ── */
body {
  font-family: 'DM Sans', sans-serif;
  background: #F7F3ED;
  color: #15253c;
  position: relative;
}
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.035'/%3E%3C/svg%3E");
  background-repeat: repeat;
  background-size: 180px;
  pointer-events: none;
  z-index: 1000;
  opacity: 0.6;
  mix-blend-mode: multiply;
}

/* ── DESIGN TOKENS ── */
:root {
  --navy: #15253c;
  --teal: #3c768d;
  --cream: #F7F3ED;
  --warm-white: #FEFCF8;
  --warm-border: #E5DDD3;
  --warm-accent: #E8D9C8;
  --paper: #F5EFE4;
  --text-secondary: #5a6a7a;
  --grain: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.06'/%3E%3C/svg%3E");
}

/* ── TYPOGRAPHY ── */
.tag {
  display: inline-flex;
  align-items: center;
  background: #EEF4F7;
  color: var(--teal);
  font-family: 'Montserrat', sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 6px 14px;
  border-radius: 100px;
  margin-bottom: 24px;
}
.section-h2 {
  font-family: 'Playfair Display', serif;
  font-weight: 800;
  font-size: 44px;
  line-height: 1.1;
  color: var(--navy);
  letter-spacing: -0.01em;
  margin-bottom: 20px;
}
.body-text { font-size: 16px; line-height: 1.8; color: var(--text-secondary); }
.body-text p + p { margin-top: 16px; }

/* ── BUTTONS ── */
.btn-primary {
  display: inline-block;
  background: var(--navy);
  color: #fff;
  padding: 16px 36px;
  border-radius: 100px;
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.2s;
}
.btn-primary:hover { background: var(--teal); }
.btn-teal {
  display: inline-block;
  background: var(--teal);
  color: #fff;
  padding: 16px 36px;
  border-radius: 100px;
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
}
.btn-white {
  display: inline-block;
  background: #fff;
  color: var(--navy);
  padding: 15px 32px;
  border-radius: 100px;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
}
.btn-ghost {
  font-size: 14px;
  font-weight: 500;
  color: rgba(255,255,255,0.5);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.btn-text {
  font-size: 14px;
  color: var(--teal);
  font-weight: 500;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 600;
  color: var(--teal);
  text-decoration: none;
}
.link-arrow::after { content: '→'; }

/* ── SITE-WIDE CONTAINMENT ── */
/* Sections stay full-width for background colors.
   Horizontal padding uses max() so it grows once viewport exceeds 1440px,
   keeping content within a 1440px-wide band while backgrounds bleed. */
:root { --contain-pad: max(64px, calc((100% - 1440px) / 2 + 64px)); }

/* ── NAV ── */
nav {
  background: rgba(247,243,237,0.95);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 var(--contain-pad);
  height: 76px;
  border-bottom: 1px solid var(--warm-border);
  position: sticky;
  top: 0;
  z-index: 50;
}
.nav-logo { display: flex; align-items: center; text-decoration: none; }
.nav-logo img { height: 32px; width: auto; }
.nav-links { display: flex; align-items: center; gap: 34px; list-style: none; }
.nav-links a {
  color: var(--navy);
  text-decoration: none;
  font-size: 13px;
  font-weight: 500;
  opacity: 0.5;
  letter-spacing: 0.02em;
  transition: opacity 0.2s;
}
.nav-links a:hover,
.nav-links a.active { opacity: 1; font-weight: 700; }

/* Nav dropdown menu */
.nav-links .has-dropdown { position: relative; }
.nav-links .has-dropdown > a { padding: 28px 0; }
.nav-links .has-dropdown > a::after { content: '\25BE'; font-size: 8px; margin-left: 6px; opacity: 0.55; vertical-align: middle; }
.nav-links .nav-dropdown {
  position: absolute; top: 100%; left: -16px; margin: 0; padding: 8px 0;
  list-style: none; min-width: 254px;
  background: #FEFCF8; border: 1px solid #E5DDD3; border-radius: 10px;
  box-shadow: 0 18px 44px -14px rgba(14,27,46,0.28);
  opacity: 0; visibility: hidden; transform: translateY(4px);
  transition: opacity 0.16s ease, transform 0.16s ease, visibility 0.16s ease;
  z-index: 60;
}
.nav-links .nav-dropdown.nav-dropdown-right { left: auto; right: -16px; }
.nav-links .has-dropdown:hover .nav-dropdown,
.nav-links .has-dropdown:focus-within .nav-dropdown { opacity: 1; visibility: visible; transform: translateY(0); }
.nav-links .nav-dropdown li { display: block; }
.nav-links .nav-dropdown a { display: block; padding: 10px 18px; font-size: 13px; font-weight: 500; opacity: 0.7; white-space: nowrap; color: #15253c; letter-spacing: 0; }
.nav-links .nav-dropdown a:hover { opacity: 1; font-weight: 700; background: #F7F3ED; }
@media (max-width: 1100px) {
  .nav-links .nav-dropdown { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; border: none; background: transparent; min-width: 0; padding: 2px 0 2px 14px; }
  .nav-links .has-dropdown > a { padding: 0; }
  .nav-links .has-dropdown > a::after { display: none; }
}
.nav-cta {
  background: var(--navy);
  color: #fff;
  padding: 11px 24px;
  border-radius: 100px;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.2s;
}
.nav-cta:hover { background: var(--teal); }

/* ── HERO ── */
.hero { background: var(--cream); padding: 88px var(--contain-pad) 0; overflow: hidden; }
.hero-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 420px;
  gap: 40px;
  align-items: center;
  padding-bottom: 80px;
}
.hero-eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  font-style: italic;
  color: var(--teal);
  margin-bottom: 28px;
}
.hero-eyebrow::before {
  content: '';
  display: inline-block;
  width: 28px;
  height: 1.5px;
  background: var(--teal);
  flex-shrink: 0;
}
.hero-h1 {
  font-family: 'Playfair Display', serif;
  font-weight: 800;
  font-size: 68px;
  line-height: 1.05;
  color: var(--navy);
  letter-spacing: -0.02em;
}
.hero-h1 em { font-style: italic; color: var(--teal); }
.hero-right {
  border-left: 1px solid var(--warm-border);
  padding-left: 52px;
  display: flex;
  flex-direction: column;
  gap: 28px;
}
.hero-sub { font-size: 16px; line-height: 1.8; color: var(--text-secondary); }
.hero-ctas { display: flex; flex-direction: column; gap: 16px; align-items: flex-start; }

/* ── STATS STRIP ── */
.stats-strip {
  background: var(--navy);
  display: flex;
  margin: 0 calc(-1 * var(--contain-pad));
  padding: 0 var(--contain-pad);
  position: relative;
}
.stats-strip::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: var(--grain);
  background-repeat: repeat;
  background-size: 180px;
  pointer-events: none;
  mix-blend-mode: overlay;
}
.stat-item {
  flex: 1;
  padding: 32px 40px;
  border-right: 1px solid rgba(255,255,255,0.08);
  display: flex;
  align-items: center;
  gap: 18px;
  position: relative;
  z-index: 1;
}
.stat-item:last-child { border-right: none; }
.stat-num {
  font-family: 'Montserrat', sans-serif;
  font-weight: 900;
  font-size: 40px;
  color: #fff;
  line-height: 1;
  letter-spacing: -0.02em;
  white-space: nowrap;
}
.stat-divider { width: 1px; height: 32px; background: rgba(255,255,255,0.15); flex-shrink: 0; }
.stat-label { font-size: 13px; color: rgba(255,255,255,0.55); line-height: 1.5; }

/* ── LOGOS BAR ── */
.logos {
  background: var(--cream);
  padding: 40px var(--contain-pad);
  border-bottom: 1px solid var(--warm-border);
}
.logos-label { font-style: italic; font-size: 13px; color: var(--navy); opacity: 0.35; text-align: center; margin-bottom: 22px; }
.logos-row { display: flex; justify-content: center; align-items: center; gap: 48px; flex-wrap: wrap; }
.logo-item {
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: 12px;
  color: var(--navy);
  opacity: 0.28;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

/* ── QUOTE CARD (paper texture) ── */
.quote-card {
  background: var(--paper);
  border-radius: 16px;
  padding: 40px;
  position: relative;
  overflow: hidden;
}
.quote-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: var(--grain);
  background-repeat: repeat;
  background-size: 160px;
  pointer-events: none;
  mix-blend-mode: multiply;
}
.quote-mark {
  font-family: 'Playfair Display', serif;
  font-size: 72px;
  color: var(--teal);
  opacity: 0.18;
  line-height: 0.5;
  margin-bottom: 16px;
  position: relative;
  z-index: 1;
}
.quote-text {
  font-family: 'Playfair Display', serif;
  font-style: italic;
  font-size: 18px;
  line-height: 1.65;
  color: var(--navy);
  margin-bottom: 20px;
  position: relative;
  z-index: 1;
}
.quote-attr { font-size: 13px; font-weight: 600; color: var(--navy); opacity: 0.5; position: relative; z-index: 1; }
.quote-attr strong { opacity: 1; }

/* ── PHOTO BREAK ── */
.photo-break { height: 480px; position: relative; overflow: hidden; }
.photo-break img { width: 100%; height: 100%; object-fit: cover; object-position: center 40%; display: block; }
.photo-break-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, rgba(21,37,60,0.82) 0%, rgba(21,37,60,0.3) 55%, transparent 100%);
  z-index: 2;
  display: flex;
  align-items: center;
  padding: 0 var(--contain-pad);
}
.photo-break-eyebrow {
  font-family: 'Montserrat', sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.5);
  margin-bottom: 16px;
}
.photo-break-quote {
  font-family: 'Playfair Display', serif;
  font-style: italic;
  font-size: 30px;
  line-height: 1.35;
  color: #fff;
  max-width: 520px;
  margin-bottom: 20px;
}
.photo-break-attr { font-size: 14px; font-weight: 600; color: rgba(255,255,255,0.55); }

/* ── PHOTO OFFSET FRAME ── */
.photo-col { position: relative; }
.photo-col::before {
  content: '';
  position: absolute;
  bottom: -16px;
  left: -16px;
  right: 16px;
  top: 16px;
  background: var(--warm-accent);
  border-radius: 16px;
  z-index: 0;
}
.photo-frame { border-radius: 16px; overflow: hidden; position: relative; z-index: 1; }
.photo-frame img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* ── DARK SECTION (navy with grain) ── */
.dark-section { background: var(--navy); position: relative; overflow: hidden; }
.dark-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: var(--grain);
  background-repeat: repeat;
  background-size: 180px;
  pointer-events: none;
  mix-blend-mode: overlay;
}
.dark-section::after {
  content: '';
  position: absolute;
  right: -80px;
  bottom: -80px;
  width: 360px;
  height: 360px;
  border: 50px solid rgba(60,118,141,0.12);
  border-radius: 50%;
  pointer-events: none;
}

/* ── DARK TESTIMONIAL ── */
.proof-testimonial {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 12px;
  padding: 24px;
  margin-bottom: 14px;
}
.proof-testimonial-text {
  font-family: 'Playfair Display', serif;
  font-style: italic;
  font-size: 15px;
  line-height: 1.65;
  color: rgba(255,255,255,0.85);
  margin-bottom: 12px;
}
.proof-testimonial-attr { font-size: 12px; font-weight: 600; color: rgba(255,255,255,0.4); }
.proof-testimonial-attr strong { color: rgba(255,255,255,0.7); }

/* ── CTA BLOCK ── */
.cta-block { background: var(--navy); padding: 100px var(--contain-pad); position: relative; overflow: hidden; }
.cta-block::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: var(--grain);
  background-repeat: repeat;
  background-size: 180px;
  pointer-events: none;
  mix-blend-mode: overlay;
}
.cta-block::after {
  content: '';
  position: absolute;
  right: -60px;
  bottom: -60px;
  width: 340px;
  height: 340px;
  border: 48px solid rgba(60,118,141,0.14);
  border-radius: 50%;
  pointer-events: none;
}
.cta-inner { max-width: 800px; margin: 0 auto; position: relative; z-index: 2; }
.cta-eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  font-style: italic;
  font-size: 14px;
  color: rgba(255,255,255,0.38);
  margin-bottom: 20px;
}
.cta-eyebrow::before { content: ''; display: inline-block; width: 24px; height: 1.5px; background: var(--teal); }
.cta-h2 {
  font-family: 'Playfair Display', serif;
  font-weight: 800;
  font-size: 48px;
  line-height: 1.1;
  color: #fff;
  margin-bottom: 20px;
  letter-spacing: -0.01em;
}
.cta-sub { font-size: 16px; line-height: 1.75; color: rgba(255,255,255,0.5); margin-bottom: 36px; max-width: 500px; }
.cta-btns { display: flex; align-items: center; gap: 20px; }

/* ── SPLIT CTA ── */
.split-cta { padding: 100px var(--contain-pad); border-top: 1px solid var(--warm-border); }
.split-cta-inner { max-width: 1120px; margin: 0 auto; display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.split-card { border-radius: 14px; padding: 52px; display: flex; flex-direction: column; gap: 16px; }
.split-card.light { background: var(--warm-white); border: 1px solid var(--warm-border); }
.split-card.dark { background: var(--navy); }
.split-label { font-family: 'Montserrat', sans-serif; font-size: 11px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--teal); }
.split-card.dark .split-label { color: rgba(255,255,255,0.4); }
.split-h3 { font-family: 'Playfair Display', serif; font-weight: 700; font-size: 28px; line-height: 1.2; color: var(--navy); }
.split-card.dark .split-h3 { color: #fff; }
.split-body { font-size: 15px; line-height: 1.7; color: var(--text-secondary); flex: 1; }
.split-card.dark .split-body { color: rgba(255,255,255,0.55); }

/* ── FOOTER ── */
footer {
  background: #0a1520;
  padding: 52px var(--contain-pad);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
}
.footer-logo { margin-right: auto; }
.footer-logo img { height: 26px; width: auto; opacity: 0.6; }
.footer-links { display: flex; gap: 28px; flex-wrap: wrap; align-items: center; }
footer .footer-links a { font-size: 13px; color: rgba(255,255,255,0.5); text-decoration: none; transition: color 0.2s; }
footer .footer-links a:hover { color: #fff; }
.footer-copy { font-size: 13px; color: rgba(255,255,255,0.4); white-space: nowrap; }
.footer-social { display: flex; align-items: center; gap: 16px; }
.footer-social a { display: inline-flex; align-items: center; justify-content: center; color: rgba(255,255,255,0.55); transition: color 0.2s, transform 0.15s; }
.footer-social a:hover { color: #fff; transform: translateY(-2px); }
.footer-social svg { width: 18px; height: 18px; fill: currentColor; }
.footer-contact { font-size: 13px; color: rgba(255,255,255,0.3); }
.footer-contact a { color: rgba(255,255,255,0.45); text-decoration: none; }
@media (max-width: 880px) {
  footer { justify-content: center; text-align: center; gap: 16px; }
  .footer-logo { margin-right: 0; }
  .footer-links { justify-content: center; gap: 18px 24px; }
}

/* ============================================================
   BLOG  (generated pages use these — see blog/build.js)
   ============================================================ */

/* ── MASTHEAD ── */
.blog-hero { background: var(--cream); padding: 72px var(--contain-pad) 56px; border-bottom: 1px solid var(--warm-border); }
.blog-hero-inner { max-width: 1120px; margin: 0 auto; }
.blog-hero-title { display: block; font-family: 'Playfair Display', serif; font-weight: 800; font-size: 60px; line-height: 1.04; color: var(--navy); letter-spacing: -0.02em; margin: 14px 0 18px; }
.blog-hero-sub { font-size: 17px; line-height: 1.7; color: var(--text-secondary); max-width: 900px; }
.blog-hero-sub .nowrap { white-space: nowrap; }
/* Compact, linked variant used atop post pages */
.blog-hero--post { padding-top: 48px; padding-bottom: 40px; }
.blog-hero--post .blog-hero-title { font-size: 44px; margin: 10px 0 14px; }
.blog-hero--post .blog-hero-sub { font-size: 15.5px; }
.hero-eyebrow--link, .blog-hero-title--link { text-decoration: none; transition: color 0.18s; }
.hero-eyebrow--link:hover, .blog-hero-title--link:hover { color: var(--teal); }

/* ── LISTING GRID ── */
.blog-listing { padding: 64px var(--contain-pad) 96px; }
.blog-grid { max-width: 1120px; margin: 0 auto; display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px 28px; }
.blog-card { display: flex; flex-direction: column; background: var(--warm-white); border: 1px solid var(--warm-border); border-radius: 16px; overflow: hidden; text-decoration: none; transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease; }
.blog-card:hover { transform: translateY(-4px); box-shadow: 0 22px 48px -22px rgba(14,27,46,0.28); border-color: var(--warm-accent); }
.blog-card-body { padding: 30px 28px 28px; display: flex; flex-direction: column; flex: 1; }
.blog-card-meta { font-family: 'Montserrat', sans-serif; font-size: 11px; font-weight: 700; letter-spacing: 0.09em; text-transform: uppercase; color: var(--teal); margin-bottom: 14px; }
.blog-card-title { font-family: 'Playfair Display', serif; font-weight: 700; font-size: 23px; line-height: 1.22; color: var(--navy); margin-bottom: 13px; }
.blog-card-excerpt { font-size: 14.5px; line-height: 1.65; color: var(--text-secondary); margin-bottom: 18px; display: -webkit-box; -webkit-line-clamp: 3; line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; max-height: calc(1.65em * 3); }
.blog-card-link { font-size: 13px; font-weight: 600; color: var(--teal); margin-top: auto; }
.blog-card .dot { margin: 0 7px; opacity: 0.4; }

/* ── PAGINATION ── */
.blog-pager { max-width: 1120px; margin: 64px auto 0; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.blog-pager-nums { display: flex; gap: 8px; }
.blog-pager-num { display: inline-flex; align-items: center; justify-content: center; min-width: 40px; height: 40px; padding: 0 6px; border-radius: 100px; font-size: 14px; font-weight: 600; color: var(--navy); text-decoration: none; border: 1px solid var(--warm-border); transition: background 0.15s, color 0.15s; }
.blog-pager-num:hover { background: var(--warm-white); }
.blog-pager-num.is-current { background: var(--navy); color: #fff; border-color: var(--navy); }
.blog-pager-edge { font-size: 14px; font-weight: 600; color: var(--teal); text-decoration: none; }
.blog-pager-edge.is-disabled { color: var(--text-secondary); opacity: 0.4; }

/* ── POST PAGE (two-column: article + sticky sidebar) ── */
.blog-post-layout { max-width: 1160px; margin: 0 auto; padding: 50px 32px 0; display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 64px; align-items: start; }
.blog-post { min-width: 0; }
.blog-back { font-size: 13px; font-weight: 600; color: var(--teal); text-decoration: none; }
.blog-post-head { padding: 4px 0 8px; }
.blog-post-meta { font-family: 'Montserrat', sans-serif; margin: 22px 0 18px; }
.blog-post-date { display: block; font-size: 14px; font-weight: 800; letter-spacing: 0.05em; text-transform: uppercase; color: var(--navy); margin-bottom: 11px; }
.blog-post-meta-tags { display: block; font-size: 11px; font-weight: 600; letter-spacing: 0.07em; text-transform: uppercase; color: #a7a39c; }
.blog-post-meta-tags .dot { margin: 0 7px; opacity: 0.55; }
.blog-post-title { font-family: 'Playfair Display', serif; font-weight: 800; font-size: 42px; line-height: 1.1; color: var(--navy); letter-spacing: -0.02em; }
.blog-post-hero { margin: 36px 0 8px; border-radius: 16px; overflow: hidden; }
.blog-post-hero img { width: 100%; height: auto; display: block; }

/* ── POST PROSE ── */
.blog-content { max-width: 720px; margin: 34px 0 0; font-size: 18px; line-height: 1.78; color: #2b3a4d; }
.blog-content > *:first-child { margin-top: 0; }
.blog-content p { margin: 0 0 26px; }
.blog-content h2 { font-family: 'Playfair Display', serif; font-weight: 800; font-size: 30px; line-height: 1.2; color: var(--navy); letter-spacing: -0.01em; margin: 48px 0 18px; }
.blog-content h3 { font-family: 'Playfair Display', serif; font-weight: 700; font-size: 23px; line-height: 1.25; color: var(--navy); margin: 38px 0 14px; }
.blog-content a { color: var(--teal); text-decoration: underline; text-underline-offset: 3px; }
.blog-content a:hover { color: var(--navy); }
.blog-content ul, .blog-content ol { margin: 0 0 26px; padding-left: 24px; }
.blog-content li { margin-bottom: 10px; }
.blog-content img { max-width: 100%; height: auto; border-radius: 12px; margin: 32px auto; display: block; }
.blog-content iframe { width: 100%; aspect-ratio: 16 / 9; height: auto; border: 0; border-radius: 12px; margin: 32px 0; display: block; }
.blog-content blockquote { margin: 32px 0; padding: 4px 0 4px 28px; border-left: 3px solid var(--teal); font-family: 'Playfair Display', serif; font-style: italic; font-size: 22px; line-height: 1.5; color: var(--navy); }
.blog-content em { font-style: italic; }
.blog-content strong { font-weight: 700; color: var(--navy); }
.blog-content hr { border: none; border-top: 1px solid var(--warm-border); margin: 40px 0; }
.blog-post-tags { margin: 44px 0 0; padding-top: 28px; border-top: 1px solid var(--warm-border); display: flex; flex-wrap: wrap; gap: 10px; }
.blog-tag { font-family: 'Montserrat', sans-serif; font-size: 11px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--teal); background: #EEF4F7; padding: 6px 14px; border-radius: 100px; }
.blog-post-layout + .cta-block { margin-top: 80px; }

/* ── SIDEBAR + SUBSCRIBE CARD ── */
.blog-sidebar { position: sticky; top: 100px; }
.blog-subscribe-card { background: var(--navy); border-radius: 16px; padding: 30px 28px 32px; position: relative; overflow: hidden; }
.blog-subscribe-card::before { content: ''; position: absolute; inset: 0; background-image: var(--grain); background-repeat: repeat; background-size: 180px; mix-blend-mode: overlay; pointer-events: none; }
.blog-subscribe-card > * { position: relative; z-index: 1; }
.blog-subscribe-eyebrow { font-family: 'Montserrat', sans-serif; font-size: 11px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--teal); margin-bottom: 12px; }
.blog-subscribe-title { font-family: 'Playfair Display', serif; font-weight: 700; font-size: 23px; line-height: 1.22; color: #fff; margin-bottom: 10px; }
.blog-subscribe-body { font-size: 14.5px; line-height: 1.6; color: rgba(255,255,255,0.62); margin-bottom: 22px; }
.blog-subscribe-btn { display: inline-block; background: #fff; color: var(--navy); border: none; padding: 13px 28px; border-radius: 100px; font-family: 'DM Sans', sans-serif; font-size: 14px; font-weight: 700; cursor: pointer; transition: background 0.2s, color 0.2s, transform 0.15s; }
.blog-subscribe-btn:hover { background: var(--teal); color: #fff; transform: translateY(-1px); }

/* ── SUBSCRIBE MODAL ── */
.blog-modal[hidden] { display: none; }
.blog-modal { position: fixed; inset: 0; z-index: 200; display: flex; align-items: center; justify-content: center; padding: 24px; }
.blog-modal__overlay { position: absolute; inset: 0; background: rgba(10,21,32,0.6); backdrop-filter: blur(3px); }
.blog-modal__dialog { position: relative; z-index: 1; width: 100%; max-width: 460px; max-height: 90vh; overflow-y: auto; background: var(--warm-white); border: 1px solid var(--warm-border); border-radius: 18px; padding: 40px 38px 36px; box-shadow: 0 40px 90px -30px rgba(10,21,32,0.5); }
.blog-modal__close { position: absolute; top: 14px; right: 16px; width: 34px; height: 34px; border: none; background: transparent; font-size: 26px; line-height: 1; color: var(--text-secondary); cursor: pointer; border-radius: 50%; transition: background 0.15s, color 0.15s; }
.blog-modal__close:hover { background: var(--cream); color: var(--navy); }
.blog-modal__title { font-family: 'Playfair Display', serif; font-weight: 800; font-size: 26px; line-height: 1.18; color: var(--navy); margin-bottom: 10px; }
.blog-modal__sub { font-size: 15px; line-height: 1.6; color: var(--text-secondary); margin-bottom: 24px; }

/* Kajabi form overrides (scoped to the modal) — mirrors the site's embed styling */
.blog-modal .nl-row #kajabi-form { max-width: 100%; }
.blog-modal .nl-row .kajabi-form__title, .blog-modal .nl-row .kajabi-form__subtitle { display: none !important; }
.blog-modal .nl-row #kajabi-form form { margin: 0 !important; padding: 0 !important; background: transparent !important; border: none !important; }
.blog-modal .nl-row #kajabi-form fieldset { border: none !important; margin: 0 !important; padding: 0 !important; display: flex !important; flex-direction: column !important; gap: 12px !important; }
.blog-modal .nl-row #kajabi-form .kajabi-form__form-item { margin: 0 !important; }
.blog-modal .nl-row #kajabi-form input[type=text], .blog-modal .nl-row #kajabi-form input[type=email] { width: 100% !important; box-sizing: border-box !important; border-radius: 100px !important; padding: 13px 20px !important; font-family: 'DM Sans', sans-serif !important; font-size: 14px !important; background: #fff !important; border: 1px solid var(--warm-border) !important; color: var(--navy) !important; outline: none !important; text-align: left !important; margin: 0 !important; }
.blog-modal .nl-row #kajabi-form input::placeholder { color: var(--text-secondary) !important; opacity: 0.6 !important; }
.blog-modal .nl-row #kajabi-form input:focus { border-color: var(--teal) !important; }
.blog-modal .nl-row .kajabi-form__btn { border: none !important; border-radius: 100px !important; padding: 14px 30px !important; font-family: 'DM Sans', sans-serif !important; font-size: 14px !important; font-weight: 700 !important; cursor: pointer !important; width: 100% !important; float: none !important; margin: 4px 0 0 !important; background: var(--navy) !important; color: #fff !important; text-transform: none !important; transition: background 0.2s !important; }
.blog-modal .nl-row .kajabi-form__btn:hover { background: var(--teal) !important; }

/* ── RESPONSIVE ── */
@media (max-width: 980px) {
  .blog-post-layout { grid-template-columns: 1fr; gap: 44px; }
  .blog-sidebar { position: static; max-width: 460px; }
}
@media (max-width: 900px) {
  .blog-grid { grid-template-columns: repeat(2, 1fr); }
  .blog-hero-title { font-size: 44px; }
}
@media (max-width: 600px) {
  .blog-grid { grid-template-columns: 1fr; }
  .blog-hero-title { font-size: 36px; }
  .blog-hero--post .blog-hero-title { font-size: 34px; }
  .blog-post-title { font-size: 30px; }
  .blog-content { font-size: 17px; }
  /* .blog-pager is a <nav>; drop the inherited fixed height + bottom border
     (the wrapped numbers overflowed the 76px box and the border cut through). */
  .blog-pager { flex-direction: column; gap: 20px; align-items: stretch; height: auto; border-bottom: 0; }
  .blog-pager-edge { text-align: center; }
  /* Cap the row so 9 numbers wrap into balanced rows (5+4), centered. */
  .blog-pager-nums { flex-wrap: wrap; justify-content: center; align-self: center; max-width: 252px; }
  .blog-post-layout { padding: 36px 22px 0; }
}

/* ============================================================
   GLOBAL RESPONSIVE BASELINE
   Shared mobile foundation for the marketing layout + nav.
   Breakpoints: 900px (tablet/handheld), 600px (phone).
   ============================================================ */

/* iOS Safari paints scrolled content above a sticky nav when an ancestor
   clips overflow — so we deliberately do NOT set overflow-x on html/body.
   Pin the nav above everything, drop the backdrop-filter, and force an
   opaque background. `body nav` also overrides the per-page inline nav defs. */
body nav {
  background: #F7F3ED;
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
  z-index: 1000;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

/* ── MOBILE NAV TOGGLE (hamburger) ──
   Button is injected by nav.js; hidden above the collapse breakpoint. */
.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  padding: 10px;
  background: none;
  border: 0;
  border-radius: 10px;
  color: var(--navy);
  cursor: pointer;
}
.nav-toggle:focus-visible { outline: 2px solid var(--teal); outline-offset: 2px; }
.nav-toggle:focus:not(:focus-visible) { outline: none; }
.nav-toggle svg { width: 24px; height: 24px; display: block; overflow: visible; }
.nav-toggle line {
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  transform-box: fill-box;
  transform-origin: center;
  transition: transform 0.2s ease, opacity 0.15s ease;
}
nav.nav-open .nav-toggle .nt-l1 { transform: translateY(5px) rotate(45deg); }
nav.nav-open .nav-toggle .nt-l2 { opacity: 0; }
nav.nav-open .nav-toggle .nt-l3 { transform: translateY(-5px) rotate(-45deg); }

/* Mobile nav: collapse the links to a hamburger menu below 1100px.
   The menu drops below as an opaque, scrollable panel (not in bar flow).
   Rules are scoped under `nav` so they out-specify the bare `.nav-links`
   declarations that ~45 pages duplicate in their own inline <style>. */
@media (max-width: 1100px) {
  nav { flex-wrap: nowrap; }
  nav .nav-logo { margin-right: auto; }
  nav .nav-cta { order: 2; }
  nav .nav-toggle { display: inline-flex; order: 3; margin-left: 6px; }
  nav .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 6px var(--contain-pad) 16px;
    background: var(--cream);
    border-top: 1px solid var(--warm-border);
    border-bottom: 1px solid var(--warm-border);
    box-shadow: 0 22px 34px -20px rgba(14,27,46,0.32);
    max-height: calc(100vh - 76px);
    overflow-y: auto;
  }
  nav.nav-open .nav-links { display: flex; }
  nav .nav-links > li { width: 100%; border-top: 1px solid var(--warm-border); }
  nav .nav-links > li:first-child { border-top: 0; }
  nav .nav-links > li > a { display: block; font-size: 16px; opacity: 0.85; padding: 14px 2px; }
  nav .nav-links .has-dropdown > a { padding: 14px 2px; }
  nav .nav-links .nav-dropdown { padding: 0 0 8px 14px; }
  nav .nav-links .nav-dropdown a { font-size: 14px; padding: 9px 2px; }
}

@media (max-width: 900px) {
  /* Tighten the global side padding so content can breathe on small screens.
     `html:root` out-specifies a bare `:root` redefinition some pages inline. */
  html:root { --contain-pad: 40px; }

  /* Hero → single column; drop the fixed 420px track and the side rule. */
  .hero { padding-top: 56px; }
  .hero-inner { grid-template-columns: 1fr; gap: 32px; padding-bottom: 56px; }
  .hero-h1 { font-size: clamp(38px, 9vw, 56px); }
  .hero-right { border-left: 0; padding-left: 0; padding-top: 28px; border-top: 1px solid var(--warm-border); }

  /* Stats strip → stack; kill the nowrap crush. */
  .stats-strip { flex-direction: column; }
  .stat-item { flex: none; padding: 22px 4px; border-right: 0; border-bottom: 1px solid rgba(255,255,255,0.08); }
  .stat-item:last-child { border-bottom: 0; }

  /* Split CTA → single column. */
  .split-cta-inner { grid-template-columns: 1fr; }
  .split-card { padding: 36px 28px; }

  /* Bring oversized headings + section padding down. */
  .section-h2 { font-size: clamp(30px, 6vw, 40px); }
  .cta-h2 { font-size: clamp(30px, 6vw, 42px); }
  .cta-block { padding: 72px var(--contain-pad); }
  .split-cta { padding: 72px var(--contain-pad); }

  /* Photo break shorter + quote smaller. */
  .photo-break { height: 380px; }
  .photo-break-quote { font-size: 24px; max-width: none; }
}

@media (max-width: 600px) {
  html:root { --contain-pad: 22px; }
  .nav-logo img { height: 28px; }
  .nav-cta { padding: 9px 18px; }
  .hero-h1 { font-size: clamp(32px, 8.5vw, 44px); }
  .section-h2 { font-size: clamp(27px, 7vw, 34px); }
  .cta-h2 { font-size: clamp(28px, 7.5vw, 38px); }
  .stat-num { font-size: 34px; }
  .quote-card { padding: 28px 24px; }
  .photo-break { height: 320px; }
  .photo-break-quote { font-size: 21px; }
  .cta-btns { flex-direction: column; align-items: stretch; gap: 12px; }
  .cta-btns > a { text-align: center; }
}

/* iOS Safari zooms the page when a focused field's font-size is < 16px.
   Force 16px on phones for all native opt-in form fields (.js-optin-form use
   id="kajabi-form"). The :not(#_) bumps specificity above the per-page
   #kajabi-form overrides (incl. .blog-modal) without changing the target. */
@media (max-width: 600px) {
  #kajabi-form:not(#_) input,
  #kajabi-form:not(#_) select,
  #kajabi-form:not(#_) textarea { font-size: 16px !important; }
}
