/* ==========================================================================
   BOUNDARY STREET DISTILLING CO.  |  Shared styles (every page)
   --------------------------------------------------------------------------
   1. Brand tokens        5. Announcement + header + menu   9. Footer
   2. Base                6. Page hero (inner pages)        10. Age gate
   3. Layout helpers      7. Photos + bottle panels         11. Cookie notice
   4. Type + buttons      8. Mailing list band + forms      12. Motion
   Mobile first: base rules are for phones, @media rules add larger layouts.
   ========================================================================== */

/* 1. Brand tokens ---------------------------------------------------------- */
:root {
    /* Brand guide p. 9 */
    --olive: #7f896d;
    --black: #000000;

    /* Supporting neutrals and shades of the brand green (no new hues) */
    --off-black: #231f20;
    --dark-olive: #1b2216;
    --olive-ink: #566046;          /* olive dark enough for small text */
    --olive-tint: #e8eae1;
    --paper: #f7f6f1;
    --white: #ffffff;
    --line: rgba(0, 0, 0, 0.14);
    --line-light: rgba(255, 255, 255, 0.22);

    --font-display: 'Bonard', 'BurfordBase', 'Arial Narrow', Impact, sans-serif;
    --font-label: 'BurfordBase', 'Arial Narrow', Arial, sans-serif;
    --font-body: 'Montserrat', 'Helvetica Neue', Arial, sans-serif;

    --wrap: 1180px;
    --gutter: clamp(1.25rem, 5vw, 2.5rem);
    --section: clamp(1.5rem, 9vw, 3rem);
    --header-h: 68px;
    --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}

@media (min-width: 1000px) {
    :root { --header-h: 64px; }
}

/* 2. Base ------------------------------------------------------------------ */
*, *::before, *::after { box-sizing: border-box; }

html {
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
    scroll-behavior: smooth;
    scroll-padding-top: calc(var(--header-h) + 1rem);
}

body {
    margin: 0;
    background: var(--paper);
    color: var(--off-black);
    font-family: var(--font-body);
    font-size: 1rem;
    font-weight: 400;
    line-height: 1.7;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

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

a { color: inherit; text-underline-offset: 0.2em; text-decoration-thickness: 1px; }
a:hover { color: var(--olive-ink); }

p { margin: 0 0 1.1em; }
p:last-child { margin-bottom: 0; }

ul { margin: 0; padding: 0; list-style: none; }
address { font-style: normal; }
b, strong { font-weight: 400; color: var(--black); }

:focus-visible { outline: 2px solid currentColor; outline-offset: 3px; }

::selection { background: var(--olive); color: var(--black); }

/* 3. Layout helpers -------------------------------------------------------- */
.wrap {
    width: 100%;
    max-width: calc(var(--wrap) + var(--gutter) * 2);
    margin-inline: auto;
    padding-inline: var(--gutter);
}

.wrap--narrow { max-width: calc(760px + var(--gutter) * 2); }

.section { padding-block: var(--section); }
.section--white { background: var(--white); }
.section--tint { background: var(--olive-tint); }
.section--olive { background: var(--olive); color: var(--black); }
.section--dark { background: var(--dark-olive); color: var(--white); }

.section-head { max-width: 46rem; margin-bottom: clamp(2rem, 5vw, 3.5rem); }
.section-head--center { margin-inline: auto; text-align: center; }

.split { display: grid; gap: clamp(2rem, 6vw, 5rem); align-items: center; }
@media (min-width: 860px) {
    .split { grid-template-columns: 1fr 1fr; }
    .split--flip > :first-child { order: 2; }
}

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

.skip-link {
    position: absolute; left: 1rem; top: -4rem; z-index: 200;
    padding: 0.75rem 1rem;
    background: var(--black); color: var(--white);
    font-family: var(--font-label); letter-spacing: 0.12em; text-transform: uppercase; text-decoration: none;
}
.skip-link:focus { top: 1rem; color: var(--white); }

/* 4. Type + buttons -------------------------------------------------------- */
h1, h2, h3, .bonard {
    margin: 0 0 0.5em;
    font-family: var(--font-display);
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 0.02em;
    line-height: 1;
    color: var(--black);
    text-wrap: balance;
}
h1 { font-size: clamp(2.75rem, 8vw, 4.5rem); }
h2 { font-size: clamp(2.1rem, 5vw, 3.2rem); }
h3 { font-size: clamp(1.5rem, 3vw, 1.8rem); line-height: 1.05; }

.section--dark h1, .section--dark h2, .section--dark h3 { color: var(--white); }

.burfordbase { font-family: var(--font-label); font-weight: 400; }
.montserrat { font-family: var(--font-body); font-weight: 400; }

.eyebrow {
    display: flex; align-items: center; gap: 0.9em;
    margin: 0 0 1.2rem;
    font-family: var(--font-label);
    font-size: 1.1rem;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    line-height: 1.4;
    color: var(--olive-ink);
}
.eyebrow::before { content: ''; flex: none; width: 2rem; height: 1px; background: currentColor; }
.eyebrow--light { color: #c9d0bb; }
.section--olive .eyebrow { color: var(--black); }
.section-head--center .eyebrow { justify-content: center; }
.section-head--center .eyebrow::after { content: ''; flex: none; width: 2rem; height: 1px; background: currentColor; }

.lede { font-size: clamp(1rem, 2.2vw, 1.08rem); line-height: 1.6; }

.btn {
    display: inline-flex; align-items: center; justify-content: center;
    min-height: 3.1rem;
    padding: 0.8rem 1.7rem;
    border: 1.5px solid var(--black);
    border-radius: 2px;
    background: var(--black);
    color: var(--white);
    font-family: var(--font-label);
    font-size: 1rem;
    letter-spacing: 0.1em;
    line-height: 1.2;
    text-transform: uppercase;
    text-decoration: none;
    text-align: center;
    cursor: pointer;
    transition: background-color 0.25s var(--ease), color 0.25s var(--ease), border-color 0.25s var(--ease);
}
.btn:hover { background: var(--olive-ink); border-color: var(--olive-ink); color: var(--white); }
.btn[disabled] { opacity: 0.6; cursor: progress; }

.btn--ghost { background: transparent; color: var(--black); }
.btn--ghost:hover { background: var(--black); border-color: var(--black); color: var(--white); }

.btn--light { background: var(--paper); border-color: var(--paper); color: var(--black); }
.btn--light:hover { background: var(--olive); border-color: var(--olive); color: var(--black); }

.btn--ghost-light { background: transparent; border-color: var(--white); color: var(--white); }
.btn--ghost-light:hover { background: var(--white); border-color: var(--white); color: var(--black); }

.btn--small { min-height: 2.5rem; padding: 0.5rem 1rem; font-size: 0.76rem; letter-spacing: 0.16em; }

.btn-row { display: flex; flex-wrap: wrap; gap: 0.9rem; margin-top: 2rem; }

.text-link {
    display: inline-flex; align-items: center; gap: 0.6em;
    font-family: var(--font-label);
    font-size: 1.1rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    text-decoration: none;
    color: var(--black);
    padding-bottom: 0.3em;
    border-bottom: 1px solid currentColor;
}
.text-link::after { content: '\2192'; font-family: var(--font-body); letter-spacing: 0; transition: transform 0.25s var(--ease); }
.text-link:hover::after { transform: translateX(4px); }

.tag {
    display: inline-block;
    padding: 0.35em 0.8em;
    border-radius: 2px;
    background: var(--black); color: var(--white);
    font-family: var(--font-label);
    font-size: 0.7rem;
    letter-spacing: 0.2em;
    line-height: 1.3;
    text-transform: uppercase;
}
.tag--outline { background: transparent; color: var(--olive-ink); border: 1px solid currentColor; }

.soon {
    margin-left: 0.5em;
    font-family: var(--font-label);
    font-size: 0.68em;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--olive);
    white-space: nowrap;
}

/* 5. Announcement + header + menu ------------------------------------------ */
/* Announcement card: fixed to the bottom corner, slides in from the right.
   Because it floats over the page it never pushes the content around. */
.announce {
    position: fixed; z-index: 90;
    right: 1rem;
    bottom: calc(1rem + env(safe-area-inset-bottom));
    width: min(21rem, calc(100vw - 2rem));
    padding: 1.25rem 3rem 1.35rem 1.4rem;
    background: var(--dark-olive); color: var(--white);
    border-left: 4px solid var(--olive);
    border-radius: 2px;
    box-shadow: 0 16px 44px rgba(0, 0, 0, 0.28);
    font-size: 0.95rem; line-height: 1.5;
    /* parked off-screen until js/main.js adds .is-in */
    transform: translateX(calc(100% + 1.5rem));
    visibility: hidden;
    transition: transform 0.6s var(--ease), visibility 0s 0.6s;
}
.announce.is-in { transform: none; visibility: visible; transition-delay: 0s; }
.announce[hidden] { display: none; }

.announce__title {
    margin: 0 0 0.35rem;
    font-family: var(--font-display);
    font-size: 1.5rem; letter-spacing: 0.03em; line-height: 1; text-transform: uppercase;
}
.announce__text { margin: 0; color: #e6e9df; }
.announce__link {
    display: inline-block; margin-top: 0.85rem; padding-bottom: 0.2em;
    color: var(--white);
    font-family: var(--font-label);
    font-size: 0.8rem; letter-spacing: 0.16em; text-transform: uppercase; text-decoration: none;
    border-bottom: 1px solid currentColor;
}
.announce__link:hover { color: #c9d0bb; }
.announce__close {
    position: absolute; top: 0.3rem; right: 0.3rem;
    display: grid; place-items: center;
    width: 2.5rem; height: 2.5rem; padding: 0;
    border: 0; border-radius: 2px; background: none; color: var(--white); cursor: pointer;
}
.announce__close:hover { background: rgba(255, 255, 255, 0.14); }

@media (min-width: 760px) {
    .announce { right: 1.5rem; bottom: 1.5rem; }
}

/* Phones (under 760px wide): a slim one-line strip along the bottom edge instead of the
   tall card, so it does not cover the buttons. js/main.js also waits until the visitor
   starts scrolling before sliding it in on phones. */
@media (max-width: 759px) {
    .announce {
        left: 0.75rem; right: 0.75rem;
        bottom: calc(0.75rem + env(safe-area-inset-bottom));
        width: auto;
        display: flex; flex-wrap: wrap; align-items: baseline; gap: 0.15rem 0.75rem;
        padding: 0.7rem 3rem 0.75rem 1rem;
        font-size: 0.86rem; line-height: 1.35;
    }
    .announce__title { margin: 0; font-size: 1.1rem; }
    .announce__text { flex: 1 1 10rem; }
    .announce__link { margin-top: 0; font-size: 0.72rem; white-space: nowrap; }
    .announce__close { top: 50%; right: 0.25rem; transform: translateY(-50%); width: 2.75rem; height: 2.75rem; }
}

.site-header {
    position: sticky; top: 0; z-index: 100;
    /* cream at 85%: the last number is the opacity (1 = fully solid) */
    background: rgba(247, 246, 241, 0.85);
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);          /* softly blurs what scrolls underneath so the menu stays readable */
    border-bottom: 1px solid var(--line);
    transition: box-shadow 0.3s var(--ease), background-color 0.35s var(--ease), border-color 0.35s var(--ease);
}
.site-header.is-stuck { box-shadow: 0 6px 24px rgba(27, 34, 22, 0.1); }

.site-header__inner {
    display: flex; align-items: center; gap: 0.75rem;
    min-height: var(--header-h);
    max-width: calc(var(--wrap) + var(--gutter) * 2);
    margin-inline: auto;
    padding-inline: var(--gutter);
}

/* Logo: horizontal variation (brand guide p. 5). Padding keeps the exclusion zone clear. */
.brand { flex: none; display: block; margin-right: auto; padding-block: 0.6rem; }
.brand img { width: auto; height: 44px; }

.header-visit { flex: none; }

.burger {
    flex: none;
    display: grid; place-items: center;
    width: 2.75rem; height: 2.75rem;
    margin-right: -0.5rem; padding: 0;
    border: 0; background: none; color: var(--black); cursor: pointer;
}
.burger__box { position: relative; display: block; width: 26px; height: 16px; }
.burger__box span {
    position: absolute; left: 0; width: 100%; height: 2px; background: currentColor;
    transition: transform 0.3s var(--ease), opacity 0.2s var(--ease), top 0.3s var(--ease);
}
.burger__box span:nth-child(1) { top: 0; }
.burger__box span:nth-child(2) { top: 7px; }
.burger__box span:nth-child(3) { top: 14px; }
.burger[aria-expanded="true"] .burger__box span:nth-child(1) { top: 7px; transform: rotate(45deg); }
.burger[aria-expanded="true"] .burger__box span:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] .burger__box span:nth-child(3) { top: 7px; transform: rotate(-45deg); }

/* Phone + tablet menu: a panel that drops below the header */
.site-nav {
    position: absolute; left: 0; right: 0; top: 100%;
    max-height: calc(100vh - var(--header-h));
    max-height: calc(100dvh - var(--header-h));
    overflow-y: auto;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
    box-shadow: 0 18px 30px rgba(27, 34, 22, 0.12);
    visibility: hidden; opacity: 0; transform: translateY(-8px);
    transition: opacity 0.25s var(--ease), transform 0.25s var(--ease), visibility 0s 0.25s;
}
.site-nav.is-open { visibility: visible; opacity: 1; transform: none; transition-delay: 0s; }
.site-nav ul { padding: 0.75rem var(--gutter) 1.75rem; }
.site-nav li + li { border-top: 1px solid var(--line); }

.burgerItem {
    display: block;
    padding: 1rem 0.25rem;
    font-family: var(--font-display);
    font-size: 1.9rem;
    letter-spacing: 0.03em;
    line-height: 1;
    text-transform: uppercase;
    text-decoration: none;
    color: var(--black);
}
.burgerItem[aria-current="page"] { color: var(--olive-ink); }

@media (max-width: 359px) {
    .brand img { height: 36px; }
    .header-visit { display: none; }      /* still the first big item in the menu */
}

@media (min-width: 1000px) {
    .brand img { height: 48px; }
    .burger, .header-visit { display: none; }

    .site-nav {
        position: static; overflow: visible; max-height: none;
        background: none; border: 0; box-shadow: none;
        visibility: visible; opacity: 1; transform: none; transition: none;
    }
    .site-nav ul { display: flex; align-items: center; gap: clamp(0.25rem, 1.2vw, 1rem); padding: 0; }
    .site-nav li + li { border: 0; }

    .burgerItem {
        position: relative;
        padding: 0.7rem 0.85rem;
        font-family: var(--font-label);
        font-size: 1rem;
        letter-spacing: 0.1em;
    }
    /* Underline that grows from the centre, carried over from the original menu */
    .burgerItem::after {
        content: '';
        position: absolute; left: 0.85rem; right: 0.85rem; bottom: 0.3rem;
        height: 1px; background: currentColor;
        transform: scaleX(0); transition: transform 0.3s var(--ease);
    }
    .burgerItem:hover::after, .burgerItem[aria-current="page"]::after { transform: scaleX(1); }
    .burgerItem:hover { color: var(--black); }

    /* Visit Us stays the loudest thing in the menu */
    .burgerItem--visit, .burgerItem--visit[aria-current="page"] {
        margin-inline: 0.4rem 0;
        padding-inline: 1.3rem;
        background: var(--black); color: var(--white);
        border-radius: 2px;
        transition: background-color 0.25s var(--ease);
    }
    .burgerItem--visit::after { display: none; }
    .burgerItem--visit:hover { background: var(--olive-ink); color: var(--white); }
}

/* See-through header ---------------------------------------------------------
   At the top of the page the header floats over the banner and is mostly
   transparent, with white logo and menu text. As soon as the visitor scrolls
   (js/burger.js adds .is-stuck) or opens the phone menu, it turns solid.
   To adjust how see-through it is, change the last number in --header-clear
   (0 = fully transparent, 1 = solid).                                        */
:root { --header-clear: rgba(27, 34, 22, 0.28); }

.brand__light { display: none; }

.js .header-overlay .site-header { position: fixed; left: 0; right: 0; top: 0; }

/* the banner slides up underneath, so give its content room below the header */
.js .header-overlay .hero__inner,
.js .header-overlay .page-hero > .wrap { padding-top: var(--header-h); }

html.js:not(.menu-open) .header-overlay .site-header:not(.is-stuck) {
    background: var(--header-clear);
    border-bottom-color: rgba(255, 255, 255, 0.2);
}
html.js:not(.menu-open) .header-overlay .site-header:not(.is-stuck) .brand__dark { display: none; }
html.js:not(.menu-open) .header-overlay .site-header:not(.is-stuck) .brand__light { display: block; }
html.js:not(.menu-open) .header-overlay .site-header:not(.is-stuck) .burger,
html.js:not(.menu-open) .header-overlay .site-header:not(.is-stuck) .burgerItem { color: var(--white); }
html.js:not(.menu-open) .header-overlay .site-header:not(.is-stuck) .burgerItem--visit,
html.js:not(.menu-open) .header-overlay .site-header:not(.is-stuck) .header-visit {
    background: var(--paper); border-color: var(--paper); color: var(--black);
}
html.js:not(.menu-open) .header-overlay .site-header:not(.is-stuck) .burgerItem--visit:hover,
html.js:not(.menu-open) .header-overlay .site-header:not(.is-stuck) .header-visit:hover {
    background: var(--olive); border-color: var(--olive); color: var(--black);
}

/* 6. Page hero (inner pages) ----------------------------------------------- */
.page-hero {
    position: relative; overflow: hidden;
    background: var(--olive); color: var(--black);
    padding-block: clamp(3rem, 9vw, 3.5rem);
}
.page-hero__mark {
    position: absolute; right: -6%; bottom: -12%;
    width: min(62vw, 560px); opacity: 0.22;
    pointer-events: none;
}
.page-hero .wrap { position: relative; }
.page-hero .eyebrow { color: var(--black); }
.page-hero h1 { max-width: 20ch; margin-bottom: 0.35em; }
.page-hero .lede { max-width: 38rem; color: var(--black); }

.crumbs { margin-bottom: 1.5rem; font-family: var(--font-label); font-size: 1.06rem; letter-spacing: 0.1em; text-transform: uppercase; }
.crumbs a { text-decoration: none; border-bottom: 1px solid currentColor; }
.crumbs a:hover { color: var(--black); border-bottom-width: 2px; }
.crumbs span { margin-inline: 0.6em; }

/* 7. Photos + bottle panels ------------------------------------------------ */
.photo { position: relative; margin: 0; aspect-ratio: 4 / 3; overflow: hidden; border-radius: 2px; background: var(--olive-tint); }
.photo img { width: 100%; height: 100%; object-fit: cover; }
.photo--tall { aspect-ratio: 4 / 5; }
.photo--arch { border-radius: 999px 999px 2px 2px; }

/* Real photos get the same green border as the product tiles: the photo is set in
   from the edge and the green shows around it. Keep this padding the same as the
   .bottle padding further down so the borders match. */
.photo:not(.photo--empty) { display: grid; padding: clamp(3px, 2.25%, 7px); background: var(--olive); }
.photo:not(.photo--empty) img { border-radius: 1px; }
.photo--arch:not(.photo--empty) img { border-radius: 999px 999px 1px 1px; }

/* Placeholder shown until a real photo is added in php/config.php */
.photo--empty { display: grid; place-items: center; }
.photo--empty img { width: 62%; height: auto; object-fit: contain; opacity: 0.55; }
.photo--empty figcaption {
    position: absolute; left: 0; right: 0; bottom: 1.1rem;
    padding-inline: 1rem;
    font-family: var(--font-label); font-size: 0.9rem; letter-spacing: 0.2em; text-transform: uppercase; text-align: center;
    color: var(--olive-ink);
}

/* Arched panel: echoes the arched lettering of the master logo */
.bottle {
    position: relative;
    display: grid; place-items: center;
    aspect-ratio: 4 / 5;
    overflow: hidden;
    border-radius: 999px 999px 2px 2px;
    background: var(--panel, var(--olive));
}
/* Product photo: set in from the edge so the green panel shows as a border all the way round.
   Border thickness = the padding below (the middle value scales with the tile; 6px min, 14px max). */
.bottle:not(.bottle--empty) { padding: clamp(3px, 2.25%, 7px); }
.bottle > img:not(.bottle__mark) { width: 100%; height: 100%; object-fit: cover; border-radius: 999px 999px 1px 1px; }
.bottle__mark { width: 58%; margin-top: 18%; opacity: 0.9; transition: transform 0.6s var(--ease); }
.bottle__name {
    position: absolute; left: 8%; right: 8%; bottom: 9%;
    font-family: var(--font-display);
    font-size: clamp(1.05rem, 2.4vw, 1.35rem);
    letter-spacing: 0.06em; line-height: 1.05; text-transform: uppercase; text-align: center;
    color: var(--white);
}
.bottle__tag { position: absolute; top: 46%; left: 50%; transform: translate(-50%, -50%); }

.spirit-grid { display: grid; gap: clamp(2rem, 4vw, 3rem) clamp(1rem, 3vw, 2rem); grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 760px) { .spirit-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 1000px) { .spirit-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }   /* 4 tiles per line on laptops and desktops */
@media (max-width: 339px) { .spirit-grid { grid-template-columns: 1fr; max-width: 18rem; margin-inline: auto; } }

.spirit-card { position: relative; display: flex; flex-direction: column; }
.spirit-card__cat { margin: 1.1rem 0 0.4rem; font-family: var(--font-label); font-size: 0.72rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--olive-ink); }
.spirit-card h3 { margin-bottom: 0.45em; font-size: clamp(1.35rem, 2.6vw, 1.75rem); }
.spirit-card h3 a { text-decoration: none; color: inherit; }
.spirit-card h3 a::before { content: ''; position: absolute; inset: 0; z-index: 1; }   /* whole card is the link */
.spirit-card p { font-size: 1.1rem; line-height: 1.6; }
.spirit-card:hover .bottle__mark { transform: translateY(-6px) scale(1.03); }
.spirit-card:hover h3 { color: var(--olive-ink); }
/* Black frame around the tile on hover (mouse) and on focus (keyboard / tap).
   It starts invisible and tight against the tile, then fades in while easing outward.
   Speed = the 0.4s values; how far it comes out = the 6px value. */
.spirit-card .bottle {
    outline: 2px solid transparent;
    outline-offset: 0;
    transition: outline-color 0.4s var(--ease), outline-offset 0.4s var(--ease);
}
.spirit-card:hover .bottle,
.spirit-card:focus-within .bottle { outline-color: var(--black); outline-offset: 6px; }
.spirit-card h3 a:focus-visible { outline: none; }

/* 8. Mailing list band + forms --------------------------------------------- */
.signup { background: var(--dark-olive); color: var(--white); padding-block: clamp(3rem, 8vw, 4.5rem); }
.signup__inner { display: grid; gap: 2rem; align-items: center; }
.signup h2 { color: var(--white); margin-bottom: 0.4em; }
.signup__copy p:not(.eyebrow) { max-width: 30rem; color: #dfe3d6; }
@media (min-width: 900px) { .signup__inner { grid-template-columns: 1fr 1fr; gap: clamp(2rem, 6vw, 5rem); } }

.hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.signup-form__row { display: flex; flex-direction: column; gap: 0.75rem; }
@media (min-width: 520px) {
    .signup-form__row { flex-direction: row; }
    .signup-form__row input { flex: 1 1 auto; min-width: 0; }
    .signup-form__row .btn { flex: none; }
}

input[type="text"], input[type="email"], input[type="tel"], select, textarea {
    width: 100%;
    min-height: 3.1rem;
    padding: 0.75rem 1rem;
    border: 1.5px solid rgba(0, 0, 0, 0.45);
    border-radius: 2px;
    background: var(--white); color: var(--black);
    font: inherit; font-size: 1rem;           /* 16px+ stops iOS zooming in on focus */
    line-height: 1.4;
    appearance: none; -webkit-appearance: none;
}
textarea { min-height: 9rem; resize: vertical; }
select {
    padding-right: 2.75rem;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%23000' stroke-width='1.6'/%3E%3C/svg%3E");
    background-repeat: no-repeat; background-position: right 1rem center; background-size: 12px 8px;
}
input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 2px solid var(--olive-ink); outline-offset: 2px; border-color: var(--black); }
.signup input:focus-visible { outline-color: var(--white); }
.signup input[type="email"] { border-color: var(--white); }
::placeholder { color: #6b6b6b; opacity: 1; }

.check { display: flex; align-items: flex-start; gap: 0.75rem; margin-top: 1rem; font-size: 0.85rem; line-height: 1.5; cursor: pointer; }
.check input {
    flex: none;
    width: 1.35rem; height: 1.35rem; margin: 0.1rem 0 0;
    accent-color: var(--olive);
}
.signup .check { color: #dfe3d6; }
.signup .check a { color: var(--white); }
.signup .check a:hover { color: #c9d0bb; }

.form-note { min-height: 1.5em; margin: 1rem 0 0; font-size: 0.92rem; }
.form-note:empty { margin: 0; min-height: 0; }
.form-note.is-success, .form-note.is-error { padding: 0.75rem 1rem; border-left: 3px solid currentColor; }
.form-note.is-success { background: var(--olive-tint); color: var(--black); border-color: var(--olive-ink); }
.form-note.is-error { background: #fbeceb; color: #7a1c12; }

/* 9. Footer ---------------------------------------------------------------- */
.site-footer { background: var(--black); color: #d9d9d4; font-size: 0.95rem; }
.site-footer a { color: var(--white); text-decoration: none; }
.site-footer a:hover { color: #c9d0bb; text-decoration: underline; }

/* Phones and small tablets (under 760px): one centred column */
.site-footer__grid { display: grid; gap: 2.5rem 2rem; grid-template-columns: 1fr; text-align: center; padding-block: clamp(3rem, 7vw, 3.5rem) 2.5rem; }
.site-footer__logo { grid-column: 1 / -1; justify-self: center; display: block; padding: 0.5rem; }
.site-footer__logo img { width: clamp(125px, 40vw, 150px); }
.site-footer__col p { margin-bottom: 0.5em; }
.site-footer__col li + li { margin-top: 0.4em; }
.site-footer__title {
    margin: 0 0 1rem;
    font-family: var(--font-label); font-size: 0.98rem; letter-spacing: 0.18em; line-height: 1.4;
    color: var(--olive);
}
.site-footer .social { justify-content: center; }
.site-footer .hours--compact { max-width: 14rem; margin-inline: auto; }

@media (min-width: 760px) {
    /* 760px and wider: logo plus three columns, left aligned */
    .site-footer__grid { grid-template-columns: auto 1.2fr 1fr 1.1fr; gap: clamp(2rem, 5vw, 4rem); align-items: start; text-align: left; }
    .site-footer__logo { grid-column: auto; justify-self: start; padding: 0; }
    .site-footer .social { justify-content: flex-start; }
    .site-footer .hours--compact { max-width: none; margin-inline: 0; }
}

.social { display: flex; gap: 0.5rem; margin-top: 1.25rem; }
.social li + li { margin-top: 0; }
.social a { display: grid; place-items: center; width: 2.75rem; height: 2.75rem; border: 1px solid var(--line-light); border-radius: 50%; }
.social a:hover { background: var(--white); color: var(--black); }

.site-footer__legal { padding-block: 1.5rem calc(1.5rem + env(safe-area-inset-bottom)); border-top: 1px solid var(--line-light); }
.legal-line { margin: 0; font-size: 0.8rem; letter-spacing: 0.04em; text-align: center; }

.hours li { display: flex; justify-content: space-between; gap: 1rem; padding: 0.7rem 0; border-bottom: 1px solid var(--line); }
.hours li span:first-child { font-family: var(--font-label); letter-spacing: 0.16em; text-transform: uppercase; font-size: 0.86rem; }
.hours--compact li { padding: 0.25rem 0; border: 0; margin: 0 !important; font-size: 0.9rem; }

/* 10. Age gate ------------------------------------------------------------- */
.age-gate {
    position: fixed; inset: 0; z-index: 1000;
    display: none;
    overflow-y: auto;
    padding: 1.5rem;
    background: var(--paper);
}
.age-gate-open .age-gate { display: grid; place-items: center; }
.age-gate-open, .age-gate-open body { overflow: hidden; }

.age-gate__card { width: 100%; max-width: 30rem; text-align: center; }
.age-gate__logo { width: clamp(180px, 52vw, 260px); margin: 0 auto 1.75rem; }   /* master logo, well above the 90px minimum */
.age-gate h2 { font-size: clamp(2rem, 7vw, 2.75rem); margin-bottom: 0.35em; }
.age-gate__buttons { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.75rem; margin-top: 1.5rem; }
.age-gate__buttons .btn { flex: 1 1 12rem; }
.age-gate__remember { justify-content: center; align-items: center; margin-top: 1.25rem; }
.age-gate__remember input { margin: 0; }
.age-gate .legal-line { margin-top: 2.25rem; color: #4d4d4d; }

/* 11. Cookie notice -------------------------------------------------------- */
.cookie {
    position: fixed; left: 1rem; right: 1rem; bottom: calc(1rem + env(safe-area-inset-bottom)); z-index: 900;
    display: flex; flex-wrap: wrap; align-items: center; gap: 0.75rem 1.5rem;
    max-width: 44rem; margin-inline: auto;
    padding: 1rem 1.25rem;
    background: var(--white); border: 1px solid var(--line); border-radius: 2px;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.18);
    font-size: 0.9rem;
}
.cookie[hidden] { display: none; }
.cookie p { flex: 1 1 16rem; margin: 0; }
.cookie__buttons { display: flex; gap: 0.5rem; }

/* 12. Motion --------------------------------------------------------------- */
.reveal-on .reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }
.reveal-on .reveal.is-in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}

@media print {
    .announce, .site-header, .signup, .age-gate, .cookie, .hero__media { display: none !important; }
    body { background: #fff; }
}

/* Slim scrollbar in brand colours (desktop browsers) */
@media (hover: hover) and (pointer: fine) {
    ::-webkit-scrollbar { width: 6px; }
    ::-webkit-scrollbar-track { background: var(--paper); }
    ::-webkit-scrollbar-thumb { background: var(--olive); border-radius: 5px; }
    ::-webkit-scrollbar-thumb:hover { background: var(--black); }
}

/* Small cards (phones): the name sits under the panel, so keep the panel clean */
@media (max-width: 599px) {
    .spirit-grid .bottle__name { display: none; }
    .spirit-grid .bottle__mark { width: 68%; margin-top: 10%; }
}

/* Centred rows: when a group has fewer tiles than fit on a line (e.g. 2 RTDs on a
   4-across row) the tiles sit in the middle instead of hugging the left edge.
   Tile widths match the normal grid: 2 / 3 / 4 across. */
.spirit-grid--center { --gx: clamp(1rem, 3vw, 2rem); display: flex; flex-wrap: wrap; justify-content: center; column-gap: var(--gx); }
.spirit-grid--center > li { flex: 0 0 calc((100% - var(--gx)) / 2); min-width: 0; }
@media (min-width: 760px)  { .spirit-grid--center > li { flex-basis: calc((100% - 2 * var(--gx)) / 3); } }
@media (min-width: 1000px) { .spirit-grid--center > li { flex-basis: calc((100% - 3 * var(--gx)) / 4); } }
@media (max-width: 339px)  { .spirit-grid--center > li { flex-basis: 100%; } }

/* RTD group: its own heading, set apart from the spirits above */
.rtd-group { margin-top: clamp(2rem, 8vw, 3rem); padding-top: clamp(2rem, 6vw, 3rem); border-top: 1px solid var(--line); }
