/*
 * Daddy's Place: site styles.
 * No build step. Edit this file directly, then bump the ?v= number where the HTML and PHP pages load it.
 */

:root {
  --cedar-950: #102119;
  --cedar-900: #14281d;
  --cedar-800: #1b3426;
  --cedar-700: #234431;
  --cedar-600: #2e5a40;
  --stone-50: #fbf8f2;
  --stone-100: #f5efe4;
  --stone-200: #ebe2d2;
  --stone-300: #dccdb4;
  --terracotta: #b5502e;
  --terracotta-dark: #974024;
  --gold: #c9a24e;
  --gold-light: #e3c987;
  --ink: #221c16;
  --ink-soft: #5c5146;
  --cream: #f5efe4;
  --line: rgba(34, 28, 22, 0.12);
  --line-light: rgba(245, 239, 228, 0.16);
  --font-display: 'Fraunces', Georgia, 'Times New Roman', serif;
  --font-body: 'Figtree', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-arabic: 'Aref Ruqaa', 'Geeza Pro', 'Noto Naskh Arabic', serif;
  --header-h: 72px;
  --radius: 14px;
  --shadow: 0 22px 50px -24px rgba(16, 33, 25, 0.45);
  --container: 1180px;
  --gutter: clamp(16px, 4vw, 32px);
  --section-y: clamp(64px, 9vw, 120px);
  /* Lebanese floor-tile star, drawn in gold. Used at low opacity behind dark sections. */
  --tile: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='80' height='80' viewBox='0 0 80 80'%3E%3Cg fill='none' stroke='%23e3c987' stroke-width='1.2'%3E%3Cpath d='M40 8l8 20 20 4-20 8-8 32-8-32-20-8 20-4z'/%3E%3Cpath d='M40 22l6 12 12 6-12 6-6 12-6-12-12-6 12-6z'/%3E%3Cpath d='M0 0h14M0 0v14M80 0H66M80 0v14M0 80h14M0 80V66M80 80H66M80 80V66'/%3E%3C/g%3E%3C/svg%3E");
}

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

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--stone-50);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

/* The hidden attribute must win over layout rules like .field-row { display: grid }. */
[hidden] {
  display: none !important;
}

a {
  color: var(--terracotta);
  text-underline-offset: 3px;
}

a:hover {
  color: var(--terracotta-dark);
}

:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 3px;
  border-radius: 4px;
}

h1,
h2,
h3 {
  margin: 0 0 0.5em;
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: -0.01em;
}

h1 {
  font-size: clamp(2.5rem, 5.5vw, 4.25rem);
}

h2 {
  font-size: clamp(2rem, 4vw, 3rem);
}

h3 {
  font-size: 1.35rem;
  line-height: 1.2;
}

h1 em,
h2 em {
  font-style: italic;
  font-weight: 500;
}

p {
  margin: 0 0 1em;
}

.container {
  width: 100%;
  max-width: calc(var(--container) + var(--gutter) * 2);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.skip-link {
  position: absolute;
  top: -60px;
  left: 12px;
  z-index: 100;
  padding: 10px 16px;
  border-radius: 8px;
  background: var(--gold);
  color: var(--cedar-950);
  font-weight: 700;
}

.skip-link:focus {
  top: 12px;
}

.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.icon {
  display: inline-block;
  width: 1em;
  height: 1em;
  flex-shrink: 0;
  vertical-align: -0.125em;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
  color: var(--terracotta);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.eyebrow::before {
  content: '';
  width: 28px;
  height: 1px;
  background: currentColor;
}

/* Inline-block so right-to-left text doesn't push itself to the right edge. */
.arabic {
  display: inline-block;
  margin-bottom: 12px;
  color: var(--gold);
  font-family: var(--font-arabic);
  font-size: 1.7rem;
  font-weight: 700;
  line-height: 1.2;
}

.lead {
  max-width: 36em;
  color: var(--ink-soft);
  font-size: 1.15rem;
}

.on-dark {
  color: var(--cream);
}

.on-dark .eyebrow {
  color: var(--gold-light);
}

.on-dark .lead {
  color: rgba(245, 239, 228, 0.82);
}

.on-dark h1 em,
.on-dark h2 em {
  color: var(--gold-light);
}

.pattern {
  position: relative;
  isolation: isolate;
}

.pattern::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image: var(--tile);
  background-size: 80px 80px;
  opacity: 0.07;
  pointer-events: none;
}

/* ---------- Buttons and links ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 50px;
  padding: 12px 24px;
  border: 2px solid transparent;
  border-radius: 999px;
  font-family: inherit;
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.2s, color 0.2s, border-color 0.2s, transform 0.2s;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn:disabled {
  opacity: 0.7;
  cursor: wait;
  transform: none;
}

.btn-primary {
  background: var(--terracotta);
  color: #fff;
}

.btn-primary:hover {
  background: var(--terracotta-dark);
  color: #fff;
}

.btn-ghost {
  border-color: currentColor;
  background: transparent;
  color: var(--ink);
}

.btn-ghost:hover {
  border-color: var(--ink);
  background: var(--ink);
  color: var(--stone-50);
}

.on-dark .btn-ghost {
  color: var(--cream);
}

.on-dark .btn-ghost:hover {
  border-color: var(--cream);
  background: var(--cream);
  color: var(--cedar-900);
}

.btn-sm {
  min-height: 44px;
  padding: 9px 18px;
  font-size: 0.95rem;
}

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  text-decoration: none;
}

.text-link .icon {
  transition: transform 0.2s;
}

.text-link:hover .icon {
  transform: translateX(3px);
}

.on-dark .text-link {
  color: var(--gold-light);
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--cedar-900);
  color: var(--cream);
  border-bottom: 1px solid var(--line-light);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 20px;
  height: var(--header-h);
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
  color: var(--cream);
  text-decoration: none;
}

.brand:hover {
  color: #fff;
}

.brand-mark {
  width: 46px;
  height: 33px;
  color: var(--gold-light);
}

.brand-word {
  width: 150px;
  height: 21px;
}

.site-nav {
  margin-left: auto;
}

.site-nav ul {
  display: flex;
  gap: 4px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-nav a {
  display: block;
  padding: 10px 14px;
  border-radius: 999px;
  color: rgba(245, 239, 228, 0.85);
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
}

.site-nav a:hover {
  background: rgba(245, 239, 228, 0.08);
  color: #fff;
}

.site-nav a[aria-current='page'] {
  color: var(--gold-light);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

/* Pages without a nav (the form result page) still push the call button to the right. */
.brand + .header-actions {
  margin-left: auto;
}

.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid var(--line-light);
  border-radius: 50%;
  background: transparent;
  color: var(--cream);
  cursor: pointer;
}

.nav-toggle .icon {
  width: 18px;
  height: 18px;
}

.nav-toggle .icon-close,
.nav-toggle[aria-expanded='true'] .icon-open {
  display: none;
}

.nav-toggle[aria-expanded='true'] .icon-close {
  display: inline-block;
}

/* Live open/closed status, filled in by js/main.js. */
.status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: rgba(245, 239, 228, 0.85);
  font-size: 0.85rem;
  font-weight: 600;
  white-space: nowrap;
}

.status::before {
  content: '';
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--stone-300);
  box-shadow: 0 0 0 3px rgba(220, 205, 180, 0.2);
}

.status[data-state='open']::before {
  background: #5fbf7f;
  box-shadow: 0 0 0 3px rgba(95, 191, 127, 0.25);
}

.status[data-state='soon']::before {
  background: var(--gold);
  box-shadow: 0 0 0 3px rgba(201, 162, 78, 0.25);
}

.status[data-state='closed']::before {
  background: #d9785b;
  box-shadow: 0 0 0 3px rgba(217, 120, 91, 0.25);
}

.status--light {
  color: var(--ink-soft);
}

@media (max-width: 1080px) {
  .header-status {
    display: none;
  }
}

@media (max-width: 900px) {
  :root {
    --header-h: 64px;
  }

  .nav-toggle {
    display: inline-flex;
  }

  .site-nav {
    position: absolute;
    top: var(--header-h);
    right: 0;
    left: 0;
    display: none;
    padding: 4px var(--gutter) 20px;
    background: var(--cedar-900);
    border-bottom: 1px solid var(--line-light);
    box-shadow: 0 20px 30px -20px rgba(0, 0, 0, 0.5);
  }

  .site-nav.is-open {
    display: block;
  }

  .site-nav ul {
    flex-direction: column;
    gap: 0;
  }

  .site-nav a {
    padding: 15px 2px;
    border-bottom: 1px solid var(--line-light);
    border-radius: 0;
    font-size: 1.1rem;
  }

  .header-actions {
    margin-left: auto;
    gap: 10px;
  }

  /* Without JavaScript the menu can't open, so show it in the page flow instead. */
  html:not(.js) .site-nav {
    position: static;
    display: block;
  }
}

@media (max-width: 480px) {
  .brand-mark {
    width: 40px;
    height: 29px;
  }

  .brand-word {
    width: 118px;
    height: 17px;
  }

  .header-call .label {
    display: none;
  }

  .header-call {
    width: 44px;
    padding: 0;
  }
}

/* ---------- Home: hero ---------- */

.hero {
  padding: clamp(44px, 7vw, 96px) 0 clamp(56px, 8vw, 110px);
  overflow: hidden;
  background: var(--cedar-900);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1.05fr;
  gap: clamp(36px, 6vw, 80px);
  align-items: center;
}

.hero-logo {
  display: block;
  width: clamp(180px, 19vw, 250px);
  aspect-ratio: 837 / 773;
  margin-bottom: 30px;
  color: var(--cream);
}

.hero h1 {
  max-width: 12em;
  font-size: clamp(2.3rem, 4.6vw, 3.8rem);
}

.hero .lead {
  margin-bottom: 30px;
}

.hero-status {
  display: none;
  margin-bottom: 22px;
}

.hero-note {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 18px 0 0;
  color: rgba(245, 239, 228, 0.72);
  font-size: 0.92rem;
}

.hero-note .icon {
  color: var(--gold-light);
}

/* Triple-arched window, after the old stone houses of Mount Lebanon (and the arch in the logo). */
.window {
  margin: 0;
}

.window-arches {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1.3fr 1fr;
  gap: clamp(8px, 1.4vw, 16px);
  align-items: end;
}

.arch {
  position: relative;
  overflow: hidden;
  border-radius: 999px 999px 0 0;
  background: var(--cedar-700);
}

.arch img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Food photos are landscape: wider arches keep the dish in frame, the center one stands taller. */
.window .arch {
  aspect-ratio: 5 / 9;
}

.window .arch--center {
  aspect-ratio: 1 / 2;
}

/* Gold seal on the award-winning hummus. */
.window-seal {
  position: absolute;
  bottom: 18px;
  left: 50%;
  display: grid;
  place-content: center;
  width: clamp(64px, 7.4vw, 96px);
  aspect-ratio: 1;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 0 3px var(--cedar-900), 0 0 0 4px var(--gold-light), 0 10px 24px rgba(0, 0, 0, 0.35);
  color: var(--cedar-900);
  font-family: var(--font-display);
  font-size: clamp(0.78rem, 1.3vw, 1.1rem);
  font-style: italic;
  font-weight: 600;
  line-height: 1.05;
  text-align: center;
  transform: translateX(-50%) rotate(-8deg);
}

.window-seal small {
  display: block;
  font-family: var(--font-body);
  font-size: 0.58em;
  font-style: normal;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.window-sill {
  height: 9px;
  margin-top: 0;
  background: var(--cream);
}

.window-sill + .window-sill {
  height: 3px;
  margin-top: 7px;
  opacity: 0.6;
}

.window figcaption {
  margin-top: 14px;
  color: rgba(245, 239, 228, 0.7);
  font-size: 0.9rem;
  font-style: italic;
}

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

  .hero-status {
    display: flex;
    width: fit-content;
  }

  .window .arch {
    aspect-ratio: 3 / 4.4;
  }

  .window .arch--center {
    aspect-ratio: 3 / 5;
  }
}

/* ---------- Home: awards strip ---------- */

.awards {
  background: var(--stone-200);
  border-bottom: 1px solid var(--line);
}

.awards-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin: 0;
  padding: 26px 0;
  list-style: none;
}

.award {
  display: flex;
  align-items: center;
  gap: 14px;
}

.award-icon {
  display: grid;
  flex-shrink: 0;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--cedar-800);
  color: var(--gold-light);
}

.award-icon .icon {
  width: 20px;
  height: 20px;
}

.award strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.08rem;
  font-weight: 600;
  line-height: 1.25;
}

.award span {
  color: var(--ink-soft);
  font-size: 0.88rem;
}

@media (max-width: 900px) {
  .awards-list {
    grid-template-columns: 1fr;
    gap: 16px;
  }
}

/* ---------- Sections and layouts ---------- */

.section {
  position: relative;
  padding: var(--section-y) 0;
}

.section--stone {
  background: var(--stone-100);
}

.section--dark {
  background: var(--cedar-800);
}

.section-head {
  max-width: 680px;
  margin: 0 auto clamp(36px, 5vw, 56px);
  text-align: center;
}

.section-head .eyebrow::after {
  content: '';
  width: 28px;
  height: 1px;
  background: currentColor;
}

.section-head .lead {
  margin: 0 auto;
}

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(40px, 6vw, 96px);
  align-items: center;
}

.split--media-right > .media {
  order: 2;
}

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

  .split--media-right > .media {
    order: 0;
  }

  .split > .media {
    width: min(100%, 460px);
    margin: 0 auto;
  }
}

/* An arch-shaped photo with a thin gold outline around it. */
.framed {
  position: relative;
  margin: 14px;
}

.framed::after {
  content: '';
  position: absolute;
  inset: -14px;
  border: 1px solid var(--gold);
  border-radius: 999px 999px 0 0;
  pointer-events: none;
}

.framed .arch {
  aspect-ratio: 4 / 5;
  box-shadow: var(--shadow);
}

.media-caption {
  margin: 26px 14px 0;
  color: var(--ink-soft);
  font-size: 0.9rem;
  font-style: italic;
}

.on-dark .media-caption {
  color: rgba(245, 239, 228, 0.7);
}

.quote {
  margin: 28px 0;
  padding: 4px 0 4px 22px;
  border-left: 3px solid var(--gold);
}

.quote p {
  margin-bottom: 8px;
  color: var(--cedar-800);
  font-family: var(--font-display);
  font-size: 1.45rem;
  font-style: italic;
  line-height: 1.35;
}

.quote cite {
  color: var(--ink-soft);
  font-size: 0.9rem;
  font-style: normal;
  font-weight: 600;
}

.on-dark .quote p {
  color: var(--cream);
}

.on-dark .quote cite {
  color: rgba(245, 239, 228, 0.7);
}

.ticks {
  display: grid;
  gap: 10px;
  margin: 0 0 28px;
  padding: 0;
  list-style: none;
}

.ticks li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.ticks .icon {
  width: 16px;
  height: 16px;
  margin-top: 5px;
  color: var(--cedar-600);
}

/* Dish lists: the "From the North" picks and the bar highlights. */
.dish-list {
  --rule: var(--line);
  --price: var(--terracotta);
  --desc: var(--ink-soft);
  margin: 28px 0 32px;
  padding: 0;
  border-top: 1px solid var(--rule);
  list-style: none;
}

.on-dark .dish-list {
  --rule: var(--line-light);
  --price: var(--gold-light);
  --desc: rgba(245, 239, 228, 0.75);
}

.dish {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 4px 20px;
  padding: 15px 0;
  border-bottom: 1px solid var(--rule);
}

.dish h3 {
  margin: 0;
  font-size: 1.22rem;
}

.dish-price {
  color: var(--price);
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 600;
}

.dish p {
  grid-column: 1 / -1;
  margin: 0;
  color: var(--desc);
  font-size: 0.95rem;
}

/* Three kibbeh arches with labels (Kibbeh country, home and Our Story). The middle one stands taller. */
.kibbeh-trio {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(12px, 1.8vw, 22px);
  align-items: end;
  padding-top: 8px;
}

.kibbeh-trio figure {
  margin: 0;
  text-align: center;
}

.kibbeh-trio .arch {
  aspect-ratio: 3 / 5;
  outline: 1px solid var(--gold);
  outline-offset: 6px;
  box-shadow: var(--shadow);
}

.kibbeh-trio figure:nth-child(2) .arch {
  aspect-ratio: 3 / 6;
}

.kibbeh-trio figcaption {
  margin-top: 18px;
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 600;
  line-height: 1.2;
}

.kibbeh-trio figcaption span {
  display: block;
  margin-top: 4px;
  color: var(--gold-light);
  font-family: var(--font-body);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

/* Two staggered arches (bar section). */
.duo {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  align-items: end;
}

.duo .arch {
  aspect-ratio: 3 / 5;
  box-shadow: var(--shadow);
}

.duo .arch:first-child {
  margin-bottom: 56px;
}

/* Full-width photo band with text on top. */
.band {
  position: relative;
  padding: clamp(80px, 12vw, 160px) 0;
  overflow: hidden;
  isolation: isolate;
  background: var(--cedar-950);
}

.band-media {
  position: absolute;
  inset: 0;
  z-index: -2;
}

.band-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.band::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(90deg, rgba(16, 33, 25, 0.94) 0%, rgba(16, 33, 25, 0.8) 45%, rgba(16, 33, 25, 0.3) 100%);
}

.band-content {
  max-width: 540px;
}

.courses {
  margin: 24px 0;
  padding: 0;
  list-style: none;
  counter-reset: course;
}

.courses li {
  display: flex;
  gap: 16px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line-light);
  counter-increment: course;
}

.courses li::before {
  content: counter(course);
  flex-shrink: 0;
  width: 1.2em;
  color: var(--gold-light);
  font-family: var(--font-display);
  font-size: 1.3rem;
  line-height: 1.3;
}

.courses strong {
  display: block;
}

.courses span {
  color: rgba(245, 239, 228, 0.75);
  font-size: 0.95rem;
}

.prices {
  display: flex;
  gap: 36px;
  margin-bottom: 28px;
}

.prices div {
  display: flex;
  flex-direction: column;
}

.prices strong {
  color: var(--gold-light);
  font-family: var(--font-display);
  font-size: 2.1rem;
  font-weight: 600;
  line-height: 1.1;
}

.prices span {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.band-credit {
  margin-top: 22px;
  color: rgba(245, 239, 228, 0.7);
  font-size: 0.9rem;
}

/* Cards: dine in, take out, catering. */
.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--stone-50);
  box-shadow: 0 1px 0 var(--line), 0 14px 32px -20px rgba(16, 33, 25, 0.35);
}

.card-media {
  aspect-ratio: 4 / 3;
  overflow: hidden;
}

.card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.card-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 8px;
  padding: 24px 24px 28px;
}

.card-body h3 {
  margin: 0;
}

.card-body p {
  margin: 0 0 10px;
  color: var(--ink-soft);
}

.card-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: auto;
}

@media (max-width: 960px) {
  .cards {
    grid-template-columns: 1fr;
    max-width: 560px;
    margin: 0 auto;
  }
}

/* Visit: hours, address, map. */
.visit-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: clamp(32px, 5vw, 64px);
  align-items: start;
}

.hours-table {
  width: 100%;
  margin-bottom: 28px;
  border-collapse: collapse;
}

.hours-table th,
.hours-table td {
  padding: 11px 0;
  border-bottom: 1px solid var(--line);
  font-weight: 500;
  text-align: left;
}

.hours-table td {
  color: var(--ink-soft);
  font-variant-numeric: tabular-nums;
  text-align: right;
}

.hours-table .closed {
  color: rgba(92, 81, 70, 0.6);
}

.hours-table tr.is-today th,
.hours-table tr.is-today td {
  color: var(--cedar-700);
  font-weight: 700;
}

.hours-table tr.is-today th::after {
  content: 'Today';
  margin-left: 10px;
  padding: 3px 8px;
  border-radius: 999px;
  background: var(--cedar-700);
  color: var(--cream);
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  vertical-align: 2px;
}

.holiday-table th {
  font-weight: 600;
  white-space: nowrap;
}

.holiday-table .holiday-name {
  padding-left: 16px;
  color: var(--ink);
  text-align: left;
}

.holiday-table td:last-child {
  white-space: nowrap;
}

.fine-print {
  color: var(--ink-soft);
  font-size: 0.9rem;
}

.card-body .award-icon {
  margin-bottom: 8px;
}

.info-list {
  display: grid;
  gap: 16px;
  margin: 0 0 24px;
  padding: 0;
  list-style: none;
}

.info-list li {
  display: flex;
  gap: 14px;
}

.info-list .icon {
  width: 18px;
  height: 18px;
  margin-top: 4px;
  color: var(--terracotta);
}

.info-list strong {
  display: block;
}

.map {
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--stone-200);
  box-shadow: var(--shadow);
}

.visit-grid--map {
  align-items: center;
}

.visit-more {
  margin: 24px 0 0;
}

.map iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
}

.note {
  padding: 16px 18px;
  border-left: 3px solid var(--gold);
  border-radius: 10px;
  background: var(--stone-100);
  font-size: 0.95rem;
}

.note p:last-child {
  margin: 0;
}

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

/* ---------- Inner page headers ---------- */

.page-hero {
  position: relative;
  padding: clamp(56px, 8vw, 104px) 0 clamp(48px, 7vw, 88px);
  overflow: hidden;
  isolation: isolate;
  background: var(--cedar-900);
}

.page-hero h1 {
  max-width: 14em;
}

.page-hero .lead {
  margin-bottom: 0;
}

.page-hero .btn-row {
  margin-top: 30px;
}

.page-hero-media {
  position: absolute;
  inset: 0;
  z-index: -2;
}

.page-hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.page-hero--photo::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(90deg, rgba(16, 33, 25, 0.95) 0%, rgba(16, 33, 25, 0.82) 55%, rgba(16, 33, 25, 0.5) 100%);
}

/* ---------- Story page ---------- */

.village-card {
  position: relative;
  padding: 48px 32px 36px;
  border-radius: 999px 999px var(--radius) var(--radius);
  background: var(--cedar-800);
  color: var(--cream);
  text-align: center;
}

.village-card .cedar {
  display: block;
  width: 150px;
  height: 108px;
  margin: 0 auto 18px;
  color: var(--gold-light);
}

.village-card h3 {
  margin: 0;
  font-size: 2rem;
}

.village-card .arabic {
  margin: 4px 0 2px;
  font-size: 1.6rem;
}

.village-card p {
  margin: 0;
  color: rgba(245, 239, 228, 0.75);
}

.facts {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  margin-top: 28px;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--line-light);
  text-align: left;
}

.fact {
  padding: 18px 20px;
  background: var(--cedar-700);
}

.fact strong {
  display: block;
  color: var(--gold-light);
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 600;
  line-height: 1.15;
}

.fact span {
  color: rgba(245, 239, 228, 0.78);
  font-size: 0.88rem;
}

/* Mosaic: tall photos on the ends (1st and 3rd), the team photo wide on top, two small ones below it. */
.gallery {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: clamp(150px, 19vw, 240px);
  gap: 16px;
  margin: clamp(48px, 7vw, 80px) 0 0;
}

.gallery figure {
  margin: 0;
}

.gallery figure:nth-child(1),
.gallery figure:nth-child(3) {
  grid-row: span 2;
}

.gallery figure:nth-child(2) {
  grid-column: span 2;
}

.gallery .photo {
  height: 100%;
  overflow: hidden;
  border-radius: var(--radius);
}

.gallery img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

@media (max-width: 760px) {
  .gallery {
    grid-template-columns: 1fr 1fr;
    grid-auto-rows: clamp(120px, 40vw, 180px);
    gap: 12px;
  }

  .gallery figure:nth-child(2) {
    order: -1;
  }
}

.cta-band {
  padding: clamp(56px, 8vw, 96px) 0;
  background: var(--cedar-900);
  text-align: center;
}

/* Light version, for pages where the band would otherwise follow a dark section. */
.cta-band--light {
  background: var(--stone-100);
}

.cta-band h2 {
  margin-bottom: 12px;
}

.cta-band .lead {
  margin: 0 auto 28px;
}

.cta-band .btn-row {
  justify-content: center;
}

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

.menu-tools {
  position: sticky;
  top: var(--header-h);
  z-index: 30;
  background: rgba(251, 248, 242, 0.97);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.menu-cats {
  position: relative;
  display: flex;
  gap: 6px;
  padding: 12px var(--gutter);
  overflow-x: auto;
  scrollbar-width: none;
}

.menu-cats::-webkit-scrollbar {
  display: none;
}

.menu-cats a {
  flex-shrink: 0;
  padding: 8px 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--stone-50);
  color: var(--ink-soft);
  font-size: 0.92rem;
  font-weight: 600;
  text-decoration: none;
}

.menu-cats a:hover,
.menu-cats a.is-active {
  border-color: var(--cedar-800);
  background: var(--cedar-800);
  color: var(--cream);
}

.menu-filters {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 14px;
  padding-top: 28px;
}

.menu-filters .label {
  font-weight: 700;
}

.filter-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border: 1px solid var(--stone-300);
  border-radius: 999px;
  background: var(--stone-50);
  color: var(--ink);
  font: inherit;
  font-size: 0.92rem;
  font-weight: 600;
  cursor: pointer;
}

.filter-btn[aria-pressed='true'] {
  border-color: var(--terracotta);
  background: var(--terracotta);
  color: #fff;
}

.legend {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  margin-left: auto;
  color: var(--ink-soft);
  font-size: 0.88rem;
}

.legend span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.filter-status {
  width: 100%;
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.92rem;
}

.tag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  min-width: 28px;
  height: 20px;
  padding: 0 7px;
  border-radius: 999px;
  font-size: 0.66rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  line-height: 1;
  white-space: nowrap;
}

.tag-gf {
  background: #ece7c9;
  color: #5a4b12;
}

.tag-v {
  background: #d8eadb;
  color: #1f5a33;
}

.tag-award {
  background: var(--terracotta);
  color: #fff;
}

.menu-section {
  padding: 56px 0 8px;
  scroll-margin-top: calc(var(--header-h) + 60px);
}

.menu-section-head h2 {
  margin: 0;
  font-size: clamp(1.9rem, 3.5vw, 2.6rem);
}

.menu-note {
  max-width: 46em;
  margin: 8px 0 0;
  color: var(--ink-soft);
  font-size: 0.95rem;
}

.menu-photo {
  aspect-ratio: 21 / 8;
  margin: 24px 0 0;
  overflow: hidden;
  border-radius: var(--radius);
}

.menu-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Photos side by side above a menu section: two by default, or three/four with a modifier. */
.menu-photos {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin: 24px 0 0;
}

.menu-photos--three {
  grid-template-columns: repeat(3, 1fr);
}

.menu-photos--four {
  grid-template-columns: repeat(4, 1fr);
}

@media (max-width: 900px) {
  .menu-photos--four {
    grid-template-columns: 1fr 1fr;
  }
}

.menu-photos figure {
  margin: 0;
}

.menu-photos .menu-photo {
  aspect-ratio: 4 / 3;
  margin: 0;
}

.menu-photos figcaption {
  margin-top: 8px;
  color: var(--ink-soft);
  font-size: 0.88rem;
  font-style: italic;
}

@media (max-width: 560px) {
  .menu-photos,
  .menu-photos--three {
    grid-template-columns: 1fr;
  }

  /* Four stay two across on phones, so the section doesn't turn into a long photo scroll. */
  .menu-photos--four {
    grid-template-columns: 1fr 1fr;
    gap: 10px;
  }
}

.menu-sub {
  margin: 36px 0 0;
  color: var(--cedar-600);
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.menu-items {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 56px;
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
}

.menu-item {
  padding: 15px 0;
  border-bottom: 1px dashed var(--stone-300);
}

.menu-item-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 6px 10px;
}

.menu-item h3 {
  margin: 0;
  font-size: 1.1rem;
}

.menu-item .tags {
  display: inline-flex;
  gap: 4px;
  transform: translateY(-2px);
}

.menu-item .price {
  margin-left: auto;
  color: var(--terracotta);
  font-family: var(--font-display);
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.menu-item p {
  margin: 4px 0 0;
  color: var(--ink-soft);
  font-size: 0.94rem;
  line-height: 1.5;
}

.menu-item.is-hidden,
.menu-section.is-hidden {
  display: none;
}

.menu-empty {
  padding: 48px 0;
  color: var(--ink-soft);
  text-align: center;
}

.special-box {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 32px;
  margin-top: 24px;
  padding: clamp(28px, 4vw, 44px);
  border-radius: var(--radius);
  background: var(--cedar-800);
}

.special-box .courses {
  margin: 0;
}

.special-box .prices {
  margin: 0 0 18px;
}

.menu-footnote {
  margin: 64px 0 0;
  padding: 18px 20px;
  border-radius: 12px;
  background: var(--stone-100);
  color: var(--ink-soft);
  font-size: 0.92rem;
}

@media (max-width: 760px) {
  .menu-items {
    grid-template-columns: 1fr;
  }

  .special-box {
    grid-template-columns: 1fr;
  }

  .legend {
    margin-left: 0;
  }
}

/* ---------- Contact page and form ---------- */

.contact-grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: clamp(32px, 5vw, 64px);
  align-items: start;
}

.contact-card {
  margin-bottom: 18px;
  padding: 26px;
  border-radius: var(--radius);
  background: var(--stone-100);
}

.contact-card h2 {
  margin-bottom: 8px;
  font-size: 1.35rem;
}

.contact-card p {
  color: var(--ink-soft);
}

.contact-card p:last-child {
  margin-bottom: 0;
}

.big-phone {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
  color: var(--cedar-800);
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3vw, 1.9rem);
  font-weight: 600;
  text-decoration: none;
}

.big-phone .icon {
  width: 0.8em;
  height: 0.8em;
  color: var(--terracotta);
}

.form-card {
  padding: clamp(24px, 4vw, 40px);
  border-top: 6px solid var(--cedar-700);
  border-radius: 18px;
  background: #fff;
  box-shadow: var(--shadow);
  scroll-margin-top: calc(var(--header-h) + 16px);
}

.form-card > h2 {
  margin-bottom: 6px;
  font-size: clamp(1.6rem, 3vw, 2.1rem);
}

.form-card > p {
  color: var(--ink-soft);
}

.form-note {
  display: flex;
  gap: 10px;
  margin-bottom: 22px;
  padding: 12px 14px;
  border-radius: 10px;
  background: var(--stone-100);
  color: var(--ink-soft);
  font-size: 0.92rem;
}

.form-note .icon {
  margin-top: 4px;
  color: var(--terracotta);
}

.field {
  display: grid;
  gap: 6px;
  margin: 0 0 18px;
}

.field label,
.field legend {
  font-size: 0.95rem;
  font-weight: 700;
}

.field .hint {
  color: var(--ink-soft);
  font-size: 0.85rem;
  font-weight: 500;
}

.field input,
.field textarea {
  width: 100%;
  min-height: 50px;
  padding: 12px 14px;
  border: 1.5px solid var(--stone-300);
  border-radius: 10px;
  background: var(--stone-50);
  color: var(--ink);
  font: inherit;
}

.field textarea {
  min-height: 150px;
  resize: vertical;
}

.field input:focus,
.field textarea:focus {
  border-color: var(--cedar-600);
  outline: none;
  background: #fff;
  box-shadow: 0 0 0 4px rgba(46, 90, 64, 0.15);
}

.field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 16px;
}

.topics {
  margin: 0 0 18px;
  padding: 0;
  border: 0;
}

.topics legend {
  margin-bottom: 10px;
  padding: 0;
}

.topic-options {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.topic {
  position: relative;
}

.topic input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.topic span {
  display: inline-block;
  padding: 10px 16px;
  border: 1.5px solid var(--stone-300);
  border-radius: 999px;
  background: var(--stone-50);
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
}

.topic input:checked + span {
  border-color: var(--cedar-800);
  background: var(--cedar-800);
  color: var(--cream);
}

.topic input:focus-visible + span {
  outline: 3px solid var(--gold);
  outline-offset: 2px;
}

.field-error {
  display: none;
  color: #b03a2e;
  font-size: 0.85rem;
  font-weight: 600;
}

.was-validated .field input:invalid,
.was-validated .field textarea:invalid {
  border-color: #b03a2e;
}

.was-validated :invalid ~ .field-error {
  display: block;
}

/* Honeypot: hidden from people, bots fill it in. */
.hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

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

  .form-card {
    order: -1;
  }
}

@media (max-width: 560px) {
  .field-row {
    grid-template-columns: 1fr;
  }
}

/* ---------- Form result page (form-to-email.php) ---------- */

.result {
  min-height: calc(100vh - var(--header-h) - 80px);
  padding: clamp(48px, 8vw, 100px) 0;
  background: var(--stone-100);
}

.result-card {
  max-width: 620px;
  margin: 0 auto;
  overflow: hidden;
  border-radius: 20px;
  background: #fff;
  box-shadow: var(--shadow);
  text-align: center;
}

.result-top {
  padding: 40px 32px 34px;
  background: var(--cedar-800);
}

.result--error .result-top {
  background: #6e2a1c;
}

.result-icon {
  display: grid;
  place-items: center;
  width: 76px;
  height: 76px;
  margin: 0 auto 18px;
  border: 1px solid rgba(227, 201, 135, 0.5);
  border-radius: 50%;
  background: rgba(245, 239, 228, 0.08);
  color: var(--gold-light);
}

.result-icon svg {
  width: 30px;
  height: 30px;
}

.result-icon .cedar {
  width: 44px;
  height: 32px;
}

.result-top h1 {
  margin: 0;
  font-size: clamp(1.8rem, 4vw, 2.4rem);
}

.result-top .arabic {
  margin-bottom: 8px;
}

.result-body {
  padding: 32px;
}

.result-body p {
  color: var(--ink-soft);
}

.summary {
  margin: 0 0 24px;
  padding: 6px 20px;
  border-radius: 12px;
  background: var(--stone-100);
  text-align: left;
}

.summary div {
  display: flex;
  gap: 16px;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
}

.summary div:last-child {
  border-bottom: 0;
}

.summary dt {
  flex-shrink: 0;
  width: 90px;
  color: var(--ink-soft);
  font-size: 0.9rem;
  font-weight: 700;
}

.summary dd {
  margin: 0;
  overflow-wrap: anywhere;
}

.result-card .btn-row {
  justify-content: center;
}

@media (max-width: 480px) {
  .result-card .btn {
    width: 100%;
  }
}

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

.site-footer {
  padding: 72px 0 28px;
  background: var(--cedar-950);
  color: rgba(245, 239, 228, 0.78);
  font-size: 0.95rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr 1fr;
  gap: 40px;
}

.footer-logo {
  display: block;
  width: 150px;
  aspect-ratio: 837 / 773;
  margin-bottom: 18px;
  color: var(--cream);
}

.site-footer h2 {
  margin-bottom: 14px;
  color: var(--gold-light);
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.site-footer p {
  margin-bottom: 10px;
}

.site-footer a {
  color: var(--cream);
  text-decoration: none;
}

.site-footer a:hover {
  text-decoration: underline;
}

/* Sized to its content so the times don't run up against the next column. */
.footer-hours {
  display: grid;
  gap: 4px;
  width: fit-content;
  max-width: 100%;
  margin: 0;
  padding: 0;
  list-style: none;
}

.footer-hours li {
  display: flex;
  justify-content: space-between;
  gap: 34px;
}

.social {
  display: flex;
  gap: 10px;
  margin-top: 14px;
}

.social a {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line-light);
  border-radius: 50%;
}

.social a:hover {
  background: var(--cream);
  color: var(--cedar-900);
}

.social .icon {
  width: 18px;
  height: 18px;
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  margin-top: 56px;
  padding-top: 24px;
  border-top: 1px solid var(--line-light);
  font-size: 0.85rem;
}

.footer-bottom p {
  margin: 0;
}

.site-footer--slim {
  padding: 24px 0;
}

.site-footer--slim .footer-bottom {
  margin-top: 0;
  padding-top: 0;
  border-top: 0;
}

.footer-bottom .arabic {
  display: inline;
  margin: 0 6px 0 0;
  font-size: 1.25rem;
}

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

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

/* ---------- Scroll reveal (only when JavaScript runs) ---------- */

.js .reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.js .reveal.is-in {
  opacity: 1;
  transform: none;
}

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

  .js .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .btn,
  .text-link .icon {
    transition: none;
  }
}
