/*
  Chill Brews — site.css
  ======================
  All styling for the single-page site (index.html).

  Reading guide:
    1. Design tokens (:root)  - brand colours + shadow presets, reused everywhere
    2. Base / resets          - sensible defaults for the whole page
    3. Reusable pieces        - buttons, headings, the centred content wrapper
    4. Sections top-to-bottom - header, hero, favourites, menu, story, etc.
    5. Menu marks             - diet dots, spice chillies, allergen icons
    6. Responsive rules       - two breakpoints at the very bottom

  Tip: colours are defined once as CSS variables in :root below. Change a
  brand colour there and it updates across the whole site.
*/

/* ---------- 1. DESIGN TOKENS ---------- */
:root {
  --espresso: #3a2923;   /* dark brown — text and dark section backgrounds */
  --cream:    #f7f1e7;   /* light background — the main page colour */
  --caramel:  #b8794a;   /* accent — buttons, links, highlights */
  --sage:     #7a8970;   /* muted green — the locations section */
  --cocoa:    #241b18;   /* near-black — the footer */

  /* Soft drop shadows used to lift images off the page */
  --lift:      0 22px 44px -24px rgba(58,41,35,.5), 0 8px 18px -12px rgba(58,41,35,.3);
  --lift-dark: 0 26px 52px -22px rgba(0,0,0,.55), 0 10px 22px -14px rgba(0,0,0,.4);
}

/* ---------- 2. BASE / RESETS ---------- */
* { box-sizing: border-box; }               /* padding/border never grow an element's width */
html { scroll-behavior: smooth; }           /* smooth scroll when clicking in-page nav links */

body {
  height: auto;
  margin: 0;
  overflow: visible;
  overflow-x: hidden;                        /* never allow sideways scrolling */
  background: var(--cream);
  color: var(--espresso);
  font-family: "DM Sans", sans-serif;
  font-size: 16px;
  line-height: 1.5;
}

img { display: block; max-width: 100%; }     /* images never overflow their container */
a { color: inherit; text-decoration: none; }
h1, h2, h3, p { margin: 0; }                 /* remove default margins; we space things manually */

/* Headings use the Fraunces serif; body uses DM Sans (set on body above) */
h1, h2 { font-family: Fraunces, Georgia, serif; font-weight: 600; letter-spacing: 0; line-height: .98; }
h1 { font-size: clamp(3.75rem, 8vw, 7.5rem); }   /* clamp = fluid size between min and max */
h2 { font-size: clamp(2.35rem, 4.7vw, 4.4rem); }
h3 { font-size: 1rem; line-height: 1.25; }

/* Centred content column, max 1180px wide with side gutters */
.section-shell { width: min(1180px, calc(100% - 48px)); margin: 0 auto; }

/* ---------- 3. REUSABLE PIECES ---------- */

/* Sticky top bar */
.site-header {
  position: sticky; z-index: 10; top: 0;     /* stays pinned to the top while scrolling */
  min-height: 96px;
  padding: 14px max(24px, calc((100vw - 1180px) / 2));
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  background: rgba(247,241,231,.93);
  border-bottom: 1px solid rgba(58,41,35,.1);
  backdrop-filter: blur(12px);               /* frosted-glass effect behind the bar */
}
.brand img { width: 186px; }
.desktop-nav { display: flex; gap: 28px; font-size: .91rem; font-weight: 600; }
.desktop-nav a:hover, .text-link:hover { color: var(--caramel); }

/* Primary button (caramel) */
.button {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 50px; padding: 12px 21px;
  background: var(--caramel); color: #fff;
  font-size: .88rem; font-weight: 700;
  transition: background .2s, transform .2s;
}
.button:hover { background: #96603a; transform: translateY(-2px); }
.button-small { min-height: 42px; padding: 9px 15px; }

/* Small uppercase label above headings */
.eyebrow {
  margin-bottom: 13px; color: var(--caramel);
  font-size: .73rem; font-weight: 700; letter-spacing: .13em; text-transform: uppercase;
}
/* Text link with an arrow */
.text-link { display: inline-flex; align-items: center; gap: 8px; font-size: .88rem; font-weight: 700; }

/* ---------- 4. HERO ---------- */
.hero {
  display: grid; grid-template-columns: .87fr 1.13fr; align-items: center;
  min-height: calc(100vh - 96px); gap: clamp(36px, 7vw, 112px); padding: 50px 0 72px;
}
.hero-copy { padding: 20px 0; }
.hero-intro { max-width: 390px; margin: 25px 0 31px; font-size: 1.05rem; }
.hero-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 23px; }
.hero-image-wrap { position: relative; min-height: 500px; overflow: hidden; background: #d3b18a; box-shadow: var(--lift); }
.hero-image-wrap img { width: 100%; height: 100%; min-height: 500px; object-fit: cover; object-position: center; }
.hero-note { position: absolute; right: 0; bottom: 0; padding: 12px 18px; background: var(--cream); font-size: .76rem; font-weight: 700; }

/* ---------- FAVOURITES ---------- */
.favourites { padding: 106px 0; }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 28px; margin-bottom: 38px; }
.favourite-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.favourite-card { overflow: hidden; background: #efe7d9; box-shadow: var(--lift); transition: transform .4s ease, box-shadow .4s ease; }
.favourite-card:hover { transform: translateY(-5px); box-shadow: 0 30px 56px -24px rgba(58,41,35,.55), 0 12px 24px -12px rgba(58,41,35,.34); }
.favourite-card img { width: 100%; aspect-ratio: 1; object-fit: cover; transition: transform .6s ease; }
.favourite-card:hover img { transform: scale(1.05); }   /* gentle zoom on hover */
.favourite-card div { padding: 17px 16px 19px; }
.favourite-card p, .menu-list p { margin-top: 6px; color: #77665c; font-size: .76rem; }
.favourite-card strong { display: block; margin-top: 13px; color: var(--caramel); font-size: .82rem; }

/* ---------- MENU ---------- */
.menu-section { padding: 106px 0; background: var(--espresso); color: var(--cream); }
.menu-intro { display: grid; grid-template-columns: 1fr 1fr; gap: 36px; align-items: end; margin-bottom: 40px; }
.menu-intro .eyebrow { grid-column: 1 / -1; margin-bottom: -25px; color: #e2aa7b; }
.menu-intro > p:last-child { max-width: 390px; color: #dfd2c5; }

/* Tab buttons */
.menu-tabs { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 13px; margin-bottom: 25px; }
.menu-tab {
  flex: none; padding: 10px 15px;
  border: 1px solid rgba(247,241,231,.28); border-radius: 0;
  background: transparent; color: var(--cream);
  font: 600 .82rem "DM Sans", sans-serif; cursor: pointer;
}
.menu-tab.is-active { border-color: var(--caramel); background: var(--caramel); color: white; }

/* One category panel. Only the active one is visible (site.js toggles [hidden]). */
.menu-panel { display: grid; grid-template-columns: 1.18fr .82fr; gap: clamp(30px, 7vw, 92px); align-items: center; }
.menu-panel[hidden] { display: none; }

/* Menu item rows */
.menu-list article { display: flex; justify-content: space-between; gap: 16px; padding: 17px 0; border-bottom: 1px solid rgba(247,241,231,.16); }
.menu-list h3 { display: flex; flex-wrap: wrap; align-items: center; gap: 5px; }
.menu-list strong { flex: none; color: #e2aa7b; font-size: .9rem; }
.menu-list p { color: #d8cabc; }

/* ---------- 5. MENU MARKS (diet / spice / allergens) ---------- */
/* Wrapper that keeps all marks for an item together, on the item's name line */
.marks { display: inline-flex; align-items: center; gap: 6px; }

/* Diet dot: a small coloured circle with a thin white ring */
.diet { display: inline-block; width: 12px; height: 12px; border-radius: 50%; box-shadow: inset 0 0 0 1.6px rgba(255,255,255,.85); vertical-align: -1px; }
.diet.veg    { background: #4ca64c; }   /* green  = vegetarian */
.diet.nonveg { background: #d64541; }   /* red    = non-vegetarian */
.diet.egg    { background: #e6a92b; }   /* amber  = contains egg */

/* Spice: one to four chilli icons */
.heat { display: inline-flex; align-items: center; gap: 2px; vertical-align: -2px; }
.chili { width: 14px; height: 14px; fill: #d15f3c; }

/* Allergen icons — now shown inline on the item's name line, after the diet/spice */
.allergens { display: inline-flex; align-items: center; gap: 9px; margin-left: 6px; color: #c9b7a6; }
.al { display: inline-flex; }
.allergens .ico { width: 17px; height: 17px; }

/* Short text note used where an item has no icon-able allergen (e.g. Fruit Boba) */
.note { margin-left: 4px; font: italic 400 .72rem "DM Sans", sans-serif; color: #b8a99a; }

/* Shared style for the line-drawn allergen icons (stroke, not fill) */
.ico { display: block; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }

/* Legend under the tabs */
.menu-legend { display: flex; flex-wrap: wrap; gap: 14px 30px; margin: -4px 0 34px; padding-bottom: 24px; border-bottom: 1px solid rgba(247,241,231,.16); font-size: .75rem; color: #dfd2c5; }
.legend-group { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; }
.legend-title { font-weight: 700; letter-spacing: .1em; text-transform: uppercase; font-size: .66rem; color: #e2aa7b; }
.legend-group > span { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; }
.menu-legend .ico { width: 17px; height: 17px; color: #dfd2c5; }

/* The large feature image beside each menu panel (and the striped placeholder boxes) */
.menu-feature-image, .image-placeholder { width: 100%; aspect-ratio: 1; object-fit: cover; }
.menu-feature-image { box-shadow: var(--lift-dark); }
.image-placeholder { display: grid; place-items: center; background: repeating-linear-gradient(135deg, #e5dac8 0 14px, #ddd0bd 14px 28px); color: #715e50; font-size: .78rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; }

/* ---------- COMBOS ---------- */
.combo { display: grid; grid-template-columns: .83fr 1.17fr; gap: clamp(36px, 9vw, 135px); align-items: center; padding: 110px 0; }
.combo > div:first-child > p:not(.eyebrow) { max-width: 390px; margin: 23px 0 28px; }
.combo-art { aspect-ratio: 1.6 / 1; width: 100%; object-fit: cover; box-shadow: var(--lift); }

/* ---------- LOCATIONS ---------- */
.locations { padding: 100px 0; background: var(--sage); color: #fbf8f1; }
.locations .eyebrow { color: #f5d1ad; }
/* auto-fill: as many 262px+ columns as fit, so extra cafes flow automatically */
.location-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(262px, 1fr)); gap: 1px; margin-top: 39px; background: rgba(255,255,255,.3); }
.location-grid article { min-height: 250px; padding: 30px; background: var(--sage); }
.location-number { margin-bottom: 36px; color: #f5d1ad; font: 600 .8rem Fraunces, serif; }
.location-grid h3 { font-family: Fraunces, Georgia, serif; font-size: 1.6rem; }
.location-grid article > p:not(.location-number) { max-width: 280px; margin: 12px 0 26px; }
.location-coming { background: #6c7963 !important; }   /* muted tile for a "coming soon" cafe */
.location-hours { margin-top: 14px !important; font-weight: 600; color: #f4eee3; }

/* ---------- ORDER ---------- */
.order { display: flex; align-items: center; justify-content: space-between; gap: 48px; padding: 100px 0; }
.order > div:first-child p:last-child { margin-top: 18px; }
.order-links { display: grid; grid-template-columns: repeat(3, minmax(130px, 1fr)); gap: 10px; width: min(570px, 100%); }
.delivery-link { display: flex; flex-direction: column; justify-content: center; min-height: 50px; padding: 10px 16px; border: 1px solid rgba(58,41,35,.22); font-size: .86rem; font-weight: 700; }
.delivery-link small { margin-top: 2px; color: #8e7c70; font-weight: 500; }
.is-disabled { cursor: not-allowed; opacity: .65; }   /* used on links that aren't live yet */

/* ---------- FOOTER ---------- */
.site-footer { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 24px; padding: 38px max(24px, calc((100vw - 1180px) / 2)); background: var(--cocoa); color: #efe7d9; font-size: .82rem; }
.site-footer img { width: 150px; filter: brightness(0) invert(1); }   /* turns the logo solid white */
.site-footer a { font-weight: 700; color: #e2aa7b; }
.site-footer span { color: #baa99b; }

/* ---------- PRODUCT STRIP (tags) ---------- */
.tagstrip { padding: 26px 24px; background: var(--cream); border-top: 1px solid rgba(58,41,35,.1); border-bottom: 1px solid rgba(58,41,35,.1); }
.tagstrip-list { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 14px 26px; width: min(1180px, calc(100% - 48px)); margin: 0 auto; padding: 0; list-style: none; }
.tagstrip-list li { display: inline-flex; align-items: center; gap: 26px; font: 600 .78rem/1 "DM Sans", sans-serif; letter-spacing: .22em; text-transform: uppercase; color: var(--espresso); }
.tagstrip-list li::after { content: "\25C6"; font-size: .5rem; color: var(--caramel); opacity: .75; }   /* diamond separator */
.tagstrip-list li:last-child::after { content: none; }

/* ---------- WHY CHILL BREWS (features) ---------- */
.features { padding: 106px 0 66px; }
.feature-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin-top: 38px; }
.feature-grid article { display: flex; flex-direction: column; min-height: 236px; padding: 28px 24px; background: #efe7d9; }
.feature-num { margin-bottom: auto; font: 600 1rem Fraunces, serif; color: var(--caramel); }
.feature-grid h3 { margin: 24px 0 10px; font: 600 1.22rem Fraunces, serif; }
.feature-grid p { color: #6f5d52; font-size: .9rem; }

/* ---------- STORY ---------- */
.story { padding: 40px 0 106px; }
.story-inner { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(34px, 7vw, 88px); align-items: center; }
.story-media { min-height: 460px; width: 100%; height: 100%; object-fit: cover; box-shadow: var(--lift); }
.story-copy p:not(.eyebrow) { max-width: 440px; margin-top: 22px; color: #6f5d52; }
.story-copy .text-link { margin-top: 26px; }

/* ---------- BUILD YOUR BOBA ---------- */
.boba { padding: 106px 0; background: #efe7d9; }
.boba-copy { max-width: 560px; }
.boba-copy p:not(.eyebrow) { margin-top: 20px; color: #6f5d52; }
.boba-cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 34px; margin-top: 44px; }
.boba-cols h3, .boba-step h3 { margin-bottom: 17px; font: 600 1.3rem Fraunces, serif; }
.chips { display: flex; flex-wrap: wrap; gap: 9px; margin: 0; padding: 0; list-style: none; }
.chip { padding: 9px 15px; background: var(--cream); border: 1px solid rgba(58,41,35,.16); font: 600 .82rem "DM Sans", sans-serif; color: var(--espresso); cursor: pointer; transition: background .15s, border-color .15s, color .15s; }
.chip:hover { border-color: var(--caramel); }
.chip.is-selected { background: var(--espresso); border-color: var(--espresso); color: var(--cream); }   /* a chosen chip */
.chips.sweet .chip { background: transparent; border-color: var(--caramel); color: var(--caramel); }
.chips.sweet .chip.is-selected { background: var(--caramel); color: #fff; }
.boba-summary { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; margin-top: 42px; padding: 26px 30px; background: var(--espresso); color: var(--cream); }
.boba-summary-label { font: 700 .72rem "DM Sans", sans-serif; letter-spacing: .18em; text-transform: uppercase; color: #e2aa7b; }
.boba-summary-text { font: 600 1.4rem Fraunces, serif; line-height: 1.15; }
.boba-order { margin-top: 14px; }
.boba-order.is-disabled { pointer-events: none; opacity: .55; }   /* until a flavour is picked */

/* ---------- GALLERY ---------- */
.gallery { padding: 106px 0; background: var(--espresso); color: var(--cream); }
.gallery .eyebrow { color: #e2aa7b; }
.gallery .section-heading .text-link { color: #dcae86; }
.gallery-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 12px; margin-top: 36px; }
.gallery-grid .image-placeholder { aspect-ratio: 1; }
.gallery-img { width: 100%; aspect-ratio: 1; object-fit: cover; box-shadow: var(--lift-dark); }

/* ---------- REVIEWS ---------- */
.reviews-cta { padding: 96px 0; text-align: center; }
.reviews-cta h2 { max-width: 660px; margin: 0 auto; }
.reviews-cta > p { max-width: 440px; margin: 20px auto 30px; color: #6f5d52; }
.review-links { display: flex; justify-content: center; flex-wrap: wrap; gap: 12px; }

/* ---------- 6. RESPONSIVE ---------- */
/* Tablets and below: collapse nav, reduce multi-column grids */
@media (max-width: 800px) {
  .site-header { min-height: 80px; }
  .desktop-nav { display: none; }
  .hero { grid-template-columns: 1fr; min-height: auto; padding: 50px 0 70px; }
  .hero-copy { order: 2; padding: 0; }
  .hero-image-wrap, .hero-image-wrap img { min-height: 390px; }
  .favourite-grid { grid-template-columns: repeat(2, 1fr); }
  .menu-intro, .menu-panel, .combo { grid-template-columns: 1fr; }
  .menu-intro .eyebrow { margin-bottom: -21px; }
  .menu-feature-image, .menu-panel .image-placeholder { max-width: 500px; }
  .order { display: grid; }
  .location-grid { grid-template-columns: 1fr; }
  .site-footer { display: grid; }
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
  .story-inner { grid-template-columns: 1fr; }
  .story-media { min-height: 320px; }
  .boba-cols { grid-template-columns: 1fr; gap: 26px; }
  .gallery-grid { grid-template-columns: repeat(3, 1fr); }
}

/* Phones: single column, tighter spacing */
@media (max-width: 480px) {
  .section-shell { width: min(100% - 32px, 1180px); }
  .site-header { padding: 12px 16px; }
  .brand img { width: 150px; }
  .button-small { padding: 8px 10px; font-size: .75rem; }
  .hero-image-wrap, .hero-image-wrap img { min-height: 320px; }
  .favourites, .menu-section, .combo, .locations, .order { padding-top: 72px; padding-bottom: 72px; }
  .section-heading { align-items: start; flex-direction: column; }
  .favourite-grid { gap: 12px; }
  .favourite-card div { padding: 13px; }
  .order-links { grid-template-columns: 1fr; }
  .features, .boba, .gallery { padding-top: 72px; padding-bottom: 72px; }
  .story { padding: 24px 0 72px; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
}
