/* =========================================================
   Call's Family Drive-In — Homepage Styles
   Palette pulled from the badge logo: brick red, cream,
   root-beer brown, mustard gold, near-black ink.
   ========================================================= */

:root {
  --red: #C1272D;
  --red-dark: #9C1F24;
  --cream: #F4E9D2;
  --cream-light: #FBF6E9;
  --ink: #241811;
  --brown: #3E2213;
  --brown-dark: #2A1509;
  --gold: #E8A93C;
  --gold-light: #F4C868;
  --white: #FFFDF8;

  --display: "Anton", "Arial Narrow", sans-serif;
  --script: "Permanent Marker", cursive;
  --body: "Work Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  --max: 1180px;
  --radius: 14px;
  --shadow: 0 12px 30px rgba(36, 24, 17, 0.18);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

body {
  margin: 0;
  font-family: var(--body);
  color: var(--ink);
  background: var(--cream-light);
  -webkit-font-smoothing: antialiased;
}

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

.wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 24px;
}

a { color: inherit; }

h1, h2, h3 {
  font-family: var(--display);
  font-weight: 400;
  letter-spacing: 0.5px;
  margin: 0;
  text-transform: uppercase;
}

.eyebrow {
  font-family: var(--script);
  color: var(--gold);
  font-size: 1.15rem;
  display: inline-block;
  transform: rotate(-2deg);
  margin-bottom: 6px;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--display);
  letter-spacing: 0.5px;
  text-transform: uppercase;
  text-decoration: none;
  font-size: 1rem;
  padding: 14px 28px;
  border-radius: 100px;
  border: 3px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 3px;
}

.btn-red {
  background: var(--red);
  color: var(--white);
  box-shadow: 0 6px 0 var(--red-dark);
}
.btn-red:hover { box-shadow: 0 8px 0 var(--red-dark); }
.btn-red:active { transform: translateY(2px); box-shadow: 0 3px 0 var(--red-dark); }

.btn-gold {
  background: var(--gold);
  color: var(--brown-dark);
  box-shadow: 0 6px 0 #a9762a;
}
.btn-gold:hover { box-shadow: 0 8px 0 #a9762a; }
.btn-gold:active { transform: translateY(2px); box-shadow: 0 3px 0 #a9762a; }

.btn-outline {
  background: transparent;
  border-color: currentColor;
  color: inherit;
}
.btn-outline:hover { background: rgba(255,255,255,0.12); }

/* ---------- Scallop dividers (drive-in canopy edge) ---------- */
.scallop {
  height: 30px;
  width: 100%;
  background-repeat: repeat-x;
  background-size: 36px 36px;
  position: relative;
  z-index: 2;
}
.scallop-down-cream {
  background-image: radial-gradient(circle at 18px 0, transparent 18px, var(--cream-light) 19px);
}
.scallop-down-brown {
  background-image: radial-gradient(circle at 18px 0, transparent 18px, var(--brown-dark) 19px);
}
.scallop-down-red {
  background-image: radial-gradient(circle at 18px 0, transparent 18px, var(--red) 19px);
}
.scallop-up-cream {
  transform: rotate(180deg);
  background-image: radial-gradient(circle at 18px 0, transparent 18px, var(--cream-light) 19px);
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--brown-dark);
  border-bottom: 4px solid var(--gold);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 24px;
  max-width: var(--max);
  margin: 0 auto;
  gap: 16px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--white);
}
.brand img { width: 54px; height: 54px; }
.brand-text {
  font-family: var(--display);
  font-size: 1.2rem;
  color: var(--white);
  line-height: 1.1;
  letter-spacing: 0.5px;
}
.brand-text span {
  display: block;
  font-family: var(--body);
  font-weight: 600;
  font-size: 0.6rem;
  color: var(--gold-light);
  letter-spacing: 3px;
  text-transform: uppercase;
  margin-top: 2px;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 28px;
}
.main-nav a {
  color: var(--white);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.3px;
  position: relative;
  padding: 6px 0;
}
.main-nav a::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 0%;
  height: 2px;
  background: var(--gold);
  transition: width 0.2s ease;
}
.main-nav a:hover::after { width: 100%; }

.nav-toggle {
  display: none;
  background: none;
  border: 2px solid var(--gold);
  border-radius: 8px;
  width: 44px;
  height: 44px;
  color: var(--white);
  font-size: 1.4rem;
  cursor: pointer;
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 88vh;
  display: flex;
  align-items: center;
  color: var(--white);
  background: linear-gradient(180deg, rgba(20,12,8,0.55), rgba(20,12,8,0.78)), url("images/hero-cover.jpg") center 30% / cover no-repeat;
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 0%, rgba(232,169,60,0.18), transparent 55%);
  pointer-events: none;
}
.hero-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 90px 24px 70px;
  position: relative;
  z-index: 2;
}
.hero-badge {
  display: inline-block;
  background: var(--red);
  padding: 8px 18px;
  border-radius: 100px;
  font-weight: 700;
  font-size: 0.8rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 22px;
  box-shadow: 0 4px 0 var(--red-dark);
  animation: flicker 3.6s infinite;
}
@keyframes flicker {
  0%, 92%, 100% { opacity: 1; }
  93% { opacity: 0.55; }
  95% { opacity: 1; }
  96% { opacity: 0.6; }
  97% { opacity: 1; }
}
@media (prefers-reduced-motion: reduce) {
  .hero-badge { animation: none; }
}
.hero h1 {
  font-size: clamp(3rem, 8vw, 6rem);
  line-height: 0.95;
  text-shadow: 0 6px 24px rgba(0,0,0,0.4);
  max-width: 780px;
}
.hero h1 .script {
  display: block;
  font-family: var(--script);
  text-transform: none;
  color: var(--gold-light);
  font-size: 0.42em;
  transform: rotate(-2deg);
  margin-top: 6px;
}
.hero p.sub {
  font-size: 1.15rem;
  max-width: 520px;
  margin: 22px 0 34px;
  color: #F1E6D0;
}
.hero-ctas { display: flex; gap: 16px; flex-wrap: wrap; }

/* ---------- Team / Join band ---------- */
.team-band {
  background: var(--cream-light);
  padding: 80px 0;
}
.team-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  align-items: center;
}
.team-grid img {
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  transform: rotate(-1.2deg);
}
.team-copy .eyebrow { font-size: 1rem; }
.team-copy h2 { font-size: clamp(2rem, 4vw, 2.8rem); color: var(--red); margin-bottom: 18px; }
.team-copy p { font-size: 1.05rem; line-height: 1.7; margin-bottom: 26px; color: #4a382a; }

/* ---------- Menu ---------- */
.menu-section {
  background: var(--brown-dark);
  color: var(--white);
  padding: 90px 0 100px;
  position: relative;
}
.menu-head { text-align: center; margin-bottom: 50px; }
.menu-head .eyebrow { color: var(--gold-light); }
.menu-head h2 { font-size: clamp(2.2rem, 5vw, 3.4rem); }
.menu-head p { color: #d8c6ac; margin-top: 12px; font-size: 1.05rem; }

.menu-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 26px;
}
.menu-card {
  background: var(--white);
  color: var(--ink);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  transition: transform 0.2s ease;
}
.menu-card:hover { transform: translateY(-6px); }
.menu-card .photo {
  aspect-ratio: 5 / 3;
  overflow: hidden;
  position: relative;
}
.menu-card .photo img { width: 100%; height: 100%; object-fit: cover; }
.menu-card .tag {
  position: absolute;
  top: 12px; left: 12px;
  background: var(--gold);
  color: var(--brown-dark);
  font-family: var(--display);
  font-size: 0.7rem;
  padding: 5px 10px;
  border-radius: 100px;
  letter-spacing: 1px;
}
.menu-card .info { padding: 18px 20px 22px; flex: 1; display: flex; flex-direction: column; }
.menu-card h3 { font-size: 1.15rem; color: var(--red-dark); margin-bottom: 8px; }
.menu-card p { font-size: 0.9rem; color: #5b4735; line-height: 1.5; flex: 1; }
.menu-card .price {
  font-family: var(--display);
  color: var(--brown-dark);
  font-size: 1.2rem;
  margin-top: 14px;
}

.menu-cta { text-align: center; margin-top: 50px; }

/* ---------- How Do You Call's ---------- */
.how-section {
  background: var(--cream-light);
  padding: 90px 0;
  text-align: center;
}
.how-section .eyebrow { color: var(--red); }
.how-section h2 { font-size: clamp(2.2rem, 5vw, 3.2rem); color: var(--ink); margin-bottom: 50px; }
.how-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 34px;
}
.how-card {
  background: var(--white);
  border: 3px solid var(--gold);
  border-radius: var(--radius);
  padding: 40px 26px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.how-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.how-card img { width: 68px; height: 68px; margin: 0 auto 20px; }
.how-card h3 { font-size: 1.15rem; color: var(--red); margin-bottom: 10px; }
.how-card p { font-size: 0.95rem; color: #55432f; line-height: 1.55; }

/* ---------- Root beer feature ---------- */
.rootbeer-section {
  background: var(--brown);
  color: var(--white);
  padding: 90px 0;
  position: relative;
  overflow: hidden;
}
.rootbeer-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 60px;
  align-items: center;
}
.rootbeer-grid img {
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  transform: rotate(1.5deg);
}
.rootbeer-copy .eyebrow { color: var(--gold-light); }
.rootbeer-copy h2 {
  font-size: clamp(2.1rem, 4.5vw, 3rem);
  line-height: 1.05;
  margin-bottom: 20px;
}
.rootbeer-copy p {
  color: #E7D8BF;
  line-height: 1.75;
  font-size: 1.02rem;
  margin-bottom: 30px;
}
.rootbeer-links { display: flex; gap: 16px; flex-wrap: wrap; }

/* ---------- About ---------- */
.about-section {
  background: var(--cream-light);
  padding: 90px 0;
}
.about-grid {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 60px;
  align-items: center;
}
.about-grid img {
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.about-copy .eyebrow { color: var(--red); }
.about-copy h2 { font-size: clamp(2.1rem, 4.5vw, 3rem); color: var(--ink); margin-bottom: 20px; }
.about-copy p { font-size: 1.05rem; line-height: 1.75; color: #4a382a; }

/* ---------- Support local banner ---------- */
.support-banner {
  background: var(--red);
  color: var(--white);
  padding: 70px 0;
  text-align: center;
}
.support-banner .eyebrow { color: var(--gold-light); }
.support-banner h2 { font-size: clamp(1.9rem, 4vw, 2.6rem); max-width: 700px; margin: 0 auto 18px; }
.support-banner p { max-width: 620px; margin: 0 auto 30px; line-height: 1.7; color: #FBE3D8; }

/* ---------- Featured item ---------- */
.feature-item-section { background: var(--brown-dark); padding: 90px 0; }
.feature-item-grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 60px;
  align-items: center;
}
.feature-item-photo {
  width: 100%;
  max-height: 560px;
  object-fit: cover;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  transform: rotate(-1.5deg);
}
.feature-item-copy .eyebrow { color: var(--gold-light); }
.feature-item-copy h2 {
  color: var(--white);
  font-size: clamp(2.1rem, 4.5vw, 3rem);
  margin-bottom: 18px;
}
.feature-item-copy p {
  color: #E7D8BF;
  font-size: 1.05rem;
  line-height: 1.75;
  margin-bottom: 30px;
}

@media (max-width: 980px) {
  .feature-item-grid { grid-template-columns: 1fr; }
  .feature-item-photo { order: -1; max-height: 420px; }
}

/* ---------- Contact ---------- */
.contact-section {
  background: var(--cream-light);
  padding: 90px 0;
}
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
}
.contact-copy .eyebrow { color: var(--red); }
.contact-copy h2 { font-size: clamp(2rem, 4.5vw, 2.8rem); color: var(--ink); margin-bottom: 16px; }
.contact-copy p { color: #4a382a; line-height: 1.7; margin-bottom: 10px; }

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.contact-form label {
  font-weight: 700;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--brown-dark);
  margin-bottom: 4px;
  display: block;
}
.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 14px 16px;
  border-radius: 10px;
  border: 2px solid #d9c6a3;
  background: var(--white);
  font-family: var(--body);
  font-size: 1rem;
  color: var(--ink);
}
.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--red);
}
.contact-form textarea { resize: vertical; min-height: 120px; }
.form-msg {
  font-weight: 600;
  color: var(--red-dark);
  min-height: 1.2em;
  margin: 0;
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--brown-dark);
  color: var(--white);
  padding: 60px 0 26px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}
.footer-grid img.footer-logo { width: 190px; margin-bottom: 14px; }
.footer-grid h4 {
  font-family: var(--display);
  font-size: 0.95rem;
  letter-spacing: 1px;
  color: var(--gold-light);
  margin-bottom: 14px;
  text-transform: uppercase;
}
.footer-grid p, .footer-grid a {
  color: #D8C6AC;
  text-decoration: none;
  line-height: 1.7;
  font-size: 0.95rem;
  display: block;
}
.footer-grid a:hover { color: var(--gold-light); }
.social-row { display: flex; gap: 12px; margin-top: 10px; }
.social-row a {
  width: 40px; height: 40px;
  border: 2px solid var(--gold);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.9rem;
}
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.12);
  padding-top: 22px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 0.85rem;
  color: #B9A588;
}

/* ---------- Reveal on scroll ---------- */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .menu-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .team-grid, .rootbeer-grid, .about-grid, .contact-grid {
    grid-template-columns: 1fr;
  }
  .rootbeer-grid img, .about-grid img { order: -1; }
}

@media (max-width: 760px) {
  .main-nav { display: none; }
  .nav-toggle { display: block; }
  .site-header.open .main-nav {
    display: flex;
    position: absolute;
    top: 100%; left: 0; right: 0;
    background: var(--brown-dark);
    flex-direction: column;
    padding: 20px 24px 26px;
    gap: 18px;
    border-bottom: 4px solid var(--gold);
  }
  .how-grid { grid-template-columns: 1fr; }
  .menu-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .hero { min-height: 100vh; }
}

/* =========================================================
   Menu Page
   ========================================================= */

.menu-hero {
  position: relative;
  min-height: 46vh;
  display: flex;
  align-items: center;
  color: var(--white);
  background: linear-gradient(180deg, rgba(20,12,8,0.6), rgba(20,12,8,0.82)), url("images/hero-cover.jpg") center 35% / cover no-repeat;
}
.menu-hero-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 70px 24px 56px;
  text-align: center;
  width: 100%;
}
.menu-hero h1 {
  font-size: clamp(2.6rem, 6vw, 4.4rem);
  text-shadow: 0 6px 24px rgba(0,0,0,0.4);
}
.menu-hero p {
  color: #F1E6D0;
  font-size: 1.05rem;
  margin-top: 14px;
}

/* Sticky category nav */
.category-nav {
  position: sticky;
  top: 66px;
  z-index: 90;
  background: var(--cream-light);
  border-bottom: 3px solid var(--gold);
}
.category-nav-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 14px 24px;
  display: flex;
  gap: 10px;
  overflow-x: auto;
  scrollbar-width: none;
}
.category-nav-inner::-webkit-scrollbar { display: none; }
.category-nav a {
  flex-shrink: 0;
  text-decoration: none;
  font-family: var(--display);
  font-size: 0.82rem;
  letter-spacing: 0.5px;
  color: var(--brown-dark);
  background: var(--white);
  border: 2px solid var(--gold);
  padding: 9px 18px;
  border-radius: 100px;
  transition: background 0.15s ease, color 0.15s ease;
  white-space: nowrap;
}
.category-nav a:hover,
.category-nav a.active {
  background: var(--red);
  border-color: var(--red);
  color: var(--white);
}

/* Category sections */
.category-section {
  padding: 70px 0;
  scroll-margin-top: 130px;
}
.category-section.bg-cream { background: var(--cream-light); }
.category-section.bg-brown { background: var(--brown-dark); color: var(--white); }

.category-head {
  text-align: center;
  margin-bottom: 44px;
}
.category-head .eyebrow { color: var(--red); }
.bg-brown .category-head .eyebrow { color: var(--gold-light); }
.category-head h2 { font-size: clamp(2rem, 4.5vw, 2.8rem); }
.category-head p { margin-top: 10px; font-size: 1rem; opacity: 0.85; }

/* Featured items keep the big card style from homepage */
.featured-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 26px;
}

/* Compact row cards for the rest of the menu */
.menu-row-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}
.menu-row {
  display: flex;
  align-items: center;
  gap: 20px;
  background: var(--white);
  border-radius: 14px;
  padding: 16px;
  box-shadow: 0 4px 14px rgba(36,24,17,0.10);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.bg-brown .menu-row {
  background: rgba(255,253,248,0.06);
  box-shadow: none;
  border: 1px solid rgba(232,169,60,0.25);
}
.menu-row:hover { transform: translateY(-3px); box-shadow: 0 8px 20px rgba(36,24,17,0.16); }
.menu-row .row-thumb {
  width: 110px;
  height: 110px;
  border-radius: 12px;
  object-fit: cover;
  flex-shrink: 0;
  background: var(--cream);
}
.menu-row .row-text { flex: 1; min-width: 0; }
.menu-row .row-text h3 {
  font-family: var(--display);
  text-transform: none;
  font-size: 1.02rem;
  letter-spacing: 0.2px;
  color: var(--red-dark);
  margin-bottom: 4px;
}
.bg-brown .menu-row .row-text h3 { color: var(--gold-light); }
.menu-row .row-text p {
  font-size: 0.85rem;
  line-height: 1.45;
  color: #5b4735;
  margin: 0;
}
.bg-brown .menu-row .row-text p { color: #D8C6AC; }
.menu-row .row-price {
  font-family: var(--display);
  font-size: 1.05rem;
  color: var(--ink);
  flex-shrink: 0;
  white-space: nowrap;
}
.bg-brown .menu-row .row-price { color: var(--white); }

/* Menu closing CTA */
.menu-footer-cta {
  background: var(--red);
  color: var(--white);
  text-align: center;
  padding: 70px 0;
}
.menu-footer-cta h2 { font-size: clamp(1.9rem, 4vw, 2.6rem); margin-bottom: 16px; }
.menu-footer-cta p { max-width: 560px; margin: 0 auto 28px; color: #FBE3D8; line-height: 1.6; }

@media (max-width: 760px) {
  .featured-grid { grid-template-columns: 1fr; }
  .menu-row-grid { grid-template-columns: 1fr; }
  .category-nav { top: 0; }
  .menu-row { align-items: flex-start; }
  .menu-row .row-thumb { width: 88px; height: 88px; }
  .menu-row .row-price { margin-left: auto; }
}

/* Netlify Forms honeypot — visually hidden, still present in the DOM */
.hp-field {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
