/* ==========================================================================
   Home page — Chick-fil-A Raynham
   Intro curtain, hero, journey, visit, catering, explore, closing banner.
   Shared chrome (header, footer, buttons, reveals) lives in theme.css.
   ========================================================================== */

/* ==========================================================================
   1. Intro
   Two red doors with the logo part to reveal a clean white stage where the
   real Chick-fil-A cows (assets/video/cows-intro) come to life under the
   name and the address. Then the stage zooms through into the page.
   ========================================================================== */
.intro {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: #fff;
  overflow: hidden;
  transition: transform .9s var(--ease-out), opacity .7s ease .15s, visibility .9s;
}

.intro.is-done {
  transform: scale(1.12);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

/* A white backdrop inside the stage's stacking context, so the cow clip's
   multiply blend has something to multiply against. */
.intro__stage::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: #fff;
}

/* The doors */
.intro__door {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 50.5%;
  z-index: 5;
  background: var(--red);
  transition: transform 1s var(--ease-out);
}

.intro__door--left  { left: 0; }
.intro__door--right { right: 0; }

.intro.is-open .intro__door--left  { transform: translateX(-102%); }
.intro.is-open .intro__door--right { transform: translateX(102%); }

/* The mark on the doors */
.intro__mark {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 6;
  width: clamp(96px, 16vw, 160px);
  transform: translate(-50%, -50%);
  animation: markIn 1s var(--spring) both;
  transition: transform .6s var(--ease), opacity .4s ease;
}

.intro.is-open .intro__mark {
  animation: none; /* let the transition take over from the entrance keyframes */
  transform: translate(-50%, -50%) scale(1.6);
  opacity: 0;
  pointer-events: none;
}

@keyframes markIn {
  from { opacity: 0; transform: translate(-50%, -50%) scale(.5); }
  to   { opacity: 1; transform: translate(-50%, -50%) scale(1); }
}

/* The stage */
.intro__stage {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: grid;
  grid-template-rows: auto 1fr auto;
  justify-items: center;
  padding: clamp(20px, 5vh, 44px) 20px clamp(26px, 6vh, 56px);
  text-align: center;
}

.intro__title {
  position: relative;
  z-index: 3;
  margin-top: clamp(4px, 2vh, 20px);
  opacity: 0;
}

.intro.is-open .intro__title { opacity: 1; }

.intro__title h1 {
  font-size: clamp(2.4rem, 7.2vw, 5.4rem);
  line-height: .98;
  font-weight: 600;
  letter-spacing: -.03em;
}

.intro__title h1 .w {
  display: inline-block;
  opacity: 0;
}

.intro.is-open .intro__title h1 .w { animation: wordIn .9s var(--ease-out) both; }
.intro.is-open .intro__title h1 .w:nth-child(1) { animation-delay: .55s; }
.intro.is-open .intro__title h1 .w:nth-child(2) { animation-delay: .68s; }

.intro__title h1 em { color: var(--red); }

@keyframes wordIn {
  from { opacity: 0; transform: translateY(.5em); }
  to   { opacity: 1; transform: none; }
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(18px); }
  to   { opacity: 1; transform: none; }
}

/* The cows */
.intro__cows {
  position: relative;
  width: min(100%, 1100px);
  align-self: center;
  margin-top: -1vh;
}

.intro__cows video {
  width: 100%;
  height: min(60vh, 680px);
  object-fit: contain;
  /* The clip is shot on pure white: multiply makes that white vanish onto the stage */
  mix-blend-mode: multiply;
  opacity: 0;
  transform: translateY(24px) scale(.97);
  transition: opacity .8s ease .35s, transform 1.1s var(--ease-out) .35s;
}

.intro.is-open .intro__cows video {
  opacity: 1;
  transform: none;
}

/* Soft floor shadow under the herd */
.intro__cows::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 6%;
  width: 60%;
  height: 26px;
  transform: translateX(-50%);
  border-radius: 50%;
  background: radial-gradient(ellipse at center, rgba(31, 26, 23, .18), transparent 70%);
  opacity: 0;
  transition: opacity 1s ease .6s;
}

.intro.is-open .intro__cows::after { opacity: 1; }

/* The address: the one thing to remember */
.intro__where {
  display: grid;
  justify-items: center;
  gap: 4px;
  opacity: 0;
}

.intro__where strong {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3.6vw, 2.6rem);
  font-weight: 600;
  letter-spacing: -.02em;
  line-height: 1.1;
  color: var(--red);
}

.intro__where span {
  font-size: clamp(1rem, 1.8vw, 1.2rem);
  font-weight: 700;
  color: var(--ink-2);
}

.intro.is-open .intro__where { animation: fadeUp .8s var(--ease-out) 1.1s both; }

/* Skip + progress */
.intro__skip {
  position: absolute;
  top: clamp(16px, 3vw, 28px);
  right: clamp(16px, 3vw, 28px);
  z-index: 8;
  font: inherit;
  font-size: .8rem;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: #fff;
  background: rgba(0, 0, 0, .2);
  border: 1px solid rgba(255, 255, 255, .5);
  border-radius: var(--pill);
  padding: 10px 18px;
  cursor: pointer;
  transition: background .25s ease, color .25s ease, border-color .25s ease;
}

.intro.is-open .intro__skip {
  color: var(--red);
  background: #fff;
  border-color: var(--red-tint);
}

.intro__skip:hover { background: var(--red); color: #fff; border-color: var(--red); }

.intro__progress {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 8;
  height: 4px;
  background: rgba(0, 0, 0, .06);
}

.intro__progress span {
  display: block;
  height: 100%;
  background: var(--red);
  transform-origin: left;
  transform: scaleX(0);
}

.intro.is-open .intro__progress span {
  animation: progress var(--intro-duration, 6000ms) linear forwards;
}

@keyframes progress { to { transform: scaleX(1); } }

/* ==========================================================================
   2. Hero
   ========================================================================== */
.hero {
  position: relative;
  padding: clamp(36px, 6vw, 80px) 0 clamp(48px, 7vw, 96px);
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  top: -30%;
  right: -10%;
  width: 56vw;
  max-width: 900px;
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(229, 22, 54, .09), transparent 60%);
  pointer-events: none;
}

.hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr);
  align-items: center;
  gap: clamp(32px, 6vw, 80px);
}

.hero h1 {
  font-size: clamp(3rem, 7.2vw, 6rem);
  margin-bottom: 24px;
}

.hero-lede {
  font-size: clamp(1.08rem, 1.7vw, 1.28rem);
  color: var(--ink-2);
  max-width: 50ch;
  margin-bottom: 30px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
}

/* The address, sized to be remembered */
.hero-address {
  margin-top: 30px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
}

.hero-address a {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--ink);
  font-family: var(--font-display);
  font-size: clamp(1.3rem, 2.4vw, 1.85rem);
  font-weight: 600;
  letter-spacing: -.02em;
  line-height: 1.15;
  transition: color .2s ease;
}

.hero-address a:hover { color: var(--red); }
.hero-address a svg { width: 26px; height: 26px; flex: none; color: var(--red); }

.hero-address small {
  display: block;
  margin-top: 6px;
  font-size: .98rem;
  font-weight: 600;
  color: var(--ink-2);
}

/* Photo stack */
.hero-media {
  position: relative;
  padding: 10px 24px 34px 0;
}

.hero-photo {
  position: relative;
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  transform: rotate(2deg);
  transition: transform .7s var(--ease);
}

.hero-media:hover .hero-photo { transform: rotate(0); }

.hero-photo {
  aspect-ratio: 4 / 3;
  background: #fff;
}

/* An always-running slideshow: the team, the cows, the food */
.hero-photo img,
.hero-photo video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transform: scale(1.04);
  transition: opacity 1.2s ease, transform 7s linear;
}

.hero-photo video { object-fit: contain; }

.hero-photo .is-on {
  opacity: 1;
  transform: scale(1);
}

/* Rotating "our pleasure" badge */
.hero-badge {
  position: absolute;
  right: -8px;
  bottom: -2px;
  width: clamp(120px, 14vw, 160px);
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--red);
  box-shadow: var(--shadow);
}

.hero-badge svg { position: absolute; inset: 0; width: 100%; height: 100%; animation: spin 18s linear infinite; }
.hero-badge svg text { font-family: var(--font-body); font-size: 12.6px; font-weight: 800; letter-spacing: .22em; text-transform: uppercase; fill: #fff; }
.hero-badge img { background: #fff; border-radius: 22%; padding: 6px; }
.hero-badge img { width: 42%; position: relative; }

@keyframes spin { to { transform: rotate(360deg); } }

/* Little sticker at the top-left of the photo */
.hero-sticker {
  position: absolute;
  top: -8px;
  left: -14px;
  z-index: 2;
}

/* ==========================================================================
   3. Operator — "Meet Saide"
   ========================================================================== */
.meet { background: var(--paper-2); }

.meet-grid {
  display: grid;
  grid-template-columns: minmax(0, 380px) minmax(0, 1fr);
  gap: clamp(32px, 6vw, 80px);
  align-items: start;
}

.meet-aside { position: sticky; top: calc(var(--header-h) + 20px); }

.meet-portrait {
  position: relative;
  border-radius: var(--r-lg);
  overflow: hidden;
  background: #fff;
  box-shadow: var(--shadow-lg);
}

.meet-portrait img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  object-position: center 35%;
}

.meet-portrait figcaption {
  padding: 22px 26px 24px;
}

.meet-portrait figcaption strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 600;
  line-height: 1.1;
}

.meet-portrait figcaption span { color: var(--red); font-weight: 700; font-size: .86rem; letter-spacing: .1em; text-transform: uppercase; }

.meet-quote {
  margin-top: 22px;
  padding: 24px 26px;
  border-radius: var(--r);
  background: var(--red);
  color: #fff;
  font-family: var(--font-display);
  font-size: 1.2rem;
  line-height: 1.4;
}

.meet-quote::before { content: "\201C"; display: block; font-size: 3rem; line-height: .6; color: rgba(255, 255, 255, .7); margin-bottom: 10px; }

.meet-body h2 { font-size: clamp(2.2rem, 4.8vw, 3.6rem); margin-bottom: 26px; }

.meet-body p {
  font-size: 1.08rem;
  color: var(--ink-2);
  margin-bottom: 20px;
  max-width: 64ch;
}

.meet-body p.lead {
  font-size: clamp(1.2rem, 2vw, 1.45rem);
  color: var(--ink);
  font-family: var(--font-display);
  font-weight: 500;
  line-height: 1.4;
}

.meet-sign {
  font-family: var(--font-display);
  font-size: 1.5rem;
  color: var(--red);
  margin-top: 8px;
}

/* Journey timeline */
.journey {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
  gap: 14px;
  margin: 40px 0 10px;
  counter-reset: stop;
}

.journey li {
  position: relative;
  padding: 24px 18px 20px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
}

.journey li::before {
  content: "";
  position: absolute;
  top: -6px;
  left: 18px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--red);
  box-shadow: 0 0 0 4px var(--paper-2);
}

.journey li:last-child::before { background: var(--red-deep); }

.journey small {
  display: block;
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 6px;
}

.journey strong {
  display: block;
  font-size: .98rem;
  line-height: 1.3;
  color: var(--ink);
}

/* ==========================================================================
   4. Visit — map, hours, directions
   ========================================================================== */
.visit-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(20px, 3vw, 32px);
}

.visit-map {
  position: relative;
  min-height: 420px;
  border-radius: var(--r-lg);
  overflow: hidden;
  background: var(--sand);
  box-shadow: var(--shadow);
}

.visit-map iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  filter: saturate(.85) contrast(1.02);
}

.visit-map__pin {
  position: absolute;
  left: 20px;
  bottom: 20px;
  z-index: 2;
  display: grid;
  gap: 4px;
  padding: 16px 18px;
  background: #fff;
  border-radius: var(--r);
  box-shadow: var(--shadow);
  max-width: 280px;
}

.visit-map__pin strong { font-family: var(--font-display); font-size: 1.2rem; }
.visit-map__pin span { color: var(--ink-2); font-size: .92rem; }

.visit-cards { display: grid; gap: clamp(16px, 2vw, 22px); }

.hours {
  width: 100%;
  border-collapse: collapse;
  font-size: .98rem;
}

.hours td {
  padding: 10px 0;
  border-bottom: 1px dashed var(--line);
}

.hours tr:last-child td { border-bottom: none; }
.hours td:last-child { text-align: right; font-weight: 600; }
.hours tr.is-today td { color: var(--red); font-weight: 800; }
.hours tr.is-today td:first-child::after { content: "Today"; margin-left: 10px; font-size: .68rem; letter-spacing: .12em; text-transform: uppercase; padding: 3px 8px; border-radius: var(--pill); background: var(--red-tint); }
.hours tr.is-closed td:last-child { color: var(--red); }

.visit-card__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.visit-card__head h3 { margin: 0; }

.direction-links { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.direction-links .btn { padding: 12px 18px; font-size: .9rem; }

.contact-row { display: grid; gap: 10px; }
.contact-row a { color: var(--ink); font-weight: 700; text-decoration: none; }
.contact-row a:hover { color: var(--red); }

/* ==========================================================================
   5. Catering
   ========================================================================== */
.catering {
  background: var(--red);
  color: rgba(255, 255, 255, .92);
  overflow: hidden;
}

.catering-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(32px, 6vw, 80px);
  align-items: center;
}

.catering h2 { color: #fff; font-size: clamp(2.2rem, 4.8vw, 3.6rem); margin-bottom: 20px; }
.catering h2 em { color: #fff; }
.catering p { font-size: 1.08rem; margin-bottom: 18px; max-width: 54ch; }
.catering .eyebrow { color: #fff; background: rgba(255, 255, 255, .14); padding: 6px 12px; border-radius: var(--pill); }

.catering-points {
  list-style: none;
  display: grid;
  gap: 10px;
  margin: 24px 0 30px;
}

.catering-points li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  color: #fff;
}

.catering-points li::before {
  content: "";
  flex: none;
  width: 22px;
  height: 22px;
  margin-top: 2px;
  border-radius: 50%;
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 12.5l4 4 8-9' fill='none' stroke='%23e51636' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 14px no-repeat;
}

.catering-media {
  position: relative;
}

.catering-media img {
  width: 100%;
  aspect-ratio: 5 / 4;
  object-fit: cover;
  border-radius: var(--r-lg);
  box-shadow: 0 40px 80px rgba(0, 0, 0, .3);
}

.catering-media .sticker {
  position: absolute;
  top: 18px;
  left: -12px;
  transform: rotate(-6deg);
}

/* ==========================================================================
   6. Explore cards
   ========================================================================== */
.explore-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(18px, 2.5vw, 28px);
}

.explore-card {
  position: relative;
  display: block;
  min-height: 420px;
  border-radius: var(--r-lg);
  overflow: hidden;
  text-decoration: none;
  color: #fff;
  background: var(--red-deep);
  box-shadow: var(--shadow);
  transition: transform .5s var(--ease), box-shadow .5s var(--ease);
}

.explore-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }

.explore-card img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1.2s var(--ease);
}

.explore-card:hover img { transform: scale(1.06); }

.explore-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(120, 10, 30, 0) 30%, rgba(120, 10, 30, .9) 100%);
}

.explore-body {
  position: absolute;
  inset: auto 0 0 0;
  z-index: 1;
  padding: 28px;
}

.explore-body h3 {
  color: #fff;
  font-size: 1.7rem;
  margin-bottom: 8px;
}

.explore-body p { color: rgba(255, 255, 255, .8); margin-bottom: 14px; font-size: .96rem; }

.explore-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 800;
  color: #fff;
}

.explore-cta::after { content: "\2192"; transition: transform .3s var(--ease); }
.explore-card:hover .explore-cta::after { transform: translateX(5px); }

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 960px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-media { padding: 0 20px 30px 0; max-width: 620px; }
  .meet-grid { grid-template-columns: 1fr; }
  .meet-aside { position: static; max-width: 520px; }
  .visit-grid { grid-template-columns: 1fr; }
  .visit-map { min-height: 340px; }
  .catering-grid { grid-template-columns: 1fr; }
  .explore-grid { grid-template-columns: 1fr; }
  .explore-card { min-height: 320px; }
}

@media (max-width: 640px) {
  .hero h1 { font-size: 2.9rem; }
  .intro__cows video { height: min(46vh, 420px); }
  .hero-badge { width: 104px; right: 0; }
  .visit-map__pin { left: 12px; right: 12px; bottom: 12px; max-width: none; }
}
