/* ============================================================
   Clesil Kitchen | Louisiana Creole cooking without vegetable oil
   Palette: French Quarter shutter green, worn brass, cayenne,
   aged cream paper, wrought iron ink.
   Type: Young Serif (display) + Sora (text/UI)
   ============================================================ */

:root {
  --ink: #241f18;
  --ink-soft: #4c443a;
  --paper: #f7f1e3;
  --paper-deep: #efe6d1;
  --shutter: #1e4a38;
  --shutter-deep: #143528;
  --brass: #b3872f;
  --brass-soft: #d3b06a;
  --cayenne: #a83c20;
  --line: #ddd0b4;
  --white: #fffdf7;
  --serif: "Young Serif", "Georgia", serif;
  --sans: "Sora", "Helvetica Neue", Arial, sans-serif;
  --wrap: 1160px;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--sans);
  font-size: 18px;
  font-weight: 300;
  line-height: 1.65;
  color: var(--ink);
  background: var(--paper);
}

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

a { color: var(--shutter); }

/* ---------- reveal: CSS only, staggered fadeInUp ---------- */

@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(22px); }
  to   { opacity: 1; transform: translateY(0); }
}

.anim {
  animation: fadeInUp 0.85s cubic-bezier(0.22, 0.61, 0.36, 1) both;
}
.anim.d1 { animation-delay: 0.1s; }
.anim.d2 { animation-delay: 0.24s; }
.anim.d3 { animation-delay: 0.38s; }
.anim.d4 { animation-delay: 0.52s; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .anim { animation: none; }
}

/* ---------- topbar + mega menu (CSS only) ---------- */

.topbar {
  position: sticky;
  top: 0;
  z-index: 60;
  background: var(--paper);
  border-bottom: 1px solid var(--line);
}

.topbar-inner {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 28px;
  height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--ink);
}

.brand-mark { font-size: 1.5rem; }

.brand-name {
  font-family: var(--serif);
  font-size: 1.3rem;
  letter-spacing: 0.01em;
}

.brand-name span { color: var(--cayenne); }

.nav-list {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 14px;
  text-decoration: none;
  color: var(--ink-soft);
  font-size: 0.92rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  border-radius: 999px;
  transition: color 0.2s, background 0.2s;
}

.nav-link:hover { color: var(--shutter); background: var(--paper-deep); }

.nav-link-pill {
  background: var(--shutter);
  color: var(--white);
  padding: 10px 20px;
}

.nav-link-pill:hover { background: var(--shutter-deep); color: var(--white); }

.caret { transition: transform 0.25s; }

/* mega menu: pure CSS via :hover / :focus-within */

.has-mega { position: relative; }

.mega {
  position: absolute;
  top: calc(100% + 6px);
  left: 50%;
  transform: translate(-50%, 8px);
  width: min(720px, 86vw);
  background: var(--white);
  border: 1px solid var(--line);
  border-top: 3px solid var(--brass);
  box-shadow: 0 24px 48px -18px rgba(36, 31, 24, 0.28);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.22s ease, transform 0.22s ease, visibility 0.22s;
}

.has-mega:hover .mega,
.has-mega:focus-within .mega {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translate(-50%, 0);
}

.has-mega:hover .caret,
.has-mega:focus-within .caret { transform: rotate(180deg); }

.mega-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
  padding: 18px;
}

.mega-grid a {
  display: block;
  padding: 14px 16px;
  text-decoration: none;
  border-radius: 6px;
  transition: background 0.18s;
}

.mega-grid a:hover { background: var(--paper); }

.mega-grid strong {
  display: block;
  font-family: var(--serif);
  font-weight: 400;
  font-size: 1rem;
  color: var(--ink);
  margin-bottom: 3px;
}

.mega-grid span {
  display: block;
  font-size: 0.8rem;
  color: var(--ink-soft);
  line-height: 1.45;
}

/* burger (mobile only) */

.nav-btn {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  background: none;
  border: 1px solid var(--line);
  border-radius: 8px;
  cursor: pointer;
  padding: 10px;
}

.nav-btn span {
  display: block;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
}

/* ---------- hero: asymmetric two columns, framed image ---------- */

.hero {
  background:
    radial-gradient(1200px 420px at 8% -10%, rgba(179, 135, 47, 0.14), transparent 60%),
    linear-gradient(180deg, var(--paper) 0%, var(--paper-deep) 100%);
  border-bottom: 1px solid var(--line);
}

.hero-inner {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 84px 28px 72px;
  display: grid;
  grid-template-columns: 1.25fr 1fr;
  gap: 64px;
  align-items: center;
}

.kicker {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--cayenne);
  margin-bottom: 18px;
}

.hero h1 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(2.4rem, 4.6vw, 3.7rem);
  line-height: 1.08;
  letter-spacing: -0.01em;
  margin-bottom: 22px;
}

.hero h1 em {
  font-style: italic;
  color: var(--shutter);
  display: block;
}

.hero-sub {
  font-size: 1.06rem;
  color: var(--ink-soft);
  max-width: 34em;
  margin-bottom: 32px;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 22px;
  flex-wrap: wrap;
}

.btn {
  display: inline-block;
  background: var(--cayenne);
  color: var(--white);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.03em;
  padding: 15px 32px;
  border-radius: 3px;
  box-shadow: 0 10px 24px -10px rgba(168, 60, 32, 0.55);
  transition: background 0.2s, transform 0.2s;
}

.btn:hover { background: #8f3019; transform: translateY(-2px); }

.hero-note {
  font-size: 0.85rem;
  color: var(--ink-soft);
  font-style: italic;
}

/* thin decorative frame, no overlay */

.framed {
  position: relative;
  padding: 14px;
  border: 1px solid var(--brass);
  outline: 1px solid var(--line);
  outline-offset: 7px;
  background: var(--white);
}

.framed::after {
  content: "";
  position: absolute;
  inset: 7px;
  border: 1px dashed rgba(179, 135, 47, 0.45);
  pointer-events: none;
}

.framed img {
  width: 100%;
  height: 440px;
  object-fit: cover;
}

.hero-caption {
  margin-top: 16px;
  font-size: 0.82rem;
  font-style: italic;
  color: var(--ink-soft);
  text-align: center;
}

/* ---------- principles: single inline icon row, no cards ---------- */

.principles {
  background: var(--paper);
  border-bottom: 1px solid var(--line);
}

.principles-row {
  list-style: none;
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 44px 28px;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 36px;
}

.principles-row li {
  flex: 1;
  display: grid;
  grid-template-columns: 44px 1fr;
  grid-template-rows: auto auto;
  column-gap: 16px;
  align-items: center;
}

.principles-row svg {
  grid-row: 1 / 3;
  width: 40px;
  height: 40px;
  color: var(--brass);
}

.principles-row strong {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 1.08rem;
  color: var(--shutter);
}

.principles-row span {
  font-size: 0.84rem;
  color: var(--ink-soft);
  line-height: 1.5;
}

/* ---------- recipes: tab interface ---------- */

.recipes {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 90px 28px 100px;
}

.section-head {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 48px;
}

.section-head h2 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(1.9rem, 3.4vw, 2.6rem);
  margin-bottom: 14px;
}

.section-sub { color: var(--ink-soft); font-size: 1rem; }

.tab-rail {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-bottom: 42px;
}

.dish-tab {
  font-family: var(--sans);
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--ink-soft);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 10px 20px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: border-color 0.2s, color 0.2s, background 0.2s, box-shadow 0.2s;
}

.dish-tab small {
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--brass);
}

.dish-tab:hover { border-color: var(--brass); color: var(--ink); }

.dish-tab.is-active {
  background: var(--shutter);
  border-color: var(--shutter);
  color: var(--white);
  box-shadow: 0 12px 26px -14px rgba(20, 53, 40, 0.6);
}

.dish-tab.is-active small { color: var(--brass-soft); }

.dish-panel {
  display: none;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 4px;
  overflow: hidden;
  box-shadow: 0 30px 60px -34px rgba(36, 31, 24, 0.35);
}

.dish-panel.is-open {
  display: grid;
  grid-template-columns: 0.85fr 1.4fr;
  animation: fadeInUp 0.5s ease both;
}

@media (prefers-reduced-motion: reduce) {
  .dish-panel.is-open { animation: none; }
}

.dish-photo {
  position: relative;
  min-height: 100%;
}

.dish-photo img {
  width: 100%;
  height: 100%;
  min-height: 420px;
  object-fit: cover;
}

.dish-body { padding: 44px 48px 48px; }

.dish-body h3 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 1.7rem;
  line-height: 1.2;
  margin-bottom: 12px;
}

.dish-desc {
  color: var(--ink-soft);
  font-size: 0.98rem;
  margin-bottom: 22px;
  max-width: 56em;
}

.dish-meta {
  list-style: none;
  display: flex;
  gap: 34px;
  padding: 16px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  margin-bottom: 26px;
}

.dish-meta li {
  font-family: var(--serif);
  font-size: 1rem;
  color: var(--ink);
}

.dish-meta span {
  display: block;
  font-family: var(--sans);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--cayenne);
  margin-bottom: 3px;
}

.dish-cols {
  display: grid;
  grid-template-columns: 1fr 1.35fr;
  gap: 40px;
}

.dish-cols h4 {
  font-family: var(--sans);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--shutter);
  margin-bottom: 14px;
}

.ing {
  list-style: none;
  font-size: 0.92rem;
}

.ing li {
  padding: 8px 0 8px 20px;
  position: relative;
  border-bottom: 1px dotted var(--line);
}

.ing li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 17px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--brass);
}

.steps {
  list-style: none;
  counter-reset: step;
  font-size: 0.94rem;
}

.steps li {
  counter-increment: step;
  position: relative;
  padding: 0 0 18px 44px;
}

.steps li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: 1px;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--paper-deep);
  border: 1px solid var(--brass);
  color: var(--shutter);
  font-family: var(--serif);
  font-size: 0.85rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.steps li:not(:last-child)::after {
  content: "";
  position: absolute;
  left: 14px;
  top: 32px;
  bottom: 2px;
  width: 1px;
  background: var(--line);
}

/* ---------- about: quotation style ---------- */

.about {
  background: var(--shutter);
  color: var(--paper);
}

.about-inner {
  max-width: 780px;
  margin: 0 auto;
  padding: 96px 28px 100px;
  text-align: center;
  position: relative;
}

.about-quote {
  display: block;
  font-family: var(--serif);
  font-size: 7rem;
  line-height: 0.6;
  color: var(--brass-soft);
  margin-bottom: 8px;
}

.about-lead {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(1.4rem, 2.6vw, 1.9rem);
  line-height: 1.4;
  margin-bottom: 28px;
}

.about-text {
  font-size: 1rem;
  color: rgba(247, 241, 227, 0.82);
  max-width: 44em;
  margin: 0 auto 30px;
}

.about-sign {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--brass-soft);
}

/* ---------- footer ---------- */

.footer {
  background: var(--shutter-deep);
  color: rgba(247, 241, 227, 0.85);
}

.footer a { color: rgba(247, 241, 227, 0.85); }

.footer-inner {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 60px 28px 40px;
  display: grid;
  grid-template-columns: 1.2fr 1fr 1.2fr;
  gap: 44px;
}

.footer-logo {
  font-family: var(--serif);
  font-size: 1.25rem;
  color: var(--white);
  margin-bottom: 8px;
}

.footer-tag { font-size: 0.88rem; }

.footer-nav {
  display: flex;
  flex-direction: column;
  gap: 9px;
}

.footer-nav a {
  text-decoration: none;
  font-size: 0.9rem;
  transition: color 0.2s;
}

.footer-nav a:hover { color: var(--brass-soft); }

.footer-company p {
  font-size: 0.84rem;
  line-height: 1.7;
}

.footer-company p:first-child {
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--white);
}

.footer-copy {
  border-top: 1px solid rgba(247, 241, 227, 0.14);
  text-align: center;
  font-size: 0.8rem;
  padding: 22px 28px;
  color: rgba(247, 241, 227, 0.55);
}

/* ---------- legal pages ---------- */

.legal-hero {
  background: var(--shutter);
  color: var(--paper);
  padding: 70px 28px 56px;
  text-align: center;
}

.legal-hero h1 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(1.9rem, 3.6vw, 2.7rem);
  margin-bottom: 10px;
}

.legal-hero p { color: rgba(247, 241, 227, 0.75); font-size: 0.95rem; }

.legal-wrap {
  max-width: 820px;
  margin: 0 auto;
  padding: 64px 28px 90px;
}

.legal-wrap h2 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 1.4rem;
  color: var(--shutter);
  margin: 42px 0 14px;
}

.legal-wrap h2:first-child { margin-top: 0; }

.legal-wrap p { margin-bottom: 16px; font-size: 0.97rem; }

.legal-wrap ul {
  margin: 0 0 18px 22px;
  font-size: 0.97rem;
}

.legal-wrap li { margin-bottom: 8px; }

.legal-updated {
  font-size: 0.82rem;
  font-style: italic;
  color: var(--ink-soft);
  margin-bottom: 34px;
}

.company-contact-box {
  margin-top: 56px;
  background: var(--white);
  border: 1px solid var(--line);
  border-left: 4px solid var(--brass);
  padding: 28px 32px;
}

.company-contact-box h3 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 1.1rem;
  color: var(--shutter);
  margin-bottom: 10px;
}

.company-contact-box p {
  font-size: 0.92rem;
  margin-bottom: 4px;
}

/* ---------- breakpoints: 1080 / 780 / 460 ---------- */

@media (max-width: 1080px) {
  .hero-inner {
    grid-template-columns: 1fr;
    gap: 48px;
    padding-top: 64px;
  }
  .hero-art { max-width: 620px; margin: 0 auto; width: 100%; }
  .framed img { height: 380px; }
  .dish-panel.is-open { grid-template-columns: 1fr; }
  .dish-photo img { min-height: 300px; max-height: 360px; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .footer-company { grid-column: 1 / -1; }
}

@media (max-width: 780px) {
  .nav-btn { display: flex; }
  .nav {
    position: absolute;
    top: 76px;
    left: 0;
    right: 0;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
    display: none;
    box-shadow: 0 24px 40px -22px rgba(36, 31, 24, 0.35);
  }
  .nav.is-open { display: block; }
  .nav-list {
    flex-direction: column;
    align-items: stretch;
    padding: 14px 20px 22px;
    gap: 2px;
  }
  .nav-link { border-radius: 8px; }
  .nav-link-pill { text-align: center; justify-content: center; margin-top: 8px; }
  .mega {
    position: static;
    transform: none;
    width: 100%;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    box-shadow: none;
    border: none;
    border-top: none;
    background: transparent;
  }
  .caret { display: none; }
  .mega-grid { grid-template-columns: 1fr; padding: 0 0 0 14px; gap: 0; }
  .mega-grid span { display: none; }
  .mega-grid strong { font-size: 0.92rem; }
  .mega-grid a { padding: 9px 12px; }
  .principles-row {
    flex-direction: column;
    gap: 26px;
    padding: 36px 28px;
  }
  .dish-cols { grid-template-columns: 1fr; gap: 30px; }
  .dish-body { padding: 32px 28px 38px; }
  .dish-meta { gap: 24px; flex-wrap: wrap; }
  .recipes { padding: 64px 20px 72px; }
  .tab-rail { gap: 8px; }
}

@media (max-width: 460px) {
  body { font-size: 17px; }
  .topbar-inner { padding: 0 18px; }
  .hero-inner { padding: 44px 18px 52px; gap: 36px; }
  .framed { padding: 9px; }
  .framed img { height: 260px; }
  .hero-actions { gap: 14px; }
  .btn { width: 100%; text-align: center; }
  .dish-tab { padding: 9px 14px; font-size: 0.84rem; }
  .dish-tab small { display: none; }
  .dish-body { padding: 26px 20px 32px; }
  .dish-meta { gap: 18px; }
  .about-inner { padding: 70px 20px 76px; }
  .footer-inner { grid-template-columns: 1fr; gap: 30px; padding: 44px 20px 30px; }
  .legal-wrap { padding: 44px 20px 64px; }
  .company-contact-box { padding: 22px 20px; }
}
