/* ============================================================
   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; 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) {
  .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; }
}
