/* ==========================================================================
   Zoraiz Foods Website
   Organized as: tokens, base, components, sections, responsive.
   ========================================================================== */

/* Tokens */
:root {
  --cream: #f8f3ea;
  --cream-warm: #efe7da;
  --paper: #fffdf8;
  --brand: #0b2747;
  --brand-deep: #071a33;
  --brand-soft: #1f4d7a;
  --maroon: #8d211e;
  --maroon-deep: #5b1414;
  --maroon-soft: #b34a38;
  --maroon-tint: #f3e4dc;
  --ink: #101820;
  --ink-soft: #263544;
  --ink-dim: #6d7075;
  --line: #e0d2c6;
  --star: #d6a32a;
  --success: #2d8a4e;

  --site-max: 1180px;
  --radius-sm: 7px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --shadow-soft: 0 28px 70px -46px rgba(7, 26, 51, 0.66);
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 96px;
  overflow-x: hidden;
}

body {
  min-width: 320px;
  overflow-x: hidden;
  background: var(--cream);
  color: var(--ink);
  font-family: "Manrope", sans-serif;
  font-weight: 400;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

body.lightbox-open {
  overflow: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

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

.display {
  font-family: "Fraunces", serif;
  font-weight: 400;
  letter-spacing: 0;
}

.eyebrow {
  color: var(--maroon);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.container,
.hero-inner {
  width: min(100%, var(--site-max));
  margin: 0 auto;
}

/* Buttons */
.btn,
.nav-cta {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
  font-size: 0.88rem;
  font-weight: 700;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.btn {
  gap: 0.5rem;
  padding: 0.9rem 1.25rem;
}

.btn-primary,
.nav-cta {
  background: linear-gradient(135deg, var(--maroon), var(--maroon-deep));
  color: var(--paper);
}

.btn-primary:hover,
.nav-cta:hover {
  background: var(--maroon-deep);
}

.btn-ghost {
  border: 1px solid var(--maroon);
  color: var(--maroon);
}

.btn-ghost:hover {
  background: var(--maroon);
  color: var(--paper);
}

.btn:focus-visible,
.nav a:focus-visible,
.hero-dot:focus-visible,
.gal-item:focus-visible,
.lightbox button:focus-visible {
  outline: 3px solid rgba(141, 33, 30, 0.3);
  outline-offset: 3px;
}

/* Navigation */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 0.95rem 2rem;
  background: rgba(248, 243, 234, 0.96);
  border-bottom: 1px solid rgba(7, 26, 51, 0.1);
  box-shadow: 0 12px 30px -28px rgba(7, 26, 51, 0.45);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.logo {
  color: var(--brand);
  font-family: "Fraunces", serif;
  font-size: 1.35rem;
  font-weight: 600;
  white-space: nowrap;
}

.logo em {
  color: var(--maroon);
  font-style: italic;
}

.nav-links {
  display: flex;
  gap: 1.45rem;
  list-style: none;
}

.nav-links a {
  color: var(--ink-soft);
  font-size: 0.86rem;
  font-weight: 600;
}

.nav-links a:hover {
  color: var(--maroon);
}

.nav-cta {
  padding: 0.7rem 1.05rem;
  white-space: nowrap;
}

/* Hero */
.hero {
  padding: 2.2rem 2rem 3rem;
}

.hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 0.88fr) minmax(430px, 1.12fr);
  gap: 3.75rem;
  align-items: center;
}

.hero-text,
.hero-visual {
  min-width: 0;
}

.hero-badge {
  display: inline-flex;
  align-items: flex-start;
  gap: 0.65rem;
  margin-bottom: 1.35rem;
  padding: 0.45rem 0.85rem;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  color: var(--ink-soft);
  font-size: 0.8rem;
}

.hero-badge .dot {
  width: 6px;
  height: 6px;
  margin-top: 0.56em;
  border-radius: 999px;
  background: var(--success);
  box-shadow: 0 0 0 3px rgba(45, 138, 78, 0.18);
  flex: 0 0 auto;
}

.hero h1 {
  max-width: 600px;
  margin-bottom: 1.35rem;
  color: var(--brand-deep);
  font-size: 4.75rem;
  line-height: 1.04;
}

.hero-sub {
  max-width: 560px;
  margin-bottom: 1.65rem;
  color: var(--ink-soft);
  font-size: 1.04rem;
  line-height: 1.55;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
}

.stars,
.hero-badge-stars,
.review-stars {
  color: var(--star);
  letter-spacing: 0.12em;
}

.google-summary-right .label {
  margin-top: 0.15rem;
  color: var(--ink-dim);
  font-size: 0.82rem;
}

.hero-visual {
  position: relative;
  min-height: 520px;
  overflow: visible;
}

.hero-showcase {
  position: relative;
  min-height: 520px;
  height: 100%;
  overflow: hidden;
  background: var(--brand);
  border: 1px solid rgba(222, 214, 201, 0.95);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
}

.hero-showcase-main {
  position: relative;
  min-height: 520px;
  height: 100%;
  overflow: hidden;
  background: var(--cream-warm);
  border-radius: inherit;
}

.hero-showcase-main img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.hero-slide {
  opacity: 0;
  transition: opacity 1s ease;
}

.hero-slide.is-active {
  opacity: 1;
}

.hero-showcase-main::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(180deg, transparent 46%, rgba(7, 26, 51, 0.44) 70%, rgba(75, 17, 18, 0.72) 100%);
  pointer-events: none;
}

.hero-showcase-caption {
  position: absolute;
  right: 8rem;
  bottom: 1.25rem;
  left: 1.65rem;
  z-index: 2;
  color: var(--paper);
}

.hero-showcase-caption span {
  display: block;
  margin-bottom: 0.1rem;
  color: var(--cream-warm);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.hero-showcase-caption strong {
  display: block;
  max-width: 420px;
  font-family: "Manrope", sans-serif;
  font-size: 0.95rem;
  font-weight: 800;
  line-height: 1.35;
}

.hero-showcase-badge {
  position: absolute;
  top: 1.1rem;
  right: 1.1rem;
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.55rem 0.7rem;
  background: rgba(7, 26, 51, 0.92);
  border: 1px solid rgba(255, 253, 248, 0.16);
  border-radius: var(--radius-sm);
  color: var(--paper);
  font-size: 0.74rem;
  font-weight: 800;
  box-shadow: 0 16px 35px -26px rgba(7, 26, 51, 0.9);
}

.hero-badge-stars {
  font-size: 0.72rem;
  line-height: 1;
}

.hero-carousel-dots {
  position: absolute;
  right: 1.35rem;
  bottom: 1.35rem;
  z-index: 3;
  display: flex;
  gap: 0.38rem;
}

.hero-dot {
  width: 1.55rem;
  height: 0.28rem;
  padding: 0;
  background: rgba(255, 253, 248, 0.42);
  border: 0;
  border-radius: 999px;
  cursor: pointer;
}

.hero-dot.is-active {
  background: var(--paper);
}

/* Shared sections */
section {
  padding: 2.45rem 2rem 3.15rem;
}

.menu,
.gallery,
.reviews {
  border-top: 1px solid rgba(222, 214, 201, 0.75);
}

.section-head {
  margin-bottom: 1.45rem;
}

.section-head-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 2rem;
  align-items: start;
}

.menu .section-head-inner,
.gallery .section-head-inner,
.reviews .section-head-inner {
  display: block;
}

.section-head h2 {
  max-width: 760px;
  margin-top: 0.55rem;
  color: var(--brand-deep);
  font-size: 3.25rem;
  line-height: 1.08;
}

.section-head-lead {
  max-width: 380px;
  padding-top: 1.25rem;
  color: var(--ink-dim);
  font-size: 0.98rem;
}

/* Menu */
.menu-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.8rem;
  margin-top: 0.5rem;
}

.menu-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 1.25rem;
  background: linear-gradient(135deg, var(--paper), #fff8f1);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  box-shadow: inset 3px 0 0 rgba(141, 33, 30, 0.48);
}

.menu-row:hover {
  background: #fff7ef;
}

.menu-dish {
  color: var(--brand-deep);
  font-family: "Fraunces", serif;
  font-size: 1.25rem;
}

.menu-dish em {
  color: var(--maroon);
  font-style: italic;
}

.menu-desc {
  max-width: 340px;
  margin-top: 0.2rem;
  color: var(--ink-dim);
  font-size: 0.84rem;
}

.menu-badge {
  padding: 0.3rem 0.65rem;
  border: 1px solid rgba(141, 33, 30, 0.32);
  border-radius: 5px;
  background: rgba(141, 33, 30, 0.06);
  color: var(--maroon);
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  white-space: nowrap;
}

/* Gallery */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  grid-auto-flow: dense;
  grid-auto-rows: 145px;
  gap: 0.65rem;
  margin-top: 0.15rem;
}

.gal-item {
  position: relative;
  display: block;
  width: 100%;
  min-height: 0;
  padding: 0;
  overflow: hidden;
  appearance: none;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  color: inherit;
  cursor: zoom-in;
  font: inherit;
  text-align: left;
}

.gal-feature {
  grid-column: span 2;
  grid-row: span 2;
}

.gal-wide {
  grid-column: span 2;
}

.gal-tall {
  grid-row: span 2;
}

.gal-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform 0.25s ease;
}

.gal-item:hover img,
.gal-item:focus-visible img {
  transform: scale(1.015);
}

.gal-item::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 42%, rgba(75, 17, 18, 0.82) 100%);
}

.gal-caption {
  position: absolute;
  right: 1rem;
  bottom: 0.95rem;
  left: 1rem;
  z-index: 2;
  color: var(--paper);
  font-family: "Fraunces", serif;
  font-size: 1rem;
}

/* Lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 300;
  display: grid;
  grid-template-columns: 52px minmax(0, auto) 52px;
  gap: 1rem;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  background: rgba(75, 17, 18, 0.9);
  opacity: 0;
  pointer-events: none;
  visibility: hidden;
  transition: opacity 0.2s ease, visibility 0.2s ease;
}

.lightbox.is-open {
  opacity: 1;
  pointer-events: auto;
  visibility: visible;
}

.lightbox-frame {
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: visible;
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

.lightbox-img {
  width: auto;
  max-width: min(86vw, 1180px);
  max-height: 86vh;
  object-fit: contain;
  background: transparent;
  border-radius: var(--radius-md);
  box-shadow: 0 30px 90px -40px rgba(0, 0, 0, 0.9);
}

.lightbox-caption {
  display: none;
}

.lightbox-close,
.lightbox-nav {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  background: rgba(255, 253, 248, 0.96);
  border: 1px solid rgba(255, 253, 248, 0.34);
  border-radius: 999px;
  color: var(--brand);
  cursor: pointer;
  font-family: "Manrope", sans-serif;
  font-weight: 800;
}

.lightbox-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 44px;
  height: 44px;
  font-size: 1.5rem;
  line-height: 1;
}

.lightbox-nav {
  width: 48px;
  height: 48px;
  font-size: 1.85rem;
}

/* Reviews */
.reviews-top {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 2rem;
  margin-bottom: 2.5rem;
  flex-wrap: wrap;
}

.google-summary {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  padding: 1.1rem 1.45rem;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
}

.google-summary svg {
  width: 32px;
  height: 32px;
  flex: 0 0 auto;
}

.google-summary-num {
  color: var(--brand);
  font-family: "Fraunces", serif;
  font-size: 2.2rem;
  line-height: 1;
}

.reviews-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.5rem;
  margin-top: 0.5rem;
}

.review {
  display: flex;
  min-height: 270px;
  flex-direction: column;
  padding: 1.6rem;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
}

.review-stars {
  margin-bottom: 1.15rem;
  font-size: 0.9rem;
}

.review-quote {
  flex: 1;
  margin-bottom: 1.8rem;
  color: var(--brand-deep);
  font-family: "Fraunces", serif;
  font-size: 1.05rem;
  font-weight: 500;
  line-height: 1.5;
}

.review-author {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  margin-top: auto;
  padding-top: 1.2rem;
  border-top: 1px solid var(--line);
}

.author-avatar {
  display: flex;
  width: 38px;
  height: 38px;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  border-radius: 999px;
  background: var(--brand);
  color: var(--paper);
  font-family: "Fraunces", serif;
  font-size: 1rem;
  font-weight: 500;
}

.author-name {
  color: var(--brand-deep);
  font-size: 0.9rem;
  font-weight: 700;
}

.author-meta {
  margin-top: 0.1rem;
  color: var(--ink-dim);
  font-size: 0.75rem;
}

/* Footer */
footer {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  background: var(--cream);
  border-top: 1px solid rgba(222, 214, 201, 0.75);
  color: var(--ink-dim);
  text-align: center;
}

.footer-note {
  font-size: 0.82rem;
}

.footer-note em {
  color: var(--brand);
  font-family: "Fraunces", serif;
  font-style: italic;
}

/* Responsive */
@media (max-width: 1000px) {
  .hero-inner {
    grid-template-columns: 1fr;
  }

  .hero h1 {
    font-size: 4rem;
  }

  .hero-showcase {
    min-height: 500px;
    max-width: 680px;
  }

  .hero-visual,
  .hero-showcase-main {
    min-height: 500px;
  }

  .section-head-inner {
    grid-template-columns: 1fr;
  }

  .gallery-grid,
  .reviews-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .gallery-grid {
    grid-auto-rows: 160px;
  }
}

@media (max-width: 760px) {
  html {
    scroll-padding-top: 104px;
  }

  .nav,
  .hero,
  section,
  footer {
    max-width: 100vw;
    overflow-x: hidden;
  }

  .nav {
    display: grid;
    grid-template-columns: 1fr;
    align-items: center;
    flex-wrap: initial;
    gap: 0.8rem;
    padding: 0.8rem 1rem 0.72rem;
  }

  .logo {
    grid-column: 1;
    grid-row: 1;
  }

  .nav-links {
    grid-row: 2;
    grid-column: 1;
    width: 100%;
    justify-content: flex-start;
    gap: 1.2rem;
    overflow-x: auto;
    padding: 0.1rem 0 0;
    scrollbar-width: none;
  }

  .nav-links::-webkit-scrollbar {
    display: none;
  }

  .nav-links a {
    white-space: nowrap;
  }

  .nav-cta {
    display: none;
  }

  .hero {
    padding: 1.15rem 1rem 2rem;
  }

  .hero-inner,
  .container {
    width: min(100%, calc(100vw - 2.5rem));
    max-width: calc(100vw - 2.5rem);
  }

  section {
    padding: 1.6rem 1rem 2.25rem;
  }

  .hero h1 {
    font-size: clamp(2.45rem, 11vw, 2.85rem);
  }

  .hero-sub {
    max-width: 100%;
    font-size: 1rem;
  }

  .hero-badge {
    max-width: 100%;
  }

  .hero-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .btn {
    width: 100%;
  }

  .hero-showcase {
    min-height: 0;
  }

  .hero-visual,
  .hero-showcase-main {
    min-height: 0;
  }

  .hero-showcase-main {
    height: auto;
    aspect-ratio: 4 / 3;
  }

  .hero-showcase-caption {
    right: 0.8rem;
    bottom: 2.35rem;
    left: 0.8rem;
  }

  .hero-showcase-caption strong {
    font-size: 0.85rem;
  }

  .hero-showcase-badge {
    display: none;
  }

  .hero-carousel-dots {
    right: auto;
    bottom: 1rem;
    left: 0.8rem;
  }

  .section-head {
    margin-bottom: 1.1rem;
  }

  .section-head h2 {
    margin-top: 0.4rem;
    font-size: clamp(2rem, 10vw, 2.35rem);
  }

  .section-head-lead {
    padding-top: 0;
  }

  .menu-grid,
  .gallery-grid,
  .reviews-grid {
    grid-template-columns: 1fr;
  }

  .gallery-grid {
    grid-auto-rows: auto;
  }

  .menu-row {
    flex-direction: column;
    gap: 0.85rem;
  }

  .menu-badge {
    align-self: flex-start;
  }

  .gal-item {
    aspect-ratio: 4 / 3;
  }

  .gal-feature,
  .gal-wide,
  .gal-tall {
    grid-column: auto;
    grid-row: auto;
  }

  footer {
    padding: 0.95rem 1rem;
  }

  .lightbox {
    grid-template-columns: 1fr;
    padding: 1rem;
  }

  .lightbox-img {
    max-width: 100%;
    max-height: 84vh;
  }

  .lightbox-nav {
    position: absolute;
    top: 50%;
    width: 44px;
    height: 44px;
    transform: translateY(-50%);
    font-size: 1.6rem;
  }

  .lightbox-prev {
    left: 0.75rem;
  }

  .lightbox-next {
    right: 0.75rem;
  }

}

@media (max-width: 420px) {
  .logo {
    font-size: 1.2rem;
  }

  .hero h1 {
    font-size: 2.6rem;
  }

  .hero-badge {
    align-items: flex-start;
  }

  .section-head h2 {
    font-size: 2.15rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}
