/* ==========================================================================
   Coffee Masters — Global Styles
   File: css/main.css
   Version: v23 27/1/26
   ========================================================================== */

/* === Breakpoint map (unified) ===========================
480px  → small phones
768px  → tablets / portrait
1024px → small laptops
1280px → desktops (tight)
========================================================= */


/* ==========================================================================
   1) Base / Reset
   -------------------------------------------------------------------------- */

/* Basic box-model, default margin/padding reset */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

/* Document body defaults (color + font only; no global padding) */
body {
  background-color: #f2f5ff;
  font-family: 'Figtree', system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  margin: 0;
}

html, body { overflow-x: clip; }

button,
input,
select,
textarea{
  font: inherit;
}

/* General list spacing to match <p> rhythm */
ul {
  margin: 0 0 12px 0;
  padding-left: 20px;             /* keeps bullets just outside text block */
  list-style-position: outside;
}

/* So h1 content can be added to home page when top of page is image carousel */
.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}


/* ==========================================================================
   Global Typography System (Design Tokens + Utilities)
   ========================================================================== */

/* === Design Tokens ====================================================== */
:root{
  --type-h2:50px;
  --type-h3:35px;
  --type-h3-ui:24px;
  --type-lead: 22px;
  --type-body:18px;

  --lh-h2:1.05;
  --lh-h3:1.05;
  --lh-body:1.35;

  --fw-h2:700;
  --fw-h3:600;
  --fw-body:400;

  --type-color:#190200;
}

/* ≤1280px */
@media (max-width:1280px){
  :root{
    --type-h2:42px;
    --type-h3:30px;
    --type-h3-ui:22px;
    --type-lead:20px;
    --type-body:17px;
  }
}

/* ≤1024px */
@media (max-width:1024px){
  :root{
    --type-h2:35px;
    --type-h3:30px;
    --type-h3-ui:20px;
    --type-lead:18px;
    --type-body:14px;
  }
}

/* ≤480px */
@media (max-width:480px){
  :root{
    --type-h2:30px;
    --type-h3:26px;
    --type-h3-ui:18px;
    --type-lead:16px;
    --type-body:13px;
  }
}

/* === Typography Utilities (Use Across All Primitives) =================== */

.type-h2,
.type-h3,
.type-body,
.type-lead{
  font-family:'Figtree',system-ui,-apple-system,Segoe UI,Roboto,Arial,sans-serif;
  color:var(--type-color);
}

.type-h2{
  font-size:var(--type-h2);
  font-weight:var(--fw-h2);
  line-height:var(--lh-h2);
  margin:0 0 12px;
}

.type-h3{
  font-size:var(--type-h3);
  font-weight:var(--fw-h3);
  line-height:var(--lh-h3);
  margin:0 0 10px;
}

.type-body{
  font-size:var(--type-body);
  font-weight:var(--fw-body);
  line-height:var(--lh-body);
  margin:0 0 16px;
}

/* NEW: Lead / intro text */
.type-lead{
  font-size:var(--type-lead);
  font-weight:var(--fw-body);
  line-height:var(--lh-body);
  margin:0 0 16px;
 max-width:60ch;
}

/* Backwards compatibility */
.type-card-title{
  font-size:var(--type-h2);
  font-weight:var(--fw-h2);
  line-height:var(--lh-h2);
  margin:0 0 12px;
}

.type-card-body{
  font-size:var(--type-body);
  font-weight:var(--fw-body);
  line-height:var(--lh-body);
  margin:0 0 16px;
}


/* ==========================================================================
   Global Components / Utilities
   ========================================================================== */

/* Styling the section content headers */
.section-content-header{ text-align:center; margin:80px 0 40px; }

/* Optional supporting line under the heading */
.section-content-header__lede{ margin-top:12px; color:#5f5552; max-width: 85ch; margin-inline: auto; justify-self: center; }

/* --------------- Global container base styling ---------------------- */
.container {
  display: flex;
  width: 100%;
  max-width: 1200px;
  margin: auto;               
  border-radius: 5px;
  overflow: hidden;
  position: relative;
  padding: 0;
  flex-wrap: wrap;              
  box-shadow: 0 10px 20px rgb(0 0 0 / 19%), 0 6px 6px rgb(0 0 0 / 23%);
}

/* === Global button base styling ======================================= */
.buttons button {
  background-color: #190200;
  color: #ffffff;
  font-size: var(--type-body);
  font-weight: 600;
  text-transform: uppercase;
  padding: 9px 18px;
  min-width: 125px;
  border: none;
  outline: none;
  border-radius: 5px;
  cursor: pointer;
}

/* === Global button responsive styling ======================================= */
@media (max-width: 768px){
  .buttons button{ padding: 7px 14px; }
}


/* ==========================================================================
   Theem + Section Modifiers
   ========================================================================== */

/* ==================================================
   Theme labels (background + contrast)
   ================================================== */

.theme{
  background: var(--theme-bg, transparent);
  color: var(--theme-fg, var(--type-color));
}

/* Ensure typography utilities inherit theme colour */
.theme .type-h2,
.theme .type-h3,
.theme .type-body{
  color: inherit;
}

/* Lists inherit theme colour */
.theme .layout-list,
.theme .layout-list li{
  color: inherit;
}

/* Buttons invert based on theme variables */
.theme .buttons button{
  background-color: var(--theme-btn-bg);
  color: var(--theme-btn-fg);
}

/* Links */
.theme a{
  color: var(--theme-link, #BA5917);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 2px;
}

.theme a:hover,
.theme a:focus{
  color: var(--theme-link-hover, var(--theme-link));
  text-decoration-thickness: 3px;
}

/* Light themes (dark text) */
.theme-stone{
  --theme-bg: #d6d0cc;
  --theme-fg: #190200;
  --theme-btn-bg: #190200;
  --theme-btn-fg: #ffffff;

  --theme-link: #BA5917;
  --theme-link-hover: #8C4312;
}

.theme-sand{
  --theme-bg: #E7DED6;   /* oat / flat white */
  --theme-fg: #190200;
  --theme-btn-bg: #190200;
  --theme-btn-fg: #ffffff;
  --theme-link: #BA5917;
  --theme-link-hover: #8C4312;
}



/* Dark themes (white text, white button, dark button text) */
.theme-espresso{
  --theme-bg: #563317;
  --theme-fg: #ffffff;
  --theme-btn-bg: #ffffff;
  --theme-btn-fg: #190200;

  --theme-link: #E3B067;
  --theme-link-hover: #F1C27D;
}

.theme-ink{
  --theme-bg: #190200;
  --theme-fg: #ffffff;
  --theme-btn-bg: #ffffff;
  --theme-btn-fg: #190200;

  --theme-link: #E3B067;
  --theme-link-hover: #F1C27D;
}



/* Presets */
.info-stack--brands{
  --info-media-w: 220px;
  --info-media-h-sm: 140px;
  --info-media-pad: 0px;
}

.info-stack--feature{
  --info-media-w: 320px;
  --info-media-h-sm: 180px;
  --info-media-pad: 40px;
}

.info-stack--tight{
  --info-media-w: 200px;
  --info-media-h-sm: 120px;
  --info-media-pad: 0px;
}


/* ==========================================================================
   2) Layout Wrappers
   -------------------------------------------------------------------------- */

.page-wrapper { padding: 0px; }

/* Padded inner wrapper for standard page content - not used for full width content */
.page-inner {  padding: 0 40px; }
@media (max-width: 1280px) { .page-inner { padding: 0 32px; } }
@media (max-width: 1024px) { .page-inner { padding: 0 24px; } }
@media (max-width: 768px)  { .page-inner { padding: 0 16px; } }
@media (max-width: 480px)  { .page-inner { padding: 0 12px; } }





/* ==========================================================================
   LAYOUT PRIMITIVES
   --------------------------------------------------------------------------
   Core structural building blocks reused across pages.

   ========================================================================== */

/* ==================================================
   Content padding utility (system)
   L/R follows .page-inner
   T/B mirrors section rhythm
   ================================================== */

.section-inner{  padding: 56px 40px; }

@media (max-width: 1280px){ .section-inner{ padding: 48px 32px; } }
@media (max-width: 1024px){ .section-inner{ padding: 44px 24px; } }
@media (max-width: 768px){  .section-inner{ padding: 36px 16px; } }
@media (max-width: 480px){  .section-inner{ padding: 28px 12px; } }


/* ==================================================
   Layout Sections (Primitive)
   ================================================== */

/* Reusable section wrapper that aligns with feature-grid.three */
.layout-section {
  margin: 40px 0;     /* matches the vertical rhythm you’re already using */
}

/* Desktop alignment behaviour to match .feature-grid */
@media (min-width: 1024px) {
  .layout-section {
    max-width: 1600px;
    padding-left: 20px;
    padding-right: 20px;
    margin-left: auto;
    margin-right: auto;
  }
}

/* ==================================================
   Layout Section: Full Bleed
   ================================================== */

@media (min-width: 1024px){
  .layout-section--bleed{
    max-width: none;
    padding-left: 0;
    padding-right: 0;
  }
}


/* ==================================================
   Layout Tile (Primitive)
   ================================================== */

/* Reusable tile base */
.layout-tile {
  width: 100%;
  max-width: none;
  border-radius: 5px;

  /* match site tile shadow */
  box-shadow: 0 10px 20px rgb(0 0 0 / 19%),
              0 6px 6px rgb(0 0 0 / 23%);
}

/* Flat surface: removes "tile" visuals but keeps layout */
.surface-flat{
  border-radius: 0;
  box-shadow: none;
}

/* Text alignment modifiers */
.layout-tile--text-left   { text-align: left; }
.layout-tile--text-center { text-align: center; }


/* ==================================================
   Lists (Primitive)
   ================================================== */

/* Reusable list style */
.layout-list{
  margin: 0 0 16px;
  padding-left: 20px;
  list-style: disc;

  font-size: var(--type-body);
  line-height: var(--lh-body);
  font-weight: var(--fw-body);
  color: var(--type-color);
}


/* Internal bullet spacing */
.layout-list li{
  margin: 0;
}

.layout-list li + li{
  margin-top: 8px;
}

/* If list is last element in its container, remove trailing gap */
.layout-list:last-child{
  margin-bottom: 0;
}

@media (max-width: 480px){
  .layout-list li + li{ margin-top: 6px; }
  .layout-list:last-child{ margin-bottom: 0; }
}




/* ==================================================
   Layout Split (Primitive)
   Media + content with variable width/height and side control
   ================================================== */

.layout-split{
  --split-media-w: 360px;     /* default desktop media width */
  --split-media-h-sm: 200px;  /* default mobile media height */

  padding: 0;
  overflow: hidden;

  display: flex;
  flex-direction: column;    /* mobile first: stacked */
}

/* Media block (mobile) */
.layout-split__media{
  width: 100%;
  height: var(--split-media-h-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

/* Media image fills its box */
.layout-split__image{
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Content block */
.layout-split__content{
  min-width: 0;
}

/* ≥768: side-by-side */
@media (min-width: 768px){
  .layout-split{
    flex-direction: row;
    align-items: stretch;   /* critical: media stretches to match content height */
  }

  .layout-split__media{
    flex: 0 0 var(--split-media-w);
    width: var(--split-media-w);
    height: auto;           /* allow stretch with row height */
    align-self: stretch;
  }

  .layout-split__image{
    height: 100%;
  }
}

/* Side control */
@media (min-width: 768px){
  .layout-split--media-right{
    flex-direction: row-reverse;
  }
}

/* Optional: if you want the stacked media height to tighten at 480 */
@media (max-width: 480px){
  .layout-split{
    --split-media-h-sm: 160px;
  }
}




/* ==================================================
   Info Stack (Primitive)
   Intro + list of content items (optional hero, optional item media)
   ================================================== */

.info-stack__tile {
  padding: 0;
  overflow: hidden;
}

.info-stack__hero{
  width: 100%;
  height: var(--hero-h, 180px);
}

@media (max-width: 768px){
  .info-stack__hero{
    height: var(--hero-h-sm, 150px);
  }
}


.info-stack__hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.info-stack__intro {
  margin-top: 12px;
}

/* The list/grid of items */
.info-stack__grid {
  margin-top: 18px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}

/* Base item card */
.info-item {
  padding: 20px 32px;
  border-radius: 5px;
  background: rgb(255 255 255 / 35%);
  border: 1px solid rgb(0 0 0 / 8%);
}

@media (max-width: 1280px) { .info-item { padding: 18px 28px; } }
@media (max-width: 1024px) { .info-item { padding: 16px 24px; } }
@media (max-width: 768px)  { .info-item { padding: 14px 20px; } }
@media (max-width: 480px)  { .info-item { padding: 12px 16px; } }

.info-item__title {
  font-weight: 700;
  margin: 0 0 6px;
}

.info-item__body {
  margin: 0;
}

.info-item__body + .info-item__body {
  margin-top: 10px;
}

/* Links for the whole component */
.info-stack a {
  color: #BA5917;
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 2px;
}

.info-stack a:hover,
.info-stack a:focus {
  text-decoration-thickness: 3px;
}


/* ==================================================
   Info Item: Media Variant (Primitive)
   Uses info-stack modifier variables
   ================================================== */

.info-item--media {
  padding: 0;
  overflow: hidden;
  display: flex;
  align-items: stretch;
}

.info-item--media .info-item__media {
  flex: 0 0 var(--info-media-w);
  width: var(--info-media-w);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: var(--info-media-pad);
  box-sizing: border-box;
}

/* Fill behaviour (your choice B) */
.info-item--media .info-item__media-img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

/* Text panel */
.info-item--media .info-item__text {
  flex: 1 1 auto;
  min-width: 0;
  padding: 20px 40px;
}

/* ≤768: stack */
@media (max-width: 768px) {
  .info-item--media { flex-direction: column; }

  .info-item--media .info-item__media {
    flex-basis: var(--info-media-h-sm);
    width: 100%;
    height: var(--info-media-h-sm);
  }

  .info-item--media .info-item__text {
    padding: 14px 20px;
  }
}


/* ==================================================
   Info Stack: Hero Split Variant
   Left media column ≥768, strip ≤768
   ================================================== */

.info-stack--hero-split .info-stack__tile{
  display: flex;
  flex-direction: column;  
  align-items: stretch;
  overflow: hidden;
  padding: 0;
}

/* Default (≤767): strip hero on top */
.info-stack--hero-split .info-stack__hero{
  width: 100%;
  height: var(--hero-h-sm, 150px);
  flex: 0 0 auto;
}

.info-stack--hero-split .info-stack__hero-img{
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* ≥768: hero becomes left column */
@media (min-width: 768px){
  .info-stack--hero-split .info-stack__tile{
    flex-direction: row;
  }

  .info-stack--hero-split .info-stack__hero{
    width: var(--hero-w, 320px);
    flex: 0 0 var(--hero-w, 320px);
    height: auto;
    min-height: var(--hero-h, 180px);
  }

  .info-stack--hero-split .info-stack__hero-img{
    height: 100%;
  }

  .info-stack--hero-split .section-inner{
    flex: 1 1 auto;
    min-width: 0;
  }
}


/* ==========================================================================
   REUSABLE SECTIONS / COMPONENTS
   --------------------------------------------------------------------------
   Higher-level drop-in blocks built on the primitives.
   ========================================================================== */


/* ==================================================
   Page Hero (Reusable)
   ================================================== */

.page-hero{
  width: 100vw;
  max-width: 100vw;
  position: relative;
}

/* Background image fills hero */
.page-hero__media{
  position: absolute;
  inset: 0;
  z-index: 0;
}

.page-hero__media img{
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center;
}

/* Content drives height */
.page-hero__content{
  position: relative;
  z-index: 1;

  display: flex;
  align-items: center;
  justify-content: center;

  padding: 24px;
  min-height: 550px;
}

/* Panel */
.page-hero__panel{
  width: 100%;
  max-width: 1200px;
  padding: 50px;
  background: rgba(50, 20, 0, var(--hero-panel-opacity, 0.5));
  border-radius: 5px;
  text-align: center;
}

/* Text */
.page-hero__title,
.page-hero__lead,
.page-hero__small{
  color: #fff;
  text-shadow: none;
}

.page-hero__title{
  margin: 0;
  line-height: 1.05;
}

.page-hero__lead{
  margin: 14px auto 0;
  max-width: 80ch;
}

/* Actions */
.page-hero__actions{
  margin-top: 28px;
  display: flex;
  justify-content: center;
  gap: 12px 40px;
  flex-wrap: wrap;
}

/* Button styling for the hero (works with your .buttons wrapper) */
.page-hero__actions.buttons button{
  background-color: #ffffff;
  color: #321400;
  border: 1px solid rgba(50, 20, 0, 0.25);
}

.page-hero__actions.buttons button:hover{
  background-color: #f5f5f5;
}

.page-hero__actions.buttons button:focus-visible{
  outline: 2px solid #321400;
  outline-offset: 2px;
}

/* Optional small line */
.page-hero__small{
  margin: 14px 0 0;
  font-size: 14px;
}

/* Login link style */
.page-hero__login{
  color: #E3B067;
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 2px;
  font-weight: 600;
}

.page-hero__login:hover,
.page-hero__login:focus{
  text-decoration-thickness: 3px;
}


/* ==================================================
   Responsive behaviour (your system)
   ================================================== */



@media (max-width: 768px){
  .page-hero__content{ padding: 18px; min-height: 420px; }
  .page-hero__panel{ padding: 18px; }
}

@media (max-width: 480px){
  .page-hero__content{ min-height: 320px; }
  .page-hero__actions{
    flex-direction: column;
    align-items: center;
    gap: 12px;
  }
  .page-hero__actions.buttons button{
    width: 100%;
    max-width: 320px;
  }
  .page-hero__login{
    text-underline-offset: 2px;
    text-decoration-thickness: 1.5px;
  }
}


/* ==================================================
   Final CTA (Reusable component)
   ================================================== */

.final-cta{
  padding: 44px 0;
}

.final-cta__inner{
  max-width: 1600px;
  margin: 0 auto;
  padding: 0 20px;
  text-align: center;
}

.final-cta__text{
  margin: 0 auto 18px;
  max-width: 70ch;
}

.final-cta__actions{
  display: flex;
  justify-content: center;
  margin-top: 30px;
  margin-bottom: 40px;
  gap: 40px;
  flex-wrap: wrap;
}

.final-cta__small{
  margin: 0;
}

.final-cta__link{
  color: #BA5917;
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 2px;
}

.final-cta__link:hover,
.final-cta__link:focus{
  text-decoration-thickness: 3px;
}

/* Theme variants */
.final-cta--sand{ background: #E3B067; }
.final-cta--lightsand{ background: #eecfa3; }


/* Breakpoints (your system) */
@media (max-width: 1024px){
  .final-cta{ padding: 36px 0; }
}

@media (max-width: 480px){
  .final-cta{ padding: 28px 0; }
  .final-cta__actions{ gap: 16px; margin-bottom: 20px; }
}








/* ==========================================================================
   3) Header (2-row desktop header)
   Rows: top notice (35px), middle bar (100px)
   -------------------------------------------------------------------------- */
.site-header {
  width: 100%;
  font-family: 'Figtree', system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  position: relative;
  z-index: 20;
}

/* Shared row defaults */
.header-row { width: 100%; }

/* Top row */
.header-top {
  height: 35px;
  background: #e3b067;
  display: flex;
  align-items: center;
  justify-content: center;
}
.header-top p {
  margin: 0;
  color: #190200;
  font-weight: 400;
  font-size: 20px;
  line-height: 1.2;
  text-align: center;
}

/* Middle row (desktop default) */
.header-middle {
  height: 100px;
  background: #ffffff;
  display: grid;
  grid-template-columns: auto 1fr auto; /* logo | menu | icons */
  align-items: center;
  column-gap: 16px;
}

/* Logo */
/* Make the logo grid item fill the full row height, and center the image inside */
.header-logo {
  align-self: stretch;      /* fill the 100px track */
  display: flex;            /* so we can center the image vertically */
  align-items: center;
  padding: 0 20px;          /* keep only horizontal padding */
}
.header-logo img { display: block; }

/* Primary menu (desktop) */
.primary-menu {
  list-style: none;
  display: flex;
  flex-wrap: wrap;                 /* allows two rows if needed */
  justify-content: center;
  align-items: center;
  gap: 2px 25px;                   /* row gap 2px, column gap 15px */
  margin: 0;
  padding: 0;
  text-transform: uppercase;
  font-family: 'Figtree', system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  font-weight: 600;
  font-size: 18px;
  line-height: 1.2;
  color: #190200;
}
.primary-menu a {
  color: inherit;
  text-decoration: none;
  white-space: nowrap;
}

/* Icon group (right) */
.header-icons {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 20px 15px 20px 10px; /* top/right/bottom/left */
}
.icon { position: relative; display: inline-block; }
.icon img { display: block; }

/* Basket count overlay */
.basket-count {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  font-family: 'Figtree', system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  font-weight: 400;
  font-size: 16px;
  color: #563317;
  pointer-events: none;
}

/* === Search icons visibility/size ======================== */
/* Left search (the duplicate near the logo) is mobile-only by default */
.left-search { display: none; line-height: 0; }
.left-search img { display: block; height: 60px; width: auto; }

/* Right search (inside .header-icons) shows on desktop; normalize line-box */
.header-icons .icon--search { display: inline-block; line-height: 0; }
.header-icons .icon--search img { display: block; height: 60px; width: auto; }

/* =========================
   Mobile menu (panel + toggle)
   ========================= */
.mobile-menu-toggle { display: none; background: none; border: 0; padding: 0; }

.mobile-menu-panel {
  position: fixed;
  left: 0; right: 0;
  top: 135px; /* 35 notice + 100 header */
  background: #ffffff;
  border-top: 1px solid #eee;
  box-shadow: 0 10px 20px rgba(0,0,0,0.08);
  z-index: 1000;
  transform: translateY(-8px);
  opacity: 0;
  pointer-events: none;
  transition: transform 200ms ease, opacity 200ms ease;
}
.mobile-menu-panel.open {
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}
.mobile-menu-panel ul {
  list-style: none;
  margin: 0;
  padding: 8px 16px 12px;
  display: grid;
  gap: 6px;
}
.mobile-menu-panel a {
  display: block;
  padding: 12px 8px;
  text-decoration: none;
  color: #190200;
  font-family: 'Figtree', system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  font-weight: 400;
  font-size: 16px;
  text-transform: uppercase;
}
.mobile-menu-panel a:focus-visible {
  outline: 2px solid #e3b067;
  outline-offset: 2px;
}

/* Small laptops (≤1024px): menu size */
@media (max-width: 1024px) {
  .primary-menu { font-size: 16px; }
}


/* Desktop: keep your intended visual logo size */
@media (min-width: 769px) {
  .header-logo img {
    height: 80px;           /* visual size */
    width: auto;
    display: block;
  }
}


/* ≤768px: toggle + left search + centered logo + icons (right) */
@media (max-width: 768px) {
  /* Columns: [toggle] [left search] [logo] [icons] */
  .header-middle {
    grid-template-columns: auto auto 1fr auto;
    align-items: center;
    column-gap: 0;
    height: 80px;
  }

  .mobile-menu-toggle {
    display: block;
    padding-left: 5px;
    justify-self: start;
  }

  /* Show the LEFT search on mobile; hide the RIGHT one */
  .left-search {
    display: block;
    justify-self: start;
    padding-left: 5px;
  }
  .header-icons .icon--search { display: none; }

  .header-logo { justify-self: center; }
  .header-logo img { width: 128px; height: 64px; }

  .header-icons { justify-self: end; padding: 0 5px 0 0; column-gap: 0; }

  .primary-menu { display: none; }

  .mobile-menu-panel {
    position: absolute;    /* was fixed */
    top: 100%;             /* sit flush under header */
    left: 0;
    right: 0;
    transform: none;       /* avoid visual offset */
    opacity: 0;
    pointer-events: none;
  }
  .mobile-menu-panel.open {
    opacity: 1;
    pointer-events: auto;
  }

}

  /* smaller icons on very small phones */
  @media (max-width: 480px) {
    .mobile-menu-toggle img,
    .left-search img,
    .header-icons img {
      width: 44px;  /* 55px × 0.8 = 44px */
      height: 48px; /* 60px × 0.8 = 48px */
    }
   .header-logo img { width: 102px; height: 51px; } /* 128px × 0.8 = 102px, 64px x 0.8 = 51 */
      .header-middle { height: 70px;  }

  }



/* ==========================================================================
   4) Section 1 Full width hero carousel banner
   -------------------------------------------------------------------------- */
/* Hero Rotator */
.hero-rotator {
  position: relative;
  width: 100%;
  overflow: hidden;
  margin-top: -1px;
}

.hero-track { position: relative;  aspect-ratio: 1920 / 550; }
.hero-slide.is-active picture, .hero-slide.is-active img { height: 100%; object-fit: cover; }

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 600ms ease;
  pointer-events: none; /* only active slide is clickable */
  display: block;
}

.hero-slide.is-active {
  opacity: 1;
  pointer-events: auto;
  position: relative; /* keep the active one in normal flow for height */
}

.hero-slide picture,
.hero-slide img {
  display: block;
  width: 100%;
  height: auto;
}

.hero-controls {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  pointer-events: none; /* let buttons be the only interactive parts */
  padding: 0 12px;
}

.hero-btn {
  pointer-events: auto;
  border: 0;
  background: rgba(0,0,0,0.25);
  color: #fff;
  width: 44px;
  height: 44px;
  border-radius: 999px;
  font-size: 24px;
  line-height: 44px;
  cursor: pointer;
}

.hero-btn:focus-visible { outline: 2px solid #e3b067; outline-offset: 2px; }

/* Dots */
.hero-dots {
  position: absolute;
  left: 50%;
  bottom: 12px;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
}

.hero-dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  border: 0;
  background: rgba(0,0,0,0.35);
  cursor: pointer;
}
.hero-dot.is-active { background: #ffffff; }
.hero-dot:focus-visible { outline: 2px solid #ffffff; outline-offset: 2px; }

@media (max-width: 768px) {
  .hero-btn { width: 40px; height: 40px; font-size: 22px; }
}
@media (prefers-reduced-motion: reduce) {
  .hero-slide { transition: none; }
}



/* =====================================================
   Promo strip (below hero-rotator)
   ===================================================== */
/* Promo strip */
.promo-strip{ background:#321400; color:#fff; min-height:50px; position:relative; display:flex; align-items:center; }
.promo-inner{ width:100%; min-height:50px; height:100%; display:flex; align-items:center; justify-content:center; gap:80px; white-space:nowrap; padding:0 20px; }
.promo-inner.type-body{ margin:0; }

.promo-link{ color:#fff; text-decoration:none; }
.promo-link:hover{ text-decoration:underline; }

/* Controls (hidden by default) */
.promo-controls{ display:none; position:absolute; inset:0; pointer-events:none; }
.promo-btn{ pointer-events:auto; position:absolute; top:50%; transform:translateY(-50%); height:100%; min-width:40px; border:0; background:transparent; color:#fff; font-size:20px; line-height:1; cursor:pointer; }
.promo-prev{ left:0; } .promo-next{ right:0; }

/* Carousel mode */
.promo-strip.is-carousel .promo-controls{ display:block; }
.promo-strip.is-carousel .promo-inner{ justify-content:center; gap:0; padding:0 48px; }
.promo-strip.is-carousel .promo-link{ display:none; }
.promo-strip.is-carousel .promo-link.is-active{ display:inline; }
.promo-strip.is-carousel .promo-link:first-child{ display:inline; } /* fallback if JS fails */




/* =====================================================
   Section Intro (Reusable positioning / lead-in block)
   ===================================================== */

.section-intro{ padding:40px 40px 0px 40px; }
.section-intro__inner{ max-width:1100px; margin:0 auto; text-align:center; }
.section-intro__text{ margin:0; } /* overrides type-body bottom margin for a tight single paragraph */

@media (max-width:1024px){ .section-intro{ padding:40px 20px 0px 20px; } }
@media (max-width:768px){  .section-intro{ padding:40px 20px 0px 20px; } }
@media (max-width:480px){  .section-intro{ padding:40px 16px 0px 16px; } }




/* ==========================================================================
   5) Feature Grids - image with overlay with text and button
   -------------------------------------------------------------------------- */

/* === General feature grid rules ========================================= */
.feature-grid {
  display: grid;
  grid-template-columns: 1fr;  /* stacked by default */
  gap: 20px;                   /* consistent space between cards */
}

.feature-grid,
.feature-grid.two {
  margin-top: 40px;
  margin-bottom: 40px;
}

/* Make grid items fill tracks and look like cards */
.feature-grid > .container {
  height: 100%;
  margin: 0;              /* neutralize legacy centering */
  max-width: none;        /* allow full expansion in grid */
  border-radius: 5px;
  overflow: visible;
}

/* Overlay card (shared by 2-up and 3-up) */
.container.overlay-card {
  display: block;          /* simpler than the flex 2-column containers */
  padding: 0;              /* no inner padding so shadow hugs image */
  border-radius: 5px;      /* image itself has 5px corners */
  overflow: hidden;
}

.overlay-card .media {
  position: relative;
  aspect-ratio: 3 / 2;
  border-radius: 5px;
  overflow: hidden;
}
.overlay-card .media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Overlay scrim: full overlay, acts as a flex container */
.overlay-card .scrim {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  transform: none;
  border-radius: 5px;
  display: flex;
  padding: 0;
   background: linear-gradient(
    to bottom,
    rgba(25, 2, 0, 0.7) 0%,
    rgba(25, 2, 0, 0.5) 30%,
    rgba(25, 2, 0, 0.3) 40%,
    rgba(25, 2, 0, 0.0) 56%
  );
}

/* Fade out scrim overlay on hover */
.overlay-card:hover .scrim {
   background: linear-gradient(
    to bottom,
    rgba(25, 2, 0, 0.7) 0%,
    rgba(25, 2, 0, 0.5) 11%,
    rgba(25, 2, 0, 0.15) 28%,
    rgba(25, 2, 0, 0.0) 56%
  );
}


/* Inner stack: title at top, body in middle, buttons at bottom */
.overlay-card .scrim-inner {
  height: 100%;
  max-width: 90%;
  margin: 0 auto;

  display: flex;
  flex-direction: column;
  justify-content: space-between;  /* top + bottom pinned */
  align-items: center;
  text-align: center;

  padding-block: clamp(16px, 1.2em + 1vw, 32px);
  padding-inline: clamp(14px, 1.2vw, 24px);
}

/* Title + body (now driven by global typography tokens) */
.overlay-card .overlay-title,
.overlay-card .overlay-body{
  color:#fff;
  margin:0;
  text-shadow:
    0 1px 2px rgba(0,0,0,1),
    0 3px 6px rgba(0,0,0,0.9),
    0 0 12px rgba(0,0,0,0.8);
}

.overlay-card .overlay-title{ margin:0 0 12px; }
.overlay-card .overlay-body{ margin:0 0 24px; }



/* Button row pinned to bottom */
.overlay-card .buttons {
  margin-top: auto;          /* ← pushes it to the bottom of scrim-inner */
  justify-content: center;
}
.overlay-card .buttons button {
  background: #fff;
  color: #000;
}



/* === 2-up grid rules ===================================================== */

/* 2-up grid defaults to two columns on desktop/tablet */
.feature-grid.two {
  grid-template-columns: repeat(2, 1fr);
}

/* Ensure overlay-card shadows behave like other cards */
.feature-grid.two > .container.overlay-card {
  overflow: visible;   /* was hidden; lets shadow breathe consistently */
}


/* === 3-up grid rules ===================================================== */
/* Feature grid for 3 cards */
.feature-grid.three {
  display: grid;
  grid-template-columns: repeat(3, 1fr);  /* desktop: 3 columns */
  gap: 20px;
  margin-top: 40px;
  margin-bottom: 40px;
}

/* Square media variant used by 3-up cards */
.container.overlay-card.square { display: block; padding: 0; border-radius: 5px; overflow: hidden; }

.overlay-card.square .media {
  position: relative;
  aspect-ratio: 1 / 1;            /* default: square on desktop */
  border-radius: 5px;
  overflow: hidden;
}
.overlay-card.square .media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}


/* === Media queries for feature grids ==================================== */

@media (min-width: 1024px) {
  .feature-grid  {
    max-width: 1600px;
    padding-left: 20px;
    padding-right: 20px;
    margin-left: auto;
    margin-right: auto;
  }
  .feature-grid.two {
    max-width: 1600px;
    padding-left: 20px; 
    padding-right: 20px;
    margin-left: auto;
    margin-right: auto;
  }
}

/* Collapse both 3-up and 2-up to one column at ≤768px */
@media (max-width: 768px) {
  .feature-grid.three { grid-template-columns: 1fr; }
  .feature-grid.two   { grid-template-columns: 1fr; }

  .feature-grid .container.overlay-card .media,
  .feature-grid .container.overlay-card.square .media {
    position: relative;
    aspect-ratio: auto;
    height: auto;
    display: block;
  }

  .feature-grid .container.overlay-card .media img,
  .feature-grid .container.overlay-card.square .media img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
  }

  /* Scrim just wraps its content on mobile */
  .feature-grid .container.overlay-card .scrim {
    position: relative;
    left: 0;
    top: 0;
    width: 100%;
    height: auto;
    transform: none;
    border-radius: 5px;
  }

  /* scrim-inner now owns the min-height and flex layout */
  .feature-grid .container.overlay-card .scrim-inner {
    height: auto;          /* override the desktop 100% */
    min-height: 200px;     /* or 240/280 if you want taller cards */
  }
}



/* === Responsive scaling for feature grid titles ==================== */
/* Tablets (≤768px) */
@media (max-width: 768px) {
 .overlay-card .overlay-title { margin-bottom: 6px; }
}

/* Small phones (≤480px) */
@media (max-width: 480px) {
 .overlay-card .overlay-title { margin-bottom: 0px; }
  }




/* ==========================================================================
   Full Width Video 2 Column Roastery
   -------------------------------------------------------------------------- */

/* Roastery section */
.roastery{ background:#563317; color:#fff; }

.roastery-inner{
  display:grid;
  grid-template-columns:65% 35%;
  align-items:stretch;
  min-height:clamp(360px,28vw,540px);
}

.roastery-left{ position:relative; overflow:hidden; }

.roastery-video{
  position:absolute; inset:0;
  width:100%; height:100%;
  object-fit:cover;
}

.roastery-left::after{
  content:"";
  position:absolute; top:0; right:0; bottom:0;
  width:20%;
  background:linear-gradient(to right, rgba(86,51,23,0) 0%, #563317 100%);
  pointer-events:none;
}

.roastery-right{
  display:flex;
  flex-direction:column;
  justify-content:flex-start;
 align-items:flex-start;
  text-align:left;
  padding-block:clamp(16px,1.2em + 1vw,32px);
  padding-inline:20px;
  margin-right:24px;
}

/* Overrides because this is on a dark background */
.roastery .type-h2,
.roastery .type-body{ color:#fff; }

/* You likely want tighter spacing than the global type margins here */
.roastery-title{ margin:0 0 12px; }
.roastery-body{ margin:0 0 20px; }


/* CTA uses global buttons; just control placement */
.roastery-cta{ justify-content:flex-start; }

.roastery .buttons button{ background:#fff; color:#190200; }
.roastery .buttons button:hover{ background:#f5f5f5; }

/* ≤1280px layout tweak */
@media (max-width:1280px){
  .roastery-inner{ grid-template-columns:50% 50%; }
}

/* ≤768px stack */
@media (max-width:768px){
  .roastery-inner{ grid-template-columns:1fr; }

  .roastery-right{
    text-align:center;
    align-items:center;
   margin-right:0px;
  }

  .roastery-cta{ justify-content:center; }

  .roastery-video{
    position:static;
    width:100%;
    aspect-ratio:16 / 9;
    height:auto;
  }

  .roastery-left::after{
    background:linear-gradient(to bottom, rgba(86,51,23,0) 0%, #563317 100%);
    width:100%;
    height:20%;
    top:auto; bottom:0;
  }
}





/* ==========================================================================
   6) Six-pack Feature Block (2 rows of 3)
   -------------------------------------------------------------------------- */

.six-pack-feature{ margin:40px 0; }
.six-pack-row{ display:grid; gap:20px; align-items:stretch; }
.six-pack-row--top,.six-pack-row--bottom{ grid-template-columns:repeat(4,1fr); }
.six-pack-row--top{ margin-bottom:20px; }

/* ===== Small cards (25%) ============================================== */

.six-pack-card--small{
  background:#fff; border-radius:5px; overflow:hidden;
  display:flex; flex-direction:column; height:100%;
  box-shadow:0 10px 20px rgb(0 0 0 / 19%),0 6px 6px rgb(0 0 0 / 23%);
}

/* heading bar */
.six-pack-small-heading{
  height:110px; background:#321400;
  display:flex; align-items:center; justify-content:center;
}
.six-pack-small-title{ color:#fff; text-align:center; padding:0 20px;margin:0;line-height:0.9; }

/* body layout */
.six-pack-small-body{
  flex:1 1 auto;
  padding:15px 15px clamp(16px,1.2em + 1vw,32px);
  display:flex; flex-direction:column;
}

.six-pack-small-image{
  height:180px; margin-bottom:15px;
  display:flex; align-items:center; justify-content:center;
}
.six-pack-small-image img{ max-width:100%; max-height:100%; object-fit:contain; display:block; }

.six-pack-small-text{
  margin:0 0 15px; padding:0 10px; text-align:center;
  flex:1 1 auto;
}

/* buttons */
.six-pack-small-buttons{ display:flex; justify-content:center; }
.six-pack-card--small .six-pack-small-buttons button{ background:#321400; }

/* ===== Wide cards (50%) =============================================== */

.six-pack-wide-card{ height:100%; grid-column:span 2; }
.six-pack-wide-card .media{ height:100%; }

/* Keep wide cards comfortably tall on desktop/tablet */
@media (min-width:768px){
  .six-pack-wide-card .media{ aspect-ratio:auto; min-height:260px; }
}

/* Match feature-grid container width from 1024px up */
@media (min-width:1024px){
  .six-pack-feature{ max-width:1600px; padding:0 20px; margin-left:auto; margin-right:auto; }
}

/* ≤1280px — turn into a simple 2-col grid of 6 tiles */
@media (max-width:1280px){
  .six-pack-feature{ display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:20px; }
  .six-pack-row{ display:contents; }
  .six-pack-wide-card{ grid-column:auto; }
}

/* ≤768px — stack all six tiles full width */
@media (max-width:768px){
  .six-pack-feature{ display:grid; grid-template-columns:1fr; gap:20px; padding:0; max-width:100%; }
  .six-pack-row{ display:contents; }
  .six-pack-card,.six-pack-wide-card{ width:100%; max-width:100%; grid-column:auto !important; margin:0; height:auto; }

  /* Match overlay-card mobile behaviour used in feature grids */
  .six-pack-feature .container.overlay-card .media{ position:relative; aspect-ratio:auto; height:auto; display:block; }
  .six-pack-feature .container.overlay-card .media img{ position:absolute; inset:0; width:100%; height:100%; object-fit:cover; display:block; }
  .six-pack-feature .container.overlay-card .scrim{ position:relative; inset:auto; width:100%; height:auto; transform:none; border-radius:5px; }
  .six-pack-feature .container.overlay-card .scrim-inner{ height:auto; min-height:200px; }
}








/* ==========================================================
   Coffee Shop Start-Up & Supply – Carousel Section
   ========================================================== */

.startup-service-section {
  background: #d6d0cc;  /* requested background colour */
  padding: 0 40px;
}

.startup-service-inner {
  max-width: 1600px;
  margin: 0 auto;
  padding: clamp(40px, 5vw, 80px) 0px;
}

/* === Start-Up Section Title === */
.start-up-header {
  text-align: center;
  margin-top: 20px;
  margin-bottom: 40px;
  padding: 0 20px;
}


/* Text block under carousel */
.startup-carousel-text {
  max-width: 820px;
  margin: 32px auto 24px;
  padding: 0 20px;
  text-align: center;
}

/* =========================== */
/* Start-Up Carousel CTA Button */
/* =========================== */

.startup-carousel-cta{
  display:flex;
  justify-content:center;
  flex-wrap:wrap;
  gap:12px 40px;
  margin:30px 0 40px;
}

.startup-carousel-cta.buttons button{ background:#321400; }
.startup-carousel-cta.buttons button:hover{ background:#4a1c00; }



/* ==========================================================
   Carousel styling specific to the Start-Up cards
   ========================================================== */

/* Use existing feature-carousel frame: max-width:1600 + side padding + nav placement */

  .feature-carousel.feature-carousel--startup { padding: 0px; }

/* Show 5 cards at desktop within the 1600px width */
.feature-carousel--startup .fc-track {
  align-items: stretch;
  gap: 0px;
  overflow: visible;
}

.feature-carousel--startup .fc-item {
     position: relative;
     z-index: 1;
     scroll-snap-align: start;
     scroll-snap-stop: always;
  flex: 0 0 calc(100% / 5); /* 5 visible with no gaps as fc-tem has padding to allow shadow */
  display: flex;
  overflow: visible;
  padding-left: 20px;
  padding-right: 20px;
  border-radius: 5px;
}

/* nudge nav buttons to outisde edges */
.feature-carousel--startup .fc-prev { left: -24px; }
.feature-carousel--startup .fc-next { right: -24px; }

/* Card design: rounded, shadowed panel */
.startup-card {
  display: flex;
  flex-direction: column;
  width: 100%;
  background: #ffffff;
  border-radius: 5px;
  overflow: hidden;
  box-shadow: 0 10px 20px rgb(0 0 0 / 19%), 0 6px 6px rgb(0 0 0 / 23%);

  
}

/* Square image area */
.startup-card-image {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  overflow: hidden;
}

.startup-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Title strip */
.startup-card-title-strip .type-h3{
  font-size:var(--type-h3-ui);
  color:#fff;
  margin:0;    
  text-align:center;
}

.startup-card-title-strip { background:#321400; height:100px; display:flex; align-items:center; justify-content:center; padding:0 10px; text-align:center; }

.startup-carousel-cta{
  display:flex;
  justify-content:center;
  flex-wrap:wrap;
  gap:12px 40px;            /* row gap | column gap */
  margin:30px 0 40px;
}


/* ===== Responsive Padding for Start-Up Carousel section container ===== */

@media (max-width: 1280px) { .startup-service-section {padding: 0 32px;} }
@media (max-width: 1024px) { .startup-service-section {padding: 0 0px;} }
@media (max-width: 768px)  { .startup-service-section {padding: 0 0px;} }
@media (max-width: 480px)  { .startup-service-section {padding: 0 0px;} }


/* ===== Responsive Card Widths and spacing for Start-Up Carousel ===== */

/* ≤1280px — 4 cards (3 gaps of 20px) */
@media (max-width: 1280px) {
  .feature-carousel--startup .fc-item { flex: 0 0 calc(100%  / 4); }
  .startup-service-inner { padding: clamp(40px, 5vw, 80px) 0px; }
  .feature-carousel--startup .fc-prev { left: -24px; }
  .feature-carousel--startup .fc-next { right: -24px; }
}

/* ≤1024px — 3 cards (2 gaps) */
@media (max-width: 1024px) {
  .feature-carousel.feature-carousel--startup { padding: 0 4px; }
  .feature-carousel--startup .fc-item { flex: 0 0 calc(100% / 3); }
  .startup-service-inner { padding: clamp(40px, 5vw, 80px) 0px; }
  .feature-carousel--startup .fc-prev { left: 12px;   outline: 2px solid #fff;  outline-offset: 2px;}
  .feature-carousel--startup .fc-next { right: 12px; outline: 2px solid #fff;  outline-offset: 2px;}
}

/* ≤768px — 2 cards (1 gap) */
@media (max-width: 768px) {
  .feature-carousel.feature-carousel--startup { padding: 0; margin: 0 -4px; }
  .feature-carousel--startup .fc-item { flex: 0 0 calc(100% / 2); }
  .startup-service-inner { padding: clamp(40px, 5vw, 80px) 0px; }
}

/* ≤480px — 1 card */
@media (max-width: 480px) {
  .feature-carousel.feature-carousel--startup { padding: 0; margin: 0 -8px; }
  .feature-carousel--startup .fc-item { flex: 0 0 100%; }
  .startup-service-inner { padding: clamp(40px, 5vw, 80px) 0px; }
}

/* ===== Responsive Title Strip + Text + Image Ratio + summary text + CTA buttons ===== */

/* Base (desktop/Large) */
.feature-carousel--startup .startup-card-title-strip { height: 100px; }
.startup-service-section .btn-startup-carousel,
.trade-final-cta .btn-startup-carousel { font-size: 18px; padding: 12px 30px; }


/* Base (desktop/Smaller) */
@media (max-width: 1280px) {
.startup-service-section .btn-startup-carousel,
.trade-final-cta .btn-startup-carousel { font-size: 17px; }
}


/* ≤1024px — Slight reduction for laptops/tablets */
@media (max-width: 1024px) {
  .feature-carousel--startup .startup-card-title-strip { height: 84px; }
.startup-service-section .btn-startup-carousel,
.trade-final-cta .btn-startup-carousel { font-size: 14px; padding: 10px 22px; }

}

/* ≤768px — Switch image ratio & scale typography */
@media (max-width: 768px) {
  /* Title strip shrink + readable text */
  .feature-carousel--startup .startup-card-title-strip { height: 72px; }
  .feature-carousel--startup .startup-card-image img { width: 100%; height: 100%; object-fit: cover; }
 .startup-service-section .btn-startup-carousel,
.trade-final-cta .btn-startup-carousel { font-size: 14px; padding: 8px 18px; }

}

/* ≤480px — Optimized for mobile scroll */
@media (max-width: 480px) {
  .feature-carousel--startup .startup-card-title-strip { height: 60px; }
  .feature-carousel--startup .startup-card-image { aspect-ratio: 3 / 2 !important; }
}













/* ==========================================================
   Partner Brands carousel – stacked 2-part card layout
   ========================================================== */
/* Base card primitives used by Partner Brands (and other grids)
   - left/right columns
   - icon overlay
   - bottom flourish
   - logo, content, buttons
   ========================================================== */

/* Column base sizing (side-by-side by default; overridden in brands carousel) */
.left-column,
.right-column {
  width: 50%;
  position: relative;
}

/* Icon overlay atop left image */
.left-column {
  position: relative;
}

.icon-overlay {
  position: absolute;
  top: 15px;
  left: 0;
  height: 80px;
  width: auto;
  max-width: none;
  display: block;
  z-index: 2;
  pointer-events: none;
}

/* Primary image fill (generic) */
.left-column .main-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Right panel (text + bg decorative image) – base */
.right-column {
  position: relative;    /* for absolutely-positioned .bottom-bg */
  background-color: #fcf5ed;
  padding: 40px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
}

/* Decorative bottom background image */
.bottom-bg {
  position: absolute;
  bottom: 0;
  right: 0;
  width: 100%;
  height: auto;
  z-index: 0;
  pointer-events: none;
  object-fit: cover;
  border-radius: 0 0 5px 5px;
}

/* Keep actual content above the bottom-bg */
.right-column > *:not(.bottom-bg) {
  position: relative;
  z-index: 1;
}

/* Content stacking inside right panel */
.top-content {
  display: flex;
  flex-direction: column;
}

/* Brand logos */
.logo {
  width: 100%;
  max-width: 320px;
  align-self: center;
  margin-bottom: 30px;
}

/* Rich text block */
.feature-carousel--brands .content{ text-align:justify; }
.feature-carousel--brands .content p{ margin:0 0 24px; } /* if you want the extra spacing */


/* Action buttons row */
.feature-carousel--brands .buttons{
  display:flex;
  flex-wrap:wrap;
  gap:12px 40px;            /* row gap | column gap (matches your CTA standard) */
  justify-content:center;
}




/* ==========================================================================
   1. Shared carousel primitives (Start-Up + Partner Brands)
   ========================================================================== */

/* 1.1 Carousel wrapper & viewport ---------------------------------------- */

.feature-carousel {
  position: relative;
  max-width: 1600px;
  margin: 0 auto 60px;
  padding: 0px;
}

/* Viewport with scroll snap behaviour */
.fc-viewport {
  overflow-x: auto;
  overflow-y: visible;
  -webkit-overflow-scrolling: touch;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  padding-bottom: 28px;   /* space for box-shadow plume under cards */
  padding-left: 0;
  padding-right: 0;
  margin-left: 0;
  margin-right: 0;
  scroll-padding-left: 0;
  scroll-padding-right: 0;
}

.fc-viewport::-webkit-scrollbar {
  display: none;
}

/* Track that holds all carousel items side by side */
.fc-track {
  display: flex;
  align-items: stretch;   /* equalize heights across visible cards */
  gap: 0px;
}




/* 1.3 Carousel navigation controls (prev/next buttons) ------------------- */

.fc-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  border: 0;
  background: rgba(0,0,0,0.4);
  color: #fff;
  width: 38px;
  height: 38px;
  border-radius: 999px;
  cursor: pointer;
  z-index: 20;
}

.fc-nav:focus {
  outline: 2px solid #e3b067;
  outline-offset: 2px;
}

/* 1.4 Pagination dots (step indicators under carousel) ------------------- */

.fc-dots {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  margin-top: 14px;
  position: relative;
  z-index: 0;
}

.fc-dot {
  width: 12px;
  height: 12px;
  border-radius: 999px;
  border: 2px solid #190200;   /* outline */
  background: transparent;     /* hollow by default */
  cursor: pointer;
  padding: 0;
}

.fc-dot.is-active {
  background: #190200;         /* filled when card is “active” */
}


/* 1.5 Overflow behaviour (shared) ---------------------------------------- */

/* Let card shadows breathe within the viewport */
.feature-carousel .fc-item,
.feature-carousel .fc-item > .container {
  overflow: visible;           /* stop clipping the box-shadow */
}

/* Ensure right column content isn’t clipped */
.feature-carousel .fc-item > .container .right-column {
  overflow: visible;
}



/* ==========================================================================
   2. Partner Brands card layout (stacked overlay card)
   ========================================================================== */

.feature-carousel.feature-carousel--brands {
  padding: 0px;
}

/* Carousel items: 3 → 2 → 1 layout ------ */
/* Base layout: 3 items visible on wide desktop */
.feature-carousel--brands .fc-item {
  position: relative;
  z-index: 1;
  scroll-snap-align: start;
  scroll-snap-stop: always;
  flex: 0 0 calc(100%  / 3); 
  display: flex;                         
  padding-left: 20px;
  padding-right: 20px;
}


/* Make each brands card a flex column that fills the fc-item height */
.feature-carousel--brands .fc-item > .container {
  display: flex;
  flex-direction: column;
  width: 100%;
  height: 100%;                /* fill stretched fc-item height */
  min-height: 800px;           /* desktop baseline card height */
  background: #ffffff;
  border-radius: 5px;
  overflow: hidden;
  box-shadow: 0 10px 20px rgb(0 0 0 / 19%), 0 6px 6px rgb(0 0 0 / 23%);
}

/* Columns expand full width in stacked layout (override 50% base) */
.feature-carousel--brands .fc-item > .container .left-column,
.feature-carousel--brands .fc-item > .container .right-column {
  width: 100%;
}

/* Top media block: fixed height (260px) on wide desktop */
.feature-carousel--brands .fc-item > .container .left-column {
  position: relative;
  flex: 0 0 260px;
  height: 260px;
  overflow: hidden;
  margin: 0;
  border-radius: 5px 5px 0 0;
}

/* Image fills & centers inside fixed-height block */
.feature-carousel--brands .fc-item > .container .left-column .main-image {
  width: 100%;
  height: 100%;
  object-fit: cover;        /* scale + crop */
  object-position: center;  /* center both ways */
  display: block;
}


/* Bottom content panel (text + logo + buttons + bottom-bg) */
.feature-carousel--brands .fc-item > .container .right-column {
  position: relative;
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;     /* stack from the top */
  background-color: #fcf5ed;       /* overridden per brand below if needed */
  padding: 40px;
  border-radius: 0 0 5px 5px;      /* bottom corners only */
  overflow: hidden;
}

/* CTA button row pinned to the bottom of the card */
.feature-carousel--brands .fc-item > .container .buttons {
  margin-top: auto;
  margin-bottom: 40px;
  justify-content: center;
  gap: 20px;
}

/* Default desktop positions: hang slightly outside card stack */
.feature-carousel--brands .fc-prev { left: -6px; }
.feature-carousel--brands .fc-next { right: -6px; }

/* ==========================================================================
   3. Partner Brands responsive tweaks (unified breakpoints)
   ========================================================================== */

/* === 1280px: 3→2 cards for brands, drop min-height, gentle scaling ===== */
@media (max-width: 1280px) {
  .feature-carousel--brands .fc-item { flex-basis: calc(50%); }
  .feature-carousel--brands .fc-item > .container { min-height: 0; }
  .feature-carousel--brands .fc-item > .container .left-column { flex: 0 0 240px; height: 240px; }
  .feature-carousel--brands .content { font-size: 17px; }
 .feature-carousel--brands .buttons { gap: 32px; }
}


/* === 1024px: medium laptops / landscape tablets ======================== */
@media (max-width: 1024px) {
  .feature-carousel--brands .fc-item { flex-basis: calc(50%); }
  .feature-carousel--brands .fc-item > .container .left-column { flex: 0 0 220px; height: 220px; }
  .feature-carousel--brands .logo { max-width: 280px; }
  .feature-carousel--brands .content { font-size: 16px; }
  .feature-carousel--brands .buttons { gap: 28px; }
  .feature-carousel--brands .fc-viewport { margin-left: -20px; margin-right: -20px; } /* so aligns with neighbouring elements above and below */
}

/* === 768px: 2→1 cards, tablet portrait / small laptops ================= */
@media (max-width: 768px) {
  .feature-carousel--brands .fc-item { flex-basis: 100%;  }
  .feature-carousel--brands .fc-item > .container { border-radius: 5px;  }
  .feature-carousel--brands .fc-item > .container .left-column { flex: 0 0 200px; height: 200px; }
  .feature-carousel--brands .right-column { border-radius: 0 0 5px 5px; padding: 32px; }
  .feature-carousel--brands .logo { max-width: 240px; }
  .feature-carousel--brands .content { font-size: 15px; }
  .feature-carousel--brands .buttons { gap: 24px; }
  .feature-carousel--brands .icon-overlay { top: 10px;  height: 72px; }
  .feature-carousel--brands .fc-prev { left:  6px; }
  .feature-carousel--brands .fc-next { right: 6px; }
  .feature-carousel.feature-carousel--brands {
  width: 100vw;
  left: 50%;
  right: 50%;
  margin-left: -50vw;
  margin-right: -50vw;
  max-width: 100vw;
  }
  .feature-carousel--brands .fc-viewport { margin-left: -4px; margin-right: -4px; } /* so aligns with neighbouring elements above and below */
}

/* === 480px: small phones =============================================== */
@media (max-width: 480px) {
  .feature-carousel--brands .fc-item > .container .left-column { flex: 0 0 180px;   height: 180px;  }
  .feature-carousel--brands .right-column { padding: 18px;  }
  .feature-carousel--brands .logo { max-width: 200px;    margin-bottom: 20px;  }
  .feature-carousel--brands .content { font-size: 14px;  }
  .feature-carousel--brands .buttons { gap: 20px;  }
  .feature-carousel--brands .icon-overlay { top: 8px;  height: 64px;  }
  .feature-carousel--brands .fc-viewport { margin-left: -8px; margin-right: -8px; } /* so aligns with neighbouring elements above and below */
}



/* ==========================================================================
   4. Brand theme overrides (panel bg + button colours)
   ========================================================================== */

/* Panel background colours per brand */
.container.coffee-masters .right-column        { background-color: #fcf5ed; }
.container.quarter-horse .right-column         { background-color: #c8d0be; }
.container.tea-masters .right-column           { background-color: #e8e8db; }
.container.indulgence-collection .right-column { background-color: #fbe9ec; }

/* Button colours per brand */
.container.coffee-masters .buttons button        { background-color: #563317; color: #ffffff; }
.container.quarter-horse .buttons button         { background-color: #17662f; color: #ffffff; }
.container.tea-masters .buttons button           { background-color: #6d7d27; color: #ffffff; }
.container.indulgence-collection .buttons button { background-color: #bd4259; color: #ffffff; }





/* ==========================================================================
   Newsletter Signup Section
   -------------------------------------------------------------------------- */

.newsletter{ background:#563317; color:#fff; }
.newsletter-inner{ display:grid; grid-template-columns:1fr 1fr; max-width:1600px; margin-inline:auto; min-height:300px; align-items:stretch; }
.newsletter-left{ position:relative; overflow:hidden; }
.newsletter-image{ width:100%; height:100%; object-fit:cover; }
.newsletter-right{ display:flex; flex-direction:column; justify-content:center; padding-block:clamp(16px,1.2em + 1vw,32px); padding-inline:20px; }

/* Dark background overrides */
.newsletter .type-h2,
.newsletter .type-body{ color:#fff; }

/* Optional tighter spacing than your global defaults */
.newsletter-title{ margin:0 0 12px; }
.newsletter-body{ margin:0 0 20px; }

/* Buttons: reuse global .buttons, just control layout + color */
.newsletter-buttons{ display:flex; gap:14px; justify-content:flex-start; }
.newsletter .buttons button{ background:#fff; color:#190200; }
.newsletter .buttons button:hover{ background:#f5f5f5; }

/* ==========================================================================
   Responsive breakpoints
   -------------------------------------------------------------------------- */

@media (max-width:1024px){ .newsletter-inner{ min-height:250px; } }

@media (max-width:768px){
  .newsletter-inner{ grid-template-columns:1fr; min-height:auto; }
  .newsletter-right{ text-align:center; align-items:center; }
  .newsletter-buttons{ justify-content:center; }
}








/* ==========================================================================
   Footer content from current coffee masters site
   ========================================================================== */

.cm-footer { background-color:#321400; color:#fff; font-family:"Figtree",system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif; padding:40px 20px 24px; }
.cm-footer__inner { max-width:1200px; margin:0 auto; }

/* Top row: Trustpilot + social icons */
.cm-footer__top { display:flex; flex-wrap:wrap; align-items:center; justify-content:space-between; gap:16px; padding-bottom:20px; border-bottom:1px solid rgba(255,255,255,.12); margin-bottom:24px; }
.cm-footer__trustpilot { font-weight:600; letter-spacing:.03em; text-transform:uppercase; font-size:13px; color:#fff; text-decoration:none; }
.cm-footer__trustpilot:hover, .cm-footer__trustpilot:focus-visible { color:#e3b067; }

/* Social icons row */
.cm-footer__social { display:flex; align-items:center; gap:10px; list-style:none; margin:0; padding:0; }
.cm-footer__social a { display:inline-flex; align-items:center; justify-content:center; width:32px; height:32px; border-radius:999px; border:1px solid rgba(255,255,255,.35); font-size:12px; color:#fff; text-decoration:none; }
.cm-footer__social a:hover, .cm-footer__social a:focus-visible { background-color:#e3b067; border-color:#e3b067; color:#190200; }

/* Main links grid */
.cm-footer__grid { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:24px; font-size:14px; text-align:center; }
.cm-footer__heading { font-size:14px; font-weight:600; text-transform:uppercase; letter-spacing:.08em; margin:0 0 12px; color:#fff; }
.cm-footer__links { list-style:none; margin:0; padding:0; }
.cm-footer__links li + li { margin-top:6px; }
.cm-footer__links a { color:rgba(255,255,255,.78); text-decoration:none; line-height:1.4; }
.cm-footer__links a:hover, .cm-footer__links a:focus-visible { color:#e3b067; }
.cm-footer__address { color:rgba(255,255,255,.78); line-height:1.5; }

/* Bottom strip */
.cm-footer__bottom { margin-top:24px; padding-top:16px; border-top:1px solid rgba(255,255,255,.12); text-align:center; }
.cm-footer__bottom p { margin:0; font-size:12px; color:rgba(255,255,255,.7); }

/* ===== Responsive behaviour (approximate to live site) ============ */

/* 2 columns on tablets */
@media (max-width:1024px) { .cm-footer__grid { grid-template-columns:repeat(2,minmax(0,1fr)); } }

/* 1 column + stacked top row on phones */
@media (max-width:600px) { .cm-footer { padding:28px 16px 20px; } .cm-footer__top { flex-direction:column; align-items:flex-start; } .cm-footer__grid { grid-template-columns:1fr; } }








