/* =========================================================
   Kinder Bites — modern stylesheet
   Clean & fresh: airy white, green lead accent, food-forward
   ========================================================= */

/* ---- Design tokens ---- */
:root {
    /* Brand palette (drawn from the logo) */
    --green-700: #3f7e22;
    --green-600: #4f9d2b;
    --green-500: #6fb22c;
    --green-100: #eaf4e1;
    --orange:    #f39b1f;
    --red:       #d8392a;
    --purple:    #7b2d8e;

    /* Neutrals */
    --ink:       #1d2a21;
    --body:      #45564d;
    --muted:     #6c7d73;
    --surface:   #ffffff;
    --surface-2: #f5f9f1;
    --line:      #e3ebdd;

    /* Type */
    --font-head: "Poppins", system-ui, sans-serif;
    --font-body: "Inter", system-ui, -apple-system, sans-serif;

    /* Shape & depth */
    --radius:    18px;
    --radius-sm: 12px;
    --radius-lg: 28px;
    --shadow-sm: 0 2px 8px rgba(29, 42, 33, .06);
    --shadow-md: 0 14px 34px rgba(29, 42, 33, .10);
    --shadow-lg: 0 30px 60px rgba(29, 42, 33, .14);

    --container: 1140px;
    --header-h: 80px;
}

/* ---- Reset / base ---- */
*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    margin: 0;
    font-family: var(--font-body);
    color: var(--body);
    background: var(--surface);
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

img { max-width: 100%; display: block; height: auto; }

h1, h2, h3, h4 {
    font-family: var(--font-head);
    color: var(--ink);
    line-height: 1.15;
    margin: 0 0 .5em;
    letter-spacing: -0.01em;
}

h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); font-weight: 800; }
h2 { font-size: clamp(1.7rem, 3.4vw, 2.6rem); font-weight: 700; }
h3 { font-size: 1.25rem; font-weight: 600; }

p { margin: 0 0 1rem; }

a { color: var(--green-700); text-decoration: none; }
a:hover { text-decoration: underline; }

:focus-visible {
    outline: 3px solid var(--green-500);
    outline-offset: 2px;
    border-radius: 4px;
}

.skip-link {
    position: absolute;
    left: -9999px;
    top: 0;
    background: var(--green-600);
    color: #fff;
    padding: .75rem 1.25rem;
    z-index: 200;
    border-radius: 0 0 var(--radius-sm) 0;
}
.skip-link:focus { left: 0; }

/* ---- Layout helpers ---- */
.container {
    width: 100%;
    max-width: var(--container);
    margin-inline: auto;
    padding-inline: clamp(1.1rem, 4vw, 2rem);
}

.section { padding-block: clamp(3.5rem, 8vw, 6.5rem); }
.section--tint { background: var(--surface-2); }

.section-head { max-width: 640px; margin-bottom: 2.75rem; }
.section-head--center { margin-inline: auto; text-align: center; }

.eyebrow {
    display: inline-block;
    font-family: var(--font-head);
    font-weight: 600;
    font-size: .8rem;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--green-600);
    margin-bottom: .9rem;
}

.lead { font-size: 1.12rem; color: var(--muted); }

/* ---- Buttons ---- */
.btn {
    --btn-bg: var(--green-600);
    --btn-fg: #fff;
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    background: var(--btn-bg);
    color: var(--btn-fg);
    font-family: var(--font-head);
    font-weight: 600;
    font-size: 1rem;
    padding: .85rem 1.6rem;
    border: 2px solid transparent;
    border-radius: 999px;
    cursor: pointer;
    transition: transform .15s ease, box-shadow .2s ease, background .2s ease;
    box-shadow: var(--shadow-sm);
    text-decoration: none;
    line-height: 1;
}
.btn:hover {
    text-decoration: none;
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
    background: var(--green-700);
}
.btn--ghost {
    --btn-bg: transparent;
    --btn-fg: var(--green-700);
    border-color: var(--green-600);
    box-shadow: none;
}
.btn--ghost:hover { background: var(--green-100); color: var(--green-700); }
.btn--small { padding: .55rem 1.1rem; font-size: .92rem; }
.btn--white { --btn-bg:#fff; --btn-fg: var(--green-700); }
.btn--white:hover { background:#fff; color: var(--green-700); }

/* =========================================================
   Header / nav
   ========================================================= */
.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(255, 255, 255, .9);
    backdrop-filter: saturate(140%) blur(10px);
    border-bottom: 1px solid var(--line);
}
.site-header.is-scrolled { box-shadow: var(--shadow-sm); }

.site-header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: var(--header-h);
    gap: 1rem;
}

.brand img { width: auto; height: 48px; }

.primary-nav ul {
    list-style: none;
    display: flex;
    align-items: center;
    gap: .35rem;
    margin: 0;
    padding: 0;
}
.primary-nav a {
    display: inline-block;
    font-family: var(--font-head);
    font-weight: 500;
    color: var(--ink);
    padding: .55rem .95rem;
    border-radius: 999px;
    transition: background .15s ease, color .15s ease;
}
.primary-nav a:hover { background: var(--green-100); color: var(--green-700); text-decoration: none; }
.primary-nav a[aria-current="page"] { color: var(--green-700); background: var(--green-100); }
.primary-nav__cta { margin-left: .4rem; }
.primary-nav__cta a { background: var(--green-600); color: #fff; }
.primary-nav__cta a:hover { background: var(--green-700); color: #fff; }

.nav-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 46px;
    height: 46px;
    padding: 0;
    background: var(--green-100);
    border: none;
    border-radius: 12px;
    cursor: pointer;
}
.nav-toggle__bar {
    display: block;
    width: 22px;
    height: 2px;
    margin-inline: auto;
    background: var(--green-700);
    border-radius: 2px;
    transition: transform .25s ease, opacity .2s ease;
}
.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* =========================================================
   Hero
   ========================================================= */
.hero { position: relative; overflow: hidden; background: var(--surface-2); }
.hero::before {
    content: "";
    position: absolute;
    top: -180px; right: -160px;
    width: 460px; height: 460px;
    background: radial-gradient(circle at center, var(--green-100), transparent 70%);
    z-index: 0;
}
.hero__inner {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 1.05fr .95fr;
    gap: clamp(2rem, 5vw, 4.5rem);
    align-items: center;
    padding-block: clamp(3rem, 7vw, 5.5rem);
}
.hero h1 { margin-bottom: 1rem; }
.hero h1 .accent { color: var(--green-600); }
.hero__text p { font-size: 1.15rem; max-width: 46ch; }
.hero__actions { display: flex; flex-wrap: wrap; gap: .9rem; margin-top: 1.6rem; }

.hero__media { position: relative; }
.hero__media img {
    width: 100%;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    aspect-ratio: 5 / 4;
    object-fit: cover;
}
.hero__badge {
    position: absolute;
    left: -18px;
    bottom: 28px;
    background: #fff;
    border-radius: var(--radius);
    box-shadow: var(--shadow-md);
    padding: .9rem 1.15rem;
    display: flex;
    align-items: center;
    gap: .75rem;
    max-width: 230px;
}
.hero__badge .dot {
    width: 42px; height: 42px;
    display: grid; place-items: center;
    background: var(--green-100);
    border-radius: 12px;
    flex: none;
}
.hero__badge strong { display: block; font-family: var(--font-head); color: var(--ink); }
.hero__badge span { font-size: .85rem; color: var(--muted); }

/* ---- Trust strip ---- */
.trust {
    background: #fff;
    border-bottom: 1px solid var(--line);
}
.trust__grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    padding-block: 1.8rem;
}
.trust__item {
    display: flex;
    align-items: center;
    gap: .75rem;
    font-family: var(--font-head);
    font-weight: 500;
    color: var(--ink);
    font-size: .98rem;
}
.trust__item svg { flex: none; color: var(--green-600); }

/* =========================================================
   Feature cards (the difference)
   ========================================================= */
.cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}
.card {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 2rem 1.75rem;
    box-shadow: var(--shadow-sm);
    transition: transform .2s ease, box-shadow .2s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.card__icon {
    width: 56px; height: 56px;
    display: grid; place-items: center;
    border-radius: 16px;
    margin-bottom: 1.1rem;
    color: #fff;
}
.card__icon--green  { background: var(--green-600); }
.card__icon--orange { background: var(--orange); }
.card__icon--purple { background: var(--purple); }
.card h3 { margin-bottom: .5rem; }
.card p { margin: 0; color: var(--body); }

/* =========================================================
   Split feature rows (image + text)
   ========================================================= */
.split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: clamp(2rem, 5vw, 4rem);
    align-items: center;
}
.split + .split { margin-top: clamp(3rem, 6vw, 5rem); }
.split--reverse .split__media { order: 2; }
.split__media img {
    width: 100%;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    aspect-ratio: 4 / 3;
    object-fit: cover;
}
.split__text h2 { margin-bottom: .75rem; }
.split ul.ticks { list-style: none; padding: 0; margin: 1.25rem 0 0; }
.split ul.ticks li {
    position: relative;
    padding-left: 2rem;
    margin-bottom: .65rem;
}
.split ul.ticks li::before {
    content: "";
    position: absolute;
    left: 0; top: .35em;
    width: 18px; height: 18px;
    background: var(--green-100);
    border-radius: 50%;
}
.split ul.ticks li::after {
    content: "";
    position: absolute;
    left: 6px; top: .62em;
    width: 6px; height: 3px;
    border-left: 2px solid var(--green-700);
    border-bottom: 2px solid var(--green-700);
    transform: rotate(-45deg);
}

/* =========================================================
   Meal types
   ========================================================= */
.meals {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}
.meal {
    display: flex;
    gap: 1.25rem;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 1.5rem;
    box-shadow: var(--shadow-sm);
}
.meal__tag {
    flex: none;
    width: 54px; height: 54px;
    display: grid; place-items: center;
    border-radius: 14px;
    background: var(--green-100);
    color: var(--green-700);
    font-size: 1.6rem;
}
.meal h3 { margin-bottom: .25rem; }
.meal p { margin: 0; font-size: .96rem; }

/* =========================================================
   CTA band
   ========================================================= */
.cta-band {
    background: linear-gradient(120deg, var(--green-700), var(--green-500));
    color: #fff;
    border-radius: var(--radius-lg);
    padding: clamp(2.5rem, 5vw, 3.5rem);
    text-align: center;
    box-shadow: var(--shadow-md);
}
.cta-band h2 { color: #fff; }
.cta-band p { color: rgba(255, 255, 255, .9); max-width: 52ch; margin-inline: auto; }
.cta-band .hero__actions { justify-content: center; }

/* =========================================================
   Page header (interior pages)
   ========================================================= */
.page-hero {
    background: var(--surface-2);
    border-bottom: 1px solid var(--line);
    padding-block: clamp(2.5rem, 6vw, 4rem);
    text-align: center;
}
.page-hero p { max-width: 60ch; margin-inline: auto; }

/* ---- Prose ---- */
.prose { max-width: 720px; margin-inline: auto; }
.prose p { font-size: 1.06rem; }
.prose h2 { margin-top: 2rem; }

/* =========================================================
   Menu table
   ========================================================= */
.menu-table-wrap {
    overflow-x: auto;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    background: #fff;
}
.menu-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 640px;
    font-size: .95rem;
}
.menu-table th,
.menu-table td {
    padding: .85rem 1rem;
    text-align: left;
    border-bottom: 1px solid var(--line);
    vertical-align: top;
}
.menu-table thead th {
    background: var(--green-600);
    color: #fff;
    font-family: var(--font-head);
    font-weight: 600;
    position: sticky;
    top: 0;
}
.menu-table tbody tr:nth-child(even) { background: var(--surface-2); }
.menu-table .row-day td { font-family: var(--font-head); font-weight: 600; color: var(--ink); }
.menu-table .row-note td {
    text-align: center;
    color: var(--red);
    font-weight: 600;
    background: #fff;
}
.menu-unavailable {
    text-align: center;
    padding: 3rem 1rem;
    color: var(--muted);
}

/* =========================================================
   Forms
   ========================================================= */
.form-card {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    padding: clamp(1.5rem, 4vw, 2.5rem);
}
.field { margin-bottom: 1.25rem; }
.field label {
    display: block;
    font-family: var(--font-head);
    font-weight: 500;
    color: var(--ink);
    margin-bottom: .4rem;
}
.field .req { color: var(--red); }
.field input,
.field textarea {
    width: 100%;
    font: inherit;
    color: var(--ink);
    padding: .8rem 1rem;
    background: var(--surface-2);
    border: 1.5px solid var(--line);
    border-radius: var(--radius-sm);
    transition: border-color .15s ease, background .15s ease, box-shadow .15s ease;
}
.field input:focus,
.field textarea:focus {
    outline: none;
    background: #fff;
    border-color: var(--green-500);
    box-shadow: 0 0 0 3px var(--green-100);
}
.field input.error,
.field textarea.error { border-color: var(--red); background: #fdecea; }
.field textarea { resize: vertical; min-height: 140px; }

.form-msg {
    border-radius: var(--radius-sm);
    padding: 1rem 1.25rem;
    margin-top: 1rem;
    font-weight: 500;
}
.form-msg--success { background: var(--green-100); color: var(--green-700); }
.form-msg--error   { background: #fdecea; color: var(--red); }

/* ---- Contact layout ---- */
.contact-grid {
    display: grid;
    grid-template-columns: 1.1fr .9fr;
    gap: clamp(2rem, 5vw, 3.5rem);
    align-items: start;
}
.contact-info { display: grid; gap: 1.25rem; }
.contact-info__item {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
}
.contact-info__item .ico {
    flex: none;
    width: 46px; height: 46px;
    display: grid; place-items: center;
    background: var(--green-100);
    color: var(--green-700);
    border-radius: 12px;
}
.contact-info__item h3 { margin: 0 0 .15rem; font-size: 1.05rem; }
.contact-info__item p { margin: 0; }
#map {
    display: block;
    width: 100%;
    height: 320px;
    border: 0;
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    background: var(--surface-2);
    margin-top: 1.5rem;
}

/* =========================================================
   Footer
   ========================================================= */
.site-footer {
    background: var(--ink);
    color: #c7d3c9;
    padding-top: clamp(3rem, 6vw, 4.5rem);
    margin-top: 0;
}
.site-footer__grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr 1fr;
    gap: 2rem;
    padding-bottom: 2.5rem;
}
.site-footer__brand img {
    height: 50px; width: auto;
    background: #fff;
    padding: .5rem .75rem;
    border-radius: 12px;
    margin-bottom: 1rem;
}
.site-footer__brand p { max-width: 34ch; }
.site-footer h3 {
    color: #fff;
    font-size: 1rem;
    margin-bottom: 1rem;
}
.site-footer__links,
.site-footer__contact { list-style: none; margin: 0; padding: 0; }
.site-footer__links li,
.site-footer__contact li { margin-bottom: .6rem; }
.site-footer a { color: #c7d3c9; }
.site-footer a:hover { color: #fff; }
.site-footer address { font-style: normal; line-height: 1.8; }
.site-footer__contact span {
    display: inline-block;
    width: 52px;
    color: var(--green-500);
    font-weight: 600;
}
.site-footer__bar {
    border-top: 1px solid rgba(255, 255, 255, .12);
    padding-block: 1.5rem;
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: .5rem;
    font-size: .88rem;
    color: #9fb0a4;
}
.site-footer__bar p { margin: 0; }

/* =========================================================
   Responsive
   ========================================================= */
@media (max-width: 960px) {
    .hero__inner { grid-template-columns: 1fr; }
    .hero__media { max-width: 540px; }
    .trust__grid { grid-template-columns: repeat(2, 1fr); }
    .cards { grid-template-columns: 1fr; }
    .split,
    .split--reverse { grid-template-columns: 1fr; }
    .split--reverse .split__media { order: 0; }
    .contact-grid { grid-template-columns: 1fr; }
    .site-footer__grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 760px) {
    .nav-toggle { display: flex; }
    .primary-nav {
        position: fixed;
        inset: var(--header-h) 0 auto 0;
        background: #fff;
        border-bottom: 1px solid var(--line);
        box-shadow: var(--shadow-md);
        transform: translateY(-12px);
        opacity: 0;
        visibility: hidden;
        transition: transform .22s ease, opacity .22s ease, visibility .22s;
    }
    .primary-nav.is-open { transform: translateY(0); opacity: 1; visibility: visible; }
    .primary-nav ul {
        flex-direction: column;
        align-items: stretch;
        gap: .15rem;
        padding: 1rem clamp(1.1rem, 4vw, 2rem) 1.5rem;
    }
    .primary-nav a { padding: .85rem 1rem; }
    .primary-nav__cta { margin: .5rem 0 0; }
    .primary-nav__cta a { text-align: center; }
}

@media (max-width: 560px) {
    .meals { grid-template-columns: 1fr; }
    .trust__grid { grid-template-columns: 1fr; }
    .site-footer__grid { grid-template-columns: 1fr; }
    .hero__badge { left: 0; }
}

@media (prefers-reduced-motion: reduce) {
    * { animation-duration: .001ms !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
}

/* ---- Scroll-reveal (progressive enhancement) ---- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.reveal.is-visible { opacity: 1; transform: none; }
