/* ===========================================================
   Mamstar — brand tokens and public site components
   Palette per spec §5: deep blue / aqua / white / neutral grey
   =========================================================== */

:root {
    --deep:        #0B3B60;   /* deep blue — primary */
    --deep-dark:   #072B47;   /* deeper, for gradients and footer */
    --aqua:        #16B3D4;   /* aqua — accent, CTAs */
    --aqua-light:  #7FDCEC;   /* aqua tint — highlights on dark */
    --white:       #FFFFFF;
    --grey-bg:     #F2F5F7;   /* neutral grey surface */
    --grey-line:   #DDE4E9;   /* hairlines */
    --grey-text:   #566C7A;   /* muted body text */
    --ink:         #08202F;   /* headings on light */

    --wrap: 1180px;
    --radius: 14px;
    --radius-sm: 8px;

    --font-display: 'Archivo', system-ui, sans-serif;
    --font-body: 'IBM Plex Sans', system-ui, sans-serif;
}

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

html { -webkit-text-size-adjust: 100%; }

body {
    margin: 0;
    font-family: var(--font-body);
    color: var(--ink);
    background: var(--white);
    line-height: 1.6;
    overflow-x: hidden;              /* §26 — no horizontal scroll */
}

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

h1, h2, h3, h4 {
    font-family: var(--font-display);
    line-height: 1.1;
    letter-spacing: -0.02em;
    margin: 0 0 0.5em;
    font-weight: 700;
}

a { color: inherit; }

.wrap {
    width: 100%;
    max-width: var(--wrap);
    margin-inline: auto;
    padding-inline: 20px;
}

/* --- Buttons ---------------------------------------------------------- */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 13px 24px;
    border-radius: var(--radius-sm);
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 0.95rem;
    letter-spacing: 0.01em;
    text-decoration: none;
    border: 2px solid transparent;
    cursor: pointer;
    transition: transform .15s ease, background-color .15s ease, border-color .15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn:focus-visible { outline: 3px solid var(--aqua-light); outline-offset: 2px; }

.btn--primary { background: var(--aqua); color: #04252F; }
.btn--primary:hover { background: #12A0BF; }

.btn--ghost { border-color: rgba(255,255,255,.45); color: var(--white); }
.btn--ghost:hover { border-color: var(--white); background: rgba(255,255,255,.08); }

.btn--outline { border-color: var(--deep); color: var(--deep); }
.btn--outline:hover { background: var(--deep); color: var(--white); }

.btn--order {
    background: var(--aqua);
    color: #04252F;
    padding: 11px 20px;
    font-size: .85rem;
    text-transform: uppercase;
    letter-spacing: .06em;
}

/* --- Header ----------------------------------------------------------- */

.site-header {
    position: sticky;
    top: 0;
    z-index: 60;
    background: var(--deep);
    color: var(--white);
    border-bottom: 1px solid rgba(255,255,255,.1);
}

.site-header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    min-height: 68px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-display);
    font-weight: 800;
    font-size: 1.35rem;
    letter-spacing: -0.03em;
    text-decoration: none;
    color: var(--white);
}
.brand__mark { width: 26px; height: 26px; flex: none; }

.nav { display: none; gap: 26px; align-items: center; }
.nav a {
    text-decoration: none;
    font-size: .92rem;
    font-weight: 500;
    color: rgba(255,255,255,.85);
    padding: 6px 0;
    border-bottom: 2px solid transparent;
}
.nav a:hover, .nav a[aria-current="page"] {
    color: var(--white);
    border-bottom-color: var(--aqua);
}

.header-actions { display: flex; align-items: center; gap: 10px; }

.nav-toggle {
    display: inline-flex;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 42px; height: 42px;
    padding: 0 9px;
    background: transparent;
    border: 1px solid rgba(255,255,255,.3);
    border-radius: var(--radius-sm);
    cursor: pointer;
}
.nav-toggle span { display: block; height: 2px; background: var(--white); border-radius: 2px; }

.nav-mobile {
    display: none;
    flex-direction: column;
    padding: 8px 0 20px;
    border-top: 1px solid rgba(255,255,255,.12);
}
.nav-mobile.is-open { display: flex; }
.nav-mobile a {
    padding: 13px 0;
    text-decoration: none;
    color: rgba(255,255,255,.9);
    font-size: 1rem;
    border-bottom: 1px solid rgba(255,255,255,.08);
}

@media (min-width: 900px) {
    .nav { display: flex; }
    .nav-toggle { display: none; }
    .nav-mobile { display: none !important; }
}

/* --- Hero ------------------------------------------------------------- */

.hero {
    position: relative;
    background: linear-gradient(165deg, var(--deep) 0%, var(--deep-dark) 100%);
    color: var(--white);
    padding: 68px 0 0;
    overflow: hidden;
}

.hero__eyebrow {
    font-family: var(--font-display);
    font-size: .78rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .16em;
    color: var(--aqua-light);
    margin-bottom: 18px;
}

.hero h1 {
    font-size: clamp(2.15rem, 7vw, 4.1rem);
    max-width: 15ch;
    margin-bottom: 20px;
}
.hero h1 em { font-style: normal; color: var(--aqua-light); }

.hero__lead {
    font-size: clamp(1rem, 2.4vw, 1.18rem);
    color: rgba(255,255,255,.82);
    max-width: 52ch;
    margin: 0 0 30px;
}

.hero__cta { display: flex; flex-wrap: wrap; gap: 12px; padding-bottom: 90px; }

/* Signature: the waterline. A slow meniscus at the base of the hero. */
.waterline {
    position: absolute;
    left: 0; right: 0; bottom: -1px;
    width: 100%;
    pointer-events: none;
    line-height: 0;
}
.waterline svg { width: 200%; height: 70px; }
.waterline--back svg { animation: drift 22s linear infinite; opacity: .35; }
.waterline--front svg { animation: drift 15s linear infinite reverse; }

@keyframes drift {
    from { transform: translateX(0); }
    to   { transform: translateX(-50%); }
}

@media (prefers-reduced-motion: reduce) {
    .waterline svg { animation: none; }
    .btn:hover { transform: none; }
}

/* --- Sections --------------------------------------------------------- */

.section { padding: 64px 0; }
.section--grey { background: var(--grey-bg); }
.section--deep { background: var(--deep); color: var(--white); }

.section__eyebrow {
    font-family: var(--font-display);
    font-size: .75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .16em;
    color: var(--aqua);
    margin-bottom: 12px;
}
.section--deep .section__eyebrow { color: var(--aqua-light); }

.section__title { font-size: clamp(1.7rem, 4.2vw, 2.5rem); max-width: 20ch; }
.section__lead { color: var(--grey-text); max-width: 60ch; font-size: 1.03rem; }
.section--deep .section__lead { color: rgba(255,255,255,.78); }

/* --- Category cards (§7) ---------------------------------------------- */

.cards {
    display: grid;
    gap: 20px;
    grid-template-columns: 1fr;
    margin-top: 36px;
}
@media (min-width: 760px)  { .cards { grid-template-columns: repeat(3, 1fr); } }

.card {
    display: flex;
    flex-direction: column;
    background: var(--white);
    border: 1px solid var(--grey-line);
    border-radius: var(--radius);
    padding: 26px 24px 24px;
    text-decoration: none;
    color: inherit;
    transition: border-color .18s ease, transform .18s ease, box-shadow .18s ease;
}
.card:hover {
    border-color: var(--aqua);
    transform: translateY(-3px);
    box-shadow: 0 12px 28px rgba(11,59,96,.09);
}
.card__icon { color: var(--aqua); margin-bottom: 16px; }
.card__icon svg { width: 34px; height: 34px; }
.card h3 { font-size: 1.28rem; margin-bottom: 8px; }
.card p { color: var(--grey-text); font-size: .96rem; margin: 0 0 20px; flex: 1; }
.card__cta {
    font-family: var(--font-display);
    font-weight: 600;
    font-size: .9rem;
    color: var(--deep);
    display: inline-flex;
    align-items: center;
    gap: 6px;
}
.card:hover .card__cta { color: var(--aqua); }

/* --- Segments strip (§23) --------------------------------------------- */

.segments {
    display: grid;
    gap: 1px;
    background: var(--grey-line);
    border: 1px solid var(--grey-line);
    border-radius: var(--radius);
    overflow: hidden;
    grid-template-columns: repeat(2, 1fr);
    margin-top: 30px;
}
@media (min-width: 860px) { .segments { grid-template-columns: repeat(4, 1fr); } }

.segment { background: var(--white); padding: 22px 20px; }
.segment__label {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1rem;
    margin-bottom: 4px;
}
.segment p { margin: 0; font-size: .88rem; color: var(--grey-text); }

/* --- Process (§21) — a real sequence, so numbering is meaningful ------- */

.process { display: grid; gap: 0; margin-top: 40px; }

.step {
    display: grid;
    grid-template-columns: 56px 1fr;
    gap: 20px;
    padding: 26px 0;
    border-top: 1px solid var(--grey-line);
}
.step:last-child { border-bottom: 1px solid var(--grey-line); }

.step__num {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--aqua);
    line-height: 1;
    padding-top: 3px;
}
.step h3 { font-size: 1.2rem; margin-bottom: 6px; }
.step p { margin: 0; color: var(--grey-text); font-size: .97rem; max-width: 62ch; }

@media (min-width: 760px) {
    .step { grid-template-columns: 80px 1fr; gap: 28px; }
    .step__num { font-size: 2rem; }
}

/* --- Order chooser ---------------------------------------------------- */

.chooser { display: grid; gap: 18px; grid-template-columns: 1fr; margin-top: 40px; }
@media (min-width: 800px) { .chooser { grid-template-columns: repeat(3, 1fr); } }

.chooser__option {
    background: rgba(255,255,255,.06);
    border: 1px solid rgba(255,255,255,.16);
    border-radius: var(--radius);
    padding: 28px 24px;
    text-decoration: none;
    color: var(--white);
    display: flex;
    flex-direction: column;
    transition: background-color .18s ease, border-color .18s ease, transform .18s ease;
}
.chooser__option:hover {
    background: rgba(255,255,255,.11);
    border-color: var(--aqua);
    transform: translateY(-3px);
}
.chooser__option h3 { font-size: 1.3rem; margin-bottom: 8px; }
.chooser__option p { color: rgba(255,255,255,.75); font-size: .95rem; margin: 0 0 18px; flex: 1; }
.chooser__go { color: var(--aqua-light); font-family: var(--font-display); font-weight: 600; font-size: .9rem; }

/* --- Forms ------------------------------------------------------------ */

.form { display: grid; gap: 18px; max-width: 640px; margin-top: 32px; }
.form__row { display: grid; gap: 18px; grid-template-columns: 1fr; }
@media (min-width: 640px) { .form__row { grid-template-columns: 1fr 1fr; } }

.field { display: flex; flex-direction: column; gap: 6px; }
.field label { font-size: .88rem; font-weight: 600; color: var(--ink); }
.field label .req { color: #C4463A; }

.field input,
.field select,
.field textarea {
    width: 100%;
    padding: 12px 14px;
    font: inherit;
    font-size: .97rem;
    color: var(--ink);
    background: var(--white);
    border: 1px solid var(--grey-line);
    border-radius: var(--radius-sm);
    transition: border-color .15s ease, box-shadow .15s ease;
}
.field input:focus,
.field select:focus,
.field textarea:focus {
    outline: none;
    border-color: var(--aqua);
    box-shadow: 0 0 0 3px rgba(22,179,212,.18);
}
.field textarea { resize: vertical; min-height: 130px; }
.field__error { font-size: .84rem; color: #C4463A; }

.alert {
    padding: 14px 18px;
    border-radius: var(--radius-sm);
    font-size: .95rem;
    margin-bottom: 24px;
}
.alert--success { background: #E7F7EE; border: 1px solid #A9DFC2; color: #1B5E3A; }

/* --- Contact details -------------------------------------------------- */

.contact-grid { display: grid; gap: 44px; grid-template-columns: 1fr; }
@media (min-width: 940px) { .contact-grid { grid-template-columns: 1.3fr 1fr; } }

.detail { padding: 16px 0; border-bottom: 1px solid var(--grey-line); }
.detail__label {
    font-size: .74rem;
    text-transform: uppercase;
    letter-spacing: .12em;
    color: var(--grey-text);
    font-weight: 600;
    margin-bottom: 4px;
}
.detail__value { font-size: 1.02rem; font-weight: 500; }
.detail__value a { text-decoration: none; color: var(--deep); }
.detail__value a:hover { color: var(--aqua); }

/* --- Footer ----------------------------------------------------------- */

.site-footer {
    background: var(--deep-dark);
    color: rgba(255,255,255,.72);
    padding: 54px 0 26px;
    font-size: .93rem;
}
.footer-grid {
    display: grid;
    gap: 32px;
    grid-template-columns: 1fr;
    padding-bottom: 34px;
}
@media (min-width: 760px) { .footer-grid { grid-template-columns: 2fr 1fr 1fr; } }

.site-footer h4 {
    color: var(--white);
    font-size: .78rem;
    text-transform: uppercase;
    letter-spacing: .13em;
    margin-bottom: 14px;
}
.footer-links { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; }
.footer-links a { text-decoration: none; }
.footer-links a:hover { color: var(--aqua-light); }

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,.12);
    padding-top: 22px;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: space-between;
    font-size: .84rem;
    color: rgba(255,255,255,.55);
}

/* --- Floating WhatsApp (§25) ------------------------------------------ */

.whatsapp-fab {
    position: fixed;
    right: 18px;
    bottom: 18px;
    z-index: 70;
    width: 54px;
    height: 54px;
    border-radius: 50%;
    background: #25D366;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 6px 20px rgba(0,0,0,.22);
    transition: transform .18s ease;
}
.whatsapp-fab:hover { transform: scale(1.07); }
.whatsapp-fab:focus-visible { outline: 3px solid var(--aqua); outline-offset: 3px; }
.whatsapp-fab svg { width: 29px; height: 29px; fill: #fff; }

/* --- Utilities -------------------------------------------------------- */

.stack-sm > * + * { margin-top: 8px; }
.text-center { text-align: center; }
.mx-auto { margin-inline: auto; }
.skip-link {
    position: absolute;
    left: -9999px;
    top: 0;
    background: var(--aqua);
    color: #04252F;
    padding: 10px 16px;
    z-index: 200;
}
.skip-link:focus { left: 8px; top: 8px; }

   /*BLOCK 3 — shop, cart, checkout
   =========================================================== */

.sr-only {
    position: absolute; width: 1px; height: 1px;
    padding: 0; margin: -1px; overflow: hidden;
    clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

.btn--sm { padding: 9px 16px; font-size: .86rem; }

.link-btn {
    background: none;
    border: none;
    padding: 0;
    font: inherit;
    font-size: .88rem;
    font-weight: 600;
    color: var(--deep);
    text-decoration: underline;
    text-underline-offset: 3px;
    cursor: pointer;
}
.link-btn:hover { color: var(--aqua); }
.link-btn--danger { color: #B4453B; }

.field__hint { font-size: .82rem; color: var(--grey-text); }
.opt { font-weight: 400; color: var(--grey-text); }

.alert--error   { background: #FDECEA; border: 1px solid #F3B9B2; color: #8E2A20; }
.alert--pending { background: #FFF6E5; border: 1px solid #F3D9A4; color: #7A5410; }

.crumbs {
    display: flex; gap: 8px; align-items: center;
    font-size: .86rem; color: var(--grey-text);
    margin-bottom: 26px;
}
.crumbs a { color: var(--deep); text-decoration: none; }
.crumbs a:hover { color: var(--aqua); }

/* --- Product grid ----------------------------------------------------- */

.product-grid {
    display: grid;
    gap: 22px;
    grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
    margin-top: 30px;
}

.product-card {
    display: flex;
    flex-direction: column;
    background: var(--white);
    border: 1px solid var(--grey-line);
    border-radius: var(--radius);
    overflow: hidden;
    transition: border-color .18s ease, transform .18s ease, box-shadow .18s ease;
}
.product-card:hover {
    border-color: var(--aqua);
    transform: translateY(-3px);
    box-shadow: 0 12px 26px rgba(11,59,96,.09);
}

.product-card__media {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    aspect-ratio: 1 / 1;
    background: var(--grey-bg);
    text-decoration: none;
}
.product-card__media img { width: 100%; height: 100%; object-fit: contain; padding: 14px; }

.product-card__placeholder { color: #B7C6CF; }
.product-card__placeholder svg { width: 58px; height: 58px; }

.badge {
    position: absolute; top: 10px; left: 10px;
    font-size: .72rem; font-weight: 600;
    padding: 4px 9px; border-radius: 5px;
    font-family: var(--font-display);
}
.badge--out { background: #FDECEA; color: #8E2A20; }

.product-card__body { padding: 18px 18px 20px; display: flex; flex-direction: column; flex: 1; }
.product-card__body h3 { font-size: 1.06rem; margin-bottom: 2px; }
.product-card__body h3 a { text-decoration: none; }
.product-card__body h3 a:hover { color: var(--aqua); }

.product-card__size { color: var(--grey-text); font-size: .88rem; margin: 0 0 12px; }
.product-card__price {
    font-family: var(--font-display); font-weight: 700;
    font-size: 1.2rem; margin: 0 0 2px;
}
.product-card__price span { font-family: var(--font-body); font-weight: 400; font-size: .82rem; color: var(--grey-text); margin-left: 5px; }
.product-card__carton { font-size: .84rem; color: var(--grey-text); margin: 0 0 16px; }
.product-card__body .btn { margin-top: auto; align-self: flex-start; }

/* --- Product detail --------------------------------------------------- */

.product-detail { display: grid; gap: 40px; grid-template-columns: 1fr; }
@media (min-width: 880px) { .product-detail { grid-template-columns: 1fr 1fr; gap: 56px; } }

.product-detail__media img {
    width: 100%; border-radius: var(--radius);
    background: var(--grey-bg); padding: 24px;
    border: 1px solid var(--grey-line);
}
.product-detail__placeholder {
    display: flex; align-items: center; justify-content: center;
    aspect-ratio: 1/1; background: var(--grey-bg);
    border: 1px solid var(--grey-line); border-radius: var(--radius);
    color: #B7C6CF;
}
.product-detail__placeholder svg { width: 96px; height: 96px; }

.thumbs { display: flex; gap: 10px; margin-top: 12px; flex-wrap: wrap; }
.thumbs img {
    width: 70px; height: 70px; object-fit: contain;
    background: var(--grey-bg); border: 1px solid var(--grey-line);
    border-radius: var(--radius-sm); padding: 6px;
}

.product-detail__info h1 { font-size: clamp(1.8rem, 4.5vw, 2.6rem); margin-bottom: 4px; }
.product-detail__size { font-size: 1.1rem; color: var(--grey-text); margin: 0 0 18px; }
.product-detail__desc { color: var(--grey-text); font-size: 1.02rem; margin: 0 0 20px; }

.stock { font-size: .88rem; font-weight: 600; margin: 0 0 22px; }
.stock--in  { color: #1B7A48; }
.stock--out { color: #B4453B; }

.add-form {
    display: grid; gap: 16px;
    padding: 22px; background: var(--grey-bg);
    border: 1px solid var(--grey-line); border-radius: var(--radius);
}
@media (min-width: 560px) {
    .add-form { grid-template-columns: 1fr 110px; align-items: end; }
    .add-form .btn { grid-column: 1 / -1; }
}

.wholesale-note { margin-top: 22px; font-size: .93rem; color: var(--grey-text); }
.wholesale-note a { color: var(--deep); font-weight: 600; }

/* --- Cart & checkout layout ------------------------------------------- */

.cart-layout { display: grid; gap: 34px; grid-template-columns: 1fr; margin-top: 30px; }
@media (min-width: 940px) { .cart-layout { grid-template-columns: 1fr 340px; gap: 44px; align-items: start; } }

.cart-line {
    display: grid;
    grid-template-columns: 74px 1fr;
    gap: 16px;
    padding: 20px 0;
    border-bottom: 1px solid var(--grey-line);
}
@media (min-width: 640px) { .cart-line { grid-template-columns: 90px 1fr auto; gap: 20px; align-items: start; } }

.cart-line__media {
    aspect-ratio: 1/1; background: var(--grey-bg);
    border: 1px solid var(--grey-line); border-radius: var(--radius-sm);
    overflow: hidden;
}
.cart-line__media img { width: 100%; height: 100%; object-fit: contain; padding: 8px; }
.cart-line__placeholder { display: block; width: 100%; height: 100%; }

.cart-line__info h3 { font-size: 1.02rem; margin-bottom: 2px; }
.cart-line__info h3 a { text-decoration: none; }
.cart-line__unit  { font-size: .85rem; color: var(--grey-text); margin: 0 0 4px; }
.cart-line__price { font-size: .88rem; color: var(--grey-text); margin: 0; }

.cart-line__actions {
    grid-column: 1 / -1;
    display: flex; align-items: center; gap: 16px; flex-wrap: wrap;
    padding-top: 6px;
}
@media (min-width: 640px) {
    .cart-line__actions { grid-column: auto; flex-direction: column; align-items: flex-end; gap: 8px; padding-top: 0; }
}

.qty-form { display: flex; align-items: center; gap: 8px; }
.qty-form input { width: 74px; padding: 8px 10px; font: inherit; font-size: .92rem;
    border: 1px solid var(--grey-line); border-radius: var(--radius-sm); }
.cart-line__total { font-family: var(--font-display); font-weight: 700; font-size: 1.05rem; margin: 0; }

/* --- Summary panel ---------------------------------------------------- */

.summary {
    background: var(--grey-bg);
    border: 1px solid var(--grey-line);
    border-radius: var(--radius);
    padding: 24px;
    position: sticky;
    top: 88px;
}
.summary h2 { font-size: 1.2rem; margin-bottom: 16px; }

.summary__line {
    display: flex; justify-content: space-between; gap: 14px;
    font-size: .9rem; padding: 8px 0;
    border-bottom: 1px solid var(--grey-line);
}
.summary__line em { display: block; font-style: normal; font-size: .8rem; color: var(--grey-text); }

.summary__row {
    display: flex; justify-content: space-between; gap: 14px;
    padding: 10px 0; font-size: .95rem;
}
.summary__row--total {
    border-top: 2px solid var(--deep);
    margin-top: 6px; padding-top: 14px;
    font-family: var(--font-display); font-weight: 700; font-size: 1.2rem;
}
.summary__hint { font-size: .82rem; color: var(--grey-text); margin: 2px 0 0; }
.summary__hint--warn { color: #8E2A20; font-weight: 600; }

/* --- Checkout --------------------------------------------------------- */

.checkout-block {
    background: var(--white);
    border: 1px solid var(--grey-line);
    border-radius: var(--radius);
    padding: 26px 24px;
    margin-bottom: 22px;
}
.checkout-block h2 { font-size: 1.2rem; margin-bottom: 18px; }
.checkout-block .field + .field,
.checkout-block .form__row + .field { margin-top: 18px; }

.toggle-group { display: grid; gap: 12px; grid-template-columns: 1fr; }
@media (min-width: 560px) { .toggle-group { grid-template-columns: 1fr 1fr; } }

.toggle {
    display: flex; gap: 12px; align-items: flex-start;
    padding: 16px; cursor: pointer;
    border: 2px solid var(--grey-line); border-radius: var(--radius-sm);
    transition: border-color .15s ease, background-color .15s ease;
}
.toggle:hover { border-color: #BFD3DE; }
.toggle input { margin-top: 3px; accent-color: var(--aqua); flex: none; }
.toggle:has(input:checked) { border-color: var(--aqua); background: #F0FBFE; }
.toggle strong { display: block; font-family: var(--font-display); font-size: .98rem; }
.toggle em { display: block; font-style: normal; font-size: .82rem; color: var(--grey-text); margin-top: 2px; }

/* --- Confirmation ----------------------------------------------------- */

.confirm-head { text-align: center; margin-bottom: 30px; }
.confirm-tick {
    display: inline-flex; align-items: center; justify-content: center;
    width: 62px; height: 62px; border-radius: 50%;
    background: #E7F7EE; color: #1B7A48; margin-bottom: 18px;
}
.confirm-tick svg { width: 30px; height: 30px; }
.confirm-head h1 { font-size: clamp(1.8rem, 4.5vw, 2.5rem); margin-bottom: 10px; }
.confirm-head p { color: var(--grey-text); margin: 0; }

.confirm-block {
    background: var(--white);
    border: 1px solid var(--grey-line);
    border-radius: var(--radius);
    padding: 24px;
    margin-top: 20px;
}
.confirm-block h2 { font-size: 1.1rem; margin-bottom: 14px; }

/* --- Cart count in header --------------------------------------------- */

.cart-link {
    position: relative;
    display: inline-flex; align-items: center; justify-content: center;
    width: 42px; height: 42px;
    border: 1px solid rgba(255,255,255,.3);
    border-radius: var(--radius-sm);
    color: var(--white);
    text-decoration: none;
}
.cart-link:hover { border-color: var(--white); background: rgba(255,255,255,.08); }
.cart-link svg { width: 20px; height: 20px; }
.cart-link__count {
    position: absolute; top: -7px; right: -7px;
    min-width: 20px; height: 20px; padding: 0 5px;
    display: flex; align-items: center; justify-content: center;
    background: var(--aqua); color: #04252F;
    border-radius: 10px;
    font-family: var(--font-display); font-weight: 700; font-size: .72rem;
}

/* ===========================================================
   BLOCK 4 — payment screen
   Append these rules to the end of public/css/brand.css
   =========================================================== */

.pay-head { margin-bottom: 24px; }
.pay-head h1 { font-size: clamp(1.8rem, 4.5vw, 2.4rem); margin-bottom: 6px; }
.pay-order { color: var(--grey-text); margin: 0; font-size: .95rem; }

.pay-amount {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 16px;
    padding: 20px 24px;
    background: var(--deep);
    color: var(--white);
    border-radius: var(--radius);
    margin-bottom: 24px;
}
.pay-amount span { font-size: .9rem; color: rgba(255,255,255,.75); }
.pay-amount strong {
    font-family: var(--font-display);
    font-size: clamp(1.5rem, 4vw, 2rem);
    font-weight: 700;
}

.pay-form {
    background: var(--grey-bg);
    border: 1px solid var(--grey-line);
    border-radius: var(--radius);
    padding: 24px;
    display: grid;
    gap: 18px;
}

.pay-steps { margin-top: 34px; }
.pay-steps h2 { font-size: 1.1rem; margin-bottom: 12px; }
.pay-steps ol { margin: 0 0 16px; padding-left: 20px; color: var(--grey-text); }
.pay-steps li { margin-bottom: 8px; font-size: .95rem; }
.pay-note { font-size: .87rem; color: var(--grey-text); margin: 0; }

.alert--pending a { color: inherit; font-weight: 600; }

button:disabled { opacity: .65; cursor: not-allowed; }
button:disabled:hover { transform: none; }

/* ===========================================================
   BLOCK 5 — bulk water module
   Append these rules to the end of public/css/brand.css
   =========================================================== */

.tier-table { margin-top: 24px; }
.tier-table h3 { font-size: .95rem; margin-bottom: 10px; }
.tier-table table {
    width: 100%;
    border-collapse: collapse;
    font-size: .9rem;
}
.tier-table th {
    text-align: left;
    font-family: var(--font-display);
    font-size: .74rem;
    text-transform: uppercase;
    letter-spacing: .1em;
    color: var(--grey-text);
    padding: 8px 0;
    border-bottom: 1px solid var(--grey-line);
}
.tier-table td {
    padding: 10px 0;
    border-bottom: 1px solid var(--grey-line);
}
.tier-table tr:last-child td { border-bottom: none; }

/* --- Loading reference (§17) ------------------------------------------ */

.loading-ref {
    background: var(--deep);
    color: var(--white);
    border-radius: var(--radius);
    padding: 30px 26px;
    text-align: center;
    margin-bottom: 24px;
}
.loading-ref__label {
    font-family: var(--font-display);
    font-size: .74rem;
    text-transform: uppercase;
    letter-spacing: .16em;
    color: var(--aqua-light);
    margin: 0 0 12px;
}
.loading-ref__code {
    font-family: var(--font-display);
    font-size: clamp(1.7rem, 6vw, 2.6rem);
    font-weight: 800;
    letter-spacing: .04em;
    margin: 0 0 10px;
    word-break: break-all;
}
.loading-ref__uuid {
    font-family: ui-monospace, 'Cascadia Code', Consolas, monospace;
    font-size: .78rem;
    color: rgba(255,255,255,.62);
    margin: 0 0 12px;
    word-break: break-all;
}
.loading-ref__issued {
    font-size: .8rem;
    color: rgba(255,255,255,.55);
    margin: 0;
}

.print-note {
    font-size: .87rem;
    color: var(--grey-text);
    margin-top: 22px;
    text-align: center;
}

/* --- Print: the driver may well print this ---------------------------- */

@media print {
    .site-header,
    .site-footer,
    .whatsapp-fab,
    .print-note,
    .btn,
    .link-btn { display: none !important; }

    body { background: #fff; }
    .section { padding: 0; }

    .loading-ref {
        background: #fff !important;
        color: #000 !important;
        border: 2px solid #000;
    }
    .loading-ref__label,
    .loading-ref__uuid,
    .loading-ref__issued { color: #333 !important; }

    .confirm-block {
        break-inside: avoid;
        border: 1px solid #999;
    }
}

/* ===========================================================
   BLOCK 6 — vending stations
   Append these rules to the end of public/css/brand.css
   =========================================================== */

.vending-map {
    height: 380px;
    width: 100%;
    margin-top: 30px;
    border-radius: var(--radius);
    border: 1px solid var(--grey-line);
    background: var(--grey-bg);
    z-index: 1;                 /* keep below the sticky header */
}

@media (min-width: 760px) {
    .vending-map { height: 460px; }
}

/* Leaflet's default marker images are not bundled, so we draw our own. */
.station-pin span {
    display: block;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: var(--aqua);
    border: 3px solid var(--white);
    box-shadow: 0 2px 8px rgba(8,32,47,.35);
}

.leaflet-popup-content {
    font-family: var(--font-body);
    font-size: .88rem;
    line-height: 1.55;
}
.leaflet-popup-content strong {
    font-family: var(--font-display);
    font-size: .98rem;
}
.leaflet-popup-content a { color: var(--deep); font-weight: 600; }

.leaflet-container { font-family: var(--font-body); }

/* --- Station cards ----------------------------------------------------- */

.station-grid {
    display: grid;
    gap: 20px;
    grid-template-columns: 1fr;
    margin-top: 26px;
}
@media (min-width: 700px)  { .station-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1040px) { .station-grid { grid-template-columns: repeat(3, 1fr); } }

.station-card {
    display: flex;
    flex-direction: column;
    background: var(--white);
    border: 1px solid var(--grey-line);
    border-radius: var(--radius);
    padding: 24px;
    transition: border-color .18s ease, box-shadow .18s ease;
}
.station-card:hover {
    border-color: var(--aqua);
    box-shadow: 0 10px 24px rgba(11,59,96,.08);
}
.station-card h3 { font-size: 1.12rem; margin-bottom: 8px; }
.station-card__desc { color: var(--grey-text); font-size: .92rem; margin: 0 0 16px; }

.station-card__meta { margin: 0 0 20px; display: grid; gap: 10px; flex: 1; }
.station-card__meta > div {
    display: grid;
    grid-template-columns: 78px 1fr;
    gap: 10px;
    align-items: baseline;
}
.station-card__meta dt {
    font-size: .72rem;
    text-transform: uppercase;
    letter-spacing: .1em;
    font-weight: 600;
    color: var(--grey-text);
}
.station-card__meta dd { margin: 0; font-size: .91rem; }
.station-card__meta dd a { color: var(--deep); text-decoration: none; }
.station-card__meta dd a:hover { color: var(--aqua); }

.station-card .btn { align-self: flex-start; }

/* ===========================================================
   BLOCK 7 — legal pages
   Append these rules to the end of public/css/brand.css
   =========================================================== */

.legal { max-width: 760px; }

.legal h2 { font-size: 1.25rem; margin-top: 38px; margin-bottom: 12px; }
.legal h2:first-of-type { margin-top: 0; }

.legal p, .legal li { color: var(--grey-text); font-size: 1rem; line-height: 1.7; }
.legal p { margin: 0 0 16px; }
.legal ul { margin: 0 0 20px; padding-left: 22px; }
.legal li { margin-bottom: 8px; }
.legal strong { color: var(--ink); }
.legal a { color: var(--deep); font-weight: 500; }

.legal__draft {
    background: #FFF6E5;
    border: 1px solid #F3D9A4;
    color: #7A5410;
    border-radius: var(--radius-sm);
    padding: 16px 20px;
    font-size: .93rem;
    line-height: 1.6;
    margin-bottom: 34px;
}

.legal__table { width: 100%; border-collapse: collapse; font-size: .92rem; margin: 0 0 24px; }
.legal__table th {
    text-align: left;
    font-family: var(--font-display);
    font-size: .74rem;
    text-transform: uppercase;
    letter-spacing: .1em;
    color: var(--grey-text);
    padding: 10px 12px 10px 0;
    border-bottom: 2px solid var(--grey-line);
}
.legal__table td {
    padding: 12px 12px 12px 0;
    border-bottom: 1px solid var(--grey-line);
    color: var(--grey-text);
}

.legal__contact {
    margin-top: 40px;
    padding-top: 24px;
    border-top: 1px solid var(--grey-line);
    font-size: .95rem;
}

/* ===========================================================
   PHOTOGRAPHY

   The source photographs are 3:4 portrait, so the boxes are 3:4 too.
   Nothing is cropped and no space is left around anything — the image
   and the box are the same shape.

   The cost is height: a portrait image in a column is tall. Columns are
   therefore kept narrow, and images sit beside text rather than above
   it, so the pages stay a sensible length.
   =========================================================== */

/* --- Split hero -------------------------------------------------------- */

.hero--split { padding-bottom: 0; }

.hero__grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
    align-items: center;
}

.hero__copy { padding-bottom: 90px; }

/* Hidden below 1024px. A 3:4 image above the fold on a phone pushes the
   Order button off screen, and the phone is where the customers are. */
.hero__media { display: none; }

@media (min-width: 1024px) {
    .hero__grid {
        grid-template-columns: 1fr 300px;
        gap: 48px;
    }

    .hero__copy { padding-bottom: 100px; }

    .hero__media {
        display: block;
        position: relative;
        z-index: 2;
        padding-bottom: 34px;
    }

    .hero__media img {
        width: 100%;
        aspect-ratio: 3 / 4;
        object-fit: cover;
        border-radius: var(--radius);
        box-shadow: 0 14px 36px rgba(0,0,0,.26);
        display: block;
    }
}

/* --- Feature bands ----------------------------------------------------- */

.feature__grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 26px;
    align-items: center;
}

@media (min-width: 900px) {
    /* Narrow image column — a 3:4 image at half width would be 400px tall */
    .feature__grid { grid-template-columns: 1fr 300px; gap: 48px; }
    .feature__grid--reverse { grid-template-columns: 300px 1fr; }
    .feature__grid--reverse .feature__media { order: -1; }
}

.feature__media img {
    width: 100%;
    max-width: 300px;
    aspect-ratio: 3 / 4;
    object-fit: cover;
    border-radius: var(--radius);
    display: block;
    margin-inline: auto;
}

.section--deep .feature__media img { box-shadow: 0 14px 34px rgba(0,0,0,.28); }

/* --- Quality stages ---------------------------------------------------- */

.stages { display: grid; gap: 34px; margin-top: 32px; }

.stage {
    display: grid;
    grid-template-columns: 1fr;
    gap: 18px;
    align-items: center;
}

@media (min-width: 820px) {
    .stage { grid-template-columns: 260px 1fr; gap: 40px; }
    .stage--reverse { grid-template-columns: 1fr 260px; }
    .stage--reverse .stage__media { order: 2; }
}

.stage__media img {
    width: 100%;
    max-width: 300px;
    aspect-ratio: 3 / 4;
    object-fit: cover;
    border-radius: var(--radius);
    border: 1px solid var(--grey-line);
    display: block;
    margin-inline: auto;
}

.stage__num {
    display: block;
    font-family: var(--font-display);
    font-size: 1.7rem;
    font-weight: 700;
    color: var(--aqua);
    line-height: 1;
    margin-bottom: 6px;
}

.stage__body h3 { font-size: 1.25rem; margin-bottom: 8px; }
.stage__body p { color: var(--grey-text); font-size: .99rem; margin: 0; max-width: 56ch; }

/* --- Figures and galleries --------------------------------------------- */

.figure { margin: 0; }

.figure img {
    width: 100%;
    object-fit: cover;
    border-radius: var(--radius);
    border: 1px solid var(--grey-line);
    display: block;
}

/* Landscape source. Centred and capped, or it swamps the page at 4:3. */
.figure--band { max-width: 720px; margin-inline: auto; }
.figure--band img { aspect-ratio: 4 / 3; }

/* Portrait subject, centred */
.figure--centred { max-width: 380px; margin-inline: auto; }
.figure--centred img { aspect-ratio: 3 / 4; }

.figure figcaption {
    margin-top: 9px;
    font-size: .85rem;
    color: var(--grey-text);
    text-align: center;
}

.gallery {
    display: grid;
    gap: 22px;
    grid-template-columns: 1fr;
    margin-top: 26px;
    max-width: 680px;
}

@media (min-width: 700px) {
    .gallery { grid-template-columns: repeat(2, 1fr); }
}

.gallery .figure img { aspect-ratio: 3 / 4; }
.gallery .figure figcaption { text-align: left; }

/* ===========================================================
   Honeypot field
   Append to the end of public/css/brand.css
   =========================================================== */

/* Moved off screen rather than display:none. Some bots skip anything
   hidden with display or visibility, but will happily fill a field that
   is technically rendered. */
.hp {
    position: absolute;
    left: -9999px;
    top: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

/* ===========================================================
   Offline ordering — order reference and next-steps callout
   Append these rules to the end of public/css/brand.css
   =========================================================== */

.order-ref {
    background: var(--deep);
    color: var(--white);
    border-radius: var(--radius);
    padding: 26px 24px;
    text-align: center;
    margin-bottom: 24px;
}
.order-ref__label {
    font-family: var(--font-display);
    font-size: .72rem;
    text-transform: uppercase;
    letter-spacing: .16em;
    color: var(--aqua-light);
    margin: 0 0 10px;
}
.order-ref__code {
    font-family: var(--font-display);
    font-size: clamp(1.6rem, 5.5vw, 2.3rem);
    font-weight: 800;
    letter-spacing: .04em;
    margin: 0 0 8px;
    word-break: break-all;
}
.order-ref__note {
    font-size: .82rem;
    color: rgba(255,255,255,.6);
    margin: 0;
}

.callout {
    border-radius: var(--radius);
    padding: 22px 24px;
    margin-bottom: 24px;
}
.callout--action {
    background: #FFF6E5;
    border: 1px solid #F3D9A4;
    color: #7A5410;
}
.callout h2 {
    font-size: 1.05rem;
    margin: 0 0 12px;
    color: inherit;
}
.callout ol {
    margin: 0 0 14px;
    padding-left: 20px;
}
.callout li {
    margin-bottom: 10px;
    font-size: .96rem;
    line-height: 1.6;
}
.callout strong { color: #5C3F0C; }
.callout__foot {
    margin: 0;
    padding-top: 12px;
    border-top: 1px solid #F3D9A4;
    font-size: .88rem;
}
.callout__foot a { color: inherit; font-weight: 600; }

/* ===========================================================
   Delivery location picker
   Append these rules to the end of public/css/brand.css
   =========================================================== */

.delivery-note {
    background: var(--grey-bg);
    border: 1px solid var(--grey-line);
    border-radius: var(--radius-sm);
    padding: 14px 16px;
    font-size: .92rem;
    line-height: 1.6;
    color: var(--grey-text);
    margin: 0;
}
.delivery-note strong { color: var(--ink); }
.delivery-note a { color: var(--deep); font-weight: 600; }

.map-picker {
    margin-top: 10px;
    border: 1px solid var(--grey-line);
    border-radius: var(--radius);
    overflow: hidden;
}

#delivery-map {
    height: 260px;
    width: 100%;
    background: var(--grey-bg);
    z-index: 1;
}

@media (min-width: 700px) {
    #delivery-map { height: 300px; }
}

.map-picker__bar {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    padding: 12px 14px;
    background: var(--grey-bg);
    border-top: 1px solid var(--grey-line);
}

.map-picker__status {
    font-size: .84rem;
    color: var(--grey-text);
}
.map-picker__status--ok   { color: #1B7A48; font-weight: 600; }
.map-picker__status--warn { color: #8E2A20; }

/* Draggable pin. Leaflet's default marker images are not bundled when
   loading from CDN, so this is drawn in CSS. */
.delivery-pin span {
    display: block;
    width: 28px;
    height: 28px;
    border-radius: 50% 50% 50% 0;
    transform: rotate(-45deg);
    background: var(--aqua);
    border: 3px solid var(--white);
    box-shadow: 0 3px 10px rgba(8,32,47,.4);
    cursor: grab;
}
.delivery-pin:active span { cursor: grabbing; }

/* Admin-side link back to the map */
.location-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-weight: 600;
}
