/* ============================================================
   HOW TO CAFE — thehowtocafe.com · Shared Stylesheet
   Deep Slate brand palette (H2C Brand Hub tokens, 2026-06-14)
   Built 2026-07-05 · Phase 1 launch
   ============================================================ */

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

:root {
  /* Brand tokens */
  --slate:      #1E2A35;
  --flame:      #FF6B35;
  --flame-dk:   #E2551F;
  --teal:       #00BFA5;
  --white:      #FFFFFF;
  --surface:    #F2F5F7;
  --frost:      #E6FAF8;
  --warm-gray:  #8A7A6E;
  --divider:    #DDE3E7;

  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif;

  --radius-sm: 8px;
  --radius:    12px;
  --radius-lg: 18px;
  --shadow:    0 1px 3px rgba(30,42,53,0.08), 0 6px 18px rgba(30,42,53,0.07);
  --max:       1080px;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.7;
  color: var(--slate);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

/* --- Typography ------------------------------------------- */
h1, h2, h3 { line-height: 1.15; letter-spacing: -0.02em; }
h1 { font-size: clamp(34px, 5vw, 54px); font-weight: 900; }
h2 { font-size: clamp(26px, 3.4vw, 36px); font-weight: 900; }
h3 { font-size: clamp(19px, 2vw, 22px); font-weight: 600; }
p  { margin: 0; }
a  { color: var(--flame-dk); }

.lead {
  font-size: clamp(17px, 1.8vw, 20px);
  color: #4A5560;
  font-weight: 400;
}
.kicker {
  display: inline-block;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 14px;
}
.kicker.flame { color: var(--flame); }

/* --- Layout ------------------------------------------------ */
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 22px; }
section { padding: 72px 0; }
.section-subtle { background: var(--surface); }
.section-frost  { background: var(--frost); }
.section-dark   { background: var(--slate); color: var(--white); }
.section-dark .lead { color: #C6CFD6; }
.center { text-align: center; }

/* --- Header ------------------------------------------------ */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: var(--white);
  border-bottom: 1px solid var(--divider);
}
.header-inner {
  max-width: var(--max); margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 22px;
}
.logo-link { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.logo-img { height: 46px; width: auto; display: block; }
.site-nav { display: flex; align-items: center; gap: 4px; }
.nav-link {
  font-size: 15px; font-weight: 500; color: var(--slate);
  text-decoration: none; padding: 8px 13px; border-radius: var(--radius-sm);
}
.nav-link:hover { background: var(--surface); }
.nav-link.active { color: var(--flame-dk); }
.nav-cta {
  background: var(--flame); color: var(--white) !important;
  font-weight: 600; margin-left: 6px;
}
.nav-cta:hover { background: var(--flame-dk); }

/* Mobile nav */
.hamburger {
  display: none; background: none; border: 0; cursor: pointer;
  padding: 8px; flex-direction: column; gap: 5px;
}
.hamburger span { width: 24px; height: 2.5px; background: var(--slate); border-radius: 2px; display: block; }
.mobile-nav {
  display: none; background: var(--white); border-bottom: 1px solid var(--divider);
  padding: 8px 22px 18px;
}
.mobile-nav.open { display: block; }
.mobile-nav a {
  display: block; padding: 12px 4px; font-size: 17px; font-weight: 500;
  color: var(--slate); text-decoration: none; border-bottom: 1px solid var(--surface);
}
.mobile-nav a.nav-cta {
  background: var(--flame); color: var(--white); text-align: center;
  border-radius: var(--radius-sm); margin-top: 12px; border-bottom: 0;
}

/* Open badge (cafe touch) */
.open-badge {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 13px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--teal); background: var(--frost);
  padding: 6px 14px; border-radius: 999px; margin-bottom: 22px;
}
.open-badge::before {
  content: ""; width: 8px; height: 8px; border-radius: 50%;
  background: var(--teal);
}

/* --- Buttons ------------------------------------------------ */
.btn {
  display: inline-block;
  font-family: var(--font); font-size: 16px; font-weight: 600;
  padding: 14px 28px; border-radius: var(--radius-sm);
  text-decoration: none; cursor: pointer; border: 0;
  transition: background 0.15s ease, transform 0.1s ease;
}
.btn:active { transform: translateY(1px); }
.btn-flame { background: var(--flame); color: var(--white); }
.btn-flame:hover { background: var(--flame-dk); }
.btn-slate { background: var(--slate); color: var(--white); }
.btn-slate:hover { background: #2C3D4D; }
.btn-ghost {
  background: transparent; color: var(--slate);
  border: 1.5px solid var(--divider);
}
.btn-ghost:hover { border-color: var(--slate); }
.btn-big { font-size: 18px; padding: 17px 36px; }
.btn-note { font-size: 14px; color: var(--warm-gray); margin-top: 12px; }

/* --- Cards -------------------------------------------------- */
.card-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-top: 40px; }
.card-grid.two { grid-template-columns: 1fr 1fr; }
.card {
  background: var(--white); border: 1px solid var(--divider);
  border-radius: var(--radius-lg); padding: 30px;
  display: flex; flex-direction: column; gap: 12px;
}
.card.featured { border: 2px solid var(--teal); background: var(--frost); }
.card.dark { background: var(--slate); color: var(--white); border-color: var(--slate); }
.card.dark p { color: #C6CFD6; }
.card h3 { margin: 0; }
.card p { font-size: 15.5px; color: #4A5560; }
.card .card-tag {
  align-self: flex-start;
  font-size: 12px; font-weight: 700; letter-spacing: 0.09em; text-transform: uppercase;
  color: var(--flame-dk); background: #FFEDE4;
  padding: 4px 11px; border-radius: 999px;
}
.card .card-tag.teal { color: #00806E; background: var(--frost); }
.card-icon { font-size: 30px; line-height: 1; }

/* Today's Special card */
.special-card {
  background: var(--white); border: 2px solid var(--flame);
  border-radius: var(--radius-lg); padding: 38px;
  box-shadow: var(--shadow);
  display: grid; grid-template-columns: 1fr auto; gap: 28px; align-items: center;
}
.special-badge {
  display: inline-block; background: var(--flame); color: var(--white);
  font-size: 13px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase;
  padding: 6px 14px; border-radius: 999px; margin-bottom: 16px;
}

/* Quote / mirror boxes */
.mirror-q {
  background: var(--surface); border-left: 3px solid var(--teal);
  border-radius: var(--radius-sm); padding: 16px 22px;
  font-size: 16.5px; color: #3D4954; text-align: left;
}
.mirror-stack { display: flex; flex-direction: column; gap: 12px; max-width: 640px; margin: 36px auto 0; }

/* --- Forms -------------------------------------------------- */
.email-form {
  display: flex; gap: 10px; max-width: 460px; margin: 26px auto 0; flex-wrap: wrap;
  justify-content: center;
}
.email-form input[type="email"] {
  flex: 1 1 240px;
  font-family: var(--font); font-size: 16px;
  padding: 14px 16px; border: 1.5px solid var(--divider); border-radius: var(--radius-sm);
  color: var(--slate);
}
.email-form input[type="email"]:focus { outline: 2px solid var(--teal); border-color: var(--teal); }
.form-note { font-size: 14px; color: var(--warm-gray); margin-top: 12px; }

/* --- Steps -------------------------------------------------- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-top: 40px; }
.step { text-align: left; }
.step-num {
  display: inline-flex; align-items: center; justify-content: center;
  width: 40px; height: 40px; border-radius: 50%;
  background: var(--slate); color: var(--white);
  font-weight: 700; font-size: 17px; margin-bottom: 14px;
}
.step h3 { margin-bottom: 8px; }
.step p { font-size: 15.5px; color: #4A5560; }

/* --- FAQ ---------------------------------------------------- */
.faq-list { max-width: 760px; margin: 36px auto 0; text-align: left; }
.faq-item { border-top: 1px solid var(--divider); padding: 26px 0; }
.faq-item:last-child { border-bottom: 1px solid var(--divider); }
.faq-item h3 { margin-bottom: 10px; }
.faq-item p { font-size: 16px; color: #4A5560; }

/* --- Price block -------------------------------------------- */
.price-block {
  background: var(--white); border: 2px solid var(--teal);
  border-radius: var(--radius-lg); padding: 40px; max-width: 460px;
  margin: 36px auto 0; text-align: center; box-shadow: var(--shadow);
}
.price-big { font-size: 58px; font-weight: 900; letter-spacing: -0.03em; }
.price-big span { font-size: 20px; font-weight: 500; color: var(--warm-gray); }
.price-tag {
  display: inline-block; background: var(--frost); color: #00806E;
  font-size: 13px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase;
  padding: 6px 14px; border-radius: 999px; margin-bottom: 14px;
}

/* --- Footer ------------------------------------------------- */
.site-footer { background: var(--slate); color: #B8C2CB; padding: 60px 0 30px; }
.footer-grid {
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 44px;
  padding-bottom: 36px; border-bottom: 1px solid #33424F;
}
.footer-logo { height: 52px; width: auto; margin-bottom: 14px; }
.footer-desc { font-size: 14.5px; line-height: 1.65; }
.footer-heading {
  display: block; font-size: 12px; font-weight: 700; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--teal); margin-bottom: 14px;
}
.footer-links { display: flex; flex-direction: column; gap: 9px; }
.footer-links a { color: #B8C2CB; text-decoration: none; font-size: 15px; }
.footer-links a:hover { color: var(--white); }
.footer-bottom {
  display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap;
  gap: 8px; padding-top: 22px; font-size: 13px; color: #8496A5;
}
.footer-bottom a { color: #8496A5; }

/* --- Responsive --------------------------------------------- */
@media (max-width: 900px) {
  .site-nav { display: none; }
  .hamburger { display: flex; }
  .card-grid, .card-grid.two { grid-template-columns: 1fr 1fr; }
  .steps { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  section { padding: 52px 0; }
  .site-nav { display: none; }
  .hamburger { display: flex; }
  .card-grid, .card-grid.two { grid-template-columns: 1fr; }
  .special-card { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 30px; }
  body { font-size: 16.5px; }
}

/* ============================================================
   GRAPHICS LAYER — added 2026-07-06 (approved image set)
   ============================================================ */

/* --- Split hero (copy left, art right) ---------------------- */
.hero-grid {
  display: grid; grid-template-columns: 11fr 9fr;
  gap: clamp(28px, 4vw, 56px); align-items: center;
  max-width: var(--max); margin: 0 auto; padding: 0 22px;
}
.hero-copy { text-align: left; }
.hero-copy .hero-ctas { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 32px; }
.hero-copy .lead { margin: 22px 0 0; }
.hero-art img {
  width: 100%; display: block;
  border-radius: var(--radius-lg);
  box-shadow: 0 8px 30px rgba(30,42,53,0.18);
}

/* --- Texture backgrounds ------------------------------------ */
.bg-texture-light {
  background: linear-gradient(rgba(255,255,255,0.86), rgba(255,255,255,0.86)),
              url('../images/bg-light.jpg') center / cover no-repeat;
}
.bg-texture-light-soft {
  background: linear-gradient(rgba(255,255,255,0.72), rgba(255,255,255,0.72)),
              url('../images/bg-light.jpg') center / cover no-repeat;
}
.section-dark.bg-texture-dark {
  background: linear-gradient(rgba(30,42,53,0.82), rgba(30,42,53,0.82)),
              url('../images/bg-dark.jpg') center / cover no-repeat;
}

/* --- Icon system (from h2c icon package) -------------------- */
.card-icon img, img.h2c-icon {
  width: 46px; height: 46px; display: inline-block; vertical-align: middle;
}
.icon-chip {
  display: inline-flex; align-items: center; justify-content: center;
  width: 74px; height: 74px; border-radius: 20px;
  background: var(--frost);
}
.card .icon-chip { margin-bottom: 2px; }
.card.dark .icon-chip, .section-dark .icon-chip { background: rgba(255,255,255,0.08); }

/* --- Inline feature images ----------------------------------- */
.feature-img {
  width: 100%; display: block;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}
.split-2 {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: clamp(28px, 4vw, 56px); align-items: center;
}
.special-thumb {
  width: 260px; max-width: 100%; display: block;
  border-radius: var(--radius); box-shadow: var(--shadow);
}

/* --- Responsive --------------------------------------------- */
@media (max-width: 860px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-art { max-width: 520px; margin: 8px auto 0; }
  .split-2 { grid-template-columns: 1fr; }
  .special-thumb { width: 200px; margin: 0 auto; }
}

/* ============================================================
   CINEMATIC LAYER v3 — full-bleed image heroes + statement sections
   ============================================================ */

/* --- Full-bleed hero -------------------------------------- */
.hero-bg {
  position: relative;
  min-height: min(74vh, 700px);
  display: flex; align-items: center;
  padding: 96px 0;
  background-size: cover;
  background-position: center;
  color: var(--white);
}
.hero-bg::before {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(100deg,
    rgba(23,33,42,0.90) 0%,
    rgba(23,33,42,0.62) 46%,
    rgba(23,33,42,0.12) 100%);
}
.hero-bg .wrap { position: relative; z-index: 1; }
.hero-bg .hero-copy { max-width: 620px; text-align: left; }
.hero-bg h1 { color: var(--white); text-shadow: 0 2px 18px rgba(0,0,0,0.35); }
.hero-bg .lead { color: #DCE5EA; text-shadow: 0 1px 10px rgba(0,0,0,0.3); }
.hero-bg .btn-note { color: #B9C6CF; }
.hero-bg .kicker { color: #4FE0C8; }
.hero-bg .kicker.flame { color: #FF8B5E; }
.hero-bg .open-badge {
  background: rgba(230,250,248,0.14); color: #6FF0DA;
  backdrop-filter: blur(3px);
}
.hero-bg .open-badge::before { background: #6FF0DA; }
.hero-bg .btn-ghost, .section-dark .btn-ghost, .img-section .btn-ghost,
.section-chalkboard .btn-ghost { color: var(--white); border-color: rgba(255,255,255,0.55); }
.hero-bg .btn-ghost:hover, .section-dark .btn-ghost:hover, .img-section .btn-ghost:hover,
.section-chalkboard .btn-ghost:hover { border-color: var(--white); background: rgba(255,255,255,0.08); }

.hero-bg--home       { background-image: url('../images/hero-home.jpg'); }
.hero-bg--start      { background-image: url('../images/hero-start.jpg?v=2'); }
.hero-bg--downloads  { background-image: url('../images/hero-downloads.jpg?v=2'); }
.hero-bg--membership { background-image: url('../images/hero-join-tv.jpg'); }
.hero-bg--founders   { background-image: url('../images/hero-founders.jpg?v=2'); }

/* --- Image-backed statement sections ------------------------ */
.img-section {
  position: relative;
  padding: 110px 0;
  background-size: cover; background-position: center;
  color: var(--white);
}
.img-section::before {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(100deg,
    rgba(23,33,42,0.92) 0%,
    rgba(23,33,42,0.66) 55%,
    rgba(23,33,42,0.30) 100%);
}
.img-section .wrap { position: relative; z-index: 1; }
.img-section h2 { color: var(--white); }
.img-section .lead { color: #DCE5EA; }
.img-section .kicker { color: #4FE0C8; }
.img-section--workshop { background-image: url('../images/img-gsai-workshop.jpg'); }

.img-section--light {
  color: var(--slate);
}
.img-section--light::before {
  background: linear-gradient(rgba(255,255,255,0.90), rgba(255,255,255,0.86));
}
.img-section--light h2 { color: var(--slate); }
.img-section--light .lead { color: #3D4954; }
.img-section--sitdown { background-image: url('../images/bg-sitdown.jpg?v=2'); }

.img-section--tvroom { background-image: url('../images/img-tvroom.jpg'); }
.img-section--tvroom::before {
  background: linear-gradient(270deg,
    rgba(23,33,42,0.92) 0%,
    rgba(23,33,42,0.74) 34%,
    rgba(23,33,42,0.22) 62%,
    rgba(23,33,42,0.05) 100%);
}
.img-section--tvroom .wrap { display: flex; justify-content: flex-end; }
@media (max-width: 640px) {
  .img-section--tvroom { background-position: 34% center; }
  .img-section--tvroom::before {
    background: linear-gradient(180deg, rgba(23,33,42,0.55) 0%, rgba(23,33,42,0.90) 100%);
  }
  .img-section--tvroom .wrap { justify-content: flex-start; }
}

/* --- Inline brand lockups (shop/tv) ------------------------- */
.htc-font { font-family: 'Inter', -apple-system, 'Segoe UI', Helvetica, sans-serif; }
.brand-lockup { height: 40px; width: auto; display: block; margin-bottom: 16px; }

/* --- Dark section form/text adjustments --------------------- */
.section-dark .form-note, .section-dark .btn-note { color: #AAB7C2; }
.section-dark h3 { color: var(--white); }

/* --- Responsive: heroes on mobile ---------------------------- */
@media (max-width: 640px) {
  .hero-bg {
    min-height: 0; padding: 72px 0 64px;
  }
  .hero-bg::before {
    background: linear-gradient(180deg,
      rgba(23,33,42,0.82) 0%,
      rgba(23,33,42,0.88) 100%);
  }
  .img-section { padding: 72px 0; }
}

/* ============================================================
   v4 — Warm cream replaces frost backgrounds + chalkboard specials
   ============================================================ */

/* Frost is an accent, not a wall. Backgrounds go warm cream. */
:root { --cream: #FFF4DF; --cream-soft: #FFF9EF; }
.section-frost { background: var(--cream-soft); }
.card.featured { background: var(--cream-soft); border-color: var(--teal); }

/* --- The Chalkboard (Today's Special, diner style) ----------- */
.section-chalkboard {
  background: linear-gradient(rgba(16,22,28,0.25), rgba(16,22,28,0.25)),
              url('../images/bg-chalkboard.jpg') center / cover;
  color: var(--white);
  padding: 84px 0;
}
.section-chalkboard h2 { color: var(--white); }
.section-chalkboard h3 { color: var(--white); }
.section-chalkboard .form-note, .section-chalkboard .btn-note { color: #B9C6CF; }

.special-card--chalk {
  background: rgba(255,255,255,0.045);
  border: 2px dashed rgba(255,255,255,0.55);
  border-radius: var(--radius-lg);
  box-shadow: none;
}
.special-card--chalk h2 { color: var(--white); }
.special-card--chalk p, .special-card--chalk ul, .special-card--chalk li {
  color: #DDE6EC !important;
}
.chalk-script {
  font-family: 'Caveat', cursive;
  font-size: clamp(30px, 3.4vw, 42px);
  font-weight: 600;
  color: #FFD9A0;
  display: inline-block;
  transform: rotate(-2deg);
  margin-bottom: 10px;
  text-shadow: 0 1px 6px rgba(0,0,0,0.4);
}
.special-card--chalk .special-thumb {
  border: 8px solid #FDFDFB;
  border-radius: 4px;
  transform: rotate(2deg);
  box-shadow: 0 10px 26px rgba(0,0,0,0.45);
}
.chalk-underline {
  display: block; width: 130px; height: 3px; margin-top: 4px;
  background: repeating-linear-gradient(90deg, rgba(255,255,255,0.75) 0 12px, transparent 12px 17px);
  border-radius: 2px;
}

/* v6 — flipped hero variant (copy right, art interest stays left) */
.hero-bg--flip::before {
  background: linear-gradient(260deg,
    rgba(23,33,42,0.90) 0%,
    rgba(23,33,42,0.62) 46%,
    rgba(23,33,42,0.10) 100%);
}
.hero-bg--flip .hero-copy { margin-left: auto; }
@media (max-width: 640px) {
  .hero-bg--flip::before {
    background: linear-gradient(180deg, rgba(23,33,42,0.82) 0%, rgba(23,33,42,0.88) 100%);
  }
}

/* v7 — membership hero: custom scrim that keeps the TV UI bright */
.hero-bg--membership::before {
  background: linear-gradient(100deg,
    rgba(23,33,42,0.92) 0%,
    rgba(23,33,42,0.72) 32%,
    rgba(23,33,42,0.20) 56%,
    rgba(23,33,42,0.04) 100%);
}
.hero-bg--membership .hero-copy { max-width: 520px; }
@media (max-width: 640px) {
  .hero-bg--membership::before {
    background: linear-gradient(180deg, rgba(23,33,42,0.82) 0%, rgba(23,33,42,0.88) 100%);
  }
}

/* v10 — sit-down section: directional light scrim, laptop UI stays visible */
.img-section--sitdown::before {
  background: linear-gradient(105deg,
    rgba(255,255,255,0.94) 0%,
    rgba(255,255,255,0.88) 42%,
    rgba(255,255,255,0.55) 68%,
    rgba(255,255,255,0.18) 100%);
}
@media (max-width: 640px) {
  .img-section--sitdown::before {
    background: linear-gradient(180deg, rgba(255,255,255,0.92) 0%, rgba(255,255,255,0.88) 100%);
  }
}

/* v11 — 404 page */
.hero-bg--404 {
  background-image: url('../images/hero-404.jpg');
  min-height: min(82vh, 760px);
}

/* v12 — FAQ page */
.hero-bg--faq { background-image: url('../images/hero-faq.jpg'); }
.faq-list { max-width: 780px; margin: 0 auto; text-align: left; }
.faq-block { border-top: 1px solid var(--divider); padding: 26px 0; }
.faq-block:last-child { border-bottom: 1px solid var(--divider); }
.faq-block h3 { margin-bottom: 10px; }
.faq-block p { font-size: 16px; color: #3D4954; }
.faq-block p + p { margin-top: 10px; }
