/* =========================
   THEME TOKENS
   ========================= */
:root {
    --bg: #DB092E;
    --text: #fff;
    --brand: rgba(219, 9, 46, .5);   /* translucent red accent (also used on hovers) */
    --muted: #e5e7eb;
    --maxw: 780px;
    --font-family: system-ui, -apple-system, Segoe UI, Roboto,
    "Helvetica Neue", Arial, "Apple Color Emoji", "Segoe UI Emoji";
    --social-size: 48px;             /* social icon circle diameter */
    --social-icon-scale: 1.2;        /* icon fills 120% of the circle size */
}

/* Normalize box model across the site */
* { box-sizing: border-box; }

/* =========================
   GLOBAL PAGE BACKGROUND / TYPE
   ========================= */
html,
body {
    margin: 0;
    font-family: var(--font-family);
    color: var(--text);
    line-height: 1.6;

    touch-action: pan-y;   /* prioritize vertical scrolling */
    /* Layer 1 = translucent red overlay, Layer 2 = background photo */
    background-image:
            linear-gradient(rgba(219, 9, 46, .5), rgba(219, 9, 46, .5)),
            url("images/hero.png");
    background-position: 0 0, center;  /* gradient at origin; image centered */
    background-size: auto, cover;
    background-repeat: repeat, no-repeat;
    background-attachment: scroll, fixed; /* gradient scrolls; photo fixed */
    /* `position: relative;` on html/body not needed; removed */
}

/* Scales nicely and centers the logo */
.logo {
    display: block;
    margin: 0 auto 8px;
    width: clamp(200px, 40vw, 600px);
    height: auto;
}

/* =========================
   INDEX PAGE: ONE-SCREEN LAYOUT
   ========================= */
body.index {
    min-height: 100svh;
    max-height: 100svh; /* don’t grow taller than the viewport */
    display: grid;
    grid-template-rows: auto 1fr auto;
    padding-bottom: 0 !important;
    overflow-y: clip; /* or hidden; clip hides that little extra “tail” */
}


    /* Footer is in normal flow on the index page (not fixed) */
body.index footer { position: static; }

/* Center hero contents within the middle row on index */
body.index .hero {
    min-height: 0;                      /* grid controls height */
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 20px;                    /* side breathing room */
}

/* Keep hero content tidy & responsive */
body.index .hero-inner {
    width: 100%;
    max-width: var(--maxw);
    text-align: center;
}

body.index .logo {
    max-width: min(600px, 70vw);
    height: auto;
}

body.contact {
    min-height: 100svh;
    display: grid;
    grid-template-rows: auto 1fr auto;  /* header | middle | footer */
}

/* middle region: stack hero + form and center them */
body.contact .contact-main {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;    /* vertically center the content block */
}



/* =========================
   HEADER / NAV
   ========================= */
header {
    background: rgba(0, 0, 0, .35);
    padding: 20px 0;
}

.hero-inner {
    margin: 0 auto;
    text-align: center;
    position: relative;
    z-index: 1;
    max-width: var(--maxw);
    padding: 24px 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0;
}

.eyebrow {
    text-transform: uppercase;
    letter-spacing: .06em;
    /* NOTE: with clamp(2rem, 2vw, 2rem) the size is effectively fixed at 2rem.
       If you wanted responsive sizing, use something like clamp(1rem, 2.2vw, 1.2rem). */
    font-size: clamp(2rem, 2vw, 2rem);
    line-height: 1.05;
    margin: 0 0 .25rem;
    font-weight: 600;
}

h1 {
    text-align: center;
    font-size: clamp(2rem, 5vw, 3.2rem);
    line-height: 1.1;
}

.nav {
    max-width: var(--maxw);
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Mobile hamburger button */
.hamburger {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 28px;
    height: 22px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
}
.hamburger span {
    display: block;
    width: 100%;
    height: 3px;
    background-color: #fff;
    border-radius: 2px;
}

/* Desktop nav */
.menu { display: block; }

.menu ul {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 28px;
    list-style: none;
    margin: 0;
    padding: 0;
}
.menu a {
    color: var(--text);
    text-decoration: none;
    font-weight: 700;
    /* font-family already inherited globally; removed duplicate */
}
.menu a:hover,
.menu a:focus-visible { color: var(--brand); }

/* Mobile nav */
@media (max-width: 820px) {
    .logo { width: 80vw; }

    .hamburger { display: inline-flex; }

    .menu {
        position: absolute;
        left: 20px;
        right: 20px;
        top: 56px;
        z-index: 2000;

        /* Frosted glass sheet */
        background: rgba(219, 9, 46, 0.35);          /* translucent brand red */
        border-radius: 14px;
        border: 1px solid rgba(255, 255, 255, 0.18);
        backdrop-filter: blur(14px) saturate(1.3);
        -webkit-backdrop-filter: blur(14px) saturate(1.3);

        /* animation container */
        max-height: 0;
        opacity: 0;
        overflow: hidden;
        padding: 0 14px 0;                           /* no top padding yet, we’ll add space below the edge */
        transition:
                max-height 0.8s ease,
                opacity 0.3s ease,
                padding 0.4s ease;
    }

    .menu.open {
        max-height: 500px;
        opacity: 1;
        padding: 14px;
    }

    .menu ul {
        flex-direction: column;
        gap: 14px;
        padding: 0;
        margin: 0;
        list-style: none;
    }

    /* Optional: make each item feel like a mini “label” inside the frosted sheet */
    .menu li a {
        display: block;
        padding: 10px 4px;
    }

    .menu-container {
        padding-left: 20px;
        padding-right: 20px;
    }
}

/* =========================
   CTA BOTTLECAP BUTTONS
   ========================= */
.cta {
    border: none;
    outline: none;
    background-color: transparent;
    display: inline-flex;
    align-items: center;
    justify-content: center;

    /* size of the cap – tweak to match your image */
    width: 140px;
    height: 140px;

    margin-bottom: 1rem;

    background-image: url("images/bottlecap.png");
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;  /* scale image, keep aspect */

    color: black;
    font-weight: 800;
    text-align: center;
    text-decoration: none;

    border: none;
    border-radius: 50%;        /* keep clicks inside a circle-ish area */

    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
}

/* Embossed text */
.cta-label {
    color: #fdfdfd;
    font-weight: 800;
    font-size: 1.05rem;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 0.08em;

    /* subtle stroke to keep edges crisp on busy texture */
    -webkit-text-stroke: 0.5px rgba(0, 0, 0, 0.4);

    /* embossed effect: dark top-left, light bottom-right */
    text-shadow:
            -1px -1px 1px rgba(0, 0, 0, 0.7),   /* shadow top-left */
            1px  1px 1px rgba(255, 255, 255, 0.7); /* highlight bottom-right */
}

.cta:hover,
.cta:focus-visible {
    transform: translateY(-3px) scale(1.03);
    filter: brightness(1.05) contrast(1.05);
    outline: none;
}

/* =========================
   FOOTER (fixed globally; normal flow on index via override above)
   ========================= */
footer {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1000;
    padding: 16px 20px;
    background: rgba(0, 0, 0, .35);
    backdrop-filter: blur(6px);
    border-top: 1px solid rgba(255, 255, 255, .12);
    color: #fff;
}
footer .foot {
    max-width: var(--maxw);
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

/* =========================
   FULL-BLEED CONTAINERS FOR DRINK CARDS
   (stack cards vertically, edge-to-edge)
   ========================= */
.menu-container{
    display: flex;               /* vertical stack of full-bleed cards */
    flex-direction: column;
    gap: 18px;
    max-width: none;
    padding: 0;                  /* edge-to-edge */
    margin: 20px 0;
}

.drink-grid {
    display: flex;               /* vertical stack of full-bleed cards */
    flex-direction: column;
    margin-top: 0;
    margin-bottom: -16px;
}

/* =========================
   SOCIAL ICONS (circular, with hover overlay that shows through PNG)
   ========================= */
.social { display: flex; gap: 16px; }

.social a {
    width: var(--social-size);
    height: var(--social-size);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    border-radius: 50%;
}
.social a::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 50%;
    background: var(--brand);    /* shows through transparent parts of PNGs */
    opacity: 0;
    z-index: 0;
    transition: opacity .2s ease;
}
.social a:hover::before,
.social a:focus-visible::before { opacity: 1; }

.social a img {
    width: calc(var(--social-size) * var(--social-icon-scale));
    height: calc(var(--social-size) * var(--social-icon-scale));
    display: block;
    object-fit: contain;
    z-index: 1;
}
.social a:hover,
.social a:focus-visible { transform: translateY(-1px); }

/* =========================
   LAYOUT HELPERS (forms, wrap, etc.)
   ========================= */

/* .wrap is used on contact to constrain content */
.wrap {
    max-height: 100vw;
    margin: 0 auto;
}

/* Forms */
form { display: inline-grid; gap: 0; margin-top: 0; }
label { font-weight: 700; }

.required::after { content: " *"; color: #ffd2da; font-weight: 400; }

input,
textarea,
select {
    width: 100%;
    color: var(--text);
    background: #0d0e12;
    border: 1px solid rgba(255, 255, 255, .18);
    border-radius: 12px;
    padding: 12px 14px;
    font-size: 16px;
    font-family: inherit;
    appearance: none;
}
/* Custom dropdown arrow for select */
select {
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 14px center;
    background-size: 16px;
    padding-right: 40px;
}

/* Custom-drawn checkbox with CSS tick */
input[type="checkbox"]{
  appearance: none;
  -webkit-appearance: none;
  width: 20px;
  height: 20px;
  border: 2px solid rgba(255,255,255,.85);
  border-radius: 4px;
  background: rgba(0,0,0,.35);
  display: inline-grid;
  place-content: center;
  cursor: pointer;
}
input[type="checkbox"]::after{
  content: "";
  width: 10px;
  height: 6px;
  border: 3px solid #fff;          /* white tick */
  border-top: 0;
  border-right: 0;
  transform: rotate(-45deg) scale(0);
  transition: transform .12s ease;
}
input[type="checkbox"]:checked::after{
  transform: rotate(-45deg) scale(1);
}

textarea { resize: vertical; min-height: 120px; }

input:focus,
textarea:focus,
select:focus {
    outline: none;
    border-color: var(--brand);
    box-shadow: 0 0 0 4px rgba(255, 77, 109, .18);
}

/* Two-column row helper for forms (stacks on small screens if you add a media query) */
.row {
    display: grid;
    gap: 14px;
    grid-template-columns: 1fr 1fr;
}

/* Toast (re-enable bottom so it appears above footer) */
.toast {
    position: fixed;
    right: 18px;
    bottom: calc(var(--footer-h, 0px) + 18px); /* sits above footer */
    z-index: 4000;
    background: #111216;
    border: 1px solid rgba(255, 255, 255, .12);
    padding: 12px 14px;
    border-radius: 12px;
    display: none;
}

/* =========================
   PHOTO CAROUSEL
   ========================= */
/* outer wrapper that lives inside your normal content */
.carousel-wrapper {
    position: relative;
    width: 100vw; /* full viewport width */
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw; /* breaks out of centered layout */
}

.carousel {
    width: 100vw;
    max-width: 100vw;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    padding-block: 20px;
    -ms-overflow-style: none;   /* IE / Edge */
    scrollbar-width: none;      /* Firefox */
}
.carousel-track {
    display: flex;
    width: 100%;
    height: 100%;
    gap: 14px;
}
.carousel-track img {
    flex: 0 0 100%;      /* one full-width slide per “screen” */
    width: 100%;
    height: min(320px, 60vh);
    object-fit: cover;
}

.carousel::-webkit-scrollbar {
    display: none;
}

/* =========================
   DRINK CARDS (full-bleed, capped height)
   ========================= */

/* Make each card full-bleed and visually capped in height */
.drink-card {
    position: relative;
    overflow: hidden;
    cursor: zoom-in;
    width: 100%;                               /* full viewport width */
    height: clamp(275px, 60vh, 520px);          /* cap height */
    margin-left: 50%;                            /* center 100vw inside centered parent */
    transform: translateX(-50%);
    border-radius: 0;
    background: transparent;
    isolation: isolate;
}

/* Background image that swells on hover */
.drink-card .drink-img {
    display: inline-block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform-origin: 50% 50%;
    transition: transform .35s ease;
    pointer-events: none;          /* touches hit the overlay/card instead */
    -webkit-user-drag: none;       /* can’t drag the image */
    user-drag: none;
    -webkit-touch-callout: none;   /* iOS: no "Save Image" on long-press */
}

/* Title overlay (visible by default) */
.drink-card .drink-title {
    position: absolute;
    left: 0; right: 0; top: 50%;
    transform: translateY(-50%);
    text-align: center;
    color: #fff;
    font-weight: 800;
    opacity: 1;
    transition: opacity .25s ease, transform .25s ease;
    z-index: 2;
}

/* Ingredients overlay (hidden initially; now created via JavaScript) */
.ingredients-overlay{
    position: absolute;
    inset: 0;
    pointer-events: none;   /* overlay is visual only, events go to .drink-card */
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    align-content: center;
    justify-content: center;
    text-align: center;

    background: rgba(0,0,0,.55);
    color: #fff;
    font-weight: 700;

    padding: clamp(16px, 4vmin, 36px);
    font-size: clamp(1rem, 4vmin, 2.5rem);
    line-height: 1;

    opacity: 0;                              /* hidden by default */
    transition: opacity .25s ease;           /* no transform in use */
    z-index: 1001;                           /* above footer/header */
    -webkit-touch-callout: none;            /* kills "copy" menus on iOS */

    white-space: pre-wrap;
}

/* Each word is a wrapping unit */
.ingredients-overlay .word {
    display: inline-block;
    max-width: min(32rem, 90vw);
    user-select: none;
    -webkit-user-select: none;
    -ms-user-select: none;
}

/* Individual letters */
.ingredients-overlay .char {
    display: inline-block;
    user-select: none;
    -webkit-user-select: none;
    -ms-user-select: none;
}

/* Bounce animation for letters */
@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    25% { transform: translateY(-20px); }
    50% { transform: translateY(0); }
    75% { transform: translateY(-10px); }
}

.bounce {
    animation: bounce 600ms ease;
}

/* Interactions */
.drink-card:hover .drink-img {
    transform: scale(1.06);
    will-change: transform;
}
.drink-card:hover .drink-title,
.drink-card:focus-within .drink-title {
    opacity: 0;
}
.drink-card:hover .ingredients-overlay,
.drink-card:focus-within .ingredients-overlay {
    opacity: 1;
}

/*=====================
EVENTS CALENDAR
=======================
 */
.events-container {
    display: flex;
    flex-direction: column;
    gap: 5px;
    background: url("images/truck.png");
    background-size: 100%;
    background-position: center;
    /* optional: center children horizontally */
    align-items: center;
}

.event {
    background: linear-gradient(rgba(219, 9, 46, .2), rgba(219, 9, 46, .2));
    border-radius: 5px;
    box-shadow: 0 10px 24px rgba(0,0,0,.25);
    text-align: center;
    margin: 0;

    /* 👇 make the card narrower */
    width: min(500px, 90%);  /* or whatever size you like */
}

