/* RiCE Persian Kitchen — modernised landing page
   Brand: saffron orange + warm black + green accent, warm cream backdrop.
   Type: Fraunces (display) + Inter (UI). */

:root {
  --bg: #FAF6EF;
  --bg-soft: #F2ECDF;
  --ink: #141210;
  --ink-soft: #4A4540;
  --ink-mute: #7A736B;
  --rule: #E5DDCC;
  --saffron: #F08A1F;
  --saffron-deep: #D9731A;
  --pistachio: #6BAA3E;
  --shadow-sm: 0 1px 2px rgba(20,18,16,.05), 0 2px 8px rgba(20,18,16,.04);
  --shadow-md: 0 6px 24px rgba(20,18,16,.08), 0 2px 6px rgba(20,18,16,.05);
  --shadow-lg: 0 24px 48px rgba(20,18,16,.18);
  --radius: 14px;
  --radius-lg: 22px;
  --container: 1180px;
  --header-h: 84px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
html, body { margin: 0; padding: 0; }
body {
  background: var(--bg);
  color: var(--ink);
  font: 16px/1.6 "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

.wrap {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- Type ---------- */
h1, h2, h3 {
  font-family: "Fraunces", "Cormorant Garamond", Georgia, serif;
  font-weight: 500;
  letter-spacing: -0.01em;
  line-height: 1.1;
  margin: 0;
  color: var(--ink);
}
h1 { font-size: clamp(2.4rem, 5.5vw, 4.5rem); font-weight: 500; }
h2 { font-size: clamp(1.9rem, 3.5vw, 2.9rem); }
h3 { font-size: 1.35rem; }
h1 em, h2 em { font-style: italic; color: var(--saffron-deep); font-weight: 400; }
p { margin: 0 0 1em; color: var(--ink-soft); }
.eyebrow {
  font-family: "Inter", sans-serif;
  font-size: 0.78rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--saffron-deep);
  font-weight: 600;
  margin: 0 0 0.9rem;
}
.eyebrow-light { color: #FFC78C; }
.lede {
  font-size: 1.12rem;
  color: var(--ink-soft);
  max-width: 38em;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.85rem 1.4rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  line-height: 1;
  letter-spacing: 0.01em;
  border: 1.5px solid transparent;
  transition: transform .15s ease, background .2s ease, color .2s ease, border-color .2s ease, box-shadow .2s ease;
  cursor: pointer;
  white-space: nowrap;
}
.btn-lg { padding: 1.05rem 1.7rem; font-size: 1rem; }
.btn-primary {
  background: var(--saffron);
  color: #fff;
  box-shadow: 0 8px 18px rgba(240,138,31,.32);
}
.btn-primary:hover { background: var(--saffron-deep); transform: translateY(-1px); }
.btn-ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--rule);
}
.btn-ghost:hover { border-color: var(--ink); }
.btn-outline {
  background: transparent;
  color: var(--ink);
  border-color: var(--ink);
}
.btn-outline:hover { background: var(--ink); color: #fff; }
.btn-outline-light {
  background: transparent;
  color: #fff;
  border-color: rgba(255,255,255,.6);
}
.btn-outline-light:hover { background: #fff; color: var(--ink); }

.link-arrow {
  display: inline-block;
  font-weight: 600;
  color: var(--saffron-deep);
  font-size: 0.95rem;
  border-bottom: 1px solid transparent;
  transition: border-color .2s, transform .2s;
}
.link-arrow:hover { border-bottom-color: currentColor; }

/* ---------- Header ---------- */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  padding: 18px 0;
  transition: background .25s ease, box-shadow .25s ease, padding .25s ease, backdrop-filter .25s ease;
}
.site-header.scrolled {
  background: rgba(20,18,16,0.92);
  backdrop-filter: saturate(140%) blur(10px);
  box-shadow: 0 4px 20px rgba(0,0,0,.18);
  padding: 10px 0;
}
.site-header.scrolled .nav a,
.site-header.scrolled .btn-ghost {
  color: #fff;
}
.site-header.scrolled .btn-ghost { border-color: rgba(255,255,255,.4); }
.site-header.scrolled .btn-ghost:hover { border-color: #fff; }

.header-inner {
  display: flex;
  align-items: center;
  gap: 2rem;
}
.brand img {
  height: 44px;
  width: auto;
  transition: height .25s ease, filter .25s ease;
  /* Soft shadow so the wordmark sits naturally over the hero photo */
  filter: drop-shadow(0 1px 2px rgba(0,0,0,.35)) drop-shadow(0 4px 18px rgba(0,0,0,.25));
}
.site-header.scrolled .brand img {
  height: 36px;
  filter: none;
}
.site-footer .brand img { filter: none; }

.nav {
  display: flex;
  gap: 2rem;
  margin-left: 2rem;
}
.nav a {
  font-size: 0.95rem;
  font-weight: 500;
  color: #fff;
  text-shadow: 0 1px 4px rgba(0,0,0,.55);
  position: relative;
  padding: 0.3rem 0;
  transition: color .2s;
}
.nav a::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -2px;
  height: 2px;
  background: var(--saffron);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .25s ease;
}
.nav a:hover::after { transform: scaleX(1); }
.site-header.scrolled .nav a { text-shadow: none; }

.header-cta {
  margin-left: auto;
  display: flex;
  gap: 0.6rem;
}
.site-header:not(.scrolled) .btn-ghost {
  color: #fff;
  border-color: rgba(255,255,255,.5);
  background: rgba(0,0,0,.18);
  backdrop-filter: blur(4px);
}
.site-header:not(.scrolled) .btn-ghost:hover { border-color: #fff; background: rgba(0,0,0,.35); }

.nav-toggle {
  display: none;
  margin-left: auto;
  width: 44px;
  height: 44px;
  background: rgba(0,0,0,.35);
  border: 0;
  border-radius: 999px;
  padding: 0;
  cursor: pointer;
  position: relative;
}
.nav-toggle span {
  display: block;
  position: absolute;
  left: 11px; right: 11px;
  height: 2px;
  background: #fff;
  border-radius: 2px;
  transition: transform .25s, opacity .2s, top .25s;
}
.nav-toggle span:nth-child(1) { top: 15px; }
.nav-toggle span:nth-child(2) { top: 21px; }
.nav-toggle span:nth-child(3) { top: 27px; }
body.nav-open .nav-toggle span:nth-child(1) { top: 21px; transform: rotate(45deg); }
body.nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
body.nav-open .nav-toggle span:nth-child(3) { top: 21px; transform: rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: calc(var(--header-h) + 40px) 0 80px;
  color: #fff;
  overflow: hidden;
}
.hero-image {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  transform: scale(1.04);
  animation: heroPan 18s ease-in-out infinite alternate;
}
@keyframes heroPan {
  from { transform: scale(1.04) translate3d(0,0,0); }
  to   { transform: scale(1.1)  translate3d(0,-12px,0); }
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(20,18,16,.55) 0%, rgba(20,18,16,.35) 35%, rgba(20,18,16,.75) 100%);
}
.hero-content {
  position: relative;
  z-index: 2;
  max-width: 760px;
}
.hero-content .eyebrow { color: #FFC78C; }
.hero-content h1 { color: #fff; }
.hero-content h1 em { color: #FFB36B; }
.hero-content .lede { color: rgba(255,255,255,.92); margin: 1.2rem 0 2rem; font-size: 1.18rem; }
.hero-actions {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-bottom: 2.25rem;
}
.hero-actions .btn-outline {
  color: #fff;
  border-color: rgba(255,255,255,.7);
}
.hero-actions .btn-outline:hover { background: #fff; color: var(--ink); border-color: #fff; }
.hero-meta {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  font-size: 0.85rem;
  color: rgba(255,255,255,.85);
  letter-spacing: 0.04em;
}
.hero-meta > span:first-child { color: var(--saffron); letter-spacing: 0.15em; }

/* ---------- Story ---------- */
.story { padding: 120px 0; }
.story-grid {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 80px;
  align-items: center;
}
.story-image {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  aspect-ratio: 4 / 5;
}
.story-image img { width: 100%; height: 100%; object-fit: cover; }
.story-text h2 { margin-bottom: 1.25rem; }
.story-text p { font-size: 1.05rem; }
.story-signoff {
  margin-top: 1.5rem !important;
  padding-top: 1.5rem;
  border-top: 1px solid var(--rule);
  font-family: "Fraunces", serif;
  font-style: italic;
  font-size: 1.15rem;
  color: var(--ink);
}

/* ---------- Section heads ---------- */
.section-head { text-align: center; margin-bottom: 60px; }
.section-head .eyebrow { display: inline-block; }

/* ---------- Dishes ---------- */
.dishes {
  padding: 100px 0 120px;
  background: var(--bg-soft);
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
}
.dish-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}
.dish-card {
  background: #fff;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform .3s ease, box-shadow .3s ease;
  display: flex;
  flex-direction: column;
}
.dish-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.dish-photo {
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--bg-soft);
}
.dish-photo img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .6s ease;
}
.dish-card:hover .dish-photo img { transform: scale(1.05); }
.dish-body { padding: 28px 28px 32px; flex: 1; display: flex; flex-direction: column; }
.dish-body h3 { margin-bottom: 0.6rem; }
.dish-body p { font-size: 0.97rem; margin-bottom: 1.2rem; flex: 1; }

/* ---------- Gallery ---------- */
.gallery { padding: 110px 0 60px; }
.gallery-track {
  display: flex;
  gap: 20px;
  padding: 0 24px 40px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: thin;
  scrollbar-color: var(--rule) transparent;
}
.gallery-track::-webkit-scrollbar { height: 8px; }
.gallery-track::-webkit-scrollbar-thumb { background: var(--rule); border-radius: 4px; }
.gallery-track figure {
  flex: 0 0 min(420px, 80vw);
  margin: 0;
  border-radius: var(--radius);
  overflow: hidden;
  background: #000;
  scroll-snap-align: start;
  box-shadow: var(--shadow-sm);
  position: relative;
}
.gallery-track img {
  width: 100%;
  height: 280px;
  object-fit: cover;
  transition: transform .6s ease;
}
.gallery-track figure:hover img { transform: scale(1.04); }
.gallery-track figcaption {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 16px 18px 14px;
  font-family: "Fraunces", serif;
  font-size: 1.05rem;
  color: #fff;
  background: linear-gradient(180deg, transparent, rgba(0,0,0,.7));
}

/* ---------- Reserve / Visit hero ---------- */
.reserve {
  position: relative;
  padding: 140px 0;
  color: #fff;
  overflow: hidden;
}
.reserve-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
}
.reserve-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(20,18,16,.5), rgba(20,18,16,.78));
}
.reserve-content {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 720px;
  margin: 0 auto;
}
.reserve-content h2 { color: #fff; margin-bottom: 1rem; }
.reserve-content h2 em { color: #FFB36B; }
.reserve-content .lede { color: rgba(255,255,255,.88); margin: 0 auto 2rem; }
.reserve-actions {
  display: flex;
  gap: 0.75rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* ---------- Visit info ---------- */
.visit-info { padding: 100px 0; }
.visit-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 40px;
}
.visit-block { border-top: 1.5px solid var(--ink); padding-top: 20px; }
.visit-block .eyebrow { margin-bottom: 0.7rem; color: var(--ink-mute); }
.visit-line {
  font-family: "Fraunces", serif;
  font-size: 1.15rem;
  line-height: 1.45;
  color: var(--ink);
  margin: 0 0 1rem;
}
.visit-line strong { font-weight: 500; }
.visit-line a:hover { color: var(--saffron-deep); }
.socials { display: flex; flex-direction: column; gap: 0.3rem; font-size: 1.05rem; }
.socials a { transition: color .2s; }
.socials a:hover { color: var(--saffron-deep); }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--ink);
  color: #DDD3C2;
  padding: 50px 0;
}
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}
.site-footer .brand img { height: 40px; }
.footer-meta {
  margin: 0;
  font-size: 0.88rem;
  color: rgba(255,255,255,.55);
}

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .nav, .header-cta { display: none; }
  .nav-toggle { display: block; }
  body.nav-open .nav {
    display: flex;
    position: fixed;
    inset: 0;
    background: var(--ink);
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    z-index: 40;
    margin: 0;
  }
  body.nav-open .nav a {
    color: #fff;
    font-size: 1.6rem;
    font-family: "Fraunces", serif;
    text-shadow: none;
  }

  .story { padding: 80px 0; }
  .story-grid { grid-template-columns: 1fr; gap: 40px; }
  .story-image { aspect-ratio: 4 / 3; max-width: 560px; margin: 0 auto; }

  .dish-row { grid-template-columns: 1fr; gap: 24px; }
  .dishes { padding: 70px 0 90px; }

  .visit-grid { grid-template-columns: repeat(2, 1fr); gap: 32px; }

  .reserve { padding: 100px 0; }
  .gallery { padding: 80px 0 40px; }
  .gallery-track img { height: 220px; }
}

@media (max-width: 560px) {
  .hero { padding-top: calc(var(--header-h) + 20px); }
  .hero-actions { flex-direction: column; align-items: stretch; }
  .hero-actions .btn { width: 100%; }
  .visit-grid { grid-template-columns: 1fr; }
  .gallery-track figure { flex-basis: 86vw; }
  .gallery-track img { height: 200px; }
  .footer-inner { justify-content: center; text-align: center; }
}
