/* ============================================================
   Botbia Kitchen · botbia.com
   Lowcountry Charleston editorial stylesheet
   Palette: sweetgrass cream, Carolina indigo, Charleston brick, marsh green
   Type: Fraunces (display serif) + Public Sans (body)
   ============================================================ */

:root {
  --ink: #23201b;
  --ink-soft: #55504a;
  --ink-faint: #78726a;
  --paper: #fffdf9;
  --cream: #f6efe1;
  --cream-deep: #ece0c6;
  --sand: #d9c8a2;
  --indigo: #24435f;
  --indigo-deep: #172d40;
  --indigo-night: #101f2c;
  --brick: #b5502f;
  --brick-deep: #8f3c22;
  --marsh: #56724f;
  --marsh-deep: #3c5238;
  --gold: #c08a35;
  --gold-bright: #dba852;
  --gold-pale: #f0d9a8;
  --line: rgba(35, 32, 27, 0.16);
  --line-soft: rgba(35, 32, 27, 0.09);
  --shadow-soft: 0 1px 2px rgba(23, 45, 64, 0.06), 0 12px 30px rgba(23, 45, 64, 0.09);
  --shadow-lift: 0 2px 6px rgba(23, 45, 64, 0.1), 0 26px 52px rgba(23, 45, 64, 0.16);
  --heading-font: 'Fraunces', 'Iowan Old Style', Georgia, serif;
  --body-font: 'Public Sans', 'Segoe UI', Arial, sans-serif;
  --radius-card: 12px;
  --radius-chip: 999px;
}

/* ===== RESET / BASE ===== */
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 96px; }
body {
  font-family: var(--body-font);
  font-size: 18px;
  font-weight: 400;
  line-height: 1.7;
  color: var(--ink);
  background-color: var(--cream);
  background-image:
    radial-gradient(1px 1px at 20px 30px, rgba(36, 67, 95, 0.05) 1px, transparent 1px),
    radial-gradient(1px 1px at 62px 84px, rgba(181, 80, 47, 0.04) 1px, transparent 1px);
  background-size: 96px 96px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--brick-deep); text-decoration: none; transition: color 0.25s ease; }
a:hover { color: var(--gold); }
a:focus-visible, button:focus-visible {
  outline: 2px solid var(--indigo);
  outline-offset: 3px;
  border-radius: 3px;
}
h1, h2, h3, h4 {
  font-family: var(--heading-font);
  font-weight: 600;
  line-height: 1.14;
  color: var(--indigo-deep);
}
::selection { background: var(--gold-pale); color: var(--ink); }
.container { max-width: 1180px; margin: 0 auto; padding: 0 28px; }

/* ===== SHARED EDITORIAL PIECES ===== */
.kicker {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--brick-deep);
}
.kicker::before, .kicker::after {
  content: "";
  display: block;
  width: 36px;
  height: 1px;
  background: currentColor;
  opacity: 0.5;
}
.kicker--left::before { display: none; }
.kicker--center { justify-content: center; }
.section-head { text-align: center; max-width: 780px; margin: 0 auto 62px; }
.section-head h2 {
  font-size: clamp(38px, 4.6vw, 58px);
  letter-spacing: -0.005em;
  margin: 16px 0 18px;
}
.section-head h2 em { font-style: italic; font-weight: 500; color: var(--brick); }
.section-head p {
  font-size: 19px;
  line-height: 1.75;
  color: var(--ink-soft);
  max-width: 640px;
  margin: 0 auto;
}
.rule-word {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  margin: 0 auto;
  font-family: var(--heading-font);
  font-style: italic;
  font-size: 19px;
  color: var(--gold);
}
.rule-word::before, .rule-word::after {
  content: "";
  height: 1px;
  width: 72px;
  background: linear-gradient(90deg, transparent, var(--gold));
}
.rule-word::after { background: linear-gradient(90deg, var(--gold), transparent); }

/* Scroll reveal: .reveal is added by JS, so without JS everything stays visible */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.22, 0.61, 0.36, 1);
}
.reveal.visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  * { animation: none !important; transition-duration: 0.01ms !important; }
}

/* ===== NAVBAR ===== */
.navbar {
  position: sticky;
  top: 0;
  z-index: 200;
  background: rgba(246, 239, 225, 0.88);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line-soft);
  transition: box-shadow 0.3s ease, background 0.3s ease;
}
.navbar.scrolled {
  background: rgba(255, 253, 249, 0.97);
  box-shadow: 0 8px 26px rgba(23, 45, 64, 0.09);
}
.nav-container {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 28px;
  height: 78px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.nav-logo {
  font-family: var(--heading-font);
  font-size: 26px;
  font-weight: 700;
  color: var(--indigo-deep);
  letter-spacing: 0.01em;
  display: flex;
  align-items: baseline;
  gap: 10px;
  white-space: nowrap;
}
.nav-logo:hover { color: var(--brick); }
.nav-logo .logo-mark { font-size: 20px; transform: translateY(1px); }
.nav-links {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 30px;
}
.nav-links a {
  position: relative;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--ink-soft);
  padding: 6px 0;
}
.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 100%;
  bottom: 0;
  height: 2px;
  background: var(--brick);
  transition: right 0.3s ease;
}
.nav-links a:hover { color: var(--ink); }
.nav-links a:hover::after { right: 0; }
.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--line);
  border-radius: 8px;
  font-size: 22px;
  line-height: 1;
  color: var(--indigo-deep);
  padding: 8px 12px;
  cursor: pointer;
}

/* ===== HERO ===== */
.hero {
  position: relative;
  overflow: hidden;
  padding: 88px 28px 96px;
  background:
    radial-gradient(1100px 540px at 100% -12%, rgba(192, 138, 53, 0.14), transparent 58%),
    radial-gradient(760px 620px at -14% 100%, rgba(86, 114, 79, 0.1), transparent 55%);
}
.hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--line), transparent);
}
.hero-inner {
  max-width: 1180px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.06fr 0.94fr;
  gap: 72px;
  align-items: center;
}
.hero-copy { animation: heroRise 0.9s cubic-bezier(0.22, 0.61, 0.36, 1) both; }
.hero-copy .kicker { margin-bottom: 26px; }
.hero h1 {
  font-size: clamp(48px, 6vw, 84px);
  font-weight: 700;
  line-height: 1.02;
  letter-spacing: -0.012em;
  color: var(--indigo-deep);
  margin-bottom: 26px;
}
.hero h1 em {
  font-style: italic;
  font-weight: 500;
  color: var(--brick);
  display: block;
}
.hero-lede {
  font-size: 20px;
  line-height: 1.75;
  font-weight: 300;
  color: var(--ink-soft);
  max-width: 530px;
  margin-bottom: 38px;
}
.hero-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 18px; margin-bottom: 40px; }
.btn-primary {
  display: inline-block;
  background: var(--indigo);
  color: var(--gold-pale);
  font-weight: 600;
  font-size: 15.5px;
  letter-spacing: 0.06em;
  padding: 17px 38px;
  border-radius: var(--radius-chip);
  box-shadow: 0 14px 30px rgba(23, 45, 64, 0.32);
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}
.btn-primary:hover {
  background: var(--indigo-deep);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 20px 42px rgba(23, 45, 64, 0.38);
}
.hero-fats {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-faint);
}
.hero-fats .dot { color: var(--brick); letter-spacing: 0; font-size: 15px; }

/* Tideframe panel figure */
.hero-figure { position: relative; animation: heroRise 0.9s 0.15s cubic-bezier(0.22, 0.61, 0.36, 1) both; }
.tideframe {
  position: relative;
  background: var(--paper);
  padding: 12px;
  border: 1px solid rgba(192, 138, 53, 0.4);
  border-radius: 8px;
  box-shadow: var(--shadow-lift);
}
.tideframe::before {
  content: "";
  position: absolute;
  inset: 0;
  transform: translate(18px, 18px);
  background: linear-gradient(150deg, var(--marsh) 0%, var(--marsh-deep) 100%);
  border-radius: 8px;
  z-index: -1;
}
.tideframe-media { overflow: hidden; border-radius: 4px; position: relative; aspect-ratio: 4 / 5; }
.tideframe-media img { width: 100%; height: 100%; object-fit: cover; }
.tideframe-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(16, 31, 44, 0) 62%, rgba(16, 31, 44, 0.32) 100%);
}
.hero-caption {
  position: absolute;
  left: -18px;
  bottom: -22px;
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--indigo-deep);
  color: var(--gold-pale);
  padding: 14px 20px;
  border-radius: 10px;
  box-shadow: var(--shadow-soft);
  font-size: 13.5px;
  line-height: 1.4;
}
.cap-mark { font-size: 20px; }
.cap-title { font-family: var(--heading-font); font-weight: 600; font-size: 15px; color: #fff; }
.cap-sub { color: rgba(240, 217, 168, 0.75); font-size: 12.5px; }

@keyframes heroRise {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: none; }
}

/* ===== PRINCIPLES ===== */
.principles { padding: 12px 28px 96px; }
.principles-grid {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}
.principle {
  background: var(--paper);
  border: 1px solid var(--line-soft);
  border-top: 3px solid var(--gold);
  border-radius: var(--radius-card);
  padding: 34px 30px;
  box-shadow: var(--shadow-soft);
}
.p-motto {
  display: block;
  font-family: var(--heading-font);
  font-style: italic;
  font-size: 15.5px;
  color: var(--marsh-deep);
  margin-bottom: 10px;
}
.principle h3 { font-size: 22px; margin-bottom: 12px; }
.principle p { color: var(--ink-soft); font-size: 15.5px; }

/* ===== RECIPES ===== */
.recipes-section { padding: 20px 28px 110px; background: var(--cream-deep); }
.recipes-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 34px;
}
.recipe-card {
  background: var(--paper);
  border-radius: var(--radius-card);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  border: 1px solid var(--line-soft);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.recipe-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lift); }
.recipe-media { position: relative; aspect-ratio: 16 / 10; overflow: hidden; }
.recipe-img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
.recipe-card:hover .recipe-img { transform: scale(1.04); }
.recipe-tag {
  position: absolute;
  top: 16px;
  left: 16px;
  background: rgba(23, 45, 64, 0.85);
  color: var(--gold-pale);
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 7px 14px;
  border-radius: var(--radius-chip);
  z-index: 2;
}
.recipe-info { padding: 30px 30px 34px; }
.recipe-num {
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--brick-deep);
  margin-bottom: 10px;
}
.recipe-info h3 { font-size: 25px; margin-bottom: 12px; line-height: 1.2; }
.recipe-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13.5px;
  color: var(--ink-faint);
  margin-bottom: 14px;
}
.recipe-meta .sep { opacity: 0.6; }
.recipe-desc { color: var(--ink-soft); font-size: 15.5px; margin-bottom: 20px; }
.btn-expand {
  background: none;
  border: 1.5px solid var(--indigo);
  color: var(--indigo-deep);
  font-family: var(--body-font);
  font-weight: 600;
  font-size: 14px;
  letter-spacing: 0.05em;
  padding: 11px 24px;
  border-radius: var(--radius-chip);
  cursor: pointer;
  transition: all 0.25s ease;
}
.btn-expand:hover { background: var(--indigo); color: #fff; }
.recipe-details {
  display: none;
  margin-top: 26px;
  padding-top: 24px;
  border-top: 1px dashed var(--line);
}
.recipe-details.active { display: block; animation: fadeSlide 0.35s ease both; }
@keyframes fadeSlide {
  from { opacity: 0; transform: translateY(-6px); }
  to { opacity: 1; transform: none; }
}
.recipe-details h4 {
  font-size: 14px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--marsh-deep);
  margin: 18px 0 10px;
}
.recipe-details h4:first-child { margin-top: 0; }
.recipe-details ul, .recipe-details ol {
  padding-left: 22px;
  color: var(--ink-soft);
  font-size: 15px;
}
.recipe-details li { margin-bottom: 7px; }

/* ===== INTERLUDE ===== */
.interlude { position: relative; min-height: 480px; display: flex; align-items: center; overflow: hidden; }
.interlude-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.interlude::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(16, 31, 44, 0.86) 0%, rgba(16, 31, 44, 0.55) 48%, rgba(16, 31, 44, 0.25) 100%);
}
.interlude-quote {
  position: relative;
  z-index: 2;
  max-width: 620px;
  margin: 0 auto;
  padding: 40px 28px;
  text-align: center;
  color: var(--gold-pale);
}
.interlude-quote .kicker { color: var(--gold-bright); justify-content: center; margin-bottom: 22px; }
.interlude-quote blockquote {
  font-family: var(--heading-font);
  font-style: italic;
  font-weight: 500;
  font-size: clamp(28px, 4vw, 42px);
  line-height: 1.3;
  color: #fff;
  margin-bottom: 16px;
}
.interlude-quote .translation { font-size: 15.5px; color: rgba(240, 217, 168, 0.78); }

/* ===== ABOUT ===== */
.about-section { padding: 120px 28px; }
.about-inner { max-width: 700px; margin: 0 auto; text-align: center; }
.about-inner .kicker { margin-bottom: 22px; }
.about-inner h2 { font-size: clamp(34px, 4.4vw, 48px); margin-bottom: 26px; }
.about-inner h2 em { font-style: italic; font-weight: 500; color: var(--brick); }
.about-inner p { color: var(--ink-soft); font-size: 18px; margin-bottom: 20px; }
.about-sign { font-size: 17px; color: var(--ink); margin-top: 8px; }
.about-sign .salute { font-family: var(--heading-font); font-style: italic; color: var(--marsh-deep); }

/* ===== FOOTER ===== */
.footer { background: var(--indigo-night); color: rgba(246, 239, 225, 0.82); padding: 74px 28px 30px; }
.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 0.8fr 1fr;
  gap: 50px;
  padding-bottom: 44px;
  border-bottom: 1px solid rgba(246, 239, 225, 0.12);
}
.footer-logo {
  font-family: var(--heading-font);
  font-size: 24px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 14px;
}
.footer-brand p { font-size: 15px; line-height: 1.7; color: rgba(246, 239, 225, 0.62); margin-bottom: 16px; max-width: 320px; }
.footer-tag {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold-bright);
}
.footer h4 {
  font-family: var(--body-font);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(246, 239, 225, 0.5);
  margin-bottom: 18px;
}
.footer-links ul { list-style: none; }
.footer-links li { margin-bottom: 12px; }
.footer-links a, .footer-company a { color: rgba(246, 239, 225, 0.78); font-size: 15px; }
.footer-links a:hover, .footer-company a:hover { color: var(--gold-bright); }
.footer-company p { font-size: 14.5px; line-height: 1.8; color: rgba(246, 239, 225, 0.7); }
.footer-bottom { padding-top: 26px; text-align: center; font-size: 13.5px; color: rgba(246, 239, 225, 0.45); }

/* ===== LEGAL PAGES ===== */
.legal-header { padding: 150px 28px 56px; text-align: center; background: var(--cream-deep); }
.legal-header .kicker { justify-content: center; margin-bottom: 20px; }
.legal-header h1 { font-size: clamp(34px, 4.6vw, 50px); margin-bottom: 14px; }
.legal-header p { color: var(--ink-soft); font-size: 16px; }
.legal-body { max-width: 780px; margin: 0 auto; padding: 64px 28px 120px; }
.legal-body h2 {
  font-size: 24px;
  margin: 42px 0 14px;
  padding-top: 8px;
}
.legal-body h2:first-child { margin-top: 0; }
.legal-body p, .legal-body li { color: var(--ink-soft); font-size: 16.5px; margin-bottom: 14px; }
.legal-body ul, .legal-body ol { padding-left: 24px; margin-bottom: 16px; }
.legal-body a { color: var(--indigo); text-decoration: underline; text-decoration-color: rgba(36, 67, 95, 0.35); }
.legal-body a:hover { color: var(--brick); }
.company-contact-box {
  background: var(--paper);
  border: 1px solid var(--line-soft);
  border-left: 4px solid var(--indigo);
  border-radius: 10px;
  padding: 26px 30px;
  margin-top: 22px;
}
.company-contact-box p { margin-bottom: 6px; font-size: 15.5px; }
.company-contact-box h3 { font-size: 18px; margin-bottom: 12px; color: var(--indigo-deep); }
.weave-band {
  height: 10px;
  background: repeating-linear-gradient(45deg, var(--indigo) 0 12px, var(--marsh) 12px 24px, var(--brick) 24px 36px);
  opacity: 0.85;
}

/* ===== RESPONSIVE (Kuche breakpoints: 1024 / 768 / 480) ===== */
@media (max-width: 1024px) {
  .hero-inner { grid-template-columns: 1fr; gap: 56px; }
  .hero-figure { max-width: 520px; margin: 0 auto; }
  .principles-grid { grid-template-columns: 1fr; gap: 22px; }
  .recipes-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  .nav-toggle { display: block; }
  .nav-links {
    position: absolute;
    top: 78px;
    left: 0;
    right: 0;
    background: var(--paper);
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    max-height: 0;
    overflow: hidden;
    border-bottom: 1px solid var(--line-soft);
    transition: max-height 0.35s ease;
  }
  .nav-links.open { max-height: 420px; }
  .nav-links li { width: 100%; }
  .nav-links a { display: block; padding: 16px 28px; width: 100%; }
  .nav-links a::after { display: none; }
  .hero { padding: 56px 20px 72px; }
  .hero-caption { position: static; margin-top: 16px; border-radius: 10px; }
  .principles { padding: 8px 20px 64px; }
  .recipes-section { padding: 12px 20px 72px; }
  .about-section { padding: 80px 20px; }
  .footer { padding: 56px 20px 26px; }
  .footer-grid { grid-template-columns: 1fr; gap: 34px; }
  .legal-header { padding: 130px 20px 44px; }
  .legal-body { padding: 48px 20px 80px; }
}

@media (max-width: 480px) {
  .hero h1 { font-size: 40px; }
  .hero-lede { font-size: 17.5px; }
  .btn-primary { width: 100%; text-align: center; }
  .section-head h2 { font-size: 30px; }
  .recipe-info { padding: 24px 20px 28px; }
  .interlude-quote blockquote { font-size: 26px; }
  .about-inner p { font-size: 16.5px; }
}
