/* ============================================================================
   Jamaican Independence Food Festival — Main Stylesheet
   Palette: Green (#009B3A), Gold (#FFD100), Black (#111111)
   Accents: White (#FFFFFF), Dark Charcoal (#1E1E24)
   Mobile-first, responsive, modern & premium.
   ========================================================================== */

/* ---------- Design tokens ---------- */
:root {
    --green:        #009B3A;
    --green-dark:   #007A2E;
    --green-deep:   #04381d;
    --gold:         #FFD100;
    --gold-soft:    #FFE569;
    --black:        #111111;
    --charcoal:     #1E1E24;
    --charcoal-2:   #2A2A32;
    --white:        #FFFFFF;
    --cream:        #FBFAF5;
    --gray:         #6b6b74;
    --line:         #e7e6df;

    --radius:       16px;
    --radius-sm:    10px;
    --shadow:       0 10px 30px rgba(0,0,0,.10);
    --shadow-lg:    0 24px 60px rgba(0,0,0,.18);
    --maxw:         1140px;
    --font:         'Poppins', system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
    --display:      'Playfair Display', Georgia, serif;
    --transition:   .25s ease;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
    font-family: var(--font);
    color: var(--charcoal);
    background: var(--cream);
    line-height: 1.6;
    overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 20px; }

/* ---------- Typography ---------- */
h1, h2, h3, h4 { line-height: 1.15; font-weight: 700; }
.section-title {
    font-family: var(--display);
    font-size: clamp(1.8rem, 4vw, 2.8rem);
    color: var(--black);
    text-align: center;
}
.section-kicker {
    display: inline-block;
    color: var(--green);
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;
    font-size: .8rem;
    margin-bottom: .5rem;
}
.section-head { text-align: center; margin-bottom: 2.5rem; }
.section-head .divider { margin: 1rem auto 0; }

.divider {
    width: 90px; height: 5px; border-radius: 5px;
    background: linear-gradient(90deg, var(--green) 0 33%, var(--gold) 33% 66%, var(--black) 66% 100%);
}

/* ---------- Buttons ---------- */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
    padding: .85rem 1.6rem;
    border: none; border-radius: 999px;
    font-family: var(--font); font-weight: 700; font-size: 1rem;
    cursor: pointer; transition: transform var(--transition), box-shadow var(--transition), background var(--transition);
    background: var(--green); color: var(--white);
    box-shadow: 0 8px 20px rgba(0,155,58,.28);
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 12px 26px rgba(0,155,58,.38); }
.btn-gold { background: var(--gold); color: var(--black); box-shadow: 0 8px 20px rgba(255,209,0,.35); }
.btn-gold:hover { box-shadow: 0 12px 26px rgba(255,209,0,.5); }
.btn-outline { background: transparent; color: var(--white); border: 2px solid rgba(255,255,255,.8); box-shadow: none; }
.btn-outline:hover { background: rgba(255,255,255,.14); }
.btn-dark { background: var(--charcoal); color: #fff; }
.btn-block { width: 100%; }
.btn-lg { padding: 1.05rem 2.2rem; font-size: 1.1rem; }

/* ============================================================================
   HEADER / NAV
   ========================================================================== */
.site-header {
    position: sticky; top: 0; z-index: 100;
    background: rgba(17,17,17,.92);
    backdrop-filter: blur(10px);
    border-bottom: 3px solid transparent;
    border-image: linear-gradient(90deg, var(--green), var(--gold), var(--green)) 1;
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 72px; }

.brand { display: flex; align-items: center; gap: .7rem; color: #fff; }
.brand-flag {
    width: 46px; height: 30px; border-radius: 5px; flex: none; display: block;
    object-fit: cover; box-shadow: 0 2px 8px rgba(0,0,0,.35);
    outline: 1px solid rgba(255,255,255,.18);
}

/* Full-width Jamaican flag ribbon at the very top of every page.
   The flag SVG tiles horizontally at its natural 2:1 ratio, creating a
   festive bunting-style band. */
.flag-ribbon {
    height: 16px; width: 100%;
    background-image: url("../img/jamaica-flag.svg");
    background-repeat: repeat-x;
    background-size: auto 100%;
    background-position: left center;
}
.brand-title { font-size: 1.25rem; font-weight: 800; letter-spacing: .5px; display: block; }
.brand-title strong { color: var(--gold); }
.brand-sub { font-size: .68rem; letter-spacing: .14em; text-transform: uppercase; color: #cfcfcf; }

.site-nav { display: flex; align-items: center; gap: 1.6rem; }
.site-nav a { color: #f2f2f2; font-weight: 600; transition: color var(--transition); }
.site-nav a:hover, .site-nav a.is-active { color: var(--gold); }
.site-nav a.btn-nav { color: var(--black); padding: .6rem 1.3rem; }
.site-nav a.btn-nav:hover { color: var(--black); }

.nav-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: 6px; }
.nav-toggle span { width: 26px; height: 3px; background: #fff; border-radius: 3px; transition: var(--transition); }

/* ============================================================================
   HERO
   ========================================================================== */
.hero {
    position: relative; color: #fff; text-align: center;
    padding: clamp(3.5rem, 9vw, 7rem) 0 clamp(4rem, 10vw, 8rem);
    /* Jamaican flag as the hero backdrop, darkened so text stays readable */
    background:
        linear-gradient(rgba(4,20,10,.74), rgba(4,20,10,.82)),
        url("../img/jamaica-flag.svg") center center / cover no-repeat,
        var(--green-deep);
    overflow: hidden;
}
/* subtle tropical leaf pattern overlay */
.hero::before {
    content: ""; position: absolute; inset: 0; opacity: .12; pointer-events: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120' viewBox='0 0 120 120'%3E%3Cg fill='none' stroke='%23FFD100' stroke-width='1.2' opacity='.6'%3E%3Cpath d='M10 60 Q40 20 70 60 Q40 100 10 60Z'/%3E%3Cpath d='M60 20 Q100 40 60 70 Q20 40 60 20Z'/%3E%3C/g%3E%3C/svg%3E");
    background-size: 220px 220px;
}
.hero .container { position: relative; z-index: 1; }
.hero-badge {
    display: inline-block; padding: .45rem 1.1rem; border-radius: 999px;
    background: rgba(255,209,0,.15); border: 1px solid rgba(255,209,0,.5);
    color: var(--gold); font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
    font-size: .78rem; margin-bottom: 1.3rem;
}
.hero h1 {
    font-family: var(--display);
    font-size: clamp(2.2rem, 6vw, 4.2rem);
    margin-bottom: .4rem; text-shadow: 0 4px 24px rgba(0,0,0,.4);
}
.hero .hero-sub { color: var(--gold); font-weight: 700; font-size: clamp(1rem,2.4vw,1.4rem); letter-spacing: .05em; margin-bottom: 1.4rem; }
.hero p.hero-lead { max-width: 640px; margin: 0 auto 2rem; font-size: clamp(1rem,2.2vw,1.2rem); color: #eaeaea; }
.hero-cta { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }

.hero-facts { display: flex; gap: 1.2rem; justify-content: center; flex-wrap: wrap; margin-top: 2.6rem; }
.hero-fact {
    background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.15);
    border-radius: var(--radius); padding: 1rem 1.6rem; min-width: 160px; backdrop-filter: blur(4px);
}
.hero-fact .label { font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; color: var(--gold); }
.hero-fact .value { font-size: 1.15rem; font-weight: 700; margin-top: .2rem; }

/* ============================================================================
   GENERIC SECTION
   ========================================================================== */
section.block { padding: clamp(3rem, 7vw, 5.5rem) 0; }
.block.alt { background: var(--white); }

/* Feature cards on home */
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.4rem; }
.feature {
    background: var(--white); border-radius: var(--radius); padding: 2rem 1.6rem;
    text-align: center; box-shadow: var(--shadow); border: 1px solid var(--line);
    transition: transform var(--transition), box-shadow var(--transition);
}
.feature:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.feature .icon {
    width: 64px; height: 64px; margin: 0 auto 1rem; border-radius: 50%;
    display: grid; place-items: center; font-size: 1.8rem;
    background: linear-gradient(135deg, var(--green), var(--green-dark)); color: var(--gold);
}
.feature h3 { margin-bottom: .5rem; color: var(--black); }
.feature p { color: var(--gray); font-size: .95rem; }

/* ============================================================================
   MENU
   ========================================================================== */
.menu-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.6rem; }
.menu-card {
    background: var(--white); border-radius: var(--radius); overflow: hidden; position: relative;
    box-shadow: var(--shadow); border: 1px solid var(--line); display: flex; flex-direction: column;
    transition: transform var(--transition), box-shadow var(--transition); cursor: pointer;
}
.menu-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
/* Stretched link: makes the ENTIRE card clickable while keeping a visible button.
   Clicking anywhere on the card follows the Order link. */
.menu-card .order-link::after {
    content: ""; position: absolute; inset: 0; z-index: 2;
}
.menu-card .order-link { position: relative; z-index: 3; }
.menu-photo {
    height: 180px; position: relative; display: grid; place-items: center; overflow: hidden;
    background: linear-gradient(135deg, var(--green-dark), var(--green-deep)); color: rgba(255,255,255,.9);
}
.menu-photo .emoji { font-size: 3.4rem; filter: drop-shadow(0 4px 10px rgba(0,0,0,.35)); }
.menu-photo .ph-label { position: absolute; bottom: 10px; right: 12px; font-size: .68rem; letter-spacing: .1em; text-transform: uppercase; color: rgba(255,255,255,.55); }
/* Real food photo fills the whole card banner */
.menu-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* Small square thumbnail on the order-page item rows */
.it-thumb {
    width: 60px; height: 60px; flex: 0 0 60px; border-radius: 10px; overflow: hidden;
    display: grid; place-items: center;
    background: linear-gradient(135deg, var(--green-dark), var(--green-deep));
}
.it-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.it-thumb .emoji { font-size: 1.7rem; }
.it-thumb .ph-label { display: none; }
.menu-body { padding: 1.3rem 1.4rem 1.5rem; display: flex; flex-direction: column; flex: 1; }
.menu-body h3 { color: var(--black); font-size: 1.2rem; }
.menu-body .desc { color: var(--gray); font-size: .9rem; margin: .35rem 0 1rem; }
.menu-price-row { margin-top: auto; display: flex; align-items: center; justify-content: space-between; }
.menu-price { font-family: var(--display); font-size: 1.6rem; font-weight: 800; color: var(--green); }
.price-pill { background: var(--gold); color: var(--black); font-weight: 800; padding: .35rem .9rem; border-radius: 999px; }

/* Includes strip */
.includes {
    margin-top: 2.6rem; background: linear-gradient(135deg, var(--charcoal), var(--black));
    color: #fff; border-radius: var(--radius); padding: 2rem; text-align: center;
    border: 1px solid rgba(255,255,255,.06);
}
.includes h3 { color: var(--gold); margin-bottom: 1rem; font-family: var(--display); font-size: 1.6rem; }
.includes ul { display: flex; gap: .8rem 1.4rem; flex-wrap: wrap; justify-content: center; }
.includes li { display: flex; align-items: center; gap: .5rem; font-weight: 600; }
.includes li::before { content: "✦"; color: var(--gold); }
.includes .drink-note { margin-top: 1rem; color: #cfcfcf; font-size: .92rem; }

/* Signature drink banner */
.stout-banner {
    margin-top: 1.6rem; display: flex; align-items: center; justify-content: space-between; gap: 1rem;
    flex-wrap: wrap; background: var(--white); border: 2px dashed var(--gold);
    border-radius: var(--radius); padding: 1.4rem 1.8rem;
}
.stout-banner .st-info h3 { color: var(--black); }
.stout-banner .st-info p { color: var(--gray); font-size: .9rem; }
.stout-banner .st-price { font-family: var(--display); font-size: 2rem; font-weight: 800; color: var(--green); }

/* ============================================================================
   ORDER FORM
   ========================================================================== */
.order-layout { display: grid; grid-template-columns: 1fr 340px; gap: 2rem; align-items: start; }

.card {
    background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow);
    border: 1px solid var(--line); padding: 1.8rem;
}
.card + .card { margin-top: 1.6rem; }
.card h2 {
    font-family: var(--display); font-size: 1.5rem; color: var(--black);
    margin-bottom: 1.2rem; display: flex; align-items: center; gap: .6rem;
}
.card h2 .step {
    width: 30px; height: 30px; flex: none; border-radius: 50%; background: var(--green); color: #fff;
    display: grid; place-items: center; font-size: .95rem; font-weight: 700; font-family: var(--font);
}

.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem; }
.field { display: flex; flex-direction: column; gap: .35rem; }
.field.full { grid-column: 1 / -1; }
.field label { font-weight: 600; font-size: .9rem; color: var(--charcoal); }
.field .req { color: #c62828; }
.field input, .field select, .field textarea {
    font-family: var(--font); font-size: 1rem; padding: .75rem .9rem;
    border: 1.5px solid var(--line); border-radius: var(--radius-sm); background: #fff; color: var(--charcoal);
    transition: border-color var(--transition), box-shadow var(--transition); width: 100%;
}
.field input:focus, .field select:focus, .field textarea:focus {
    outline: none; border-color: var(--green); box-shadow: 0 0 0 3px rgba(0,155,58,.15);
}
.field textarea { resize: vertical; min-height: 90px; }
.field .hint { font-size: .8rem; color: var(--gray); }

/* Menu selection rows */
.item-row {
    display: flex; align-items: center; gap: 1rem; padding: 1rem 0; border-bottom: 1px solid var(--line);
    /* Keep the row clear of the sticky header when jumped to from a menu link */
    scroll-margin-top: 100px;
    border-radius: 10px; transition: background-color .4s ease;
}
.item-row:last-child { border-bottom: none; }
/* Brief highlight when a dish is opened from the menu (#item-… link) */
.item-row.item-flash {
    background-color: rgba(255, 209, 0, .28);
    box-shadow: 0 0 0 3px rgba(255, 209, 0, .5);
}
.item-row .it-main { flex: 1; min-width: 0; }
.item-row .it-name { font-weight: 600; color: var(--black); }
.item-row .it-desc { font-size: .82rem; color: var(--gray); }
.item-row .it-price { font-weight: 700; color: var(--green); white-space: nowrap; }

.qty { display: inline-flex; align-items: center; border: 1.5px solid var(--line); border-radius: 999px; overflow: hidden; background: #fff; }
.qty button {
    width: 36px; height: 38px; border: none; background: var(--cream); color: var(--green);
    font-size: 1.3rem; font-weight: 700; cursor: pointer; line-height: 1; transition: background var(--transition);
}
.qty button:hover { background: var(--gold-soft); }
.qty button:disabled { opacity: .4; cursor: not-allowed; }
.qty select, .qty input {
    width: 46px; text-align: center; border: none; font-weight: 700; font-size: 1rem;
    -moz-appearance: textfield; appearance: textfield; background: #fff; color: var(--black);
}
.qty input::-webkit-outer-spin-button, .qty input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }

.stout-row { background: linear-gradient(135deg, rgba(255,209,0,.12), transparent); border-radius: var(--radius-sm); padding-left: .8rem; padding-right: .8rem; }

/* Payment box */
.pay-box { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin-bottom: 1rem; }
.pay-method { border: 1.5px solid var(--line); border-radius: var(--radius-sm); padding: 1rem 1.2rem; text-align: center; }
.pay-method .pm-name { font-weight: 700; color: var(--black); text-transform: uppercase; letter-spacing: .06em; font-size: .8rem; }
.pay-method .pm-handle { font-size: 1.15rem; font-weight: 700; color: var(--green); margin-top: .3rem; word-break: break-word; }
.pay-warning {
    background: #fff7e0; border-left: 4px solid var(--gold); border-radius: var(--radius-sm);
    padding: .9rem 1.1rem; color: #7a5c00; font-size: .92rem;
}
.pay-warning strong { color: #5c4500; }

/* Order summary sidebar */
.summary { position: sticky; top: 90px; }
.summary .sum-line { display: flex; justify-content: space-between; padding: .4rem 0; color: var(--charcoal); font-size: .95rem; }
.summary .sum-items { border-bottom: 1px solid var(--line); padding-bottom: .6rem; margin-bottom: .6rem; max-height: 240px; overflow-y: auto; }
.summary .sum-items .empty { color: var(--gray); font-style: italic; font-size: .9rem; }
.summary .sum-total { display: flex; justify-content: space-between; font-size: 1.35rem; font-weight: 800; color: var(--green); margin-top: .6rem; padding-top: .6rem; border-top: 2px solid var(--line); }
.summary .tax-line { color: var(--gray); }

.error-list {
    background: #fdecea; border: 1px solid #f5c6cb; color: #a1272f;
    border-radius: var(--radius-sm); padding: 1rem 1.2rem 1rem 2.4rem; margin-bottom: 1.4rem;
}
.error-list li { list-style: disc; }

/* ============================================================================
   THANK YOU PAGE
   ========================================================================== */
.thankyou { text-align: center; padding: clamp(3rem,8vw,6rem) 0; }
.ty-check {
    width: 92px; height: 92px; margin: 0 auto 1.4rem; border-radius: 50%;
    background: linear-gradient(135deg, var(--green), var(--green-dark)); color: #fff;
    display: grid; place-items: center; font-size: 3rem; box-shadow: 0 12px 30px rgba(0,155,58,.35);
}
.ty-number {
    display: inline-block; margin: 1.2rem 0; padding: 1rem 2.4rem; border-radius: var(--radius);
    background: var(--black); color: var(--gold); font-family: var(--display);
    font-size: clamp(2rem,6vw,3rem); font-weight: 800; letter-spacing: .05em;
    box-shadow: var(--shadow-lg);
}
.ty-card { max-width: 640px; margin: 1.6rem auto 0; text-align: left; }
.ty-card .sum-line { display: flex; justify-content: space-between; padding: .45rem 0; border-bottom: 1px solid var(--line); }
.ty-card .sum-line:last-child { border-bottom: none; }
.ty-pay { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin: 1.2rem 0; }

/* ============================================================================
   FOOTER
   ========================================================================== */
.site-footer { background: var(--black); color: #d8d8d8; margin-top: 2rem; }
.footer-inner { display: grid; grid-template-columns: repeat(3,1fr); gap: 2rem; padding: 3rem 20px; }
.footer-col h4 { color: var(--gold); margin-bottom: 1rem; font-size: 1.05rem; }
.footer-col a { display: block; color: #cfcfcf; padding: .25rem 0; transition: color var(--transition); }
.footer-col a:hover { color: var(--gold); }
.footer-col p { color: #b9b9b9; font-size: .92rem; margin-bottom: .3rem; }
.footer-col strong { color: #fff; }
.footer-note, .footer-event { font-size: .85rem !important; color: #9a9a9a !important; }
.footer-bar { border-top: 1px solid rgba(255,255,255,.1); }
.footer-bar-inner { display: flex; justify-content: space-between; flex-wrap: wrap; gap: .5rem; padding: 1.2rem 20px; font-size: .85rem; color: #9a9a9a; }
.footer-bar-inner strong { color: var(--gold); }

/* ============================================================================
   RESPONSIVE
   ========================================================================== */
@media (max-width: 900px) {
    .order-layout { grid-template-columns: 1fr; }
    .summary { position: static; }
    .features { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
    .nav-toggle { display: flex; }
    .site-nav {
        position: absolute; top: 72px; left: 0; right: 0;
        flex-direction: column; align-items: stretch; gap: 0;
        background: rgba(17,17,17,.98); padding: .5rem 20px 1.2rem;
        max-height: 0; overflow: hidden; transition: max-height var(--transition);
    }
    .site-nav.open { max-height: 340px; }
    .site-nav a { padding: .9rem 0; border-bottom: 1px solid rgba(255,255,255,.08); }
    .site-nav a.btn-nav { text-align: center; margin-top: .6rem; }
    .nav-toggle.open span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
    .nav-toggle.open span:nth-child(2) { opacity: 0; }
    .nav-toggle.open span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }
}
@media (max-width: 640px) {
    .menu-grid { grid-template-columns: 1fr; }
    .form-grid { grid-template-columns: 1fr; }
    .pay-box, .ty-pay { grid-template-columns: 1fr; }
    .footer-inner { grid-template-columns: 1fr; gap: 1.4rem; }
    .card { padding: 1.3rem; }
    .item-row { flex-wrap: wrap; }
    .item-row .it-price { order: 2; }
}
