/* ============================================================
   HarbourTech Restaurant Platform — Base Styles
   Mobile-first. Target: < 2s on 3G. No framework.
   ============================================================ */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
    --brand-primary:   #1B4D3E;
    --brand-secondary: #F4A300;
    --brand-accent:    #FFFFFF;
    --text:            #1a1a1a;
    --text-muted:      #666;
    --bg:              #FAFAF8;
    --surface:         #FFFFFF;
    --border:          #E5E5E5;
    --radius:          10px;
    --shadow:          0 2px 12px rgba(0,0,0,.08);
    --font:            system-ui, -apple-system, sans-serif;
    --max-width:       1100px;
}

html { font-size: 16px; scroll-behavior: smooth; }
body { font-family: var(--font); color: var(--text); background: var(--bg); line-height: 1.6; }
img  { max-width: 100%; display: block; }
a    { color: inherit; }

/* ── Buttons ──────────────────────────────────────────────── */
.btn {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    padding: .75rem 1.5rem;
    min-height: 44px;
    border-radius: var(--radius);
    font-weight: 600;
    font-size: 1rem;
    text-decoration: none;
    cursor: pointer;
    transition: opacity .15s;
    white-space: nowrap;
}
.btn:hover { opacity: .85; }
.btn--primary  { background: var(--brand-primary);   color: #fff; }
.btn--secondary{ background: var(--brand-secondary); color: #fff; }
.btn--cta      { background: var(--brand-secondary); color: #fff; }
.btn--whatsapp { background: #25D366; color: #fff; }

/* ── Header ───────────────────────────────────────────────── */
.site-header {
    background: var(--brand-primary);
    color: #fff;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 8px rgba(0,0,0,.2);
}
.site-header__inner {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 1rem 1.25rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}
.site-header__logo {
    font-size: 1.2rem;
    font-weight: 700;
    text-decoration: none;
    color: #fff;
}
.site-header__logo img { height: 2.5rem; }
.site-nav { display: flex; align-items: center; gap: 1.25rem; flex-wrap: wrap; }
.site-nav a { color: rgba(255,255,255,.85); text-decoration: none; font-size: .95rem; }
.site-nav a:hover { color: #fff; }
.site-nav .btn--cta { padding: .5rem 1.1rem; font-size: .9rem; }

/* ── Hero ─────────────────────────────────────────────────── */
.hero {
    background: linear-gradient(135deg, var(--brand-primary) 0%, #2d7a5c 100%);
    color: #fff;
    text-align: center;
    padding: 4rem 1.25rem;
}
.hero__title   { font-size: clamp(1.8rem, 5vw, 3rem); font-weight: 800; margin-bottom: .75rem; }
.hero__tagline { font-size: 1.15rem; opacity: .9; margin-bottom: 2rem; }
.hero__actions { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }

/* ── Info Bar ─────────────────────────────────────────────── */
.info-bar { background: var(--brand-secondary); color: #fff; }
.info-bar__inner {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: .85rem 1.25rem;
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
}
.info-bar__item { display: flex; align-items: center; gap: .4rem; font-size: .9rem; }
.info-bar__item a { color: #fff; text-decoration: none; }

/* ── Menu Preview ─────────────────────────────────────────── */
.menu-preview { padding: 3rem 1.25rem; }
.menu-preview__inner { max-width: var(--max-width); margin: 0 auto; text-align: center; }
.menu-preview__inner h2 { font-size: 1.8rem; margin-bottom: 1.5rem; color: var(--brand-primary); }
.menu-sections-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 1rem;
    margin-bottom: 2rem;
}
.menu-section-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: .4rem;
    padding: 1.25rem .75rem;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    text-decoration: none;
    color: var(--text);
    transition: box-shadow .15s, transform .15s;
}
.menu-section-card:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
.menu-section-card__emoji { font-size: 2rem; }
.menu-section-card__name  { font-weight: 600; font-size: .95rem; }
.menu-section-card__count { font-size: .8rem; color: var(--text-muted); }

/* ── Section Header ───────────────────────────────────────── */
.menu-section-header { background: var(--brand-primary); color: #fff; padding: 2rem 1.25rem; }
.menu-section-header__inner { max-width: var(--max-width); margin: 0 auto; }
.menu-section-header h1 { font-size: 2rem; margin-top: .5rem; }
.back-link { color: rgba(255,255,255,.8); text-decoration: none; font-size: .9rem; }
.back-link:hover { color: #fff; }

/* ── Section Nav ──────────────────────────────────────────── */
.section-nav { background: var(--surface); border-bottom: 1px solid var(--border); overflow-x: auto; }
.section-nav__inner {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 1.25rem;
    display: flex;
    gap: .25rem;
    white-space: nowrap;
}
.section-nav__item {
    display: inline-block;
    padding: .75rem 1rem;
    text-decoration: none;
    color: var(--text-muted);
    font-size: .9rem;
    border-bottom: 3px solid transparent;
    transition: color .15s, border-color .15s;
}
.section-nav__item:hover, .section-nav__item.active {
    color: var(--brand-primary);
    border-bottom-color: var(--brand-primary);
}

/* ── Menu Grid ────────────────────────────────────────────── */
.menu-items { padding: 2rem 1.25rem; }
.menu-items__inner { max-width: var(--max-width); margin: 0 auto; }
.menu-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1rem;
}
.menu-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: var(--shadow);
}
.menu-card__body  { padding: 1rem; flex: 1; }
.menu-card__name  { font-size: 1.05rem; font-weight: 600; margin-bottom: .4rem; display: flex; flex-wrap: wrap; align-items: center; gap: .35rem; }
.menu-card__price { font-size: 1.1rem; font-weight: 700; color: var(--brand-primary); }
.menu-card__order {
    display: block;
    text-align: center;
    padding: .65rem;
    background: #25D366;
    color: #fff;
    text-decoration: none;
    font-weight: 600;
    font-size: .9rem;
    transition: background .15s;
}
.menu-card__order:hover { background: #1da851; }
.menu-card--adults { border-color: #f97316; }

/* ── Badges ───────────────────────────────────────────────── */
.badge {
    display: inline-block;
    font-size: .7rem;
    font-weight: 700;
    padding: .15rem .4rem;
    border-radius: 4px;
    text-transform: uppercase;
    letter-spacing: .03em;
}
.badge--adult { background: #fef3c7; color: #92400e; }
.badge--vegan { background: #d1fae5; color: #065f46; }
.badge--veg   { background: #dcfce7; color: #166534; }
.badge--gf    { background: #ede9fe; color: #5b21b6; }

/* ── WhatsApp FAB ─────────────────────────────────────────── */
.whatsapp-fab {
    position: fixed;
    bottom: 1.5rem;
    right: 1.5rem;
    width: 3.5rem;
    height: 3.5rem;
    background: #25D366;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 16px rgba(37,211,102,.4);
    z-index: 200;
    transition: transform .15s, box-shadow .15s;
}
.whatsapp-fab:hover { transform: scale(1.08); box-shadow: 0 6px 20px rgba(37,211,102,.5); }
.whatsapp-fab svg { width: 1.8rem; height: 1.8rem; fill: #fff; }

/* ── Contact Section ─────────────────────────────────────── */
.contact-section { background: var(--surface); padding: 3rem 1.25rem; }
.contact-section__inner { max-width: 640px; margin: 0 auto; text-align: center; }
.contact-section__inner h2 { font-size: 1.8rem; margin-bottom: 1.5rem; color: var(--brand-primary); }
.contact-section__inner p { margin: .6rem 0; font-size: 1rem; }
.contact-section__inner a { color: var(--brand-primary); }

/* ── Footer ───────────────────────────────────────────────── */
.site-footer { background: var(--brand-primary); color: rgba(255,255,255,.8); padding: 2rem 1.25rem; margin-top: 3rem; }
.site-footer__inner { max-width: var(--max-width); margin: 0 auto; display: flex; flex-direction: column; gap: .5rem; align-items: center; text-align: center; }
.site-footer a { color: rgba(255,255,255,.7); }
.site-footer a:hover { color: #fff; }
.site-footer__credit { font-size: .8rem; margin-top: .5rem; opacity: .6; }

/* ── Utilities ────────────────────────────────────────────── */
.menu-empty { color: var(--text-muted); font-style: italic; padding: 2rem 0; }

/* ── Responsive ───────────────────────────────────────────── */
@media (max-width: 600px) {
    .site-nav { gap: .75rem; }
    .site-nav a:not(.btn) { display: none; }
    .hero { padding: 2.5rem 1rem; }
    .menu-grid { grid-template-columns: 1fr; }
}
