/* =========================================================
   Juanito’s – Master Stylesheet
   Base + Layout + Hero + Menu + Cards + Responsive
========================================================= */

:root{
  --bg:#0b0b0d;
  --text:rgba(255,255,255,0.92);
  --muted:rgba(255,255,255,0.7);
  --muted2:rgba(255,255,255,0.55);
  --border:rgba(255,255,255,0.14);

  --accent:#f04d2a;
  --accent2:#ffd166;

  --radius:18px;
  --shadow:0 14px 40px rgba(0,0,0,0.55);
  --shadow2:0 10px 26px rgba(0,0,0,0.45);

  --max:1100px;
}

/* ========== RESET / BASE ========== */
*{box-sizing:border-box}
html,body{height:100%}

body{
  margin:0;
  font-family:system-ui,-apple-system,Segoe UI,Roboto,Arial,sans-serif;
  background:
    radial-gradient(1200px 700px at 20% 10%, rgba(240,77,42,.25), transparent 60%),
    radial-gradient(1000px 700px at 85% 10%, rgba(255,209,102,.18), transparent 60%),
    radial-gradient(900px 600px at 60% 90%, rgba(45,212,191,.12), transparent 55%),
    var(--bg);
  color:var(--text);
  line-height:1.5;
}

a{color:inherit;text-decoration:none}
img{max-width:100%;display:block}

/* ========== LAYOUT HELPERS ========== */
.container{
  width:min(var(--max), calc(100% - 40px));
  margin-inline:auto;
}

.section{
  padding:32px 0 40px;
}

.muted{color:var(--muted)}

/* ========== ACCESSIBILITY ========== */
.skip-link{
  position:absolute;
  left:-999px;
  top:10px;
  background:#fff;
  color:#000;
  padding:10px 14px;
  border-radius:10px;
  z-index:999;
}
.skip-link:focus{left:10px}

/* ========== HEADER / NAV ========== */
.site-header{
  position:sticky;
  top:0;
  z-index:50;
  background:rgba(10,10,12,.72);
  backdrop-filter:blur(10px);
  border-bottom:1px solid var(--border);
}

.header-inner{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:18px;
  padding:14px 0;
}

.brand{
  display:flex;
  align-items:center;
  gap:12px;
}
.brand-mark{
  width:42px;
  height:42px;
  border-radius:14px;
  display:grid;
  place-items:center;
  background:linear-gradient(145deg, rgba(240,77,42,.35), rgba(255,209,102,.18));
  border:1px solid var(--border);
  box-shadow:var(--shadow2);
}

.brand-text{display:grid;gap:2px}
.brand-name{font-weight:800}
.brand-tag{font-size:.86rem;color:var(--muted)}

.nav{
  display:flex;
  gap:10px;
  flex-wrap:wrap;
}
.nav-link{
  padding:8px 12px;
  border-radius:999px;
  color:var(--muted);
}
.nav-link:hover{color:var(--text)}
.nav-link.is-active{
  background:rgba(255,255,255,.08);
  color:var(--text);
}

/* ========== HERO ========== */
.hero{
  padding:46px 0 30px;
}

.hero-inner{
  display:grid;
  grid-template-columns:1.15fr .85fr;
  gap:24px;
  align-items:center;
}

.hero-content h1{
  margin:0 0 10px;
  font-size:clamp(2rem,3.2vw,3rem);
}

.lead{
  font-size:1.05rem;
  color:var(--muted);
  margin-bottom:18px;
}

/* Hero media frame */
.hero-image-frame{
  border-radius:var(--radius);
  border:1px solid var(--border);
  background:rgba(255,255,255,.05);
  box-shadow:var(--shadow);
  overflow:hidden;
  min-height:290px;
}

/* LOGO HERO FIX (Mattoon) */
.hero-image-frame--logo{
  display:grid;
  place-items:center;
  padding:18px;
}

.hero-logo{
  max-width:100%;
  max-height:320px;
  width:auto;
  height:auto;
  object-fit:contain;
  filter:drop-shadow(0 12px 26px rgba(0,0,0,.55));
}

/* ========== BUTTONS ========== */
.cta-row{
  display:flex;
  gap:10px;
  flex-wrap:wrap;
  margin:14px 0;
}

.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding:10px 14px;
  border-radius:999px;
  font-weight:700;
  border:1px solid rgba(255,255,255,.18);
  background:linear-gradient(145deg, rgba(240,77,42,.85), rgba(240,77,42,.55));
  box-shadow:var(--shadow2);
}

.btn:hover{filter:brightness(1.06)}

.btn--alt{
  background:linear-gradient(145deg, rgba(255,209,102,.78), rgba(255,209,102,.48));
  color:#111;
}

.btn--ghost{
  background:rgba(255,255,255,.05);
}

/* ========== INFO STRIP ========== */
.info-strip{
  display:flex;
  flex-wrap:wrap;
  gap:10px;
}

.info-pill{
  padding:10px 12px;
  border-radius:999px;
  border:1px solid var(--border);
  background:rgba(0,0,0,.22);
  color:var(--muted);
}

.info-label{
  font-weight:700;
  color:var(--text);
  margin-right:6px;
}

/* ========== BUFFET BANNER ========== */
.buffet-banner{
  margin-top:14px;
  border-radius:var(--radius);
  border:1px solid rgba(255,209,102,.26);
  background:linear-gradient(145deg, rgba(255,209,102,.16), rgba(240,77,42,.10));
  padding:12px 14px;
  display:flex;
  justify-content:space-between;
  gap:10px;
  flex-wrap:wrap;
}

.buffet-title{
  font-weight:900;
}

/* ========== CARDS ========== */
.card{
  border:1px solid var(--border);
  background:rgba(255,255,255,.06);
  border-radius:var(--radius);
  padding:16px;
  box-shadow:var(--shadow2);
}

.card--cta{
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:14px;
  flex-wrap:wrap;
}

/* ========== MENU SECTION ========== */
.section--menu{
  background:rgba(8,8,10,.94);
}

.section-header{
  display:grid;
  gap:6px;
  margin-bottom:14px;
  text-align:center;
}

.menu-controls{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:14px;
  margin-bottom:18px;
}

.field{
  display:flex;
  align-items:center;
  gap:8px;
}

.field-label{
  font-size:.9rem;
  color:var(--muted);
  white-space:nowrap;
}

.select,
.input{
  flex:1;
  padding:11px 12px;
  border-radius:14px;
  border:1px solid var(--border);
  background:rgba(0,0,0,.24);
  color:var(--text);
}

.select:focus,
.input:focus{
  outline:none;
  border-color:rgba(240,77,42,.6);
  box-shadow:0 0 0 3px rgba(240,77,42,.18);
}

/* ========== MENU GRID & CARDS ========== */
.menu-grid{
  display:grid;
  grid-template-columns:repeat(3, minmax(0,1fr));
  gap:14px;
}

.menu-card{
  display:grid;
  grid-template-rows:auto 1fr;
  border-radius:var(--radius);
  border:1px solid var(--border);
  background:rgba(255,255,255,.06);
  overflow:hidden;
  box-shadow:var(--shadow2);
}

.menu-card-media{
  height:130px;
  background:rgba(255,255,255,.05);
  border-bottom:1px solid var(--border);
  display:grid;
  place-items:center;
  color:var(--muted2);
}

/* If you use real images, keep them clean and consistent */
.menu-card-media img{
  width:100%;
  height:100%;
  object-fit:cover;
  display:block;
}

/* Body spacing increased so badges never "kiss" the image */
.menu-card-body{
  padding:14px;
  display:grid;
  gap:10px; /* was 8px */
}

/* Title + price now sit on a solid bar for legibility */
.menu-card-top{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;

  background:rgba(0,0,0,0.55);
  border-radius:12px;
  padding:8px 10px;
}

/* Name and price text forced readable (even on bright photos) */
.menu-item-name{
  font-weight:900;
  margin:0;
  font-size:1.03rem;
  color:#fff;
}

.menu-item-price{
  font-weight:900;
  color:#fff;
  padding:6px 10px;
  border-radius:999px;
  background:rgba(0,0,0,0.35);
  border:1px solid rgba(255,255,255,0.25);
  white-space:nowrap;
}

.menu-item-desc{
  margin:0;
  font-size:.95rem;
  color:var(--muted);
}

.badges{
  display:flex;
  flex-wrap:wrap;
  gap:8px;
  margin-top:2px;
}

/* Slightly more readable badge styling */
.badge{
  font-size:.82rem;
  padding:6px 10px;
  border-radius:999px;
  border:1px solid var(--border);
  background:rgba(0,0,0,.35);
  color:rgba(255,255,255,0.85);
}

/* Optional polish: subtle zoom on hover */
.menu-card-media img{
  transition:transform 0.3s ease;
}
.menu-card:hover .menu-card-media img{
  transform:scale(1.05);
}

/* ========== FOOTER ========== */
.site-footer{
  padding:18px 0 28px;
}

.footer-inner{
  display:flex;
  justify-content:space-between;
  gap:10px;
  flex-wrap:wrap;
}

/* ========== RESPONSIVE ========== */
@media(max-width:980px){
  .hero-inner{grid-template-columns:1fr}
  .menu-grid{grid-template-columns:repeat(2,1fr)}

  /* ✅ ADDED: Mobile hero order (image first, then content) */
  .hero-inner{
    grid-template-areas:
      "media"
      "content";
  }
  .hero-media{grid-area:media}
  .hero-content{grid-area:content}
}

@media(max-width:560px){
  .menu-grid{grid-template-columns:1fr}
  .menu-controls{grid-template-columns:1fr}
  .field{flex-direction:column;align-items:stretch}
  .hero-logo{max-height:220px}

  /* ✅ ADDED: Make hero media feel like a top banner on small screens */
  .hero-media{
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
    margin-top: -10px;
    margin-bottom: 14px;
  }

  .hero-image-frame{
    border-radius: 0;
    border-left: 0;
    border-right: 0;
    box-shadow: none;
    min-height: 0;
  }

  /* If hero media is a PHOTO banner */
  .hero-image-frame img{
    width: 100%;
    height: 220px;
    object-fit: cover;
  }

  /* If hero media is a LOGO (your pages use this) */
  .hero-image-frame--logo img.hero-logo{
    height: auto;
    max-height: 170px;
    object-fit: contain;
  }

  /* ✅ ADDED: Center hero text + buttons on mobile */
  .hero-content{
    text-align: center;
  }
  .cta-row{
    justify-content: center;
  }
  .info-strip{
    justify-content: center;
  }
  .buffet-banner{
    justify-content: center;
    text-align: center;
  }
  .card--cta{
    justify-content: center;
    text-align: center;
  }
}

/* =========================================================
   ✅ ADDED FIX: Mobile polish (banner + bullet alignment + spacing)
   (Added exactly as requested; nothing above removed)
========================================================= */
@media (max-width: 560px){

  /* 1) Make the hero image feel like a real banner (no card border/frame) */
  .hero-media{
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
    padding: 0;                 /* ensure it touches edges */
  }

  /* Remove the "card frame" look entirely on mobile */
  .hero-media .hero-image-frame{
    border: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    padding: 0 !important;
  }

  /* Make the logo image scale up nicely and look like a banner element */
  .hero-media .hero-image-frame--logo{
    padding: 0 !important;
  }

  .hero-media .hero-logo{
    width: 100%;
    max-width: 420px;          /* keeps it from being huge on some phones */
    max-height: 220px;         /* adjust if you want bigger */
    margin: 12px auto 0;
    border-radius: 0;          /* banner feel */
  }

  /* 2) Give the hero content breathing room */
  .hero{
    padding-top: 18px;
  }

  .hero-content h1{
    margin-top: 12px;
  }

  .lead{
    margin-bottom: 16px;
  }

  /* 3) Fix the “bullets far left / text centered” issue:
        keep the SECTION centered, but lists inside should be left-aligned */
  .location-grid{
    gap: 18px;                 /* more separation between the two locations */
  }

  /* Keep headings/buttons centered, but make list content readable */
  .loc-card{
    text-align: center;
    padding: 16px;
  }

  .loc-bullets{
    display: inline-block;     /* allows the whole list to be centered as a block */
    text-align: left;          /* but the bullet text is left aligned */
    margin: 10px auto 14px;
    padding-left: 18px;        /* proper bullet indent */
    max-width: 280px;          /* prevents super wide lines looking weird */
  }

  .loc-bullets li{
    margin: 6px 0;
  }

  /* 4) Keep the notice from feeling cramped */
  .notice{
    margin-top: 18px;
    text-align: center;
  }
}
