/* Hoian Family Cooking Class: the only stylesheet.
   Tokens live in :root. Use them rather than hard-coding colours or sizes. */

@font-face {
  font-family: "Raleway";
  src: url("/assets/fonts/raleway-v34-latin-regular.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "Raleway";
  src: url("/assets/fonts/raleway-v34-latin-600.woff2") format("woff2");
  font-weight: 600 700;
  font-display: swap;
}

:root {
  --orange: #f17f20;
  --orange-dark: #b85a0c;     /* text/links on light: 4.6:1 on --paper */
  --green: #198754;
  --green-dark: #0f5c39;
  --ink: #2b2420;
  --muted: #62574f;
  --paper: #fffdf9;
  --paper-alt: #fbf1e6;
  --line: #eadfd3;

  --font-body: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-head: "Raleway", var(--font-body);
  --step--1: 0.875rem;
  --step-0: clamp(1rem, 0.96rem + 0.2vw, 1.125rem);
  --step-1: clamp(1.2rem, 1.1rem + 0.5vw, 1.4rem);
  --step-2: clamp(1.5rem, 1.25rem + 1.2vw, 2.1rem);
  --step-3: clamp(2rem, 1.4rem + 2.8vw, 3.4rem);

  --gutter: 16px;
  --radius: 14px;
  --max: 72rem;
  --shadow: 0 1px 2px rgb(43 36 32 / 6%), 0 8px 24px rgb(43 36 32 / 8%);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 5rem; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: var(--step-0);
  line-height: 1.65;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }

h1, h2, h3 { font-family: var(--font-head); line-height: 1.15; font-weight: 600; text-wrap: balance; }
h1 { font-size: var(--step-3); margin: 0 0 0.5em; letter-spacing: -0.01em; }
h2 { font-size: var(--step-2); margin: 0 0 0.6em; }
h3 { font-size: var(--step-1); margin: 0 0 0.4em; }
p { margin: 0 0 1em; }

a { color: var(--orange-dark); text-underline-offset: 0.18em; text-decoration-thickness: 1px; }
a:hover { color: var(--green-dark); }
:focus-visible { outline: 3px solid var(--orange); outline-offset: 3px; border-radius: 4px; }

.container { width: min(100% - 2 * var(--gutter), var(--max)); margin-inline: auto; }
.narrow { max-width: 46rem; }
.section { padding-block: clamp(3rem, 7vw, 5.5rem); }
.section-alt { background: var(--paper-alt); }
.pt-0 { padding-top: 0; }
.page-head { padding-bottom: clamp(1.5rem, 4vw, 2.5rem); }
.section-head { max-width: 42rem; margin-bottom: 2rem; }
.lead { font-size: var(--step-1); color: var(--muted); max-width: 38em; line-height: 1.5; }
.eyebrow { margin: 0 0 0.75rem; font-weight: 600; font-size: var(--step--1); letter-spacing: 0.06em; text-transform: uppercase; color: var(--green-dark); }
.eyebrow a { color: inherit; }
.small { font-size: var(--step--1); color: var(--muted); }
.rounded { border-radius: var(--radius); box-shadow: var(--shadow); width: 100%; object-fit: cover; aspect-ratio: 16 / 10; }
.rounded.square { aspect-ratio: 1; }

.skip-link { position: absolute; left: -999px; }
.skip-link:focus { left: var(--gutter); top: var(--gutter); background: var(--paper); padding: 0.5rem 1rem; z-index: 20; }

/* ---------- buttons */
.btn {
  display: inline-block;
  padding: 0.8em 1.5em;
  border-radius: 999px;
  background: var(--orange);
  color: #1f1308;
  font-weight: 600;
  line-height: 1.2;
  text-decoration: none;
  border: 2px solid var(--orange);
  transition: background-color 0.15s, border-color 0.15s, color 0.15s;
}
.btn:hover { background: #ff9640; border-color: #ff9640; color: #1f1308; }
.btn-outline { background: transparent; color: var(--orange-dark); }
.btn-outline:hover { background: var(--orange); color: #1f1308; }
.btn-ghost { background: transparent; color: #fff; border-color: rgb(255 255 255 / 70%); }
.btn-ghost:hover { background: #fff; border-color: #fff; color: var(--ink); }
.btn-light { background: #fff; border-color: #fff; color: var(--green-dark); }
.btn-light:hover { background: var(--paper-alt); border-color: var(--paper-alt); color: var(--green-dark); }
.btn-small { padding: 0.5em 1.1em; font-size: 0.9rem; }
.btn-block { display: block; text-align: center; }

/* ---------- header */
.site-header { position: sticky; top: 0; z-index: 10; background: rgb(255 253 249 / 92%); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.header-inner { display: flex; align-items: center; gap: 1.5rem; padding-block: 0.8rem; flex-wrap: wrap; }
.brand { font-family: var(--font-head); font-weight: 700; font-size: 1.05rem; color: var(--ink); text-decoration: none; margin-right: auto; }
#site-nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 1.5rem; }
#site-nav a { text-decoration: none; color: var(--ink); font-weight: 600; font-size: 0.95rem; padding-block: 0.25rem; border-bottom: 2px solid transparent; }
#site-nav a:hover { color: var(--orange-dark); }
#site-nav a[aria-current="page"] { border-bottom-color: var(--orange); }
.nav-toggle { display: none; }

@media (max-width: 56rem) {
  .nav-toggle {
    display: inline-block; background: none; border: 1px solid var(--line); color: var(--ink);
    border-radius: 8px; padding: 0.4em 0.9em; font: inherit; font-weight: 600; cursor: pointer;
  }
  #site-nav { flex-basis: 100%; order: 3; display: none; }
  #site-nav.open { display: block; }
  #site-nav ul { flex-direction: column; gap: 0.25rem; padding-block: 0.5rem; }
  #site-nav a { display: block; padding-block: 0.5rem; }
  .header-inner > .btn-small { display: none; }
}

/* ---------- home hero */
.hero { position: relative; isolation: isolate; color: #fff; min-height: min(88vh, 46rem); display: grid; align-items: end; }
.hero-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.hero::after { content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(to top, rgb(20 14 10 / 80%) 0%, rgb(20 14 10 / 35%) 55%, rgb(20 14 10 / 15%) 100%); }
.hero-inner { padding-block: clamp(3rem, 10vw, 6rem); position: relative; }
.hero h1 { max-width: 16ch; }
.hero .lead { color: rgb(255 255 255 / 90%); }
.hero .eyebrow { color: #ffd2a8; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 1.75rem; }
.badge { position: absolute; right: 0; bottom: clamp(3rem, 10vw, 6rem); width: 100px; border-radius: 8px; background: #fff; padding: 6px; }
@media (max-width: 40rem) { .badge { position: static; margin-top: 2rem; width: 80px; } }

/* ---------- split (text + image) */
.split { display: grid; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
@media (min-width: 60rem) {
  .split { grid-template-columns: 1fr 1fr; }
  .split-reverse > :first-child { order: 0; }
}
.ticks { list-style: none; padding: 0; margin: 1.25rem 0 0; display: grid; gap: 0.5rem; }
.ticks li { padding-left: 1.75rem; position: relative; }
.ticks li::before { content: ""; position: absolute; left: 0; top: 0.45em; width: 1.05rem; height: 0.6rem;
  border-left: 3px solid var(--green); border-bottom: 3px solid var(--green); transform: rotate(-45deg) scale(0.8); }

/* ---------- class cards */
.cards { list-style: none; padding: 0; margin: 0; display: grid; gap: 1.5rem;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 19rem), 1fr)); }
.card { background: var(--paper); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden;
  display: flex; flex-direction: column; position: relative; transition: transform 0.2s; }
.card:hover { transform: translateY(-3px); }
.card-img { aspect-ratio: 3 / 2; object-fit: cover; width: 100%; }
.card-body { padding: 1.4rem 1.5rem 1.6rem; display: flex; flex-direction: column; flex: 1; }
.card-body p { color: var(--muted); }
.card h3 a { color: var(--ink); text-decoration: none; }
.card h3 a::after { content: ""; position: absolute; inset: 0; } /* whole card clickable */
.card h3 a:hover { color: var(--orange-dark); }
.card .meta { margin-top: auto; }

.meta { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 0.4rem 1.1rem; font-size: var(--step--1); font-weight: 600; }
.meta-label { display: block; font-weight: 400; color: var(--muted); font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.05em; }
.meta-stack { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin-block: 1.25rem; }

/* ---------- testimonial */
.quote { margin: 0; }
.quote blockquote { margin: 0 0 1rem; font-family: var(--font-head); font-size: var(--step-1); line-height: 1.5; position: relative; padding-top: 2.5rem; }
.quote blockquote::before { content: "\201C"; position: absolute; top: -0.5rem; left: -0.25rem; font-size: 5rem; line-height: 1; color: var(--orange); }
.quote figcaption { color: var(--muted); }

/* ---------- CTA band */
.cta-band { background: var(--green-dark); color: #fff; padding-block: clamp(2.5rem, 6vw, 4rem); }
.cta-inner { display: flex; flex-wrap: wrap; gap: 1.5rem 3rem; align-items: center; justify-content: space-between; }
.cta-inner h2 { margin-bottom: 0.25em; }
.cta-inner p { margin: 0; color: rgb(255 255 255 / 85%); max-width: 36em; }

/* ---------- about */
.prose h2 { margin-top: 0; }
.dishes { list-style: none; padding: 0; margin: 0; display: grid; gap: 1.25rem;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 15rem), 1fr)); }
.dish { background: var(--paper-alt); border-radius: var(--radius); padding: 1.5rem; border-top: 4px solid var(--orange); }
.dish p { margin: 0; color: var(--muted); }
.sign-off { margin-top: 2rem; font-family: var(--font-head); font-size: var(--step-1); }

/* ---------- class pages */
.class-hero { height: clamp(14rem, 42vw, 28rem); overflow: hidden; }
.class-hero-img { width: 100%; height: 100%; object-fit: cover; object-position: center 25%; }
.class-layout { display: grid; gap: 2.5rem; align-items: start; }
@media (min-width: 60rem) { .class-layout { grid-template-columns: minmax(0, 1fr) 22rem; gap: 4rem; } }
.facts { background: var(--paper); border-radius: var(--radius); box-shadow: var(--shadow); padding: 1.75rem; }
@media (min-width: 60rem) { .facts { position: sticky; top: 5.5rem; margin-top: -9rem; } }
.price { font-family: var(--font-head); font-size: var(--step-2); font-weight: 600; margin: 0; }
.price span { font-family: var(--font-body); font-size: var(--step--1); font-weight: 400; color: var(--muted); }
.facts-h { font-size: var(--step-0); margin: 1.75rem 0 0; }
.facts .ticks { font-size: 0.95rem; margin-top: 0.75rem; }
.facts .small { margin: 1rem 0 0; }

.timeline { list-style: none; counter-reset: step; padding: 0; margin: 1.5rem 0 0; }
.timeline > li { counter-increment: step; position: relative; padding: 0 0 1.75rem 3.25rem; }
.timeline > li::before { content: counter(step); position: absolute; left: 0; top: -0.1rem; width: 2.2rem; height: 2.2rem;
  border-radius: 50%; background: var(--orange); color: #1f1308; font-weight: 700; display: grid; place-items: center; }
.timeline > li:not(:last-child)::after { content: ""; position: absolute; left: 1.05rem; top: 2.4rem; bottom: 0.3rem; width: 2px; background: var(--line); }
.timeline h3 { margin-bottom: 0.25rem; }
.timeline p { margin-bottom: 0.5rem; }
.dish-list { margin: 0.25rem 0 0.75rem; padding-left: 1.2rem; }

.calendly-inline-widget { min-width: 320px; height: 700px; background: var(--paper); border-radius: var(--radius); overflow: hidden; }

/* ---------- comparison table */
.table-wrap { overflow-x: auto; margin-bottom: 1rem; }
.compare { width: 100%; border-collapse: collapse; background: var(--paper); border-radius: var(--radius); overflow: hidden; min-width: 40rem; }
.compare th, .compare td { text-align: left; padding: 0.9rem 1rem; border-bottom: 1px solid var(--line); vertical-align: top; }
.compare thead th { font-size: var(--step--1); text-transform: uppercase; letter-spacing: 0.05em; color: var(--muted); }
.compare tbody tr:last-child > * { border-bottom: 0; }

/* ---------- FAQs */
.faqs h2 { font-size: var(--step-1); margin: 2.5rem 0 0.75rem; }
.faqs h2:first-child { margin-top: 0; }
.faq-group { border-top: 1px solid var(--line); }
details { border-bottom: 1px solid var(--line); }
summary { cursor: pointer; padding: 1rem 2rem 1rem 0; font-weight: 600; list-style: none; position: relative; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; position: absolute; right: 0.25rem; top: 0.8rem; font-size: 1.4rem; color: var(--orange-dark); }
details[open] summary::after { content: "\2212"; }
details p { margin: 0 0 1.25rem; color: var(--muted); }

/* ---------- contact */
.contact-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 1.75rem; }
.contact-grid { display: grid; gap: 2rem; }
@media (min-width: 48rem) { .contact-grid { grid-template-columns: 1fr 1fr; } }
.contact-grid h2 { font-size: var(--step-1); }
.plain { list-style: none; padding: 0; margin: 0 0 1.5rem; }

/* ---------- footer */
.site-footer { background: #1f2a24; color: rgb(255 255 255 / 80%); padding-top: 3rem; font-size: 0.95rem; }
.site-footer a { color: #fff; }
.footer-inner { display: grid; gap: 2rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 13rem), 1fr)); }
.footer-brand { font-family: var(--font-head); font-weight: 700; color: #fff; font-size: 1.1rem; margin-bottom: 0.5rem; }
.footer-nav, .footer-contact { list-style: none; padding: 0; margin: 0; display: grid; gap: 0.4rem; }
.footer-nav a, .footer-contact a { text-decoration: none; }
.footer-nav a:hover, .footer-contact a:hover { text-decoration: underline; }
.copyright { border-top: 1px solid rgb(255 255 255 / 12%); margin-top: 2.5rem; padding-block: 1.25rem; color: rgb(255 255 255 / 60%); }

/* On small screens the facts card sits below the itinerary, so repeat the key
   facts and the booking button under the intro. */
.mobile-summary { display: grid; gap: 1.25rem; margin-block: 1.5rem 2.5rem; padding: 1.25rem; background: var(--paper-alt); border-radius: var(--radius); }
@media (min-width: 60rem) { .mobile-summary { display: none; } }
.page-head .lead { max-width: 40em; }
.compare td { white-space: nowrap; }

/* Photo gallery (home) */
.gallery { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--gutter); }
.gallery img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: var(--radius); }
@media (min-width: 40rem) { .gallery { grid-template-columns: repeat(3, 1fr); } }
