/* ==========================================================================
   Korma's Kitchen — kormaskitchen.com
   Design system translated from the print-menu suite (main_menu.html /
   breakfast_menu.html / cover_pages.html) and the Brand Guide.
   Structure modeled on shakeshack.com: restraint, whitespace, one clear path.
   ========================================================================== */

:root {
  /* Official brand palette */
  --flame-red: #A81818;
  --petal-orange: #C04824;
  --golden-amber: #E48418;
  --cream: #F0E4CC;

  /* Supporting tones from the as-built menu CSS */
  --brown: #4A1C14;
  --brown-soft: #6B2C1E;
  --ink: #2A1410;
  --cream-light: #F7EEDA;
  --cream-deep: #E3D2AE;

  /* Type */
  --font-display: 'Yeseva One', serif;
  --font-accent: 'Marcellus', serif;
  --font-body: 'Mukta', sans-serif;

  --header-h: 76px;
  --radius: 10px;
  --shadow-soft: 0 10px 30px rgba(42, 20, 16, 0.10);
}

/* ---------- Base ---------- */

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

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}

body {
  font-family: var(--font-body);
  font-size: 1.0625rem;            /* 17px — print menus run small; the web must not */
  line-height: 1.6;
  color: var(--ink);
  background:
    radial-gradient(circle at 12% 8%, rgba(217, 138, 31, 0.08), transparent 38%),
    radial-gradient(circle at 88% 92%, rgba(181, 72, 42, 0.08), transparent 40%),
    var(--cream);
}

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

a { color: var(--flame-red); }

h1, h2, h3 { font-family: var(--font-display); font-weight: 400; line-height: 1.12; color: var(--brown); }

section { scroll-margin-top: calc(var(--header-h) + 8px); }

/* Visible focus everywhere (WCAG 2.4.7). Flame red ≥5:1 against every cream
   surface; amber (≥5:1 on deep brown) takes over inside dark panels — the
   amber ring is only ~2.2:1 on cream, so it must never appear there (1.4.11). */
a:focus-visible, button:focus-visible, input:focus-visible, [tabindex]:focus-visible {
  outline: 3px solid var(--flame-red);
  outline-offset: 3px;
  border-radius: 2px;
}
.on-dark a:focus-visible, .on-dark button:focus-visible, .on-dark input:focus-visible {
  outline-color: var(--golden-amber);
}

.container { width: min(1120px, 100% - 2.5rem); margin-inline: auto; }

.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;
}

/* ---------- Skip link ---------- */

.skip-link {
  position: absolute;
  left: 1rem; top: -100px;
  z-index: 200;
  background: var(--brown); color: var(--cream-light);
  padding: 0.7rem 1.2rem; border-radius: 0 0 8px 8px;
  font-weight: 600; text-decoration: none;
  transition: top 0.15s ease;
}
.skip-link:focus { top: 0; }

/* ---------- Buttons ---------- */

.btn {
  display: inline-block;
  font-family: var(--font-body); font-weight: 600; font-size: 1rem;
  letter-spacing: 0.04em; text-decoration: none; text-align: center;
  padding: 0.85rem 1.9rem; border-radius: 999px;
  border: 2px solid transparent; cursor: pointer;
  transition: background-color 0.18s ease, color 0.18s ease, border-color 0.18s ease, transform 0.18s ease;
}
.btn:hover { transform: translateY(-1px); }

.btn-primary { background: var(--flame-red); color: var(--cream-light); }
/* hover text is #fff, not cream-light: cream on petal-orange is 4.34:1 (fails AA),
   white is 5.01:1 */
.btn-primary:hover { background: var(--petal-orange); color: #fff; }

.btn-outline { border-color: var(--brown); color: var(--brown); background: transparent; }
.btn-outline:hover { background: var(--brown); color: var(--cream-light); }

/* Variants for dark (brown) panels */
.btn-outline-light { border-color: var(--cream); color: var(--cream-light); background: transparent; }
.btn-outline-light:hover { background: var(--cream); color: var(--brown); }

/* ---------- Eyebrow / divider language from the print menus ---------- */

.eyebrow {
  font-family: var(--font-accent);
  font-size: 0.85rem; letter-spacing: 0.32em; text-transform: uppercase;
  color: var(--flame-red);
  display: flex; align-items: center; justify-content: center; gap: 0.75rem;
}
.eyebrow::before, .eyebrow::after { content: "\2756"; /* ❖ */ font-size: 0.7em; color: var(--golden-amber); }
.eyebrow.left { justify-content: flex-start; }

.on-dark .eyebrow, .eyebrow.on-dark { color: var(--golden-amber); }
.on-dark .eyebrow::before, .on-dark .eyebrow::after,
.eyebrow.on-dark::before, .eyebrow.on-dark::after { color: var(--cream-deep); }

.section-head { text-align: center; max-width: 46rem; margin: 0 auto 2.75rem; }
.section-head h2 { font-size: clamp(1.9rem, 4.5vw, 2.6rem); margin-top: 0.6rem; }
.section-head p { margin-top: 0.75rem; color: var(--brown-soft); }

/* ---------- Header ---------- */

.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(247, 238, 218, 0.96);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--cream-deep);
}
.site-header .container {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; min-height: var(--header-h);
}
.header-logo { display: inline-flex; align-items: center; flex: none; }
/* Brand rule: clear space ≈ one lower petal — padding keeps neighbors away */
.header-logo img { height: 52px; width: auto; padding: 4px 0; }

.main-nav ul { display: flex; align-items: center; gap: 1.6rem; list-style: none; }
.main-nav a:not(.btn) {
  font-weight: 600; font-size: 1rem; text-decoration: none; color: var(--brown);
  padding: 0.35rem 0.1rem; border-bottom: 2px solid transparent;
}
.main-nav a:not(.btn):hover { color: var(--flame-red); border-bottom-color: var(--golden-amber); }
.main-nav .nav-soon { font-size: 0.75em; font-family: var(--font-accent); letter-spacing: 0.08em; color: var(--brown-soft); display: block; line-height: 1; text-transform: uppercase; }
.main-nav .btn { padding: 0.6rem 1.4rem; }

.nav-toggle {
  display: none;
  background: none; border: 0; cursor: pointer;
  width: 48px; height: 48px; border-radius: 8px;
  color: var(--brown);
}
.nav-toggle svg { width: 28px; height: 28px; }
.nav-toggle .icon-close { display: none; }
.nav-toggle[aria-expanded="true"] .icon-open { display: none; }
.nav-toggle[aria-expanded="true"] .icon-close { display: block; }

@media (max-width: 880px) {
  .nav-toggle { display: inline-flex; align-items: center; justify-content: center; }
  .main-nav {
    position: absolute; top: 100%; left: 0; right: 0;
    background: var(--cream-light);
    border-bottom: 2px solid var(--brown);
    box-shadow: var(--shadow-soft);
    display: none;
  }
  .main-nav.open { display: block; }
  .main-nav ul { flex-direction: column; align-items: stretch; gap: 0; padding: 0.75rem 1.25rem 1.25rem; }
  .main-nav li { border-bottom: 1px solid var(--cream-deep); }
  .main-nav li:last-child { border-bottom: 0; padding-top: 0.9rem; }
  .main-nav a:not(.btn) { display: block; padding: 0.8rem 0.2rem; }
  .main-nav .btn { display: block; }
}

/* ---------- Hero ---------- */

.hero {
  background:
    radial-gradient(circle at 30% 20%, rgba(228, 132, 24, 0.14), transparent 45%),
    linear-gradient(135deg, var(--brown), var(--brown-soft));
  color: var(--cream-light);
  padding: clamp(3.5rem, 8vw, 6.5rem) 0;
  position: relative; overflow: hidden;
}
.hero .container {
  display: grid; grid-template-columns: 1.1fr 0.9fr;
  gap: clamp(2rem, 5vw, 4rem); align-items: center;
}
.hero-logo {
  width: clamp(150px, 22vw, 220px);
  margin-bottom: 1.4rem;
}
.hero h1 {
  color: var(--cream-light);
  font-size: clamp(2.1rem, 5.2vw, 3.4rem);
  margin: 0.9rem 0 0.5rem;
}
.hero .hero-sub { color: var(--cream-deep); font-size: 1.15rem; max-width: 34rem; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 1rem; margin-top: 2rem; }

/* Clearly-marked placeholder for hero food photography */
.photo-placeholder {
  border: 2px dashed rgba(240, 228, 204, 0.55);
  border-radius: var(--radius);
  background: rgba(247, 238, 218, 0.07);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 0.5rem; text-align: center; padding: 1.5rem;
  font-family: var(--font-accent); letter-spacing: 0.18em; text-transform: uppercase;
  font-size: 0.85rem; color: var(--cream-deep);
  min-height: 320px;
}
.photo-placeholder.light {
  border-color: var(--brown-soft);
  background: var(--cream-deep);
  color: var(--brown-soft);
  min-height: 200px;
}
.photo-placeholder .ph-icon { font-size: 1.6rem; letter-spacing: 0; }

@media (max-width: 880px) {
  .hero .container { grid-template-columns: 1fr; }
  .photo-placeholder { min-height: 220px; }
}

/* ---------- Pillars ---------- */

.section { padding: clamp(3.5rem, 8vw, 6rem) 0; }
.section.tint { background: var(--cream-light); border-block: 1px solid var(--cream-deep); }

.pillars { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.5rem; max-width: 52rem; margin-inline: auto; }
.pillar {
  background: var(--cream-light);
  border: 1px solid var(--cream-deep);
  border-radius: var(--radius);
  padding: 2.2rem 1.8rem;
  text-align: center;
  position: relative;
}
.pillar::after {
  content: ""; position: absolute; inset: 8px;
  border: 1px solid rgba(74, 28, 20, 0.18); border-radius: 6px;
  pointer-events: none;
}
.pillar .pillar-icon { width: 54px; height: 54px; margin: 0 auto 1.1rem; color: var(--petal-orange); }
.pillar .pillar-icon svg { width: 100%; height: 100%; }
.pillar h3 { font-size: 1.45rem; margin-bottom: 0.6rem; }
.pillar p { color: var(--brown-soft); font-size: 1rem; }

@media (max-width: 880px) {
  .pillars { grid-template-columns: 1fr; }
}

/* ---------- Menu highlights (home teaser) ---------- */

.highlights { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.highlight-card {
  background: var(--cream-light);
  border: 1px solid var(--cream-deep);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex; flex-direction: column;
  box-shadow: var(--shadow-soft);
}
.highlight-card .photo-placeholder.light { border-radius: 0; border-width: 0 0 2px; min-height: 180px; }
.highlight-body { padding: 1.4rem 1.5rem 1.6rem; display: flex; flex-direction: column; flex: 1; }
.highlight-body .hl-tag {
  font-family: var(--font-accent); font-size: 0.8rem; letter-spacing: 0.26em;
  text-transform: uppercase; color: var(--flame-red);
}
.highlight-body h3 { font-size: 1.3rem; margin: 0.35rem 0 0.4rem; }
.highlight-body p { color: var(--brown-soft); font-size: 1rem; flex: 1; }
.highlight-body .hl-price { font-family: var(--font-accent); color: var(--flame-red); font-size: 1.1rem; margin-top: 0.8rem; }

.highlights-cta { text-align: center; margin-top: 2.5rem; }

@media (max-width: 880px) {
  .highlights { grid-template-columns: 1fr; }
}

/* ---------- Menu ---------- */

.menu-intro { text-align: center; max-width: 44rem; margin: 0 auto 2rem; }

/* Spice scale — flame icons from the print menus */
.spice-scale {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: center;
  gap: 0.6rem 1.6rem;
  font-family: var(--font-accent); letter-spacing: 0.08em;
  color: var(--brown-soft); font-size: 1rem;
  margin-top: 1.1rem;
}
.spice-scale .spice-label { letter-spacing: 0.2em; text-transform: uppercase; font-size: 0.8rem; }
.spice-level { display: inline-flex; align-items: center; gap: 0.35rem; white-space: nowrap; }
.flame { width: 15px; height: 18px; color: var(--flame-red); flex: none; }
.flame.f2 { color: var(--petal-orange); }
.flame svg { width: 100%; height: 100%; display: block; }

/* Segmented toggle: Breakfast vs Lunch & Dinner */
.menu-toggle {
  display: flex; justify-content: center; gap: 0;
  width: fit-content; margin: 2.2rem auto 0.4rem;
  /* carries id="menu-breakfast" as the anchor target — clear the sticky header */
  scroll-margin-top: calc(var(--header-h) + 16px);
  background: var(--cream-deep);
  border: 2px solid var(--brown);
  border-radius: 999px; padding: 4px;
}
.menu-toggle button {
  font-family: var(--font-body); font-weight: 600; font-size: 1rem;
  color: var(--brown);
  background: transparent; border: 0; border-radius: 999px;
  padding: 0.6rem 1.6rem; cursor: pointer;
  transition: background-color 0.15s ease, color 0.15s ease;
}
.menu-toggle button[aria-pressed="true"] { background: var(--brown); color: var(--cream-light); }
.menu-toggle button .toggle-hours { display: block; font-family: var(--font-accent); font-weight: 400; font-size: 0.8rem; letter-spacing: 0.12em; opacity: 0.85; }

.hours-pill {
  display: inline-block; background: var(--brown); color: var(--cream-light);
  font-family: var(--font-accent); font-size: 1rem; letter-spacing: 0.18em;
  padding: 0.45rem 1.4rem; border-radius: 999px; text-transform: uppercase;
}

.menu-panel { margin-top: 2.5rem; }
.menu-panel[hidden] { display: none; }

.menu-panel-head { text-align: center; margin-bottom: 2.2rem; }
.menu-panel-head .panel-tagline { font-family: var(--font-accent); font-style: italic; color: var(--brown-soft); margin-top: 0.5rem; }

.menu-sections { columns: 2; column-gap: 3rem; }
.menu-section { break-inside: avoid; margin-bottom: 2.6rem; }

.menu-sec-head { display: flex; align-items: baseline; gap: 0.7rem; border-bottom: 2px solid var(--brown); padding-bottom: 0.45rem; margin-bottom: 1.1rem; }
.menu-sec-head h3, .menu-sec-head h4 { font-family: var(--font-display); font-size: 1.5rem; color: var(--brown); white-space: nowrap; font-weight: 400; }
.menu-sec-head .sec-sub { font-family: var(--font-accent); font-style: italic; font-size: 1rem; color: var(--brown-soft); }

.menu-note {
  background: var(--cream-deep);
  border-left: 3px solid var(--golden-amber);
  padding: 0.75rem 1.1rem; border-radius: 0 6px 6px 0;
  font-size: 1rem; color: var(--brown-soft);
  margin-bottom: 1.1rem;
}

.menu-item { margin-bottom: 1.05rem; }
.menu-item .item-row { display: flex; align-items: baseline; gap: 0.5rem; }
.menu-item .item-name { font-weight: 600; font-size: 1.06rem; color: var(--ink); }
.menu-item .item-dots { flex: 1; border-bottom: 2px dotted rgba(107, 44, 30, 0.45); transform: translateY(-4px); min-width: 1.5rem; }
.menu-item .item-price { font-family: var(--font-accent); color: var(--flame-red); white-space: nowrap; font-size: 1.02rem; }
.menu-item .item-desc { color: var(--brown-soft); font-size: 1rem; line-height: 1.45; max-width: 95%; margin-top: 0.1rem; }

@media (max-width: 880px) {
  .menu-sections { columns: 1; }
}

/* ---------- About ---------- */

.about-grid { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: clamp(2rem, 5vw, 4rem); align-items: start; }
.about-copy p { margin-bottom: 1.1rem; }
.about-copy h3 { font-size: 1.35rem; margin: 1.8rem 0 0.7rem; }
.extras-list { list-style: none; margin-top: 0.4rem; }
.extras-list li { padding-left: 1.6rem; position: relative; margin-bottom: 0.7rem; }
.extras-list li::before { content: "\2756"; position: absolute; left: 0; top: 0.1em; color: var(--golden-amber); font-size: 0.85em; }

@media (max-width: 880px) {
  .about-grid { grid-template-columns: 1fr; }
}

/* ---------- Visit ---------- */

.visit-grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: clamp(2rem, 5vw, 3.5rem); align-items: stretch; }
.visit-card {
  background: var(--cream-light);
  border: 1px solid var(--cream-deep); border-radius: var(--radius);
  padding: 2rem 2rem 2.2rem;
  box-shadow: var(--shadow-soft);
}
.visit-card h3 { font-size: 1.25rem; margin-bottom: 0.5rem; }
.visit-card + .visit-card { margin-top: 1.25rem; }
.visit-card address { font-style: normal; }
.visit-card .visit-note { color: var(--brown-soft); font-size: 1rem; margin-top: 0.5rem; }

.hours-table { width: 100%; border-collapse: collapse; margin-top: 0.4rem; }
.hours-table th, .hours-table td { text-align: left; padding: 0.55rem 0; border-bottom: 1px dotted rgba(107, 44, 30, 0.4); }
.hours-table th { font-weight: 600; color: var(--ink); }
.hours-table td { color: var(--brown-soft); }
.hours-table tr:last-child th, .hours-table tr:last-child td { border-bottom: 0; }

.map-placeholder {
  min-height: 380px; height: 100%;
  border: 2px dashed var(--brown-soft); border-radius: var(--radius);
  background: var(--cream-deep);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 0.6rem; padding: 1.5rem; text-align: center;
  font-family: var(--font-accent); letter-spacing: 0.18em; text-transform: uppercase;
  font-size: 0.85rem; color: var(--brown-soft);
}

.social-row { display: flex; gap: 0.9rem; margin-top: 0.9rem; }
.social-row a {
  display: inline-flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; border-radius: 50%;
  background: var(--brown); color: var(--cream-light);
  transition: background-color 0.15s ease;
}
.social-row a:hover { background: var(--flame-red); }
.social-row svg { width: 20px; height: 20px; }

@media (max-width: 880px) {
  .visit-grid { grid-template-columns: 1fr; }
  .map-placeholder { min-height: 260px; }
}

/* ---------- Footer ---------- */

.site-footer {
  background: linear-gradient(160deg, var(--brown), var(--ink));
  color: var(--cream-deep);
  padding: 3.5rem 0 2rem;
  margin-top: 0;
}
.footer-top {
  display: grid; grid-template-columns: 1.2fr repeat(3, 1fr) 1.4fr;
  gap: 2.2rem;
  padding-bottom: 2.5rem;
  border-bottom: 1px solid rgba(240, 228, 204, 0.25);
}
.footer-brand img { width: 130px; padding: 6px 0; /* clear-space rule */ }
.footer-brand p { font-family: var(--font-accent); font-size: 0.9rem; letter-spacing: 0.06em; margin-top: 0.9rem; color: var(--cream-deep); }

.footer-col h2 {
  font-family: var(--font-accent); font-size: 0.85rem; letter-spacing: 0.28em;
  text-transform: uppercase; color: var(--golden-amber);
  margin-bottom: 1rem;
}
.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 0.55rem; }
.footer-col a { color: var(--cream-light); text-decoration: none; font-size: 0.98rem; }
.footer-col a:hover { color: var(--golden-amber); text-decoration: underline; }
.footer-col .soon { font-family: var(--font-accent); font-size: 0.78rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--cream-deep); opacity: 0.85; margin-left: 0.35rem; }

.newsletter p { font-size: 1rem; margin-bottom: 0.9rem; color: var(--cream-light); }
.newsletter-form { display: flex; gap: 0.5rem; flex-wrap: wrap; }
.newsletter-form input[type="email"] {
  flex: 1; min-width: 170px;
  font-family: var(--font-body); font-size: 1rem;
  padding: 0.65rem 1rem; border-radius: 999px;
  border: 1px solid var(--cream-deep);
  background: var(--cream-light); color: var(--ink);
}
.newsletter-form input[type="email"]::placeholder { color: var(--brown-soft); opacity: 1; }
.newsletter-form .btn { padding: 0.65rem 1.4rem; }
.newsletter .nl-note { font-size: 1rem; opacity: 0.85; margin-top: 0.6rem; margin-bottom: 0; }
.newsletter .social-row a { background: rgba(240, 228, 204, 0.14); }
.newsletter .social-row a:hover { background: var(--flame-red); }

.footer-legal {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: 0.8rem 1.5rem; padding-top: 1.6rem;
  font-size: 1rem;
}
.footer-legal ul { display: flex; flex-wrap: wrap; gap: 1.4rem; list-style: none; }
.footer-legal a { color: var(--cream-deep); text-decoration: none; }
.footer-legal a:hover { color: var(--golden-amber); text-decoration: underline; }

@media (max-width: 980px) {
  .footer-top { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  .footer-top { grid-template-columns: 1fr; }
}

/* ---------- Coming Soon pages ---------- */

.coming-soon-main {
  min-height: calc(100vh - var(--header-h));
  display: flex; align-items: center; justify-content: center;
  padding: 4rem 0;
}
.coming-soon-card { text-align: center; max-width: 34rem; padding: 0 1.25rem; position: relative; }
.coming-soon-card h1 { font-size: clamp(2.2rem, 6vw, 3.2rem); margin: 0.8rem 0 1rem; }
.coming-soon-card p { color: var(--brown-soft); margin-bottom: 2rem; }
.coming-soon-card .corner { position: absolute; width: 44px; height: 44px; color: var(--flame-red); opacity: 0.85; }
.coming-soon-card .corner svg { width: 100%; height: 100%; }
.corner.c-tl { top: -28px; left: -10px; }
.corner.c-tr { top: -28px; right: -10px; transform: rotate(90deg); }
.corner.c-br { bottom: -28px; right: -10px; transform: rotate(180deg); }
.corner.c-bl { bottom: -28px; left: -10px; transform: rotate(270deg); }
.coming-soon-ctas { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }
/* On narrow phones the flourishes would clip at the viewport edge — drop them */
@media (max-width: 560px) {
  .coming-soon-card .corner { display: none; }
}
