/* ==========================================================================
   Rio Viejo Cocina de Mexico — site stylesheet
   ========================================================================== */

/* ---- Fonts ---- */
@font-face {
  font-family: 'Caviar Dreams';
  src: url('../fonts/caviardreams_bold-webfont.woff2') format('woff2'),
       url('../fonts/caviardreams_bold-webfont.woff') format('woff');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Metropolis 1920';
  src: url('../fonts/metropolis1920-regular-webfont.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Metropolis';
  src: url('../fonts/Metropolis.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

/* ---- Tokens ---- */
:root {
  --gold: #c9ab81;
  --gold-light: #e3c59b;
  --gold-dark: #9c7c57;
  --brown: #715b3e;
  --bg: #0f1d22;
  --bg-deep: #0b1315;
  --text: #afb8b8;
  --light: #ebebeb;
  --white: #ffffff;
  --heading-font: 'Caviar Dreams', sans-serif;
  --body-font: 'Josefin Sans', sans-serif;
  --script-font: 'Miniver', cursive;
  --header-h: 110px;
}

/* ---- Reset / base ---- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background-color: var(--bg);
  color: var(--text);
  font-family: var(--body-font);
  font-weight: 300;
  font-size: 17px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--gold); text-decoration: none; transition: color .2s ease; }
a:hover { color: var(--gold-light); }
p { margin: 0 0 1.2em; }

h1, h2, h3, h4, h5, h6 {
  font-family: var(--heading-font);
  font-weight: 700;
  text-transform: uppercase;
  color: var(--gold);
  margin: 25px 0;
  word-wrap: break-word;
}
h1 { font-size: 50px; line-height: 1.2; letter-spacing: .08em; }
h2 { font-size: 38px; line-height: 1.25; letter-spacing: .08em; }
h3 { font-size: 28px; letter-spacing: .1em; }
h4 { font-size: 24px; letter-spacing: .1em; }
h5 { font-size: 18px; letter-spacing: .12em; }
h6 { font-size: 14px; letter-spacing: .15em; }

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 30px;
}

/* visually hidden (a11y) */
.sr-only {
  position: absolute; width: 1px; height: 1px;
  margin: -1px; padding: 0; border: 0;
  clip: rect(0 0 0 0); overflow: hidden; white-space: nowrap;
}

/* ---- Buttons ---- */
.btn {
  display: inline-block;
  font-family: var(--heading-font);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .23em;
  text-transform: uppercase;
  color: var(--white);
  background: transparent;
  border: 1px solid var(--gold);
  padding: 14px 38px;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition: color .25s ease, background-color .25s ease;
}
.btn:hover {
  color: var(--bg);
  background-color: var(--gold);
}
.btn--solid {
  color: var(--bg);
  background-color: var(--gold);
}
.btn--solid:hover {
  color: var(--white);
  background-color: transparent;
}

/* ---- Section title block ---- */
.section-title { text-align: center; }
.section-title .tagline {
  font-family: var(--script-font);
  font-size: 27px;
  color: var(--gold);
  display: block;
  margin-bottom: 6px;
}
.section-title .decor { display: block; margin: 12px auto; width: 41px; }
.section-title h1,
.section-title h2 { margin: 10px 0 0; color: var(--light); }
.section-title--gold h1,
.section-title--gold h2,
.section-title--gold h4 { color: var(--gold); }

/* ==========================================================================
   Header
   ========================================================================== */
.site-header {
  position: absolute;
  top: 0; left: 0; right: 0;
  z-index: 100;
  height: var(--header-h);
  display: flex;
  align-items: center;
  transition: background-color .3s ease, height .3s ease;
}
.site-header.is-sticky {
  position: fixed;
  height: 80px;
  background-color: rgba(11, 19, 21, .97);
  box-shadow: 0 1px 0 rgba(201, 171, 129, .15);
}
.site-header .container {
  max-width: 1400px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.site-logo img { height: 78px; width: auto; transition: height .3s ease; }
.site-header.is-sticky .site-logo img { height: 56px; }

.main-nav ul {
  list-style: none;
  margin: 0; padding: 0;
  display: flex;
  gap: 42px;
}
.main-nav a {
  font-family: var(--heading-font);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .23em;
  text-transform: uppercase;
  color: var(--white);
  padding: 10px 0;
}
.main-nav a:hover,
.main-nav li.current a { color: var(--gold); }

/* Mobile nav */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  padding: 8px;
  cursor: pointer;
}
.nav-toggle span {
  display: block;
  width: 26px; height: 2px;
  margin: 6px 0;
  background: var(--gold);
  transition: transform .25s ease, opacity .25s ease;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

@media (max-width: 1024px) {
  .nav-toggle { display: block; }
  .main-nav {
    position: absolute;
    top: 100%; left: 0; right: 0;
    background-color: var(--bg-deep);
    display: none;
    border-top: 1px solid rgba(201, 171, 129, .2);
  }
  .main-nav.is-open { display: block; }
  .main-nav ul { flex-direction: column; gap: 0; padding: 10px 30px 20px; }
  .main-nav a { display: block; padding: 14px 0; border-bottom: 1px solid rgba(201, 171, 129, .12); }
  .site-header { background-color: rgba(11, 19, 21, .9); position: fixed; height: 80px; }
  .site-logo img { height: 54px; }
}

/* ==========================================================================
   Hero (home)
   ========================================================================== */
.hero {
  position: relative;
  height: 100vh;
  min-height: 640px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  background: var(--bg-deep) url('../img/hero-poster.jpeg') center / cover no-repeat;
}
.hero__video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
}
.hero__overlay {
  position: absolute;
  inset: 0;
  background: rgba(11, 19, 21, .45);
}
.hero__content {
  position: relative;
  z-index: 2;
  padding: 0 20px;
}
.hero__location {
  font-family: var(--heading-font);
  font-size: 16px;
  font-weight: 700;
  letter-spacing: .35em;
  text-transform: uppercase;
  color: var(--gold);
  margin: 0 0 18px;
}
.hero__title {
  font-family: var(--heading-font);
  font-size: 62px;
  line-height: 1.15;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--white);
  max-width: 900px;
  margin: 0 auto 14px;
  position: relative;
}
.hero__script {
  font-family: var(--script-font);
  font-size: 44px;
  color: var(--gold);
  display: block;
  margin: 10px 0 30px;
}
.hero__actions { display: flex; gap: 22px; justify-content: center; flex-wrap: wrap; }

@media (max-width: 768px) {
  .hero__title { font-size: 36px; }
  .hero__script { font-size: 32px; }
}

/* Address strip under hero */
.address-strip {
  text-align: center;
  padding: 80px 30px 20px;
}
.address-strip .icon { width: 34px; margin: 0 auto 18px; color: var(--gold); }
.address-strip h2 {
  margin: 0;
  color: var(--light);
  font-size: 30px;
}

/* ==========================================================================
   Generic sections
   ========================================================================== */
.section { padding: 90px 0; }
.section--deep { background-color: var(--bg-deep); }
.section--parallax {
  background-attachment: fixed;
  background-position: center;
  background-size: cover;
  position: relative;
}
.section--parallax::before {
  content: '';
  position: absolute; inset: 0;
  background: rgba(11, 19, 21, .75);
}
.section--parallax > * { position: relative; }

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}
.split--text-first .split__text { order: -1; }
@media (max-width: 900px) {
  .split { grid-template-columns: 1fr; }
  .split--text-first .split__text { order: 0; }
}

.img-duo {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
  align-items: start;
}
.img-duo img:nth-child(2) { margin-top: 60px; }
@media (max-width: 600px) {
  .img-duo { grid-template-columns: 1fr; }
  .img-duo img:nth-child(2) { margin-top: 0; }
}

/* ==========================================================================
   Testimonials
   ========================================================================== */
.testimonials .split { align-items: center; }
.testimonial-slider { position: relative; min-height: 420px; }
.testimonial {
  position: absolute;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity .6s ease, visibility .6s;
}
.testimonial.is-active { opacity: 1; visibility: visible; position: relative; }
.testimonial__stars {
  color: var(--gold);
  font-size: 20px;
  letter-spacing: .35em;
  margin: 0 0 18px;
}
.testimonial__quote {
  font-size: 17px;
  line-height: 1.8;
  font-style: italic;
}
.testimonial__author {
  font-family: var(--heading-font);
  font-size: 15px;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--gold);
  margin: 24px 0 2px;
}
.testimonial__role {
  font-size: 13px;
  letter-spacing: .1em;
  text-transform: uppercase;
}
.testimonial-dots { display: flex; gap: 12px; margin-top: 26px; }
.testimonial-dots button {
  width: 10px; height: 10px;
  border-radius: 50%;
  border: 1px solid var(--gold);
  background: transparent;
  padding: 0;
  cursor: pointer;
}
.testimonial-dots button.is-active { background: var(--gold); }

/* ==========================================================================
   Menu items (From our menu / desserts)
   ========================================================================== */
.menu-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  column-gap: 70px;
  row-gap: 34px;
  margin-top: 60px;
}
@media (max-width: 800px) { .menu-list { grid-template-columns: 1fr; } }

.menu-item__head {
  display: flex;
  align-items: baseline;
  gap: 12px;
}
.menu-item__head h6 { margin: 0; white-space: nowrap; }
.menu-item__dots {
  flex: 1;
  border-bottom: 1px dotted rgba(201, 171, 129, .5);
  transform: translateY(-4px);
}
.menu-item__price {
  font-family: var(--heading-font);
  font-weight: 700;
  font-size: 15px;
  color: var(--gold);
  white-space: nowrap;
}
.menu-item__desc {
  margin: 10px 0 0;
  font-size: 15px;
  line-height: 1.7;
}
.menu-cta { text-align: center; margin-top: 70px; }

/* ==========================================================================
   Gallery
   ========================================================================== */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 60px;
}
@media (max-width: 800px) { .gallery-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 500px) { .gallery-grid { grid-template-columns: 1fr; } }
.gallery-grid a { display: block; overflow: hidden; }
.gallery-grid img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  transition: transform .5s ease, opacity .3s ease;
}
.gallery-grid a:hover img { transform: scale(1.06); opacity: .85; }

/* Lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 300;
  background: rgba(11, 19, 21, .95);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 40px;
}
.lightbox.is-open { display: flex; }
.lightbox img { max-width: 100%; max-height: 90vh; width: auto; }
.lightbox__close {
  position: absolute;
  top: 24px; right: 30px;
  background: none;
  border: none;
  color: var(--gold);
  font-size: 38px;
  line-height: 1;
  cursor: pointer;
}

/* ==========================================================================
   Reservation form
   ========================================================================== */
.reservation { text-align: center; }
.reservation__phone {
  font-size: 34px;
  color: var(--light);
  margin: 10px 0 30px;
}
.reservation__label {
  font-family: var(--script-font);
  font-size: 24px;
  color: var(--gold);
  display: block;
  margin-bottom: 26px;
}
.reservation-form {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  justify-content: center;
  align-items: stretch;
  max-width: 860px;
  margin: 0 auto;
}
.reservation-form select,
.reservation-form input[type="date"] {
  appearance: none;
  -webkit-appearance: none;
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--gold);
  color: var(--light);
  font-family: var(--heading-font);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .2em;
  text-transform: uppercase;
  padding: 14px 28px 14px 6px;
  min-width: 150px;
  cursor: pointer;
  border-radius: 0;
}
.reservation-form select {
  background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M0 0l5 6 5-6z' fill='%23c9ab81'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 8px center;
}
.reservation-form select option { background: var(--bg-deep); color: var(--light); }
.reservation-form input[type="date"]::-webkit-calendar-picker-indicator { filter: invert(70%) sepia(20%) saturate(500%) hue-rotate(360deg); }
.reservation__copyright {
  margin-top: 26px;
  font-size: 13px;
  letter-spacing: .05em;
}

/* ==========================================================================
   Page title banner (inner pages)
   ========================================================================== */
.page-banner {
  position: relative;
  min-height: 480px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background-position: center;
  background-size: cover;
  background-color: var(--bg-deep);
}
.page-banner::before {
  content: '';
  position: absolute; inset: 0;
  background: rgba(11, 19, 21, .55);
}
.page-banner .section-title { position: relative; padding-top: var(--header-h); }
.page-banner h1 { color: var(--white); font-size: 56px; margin: 10px 0 0; }
@media (max-width: 768px) { .page-banner h1 { font-size: 36px; } }

/* ==========================================================================
   Menus page
   ========================================================================== */
.menu-board { margin-top: 60px; }
.menu-board__grid {
  display: grid;
  grid-template-columns: 1fr 1.4fr 1fr;
  gap: 40px;
  align-items: center;
}
.menu-board__grid--single { grid-template-columns: minmax(0, 660px); justify-content: center; }
@media (max-width: 900px) {
  .menu-board__grid { grid-template-columns: 1fr; }
  .menu-board__side { display: none; }
}
.menu-board__main a { display: block; box-shadow: 0 20px 60px rgba(0, 0, 0, .45); }
.menu-board__side img { box-shadow: 0 14px 40px rgba(0, 0, 0, .4); }

/* ==========================================================================
   Catering page
   ========================================================================== */
.features-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 50px;
  text-align: center;
  margin-top: 70px;
}
@media (max-width: 1000px) { .features-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .features-grid { grid-template-columns: 1fr; } }
.feature img { margin: 0 auto 22px; height: 60px; width: auto; }
.feature h5 { margin: 0 0 14px; }
.feature p { font-size: 15px; }

.package-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  margin-top: 60px;
}
@media (max-width: 900px) { .package-cards { grid-template-columns: 1fr; } }
.package-cards img { box-shadow: 0 14px 40px rgba(0, 0, 0, .4); }

.package-detail h1 { font-size: 40px; }
.package-detail .label {
  font-family: var(--heading-font);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--gold);
  display: block;
  margin: 26px 0 6px;
}
.package-detail p { margin: 0 0 6px; }

.contact-block { text-align: center; }
.contact-block p { margin: 6px 0; font-size: 18px; }
.contact-block .phone {
  font-family: var(--heading-font);
  font-size: 30px;
  letter-spacing: .1em;
  color: var(--light);
  display: block;
  margin: 16px 0;
}

/* ==========================================================================
   Chef page
   ========================================================================== */
.chef .split { align-items: start; }
.chef p { font-size: 17px; line-height: 1.9; }

/* ==========================================================================
   Social icons
   ========================================================================== */
.social-links {
  display: flex;
  gap: 22px;
  justify-content: center;
  margin-top: 26px;
}
.social-links a { color: var(--gold); }
.social-links svg { width: 20px; height: 20px; fill: currentColor; display: block; }
.social-links a:hover { color: var(--gold-light); }

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer {
  background-color: var(--bg-deep);
  padding: 90px 30px 50px;
  text-align: center;
  border-top: 1px solid rgba(201, 171, 129, .12);
}
.site-footer .footer-logo img { margin: 0 auto 30px; width: 250px; }
.site-footer address {
  font-style: normal;
  font-size: 17px;
  margin-bottom: 8px;
}
.site-footer .footer-phone {
  font-family: var(--heading-font);
  font-size: 22px;
  letter-spacing: .12em;
  color: var(--light);
  display: inline-block;
  margin: 8px 0 24px;
}
.footer-hours {
  margin: 0 auto;
  border-collapse: collapse;
}
.footer-hours td {
  padding: 4px 16px;
  font-size: 15px;
  letter-spacing: .05em;
}
.footer-hours td:first-child { color: var(--gold); text-align: right; }
.footer-hours td:last-child { text-align: left; }
.site-footer .copyright {
  margin-top: 44px;
  font-size: 13px;
  letter-spacing: .05em;
  color: rgba(175, 184, 184, .6);
}

/* ---- Back to top ---- */
.back-to-top {
  position: fixed;
  right: 28px; bottom: 28px;
  z-index: 90;
  width: 46px; height: 46px;
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transition: opacity .3s ease, visibility .3s;
}
.back-to-top.is-visible { opacity: 1; visibility: visible; }
.back-to-top svg { width: 100%; height: 100%; }
.back-to-top:hover { transform: translateY(-3px); }
