/* ===========================================================
   Southern Yankee Pizza — style.css
   Palette pulled from the truck's logo: charcoal skyline,
   Italian flag green/white/red, Tennessee-badge orange.
   =========================================================== */

:root {
  --charcoal: #26241f;
  --charcoal-2: #322f28;
  --cream: #f4efe2;
  --cream-2: #eae2cd;
  --ink: #211f1a;
  --forest: #1b6b41;
  --brick: #a32c2c;
  --tn-orange: #de7b2b;
  --tn-orange-text: #e8863f;   /* AA-safe for text on charcoal backgrounds */
  --tn-orange-deep: #a8501a;   /* AA-safe for text on cream backgrounds */
  --white: #fffdf8;

  --font-display: "Big Shoulders Display", sans-serif;
  --font-body: "Fraunces", serif;

  --max-width: 1100px;
  --radius: 4px;
}

/* ---------- Reset & base ---------- */
*, *::before, *::after { 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(--font-body);
  color: var(--ink);
  background: var(--cream);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

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

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 800;
  line-height: 0.95;
  letter-spacing: 0.01em;
  margin: 0 0 0.4em;
  color: inherit;
}

h2 { font-size: clamp(2rem, 5vw, 3rem); }
h3 { font-size: 1.35rem; font-weight: 700; }

p { margin: 0 0 1em; max-width: 62ch; }

a { color: inherit; }

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

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

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--tn-orange);
  color: var(--ink);
  padding: 0.75rem 1.25rem;
  z-index: 100;
  font-family: var(--font-body);
  font-weight: 600;
}
.skip-link:focus {
  left: 0.5rem;
  top: 0.5rem;
}

:focus-visible {
  outline: 3px solid var(--tn-orange);
  outline-offset: 2px;
}

section { padding: 4.5rem 0; }

.section-note {
  max-width: 60ch;
  color: var(--charcoal-2);
  opacity: 0.85;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: 0.02em;
  padding: 0.75rem 1.6rem;
  border-radius: var(--radius);
  text-decoration: none;
  border: 2px solid transparent;
  transition: transform 0.15s ease, background-color 0.15s ease;
}
.btn:hover { transform: translateY(-2px); }

.btn-primary {
  background: var(--tn-orange);
  color: var(--ink);
}
.btn-primary:hover { background: #ea8c40; }

.btn-ghost {
  background: transparent;
  color: var(--white);
  border-color: var(--white);
}
.btn-ghost:hover { background: rgba(255,255,255,0.1); }

/* ---------- Header ---------- */
.site-header {
  background: var(--charcoal);
  color: var(--white);
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 3px solid var(--tn-orange);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 0.6rem;
  padding-bottom: 0.6rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  text-decoration: none;
  color: var(--white);
}

.brand img { border-radius: 50%; }

.brand-name {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.05rem;
  line-height: 1.05;
}
.brand-name em {
  font-style: normal;
  color: var(--tn-orange);
}

.primary-nav {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}
.primary-nav a {
  text-decoration: none;
  font-weight: 600;
  font-size: 0.98rem;
  color: var(--cream);
}
.primary-nav a:hover { color: var(--tn-orange-text); }

.nav-call {
  background: var(--forest);
  color: var(--white) !important;
  padding: 0.4rem 0.9rem;
  border-radius: var(--radius);
}
.nav-call:hover { background: #227c4c; }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 4px;
  background: none;
  border: none;
  padding: 0.5rem;
  cursor: pointer;
}
.nav-toggle span {
  width: 24px;
  height: 3px;
  background: var(--white);
  border-radius: 2px;
}

@media (max-width: 760px) {
  .nav-toggle { display: flex; }
  .primary-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--charcoal);
    flex-direction: column;
    align-items: flex-start;
    padding: 1rem 1.5rem 1.5rem;
    gap: 1rem;
    display: none;
    border-bottom: 3px solid var(--tn-orange);
  }
  .primary-nav.open { display: flex; }
  .nav-call { align-self: flex-start; }
}

/* ---------- Hero ---------- */
.hero {
  background: var(--charcoal);
  color: var(--white);
  position: relative;
  padding-bottom: 6rem;
}

.hero-inner {
  padding-top: 3.5rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hero-logo {
  width: 190px;
  height: 190px;
  margin-bottom: 1.25rem;
}

.hero-kicker {
  font-family: var(--font-display);
  text-transform: none;
  color: var(--tn-orange-text);
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  margin-bottom: 0.5rem;
}

.hero h1 {
  font-size: clamp(2.6rem, 7vw, 4.5rem);
  max-width: 14ch;
}

.hero-sub {
  max-width: 46ch;
  font-size: 1.15rem;
  color: var(--cream-2);
  margin-top: 1rem;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: 1.75rem;
}

/* Skyline silhouette divider, echoing the logo's Chicago skyline */
.hero-divider {
  position: absolute;
  bottom: -1px;
  left: 0;
  right: 0;
  height: 46px;
  background: var(--cream);
  clip-path: polygon(
    0% 100%, 0% 60%, 3% 60%, 3% 30%, 6% 30%, 6% 55%, 10% 55%, 10% 15%,
    13% 15%, 13% 45%, 17% 45%, 17% 5%, 20% 5%, 20% 40%, 24% 40%, 24% 25%,
    28% 25%, 28% 50%, 32% 50%, 32% 10%, 35% 10%, 35% 35%, 39% 35%, 39% 60%,
    43% 60%, 43% 20%, 47% 20%, 47% 45%, 51% 45%, 51% 0%, 54% 0%, 54% 40%,
    58% 40%, 58% 55%, 62% 55%, 62% 25%, 66% 25%, 66% 45%, 70% 45%, 70% 15%,
    73% 15%, 73% 50%, 77% 50%, 77% 30%, 81% 30%, 81% 55%, 85% 55%, 85% 20%,
    88% 20%, 88% 45%, 92% 45%, 92% 60%, 96% 60%, 96% 35%, 100% 35%, 100% 100%
  );
}

/* ---------- Menu ---------- */
.menu-section { background: var(--cream); }

.menu-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 2.5rem;
  margin-top: 2.5rem;
}

.menu-category h3 {
  color: var(--brick);
  border-bottom: 2px solid var(--brick);
  padding-bottom: 0.4rem;
  margin-bottom: 1rem;
}

.menu-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.menu-list li {
  margin-bottom: 1.4rem;
  padding-bottom: 1.4rem;
  border-bottom: 1px dashed #c9bfa2;
}
.menu-list li:last-child {
  border-bottom: none;
}

.menu-item-name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.15rem;
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
}

.menu-item-name .tag {
  font-family: var(--font-body);
  font-weight: 500;
  font-style: italic;
  font-size: 0.85rem;
  color: var(--forest);
}

.menu-item-desc {
  font-size: 0.95rem;
  color: var(--charcoal-2);
  margin-top: 0.15rem;
}

.menu-item-price {
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--tn-orange-deep);
  margin-top: 0.35rem;
}

.menu-fineprint {
  margin-top: 2.5rem;
  font-size: 0.9rem;
  color: var(--charcoal-2);
  font-style: italic;
}

/* ---------- Schedule ---------- */
.schedule-section {
  background: var(--charcoal);
  color: var(--white);
}
.schedule-section h2 { color: var(--white); }
.schedule-section .section-note { color: var(--cream-2); }
.schedule-section .section-note a { color: var(--tn-orange-text); }

.schedule-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 1.25rem;
  margin-top: 2.5rem;
}

.stop-card {
  background: var(--charcoal-2);
  border-left: 5px solid var(--forest);
  border-radius: var(--radius);
  padding: 1.25rem 1.4rem;
}

.stop-card.is-today {
  border-left-color: var(--tn-orange);
  background: #3c3626;
}

.stop-day {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.stop-day .today-flag {
  font-family: var(--font-body);
  font-style: italic;
  font-weight: 500;
  font-size: 0.8rem;
  color: var(--tn-orange-text);
}

.stop-time {
  color: var(--cream-2);
  font-size: 0.95rem;
  margin-top: 0.2rem;
}

.stop-location {
  margin-top: 0.5rem;
  font-weight: 600;
}

.schedule-fineprint {
  margin-top: 2rem;
  font-size: 0.9rem;
  color: var(--cream-2);
  font-style: italic;
  opacity: 0.85;
}

/* ---------- About ---------- */
.about-section { background: var(--cream-2); }

.about-inner {
  display: grid;
  grid-template-columns: 1.3fr 0.7fr;
  gap: 3rem;
  align-items: center;
}

.about-visual img {
  border-radius: 50%;
  border: 6px solid var(--white);
}

@media (max-width: 700px) {
  .about-inner {
    grid-template-columns: 1fr;
    text-align: left;
  }
  .about-visual { max-width: 180px; }
}

/* ---------- Contact ---------- */
.contact-section { background: var(--cream); }

.contact-inner {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 3rem;
}

@media (max-width: 700px) {
  .contact-inner { grid-template-columns: 1fr; }
}

.contact-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
}

.contact-list li {
  display: flex;
  flex-direction: column;
  border-bottom: 1px solid #d8cdac;
  padding-bottom: 0.9rem;
}

.contact-label {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.85rem;
  color: var(--brick);
  margin-bottom: 0.15rem;
}

.contact-list a {
  text-decoration: none;
  font-weight: 600;
  font-size: 1.05rem;
}
.contact-list a:hover { color: var(--forest); }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--ink);
  color: var(--cream-2);
  padding: 2rem 0;
  font-size: 0.9rem;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.footer-credit a {
  color: var(--tn-orange-text);
  text-decoration: none;
}
.footer-credit a:hover { text-decoration: underline; }
