:root {
  --color-bg: #0A0A0A;
  --color-bg-alt: #1c1815;
  --color-text: #F5EFE6;
  --color-text-muted: #8b8177;
  --color-accent: #C62828;
  --color-accent-light: #E4C978;
  --color-sakura: #F48FB1;
  --font-display: "Yuji Syuku", serif;
  --font-body: "Work Sans", sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background-color: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-body);
}

a {
  text-decoration: none;
}

/* ---- Focus styles (keyboard navigation) ---- */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
  outline: 2px solid var(--color-accent-light);
  outline-offset: 3px;
}

/* ---- Header / nav ---- */
header {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  padding: 20px 40px;
  border-bottom: 3px solid var(--color-accent);
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: bold;
  color: var(--color-accent);
}

.logo-mark {
  height: 44px;
  width: 44px;
  object-fit: contain;
  border-radius: 6px;
}

nav {
  display: flex;
  align-items: center;
  gap: 24px;
}

nav a {
  color: var(--color-text);
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--color-text);
  cursor: pointer;
  padding: 6px;
}

/* "Book Now" call-to-action button in the nav */
.nav-cta {
  background-color: var(--color-accent);
  color: var(--color-text);
  padding: 8px 18px;
  border-radius: 3px;
  font-weight: bold;
  font-size: 14px;
}

.social-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border: 1px solid var(--color-accent-light);
  border-radius: 50%;
  color: var(--color-accent-light);
}

/* ---- Slider ---- */
.slider {
  position: relative;
  width: 100%;
  height: 60vh;
  overflow: hidden;
}

.slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 0.5s ease;
}

.slide.active {
  opacity: 1;
}

.slide-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.slider-dots {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 10px;
  z-index: 2;
}

.dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: 1px solid var(--color-accent-light);
  background: transparent;
  cursor: pointer;
  padding: 0;
  transition: background-color 0.3s ease;
}

.dot.active {
  background-color: var(--color-accent-light);
}

/* ---- Hero ---- */
.hero {
  text-align: center;
  padding: 120px 40px;
}

.tagline {
  color: var(--color-accent);
  letter-spacing: 3px;
  text-transform: uppercase;
  font-size: 14px;
}

.hero h1 {
  font-family: var(--font-display);
  font-size: 72px;
  margin: 10px 0;
}

.hero-text {
  color: var(--color-text-muted);
  max-width: 500px;
  margin: 0 auto 30px;
}

.btn {
  display: inline-block;
  background-color: var(--color-accent);
  color: var(--color-text);
  padding: 14px 32px;
  font-weight: bold;
  border-radius: 3px;
}

/* ---- About ---- */
.about {
  max-width: 700px;
  margin: 0 auto;
  padding: 100px 40px;
}

.about h2 {
  text-align: center;
  margin-bottom: 30px;
}

.about p {
  color: var(--color-text-muted);
  line-height: 1.8;
  margin-bottom: 16px;
}

/* ---- Shared page intro (menu / services / events / reserve) ---- */
.page-intro {
  text-align: center;
  padding: 80px 40px 40px;
  max-width: 700px;
  margin: 0 auto;
}

.page-intro h1 {
  font-family: var(--font-display);
  font-size: 48px;
  margin: 10px 0 20px;
}

.page-intro-text {
  color: var(--color-text-muted);
  line-height: 1.7;
}

/* ---- Menu packages ---- */
.packages {
  max-width: 1000px;
  margin: 0 auto;
  padding: 20px 40px 80px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 30px;
}

.package-card {
  background-color: var(--color-bg-alt);
  border-top: 3px solid var(--color-accent);
  padding: 28px;
  border-radius: 4px;
}

.package-card:last-child {
  grid-column: 1 / -1;
}

.package-head {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 16px;
}

.package-number {
  font-family: var(--font-display);
  font-size: 36px;
  color: var(--color-accent);
}

.package-name {
  font-size: 20px;
  margin: 0 0 4px;
}

.package-price {
  color: var(--color-accent-light);
  font-weight: bold;
}

.package-price small {
  color: var(--color-text-muted);
  font-weight: normal;
  font-size: 12px;
}

.package-items {
  list-style: none;
  padding: 0;
  margin: 0 0 16px;
  columns: 2;
}

.package-items li {
  padding: 6px 0;
  border-bottom: 1px solid rgba(228, 201, 120, 0.15);
  break-inside: avoid;
}

.package-note {
  color: var(--color-text-muted);
  font-size: 13px;
  font-style: italic;
  margin: 0;
}

/* ---- Sauces ---- */
.sauces {
  max-width: 900px;
  margin: 0 auto;
  padding: 40px 40px 100px;
  text-align: center;
}

.sauces h2 {
  margin-bottom: 10px;
}

.sauces-intro {
  color: var(--color-text-muted);
  margin-bottom: 30px;
}

.sauces-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.sauce-card {
  background-color: var(--color-bg-alt);
  border: 1px solid rgba(228, 201, 120, 0.25);
  padding: 24px;
  border-radius: 4px;
}

.sauce-card h3 {
  color: var(--color-accent-light);
  margin: 0;
  font-size: 16px;
}

/* ---- Shared call-to-action band ---- */
.menu-cta {
  text-align: center;
  padding: 60px 40px 100px;
}

.menu-cta p {
  color: var(--color-text-muted);
  margin-bottom: 20px;
  font-size: 18px;
}

/* ---- Services page ---- */
.services-list {
  max-width: 700px;
  margin: 0 auto;
  padding: 20px 40px 60px;
}

.services-list h2 {
  margin-bottom: 20px;
}

.check-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.check-list li {
  padding: 12px 0 12px 32px;
  border-bottom: 1px solid rgba(228, 201, 120, 0.15);
  color: var(--color-text-muted);
  position: relative;
}

.check-list li::before {
  content: "\2713";
  position: absolute;
  left: 0;
  color: var(--color-accent-light);
  font-weight: bold;
}

.check-list--placeholder li {
  color: var(--color-text);
  font-style: italic;
}

.check-list--placeholder li::before {
  content: "?";
  color: var(--color-accent);
}

/* ---- Events page: photo + video gallery ---- */
.events {
  padding: 40px 40px;
  max-width: 1100px;
  margin: 0 auto;
}

.events h2 {
  text-align: center;
  margin-bottom: 10px;
}

.events-intro {
  text-align: center;
  color: var(--color-text-muted);
  margin-bottom: 30px;
}

.photo-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.photo-grid-item {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 4px;
  display: block;
}

.video-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.video-grid-item {
  width: 100%;
  aspect-ratio: 16 / 9;
  background-color: #000;
  border-radius: 4px;
  object-fit: contain;
}

/* ---- Contact / reserve form ---- */
.contact {
  max-width: 500px;
  margin: 0 auto;
  padding: 20px 40px 100px;
}

.contact form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.contact label {
  display: block;
  font-size: 13px;
  color: var(--color-text-muted);
  text-transform: uppercase;
  margin-bottom: 6px;
}

.contact input,
.contact select,
.contact textarea {
  width: 100%;
  background-color: var(--color-bg);
  border: 1px solid rgba(228, 201, 120, 0.35);
  color: var(--color-text);
  padding: 12px 14px;
  border-radius: 4px;
  font-family: var(--font-body);
  font-size: 14px;
}

.contact button {
  background-color: var(--color-accent);
  color: var(--color-text);
  border: none;
  padding: 14px;
  border-radius: 3px;
  font-weight: bold;
  cursor: pointer;
}

.form-status {
  color: var(--color-accent-light);
  font-weight: bold;
  font-size: 14px;
  margin: 0;
}

/* ====================================================== */
/* Booking form (reserve.html) — 3-step wizard             */
/* ====================================================== */

/* hides an element visually but keeps it readable by screen readers
   and reachable by keyboard — used for the real radio inputs behind
   the chips / setup buttons / colour swatches */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.booking {
  max-width: 760px;
  margin: 0 auto;
  padding: 10px 40px 120px;
}

/* ---- Step indicator ---- */
.step-indicator {
  display: flex;
  justify-content: center;
  gap: 10px;
  padding-bottom: 20px;
  margin-bottom: 40px;
  border-bottom: 1px solid rgba(228, 201, 120, 0.25);
  flex-wrap: wrap;
}

.step-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border-radius: 20px;
  font-size: 13px;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--color-text-muted);
  background-color: var(--color-bg-alt);
}

.step-tag.active {
  background-color: var(--color-accent);
  color: var(--color-text);
  font-weight: bold;
}

.step-tag-num {
  font-family: var(--font-display);
}

/* ---- Step panels ---- */
.form-step h2 {
  font-size: 20px;
  margin: 0 0 6px;
}

.form-step-intro {
  color: var(--color-text-muted);
  font-size: 14px;
  margin: 0 0 28px;
}

.form-group {
  margin-bottom: 28px;
}

.form-group-label {
  display: block;
  font-size: 13px;
  color: var(--color-text-muted);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 10px;
}

.form-group-note {
  color: var(--color-text-muted);
  font-size: 12px;
  margin: 6px 0 0;
  font-style: italic;
}

.required-mark {
  color: var(--color-accent);
  margin-left: 2px;
}

/* ---- Text fields ---- */
.field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 28px;
}

.field label {
  display: block;
  font-size: 13px;
  color: var(--color-text-muted);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 8px;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  background-color: var(--color-bg);
  border: 1px solid rgba(228, 201, 120, 0.35);
  color: var(--color-text);
  padding: 12px 14px;
  border-radius: 4px;
  font-family: var(--font-body);
  font-size: 14px;
}

/* only turn a field's border red once our JS has flagged it as invalid —
   not automatically via :invalid, so empty fields don't look like errors
   before the visitor has even had a chance to fill them in */
.field.has-error input,
.field.has-error select {
  border-color: var(--color-accent);
}

/* ---- Comments / special requests (step 2) ---- */
.comments-field textarea {
  resize: vertical;
  min-height: 110px;
  max-width: 100%;
  line-height: 1.5;
}

.comments-field textarea::placeholder {
  color: var(--color-text-muted);
}

.comments-field textarea:focus {
  border-color: var(--color-accent-light);
}

.field-help {
  margin: -2px 0 10px;
  font-size: 13px;
  line-height: 1.5;
  color: var(--color-text-muted);
}

.char-counter {
  margin: 6px 0 0;
  font-size: 12px;
  text-align: right;
  color: var(--color-text-muted);
}

.char-counter.is-near-limit {
  color: var(--color-accent-light);
}

.field-error {
  display: block;
  color: var(--color-accent);
  font-size: 12px;
  margin-top: 6px;
  min-height: 15px;
}

/* ---- Chips (occasion) ---- */
.chip-group {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.chip-label {
  display: inline-flex;
  align-items: center;
  padding: 10px 18px;
  border-radius: 20px;
  border: 1px solid rgba(228, 201, 120, 0.35);
  color: var(--color-text);
  font-size: 14px;
  cursor: pointer;
  transition: background-color 0.2s ease, border-color 0.2s ease;
}

.chip-input:checked + .chip-label {
  background-color: var(--color-accent);
  border-color: var(--color-accent);
  font-weight: bold;
}

.chip-input:focus-visible + .chip-label {
  outline: 2px solid var(--color-accent-light);
  outline-offset: 2px;
}

.other-occasion-field {
  margin-top: 14px;
}

/* ---- Setup & linen buttons ---- */
.setup-group {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.setup-label {
  display: inline-flex;
  align-items: center;
  padding: 12px 18px;
  border-radius: 4px;
  border: 1px solid rgba(228, 201, 120, 0.35);
  color: var(--color-text);
  font-size: 14px;
  cursor: pointer;
  transition: background-color 0.2s ease, border-color 0.2s ease;
}

.setup-input:checked + .setup-label {
  background-color: var(--color-accent);
  border-color: var(--color-accent);
  font-weight: bold;
}

.setup-input:focus-visible + .setup-label {
  outline: 2px solid var(--color-accent-light);
  outline-offset: 2px;
}

/* ---- Accent colour swatches ---- */
.swatch-grid {
  display: grid;
  grid-template-columns: repeat(9, 1fr);
  gap: 10px;
  max-width: 460px;
}

.swatch-label {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 1 / 1;
  border-radius: 4px;
  border: 1px solid rgba(245, 239, 230, 0.25);
  cursor: pointer;
}

.swatch-input:checked + .swatch-label {
  box-shadow: 0 0 0 3px var(--color-accent-light);
}

.swatch-input:focus-visible + .swatch-label {
  outline: 2px solid var(--color-accent-light);
  outline-offset: 3px;
}

.swatch-input:checked + .swatch-label::after {
  content: "\2713";
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  font-weight: bold;
  color: #fff;
  text-shadow: 0 0 3px rgba(0, 0, 0, 0.8);
}

.accent-colour-chosen {
  margin-top: 12px;
  font-size: 13px;
  color: var(--color-text-muted);
}

.accent-colour-chosen strong {
  color: var(--color-text);
}

/* ---- Package group (step 2) ---- */
.package-group {
  background-color: var(--color-bg-alt);
  border: 1px solid rgba(228, 201, 120, 0.2);
  border-radius: 4px;
  padding: 20px;
  margin-bottom: 20px;
}

.package-group-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}

.package-group-head h3 {
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--color-text-muted);
  margin: 0;
}

.remove-group-btn {
  background: none;
  border: none;
  color: var(--color-accent);
  font-size: 13px;
  cursor: pointer;
  text-decoration: underline;
  padding: 4px;
}

.package-radio-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 14px;
  margin-bottom: 18px;
}

.package-radio-card {
  position: relative;
  display: block;
  background-color: var(--color-bg);
  border: 1px solid rgba(228, 201, 120, 0.25);
  border-radius: 4px;
  padding: 14px;
  cursor: pointer;
  transition: border-color 0.2s ease, background-color 0.2s ease;
}

.package-radio-input:checked + .package-radio-card {
  border-color: var(--color-accent-light);
  background-color: rgba(228, 201, 120, 0.08);
}

.package-radio-input:focus-visible + .package-radio-card {
  outline: 2px solid var(--color-accent-light);
  outline-offset: 2px;
}

.package-radio-card .pkg-num {
  font-family: var(--font-display);
  color: var(--color-accent);
  font-size: 13px;
}

.package-radio-card .pkg-name {
  font-weight: bold;
  margin: 2px 0;
  font-size: 15px;
}

.package-radio-card .pkg-price {
  color: var(--color-accent-light);
  font-size: 13px;
  font-weight: bold;
}

.package-radio-card .pkg-items {
  color: var(--color-text-muted);
  font-size: 12px;
  margin-top: 6px;
  line-height: 1.5;
}

.add-group-btn {
  background: none;
  border: 1px dashed var(--color-accent-light);
  color: var(--color-accent-light);
  padding: 12px 18px;
  border-radius: 4px;
  cursor: pointer;
  font-size: 14px;
  width: 100%;
}

/* ---- Sauce checkboxes ---- */
.sauce-check-group {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.sauce-check-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  cursor: pointer;
}

/* ---- Step navigation buttons ---- */
.step-actions {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-top: 30px;
}

.btn-next,
.btn-submit {
  background-color: var(--color-accent);
  color: var(--color-text);
  border: none;
  padding: 14px 32px;
  border-radius: 3px;
  font-weight: bold;
  cursor: pointer;
  margin-left: auto;
}

.btn-back {
  background: none;
  border: 1px solid rgba(228, 201, 120, 0.35);
  color: var(--color-text);
  padding: 14px 32px;
  border-radius: 3px;
  font-weight: bold;
  cursor: pointer;
}

/* ---- Review (step 3) ---- */
.review-section {
  margin-bottom: 24px;
  padding-bottom: 20px;
  border-bottom: 1px solid rgba(228, 201, 120, 0.15);
}

.review-section-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}

.review-section-head h3 {
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--color-accent-light);
  margin: 0;
}

.review-edit-link {
  background: none;
  border: none;
  color: var(--color-text-muted);
  font-size: 13px;
  text-decoration: underline;
  cursor: pointer;
  padding: 2px;
}

.review-row {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 6px 0;
  font-size: 14px;
  color: var(--color-text);
}

.review-row span:first-child {
  color: var(--color-text-muted);
}

/* visitor's comment: keep their line breaks, wrap long words */
.review-comments {
  margin: 0;
  font-size: 14px;
  line-height: 1.6;
  color: var(--color-text);
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.review-comments.is-empty {
  color: var(--color-text-muted);
  font-style: italic;
}

.estimate-box {
  background-color: var(--color-bg-alt);
  border: 1px solid var(--color-accent-light);
  border-radius: 4px;
  padding: 20px;
  margin: 24px 0;
}

.estimate-box .estimate-total {
  font-family: var(--font-display);
  font-size: 28px;
  color: var(--color-accent-light);
}

.estimate-box .estimate-note {
  color: var(--color-text-muted);
  font-size: 12px;
  margin: 6px 0 0;
}

.confirm-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 24px 0;
}

.confirm-row input {
  margin-top: 4px;
}

.confirm-row label {
  font-size: 14px;
  color: var(--color-text);
}

/* ---- Thank-you panel ---- */
.booking-thanks {
  text-align: center;
  padding: 60px 20px;
}

.booking-thanks h2 {
  font-family: var(--font-display);
  font-size: 32px;
  margin-bottom: 14px;
}

.booking-thanks p {
  color: var(--color-text-muted);
  max-width: 480px;
  margin: 0 auto;
  line-height: 1.7;
}

/* ---- Footer ---- */
footer {
  padding: 60px 40px 30px;
  border-top: 1px solid rgba(228, 201, 120, 0.25);
}

.footer-columns {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  max-width: 1100px;
  margin: 0 auto 40px;
}

.footer-columns h4 {
  color: var(--color-accent-light);
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 10px;
}

.footer-columns p {
  color: var(--color-text-muted);
  font-size: 14px;
  line-height: 1.7;
}

.footer-columns p a {
  color: var(--color-accent-light);
}

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

.footer-nav a {
  color: var(--color-text-muted);
  font-size: 14px;
}

.footer-nav a:hover {
  color: var(--color-accent-light);
}

.footer-social {
  display: flex;
  gap: 10px;
}

.footer-bottom {
  max-width: 1100px;
  margin: 0 auto;
  padding-top: 24px;
  border-top: 1px solid rgba(228, 201, 120, 0.15);
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--color-text-muted);
  font-size: 13px;
}

/* ---- Features (home page) ---- */
.features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  max-width: 1100px;
  margin: 0 auto;
  padding: 80px 40px;
}

.feature {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 20px;
}

.feature-icon {
  color: var(--color-accent);
}

.feature p {
  color: var(--color-text-muted);
  line-height: 1.7;
  flex-grow: 1;
}

/* ---- Features: scroll-triggered grill photo background (home page) ---- */
/* script.js sets two numbers on the section while you scroll:
   --bg-progress: 0 = section off screen, 1 = section centred in the screen
   --bg-shift:   -1 to 1, how far the section is from the screen centre
   The defaults below are what you see before (or without) JavaScript. */
.features--fire {
  --bg-progress: 0;
  --bg-shift: 0;
  position: relative;
  overflow: hidden; /* clips the photo layer, which is taller than the section */
  isolation: isolate; /* keeps the z-index layers below inside this section */
  /* let the photo run edge to edge while the 3 columns keep their old
     1100px width: the side padding grows instead of using max-width */
  max-width: none;
  padding-left: max(40px, calc((100% - 1020px) / 2));
  padding-right: max(40px, calc((100% - 1020px) / 2));
  padding-top: 140px;
  padding-bottom: 140px;
}

/* layer 1: the photo. It's 120px taller than the section on top and
   bottom so the parallax movement never shows an empty strip */
.features-bg {
  position: absolute;
  top: -120px;
  bottom: -120px;
  left: 0;
  right: 0;
  z-index: -2;
  pointer-events: none;
  background-image: url("Imagenes/web/grill-fire.jpg");
  background-size: cover;
  background-position: center;
  /* without the scroll script (old browser, JS off, reduced motion)
     the photo simply sits there at a medium strength */
  opacity: 0.6;
}

/* script.js adds .is-scroll-driven once it is running the effect */
.features--fire.is-scroll-driven .features-bg {
  /* fade: strongest (0.9) when the section is centred on screen */
  opacity: calc(var(--bg-progress) * 0.9);
  /* parallax: nudge the photo against the scroll so it seems to move slower */
  transform: translate3d(0, calc(var(--bg-shift) * -70px), 0);
  will-change: opacity, transform;
}

/* layer 2: the dark gradient on top of the photo. Solid page colour at
   the very top and bottom (so there are no hard edges against the hero
   and the next section), see-through in the middle so the flames show */
.features--fire::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    linear-gradient(to bottom,
      var(--color-bg) 0%,
      rgba(10, 10, 10, 0.78) 18%,
      rgba(10, 10, 10, 0.5) 40%,
      rgba(10, 10, 10, 0.5) 60%,
      rgba(10, 10, 10, 0.78) 82%,
      var(--color-bg) 100%),
    /* extra darkness behind the text in the middle of the section */
    radial-gradient(ellipse at center, rgba(10, 10, 10, 0.35) 0%, rgba(10, 10, 10, 0) 70%);
}

/* the muted grey is too faint over smoke and flames, so use the main
   text colour here, plus a soft shadow so it stays readable */
.features--fire .feature p {
  color: var(--color-text);
  text-shadow: 0 1px 8px rgba(10, 10, 10, 0.9);
}

/* soft dark glow behind the red icons so they don't vanish into the fire */
.features--fire .feature-icon {
  filter: drop-shadow(0 0 10px rgba(10, 10, 10, 0.9));
}

/* phones and small tablets: same fade, but no parallax, and the photo is
   shifted so the flames and sparks (right of centre) stay in the frame */
@media (max-width: 768px) {
  /* two classes so this beats the older ".features" mobile padding further down */
  .features.features--fire {
    padding: 100px 24px;
  }

  .features-bg,
  .features--fire.is-scroll-driven .features-bg {
    top: 0;
    bottom: 0;
    transform: none;
    background-position: 58% 40%;
  }
}

/* people who asked for less motion: no scroll effect at all, just the
   photo at a fixed medium strength with the same soft top/bottom edges */
@media (prefers-reduced-motion: reduce) {
  .features-bg,
  .features--fire.is-scroll-driven .features-bg {
    top: 0;
    bottom: 0;
    opacity: 0.6;
    transform: none;
    will-change: auto;
  }
}

/* ---- Newsletter band (home page) ---- */
.newsletter {
  background-color: var(--color-accent);
  padding: 70px 40px;
}

.newsletter-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
}

.newsletter-text {
  color: var(--color-text);
  font-size: 20px;
  line-height: 1.5;
  text-align: center;
  margin: 0;
}

.newsletter-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.newsletter-form input {
  background-color: var(--color-text);
  border: none;
  padding: 16px;
  font-size: 15px;
  color: var(--color-bg);
}

.newsletter-form button {
  background-color: var(--color-text);
  color: var(--color-accent);
  border: none;
  padding: 16px;
  font-weight: bold;
  letter-spacing: 2px;
  text-transform: uppercase;
  cursor: pointer;
}

.newsletter-form .form-status {
  color: var(--color-text);
}

.newsletter-note {
  color: var(--color-text);
  font-size: 12px;
  text-align: center;
  margin: 0;
}

/* ---- Scroll-reveal animation ---- */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ---- Reduced motion: turn off animation for people who asked for it ---- */
@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .slide {
    transition: none;
  }

  .chip-label,
  .setup-label,
  .package-radio-card {
    transition: none;
  }
}

/* ====================================================== */
/* Responsive breakpoints                                  */
/* ====================================================== */

@media (max-width: 900px) {
  .features {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-columns {
    grid-template-columns: repeat(2, 1fr);
  }

  .photo-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .swatch-grid {
    grid-template-columns: repeat(6, 1fr);
  }
}

@media (max-width: 768px) {
  .nav-toggle {
    display: inline-flex;
  }

  nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    background-color: var(--color-bg-alt);
    border-bottom: 3px solid var(--color-accent);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    z-index: 10;
  }

  nav.open {
    max-height: 420px;
  }

  nav a {
    padding: 14px 24px;
    width: 100%;
  }

  nav .social-icon {
    margin: 10px 0 10px 24px;
  }

  nav .nav-cta {
    margin: 10px 24px;
    width: calc(100% - 48px);
    text-align: center;
    padding: 14px 24px;
  }

  .hero {
    padding: 70px 24px;
  }

  .hero h1 {
    font-size: 44px;
  }

  .page-intro {
    padding: 50px 24px 30px;
  }

  .page-intro h1 {
    font-size: 34px;
  }

  .features {
    grid-template-columns: 1fr;
    padding: 50px 24px;
  }

  .packages {
    grid-template-columns: 1fr;
    padding: 10px 24px 50px;
  }

  .package-card:last-child {
    grid-column: auto;
  }

  .sauces-grid {
    grid-template-columns: 1fr;
  }

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

  .footer-columns {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .footer-nav {
    align-items: center;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 10px;
    text-align: center;
  }

  .video-grid {
    grid-template-columns: 1fr;
  }

  .booking {
    padding: 10px 24px 100px;
  }

  .step-actions {
    gap: 10px;
  }

  .btn-back,
  .btn-next,
  .btn-submit {
    padding: 14px 22px;
  }
}

@media (max-width: 480px) {
  .hero h1 {
    font-size: 36px;
  }

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

  .package-items {
    columns: 1;
  }

  header {
    padding: 16px 20px;
  }

  .field-row {
    grid-template-columns: 1fr;
  }

  .swatch-grid {
    grid-template-columns: repeat(5, 1fr);
  }

  .step-tag-label {
    display: none;
  }

  .step-tag {
    padding: 8px 12px;
  }
}

/* ====================================================== */
/* Menu page: package card photos                          */
/* (kept at the end so the grid rules below win over the   */
/*  older .packages rules in the breakpoints above)        */
/* ====================================================== */

/* card becomes a column so the text can be pushed down and
   every card in a row ends at the same height */
.package-card {
  display: flex;
  flex-direction: column;
  overflow: hidden; /* clips the photo to the card's rounded corners */
}

/* photo sits flush with the card edges: the negative margins
   cancel the card's 28px padding on the top and sides */
.package-photo {
  position: relative;
  margin: -28px -28px 22px;
  aspect-ratio: 16 / 9;
  overflow: hidden; /* hides the zoomed edges on hover */
  background-color: var(--color-bg); /* shown while the photo loads */
}

.package-photo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover; /* fill the 16:9 box without stretching */
  transition: transform 0.6s ease;
}

/* soft fade at the bottom of the photo into the card colour */
.package-photo::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 45%;
  pointer-events: none;
  background: linear-gradient(to bottom, rgba(28, 24, 21, 0) 0%, var(--color-bg-alt) 100%);
}

/* small package number in the top-left corner of the photo
   (aria-hidden in the HTML: the number is already read out below) */
.package-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 1;
  background-color: var(--color-accent);
  color: var(--color-text);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 1px;
  padding: 5px 10px;
  border-radius: 3px;
}

/* the "includes rice & vegetables" line sits at the bottom of every
   card, so cards with shorter item lists still line up */
.package-card .package-note {
  margin-top: auto;
}

/* gentle zoom on hover — only on devices with a real mouse */
@media (hover: hover) and (pointer: fine) {
  .package-card:hover .package-photo img {
    transform: scale(1.04);
  }
}

/* small muted line under the grid */
.menu-photo-note {
  grid-column: 1 / -1;
  text-align: center;
  color: var(--color-text-muted);
  font-size: 13px;
  margin: 4px 0 0;
}

/* ---- package grid layout ---- */

/* phones: one card per row */
@media (max-width: 600px) {
  .packages {
    grid-template-columns: 1fr;
    padding: 10px 24px 50px;
  }

  .package-card:last-child,
  .packages .package-card {
    grid-column: auto;
  }
}

/* tablets: two per row. The grid has 4 narrow tracks and every
   card takes 2, so the lone 5th card can sit centred at the same
   width instead of stretching across the whole row */
@media (min-width: 601px) and (max-width: 1024px) {
  .packages {
    grid-template-columns: repeat(4, 1fr);
    /* 3 equal card rows (as tall as the tallest card) + a short row for the note */
    grid-template-rows: repeat(3, 1fr) auto;
    padding: 10px 24px 60px;
  }

  .packages .package-card {
    grid-column: span 2;
  }

  .packages .package-card:nth-child(5) {
    grid-column: 2 / span 2;
  }
}

/* desktop: 3 on top, 2 centred underneath, all the same width
   (6 narrow tracks, every card takes 2) */
@media (min-width: 1025px) {
  .packages {
    max-width: 1140px;
    grid-template-columns: repeat(6, 1fr);
    /* 2 equal card rows (as tall as the tallest card) + a short row for the note */
    grid-template-rows: repeat(2, 1fr) auto;
  }

  .packages .package-card {
    grid-column: span 2;
  }

  .packages .package-card:nth-child(4) {
    grid-column: 2 / span 2;
  }

  .packages .package-card:nth-child(5) {
    grid-column: 4 / span 2;
  }
}

/* no hover zoom for people who asked for less motion */
@media (prefers-reduced-motion: reduce) {
  .package-photo img {
    transition: none;
  }

  .package-card:hover .package-photo img {
    transform: none;
  }
}

/* ====================================================== */
/* Sakura night photo: footer (all pages) + page banners   */
/* Image: Imagenes/web/bg-sakura-night.jpg (1920x535).     */
/* It's a wide, short photo, so it's only used on wide     */
/* strips and never stretched over tall areas.             */
/* ====================================================== */

/* ---- Footer ---- */
.site-footer {
  position: relative;
  isolation: isolate; /* keeps the photo layer (z-index -1) inside the footer */
  border-top: none;   /* the old thin line would be a hard edge; the fade replaces it */
}

/* photo layer with the dark overlay painted on top of it. The overlay
   starts as solid page colour, so the top edge melts into the page above */
.site-footer::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    linear-gradient(to bottom,
      var(--color-bg) 0%,
      rgba(10, 10, 10, 0.6) 35%,
      rgba(10, 10, 10, 0.72) 100%),
    url("Imagenes/web/bg-sakura-night.jpg") center / cover no-repeat;
}

/* the muted grey is too faint over the blossoms, so footer text uses
   the main text colour (headings and in-text links stay gold), with a
   soft shadow for extra separation from the bright petals */
.site-footer .footer-columns p,
.site-footer .footer-nav a,
.site-footer .footer-bottom {
  color: var(--color-text);
  text-shadow: 0 1px 6px rgba(10, 10, 10, 0.85);
}

.site-footer .footer-columns h4,
.site-footer .footer-columns p a {
  text-shadow: 0 1px 6px rgba(10, 10, 10, 0.85);
}

.site-footer .footer-nav a:hover {
  color: var(--color-accent-light);
}

/* alignment fix: the header's general "nav { align-items: center }"
   rule was also centring the Explore links. Line them up on the
   left under their heading, like the other columns */
.site-footer .footer-nav {
  align-items: flex-start;
}

/* ---- Page banner (Menu, Services, Events, Reserve) ---- */
/* The intro section becomes full width so the photo can run edge to
   edge; the side padding keeps the text at its old 620px width */
.page-intro.page-banner {
  position: relative;
  isolation: isolate;
  max-width: none;
  min-height: 320px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 70px max(40px, calc((100% - 620px) / 2)) 60px;
}

/* photo + gradient: a little darker under the header, see-through in
   the middle, and solid page colour at the bottom so there's no edge
   between the banner and the content below */
.page-banner::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    linear-gradient(to bottom,
      rgba(10, 10, 10, 0.75) 0%,
      rgba(10, 10, 10, 0.4) 22%,
      rgba(10, 10, 10, 0.5) 60%,
      var(--color-bg) 100%),
    url("Imagenes/web/bg-sakura-night.jpg") center / cover no-repeat;
}

/* keep the banner text crisp over the photo */
.page-banner h1,
.page-banner .tagline {
  text-shadow: 0 2px 10px rgba(10, 10, 10, 0.9);
}

.page-banner .page-intro-text {
  color: var(--color-text);
  text-shadow: 0 1px 8px rgba(10, 10, 10, 0.9);
}

/* ---- Phones and small tablets ---- */
@media (max-width: 768px) {
  /* the stacked footer is tall, so instead of blowing the photo up to
     fill it, show it as a strip across the top that fades into the
     page colour; the columns below continue on the plain background */
  .site-footer::before {
    bottom: auto;
    height: 340px;
    background:
      linear-gradient(to bottom,
        var(--color-bg) 0%,
        rgba(10, 10, 10, 0.55) 30%,
        rgba(10, 10, 10, 0.7) 65%,
        var(--color-bg) 100%),
      url("Imagenes/web/bg-sakura-night.jpg") 12% 30% / cover no-repeat;
  }

  /* shorter banner; photo shifted left so the blossoms stay in view */
  /* (the overlay is darker here than on desktop: on a narrow screen the
     blossoms sit right behind the red tagline) */
  .page-intro.page-banner {
    min-height: 240px;
    padding: 50px 24px 44px;
  }

  .page-banner::before {
    background:
      linear-gradient(to bottom,
        rgba(10, 10, 10, 0.92) 0%,
        rgba(10, 10, 10, 0.86) 32%,
        rgba(10, 10, 10, 0.6) 62%,
        var(--color-bg) 100%),
      url("Imagenes/web/bg-sakura-night.jpg") 12% 30% / cover no-repeat;
  }

  /* bug fix: the mobile header-menu rules ("nav { position: absolute;
     max-height: 0; overflow: hidden }") also hit the footer's <nav>,
     which hid the Explore links on phones. Undo them for the footer.
     The footer is fully centred on phones (existing design), so the
     links stay centred here too */
  .site-footer .footer-nav {
    position: static;
    max-height: none;
    overflow: visible;
    background-color: transparent;
    border-bottom: none;
    transition: none;
    align-items: center;
    gap: 8px;
  }

  .site-footer .footer-nav a {
    padding: 0;
    width: auto;
  }

  /* centre the social icons too, to match the rest of the stacked footer */
  .site-footer .footer-social {
    justify-content: center;
  }
}

/* nothing here animates, so there's nothing to switch off for
   prefers-reduced-motion */

/* ====================================================== */
/* Events gallery: hover / focus / tap photo preview       */
/* (the element is created by events.js)                   */
/* ====================================================== */

/* tiles can be reached with Tab; show a clear gold outline when they are */
.photo-grid-item:focus-visible {
  outline: 2px solid var(--color-accent-light);
  outline-offset: 3px;
}

/* hint that the photo can be viewed larger (mouse devices only) */
@media (hover: hover) {
  .photo-grid-item {
    cursor: zoom-in;
  }
}

/* the floating preview. Fixed to the screen; JS sets its size and
   position so it always fits inside the visible area */
.photo-preview {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 1000;
  pointer-events: none; /* never blocks the mouse, so it can't flicker */
  border-radius: 8px;
  overflow: hidden;
  background-color: var(--color-bg-alt); /* behind the photo while it loads */
  box-shadow:
    0 18px 50px rgba(0, 0, 0, 0.75),
    0 0 0 1px rgba(228, 201, 120, 0.25);
  opacity: 0;
  visibility: hidden;
  transform: scale(0.96);
  transition: opacity 0.18s ease, transform 0.18s ease, visibility 0s linear 0.18s;
}

.photo-preview.is-visible {
  opacity: 1;
  visibility: visible;
  transform: scale(1);
  transition: opacity 0.18s ease, transform 0.18s ease, visibility 0s;
}

/* the whole photo, never cropped */
.photo-preview-img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

/* less motion: no scaling, just a quick fade */
@media (prefers-reduced-motion: reduce) {
  .photo-preview,
  .photo-preview.is-visible {
    transform: none;
    transition: opacity 0.1s linear, visibility 0s linear 0.1s;
  }

  .photo-preview.is-visible {
    transition: opacity 0.1s linear, visibility 0s;
  }
}
