/*
Theme Name: San Si Wu
Author: Andre Gutierrez
Description: Bold, editorial WordPress theme for San Si Wu — Chinese street food on Seven Mile Beach, Cayman Islands. High-contrast red/ink/paper palette, Instrument Serif + Work Sans, bento-style menu grid.
Version: 1.2.0
Text Domain: san-si-wu
*/

/* =========================================================
   Design tokens
   ========================================================= */
:root {
  --brand-red: #E11C0A;
  --brand-paper: #FFFFFF;
  --brand-ink: #1A1D23;

  --font-serif: "Instrument Serif", ui-serif, Georgia, serif;
  --font-sans: "Work Sans", ui-sans-serif, system-ui, sans-serif;

  --container-max: 80rem;   /* 1280px */
  --container-pad: 1.5rem;  /* 24px */
}

/* =========================================================
   Reset & base
   ========================================================= */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

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

body {
  background-color: var(--brand-paper);
  color: var(--brand-ink);
  font-family: var(--font-sans);
  font-weight: 400;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

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

button {
  font-family: inherit;
  cursor: pointer;
}

::selection {
  background-color: var(--brand-red);
  color: #fff;
}

.font-serif {
  font-family: var(--font-serif);
}

.container {
  max-width: var(--container-max);
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--container-pad);
  padding-right: var(--container-pad);
}

.italic {
  font-style: italic;
}

.screen-reader-text {
  border: 0;
  clip: rect(1px, 1px, 1px, 1px);
  clip-path: inset(50%);
  height: 1px;
  width: 1px;
  overflow: hidden;
  position: absolute !important;
  word-wrap: normal !important;
}

/* =========================================================
   Header / Nav
   ========================================================= */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background-color: rgba(255, 255, 255, 0.9);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(26, 29, 35, 0.05);
}

.site-header__inner {
  min-height: 4.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 1rem;
  padding-top: 0.75rem;
  padding-bottom: 0.75rem;
}

.site-logo {
  display: flex;
  align-items: center;
}

.site-logo img {
  height: 2.75rem;
  width: auto;
}

.site-header__right {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.primary-nav {
  display: none;
  gap: 2rem;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  list-style: none;
}

.primary-nav a:hover {
  color: var(--brand-red);
  transition: color 0.2s ease;
}

.site-header__social {
  display: none;
  align-items: center;
  gap: 1rem;
  list-style: none;
}

.site-header__social a {
  display: flex;
  align-items: center;
  color: var(--brand-ink);
}

.site-header__social a:hover {
  color: var(--brand-red);
  transition: color 0.2s ease;
}

.site-header__bento-logo {
  height: 16px;
  width: auto;
}

.site-header__view-menu {
  display: none;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  white-space: nowrap;
}

.site-header__view-menu:hover {
  color: var(--brand-red);
  transition: color 0.2s ease;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: none;
  border-radius: 1rem;
  font-family: var(--font-sans);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  transition: background-color 0.2s ease, color 0.2s ease;
  white-space: nowrap;
}

.btn-red {
  background-color: var(--brand-red);
  color: #fff;
  padding: 0.75rem 1.5rem;
  font-size: 0.75rem;
}

.btn-red:hover {
  background-color: var(--brand-ink);
}

.btn-ink {
  background-color: var(--brand-ink);
  color: #fff;
  padding: 1rem 2rem;
  font-size: 0.875rem;
}

.btn-ink:hover {
  background-color: var(--brand-red);
}

.btn-block {
  display: block;
  width: 100%;
  text-align: center;
  padding: 1rem 0;
  font-size: 0.75rem;
  border-radius: 1rem;
}

/* =========================================================
   Hero
   ========================================================= */
.hero {
  padding-top: 3rem;
  padding-bottom: 3rem;
}

.hero__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  align-items: center;
}

.hero__eyebrow {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

.hero__eyebrow-line {
  height: 1px;
  width: 3rem;
  background-color: var(--brand-red);
}

.hero__eyebrow-text {
  color: var(--brand-red);
  font-weight: 700;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.3em;
}

.hero__title {
  font-family: var(--font-serif);
  font-size: 2rem;
  line-height: 1.05;
  margin-bottom: 2rem;
}

.hero__desc {
  max-width: 28rem;
  font-size: 1.125rem;
  color: rgba(26, 29, 35, 0.7);
  line-height: 1.625;
  margin-bottom: 2.5rem;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  align-items: center;
}

.hero__actions .btn {
  padding: 1rem 2rem;
  font-size: 0.875rem;
}

.hero__rating {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0 0.5rem;
}

.hero__rating-score {
  font-size: 1.875rem;
  font-family: var(--font-serif);
  font-style: italic;
}

.hero__rating-badge {
  height: 24px;
  width: auto;
}

.hero__image-col {
  max-width: 26rem;
  margin-left: auto;
  margin-right: auto;
}

.hero-fade {
  position: relative;
  width: 100%;
}

/* In-flow sizer image: gives the container real width + height so the
   grid column cannot collapse and the absolute slides have a box to fill. */
.hero-fade__ratio {
  display: block;
  width: 100%;
  height: auto;
  visibility: hidden;
}

.hero-fade__slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 1s ease;
}

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

.hero-fade__slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 1rem;
  box-shadow: 0 0 0 1px rgba(26, 29, 35, 0.05);
}

.hero__image-caption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1.75rem;
  margin-top: 0;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: rgba(26, 29, 35, 0.4);
}

/* =========================================================
   Menu / Bento section
   ========================================================= */
.menu-section__head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 3rem;
}

.section-title {
  font-family: var(--font-serif);
  font-size: 3rem;
}

.section-kicker {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: rgba(26, 29, 35, 0.4);
  margin-bottom: 0.5rem;
}


/* =========================================================
   Story
   ========================================================= */
.story-section {
  background-color: var(--brand-ink);
  color: var(--brand-paper);
  padding-top: 6rem;
  padding-bottom: 6rem;
}

.story-section .container {
  max-width: 56rem;
  text-align: center;
}

.story-section__title {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 3rem;
  margin-bottom: 3rem;
}

.story-section__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  text-align: left;
}

.story-section__grid p {
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.625;
}

/* =========================================================
   Amenities
   ========================================================= */
.amenities-section {
  padding-top: 3rem;
  padding-bottom: 3rem;
  border-top: 1px solid rgba(26, 29, 35, 0.1);
}

.amenities-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.5rem 3rem;
}

.amenity {
  position: relative;
  padding-left: 1.25rem;
}

.amenity::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.4em;
  width: 6px;
  height: 6px;
  background-color: var(--brand-red);
  border-radius: 50%;
}

.amenity__label {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

/* =========================================================
   Reviews / Testimonials
   ========================================================= */
.reviews-section {
  padding-top: 3rem;
  padding-bottom: 3rem;
  border-top: 1px solid rgba(26, 29, 35, 0.1);
}

.reviews-embed {
  margin-top: 1rem;
}

/* =========================================================
   Food Gallery
   ========================================================= */
.food-gallery-section {
  padding-top: 3rem;
  padding-bottom: 5rem;
  border-top: 1px solid rgba(26, 29, 35, 0.1);
}

.food-gallery-wrap {
  position: relative;
}

.food-gallery {
  display: flex;
  gap: 1.25rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  scrollbar-width: none;
  padding-bottom: 0.25rem;
}

.food-gallery__arrow {
  display: none;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
  width: 2.75rem;
  height: 2.75rem;
  border: none;
  border-radius: 50%;
  background-color: var(--brand-paper);
  color: var(--brand-ink);
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 2px 10px rgba(26, 29, 35, 0.15);
  transition: background-color 0.2s ease, color 0.2s ease;
}

.food-gallery__arrow:hover {
  background-color: var(--brand-red);
  color: #fff;
}

.food-gallery__arrow--prev {
  left: -0.25rem;
}

.food-gallery__arrow--next {
  right: -0.25rem;
}

@media (min-width: 640px) {
  .food-gallery__arrow {
    display: flex;
    align-items: center;
    justify-content: center;
  }
}

.food-gallery::-webkit-scrollbar {
  display: none;
}

.food-gallery__item {
  position: relative;
  flex: 0 0 58%;
  padding-bottom: 58%;
  overflow: hidden;
  border-radius: 1rem;
  scroll-snap-align: start;
}

.food-gallery__item img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.food-gallery__dots {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 1.5rem;
}

.food-gallery__dots button {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  border: none;
  padding: 0;
  background-color: rgba(26, 29, 35, 0.15);
  transition: background-color 0.2s ease;
}

.food-gallery__dots button.is-active {
  background-color: var(--brand-red);
}

@media (min-width: 768px) {
  .food-gallery__item {
    flex-basis: 30%;
    padding-bottom: 30%;
  }
}

/* =========================================================
   Location
   ========================================================= */
.location-section {
  padding-top: 3rem;
  padding-bottom: 5rem;
}

.location-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

.location-map {
  margin-top: 1.5rem;
  border: 1px solid rgba(26, 29, 35, 0.1);
  line-height: 0;
}

.location-map iframe {
  width: 100%;
  height: 320px;
  display: block;
}

.location-card {
  background-color: var(--brand-paper);
  border: 1px solid rgba(26, 29, 35, 0.1);
  padding: 2.5rem;
}

.location-card__title {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 1.5rem;
  color: var(--brand-red);
  margin-bottom: 1.5rem;
}

.location-card__address {
  display: block;
  transition: opacity 0.2s ease;
}

.location-card__address:hover {
  opacity: 0.7;
}

.location-card__label {
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 600;
  margin-bottom: 0.25rem;
}

.location-card__text {
  color: rgba(26, 29, 35, 0.6);
  font-size: 0.875rem;
  line-height: 1.625;
  margin-bottom: 1.5rem;
}

.location-card__link {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  border-bottom: 1px solid rgba(26, 29, 35, 0.2);
  padding-bottom: 0.25rem;
  transition: color 0.2s ease, border-color 0.2s ease;
}

.location-card__link:hover {
  color: var(--brand-red);
  border-color: var(--brand-red);
}

.location-card__hours {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 0.75rem;
}

.location-card__kicker {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: rgba(26, 29, 35, 0.4);
  margin-bottom: 0.25rem;
}

.location-card__phone {
  font-size: 1.25rem;
  font-family: var(--font-serif);
  transition: color 0.2s ease;
}

.location-card__phone:hover {
  color: var(--brand-red);
}

.location-card--delivery {
  background-color: var(--brand-red);
  color: #fff;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 260px;
}

.location-card--delivery__title {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 1.875rem;
}

.location-card--delivery__desc {
  font-size: 0.875rem;
  opacity: 0.9;
  margin-bottom: 2rem;
}

.location-card--delivery .btn-block {
  background-color: var(--brand-paper);
  color: var(--brand-red);
}

.location-card--delivery .btn-block:hover {
  background-color: var(--brand-ink);
  color: #fff;
}

/* =========================================================
   Footer
   ========================================================= */
.site-footer {
  background-color: #191816;
  color: rgba(255, 255, 255, 0.7);
  padding-top: 4rem;
  padding-bottom: 2rem;
}

.site-footer__top {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  padding-bottom: 3rem;
}

.site-footer__brand {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1.25rem;
}

.site-footer__logo img {
  height: 4.5rem;
  width: auto;
}

.site-footer__social {
  display: flex;
  gap: 1.5rem;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  list-style: none;
}

.site-footer__social a {
  color: rgba(255, 255, 255, 0.7);
}

.site-footer__social a:hover {
  color: var(--brand-red);
  transition: color 0.2s ease;
}

.site-footer__col p {
  margin-bottom: 0.5rem;
}

.site-footer__link {
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.5;
  transition: color 0.2s ease;
}

.site-footer__link:hover {
  color: var(--brand-red);
}

.site-footer__bottom {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  align-items: flex-start;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.site-footer__copy {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: rgba(255, 255, 255, 0.4);
}

.site-footer__credit {
  color: rgba(255, 255, 255, 0.4);
  text-decoration: underline;
}

.site-footer__credit:hover {
  color: var(--brand-red);
}

.site-footer__legal {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.25rem;
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.5);
  list-style: none;
}

.site-footer__legal a:hover {
  color: var(--brand-red);
  transition: color 0.2s ease;
}

.site-footer__group {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-top: 2rem;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: rgba(255, 255, 255, 0.5);
}

.site-footer__group img {
  height: 2.5rem;
  width: auto;
}

.site-footer__group img {
  height: 1.75rem;
  width: auto;
}

/* =========================================================
   Responsive — md (>=768px)
   ========================================================= */
@media (min-width: 768px) {
  .hero__title {
    font-size: 2.75rem;
  }

  .section-title {
    font-size: 3.75rem;
  }

  .story-section__title {
    font-size: 3.75rem;
  }

  .location-card--delivery__title {
    font-size: 2.25rem;
  }

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

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

  .dish-slide {
    flex-basis: 32%;
  }

  .site-footer__top {
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 1.5rem;
  }

  .site-footer__bottom {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }

  .site-header__inner {
    min-height: 6rem;
  }

  .site-logo img {
    height: 4.5rem;
  }

  .primary-nav {
    display: flex;
  }

  .site-header__social {
    display: flex;
  }

  .site-header__view-menu {
    display: block;
  }
}

/* =========================================================
   Responsive — lg (>=1024px)
   ========================================================= */
@media (min-width: 1024px) {
  .hero__grid {
    grid-template-columns: repeat(12, minmax(0, 1fr));
  }

  .hero__content-col {
    grid-column: span 7;
    min-width: 0;
  }

  .hero__image-col {
    grid-column: span 5;
    min-width: 0;
  }

  .hero__title {
    font-size: 3.5rem;
  }

  .dish-slide {
    flex-basis: 23%;
  }
}
