/* ============================================
   CHEEKYS PIZZA — Retro Disco Trattoria
   Shared Stylesheet
   ============================================ */

/* ----- Custom Properties ----- */
:root {
  --primary: #cd2026;
  --secondary: #f66a58;
  --accent: #fd8b78;
  --bg: #1a1a18;
  --surface: #382922;
  --text: #efe8d4;
  --text-muted: #8c887d;
  --font-display: 'Bricolage Grotesque', sans-serif;
  --font-body: 'Instrument Serif', serif;
  --nav-height: 72px;
  --container-pad: 24px;
  --radius: 6px;
  --radius-lg: 14px;
}

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

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

body {
  font-family: var(--font-body);
  font-size: 18px;
  line-height: 1.65;
  color: var(--text);
  background-color: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

img,
video,
svg {
  display: block;
  max-width: 100%;
  height: auto;
}

ul,
ol {
  list-style: none;
}

a {
  color: var(--accent);
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover {
  color: var(--secondary);
}

/* ----- Typography ----- */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 800;
  line-height: 1.05;
  color: var(--text);
  text-wrap: balance;
}

h1 { font-size: clamp(3rem, 8vw, 7.5rem); letter-spacing: -0.03em; }
h2 { font-size: clamp(2.25rem, 5vw, 4.5rem); letter-spacing: -0.02em; }
h3 { font-size: clamp(1.75rem, 3.5vw, 3rem); letter-spacing: -0.015em; }
h4 { font-size: clamp(1.35rem, 2.5vw, 2rem); }
h5 { font-size: clamp(1.15rem, 2vw, 1.5rem); }
h6 { font-size: clamp(1rem, 1.5vw, 1.2rem); }

p {
  font-family: var(--font-body);
  font-size: clamp(1rem, 1.15vw, 1.2rem);
  line-height: 1.65;
  color: var(--text);
  max-width: 68ch;
}

.display-heading {
  font-family: var(--font-display);
  font-size: clamp(3.5rem, 10vw, 9rem);
  font-weight: 800;
  line-height: 0.95;
  letter-spacing: -0.04em;
  text-transform: uppercase;
  color: var(--text);
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 4rem);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.025em;
  color: var(--text);
  margin-bottom: 1em;
}

.body-text {
  font-family: var(--font-body);
  font-size: clamp(1.05rem, 1.2vw, 1.25rem);
  line-height: 1.7;
  color: var(--text);
}

/* ----- Layout ----- */
.container {
  width: 100%;
  max-width: 1280px;
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--container-pad);
  padding-right: var(--container-pad);
}

.section {
  padding-top: clamp(4rem, 8vw, 8rem);
  padding-bottom: clamp(4rem, 8vw, 8rem);
}

/* ----- Navigation ----- */
.site-nav {
  position: sticky;
  top: 0;
  z-index: 1000;
  height: var(--nav-height);
  background-color: rgba(26, 26, 24, 0.92);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(239, 232, 212, 0.08);
}

.site-nav .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.35rem;
  color: var(--text);
  text-transform: uppercase;
  letter-spacing: -0.02em;
  text-decoration: none;
  flex-shrink: 0;
}

.nav-logo:hover {
  color: var(--primary);
}

.nav-logo img {
  height: 38px;
  width: auto;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-link {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.85rem;
  color: var(--text-muted);
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 8px 14px;
  border-radius: var(--radius);
  transition: color 0.2s ease, background-color 0.2s ease;
}

.nav-link:hover {
  color: var(--text);
  background-color: rgba(239, 232, 212, 0.06);
}

.nav-link.active {
  color: var(--text);
  background-color: var(--primary);
}

.nav-hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
}

.nav-hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background-color: var(--text);
  border-radius: 2px;
  transition: transform 0.25s ease, opacity 0.25s ease;
}

.nav-mobile-menu {
  display: none;
  position: fixed;
  inset: var(--nav-height) 0 0 0;
  z-index: 999;
  background-color: rgba(26, 26, 24, 0.97);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 2rem;
}

.nav-mobile-menu.open {
  display: flex;
}

.nav-mobile-menu .nav-link {
  font-size: 1.5rem;
  padding: 12px 24px;
}

/* ----- Inner-Page Header Strip (shared) ----- */
.inner-hero {
  padding: clamp(2rem, 4vw, 3.5rem) 0;
  background-color: var(--surface);
  border-bottom: 4px solid var(--primary);
  text-align: left;
}

.inner-hero .display-heading {
  font-size: clamp(2.5rem, 6vw, 5.5rem);
  margin-bottom: 0.15em;
}

.inner-hero .body-text {
  color: var(--text-muted);
  max-width: 52ch;
}

/* ----- Buttons ----- */
.btn-primary,
.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 16px 34px;
  border-radius: var(--radius);
  border: 2px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease, transform 0.15s ease;
}

.btn-primary {
  background-color: var(--primary);
  color: var(--text);
  border-color: var(--primary);
}

.btn-primary:hover {
  background-color: #e0232a;
  border-color: #e0232a;
  color: #fff;
  transform: translateY(-1px);
}

.btn-secondary {
  background-color: transparent;
  color: var(--text);
  border-color: var(--text);
}

.btn-secondary:hover {
  background-color: var(--text);
  color: var(--bg);
  transform: translateY(-1px);
}

/* ----- Card ----- */
.card {
  background-color: var(--surface);
  border-radius: var(--radius-lg);
  padding: clamp(1.5rem, 3vw, 2.5rem);
  border: 1px solid rgba(239, 232, 212, 0.06);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.card:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.35);
}

/* ----- Marquee Divider — Disco Billboard ----- */
.marquee-divider {
  width: 100%;
  overflow: hidden;
  background-color: var(--primary);
  padding: 14px 0;
  user-select: none;
  position: relative;
}

.marquee-divider::before,
.marquee-divider::after {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  width: 3px;
  background: repeating-linear-gradient(
    to bottom,
    var(--accent) 0 4px,
    transparent 4px 8px
  );
  z-index: 2;
}

.marquee-divider::before { left: 0; }
.marquee-divider::after { right: 0; }

.marquee-track {
  display: flex;
  width: max-content;
  animation: marquee-scroll 18s linear infinite;
}

.marquee-track:hover {
  animation-play-state: paused;
}

.marquee-track span {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(1rem, 2vw, 1.5rem);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--text);
  white-space: nowrap;
  padding: 0 2.5em;
  display: inline-flex;
  align-items: center;
  gap: 1.5em;
}

.marquee-track span::after {
  content: '✦';
  font-size: 0.65em;
  color: var(--accent);
}

@keyframes marquee-scroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* Reverse-direction variant */
.marquee-divider.reverse .marquee-track {
  animation-direction: reverse;
}

/* Muted variant for secondary strips */
.marquee-divider.muted {
  background-color: var(--surface);
  padding: 10px 0;
}

.marquee-divider.muted .marquee-track span {
  font-size: clamp(0.8rem, 1.5vw, 1.1rem);
  color: var(--text-muted);
  letter-spacing: 0.15em;
}

/* ----- Fade-In Animation ----- */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-in {
  opacity: 0;
  animation: fadeInUp 0.35s ease-out forwards;
}

/* ----- Language Switcher ----- */
.lang-flag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 2px solid transparent;
  overflow: hidden;
  cursor: pointer;
  background: none;
  padding: 0;
  transition: border-color 0.2s ease, transform 0.15s ease;
}

.lang-flag:hover {
  border-color: var(--accent);
  transform: scale(1.1);
}

.lang-flag.active {
  border-color: var(--primary);
}

.lang-flag img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}

/* ----- Footer ----- */
.site-footer {
  background-color: var(--surface);
  border-top: 4px solid var(--primary);
  padding: clamp(3rem, 6vw, 5rem) 0 0;
}

.footer-inner {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: clamp(2rem, 4vw, 4rem);
  padding-bottom: clamp(3rem, 5vw, 4rem);
}

.footer-inner h5 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  margin-bottom: 1.2em;
}

.footer-inner a {
  display: block;
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--text);
  text-decoration: none;
  padding: 4px 0;
  transition: color 0.2s ease;
}

.footer-inner a:hover {
  color: var(--accent);
}

.footer-legal {
  border-top: 1px solid rgba(239, 232, 212, 0.08);
  padding: 1.5rem 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-copy {
  font-family: var(--font-body);
  font-size: 0.85rem;
  color: var(--text-muted);
}

.footer-legal a {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.footer-legal a:hover {
  color: var(--text);
}

/* ----- Utility ----- */
.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;
}

/* ----- Responsive: ≤ 1024px ----- */
@media (max-width: 1024px) {
  :root {
    --nav-height: 64px;
    --container-pad: 20px;
  }

  .footer-inner {
    grid-template-columns: 1fr 1fr;
  }

  .display-heading {
    font-size: clamp(2.8rem, 8vw, 6rem);
  }
}

/* ----- Responsive: ≤ 768px ----- */
@media (max-width: 768px) {
  :root {
    --nav-height: 60px;
  }

  body {
    font-size: 16px;
  }

  .nav-links {
    display: none;
  }

  .nav-hamburger {
    display: flex;
  }

  .footer-inner {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .footer-legal {
    flex-direction: column;
    text-align: center;
  }

  .section {
    padding-top: clamp(3rem, 6vw, 5rem);
    padding-bottom: clamp(3rem, 6vw, 5rem);
  }

  .btn-primary,
  .btn-secondary {
    width: 100%;
    padding: 14px 28px;
    font-size: 0.9rem;
  }

  .marquee-track span {
    font-size: 0.9rem;
    padding: 0 1.5em;
  }
}

/* ── Image quality defaults ── */
img { object-fit: cover; max-width: 100%; height: auto; }
img[class*="logo"], img[class*="icon"], img[class*="flag"] { object-fit: contain; }
