/* =========================================================================
   Taco District — Hero (mural edition)
   Bold brand-red + white hand-painted doodles. Loud, playful, neighborhood.
   ========================================================================= */

/* ---- Design tokens ------------------------------------------------------ */
:root {
  /* Palette — essentially 2-color like the mural */
  --red:        #d62e22; /* primary field */
  --red-bright: #e8392b; /* center highlight */
  --red-deep:   #a81e15; /* depth, hard shadows, pressed states */
  --cream:      #f7efe0; /* primary text + buttons */
  --white:      #ffffff; /* doodles, headline */
  --ink:        #2a1410; /* text on cream */
  --mustard:    #f2b705; /* tiny accent, used sparingly */

  /* Typography */
  --font-display: "Luckiest Guy", system-ui, sans-serif;
  --font-body:    "Inter", system-ui, -apple-system, Segoe UI, Roboto, sans-serif;

  /* Shape */
  --radius-pill: 999px;

  /* Layout */
  --gutter: clamp(1.25rem, 5vw, 4.5rem);
  --maxw: 1280px;
}

/* ---- Reset / base ------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }

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

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--cream);
  background: var(--red);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a { color: inherit; text-decoration: none; }
img, svg { display: block; max-width: 100%; }

:focus-visible {
  outline: 3px solid var(--mustard);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ---- Header / nav ------------------------------------------------------- */
.site-header {
  position: absolute;
  inset: 0 0 auto 0;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: clamp(1.1rem, 2.5vw, 1.9rem) var(--gutter);
}

.brand { display: inline-flex; align-items: center; gap: 0.7rem; color: var(--white); }

.brand__pig { width: clamp(40px, 5vw, 50px); flex: none; color: var(--white); }
.brand__pig svg { width: 100%; height: auto; filter: drop-shadow(0 3px 0 var(--red-deep)); }

.brand__text { display: flex; flex-direction: column; line-height: 1; }

.brand__name {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(1.45rem, 2.6vw, 2rem);
  letter-spacing: 0.5px;
  color: var(--white);
  text-shadow: 0 3px 0 var(--red-deep);
}

.brand__kicker {
  margin-top: 5px;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--cream);
}

.nav { display: flex; align-items: center; gap: clamp(1rem, 2.4vw, 2.1rem); }

.nav > a:not(.nav__cta) {
  position: relative;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--cream);
  transition: color 0.25s ease;
}

.nav > a:not(.nav__cta)::after {
  content: "";
  position: absolute;
  left: 0; bottom: -6px;
  width: 100%; height: 2.5px;
  background: var(--white);
  border-radius: 3px;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}

.nav > a:not(.nav__cta):hover { color: var(--white); }
.nav > a:not(.nav__cta):hover::after { transform: scaleX(1); }

.nav__cta {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.55rem 1.05rem;
  font-size: 0.9rem;
  font-weight: 700;
  white-space: nowrap;
  color: var(--white);
  border: 2px solid rgba(255, 255, 255, 0.55);
  border-radius: var(--radius-pill);
  transition: border-color 0.25s ease, background 0.25s ease;
}

.nav__cta:hover { border-color: var(--white); background: rgba(255, 255, 255, 0.12); }

.nav__cta-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: #7be08f;
  box-shadow: 0 0 0 0 rgba(123, 224, 143, 0.7);
  animation: pulse 2.4s infinite;
}

@keyframes pulse {
  0%   { box-shadow: 0 0 0 0 rgba(123, 224, 143, 0.6); }
  70%  { box-shadow: 0 0 0 7px rgba(123, 224, 143, 0); }
  100% { box-shadow: 0 0 0 0 rgba(123, 224, 143, 0); }
}

/* ---- Hero shell --------------------------------------------------------- */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  overflow: hidden;
  isolation: isolate;
}

/* Solid red field with a warm center glow + faint corrugated-metal ridges */
.hero__bg {
  position: absolute;
  inset: 0;
  z-index: -4;
  background:
    radial-gradient(120% 100% at 50% 32%, var(--red-bright) 0%, var(--red) 46%, var(--red-deep) 100%);
}

.hero__bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    90deg,
    rgba(0, 0, 0, 0.05) 0 2px,
    rgba(255, 255, 255, 0.025) 2px 4px,
    transparent 4px 16px
  );
  opacity: 0.5;
}

/* Soft vignette + top/bottom scrim for legibility */
.hero__overlay {
  position: absolute;
  inset: 0;
  z-index: -3;
  background:
    linear-gradient(180deg, rgba(120, 18, 12, 0.34) 0%, transparent 16%, transparent 76%, rgba(120, 18, 12, 0.30) 100%),
    radial-gradient(120% 120% at 50% 50%, transparent 52%, rgba(120, 18, 12, 0.34));
}

/* Tactile grain (hand-painted feel) */
.hero__grain {
  position: absolute;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  opacity: 0.09;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ---- Doodle layer ------------------------------------------------------- */
.hero__doodles {
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  color: var(--white);
  overflow: hidden;
}

.doodle { position: absolute; }
.doodle svg { width: 100%; height: 100%; }

/* Positioned in the red areas around the text + the column gap (the photo
   now fills the right). Doodles that would fall behind the photo are hidden. */
.doodle--chili { bottom: 8%;  left: 4%;   width: clamp(42px, 5vw, 64px);   transform: rotate(18deg);  opacity: 0.22; animation: float 8s ease-in-out infinite 0.8s; }
.doodle--taco  { top: 11%;   left: 30%;  width: clamp(70px, 9vw, 120px);  transform: rotate(-12deg); opacity: 0.16; animation: float 7s ease-in-out infinite; }
.doodle--onion { top: 50%;   left: -1.5%; width: clamp(52px, 6.5vw, 78px); transform: rotate(-6deg);  opacity: 0.13; animation: float 7.5s ease-in-out infinite 0.6s; }
.doodle--flame { display: none; }
.doodle--lime  { display: none; }
.doodle--td    { display: none; }
.doodle--star  { opacity: 0.5; }
.doodle--star-1 { top: 24%; left: 49%; width: 28px; animation: twinkle 4s ease-in-out infinite; }
.doodle--star-2 { bottom: 28%; left: 47%; width: 22px; animation: twinkle 4s ease-in-out infinite 1.6s; }

@keyframes float {
  0%, 100% { translate: 0 0; }
  50%      { translate: 0 -12px; }
}

@keyframes twinkle {
  0%, 100% { opacity: 0.2; transform: scale(0.85); }
  50%      { opacity: 0.7; transform: scale(1.1); }
}

/* ---- Hero content ------------------------------------------------------- */
.hero__inner {
  position: relative;
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 6.5rem var(--gutter) 4.5rem;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.92fr);
  align-items: center;
  gap: clamp(2rem, 5vw, 4.5rem);
}

.hero__content { position: relative; z-index: 1; }

/* Framed, tilted food photo (sticker style) */
.hero__media {
  position: relative;
  z-index: 1;
  justify-self: center;
  width: 100%;
  max-width: 430px;
}

.hero__photo {
  margin: 0;
  border: 11px solid var(--cream);
  border-radius: 24px;
  overflow: hidden;
  aspect-ratio: 4 / 5;
  transform: rotate(2.5deg);
  box-shadow: 0 34px 64px -24px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(0, 0, 0, 0.06);
  transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}

.hero__photo:hover { transform: rotate(0deg) scale(1.01); }

.hero__photo img { width: 100%; height: 100%; object-fit: cover; display: block; }

.hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.85rem;
  margin: 0 0 1.5rem;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--cream);
}

.hero__rule {
  width: 42px; height: 3px;
  border-radius: 3px;
  background: var(--cream);
}

.hero__title {
  margin: 0;
  max-width: 15ch;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(2.6rem, 6.4vw, 5.4rem);
  line-height: 1;
  letter-spacing: 0.5px;
  color: var(--white);
  text-shadow: 0 4px 0 var(--red-deep), 0 7px 22px rgba(0, 0, 0, 0.28);
}

.hero__title em {
  position: relative;
  font-style: normal;
  color: var(--cream);
  white-space: nowrap;
}

.hero__title em::after {
  content: "";
  position: absolute;
  left: -1%; right: -1%;
  bottom: -0.12em;
  height: 0.2em;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 20' preserveAspectRatio='none'%3E%3Cpath d='M4,13 C40,3 60,18 100,10 C140,3 162,18 196,7' fill='none' stroke='%23f7efe0' stroke-width='5' stroke-linecap='round'/%3E%3C/svg%3E") center/100% 100% no-repeat;
}

.hero__lede {
  margin: 1.4rem 0 0;
  max-width: 44ch;
  font-size: clamp(1rem, 1.5vw, 1.2rem);
  line-height: 1.62;
  color: rgba(247, 239, 224, 0.9);
}

/* ---- Buttons ------------------------------------------------------------ */
.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 2.4rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.95rem 1.75rem;
  font-family: var(--font-body);
  font-size: 1.02rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  border-radius: var(--radius-pill);
  cursor: pointer;
  transition: transform 0.14s ease, box-shadow 0.14s ease, background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.btn__icon { transition: transform 0.2s ease; }

/* Primary: chunky cream button with a hard drop shadow (pressable, comic feel) */
.btn--primary {
  color: var(--red);
  background: var(--cream);
  border: 2px solid var(--cream);
  box-shadow: 0 6px 0 var(--red-deep), 0 16px 28px -14px rgba(0, 0, 0, 0.5);
}

.btn--primary:hover { transform: translateY(-2px); box-shadow: 0 8px 0 var(--red-deep), 0 20px 30px -14px rgba(0, 0, 0, 0.55); }
.btn--primary:hover .btn__icon { transform: translateX(4px); }
.btn--primary:active { transform: translateY(4px); box-shadow: 0 2px 0 var(--red-deep); }

.btn--ghost {
  color: var(--white);
  background: transparent;
  border: 2px solid rgba(255, 255, 255, 0.6);
}

.btn--ghost:hover { border-color: var(--white); background: rgba(255, 255, 255, 0.12); transform: translateY(-2px); }
.btn--ghost:active { transform: translateY(0); }

/* ---- Meta row ----------------------------------------------------------- */
.hero__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem 1.8rem;
  margin: 2.1rem 0 0;
  padding: 0;
  list-style: none;
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--cream);
}

.hero__meta li { display: inline-flex; align-items: center; gap: 0.55rem; }
.hero__meta svg { color: var(--white); opacity: 0.85; }

/* ---- Rotating stamp/seal ------------------------------------------------ */
.hero__seal {
  position: absolute;
  left: -30px;
  bottom: -30px;
  z-index: 3;
  width: clamp(98px, 11vw, 134px);
  aspect-ratio: 1;
  color: var(--cream);
  background: var(--red);
  border-radius: 50%;
  transform: rotate(-4deg);
  box-shadow: 0 14px 30px -10px rgba(0, 0, 0, 0.55), inset 0 0 0 1px rgba(247, 239, 224, 0.18);
}

.seal { width: 100%; height: 100%; animation: spin 28s linear infinite; }
.seal__ring { opacity: 0.6; }

.seal__text {
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.12em;
  fill: var(--cream);
  text-transform: uppercase;
}

.seal__glyph { color: var(--white); }

@keyframes spin { to { transform: rotate(360deg); } }

/* ---- Scroll cue --------------------------------------------------------- */
.hero__scroll {
  position: absolute;
  left: var(--gutter);
  bottom: 1.8rem;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--cream);
  transition: color 0.25s ease;
}

.hero__scroll:hover { color: var(--white); }

.hero__scroll-line {
  position: relative;
  width: 58px; height: 2px;
  background: rgba(247, 239, 224, 0.3);
  border-radius: 2px;
  overflow: hidden;
}

.hero__scroll-line::after {
  content: "";
  position: absolute;
  inset: 0;
  width: 40%;
  background: var(--cream);
  animation: scrollSlide 2.6s ease-in-out infinite;
}

@keyframes scrollSlide {
  0%   { transform: translateX(-110%); }
  60%  { transform: translateX(260%); }
  100% { transform: translateX(260%); }
}

/* ---- Entrance reveal ---------------------------------------------------- */
[data-reveal] {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1), transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
  transition-delay: var(--reveal-delay, 0ms);
}

[data-reveal].is-in { opacity: 1; transform: none; }

.site-header[data-reveal] { transform: translateY(-14px); }
.site-header[data-reveal].is-in { transform: none; }

/* ---- Responsive --------------------------------------------------------- */
/* Collapse the two-column hero to a single column (photo below text) */
@media (max-width: 900px) {
  .hero__inner { grid-template-columns: 1fr; gap: 2.5rem; }
  .hero__media { justify-self: center; max-width: 380px; margin-top: 0.25rem; }
}

/* Mobile: one-screen hero — compact brand/text on top, full-bleed photo filling
   the bottom (so a single mobile screenshot shows everything + the food). */
@media (max-width: 760px) {
  .nav > a:not(.nav__cta) { display: none; }
  .nav__cta { padding: 0.5rem 0.85rem; font-size: 0.82rem; }

  .hero { align-items: stretch; }
  .hero__inner {
    display: flex;
    flex-direction: column;
    min-height: 100svh;
    gap: 0;
    padding: 6.25rem var(--gutter) 0;
  }
  .hero__content { flex: 0 0 auto; z-index: 2; }
  .hero__eyebrow { margin-bottom: 0.9rem; }
  .hero__title { font-size: clamp(2.15rem, 10.5vw, 3.3rem); }
  .hero__lede { display: none; }
  .hero__actions { margin-top: 1.4rem; gap: 0.7rem; }
  .btn { flex: 1 1 auto; justify-content: center; padding-top: 0.85rem; padding-bottom: 0.85rem; }
  .hero__meta { margin-top: 1.2rem; gap: 0.45rem 1.4rem; font-size: 0.9rem; }

  /* photo fills the remaining vertical space, edge-to-edge, anchored at the bottom */
  .hero__media {
    flex: 1 1 auto;
    min-height: 32svh;
    align-self: stretch;
    width: calc(100% + 2 * var(--gutter));
    max-width: none;
    margin: 1.3rem calc(-1 * var(--gutter)) 0;
  }
  .hero__photo {
    height: 100%;
    border: none;
    border-radius: 0;
    transform: none;
    aspect-ratio: auto;
    box-shadow: none;
  }
  .hero__photo img { width: 100%; height: 100%; object-fit: cover; object-position: center; }
  /* soft brand-color blend at the top seam of the photo */
  .hero__media::before {
    content: "";
    position: absolute;
    left: 0; right: 0; top: 0;
    height: 84px;
    background: linear-gradient(180deg, var(--red) 0%, transparent 100%);
    z-index: 2;
    pointer-events: none;
  }

  .hero__seal { display: none; }
  .hero__scroll { display: none; }
  .doodle--onion, .doodle--taco, .doodle--star-1, .doodle--star-2 { display: none; }
  .doodle--chili { top: 15%; left: 6%; bottom: auto; opacity: 0.14; }
}

/* ---- Reduced motion ----------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  .seal, .nav__cta-dot, .hero__scroll-line::after,
  .doodle { animation: none !important; }
  html { scroll-behavior: auto; }
  [data-reveal] { transition: none; }
}
