/* ============================================================
   Lagoon Eats — storefront stylesheet
   Our own branding: teal/emerald palette + warm amber accent,
   Inter + Poppins type. Matches gloriafood UX layout, NOT its
   code or look.
   ============================================================ */
:root {
    --teal: #0e6b5c;
    --teal-deep: #0a4f43;
    --emerald: #1a9b7a;
    --amber: #e9a24b;
    --amber-deep: #c97d1e;
    --ink: #16302f;
    --muted: #5f7674;
    --cream: #f8f5ef;
    --line: #e7e0d3;
    --font-body: 'Inter', system-ui, -apple-system, sans-serif;
    --font-head: 'Poppins', 'Inter', system-ui, sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    font-family: var(--font-body);
    background: var(--cream);
    color: var(--ink);
    line-height: 1.55;
    -webkit-font-smoothing: antialiased;
}

/* ---- shared header ---- */
.site-nav {
    position: sticky; top: 0; z-index: 40;
    background: rgba(255,255,255,.95);
    backdrop-filter: blur(6px);
    border-bottom: 1px solid var(--line);
}
.site-nav .inner {
    max-width: 1080px; margin: 0 auto; padding: .65rem 1.1rem;
    display: flex; align-items: center; gap: 1rem;
}
.brand {
    display: flex; align-items: center; gap: .5rem;
    font-family: var(--font-head); font-weight: 700; font-size: 1.18rem;
    color: var(--ink); text-decoration: none; letter-spacing: -.01em;
}
.brand .mark {
    width: 34px; height: 34px; border-radius: 10px; flex-shrink: 0;
    background: linear-gradient(135deg, var(--teal), var(--emerald));
    color: #fff; display: grid; place-items: center;
}
.brand .mark svg { width: 20px; height: 20px; }
.brand em { font-style: normal; color: var(--teal); }
.site-nav .links { display: flex; gap: .4rem; margin-left: auto; align-items: center; flex-wrap: wrap; }
.site-nav .links a {
    padding: .42rem .7rem; border-radius: 8px; color: var(--ink);
    text-decoration: none; font-weight: 500; font-size: .88rem;
}
.site-nav .links a:hover { background: #eef1ec; color: var(--teal); }
.cartbtn {
    display: inline-flex; align-items: center; gap: .4rem;
    background: var(--teal); color: #fff; text-decoration: none;
    padding: .4rem .85rem; border-radius: 999px; font-weight: 600; font-size: .88rem;
}
.cartbtn:hover { background: var(--teal-deep); color: #fff; }
.nav-toggle { display: none; }
@media (max-width: 640px) {
    .nav-toggle {
        display: inline-grid; place-items: center; width: 36px; height: 36px;
        border: 1px solid var(--line); border-radius: 8px; background: #fff; margin-left: auto;
    }
    .site-nav .links {
        display: none; position: absolute; left: 0; right: 0; top: 100%;
        background: #fff; border-bottom: 1px solid var(--line);
        flex-direction: column; align-items: stretch; gap: 0; padding: .5rem .6rem;
    }
    .site-nav .links.open { display: flex; }
    .site-nav .links a { padding: .6rem .5rem; }
    .site-nav .inner { flex-wrap: wrap; }
}

/* ---- main shell + utilities ---- */
main { max-width: 1080px; margin: 0 auto; padding: 1.4rem 1.1rem 2.5rem; min-height: 60vh; }
.narrow { max-width: 640px; margin: 0 auto; }
h1, h2, h3 { font-family: var(--font-head); color: var(--ink); line-height: 1.2; }
h1 { font-size: 1.55rem; }
h2 { font-size: 1.35rem; }
a { color: var(--teal); }
.back { display: inline-block; margin-bottom: 1.1rem; color: var(--teal); text-decoration: none; font-size: .9rem; font-weight: 500; }
.back:hover { text-decoration: underline; }
.btn {
    display: inline-block; padding: .62rem 1.05rem; border: 1px solid var(--line);
    border-radius: 10px; background: #fff; color: var(--ink); text-decoration: none;
    font-size: .9rem; cursor: pointer; font-family: var(--font-body); font-weight: 500;
}
.btn.primary { background: linear-gradient(135deg, var(--teal), var(--emerald)); border: none; color: #fff; font-weight: 600; }
.btn.primary:hover { filter: brightness(1.06); }
.btn.amber { background: linear-gradient(135deg, var(--amber), var(--amber-deep)); border: none; color: #2b1c06; font-weight: 700; }
.btn.amber:hover { filter: brightness(1.05); }
.btn.ghost { background: transparent; border: 1px solid rgba(255,255,255,.6); color: #fff; }
.flash { border-radius: 10px; padding: .8rem 1rem; margin-bottom: 1rem; font-size: .9rem; }
.flash.error { background: #fdecea; border: 1px solid #f0b9b1; color: #a32b20; }
.flash.success { background: #e4f1ea; border: 1px solid #a8d3be; color: #14614a; }
.price { color: var(--teal); font-weight: 700; }
.card { background: #fff; border: 1px solid var(--line); border-radius: 14px; }
input[type=number], input[type=text], input[type=datetime-local], select, textarea {
    font-family: var(--font-body); font-size: .95rem; color: var(--ink);
    border: 1px solid var(--line); border-radius: 10px; padding: .55rem .7rem; background: #fff;
}

/* ---- storefront sections ---- */
.sf-hero {
    position: relative;
    background:
        linear-gradient(120deg, rgba(9,60,51,.94) 0%, rgba(14,107,92,.88) 48%, rgba(20,122,108,.82) 100%),
        url('https://www.fbgcdn.com/pictures/fc2965d5-b780-4b7e-81b7-68688d65ac44.jpg') center/cover no-repeat;
    color: #fff; margin: -1.4rem -1.1rem 2rem; padding: 4.6rem 1.2rem 3.8rem; text-align: center;
    overflow: hidden;
}
.sf-hero .hero-plate {
    position: absolute; left: 50%; bottom: -2.2rem; transform: translateX(-50%);
    width: 560px; max-width: 92%; height: 200px; opacity: .5; pointer-events: none;
    border-radius: 18px; object-fit: cover;
}
.sf-hero .hero-plate img { width: 100%; height: 100%; object-fit: cover; border-radius: 18px; }
.sf-hero .eyebrow { letter-spacing: .18em; text-transform: uppercase; font-size: .78rem; opacity: .85; font-weight: 600; }
.sf-hero h1 { color: #fff; font-size: clamp(2rem, 5vw, 3rem); margin: .6rem 0 .4rem; }
.sf-hero p { color: rgba(255,255,255,.92); max-width: 560px; margin: 0 auto 1.4rem; font-size: 1.02rem; }
.sf-hero .cta { display: inline-flex; gap: .6rem; align-items: center; }
.hero-foods { display: flex; gap: 12px; justify-content: center; margin-top: 1.6rem; }
.hero-foods img { width: 120px; height: 120px; object-fit: cover; border-radius: 16px; border: 3px solid rgba(255,255,255,.35); box-shadow: 0 10px 24px rgba(0,0,0,.18); }
@media (max-width: 520px) { .hero-foods img { width: 88px; height: 88px; } }
.sf-cuisines { display: flex; gap: .4rem; justify-content: center; flex-wrap: wrap; margin-top: 1.2rem; }
.sf-cuisines span { background: rgba(255,255,255,.16); border: 1px solid rgba(255,255,255,.25); border-radius: 999px; padding: .22rem .7rem; font-size: .8rem; }
.sf-section { margin: 2.6rem 0; scroll-margin-top: 80px; }
.sf-section h2 { font-size: 1.5rem; display: flex; align-items: center; gap: .6rem; }
.sf-section h2 .kick { color: var(--amber-deep); text-transform: uppercase; letter-spacing: .14em; font-size: .68rem; font-weight: 700; }
.item-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 1rem; margin-top: 1.1rem; }
.item-card { background: #fff; border: 1px solid var(--line); border-radius: 16px; overflow: hidden; display: flex; flex-direction: column; transition: transform .12s ease, box-shadow .12s ease; }
.item-card:hover { transform: translateY(-2px); box-shadow: 0 10px 24px rgba(14,107,92,.10); }
.item-card .photo { position: relative; height: 180px; background: #eef2ee; cursor: zoom-in; overflow: hidden; }
.item-card .photo a { display: block; width: 100%; height: 100%; }
.item-card .photo img { width: 100%; height: 180px; object-fit: cover; display: block; }
.item-card .photo:empty::after {
    content: ""; position: absolute; inset: 0;
    background:
        radial-gradient(circle at 50% 40%, #cfdcd3 0 38px, transparent 39px),
        linear-gradient(#cfdcd3, #cfdcd3) center/64% 10px no-repeat;
    opacity: .7;
}
.item-card .item-ph { display:grid; place-items:center; height:180px; color:#9fb0a7; font-size:2rem; }
.item-card .body { padding: .95rem 1rem 1.05rem; display: flex; flex-direction: column; gap: .35rem; flex: 1; }
.item-card .name { font-family: var(--font-head); font-weight: 600; font-size: 1rem; }
.item-card .desc { color: var(--muted); font-size: .84rem; flex: 1; }
.item-card .row { display: flex; justify-content: space-between; align-items: center; margin-top: .6rem; }
.item-card .cta { color: var(--teal); font-weight: 600; text-decoration: none; font-size: .88rem; }
.btn-order {
    display: inline-block; background: linear-gradient(135deg, var(--teal), var(--emerald));
    color: #fff; font-weight: 700; font-size: .84rem; padding: .45rem 1rem; border-radius: 999px;
    text-decoration: none; letter-spacing: .01em; transition: transform .12s ease, box-shadow .12s ease;
}
.btn-order:hover { transform: translateY(-1px); box-shadow: 0 6px 14px rgba(14,107,92,.28); color: #fff; }

/* offers / info bands */
.offer-band, .banner {
    border-radius: 16px; padding: 1.3rem 1.4rem; margin-top: 1.1rem;
    background: #fff; border: 1px solid var(--line); display: flex; gap: 1rem; align-items: center; flex-wrap: wrap;
}
.offer-band .ic, .banner .ic { font-size: 1.6rem; }
.offer-band strong, .banner strong { font-family: var(--font-head); }
.banner { background: linear-gradient(135deg, #fdf3e2, #fbe7c8); border-color: #f0d7a8; }
.text-muted { color: var(--muted); }
.info-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px,1fr)); gap: 1rem; margin-top: 1.1rem; }
.info-panel { background:#fff; border:1px solid var(--line); border-radius:16px; padding:1.1rem 1.2rem; }
.info-panel h3 { font-size: 1rem; margin: 0 0 .5rem; display:flex; align-items:center; gap:.5rem; }
.info-panel ul { margin: 0; padding-left: 1rem; color: var(--muted); font-size: .9rem; }
.zone-row { display:flex; justify-content:space-between; gap:.6rem; padding:.5rem 0; border-bottom:1px dashed var(--line); font-size:.92rem; }
.zone-row:last-child { border-bottom:none; }
.socials { display:flex; gap:.55rem; flex-wrap:wrap; align-items:center; }
.socials a { width:38px; height:38px; border-radius:50%; border:1px solid var(--line); display:grid; place-items:center; color:var(--teal); text-decoration:none; }
.socials a:hover { background: var(--teal); color:#fff; border-color:var(--teal); }
.language { margin-left:auto; font-size:.85rem; color:var(--muted); }

/* footer */
.sf-footer { border-top: 1px solid var(--line); background: #fff; }
.sf-footer .inner { max-width:1080px; margin:0 auto; padding:1.6rem 1.1rem; display:flex; justify-content:space-between; gap:1rem; flex-wrap:wrap; color:var(--muted); font-size:.86rem; }

/* swipebox accent — match our palette */
#swipebox-overlay { background: rgba(10, 33, 30, .92); }
#swipebox-top-bar, #swipebox-bottom-bar { background: transparent; }
#swipebox-caption { color: #f8f5ef; font-family: var(--font-body); }

@media (max-width: 640px) {
    .site-nav .links a { font-size: .82rem; }
    .sf-hero { margin: -1.4rem -1.1rem 1.6rem; }
    .brand { font-size: 1.05rem; }
}
