/* ============================================================
   jakeworldwide.com — home / lessons landing
   Mobile-first, then a real desktop layout (nav bar, 3-up grids,
   full-bleed CTA band). Palette from themes/ink.css.
   Photo slots: .media blocks are ready for images — see the
   commented markup in index.html.
   ============================================================ */

/* One accent colour, used only for actions. Terracotta reads warm against
   the paper ground and clears 4.5:1 contrast with white text. */
:root {
  --cta:     #C05621;
  --cta-dk:  #A2451A;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  background: var(--bg);
  font-family: 'Jost', 'Inter', sans-serif;
  color: var(--ink);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
}

/* Centered content column — wide enough to fill a desktop */
.shell { width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 22px; }
@media (min-width: 760px) { .shell { padding: 0 40px; } }

/* ─── Top bar ────────────────────────────── */
.site-nav {
  border-bottom: 1px solid var(--line);
  background: rgba(250,248,243,0.85);
  backdrop-filter: saturate(150%) blur(8px);
  position: sticky; top: 0; z-index: 20;
}
.site-nav .shell {
  display: flex; align-items: center; justify-content: space-between;
  gap: 14px; height: 62px;
}
.brandmark { display: flex; align-items: center; gap: 9px; text-decoration: none; color: inherit; }
.brandmark img { width: 28px; height: 28px; display: block; }
.brandmark span {
  font-family: 'EB Garamond', serif;
  font-size: 19px; font-weight: 600; letter-spacing: 0.3px;
}
.nav-right { display: flex; align-items: center; gap: 8px; }
.nav-link {
  font-size: 14px; font-weight: 500; color: var(--ink-soft);
  text-decoration: none; padding: 9px 13px; border-radius: var(--r-sm, 6px);
  border: 1px solid transparent; white-space: nowrap;
}
.nav-link:hover { color: var(--ink); border-color: var(--line); background: var(--surface); }
.nav-cta {
  display: none;
  font-size: 14px; font-weight: 600; letter-spacing: 0.2px;
  background: var(--cta); color: #fff;
  padding: 10px 17px; border-radius: var(--r-sm, 6px); text-decoration: none;
}
.nav-cta:hover { background: var(--cta-dk); }
@media (min-width: 640px) { .nav-cta { display: inline-block; } }

/* ─── Buttons ────────────────────────────── */
.cta {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 16px 26px;
  background: var(--cta); color: #fff;
  border-radius: var(--r-md, 8px);
  font-size: 16px; font-weight: 600; letter-spacing: 0.2px;
  text-decoration: none;
  box-shadow: 0 10px 24px rgba(192,86,33,0.28);
  transition: transform 0.14s, box-shadow 0.14s, background 0.14s;
}
.cta:hover { background: var(--cta-dk); transform: translateY(-2px); box-shadow: 0 14px 30px rgba(192,86,33,0.34); }
.cta:active { transform: scale(0.99); }
.cta svg { width: 19px; height: 19px; flex-shrink: 0; }

/* Quiet outline, no fill and no drop shadow. Next to the terracotta
   button this reads as the secondary choice without shouting. */
.cta-alt {
  background: transparent; color: var(--ink);
  border: 1px solid rgba(28,27,25,0.24);
  box-shadow: none;
}
.cta-alt:hover {
  background: rgba(28,27,25,0.04);
  border-color: rgba(28,27,25,0.5);
  box-shadow: none;
  transform: translateY(-1px);
}

.cta-row { display: flex; flex-wrap: wrap; gap: 11px; }
.cta-row .cta { flex: 1 1 230px; }
@media (min-width: 640px) { .cta-row .cta { flex: 0 0 auto; } }

/* ─── Hero ───────────────────────────────── */
.hero { position: relative; overflow: hidden; padding: 54px 0 46px; text-align: center; }
@media (min-width: 760px) { .hero { padding: 104px 0 86px; } }
.hero .shell { position: relative; z-index: 1; }

/* Optional background photo/video behind the headline. The overlay keeps
   text readable over almost anything, and fades into the page below. */
.hero-bg { position: absolute; inset: 0; z-index: 0; }
.hero-bg img,
.hero-bg video { width: 100%; height: 100%; object-fit: cover; display: block; }
.hero-bg::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(180deg,
    rgba(242,239,232,0.80) 0%,
    rgba(242,239,232,0.86) 55%,
    var(--bg) 100%);
}

.eyebrow {
  font-size: 12px; font-weight: 600; letter-spacing: 2px;
  text-transform: uppercase; color: var(--ink-soft);
  margin-bottom: 18px;
}
.hero h1 {
  font-family: 'EB Garamond', serif;
  font-size: clamp(35px, 6.6vw, 68px);
  font-weight: 600; line-height: 1.04; letter-spacing: 0.2px;
  max-width: 15ch; margin: 0 auto;
}
@media (min-width: 760px) { .hero h1 { max-width: 21ch; } }
.hero .lede {
  margin: 20px auto 0; max-width: 46ch;
  font-size: clamp(16px, 1.7vw, 19px);
  color: var(--ink-soft); line-height: 1.55;
}
.hero .cta-row { justify-content: center; margin-top: 30px; }
.micro {
  margin-top: 20px; font-size: 13.5px; color: var(--ink-soft);
  display: flex; flex-wrap: wrap; gap: 6px 16px; justify-content: center;
}
.micro span { display: inline-flex; align-items: center; gap: 7px; }
.micro span::before {
  content: ''; width: 4px; height: 4px; border-radius: 50%;
  background: var(--ink-soft); opacity: 0.5;
}
.micro span:first-child::before { display: none; }

/* ─── Sections ───────────────────────────── */
.section { padding: 50px 0; }
@media (min-width: 760px) { .section { padding: 84px 0; } }

.sec-head { text-align: center; margin-bottom: 34px; }
@media (min-width: 760px) { .sec-head { margin-bottom: 52px; } }
.sec-head h2 {
  font-family: 'EB Garamond', serif;
  font-size: clamp(26px, 3.6vw, 40px);
  font-weight: 600; line-height: 1.12;
}

/* 3-up grids — stacked on phones, filling the width on desktop */
.grid-3 { display: grid; grid-template-columns: 1fr; gap: 16px; }
@media (min-width: 760px) { .grid-3 { grid-template-columns: repeat(3, 1fr); gap: 26px; } }

.prop {
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg, 12px);
  padding: 30px 26px 32px;
  box-shadow: 0 6px 18px rgba(28,27,25,0.05);
}
.prop-n {
  font-family: 'EB Garamond', serif;
  font-size: 30px; font-weight: 600; line-height: 1;
  color: var(--cta); opacity: 0.45;
  margin-bottom: 16px;
}
.prop h3 {
  font-family: 'EB Garamond', serif;
  font-size: 23px; font-weight: 600; letter-spacing: 0.2px; line-height: 1.2;
}
.prop > p { margin-top: 10px; font-size: 15px; color: var(--ink-soft); line-height: 1.6; }

/* Checklist — adds the vertical weight that the old second grid carried */
.prop-list {
  list-style: none;
  margin-top: auto;
  padding-top: 20px;
  display: flex; flex-direction: column; gap: 10px;
}
.prop-list::before {
  content: ''; display: block;
  border-top: 1px solid var(--line);
  margin-bottom: 20px;
}
.prop-list li {
  position: relative; padding-left: 23px;
  font-size: 14.5px; color: var(--ink-soft); line-height: 1.45;
}
.prop-list li::before {
  content: '\2713';
  position: absolute; left: 0; top: 0;
  font-size: 13px; font-weight: 600;
  color: var(--cta);
}

/* ─── Photo slots (ready for real images) ── */
.media {
  border-radius: var(--r-lg, 12px);
  overflow: hidden;
  background: var(--bg-tint);
  border: 1px solid var(--line);
  aspect-ratio: 4 / 3;
}
.media img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* No photo yet → a centred single column that still fills the page.
   Uncomment the .media block in the markup and it becomes two columns. */
.about {
  display: grid; grid-template-columns: 1fr; gap: 26px; align-items: center;
  max-width: 760px; margin: 0 auto; text-align: center;
}
@media (min-width: 860px) {
  .about:has(.media) {
    grid-template-columns: 1fr 1fr; gap: 56px;
    max-width: none; text-align: left;
  }
}
.about h2 {
  font-family: 'EB Garamond', serif;
  font-size: clamp(25px, 3.2vw, 36px); font-weight: 600; line-height: 1.14;
}
.about p { margin-top: 14px; font-size: 16px; color: var(--ink-soft); line-height: 1.6; }

/* ─── Dark CTA band (full-bleed) ─────────── */
.band { background: var(--accent); color: var(--on-front); padding: 56px 0; text-align: center; }
@media (min-width: 760px) { .band { padding: 86px 0; } }
.band h2 {
  font-family: 'EB Garamond', serif;
  font-size: clamp(28px, 4.2vw, 46px);
  font-weight: 600; line-height: 1.1;
}
.band p { margin-top: 12px; font-size: 16px; color: rgba(244,242,237,0.72); }
.band .cta-row { justify-content: center; margin-top: 28px; }
.band .cta {
  background: var(--cta); color: #fff;
  box-shadow: 0 10px 26px rgba(0,0,0,0.32);
}
.band .cta:hover { background: var(--cta-dk); }
.band .cta-alt {
  background: transparent; color: var(--on-front);
  border: 1px solid rgba(244,242,237,0.32); box-shadow: none;
}
.band .cta-alt:hover { border-color: rgba(244,242,237,0.7); background: rgba(255,255,255,0.06); }

.handles {
  margin-top: 22px; font-size: 14px;
  color: rgba(244,242,237,0.68);
  display: flex; flex-wrap: wrap; gap: 6px 18px; justify-content: center;
}
.handles b { font-weight: 500; color: var(--on-front); }

/* ─── Footer ─────────────────────────────── */
.site-foot { padding: 34px 0 40px; border-top: 1px solid var(--line); }
.site-foot .shell {
  display: flex; flex-direction: column; align-items: center;
  gap: 14px; text-align: center;
}
@media (min-width: 640px) {
  .site-foot .shell { flex-direction: row; justify-content: space-between; text-align: left; }
}
.site-foot img { height: 16px; width: auto; opacity: 0.4; }
.foot-links { display: flex; gap: 18px; font-size: 14px; }
.foot-links a { color: var(--ink-soft); text-decoration: none; }
.foot-links a:hover { color: var(--ink); }

/* ─── Email capture (primary action in the hero) ──── */
.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }

.lead-block { margin-top: 32px; }
.lead-label {
  font-size: 15px; color: var(--ink);
  margin-bottom: 12px;
}

.lead-form { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
.lead-form input[type="email"] {
  flex: 1 1 260px; max-width: 340px;
  padding: 15px 17px;
  font-family: inherit;
  font-size: 16px;            /* 16px stops iOS zooming in on focus */
  color: var(--ink);
  background: var(--surface);
  border: 1px solid rgba(28,27,25,0.22);
  border-radius: var(--r-md, 8px);
  transition: border-color 0.14s, box-shadow 0.14s;
}
.lead-form input[type="email"]::placeholder { color: rgba(28,27,25,0.36); }
.lead-form input[type="email"]:focus {
  outline: none;
  border-color: var(--cta);
  box-shadow: 0 0 0 3px rgba(192,86,33,0.16);
}
.lead-form .cta { flex: 0 0 auto; }
.lead-form .cta:disabled { opacity: 0.6; cursor: default; transform: none; }

.lead-msg { flex-basis: 100%; margin-top: 2px; font-size: 14px; min-height: 1em; }
.lead-msg.ok  { color: #2F7A52; }
.lead-msg.err { color: #B4431C; }

.alt-contact { margin-top: 16px; font-size: 14px; color: var(--ink-soft); }
.alt-contact a {
  color: var(--ink); text-decoration: underline;
  text-underline-offset: 3px; text-decoration-color: rgba(28,27,25,0.3);
  cursor: pointer;
}
.alt-contact a:hover { text-decoration-color: var(--cta); color: var(--cta); }

@media (max-width: 480px) {
  /* Full-width button under a full-width field */
  .lead-form .cta { flex: 1 1 100%; }
}
