/* ============================================================
   MAIN.CSS — Global styles shared across every page
   Includes: tokens, reset, typography, layout, buttons,
             eyebrow, scroll reveal, nav, footer, mobile tweaks
   ============================================================ */

/* ── TOKENS ───────────────────────────────────────────────── */
:root {
  --orange:     #F76B1C;
  --orange-dk:  #C85610;
  --orange-lt:  #FFF0E6;
  --yellow:     #FFCF2D;
  --yellow-dk:  #E6B800;
  --yellow-lt:  #FFFBE8;
  --white:      #FFFFFF;
  --offwhite:   #FEFAF4;
  --text:       #1E1208;
  --muted:      #6B4F2A;
  --fine:       #A07850;
  --radius:     14px;
  --radius-lg:  24px;
  --shadow:     0 6px 28px rgba(247,107,28,0.13);
  --shadow-lg:  0 12px 44px rgba(247,107,28,0.20);
  --nav-h:      68px;
}

/* ── RESET ────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Open Sans', sans-serif;
  color: var(--text);
  background: var(--offwhite);
  overflow-x: hidden;
  line-height: 1.7;
}
a   { text-decoration: none; color: inherit; }
img { display: block; max-width: 100%; }

/* ── TYPOGRAPHY ───────────────────────────────────────────── */
h1, h2, h3, h4 { font-family: 'Poppins', sans-serif; line-height: 1.18; }
h1 { font-size: clamp(2.2rem, 7vw, 4.6rem); font-weight: 800; }
h2 { font-size: clamp(1.6rem, 4vw, 2.5rem); font-weight: 700; }
h3 { font-size: clamp(1rem, 2vw, 1.2rem);   font-weight: 600; }
p  { font-size: 1rem; }

/* ── LAYOUT ───────────────────────────────────────────────── */
.wrap    { max-width: 1080px; margin: 0 auto; padding: 0 24px; }
.section { padding: 80px 0; }
.tc      { text-align: center; }

/* ── BUTTONS ──────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  font-size: 0.95rem;
  border-radius: 50px;
  padding: 13px 28px;
  min-height: 48px;
  cursor: pointer;
  border: none;
  transition: transform .17s ease, box-shadow .17s ease, background .17s ease;
  white-space: nowrap;
  -webkit-tap-highlight-color: transparent;
}
.btn:hover        { transform: translateY(-2px); box-shadow: var(--shadow-lg); }
.btn:active       { transform: scale(0.97); }
.btn-orange       { background: var(--orange); color: #fff; }
.btn-orange:hover { background: var(--orange-dk); }
.btn-yellow       { background: var(--yellow); color: var(--text); }
.btn-yellow:hover { background: var(--yellow-dk); }
.btn-ghost        { background: transparent; color: #fff; border: 2px solid rgba(255,255,255,0.48); }
.btn-ghost:hover  { background: rgba(255,255,255,0.12); }

/* ── EYEBROW ──────────────────────────────────────────────── */
.eyebrow {
  display: inline-block;
  font-family: 'Poppins', sans-serif;
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--orange);
  margin-bottom: 10px;
}

/* ── SCROLL REVEAL ────────────────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity .55s ease, transform .55s ease;
}
.reveal.in { opacity: 1; transform: none; }
.d1 { transition-delay: .08s; }
.d2 { transition-delay: .16s; }
.d3 { transition-delay: .24s; }
.d4 { transition-delay: .32s; }
.d5 { transition-delay: .40s; }

/* ══════════════════════════════════════════════════════════
   NAV
══════════════════════════════════════════════════════════ */
.nav {
  position: relative;
  top: auto;
  z-index: 300;
  background: var(--white);
  border-bottom: 3px solid var(--yellow);
  box-shadow: 0 2px 14px rgba(0,0,0,0.06);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 0 24px;
  height: var(--nav-h);
  max-width: 1080px;
  margin: 0 auto;
}

/* logo */
.nav-logo {
  font-family: 'Poppins', sans-serif;
  font-weight: 800;
  font-size: 1.3rem;
  color: var(--orange);
  display: flex;
  align-items: center;
  gap: 7px;
  white-space: nowrap;
}
.nav-logo .logo-accent { color: var(--yellow-dk); }
.nav-logo-img {
  display: block;
  width: 38px;
  height: 38px;
  background-image: url('../images/logo/los-mango-midway-logo.png');
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  flex-shrink: 0;
}

/* desktop links */
.nav-links {
  display: flex;
  align-items: center;
  gap: 22px;
  list-style: none;
}
.nav-links a {
  font-family: 'Poppins', sans-serif;
  font-weight: 500;
  font-size: 0.88rem;
  color: var(--muted);
  padding: 10px 4px;
  transition: color .15s;
}
.nav-links a:hover { color: var(--orange); }

/* hamburger */
.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: 6px;
  border-radius: 8px;
  transition: background .15s;
  -webkit-tap-highlight-color: transparent;
}
.hamburger:hover { background: var(--orange-lt); }
.hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform .25s ease, opacity .25s ease;
  transform-origin: center;
}
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* mobile drawer */
.mobile-nav {
  display: none;
  position: fixed;
  top: var(--nav-h);
  left: 0;
  right: 0;
  background: var(--white);
  border-bottom: 3px solid var(--yellow);
  box-shadow: 0 8px 32px rgba(0,0,0,0.12);
  z-index: 299;
  padding: 8px 0 16px;
  transform: translateY(-8px);
  opacity: 0;
  pointer-events: none;
  transition: transform .22s ease, opacity .22s ease;
}
.mobile-nav.open { transform: translateY(0); opacity: 1; pointer-events: auto; }
.mobile-nav ul { list-style: none; padding: 0 20px; }
.mobile-nav ul li a {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  font-size: 1rem;
  color: var(--text);
  padding: 14px 4px;
  border-bottom: 1px solid rgba(0,0,0,0.06);
  transition: color .15s;
}
.mobile-nav ul li:last-child a { border-bottom: none; }
.mobile-nav ul li a:hover { color: var(--orange); }
.mobile-nav ul li a .m-icon { font-size: 1.1rem; }
.mobile-cta { padding: 12px 20px 4px; }
.mobile-cta .btn { width: 100%; font-size: 1rem; }

@media (max-width: 700px) {
  .nav-links  { display: none; }
  .hamburger  { display: flex; }
  .mobile-nav { display: block; }
}

/* ══════════════════════════════════════════════════════════
   FOOTER
══════════════════════════════════════════════════════════ */
.footer { background: #160D04; padding: 56px 0 28px; }

.footer-top {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr 1.4fr;
  gap: 36px;
  margin-bottom: 44px;
}
@media (max-width: 960px) { .footer-top { grid-template-columns: repeat(3,1fr); } }
@media (max-width: 620px) {
  .footer-top { grid-template-columns: 1fr 1fr; }
  .footer-brand   { grid-column: 1 / -1; }
  .footer-contact { grid-column: 1 / -1; }
}
@media (max-width: 380px) {
  .footer-top { grid-template-columns: 1fr; }
  .footer-brand   { grid-column: auto; }
  .footer-contact { grid-column: auto; }
}

.footer-brand .f-logo {
  font-family: 'Poppins', sans-serif;
  font-weight: 800;
  font-size: 1rem;
  color: var(--yellow);
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 9px;
  white-space: nowrap;
}
.f-logo-img {
  display: block;
  width: 34px;
  height: 34px;
  background-image: url('../images/logo/los-mango-midway-logo.png');
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  flex-shrink: 0;
}
.footer-brand p {
  font-size: 0.84rem;
  color: rgba(255,255,255,0.46);
  line-height: 1.75;
  max-width: 230px;
}

.footer-col h4 {
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.13em;
  color: rgba(255,255,255,0.9);
  margin-bottom: 16px;
}
.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 10px; }
.footer-col ul li a {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.48);
  transition: color .15s;
  display: inline-block;
  padding: 2px 0;
}
.footer-col ul li a:hover { color: var(--yellow); }

.footer-contact h4 {
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.13em;
  color: rgba(255,255,255,0.9);
  margin-bottom: 16px;
}
.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 13px;
}
.contact-icon { font-size: 1rem; flex-shrink: 0; margin-top: 2px; }
.contact-item p,
.contact-item a { font-size: 0.83rem; color: rgba(255,255,255,0.5); line-height: 1.65; }
.contact-item a { transition: color .15s; display: block; }
.contact-item a:hover { color: var(--yellow); }

.footer-divider { height: 1px; background: rgba(255,255,255,0.08); margin-bottom: 22px; }
.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 0.78rem;
  color: rgba(255,255,255,0.28);
}
.sister-brands { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.sister-brands a { color: rgba(255,207,45,0.55); font-size: 0.78rem; transition: color .15s; }
.sister-brands a:hover { color: var(--yellow); }
.s-dot { width: 3px; height: 3px; border-radius: 50%; background: rgba(255,255,255,0.2); flex-shrink: 0; }

/* ── GLOBAL MOBILE TWEAKS ─────────────────────────────────── */
@media (max-width: 640px) {
  .section        { padding: 56px 0; }
  .hero           { padding: 60px 0 80px; }
  .visit          { padding: 56px 0; }
  .order-section  { padding: 56px 0; }
  .social-section { padding: 52px 0; }
  .footer         { padding: 44px 0 24px; }
}

/* ── HEADER PLACEHOLDER — fixed position with reserved height so nav
   renders correctly even before includes.js fetch completes ── */
#header-placeholder {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--nav-h);
  z-index: 300;
}

/* ── BODY PADDING — compensates for the fixed nav height ── */
body { padding-top: var(--nav-h); }

/* ── BACK TO TOP BUTTON ────────────────────────────────────── */
#back-to-top {
  position: fixed;
  bottom: 28px;
  right: 24px;
  width: 44px;
  height: 44px;
  background: var(--orange);
  color: #fff;
  border: none;
  border-radius: 50%;
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  z-index: 400;
  box-shadow: 0 4px 16px rgba(247,107,28,0.35);
  opacity: 0;
  transform: translateY(12px);
  transition: opacity .25s ease, transform .25s ease, background .17s;
  pointer-events: none;
  -webkit-tap-highlight-color: transparent;
}
#back-to-top.visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}
#back-to-top:hover  { background: var(--orange-dk); }
#back-to-top:active { transform: scale(0.93); }
