/* ============================================
   Coventry Coffee Co - Design System
   B2B Commercial Coffee Machine Supplier
   ============================================ */

/* --- Britti Sans (self-hosted) --- */
@font-face {
  font-family: 'Britti Sans';
  src: url('../fonts/BrittiSans-Light.woff2') format('woff2');
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Britti Sans';
  src: url('../fonts/BrittiSans-LightItalic.woff2') format('woff2');
  font-weight: 300;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: 'Britti Sans';
  src: url('../fonts/BrittiSans-Regular.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Britti Sans';
  src: url('../fonts/BrittiSans-RegularItalic.woff2') format('woff2');
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: 'Britti Sans';
  src: url('../fonts/BrittiSans-Semibold.woff2') format('woff2');
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Britti Sans';
  src: url('../fonts/BrittiSans-SemiboldItalic.woff2') format('woff2');
  font-weight: 600;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: 'Britti Sans';
  src: url('../fonts/BrittiSans-Bold.woff2') format('woff2');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Britti Sans';
  src: url('../fonts/BrittiSans-BoldItalic.woff2') format('woff2');
  font-weight: 700;
  font-style: italic;
  font-display: swap;
}

/* --- Custom Properties --- */
:root {
  --primary: #02B9E0;
  --primary-dark: #029BBD;
  --primary-light: #E6F9FD;
  --secondary: #050E2C;
  --secondary-light: #0A1A45;
  --white: #FFFFFF;
  --off-white: #F8F9FA;
  --grey-100: #F1F3F5;
  --grey-200: #E9ECEF;
  --grey-300: #DEE2E6;
  --grey-400: #CED4DA;
  --grey-500: #ADB5BD;
  --grey-600: #868E96;
  --grey-700: #495057;
  --grey-800: #343A40;
  --grey-900: #212529;
  --dark: #1A1A1A;
  --success: #2ECC71;
  --error: #E74C3C;

  /* Warm coffee accents */
  --warm-100: #FFF8F0;
  --warm-200: #FAEBD7;
  --warm-300: #D4A574;
  --warm-400: #A0724A;
  --warm-500: #6F4E37;
  --coffee-dark: #3C2415;
  --coffee-cream: #F5E6D3;

  --font-heading: 'Britti Sans', sans-serif;
  --font-body: 'Britti Sans', sans-serif;

  --fs-xs: 0.75rem;
  --fs-sm: 0.875rem;
  --fs-base: 1rem;
  --fs-md: 1.125rem;
  --fs-lg: 1.25rem;
  --fs-xl: 1.5rem;
  --fs-2xl: 2rem;
  --fs-3xl: 2.5rem;
  --fs-4xl: 3rem;
  --fs-5xl: 3.5rem;

  --fw-light: 300;
  --fw-regular: 400;
  --fw-medium: 500;
  --fw-semibold: 600;
  --fw-bold: 700;

  --lh-tight: 1.2;
  --lh-normal: 1.5;
  --lh-relaxed: 1.7;

  --max-width: 1200px;
  --max-width-narrow: 800px;
  --section-padding: 100px 24px;
  --section-padding-sm: 60px 24px;
  --card-radius: 12px;
  --btn-radius: 8px;
  --radius-sm: 6px;
  --radius-lg: 16px;

  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.08);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 8px 30px rgba(0, 0, 0, 0.12);
  --shadow-xl: 0 20px 60px rgba(0, 0, 0, 0.15);

  --transition: 0.3s ease;
  --transition-fast: 0.15s ease;

  --bg-alt: #F5F7FA;
  --border: #E2E8F0;
  --text-light: #94A3B8;
}

/* --- Reset --- */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

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

body {
  font-family: var(--font-body);
  font-size: var(--fs-base);
  font-weight: var(--fw-regular);
  line-height: var(--lh-normal);
  color: var(--grey-800);
  background-color: var(--white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

a {
  text-decoration: none;
  color: inherit;
  transition: color var(--transition-fast);
}

ul, ol {
  list-style: none;
}

/* Opt-in bulleted list for content sections */
.bullet-list {
  list-style: disc;
  padding-left: 1.25rem;
  margin: 1rem 0;
}

.bullet-list li {
  margin-bottom: 0.5rem;
  color: var(--grey-700);
  line-height: 1.6;
}

.bullet-list li::marker {
  color: var(--primary);
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

input, textarea, select {
  font-family: inherit;
  font-size: inherit;
}

/* --- Typography --- */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  line-height: var(--lh-tight);
  color: var(--secondary);
  font-weight: 700;
}

h1 {
  font-size: var(--fs-4xl);
  letter-spacing: -0.02em;
}

h2 {
  font-size: var(--fs-3xl);
  letter-spacing: -0.01em;
}

h3 {
  font-size: var(--fs-2xl);
}

h4 {
  font-size: var(--fs-xl);
}

h5 {
  font-size: var(--fs-lg);
}

h6 {
  font-size: var(--fs-md);
}

p {
  margin-bottom: 1rem;
  line-height: var(--lh-relaxed);
}

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

.text-primary { color: var(--primary); }

.label {
  font-family: var(--font-body);
  font-size: var(--fs-sm);
  font-weight: var(--fw-semibold);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--primary);
}

.lead {
  font-size: var(--fs-lg);
  line-height: var(--lh-relaxed);
  color: var(--grey-700);
}

/* --- Layout --- */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

.container--narrow {
  max-width: var(--max-width-narrow);
}

.section {
  padding: var(--section-padding);
}

.section--grey {
  background-color: var(--off-white);
}

.section--dark {
  background-color: var(--secondary);
  color: var(--white);
}

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

/* Cards inside dark sections keep their own text colors */
.section--dark .card .card__title {
  color: var(--secondary);
}
.section--dark .card .card__text {
  color: var(--grey-700);
}

.section--dark .section-header p {
  color: var(--grey-400);
}

.section-header {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 60px;
}

.section-header .label {
  margin-bottom: 16px;
  display: block;
}

.section-header h2 {
  margin-bottom: 20px;
}

.section-header p {
  color: var(--grey-600);
  font-size: var(--fs-md);
}

/* --- Grid --- */
.grid {
  display: grid;
  gap: 32px;
}

.grid--2 {
  grid-template-columns: repeat(2, 1fr);
}

.grid--3 {
  grid-template-columns: repeat(3, 1fr);
}

.grid--4 {
  grid-template-columns: repeat(4, 1fr);
}

.grid--2-1 {
  grid-template-columns: 2fr 1fr;
}

.grid--1-2 {
  grid-template-columns: 1fr 2fr;
}

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 32px;
  font-family: var(--font-body);
  font-size: var(--fs-base);
  font-weight: var(--fw-semibold);
  border-radius: var(--btn-radius);
  transition: all var(--transition);
  cursor: pointer;
  border: 2px solid transparent;
  line-height: 1;
}

.btn--primary {
  background-color: var(--primary);
  color: var(--white);
  border-color: var(--primary);
}

.btn--primary:hover {
  background-color: var(--primary-dark);
  border-color: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn--secondary {
  background-color: var(--secondary);
  color: var(--white);
  border-color: var(--secondary);
}

.btn--secondary:hover {
  background-color: var(--secondary-light);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn--outline {
  background-color: transparent;
  color: var(--secondary);
  border-color: var(--secondary);
}

.btn--outline:hover {
  background-color: var(--secondary);
  color: var(--white);
  transform: translateY(-2px);
}

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

.btn--outline-white:hover {
  background-color: var(--white);
  color: var(--secondary);
  transform: translateY(-2px);
}

.btn--white {
  background-color: var(--white);
  color: var(--secondary);
  border-color: var(--white);
}

.btn--white:hover {
  background-color: var(--off-white);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn--lg {
  padding: 18px 40px;
  font-size: var(--fs-md);
}

.btn--sm {
  padding: 10px 20px;
  font-size: var(--fs-sm);
}

.btn-group {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.btn svg,
.btn .arrow {
  width: 18px;
  height: 18px;
  transition: transform var(--transition-fast);
}

.btn:hover svg,
.btn:hover .arrow {
  transform: translateX(4px);
}

.btn:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}

a:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}

/* --- Cards --- */
.card {
  display: flex;
  flex-direction: column;
  background: var(--white);
  border-radius: var(--card-radius);
  overflow: hidden;
  transition: all var(--transition);
  box-shadow: var(--shadow-sm);
  border: 1px solid transparent;
}

.card__body {
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.card__body .card__link {
  margin-top: auto;
  padding-top: 16px;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--primary);
}

/* Featured variant, permanent cyan top accent for product/plan cards */
.card--featured {
  border-top: 4px solid var(--primary);
}

/* Frosted glass variant */
.card--glass {
  background: rgba(255, 255, 255, 0.55);
  backdrop-filter: blur(18px) saturate(140%);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  border: 1px solid rgba(2, 185, 224, 0.18);
  box-shadow: 0 8px 32px rgba(2, 155, 189, 0.10), inset 0 1px 0 rgba(255, 255, 255, 0.6);
}

.card--glass:hover {
  background: rgba(255, 255, 255, 0.65);
  border-color: rgba(2, 185, 224, 0.35);
  box-shadow: 0 12px 40px rgba(2, 155, 189, 0.16), inset 0 1px 0 rgba(255, 255, 255, 0.7);
}

/* Section backdrop so the glass effect has something to refract */
.section--glass-bg {
  position: relative;
  background: linear-gradient(135deg, #f4fbfd 0%, #ffffff 50%, #eaf7fc 100%);
  overflow: hidden;
}

.section--glass-bg::before,
.section--glass-bg::after {
  content: '';
  position: absolute;
  width: 420px;
  height: 420px;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.45;
  pointer-events: none;
  z-index: 0;
}

.section--glass-bg::before {
  background: radial-gradient(circle, rgba(2, 185, 224, 0.35), transparent 70%);
  top: -120px;
  left: -120px;
}

.section--glass-bg::after {
  background: radial-gradient(circle, rgba(2, 185, 224, 0.28), transparent 70%);
  bottom: -140px;
  right: -140px;
}

.section--glass-bg > .container {
  position: relative;
  z-index: 1;
}

/* Dark-background frosted glass card */
.card--glass-dark {
  position: relative;
  /* Vertical gradient, lit from above, deeper at the base */
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.10) 0%,
    rgba(255, 255, 255, 0.05) 40%,
    rgba(2, 185, 224, 0.04) 100%
  );
  backdrop-filter: blur(20px) saturate(140%);
  -webkit-backdrop-filter: blur(20px) saturate(140%);
  /* Transparent border so the gradient border pseudo shows through */
  border: 1px solid transparent;
  border-radius: var(--card-radius);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.14) inset,
    0 -1px 0 rgba(0, 0, 0, 0.3) inset,
    0 24px 60px -24px rgba(0, 0, 0, 0.7);
  overflow: hidden;
  transition: transform var(--transition), box-shadow var(--transition), background var(--transition);
}

/* Vertical gradient border, brighter at the top, fades by the bottom */
.card--glass-dark::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(
    180deg,
    rgba(2, 185, 224, 0.55) 0%,
    rgba(255, 255, 255, 0.12) 40%,
    rgba(255, 255, 255, 0.04) 100%
  );
  -webkit-mask:
    linear-gradient(#000 0 0) content-box,
    linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
          mask-composite: exclude;
  pointer-events: none;
  z-index: 2;
  transition: background var(--transition);
}

/* Broad top sheen, diffuse highlight catching the "sky" */
.card--glass-dark::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 55%;
  background: radial-gradient(
    ellipse 120% 100% at 50% 0%,
    rgba(2, 185, 224, 0.14),
    transparent 70%
  );
  pointer-events: none;
  opacity: 0.9;
  transition: opacity var(--transition);
}

.card--glass-dark .card__body {
  position: relative;
  z-index: 1;
}

.section--dark .card.card--glass-dark .card__title {
  color: var(--white);
}

.section--dark .card.card--glass-dark .card__text {
  color: rgba(255, 255, 255, 0.68);
}

.card--glass-dark .feature__icon {
  background: rgba(2, 185, 224, 0.12);
  border: 1px solid rgba(2, 185, 224, 0.25);
  box-shadow:
    0 0 0 4px rgba(2, 185, 224, 0.06),
    0 8px 24px -8px rgba(2, 185, 224, 0.4);
  color: var(--primary);
  transition: transform var(--transition), box-shadow var(--transition), background var(--transition);
}

.card--glass-dark:hover {
  transform: translateY(-6px);
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.14) 0%,
    rgba(255, 255, 255, 0.07) 40%,
    rgba(2, 185, 224, 0.08) 100%
  );
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.2) inset,
    0 -1px 0 rgba(0, 0, 0, 0.3) inset,
    0 36px 70px -24px rgba(0, 0, 0, 0.75),
    0 0 48px -12px rgba(2, 185, 224, 0.4);
}

.card--glass-dark:hover::before {
  background: linear-gradient(
    180deg,
    rgba(2, 185, 224, 0.85) 0%,
    rgba(255, 255, 255, 0.2) 40%,
    rgba(255, 255, 255, 0.06) 100%
  );
}

.card--glass-dark:hover::after {
  opacity: 1;
}

.card--glass-dark:hover .feature__icon {
  transform: scale(1.05);
  background: rgba(2, 185, 224, 0.18);
  box-shadow:
    0 0 0 4px rgba(2, 185, 224, 0.1),
    0 12px 32px -8px rgba(2, 185, 224, 0.55);
}

/* Subtle dotted grid backdrop for dark sections that use glass cards */
.section--dark-glow {
  position: relative;
  overflow: hidden;
}

.section--dark-glow::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 15% 20%, rgba(2, 185, 224, 0.12), transparent 45%),
    radial-gradient(circle at 85% 80%, rgba(2, 185, 224, 0.10), transparent 50%);
  pointer-events: none;
  z-index: 0;
}

.section--dark-glow > .container {
  position: relative;
  z-index: 1;
}

/* Glass variant for pricing cards (sits on section--glass-bg).
   Specificity boosted with .pricing-card.pricing-card--glass because the base
   .pricing-card rule is defined later in the file and would otherwise win. */
.pricing-card.pricing-card--glass {
  background: rgba(255, 255, 255, 0.55);
  backdrop-filter: blur(18px) saturate(140%);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  border: 1px solid rgba(2, 185, 224, 0.18);
  box-shadow: 0 8px 32px rgba(2, 155, 189, 0.10), inset 0 1px 0 rgba(255, 255, 255, 0.6);
}

.pricing-card.pricing-card--glass:hover {
  background: rgba(255, 255, 255, 0.68);
  border-color: rgba(2, 185, 224, 0.35);
  box-shadow: 0 14px 44px rgba(2, 155, 189, 0.18), inset 0 1px 0 rgba(255, 255, 255, 0.7);
  transform: translateY(-4px);
}

.pricing-card.pricing-card--glass.pricing-card--featured {
  background: rgba(255, 255, 255, 0.7);
  border-color: rgba(2, 185, 224, 0.45);
  box-shadow: 0 12px 40px rgba(2, 155, 189, 0.18), inset 0 1px 0 rgba(255, 255, 255, 0.75);
}

/* Dark-background glass variant for pricing cards.
   Note: .pricing-card--featured uses ::before for the "Most Popular" badge,
   so we rely on box-shadow rings rather than pseudo-elements for the border. */
.pricing-card.pricing-card--glass-dark {
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.10) 0%,
    rgba(255, 255, 255, 0.05) 40%,
    rgba(2, 185, 224, 0.04) 100%
  );
  backdrop-filter: blur(20px) saturate(140%);
  -webkit-backdrop-filter: blur(20px) saturate(140%);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow:
    0 0 0 1px rgba(2, 185, 224, 0.25) inset,
    0 1px 0 rgba(255, 255, 255, 0.18) inset,
    0 -1px 0 rgba(0, 0, 0, 0.3) inset,
    0 24px 60px -24px rgba(0, 0, 0, 0.7);
}

.pricing-card.pricing-card--glass-dark:hover {
  transform: translateY(-4px);
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.14) 0%,
    rgba(255, 255, 255, 0.07) 40%,
    rgba(2, 185, 224, 0.08) 100%
  );
  box-shadow:
    0 0 0 1px rgba(2, 185, 224, 0.45) inset,
    0 1px 0 rgba(255, 255, 255, 0.24) inset,
    0 -1px 0 rgba(0, 0, 0, 0.3) inset,
    0 36px 70px -24px rgba(0, 0, 0, 0.75),
    0 0 48px -12px rgba(2, 185, 224, 0.4);
}

.pricing-card.pricing-card--glass-dark .pricing-card__name {
  color: var(--white);
  position: relative;
  z-index: 1;
}

.pricing-card.pricing-card--glass-dark .pricing-card__desc {
  color: rgba(255, 255, 255, 0.6);
  position: relative;
  z-index: 1;
}

.pricing-card.pricing-card--glass-dark .pricing-card__price {
  color: var(--white);
  position: relative;
  z-index: 1;
}

.pricing-card.pricing-card--glass-dark .pricing-card__price .pricing-card__from,
.pricing-card.pricing-card--glass-dark .pricing-card__price span {
  color: rgba(255, 255, 255, 0.6);
}

.pricing-card.pricing-card--glass-dark .pricing-card__features {
  position: relative;
  z-index: 1;
}

.pricing-card.pricing-card--glass-dark .pricing-card__features li {
  color: rgba(255, 255, 255, 0.72);
}

.pricing-card.pricing-card--glass-dark .pricing-card__features li::before {
  background-color: rgba(2, 185, 224, 0.18);
  box-shadow: 0 0 0 1px rgba(2, 185, 224, 0.35);
}

.pricing-card.pricing-card--glass-dark > .btn {
  position: relative;
  z-index: 1;
}


/* Subheading used inside card bodies (e.g. "Available drinks:") */
.card__subheading {
  font-weight: var(--fw-semibold);
  color: var(--secondary);
  margin-bottom: 12px;
  font-size: var(--fs-sm);
}

.section--dark .card--glass-dark .card__subheading {
  color: rgba(255, 255, 255, 0.9);
}

/* Label chip readable on dark glass */
.section--dark .card--glass-dark .card__label {
  display: inline-block;
  padding: 5px 12px;
  background: rgba(2, 185, 224, 0.14);
  border: 1px solid rgba(2, 185, 224, 0.35);
  border-radius: 999px;
  color: var(--primary);
  margin-bottom: 16px;
}

/* Feature list colors inside dark-glass cards */
.section--dark .card--glass-dark .pricing-card__features li {
  color: rgba(255, 255, 255, 0.72);
}

.section--dark .card--glass-dark .pricing-card__features li::before {
  background-color: rgba(2, 185, 224, 0.18);
  box-shadow: 0 0 0 1px rgba(2, 185, 224, 0.35);
}

.card__image {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.card__body {
  padding: 28px;
}

.card__label {
  font-size: var(--fs-xs);
  font-weight: var(--fw-semibold);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--primary);
  margin-bottom: 12px;
  display: block;
}

.card__title {
  font-family: var(--font-heading);
  font-size: var(--fs-lg);
  color: var(--secondary);
  margin-bottom: 12px;
}

.card__text {
  color: var(--grey-600);
  font-size: var(--fs-sm);
  line-height: var(--lh-relaxed);
}

/* Product cards (supply page) */
.product-card {
  background: var(--white);
  border: 1px solid var(--grey-200);
  border-radius: var(--card-radius);
  overflow: hidden;
  transition: all var(--transition);
}

.product-card:hover {
  border-color: var(--primary);
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
}

.product-card__visual {
  height: 220px;
  overflow: hidden;
  position: relative;
}

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

.product-card__visual--product {
  background: var(--grey-100);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

.product-card__visual--product img {
  width: auto;
  max-width: 85%;
  height: 188px;
  object-fit: contain;
}

.product-card__body {
  padding: 28px 24px;
}

.product-card__body h3 {
  font-family: var(--font-heading);
  font-size: var(--fs-lg);
  color: var(--secondary);
  margin-bottom: 10px;
}

.product-card__body p {
  font-size: var(--fs-sm);
  color: var(--grey-600);
  line-height: var(--lh-relaxed);
}

/* Benefit card variant */
.card--benefit .card__body {
  padding: 48px 36px;
}

.card--benefit {
  border-top: 3px solid var(--primary);
}

.card__icon {
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--primary-light);
  color: var(--primary);
  border-radius: 12px;
  margin-bottom: 24px;
}

.card__link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 16px;
  font-weight: var(--fw-semibold);
  color: var(--primary);
  font-size: var(--fs-sm);
}

.card__link:hover {
  gap: 10px;
}

/* --- Header/Nav --- */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: var(--white);
  border-bottom: 1px solid var(--grey-200);
  transition: all var(--transition);
}

.header--scrolled {
  box-shadow: var(--shadow-md);
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
  height: 80px;
}

.header__logo img {
  height: 48px;
  width: auto;
}

.header__nav {
  display: flex;
  align-items: center;
  gap: 36px;
}

.header__nav a {
  font-size: var(--fs-sm);
  font-weight: var(--fw-medium);
  color: var(--grey-700);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  position: relative;
}

.header__nav a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--primary);
  transition: width var(--transition);
}

.header__nav a:hover {
  color: var(--primary);
}

.header__nav a:hover::after {
  width: 100%;
}

.header__nav a.active {
  color: var(--primary);
}

.header__nav a.active::after {
  width: 100%;
}

.header__nav a.header__login {
  color: var(--secondary);
  margin-left: 8px;
  padding: 8px 16px;
  border: 1.5px solid var(--grey-300);
  border-radius: 6px;
}

.header__nav a.header__login::after {
  display: none;
}

.header__nav a.header__login:hover {
  border-color: var(--primary);
  color: var(--primary);
}

.header__nav a.header__cta {
  color: var(--white);
  margin-left: 12px;
}

.header__nav a.header__cta::after {
  display: none;
}

.header__nav a.header__cta:hover {
  color: var(--white);
}

/* Dropdown menu under Machines nav item */
.header__nav-item--dropdown {
  position: relative;
  display: flex;
  align-items: center;
}

.header__nav-item--dropdown > a::before {
  content: '';
  display: inline-block;
  width: 7px;
  height: 7px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: rotate(45deg) translateY(-2px);
  margin-right: 8px;
  vertical-align: middle;
  opacity: 0.6;
  transition: transform var(--transition), opacity var(--transition);
}

.header__nav-item--dropdown:hover > a::before {
  transform: rotate(225deg) translateY(-2px);
  opacity: 1;
}

.header__dropdown {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translate(-50%, 8px);
  min-width: 240px;
  padding: 12px;
  margin-top: 14px;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(20px) saturate(150%);
  -webkit-backdrop-filter: blur(20px) saturate(150%);
  border: 1px solid rgba(2, 185, 224, 0.18);
  border-radius: 14px;
  box-shadow:
    0 20px 50px -15px rgba(5, 14, 44, 0.25),
    0 0 0 1px rgba(255, 255, 255, 0.5) inset;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity var(--transition), transform var(--transition), visibility var(--transition);
  z-index: 100;
}

.header__dropdown::before {
  content: '';
  position: absolute;
  top: -6px;
  left: 50%;
  transform: translateX(-50%) rotate(45deg);
  width: 12px;
  height: 12px;
  background: rgba(255, 255, 255, 0.85);
  border-left: 1px solid rgba(2, 185, 224, 0.18);
  border-top: 1px solid rgba(2, 185, 224, 0.18);
}

/* Invisible hover bridge so the dropdown doesn't close between link and menu */
.header__nav-item--dropdown::after {
  content: '';
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  height: 22px;
}

.header__nav-item--dropdown:hover .header__dropdown,
.header__nav-item--dropdown:focus-within .header__dropdown {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translate(-50%, 0);
}

.header__dropdown a {
  display: block;
  padding: 10px 14px;
  font-size: var(--fs-sm);
  font-weight: var(--fw-medium);
  color: var(--secondary) !important;
  text-transform: none;
  letter-spacing: 0;
  border-radius: 8px;
  transition: background var(--transition), color var(--transition);
}

.header__dropdown a::after {
  display: none;
}

.header__dropdown a:hover {
  background: rgba(2, 185, 224, 0.10);
  color: var(--primary) !important;
}

.header__hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  width: 44px;
  height: 44px;
  cursor: pointer;
  padding: 10px 8px;
  background: transparent;
  border: none;
  border-radius: 6px;
  -webkit-tap-highlight-color: rgba(2, 185, 224, 0.15);
}

.header__hamburger:hover,
.header__hamburger:focus-visible {
  background: rgba(2, 185, 224, 0.08);
}

.header__hamburger span {
  display: block;
  height: 3px;
  width: 100%;
  background: var(--secondary);
  border-radius: 2px;
  transition: all var(--transition);
}

/* Mobile Nav */
.mobile-nav {
  display: none;
  position: fixed;
  top: 80px;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--white);
  z-index: 999;
  padding: 40px 24px;
  overflow-y: auto;
}

.mobile-nav.is-open {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.mobile-nav a {
  display: block;
  padding: 16px 0;
  font-size: var(--fs-lg);
  font-weight: var(--fw-medium);
  color: var(--grey-800);
  border-bottom: 1px solid var(--grey-200);
}

.mobile-nav a:hover {
  color: var(--primary);
}

.mobile-nav .btn {
  margin-top: 24px;
  text-align: center;
  justify-content: center;
}

/* --- Hero --- */
.hero {
  padding: 76px 24px 20px;
  background: var(--off-white);
  position: relative;
  overflow: hidden;
  min-height: calc(100vh - 172px);
  display: flex;
  align-items: center;
}

.hero__inner {
  max-width: var(--max-width);
  margin: 0 auto;
  width: 100%;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.hero__label {
  display: inline-block;
  margin-bottom: 14px;
}

.hero h1 {
  margin-bottom: 14px;
  color: var(--secondary);
  font-size: clamp(2rem, 3.5vw, 2.625rem);
  line-height: 1.15;
}

.hero h1 span {
  color: var(--primary);
}

.hero__text {
  font-size: var(--fs-base);
  color: var(--grey-700);
  margin-bottom: 18px;
  line-height: var(--lh-relaxed);
}

.hero__image {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-xl);
  aspect-ratio: 3 / 2;
}

.hero__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* --- Stats Bar --- */
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  text-align: center;
  padding: 60px 0;
}

.stat__number {
  font-family: var(--font-heading);
  font-size: var(--fs-3xl);
  color: var(--primary);
  display: block;
  margin-bottom: 8px;
}

.stat__label {
  font-size: var(--fs-sm);
  color: var(--grey-600);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: var(--fw-medium);
}

/* --- Features/Services Grid --- */
.feature__icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--primary-light);
  border-radius: var(--card-radius);
  color: var(--primary);
}

.feature__icon svg {
  width: 32px;
  height: 32px;
}

/* --- Testimonial --- */
.testimonial {
  background: var(--off-white);
  border-radius: var(--card-radius);
  padding: 48px;
  position: relative;
}

.testimonial__quote {
  font-size: var(--fs-lg);
  font-style: italic;
  line-height: var(--lh-relaxed);
  color: var(--grey-800);
  margin-bottom: 24px;
}

.testimonial__quote::before {
  content: '\201C';
  font-size: 4rem;
  font-family: var(--font-heading);
  color: var(--primary);
  line-height: 0;
  position: absolute;
  top: 40px;
  left: 40px;
  opacity: 0.3;
}

.testimonial__author {
  font-weight: var(--fw-semibold);
  color: var(--secondary);
  margin: 0 0 4px;
}

.testimonial__role {
  font-size: var(--fs-sm);
  color: var(--grey-600);
  margin: 0;
}

/* Brand wrapper — used when a testimonial includes a logo (e.g. homepage) */
.testimonial__brand {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-top: 16px;
}

.testimonial__brand-text {
  text-align: left;
}

.testimonial__logo {
  height: 40px;
  width: auto;
  opacity: 0.7;
  flex-shrink: 0;
}

/* --- Problem Panel (Hospitality) --- */
.problem-panel {
  background: var(--secondary);
  padding: 80px 0;
}

.problem-panel__inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--section-padding);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: start;
}

.problem-panel__intro .label--on-dark {
  color: var(--primary);
}

.problem-panel__intro h2 {
  font-family: var(--font-heading);
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  color: var(--white);
  margin: 16px 0;
}

.problem-panel__intro p {
  color: var(--grey-400);
  font-size: var(--fs-base);
  line-height: var(--lh-relaxed);
}

.problem-panel__list {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.problem-panel__item {
  display: flex;
  gap: 20px;
  align-items: flex-start;
}

.problem-panel__num {
  font-family: var(--font-heading);
  font-size: var(--fs-lg);
  color: var(--primary);
  flex-shrink: 0;
  width: 32px;
}

.problem-panel__item strong {
  color: var(--white);
  font-size: var(--fs-base);
  display: block;
  margin-bottom: 4px;
}

.problem-panel__item p {
  color: var(--grey-400);
  font-size: var(--fs-sm);
  line-height: var(--lh-relaxed);
  margin: 0;
}

/* --- Step List (Hospitality) --- */
.step-list {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.step-list__item {
  display: flex;
  gap: 40px;
  align-items: flex-start;
  padding: 40px 0;
  border-bottom: 1px solid var(--grey-200);
}

.step-list__item:first-child {
  border-top: 1px solid var(--grey-200);
}

.step-list__num {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 4vw, 3rem);
  color: var(--primary);
  flex-shrink: 0;
  line-height: 1;
  width: 64px;
}

.step-list__content h3 {
  font-family: var(--font-heading);
  font-size: var(--fs-xl);
  color: var(--secondary);
  margin-bottom: 12px;
}

.step-list__content p {
  font-size: var(--fs-base);
  color: var(--grey-600);
  line-height: var(--lh-relaxed);
  max-width: 600px;
}

/* --- Service Panel (Homepage 24/7 Support) --- */
.service-panel {
  background: var(--secondary);
  padding: 100px 0;
  overflow: hidden;
}

.service-panel__inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 80px;
  align-items: center;
}

.service-panel__content h2 {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 3.5vw, 2.75rem);
  color: var(--white);
  margin: 16px 0 20px;
  line-height: 1.15;
}

.service-panel__lede {
  color: var(--grey-400);
  font-size: var(--fs-lg);
  line-height: var(--lh-relaxed);
  margin-bottom: 32px;
}

.service-panel__list {
  list-style: none;
  padding: 0;
  margin: 0 0 36px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.service-panel__list li {
  padding-left: 28px;
  position: relative;
}

.service-panel__list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 8px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--primary);
  box-shadow: 0 0 0 4px rgba(2, 185, 224, 0.18);
}

.service-panel__list li strong {
  display: block;
  color: var(--white);
  font-size: var(--fs-base);
  margin-bottom: 2px;
}

.service-panel__list li span {
  display: block;
  color: var(--grey-400);
  font-size: var(--fs-sm);
  line-height: var(--lh-relaxed);
}

/* --- Phone Mockup --- */
.service-panel__phone {
  display: flex;
  justify-content: center;
  align-items: center;
}

.phone {
  position: relative;
  width: 320px;
  height: 640px;
  background: #0a0a0a;
  border-radius: 48px;
  padding: 12px;
  box-shadow: 0 40px 80px -20px rgba(0, 0, 0, 0.6), inset 0 0 0 2px #1a1a1a;
  flex-shrink: 0;
}

.phone__notch {
  position: absolute;
  top: 18px;
  left: 50%;
  transform: translateX(-50%);
  width: 100px;
  height: 28px;
  background: #000;
  border-radius: 20px;
  z-index: 3;
}

.phone__screen {
  width: 100%;
  height: 100%;
  background: #ECE5DD;
  border-radius: 36px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  position: relative;
}

.phone__home {
  position: absolute;
  bottom: 6px;
  left: 50%;
  transform: translateX(-50%);
  width: 120px;
  height: 4px;
  background: #000;
  border-radius: 2px;
  opacity: 0.4;
  z-index: 3;
}

.phone__statusbar {
  height: 44px;
  padding: 14px 24px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #075E54;
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  flex-shrink: 0;
}

.phone__time {
  font-variant-numeric: tabular-nums;
  padding-left: 8px;
}

.phone__icons {
  display: flex;
  align-items: center;
  gap: 6px;
  color: #fff;
  padding-right: 8px;
}

.phone__battery {
  display: inline-block;
  width: 22px;
  height: 11px;
  border: 1px solid #fff;
  border-radius: 3px;
  position: relative;
  padding: 1px;
  margin-left: 2px;
}

.phone__battery::after {
  content: '';
  position: absolute;
  right: -3px;
  top: 3px;
  width: 2px;
  height: 3px;
  background: #fff;
  border-radius: 0 1px 1px 0;
}

.phone__battery-fill {
  display: block;
  width: 85%;
  height: 100%;
  background: #fff;
  border-radius: 1px;
}

/* --- WhatsApp Header --- */
.wa-header {
  background: #075E54;
  color: #fff;
  padding: 6px 12px 10px;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.wa-header__back {
  font-size: 22px;
  line-height: 1;
  padding-right: 2px;
}

.wa-header__unread {
  background: #fff;
  color: #075E54;
  font-size: 11px;
  font-weight: 700;
  border-radius: 10px;
  padding: 1px 6px;
  margin-right: 2px;
}

.wa-header__avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-size: 12px;
  color: var(--secondary);
  flex-shrink: 0;
}

.wa-header__info {
  flex: 1;
  min-width: 0;
  line-height: 1.2;
}

.wa-header__info strong {
  display: block;
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  color: #fff;
}

.wa-header__info span {
  font-size: 11px;
  opacity: 0.85;
}

.wa-header__actions {
  display: flex;
  gap: 16px;
  color: #fff;
}

/* --- Chat --- */
.wa-chat {
  flex: 1;
  background: #ECE5DD;
  padding: 12px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 13px;
  line-height: 1.35;
}

.wa-date {
  text-align: center;
  margin: 4px 0 8px;
}

.wa-date span {
  display: inline-block;
  background: rgba(225, 245, 254, 0.92);
  color: #4a4a4a;
  font-size: 10px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 8px;
  letter-spacing: 0.5px;
}

/* --- Messages --- */
.wa-message {
  max-width: 80%;
  padding: 6px 9px 4px;
  border-radius: 8px;
  position: relative;
  box-shadow: 0 1px 0.5px rgba(0, 0, 0, 0.13);
  opacity: 0;
  transform: translateY(12px);
}

.wa-message p {
  margin: 0 0 2px;
  color: #111;
  font-size: 12px;
  line-height: 1.38;
}

.wa-message__meta {
  display: block;
  text-align: right;
  font-size: 9px;
  color: #667781;
  margin-top: 2px;
}

.wa-message--received {
  background: #fff;
  align-self: flex-start;
  border-top-left-radius: 2px;
}

.wa-message--sent {
  background: #DCF8C6;
  align-self: flex-end;
  border-top-right-radius: 2px;
}

.wa-ticks {
  color: #34B7F1;
  font-size: 10px;
  letter-spacing: -2px;
  margin-left: 2px;
}

/* --- Typing indicator --- */
.wa-typing {
  align-self: flex-start;
  background: #fff;
  border-radius: 8px;
  border-top-left-radius: 2px;
  padding: 10px 12px;
  display: flex;
  gap: 3px;
  box-shadow: 0 1px 0.5px rgba(0, 0, 0, 0.13);
  opacity: 0;
  transform: translateY(12px);
}

.wa-typing span {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #b0b3b8;
}

.service-panel__phone.chat-start .wa-typing span {
  animation: wa-typing-bounce 1s infinite ease-in-out;
}

.service-panel__phone.chat-start .wa-typing span:nth-child(2) {
  animation-delay: 0.15s;
}

.service-panel__phone.chat-start .wa-typing span:nth-child(3) {
  animation-delay: 0.3s;
}

/* --- Input Bar --- */
.wa-input {
  background: #F6F6F6;
  padding: 8px 10px;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
  margin-bottom: 12px;
}

.wa-input__plus {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #fff;
  color: #666;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  flex-shrink: 0;
  border: 1px solid #e0e0e0;
}

.wa-input__field {
  flex: 1;
  background: #fff;
  border-radius: 20px;
  padding: 6px 12px;
  font-size: 11px;
  color: #8a8a8a;
  border: 1px solid #e0e0e0;
}

.wa-input__icon {
  width: 18px;
  height: 18px;
  color: #8a8a8a;
  flex-shrink: 0;
}

/* --- Message animations --- */
.service-panel__phone.chat-start .wa-message {
  animation: wa-pop-in 0.4s ease-out forwards;
  animation-delay: var(--delay, 0s);
}

.service-panel__phone.chat-start .wa-typing {
  animation: wa-typing-fade-in 0.3s ease-out forwards;
  animation-delay: var(--delay, 0s);
}

@keyframes wa-pop-in {
  0% { opacity: 0; transform: translateY(12px) scale(0.96); }
  100% { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes wa-typing-fade-in {
  0% { opacity: 0; transform: translateY(12px); }
  100% { opacity: 1; transform: translateY(0); }
}

@keyframes wa-typing-bounce {
  0%, 60%, 100% { transform: translateY(0); opacity: 0.5; }
  30% { transform: translateY(-3px); opacity: 1; }
}

@media (prefers-reduced-motion: reduce) {
  .service-panel__phone.chat-start .wa-message,
  .service-panel__phone.chat-start .wa-typing {
    animation: none;
    opacity: 1;
    transform: none;
  }
  .service-panel__phone.chat-start .wa-typing span {
    animation: none;
  }
}

/* --- CTA Banner --- */
.cta-banner {
  background: var(--secondary);
  padding: 48px 24px 24px;
  text-align: center;
}

.cta-banner > .container > *:last-child {
  margin-bottom: 0;
}

.cta-banner h2 {
  color: var(--white);
  margin-bottom: 16px;
}

.cta-banner p {
  color: var(--grey-400);
  font-size: var(--fs-md);
  max-width: 600px;
  margin: 0 auto 32px;
}

/* --- Logo Wall Section --- */
.logo-wall-section {
  background: var(--secondary);
  padding: 32px 24px 40px;
}

.logo-wall-section p {
  text-align: center;
  font-size: var(--fs-sm);
  color: var(--grey-500);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 20px;
}

/* --- Logo Marquee (auto-scrolling carousel) --- */
.logo-marquee {
  overflow: hidden;
  padding: 16px 0;
  max-width: 1200px;
  margin: 0 auto;
  -webkit-mask-image: linear-gradient(to right, transparent, #000 10%, #000 90%, transparent);
  mask-image: linear-gradient(to right, transparent, #000 10%, #000 90%, transparent);
}

.logo-marquee__track {
  display: flex;
  width: max-content;
  animation: logo-marquee-scroll 40s linear infinite;
}

.logo-marquee:hover .logo-marquee__track {
  animation-play-state: paused;
}

.logo-marquee__group {
  display: flex;
  align-items: center;
  gap: 48px;
  padding-right: 48px;
  flex-shrink: 0;
}

.logo-marquee__group img {
  width: 140px;
  height: 56px;
  display: block;
  object-fit: contain;
  opacity: 0.6;
  transition: opacity var(--transition);
  filter: brightness(0) invert(1);
  flex-shrink: 0;
}

.logo-marquee__group img:hover {
  opacity: 1;
}

/* Light-background marquee variant for manufacturer logos */
.logo-marquee--light .logo-marquee__group {
  gap: 56px;
  padding-right: 56px;
  align-items: center;
}

.logo-marquee--light .logo-marquee__group img {
  /* Height-locked, auto width with a sensible cap, so logos with different
     aspect ratios all read at the same visual height instead of being
     stretched into a fixed box. */
  height: 44px;
  width: auto;
  max-width: 180px;
  object-fit: contain;
  filter: none;
  opacity: 0.85;
}

/* Stacked / square logos get a taller box so they don't look tiny next to
   wordmark-style logos that are inherently wider. */
.logo-marquee--light .logo-marquee__group img[alt*="Coffetek"],
.logo-marquee--light .logo-marquee__group img[alt*="Bravilor"] {
  height: 64px;
  max-width: 120px;
}

/* Very wide wordmark logos need a bit more horizontal room. */
.logo-marquee--light .logo-marquee__group img[alt*="Dr. Coffee"],
.logo-marquee--light .logo-marquee__group img[alt*="Bestir"] {
  max-width: 200px;
}

.logo-marquee--light .logo-marquee__group img:hover {
  opacity: 1;
}

/* Text-only placeholder badges while we await logo assets */
.logo-marquee--light .logo-marquee__group .manufacturer-name {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 160px;
  height: 56px;
  font-family: var(--font-heading);
  font-size: 16px;
  letter-spacing: 0.12em;
  font-weight: var(--fw-semibold);
  color: var(--secondary);
  opacity: 0.7;
  text-transform: uppercase;
  flex-shrink: 0;
  border: 1px solid rgba(5, 14, 44, 0.08);
  border-radius: 8px;
  padding: 0 16px;
  background: rgba(255, 255, 255, 0.6);
  transition: opacity var(--transition), border-color var(--transition);
}

.logo-marquee--light .logo-marquee__group .manufacturer-name:hover {
  opacity: 1;
  border-color: rgba(2, 185, 224, 0.3);
}

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

@media (prefers-reduced-motion: reduce) {
  .logo-marquee__track {
    animation: none;
  }
}

/* --- Footer Skyline --- */
.footer__skyline {
  display: block;
  width: 100%;
  height: auto;
  background: var(--secondary);
  margin-bottom: -1px;
}

.footer__skyline img {
  display: block;
  width: 100%;
  height: auto;
  opacity: 0.12;
}

/* --- Footer --- */
.footer {
  background: var(--secondary);
  color: var(--grey-400);
  padding: 40px 24px 40px;
}

.footer__inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
}

.footer__brand {
  max-width: 300px;
}

.footer__brand img {
  height: 40px;
  width: auto;
  margin-bottom: 20px;
}

.footer__brand p {
  font-size: var(--fs-sm);
  line-height: var(--lh-relaxed);
  color: var(--grey-500);
}

.footer h4 {
  font-family: var(--font-body);
  font-size: var(--fs-sm);
  font-weight: var(--fw-semibold);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--white);
  margin-bottom: 24px;
}

.footer__links a {
  display: block;
  padding: 6px 0;
  font-size: var(--fs-sm);
  color: var(--grey-500);
}

.footer__links a:hover {
  color: var(--primary);
}

.footer__contact p {
  font-size: var(--fs-sm);
  margin-bottom: 8px;
  color: var(--grey-500);
}

.footer__contact a {
  color: var(--primary);
}

.footer__contact a:hover {
  text-decoration: underline;
}

.footer__bottom {
  max-width: var(--max-width);
  margin: 60px auto 0;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: var(--fs-xs);
  color: var(--grey-600);
}

.footer__socials {
  display: flex;
  gap: 16px;
}

.footer__socials a {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: var(--grey-500);
  transition: all var(--transition);
}

.footer__socials a:hover {
  background: var(--primary);
  border-color: var(--primary);
  color: var(--white);
}

/* --- Forms --- */
.form-group {
  margin-bottom: 24px;
}

.form-label {
  display: block;
  font-size: var(--fs-sm);
  font-weight: var(--fw-medium);
  color: var(--grey-700);
  margin-bottom: 8px;
}

.form-input,
.form-textarea,
.form-select {
  width: 100%;
  padding: 14px 16px;
  border: 1px solid var(--grey-300);
  border-radius: var(--radius-sm);
  font-size: var(--fs-base);
  color: var(--grey-800);
  background: var(--white);
  transition: border-color var(--transition-fast);
}

.form-input:focus,
.form-textarea:focus,
.form-select:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(2, 185, 224, 0.15);
}

.form-textarea {
  min-height: 140px;
  resize: vertical;
}

.form-input::placeholder,
.form-textarea::placeholder {
  color: var(--grey-400);
}

.form-error {
  font-size: var(--fs-xs);
  color: var(--error);
  margin-top: 4px;
}

.form-checkbox {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: var(--fs-sm);
  color: var(--grey-600);
  cursor: pointer;
  line-height: var(--lh-relaxed);
}

.form-checkbox input[type="checkbox"] {
  width: 18px;
  height: 18px;
  min-width: 18px;
  margin-top: 3px;
  accent-color: var(--primary);
}

/* --- Contact Page --- */
.contact-layout {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 48px;
  align-items: start;
}

.contact-form-card {
  background: var(--white);
  border-radius: var(--card-radius);
  padding: 48px 40px;
  box-shadow: var(--shadow-sm);
}

.contact-sidebar__title {
  font-family: var(--font-heading);
  font-size: var(--fs-xl);
  color: var(--secondary);
  margin-bottom: 28px;
}

.contact-method {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  padding: 16px 0;
  border-bottom: 1px solid var(--grey-200);
}

.contact-method:first-of-type {
  padding-top: 0;
}

.contact-method__icon {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--primary-light);
  color: var(--primary);
  border-radius: 10px;
  flex-shrink: 0;
}

.contact-method strong {
  display: block;
  font-size: var(--fs-sm);
  color: var(--secondary);
  margin-bottom: 2px;
}

.contact-method a,
.contact-method span {
  font-size: var(--fs-sm);
  color: var(--grey-600);
  line-height: var(--lh-relaxed);
}

.contact-method a:hover {
  color: var(--primary);
}

.contact-sidebar__testimonial {
  margin-top: 32px;
}

/* --- Pricing Table --- */
.pricing-card {
  background: var(--white);
  border: 1px solid var(--grey-200);
  border-radius: var(--card-radius);
  padding: 40px 32px;
  text-align: center;
  position: relative;
  transition: all var(--transition);
  display: flex;
  flex-direction: column;
  height: 100%;
}

.pricing-card .pricing-card__features {
  flex: 1 0 auto;
}

.pricing-card > .btn {
  margin-top: auto;
}

.pricing-card .btn {
  margin-top: auto;
}

.pricing-card:hover {
  border-color: var(--primary);
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
}

.pricing-card--featured {
  border-color: var(--primary);
  box-shadow: var(--shadow-md);
}

.pricing-card--featured::before {
  content: 'Most Popular';
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--primary);
  color: var(--white);
  font-size: var(--fs-xs);
  font-weight: var(--fw-semibold);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 4px 16px;
  border-radius: 20px;
}

.pricing-card__name {
  font-family: var(--font-heading);
  font-size: var(--fs-lg);
  color: var(--secondary);
  margin-bottom: 8px;
}

.pricing-card__desc {
  font-size: var(--fs-sm);
  color: var(--grey-600);
  margin-bottom: 24px;
}

.pricing-card__price {
  font-family: var(--font-heading);
  font-size: var(--fs-3xl);
  color: var(--secondary);
}

.pricing-card__price span {
  font-family: var(--font-body);
  font-size: var(--fs-sm);
  font-weight: var(--fw-regular);
  color: var(--grey-600);
}

.pricing-card__price .pricing-card__from {
  display: block;
  font-family: var(--font-body);
  font-size: var(--fs-base);
  font-weight: var(--fw-regular);
  color: var(--grey-600);
  margin-bottom: 4px;
}

.pricing-card__features {
  margin: 24px 0;
  text-align: left;
}

.pricing-card__features li {
  padding: 8px 0;
  font-size: var(--fs-sm);
  color: var(--grey-700);
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.pricing-card__features li::before {
  content: '';
  width: 20px;
  height: 20px;
  min-width: 20px;
  background: var(--primary-light);
  border-radius: 50%;
  display: inline-block;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%2302B9E0' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
}

/* --- Breadcrumb --- */
.breadcrumb {
  padding: 100px 24px 0;
  font-size: var(--fs-sm);
  color: var(--grey-500);
}

.breadcrumb__inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  gap: 8px;
  align-items: center;
}

.breadcrumb a {
  color: var(--grey-500);
}

.breadcrumb a:hover {
  color: var(--primary);
}

.breadcrumb__sep {
  color: var(--grey-400);
}

.breadcrumb__current {
  color: var(--grey-700);
  font-weight: var(--fw-medium);
}

/* --- Page Hero (Inner pages) --- */
.page-hero {
  padding: 80px 24px 80px;
  background: var(--off-white);
}

.page-hero__inner {
  max-width: var(--max-width);
  margin: 0 auto;
}

.page-hero .label {
  margin-bottom: 16px;
  display: block;
}

.page-hero h1 {
  margin-bottom: 20px;
  max-width: 800px;
}

.page-hero p {
  font-size: var(--fs-lg);
  color: var(--grey-600);
  max-width: 600px;
  line-height: var(--lh-relaxed);
}

.page-hero--center .page-hero__inner {
  text-align: center;
}

/* Variant: small decorative photo tucked into bottom-right corner */
.page-hero--photo {
  position: relative;
  overflow: hidden;
}

.page-hero--photo .page-hero__inner {
  position: relative;
  z-index: 1;
}

.page-hero__photo {
  position: absolute;
  right: 24px;
  bottom: 16px;
  width: 18%;
  max-width: 240px;
  height: auto;
  pointer-events: none;
  z-index: 0;
}

@media (max-width: 1024px) {
  .page-hero__photo {
    width: 22%;
    max-width: 200px;
  }
}

@media (max-width: 768px) {
  .page-hero__photo {
    right: 12px;
    bottom: 8px;
    width: 30%;
    max-width: 160px;
  }
}

.page-hero--center h1,
.page-hero--center p {
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

/* Machine hire cards: product photo above card body */
.machine-card {
  overflow: hidden;
}

.machine-card__photo {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px 24px 8px;
  min-height: 240px;
  background: radial-gradient(
    ellipse at 50% 40%,
    rgba(2, 185, 224, 0.12) 0%,
    rgba(2, 185, 224, 0) 70%
  );
}

.machine-card__photo img {
  max-width: 100%;
  max-height: 240px;
  width: auto;
  height: auto;
  object-fit: contain;
  filter: drop-shadow(0 20px 30px rgba(0, 0, 0, 0.35));
}

/* Page hero with a faded photographic background */
.page-hero--image {
  position: relative;
  overflow: hidden;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  isolation: isolate;
}

.page-hero--image::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(248, 249, 250, 0.92) 0%,
    rgba(248, 249, 250, 0.86) 55%,
    rgba(248, 249, 250, 0.95) 100%
  );
  z-index: -1;
}

.page-hero--image .page-hero__inner {
  position: relative;
  z-index: 1;
}

/* Variant: background image anchored to the right */
.page-hero--image-right {
  background-size: auto 100%;
  background-position: right center;
}

.page-hero--image-right::before {
  background: linear-gradient(
    270deg,
    rgba(248, 249, 250, 0.55) 0%,
    rgba(248, 249, 250, 0.80) 30%,
    rgba(248, 249, 250, 0.97) 55%,
    rgba(248, 249, 250, 1) 70%,
    rgba(248, 249, 250, 1) 100%
  );
}

@media (max-width: 768px) {
  .page-hero--image-right {
    background-size: cover;
    background-position: center;
  }
  .page-hero--image-right::before {
    background: linear-gradient(
      180deg,
      rgba(248, 249, 250, 0.92) 0%,
      rgba(248, 249, 250, 0.86) 55%,
      rgba(248, 249, 250, 0.95) 100%
    );
  }
}

/* Variant: background image anchored to the left so text stays clear */
.page-hero--image-left {
  background-size: auto 100%;
  background-position: left center;
}

.page-hero--image-left::before {
  background: linear-gradient(
    90deg,
    rgba(248, 249, 250, 0.55) 0%,
    rgba(248, 249, 250, 0.80) 30%,
    rgba(248, 249, 250, 0.97) 55%,
    rgba(248, 249, 250, 1) 70%,
    rgba(248, 249, 250, 1) 100%
  );
}

/* Heavy-fade modifier: photo is ghosted right down to a soft watermark.
   Use on heroes where the source image is busy or competes with the
   heading. Works with both --image-right and --image-left. */
.page-hero--fade-heavy.page-hero--image-right::before {
  background: linear-gradient(
    270deg,
    rgba(248, 249, 250, 0.75) 0%,
    rgba(248, 249, 250, 0.90) 25%,
    rgba(248, 249, 250, 1) 50%,
    rgba(248, 249, 250, 1) 100%
  );
}

.page-hero--fade-heavy.page-hero--image-left::before {
  background: linear-gradient(
    90deg,
    rgba(248, 249, 250, 0.75) 0%,
    rgba(248, 249, 250, 0.90) 25%,
    rgba(248, 249, 250, 1) 50%,
    rgba(248, 249, 250, 1) 100%
  );
}

@media (max-width: 768px) {
  .page-hero--image-left {
    background-size: cover;
    background-position: center;
  }
  .page-hero--image-left::before {
    background: linear-gradient(
      180deg,
      rgba(248, 249, 250, 0.88) 0%,
      rgba(248, 249, 250, 0.78) 55%,
      rgba(248, 249, 250, 0.92) 100%
    );
  }
}

/* --- FAQ Accordion --- */
.faq-item {
  border-bottom: 1px solid var(--grey-200);
}

.faq-item__question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px 0;
  font-size: var(--fs-md);
  font-weight: var(--fw-semibold);
  color: var(--secondary);
  cursor: pointer;
  width: 100%;
  text-align: left;
  background: none;
  border: none;
}

.faq-item__question:hover {
  color: var(--primary);
}

.faq-item__icon {
  width: 24px;
  height: 24px;
  min-width: 24px;
  transition: transform var(--transition);
}

.faq-item.is-open .faq-item__icon {
  transform: rotate(45deg);
}

.faq-item__answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height var(--transition);
}

.faq-item.is-open .faq-item__answer {
  max-height: 500px;
}

.faq-item__answer p {
  padding-bottom: 24px;
  color: var(--grey-600);
  line-height: var(--lh-relaxed);
}

/* --- Scroll Animations --- */
.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.fade-in-left {
  opacity: 0;
  transform: translateX(-30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in-left.is-visible {
  opacity: 1;
  transform: translateX(0);
}

.fade-in-right {
  opacity: 0;
  transform: translateX(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in-right.is-visible {
  opacity: 1;
  transform: translateX(0);
}

@media (prefers-reduced-motion: reduce) {
  .fade-in,
  .fade-in-left,
  .fade-in-right {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* --- Case Study Detail --- */
.cs-detail {
  max-width: 900px;
  margin: 0 auto;
}

.cs-detail__header {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 40px;
  align-items: start;
  margin-bottom: 60px;
}

.cs-detail__image {
  border-radius: var(--card-radius);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.cs-detail__image img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.cs-detail__client {
  padding: 8px 0;
}

.cs-detail__logo {
  height: 48px;
  width: auto;
  margin-bottom: 20px;
}

.cs-detail__client h2 {
  font-size: var(--fs-2xl);
  margin-bottom: 4px;
}

.cs-detail__subtitle {
  font-size: var(--fs-sm);
  color: var(--grey-600);
  margin-bottom: 24px;
}

.cs-detail__stats {
  display: flex;
  gap: 32px;
}

.cs-detail__stat {
  display: flex;
  flex-direction: column;
}

.cs-detail__stat-number {
  font-family: var(--font-heading);
  font-size: var(--fs-3xl);
  color: var(--primary);
  line-height: 1;
}

.cs-detail__stat-label {
  font-size: var(--fs-xs);
  color: var(--grey-600);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: var(--fw-medium);
  margin-top: 4px;
}

.cs-detail__body {
  margin-bottom: 60px;
}

.cs-detail__section {
  margin-bottom: 48px;
}

.cs-detail__section .label {
  display: block;
  margin-bottom: 12px;
}

.cs-detail__section h3 {
  margin-bottom: 20px;
}

.cs-detail__section p {
  color: var(--grey-700);
  line-height: var(--lh-relaxed);
}

.cs-detail__list {
  margin-top: 16px;
}

.cs-detail__list li {
  padding: 8px 0 8px 28px;
  position: relative;
  color: var(--grey-700);
  line-height: var(--lh-relaxed);
}

.cs-detail__list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 14px;
  width: 8px;
  height: 8px;
  background: var(--primary);
  border-radius: 50%;
}

.cs-detail__results {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.cs-detail__results li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  color: var(--grey-700);
  line-height: var(--lh-relaxed);
}

.cs-detail__results li svg {
  min-width: 20px;
  color: var(--primary);
  margin-top: 2px;
}

.cs-detail__section--highlight {
  background: var(--primary-light);
  border-left: 4px solid var(--primary);
  padding: 24px 28px;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}

.cs-detail__section--highlight p {
  color: var(--secondary);
  font-weight: var(--fw-medium);
  margin-bottom: 0;
}

.cs-detail__nav {
  border-top: 1px solid var(--grey-200);
  padding-top: 32px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.cs-detail__prev,
.cs-detail__next {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 20px 24px;
  background: var(--white);
  border: 1px solid var(--grey-200);
  border-radius: 14px;
  box-shadow: 0 4px 18px -10px rgba(5, 14, 44, 0.12);
  transition: background var(--transition-fast), border-color var(--transition-fast), box-shadow var(--transition-fast), transform var(--transition-fast);
}

.cs-detail__prev {
  align-items: flex-start;
  text-align: left;
}

.cs-detail__next {
  align-items: flex-end;
  text-align: right;
  grid-column: 2;
}

.cs-detail__prev:only-child {
  grid-column: 1;
}

.cs-detail__prev:hover,
.cs-detail__next:hover {
  background: var(--off-white);
  border-color: rgba(2, 185, 224, 0.35);
  box-shadow: 0 12px 30px -14px rgba(5, 14, 44, 0.2);
  transform: translateY(-2px);
}

.cs-detail__prev-label,
.cs-detail__next-label {
  font-size: var(--fs-xs);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--grey-500);
  font-weight: var(--fw-medium);
}

.cs-detail__prev-title,
.cs-detail__next-title {
  font-family: var(--font-heading);
  font-size: var(--fs-lg);
  color: var(--secondary);
  display: flex;
  align-items: center;
  gap: 8px;
}

.cs-detail__prev:hover .cs-detail__prev-title,
.cs-detail__next:hover .cs-detail__next-title {
  color: var(--primary);
}

@media (max-width: 640px) {
  .cs-detail__nav {
    grid-template-columns: 1fr;
  }
  .cs-detail__next {
    grid-column: 1;
  }
}

@media (max-width: 768px) {
  .cs-detail__header {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .cs-detail__logo {
    height: 40px;
  }
}

/* --- Full-Bleed Photo Sections --- */
.photo-break {
  position: relative;
  height: 500px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.photo-break img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.photo-break__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(5, 14, 44, 0.85), rgba(5, 14, 44, 0.6));
}

.photo-break__content {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 700px;
  padding: 0 24px;
}

.photo-break__content h2 {
  color: var(--white);
  margin-bottom: 16px;
}

.photo-break__content p {
  color: rgba(255, 255, 255, 0.8);
  font-size: var(--fs-lg);
  margin-bottom: 32px;
}

/* --- Split Section (Text + Photo) --- */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 500px;
}

.split--reverse {
  direction: rtl;
}

.split--reverse > * {
  direction: ltr;
}

.split__photo {
  position: relative;
  overflow: hidden;
}

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

.split__photo--contain {
  background-color: var(--grey-100);
}

.split__photo--contain img {
  object-fit: contain;
  padding: 60px;
}

.split--dark .split__photo--contain {
  background-color: transparent;
}

/* --- Blend detail components --- */
.blend-ratio {
  display: inline-block;
  font-family: var(--font-heading);
  font-size: 0.78rem;
  font-weight: var(--fw-semibold);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 14px;
}

.blend-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 4px 0 22px;
}

.blend-tags__tag {
  display: inline-flex;
  align-items: center;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(2, 185, 224, 0.10);
  color: var(--primary);
  font-size: 0.8rem;
  font-weight: var(--fw-medium);
  letter-spacing: 0.02em;
  border: 1px solid rgba(2, 185, 224, 0.22);
}

.split--dark .blend-tags__tag {
  background: rgba(2, 185, 224, 0.16);
  border-color: rgba(2, 185, 224, 0.36);
  color: #7fdcf2;
}

.blend-bestfor {
  font-size: var(--fs-sm);
  color: var(--grey-600);
  margin-bottom: 24px;
}

.split--dark .blend-bestfor {
  color: rgba(255, 255, 255, 0.72);
}

.blend-bestfor strong {
  color: var(--secondary);
  font-weight: var(--fw-semibold);
  margin-right: 6px;
}

.split--dark .blend-bestfor strong {
  color: var(--white);
}

/* "Beans Behind the Blend" sub-section */
.beans-behind {
  padding: 56px 24px 80px;
}

.beans-behind--dark {
  background-color: var(--secondary);
  position: relative;
  overflow: hidden;
}

.beans-behind--dark::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 20% 30%, rgba(2, 185, 224, 0.12), transparent 45%),
    radial-gradient(circle at 80% 70%, rgba(2, 185, 224, 0.08), transparent 50%);
  pointer-events: none;
}

.beans-behind__inner {
  max-width: 1100px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.beans-behind__header {
  text-align: center;
  margin-bottom: 32px;
}

.beans-behind__header .label {
  margin-bottom: 6px;
}

.beans-behind__header h3 {
  font-size: 1.6rem;
  margin: 0;
  color: var(--secondary);
}

.beans-behind--dark .beans-behind__header h3 {
  color: var(--white);
}

.beans-behind__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
}

.bean-origin__country {
  display: block;
  font-family: var(--font-heading);
  font-size: 0.78rem;
  font-weight: var(--fw-semibold);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 10px;
}

.bean-origin h4 {
  font-size: 1.15rem;
  margin: 0 0 12px;
  color: var(--secondary);
}

.beans-behind--dark .bean-origin h4 {
  color: var(--white);
}

.bean-origin p {
  color: var(--grey-600);
  font-size: var(--fs-sm);
  line-height: var(--lh-relaxed);
  margin: 0;
}

.beans-behind--dark .bean-origin p {
  color: rgba(255, 255, 255, 0.78);
}

@media (max-width: 768px) {
  .beans-behind {
    padding: 40px 20px 56px;
  }
  .beans-behind__grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }
}

/* --- Blend Selector Strip (top-of-page comparison row) --- */
.blend-selector {
  background: var(--white);
  border-top: 1px solid var(--grey-200);
  border-bottom: 1px solid var(--grey-200);
  padding: 28px 24px;
}

.blend-selector__inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.blend-selector__item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  background: var(--white);
  border: 1px solid var(--grey-200);
  border-radius: 12px;
  transition: border-color var(--transition), transform var(--transition), box-shadow var(--transition);
  text-decoration: none;
  color: var(--secondary);
}

.blend-selector__item:hover {
  border-color: var(--primary);
  transform: translateY(-2px);
  box-shadow: 0 8px 22px -10px rgba(2, 185, 224, 0.4);
}

.blend-selector__thumb {
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.blend-selector__thumb img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.blend-selector__copy {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.blend-selector__name {
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: var(--fw-semibold);
  color: var(--secondary);
  line-height: 1.2;
}

.blend-selector__ratio {
  font-size: 0.72rem;
  font-weight: var(--fw-medium);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--primary);
  margin-top: 2px;
}

@media (max-width: 900px) {
  .blend-selector__inner {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 480px) {
  .blend-selector__inner {
    grid-template-columns: 1fr;
  }
}

/* --- Origin pair inline (within blend split) --- */
.blend-origins {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  margin: 4px 0 24px;
  border-top: 1px solid var(--grey-200);
  border-bottom: 1px solid var(--grey-200);
}

.blend-origins__item {
  padding: 16px 18px 16px 0;
}

.blend-origins__item + .blend-origins__item {
  padding-left: 18px;
  border-left: 1px solid var(--grey-200);
}

.blend-origins__country {
  display: block;
  font-family: var(--font-heading);
  font-size: 0.72rem;
  font-weight: var(--fw-semibold);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 6px;
}

.blend-origins p {
  font-size: 0.85rem;
  color: var(--grey-600);
  margin: 0;
  line-height: var(--lh-relaxed);
}

.split--dark .blend-origins {
  border-color: rgba(255, 255, 255, 0.14);
}

.split--dark .blend-origins__item + .blend-origins__item {
  border-left-color: rgba(255, 255, 255, 0.14);
}

.split--dark .blend-origins p {
  color: rgba(255, 255, 255, 0.74);
}

@media (max-width: 768px) {
  .blend-origins {
    grid-template-columns: 1fr;
  }
  .blend-origins__item + .blend-origins__item {
    padding-left: 0;
    border-left: 0;
    border-top: 1px solid var(--grey-200);
  }
  .split--dark .blend-origins__item + .blend-origins__item {
    border-top-color: rgba(255, 255, 255, 0.14);
  }
}

/* --- Trust row (Why our coffee) --- */
.trust-row {
  padding: 80px 24px;
  background: var(--white);
}

.trust-row__inner {
  max-width: 1200px;
  margin: 0 auto;
}

.trust-row__header {
  text-align: center;
  margin-bottom: 48px;
}

.trust-row__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
}

.trust-row__item {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.trust-row__icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: rgba(2, 185, 224, 0.10);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
}

.trust-row__item h3 {
  font-size: 1.05rem;
  margin: 0;
  color: var(--secondary);
}

.trust-row__item p {
  font-size: var(--fs-sm);
  color: var(--grey-600);
  line-height: var(--lh-relaxed);
  margin: 0;
}

@media (max-width: 900px) {
  .trust-row__grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 28px;
  }
  .trust-row {
    padding: 60px 20px;
  }
}

@media (max-width: 480px) {
  .trust-row__grid {
    grid-template-columns: 1fr;
  }
}

/* Dark variant of the trust row */
.trust-row--dark {
  background-color: var(--secondary);
  position: relative;
  overflow: hidden;
}

.trust-row--dark::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 15% 25%, rgba(2, 185, 224, 0.14), transparent 45%),
    radial-gradient(circle at 85% 75%, rgba(2, 185, 224, 0.10), transparent 50%);
  pointer-events: none;
}

.trust-row--dark .trust-row__inner {
  position: relative;
  z-index: 1;
}

.trust-row--dark .trust-row__header h2,
.trust-row--dark .trust-row__item h3 {
  color: var(--white);
}

.trust-row--dark .trust-row__item p {
  color: rgba(255, 255, 255, 0.74);
}

.trust-row--dark .trust-row__icon {
  background: rgba(2, 185, 224, 0.18);
}

/* Blend section pattern: grey photo cell, dark blue content cell.
   Alternates direction via .split--reverse on adjacent sections. */
.split--blend {
  background: transparent;
}

.split--blend .split__photo--contain {
  background-color: var(--grey-100);
}

.split--blend .split__content {
  background-color: var(--secondary);
  position: relative;
  overflow: hidden;
}

.split--blend .split__content::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 25% 30%, rgba(2, 185, 224, 0.12), transparent 50%),
    radial-gradient(circle at 80% 75%, rgba(2, 185, 224, 0.08), transparent 55%);
  pointer-events: none;
  z-index: 0;
}

.split--blend .split__content > * {
  position: relative;
  z-index: 1;
}

.split--blend .split__content h2 {
  color: var(--white);
}

.split--blend .split__content > p {
  color: rgba(255, 255, 255, 0.80);
}

.split--blend .blend-tags__tag {
  background: rgba(2, 185, 224, 0.16);
  border-color: rgba(2, 185, 224, 0.36);
  color: #7fdcf2;
}

.split--blend .blend-bestfor {
  color: rgba(255, 255, 255, 0.72);
}

.split--blend .blend-bestfor strong {
  color: var(--white);
}

.split--blend .blend-origins {
  border-color: rgba(255, 255, 255, 0.14);
}

.split--blend .blend-origins__item + .blend-origins__item {
  border-left-color: rgba(255, 255, 255, 0.14);
}

.split--blend .blend-origins__country {
  color: #7fdcf2;
}

.split--blend .blend-origins p {
  color: rgba(255, 255, 255, 0.76);
}

@media (max-width: 768px) {
  .split--blend .blend-origins__item + .blend-origins__item {
    border-left: 0;
    border-top-color: rgba(255, 255, 255, 0.14);
  }
}

/* Slim variant — used for blends without full taste/origin data (e.g. Decaf) */
.split--blend.split--blend--slim {
  min-height: 0;
}

.split--blend.split--blend--slim .split__content {
  padding-top: 56px;
  padding-bottom: 56px;
}

/* Single-feature card — replaces grid--3 with one item on service-area pages */
.featured-card {
  display: grid;
  grid-template-columns: 1fr 1fr;
  background: var(--white);
  border-radius: var(--card-radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--grey-200);
  transition: box-shadow var(--transition), transform var(--transition), border-color var(--transition);
  text-decoration: none;
  color: inherit;
}

.featured-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
  border-color: var(--primary);
}

.featured-card__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.featured-card__body {
  padding: 48px 40px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.featured-card__body .card__title {
  margin: 8px 0 12px;
}

.featured-card__body .card__link {
  margin-top: 16px;
}

@media (max-width: 768px) {
  .featured-card {
    grid-template-columns: 1fr;
  }
  .featured-card__image {
    aspect-ratio: 16 / 10;
  }
  .featured-card__body {
    padding: 32px 28px;
  }
}

/* Thin page intro band (when there's no big hero) */
.page-intro {
  text-align: center;
  padding: 56px 24px 36px;
}

.page-intro .label {
  margin-bottom: 8px;
}

.page-intro h1 {
  font-size: clamp(2rem, 4vw, 2.6rem);
  margin: 0 0 12px;
}

.page-intro p {
  font-size: var(--fs-base);
  color: var(--grey-600);
  max-width: 640px;
  margin: 0 auto;
  line-height: var(--lh-relaxed);
}

.split__content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 80px 60px;
}

.split__content .label {
  margin-bottom: 16px;
}

.split__content h2 {
  margin-bottom: 20px;
}

.split__content p {
  color: var(--grey-600);
  margin-bottom: 24px;
  line-height: var(--lh-relaxed);
}

/* Dark-background variant for split sections */
.split--dark {
  position: relative;
  background-color: var(--secondary);
  overflow: hidden;
}

.split--dark::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 15% 20%, rgba(2, 185, 224, 0.14), transparent 45%),
    radial-gradient(circle at 85% 80%, rgba(2, 185, 224, 0.10), transparent 50%);
  pointer-events: none;
  z-index: 0;
}

.split--dark > .split__photo,
.split--dark > .split__content {
  position: relative;
  z-index: 1;
}

.split--dark .split__content h2 {
  color: var(--white);
}

.split--dark .split__content p {
  color: rgba(255, 255, 255, 0.72);
}

/* --- Number Counter Highlight --- */
.big-number {
  font-family: var(--font-heading);
  font-size: 5rem;
  color: var(--primary);
  line-height: 1;
  display: block;
  margin-bottom: 12px;
}

/* --- Responsive --- */
@media (max-width: 1024px) {
  .grid--3 {
    grid-template-columns: repeat(2, 1fr);
  }

  .grid--4 {
    grid-template-columns: repeat(2, 1fr);
  }

  .grid--2 {
    gap: 20px;
  }

  .footer__inner {
    grid-template-columns: 1fr 1fr;
    gap: 40px;
  }

  .stats {
    grid-template-columns: repeat(2, 1fr);
  }

  /* Split layout: at tablet widths the photo cell is too narrow — stack early */
  .split {
    grid-template-columns: 1fr;
    min-height: 0;
  }

  .split__photo {
    aspect-ratio: 16 / 9;
  }

  .split__photo--contain {
    aspect-ratio: auto;
    min-height: 320px;
  }

  .split__content {
    padding: 56px 48px;
  }
}

@media (max-width: 768px) {
  :root {
    --fs-4xl: 2.25rem;
    --fs-3xl: 1.875rem;
    --fs-2xl: 1.5rem;
    --section-padding: 60px 20px;
    --section-padding-sm: 40px 20px;
  }

  .header__nav {
    display: none;
  }

  .header__hamburger {
    display: flex;
  }

  .hero {
    padding: 120px 20px 60px;
  }

  .hero__inner {
    grid-template-columns: 1fr;
    gap: 40px;
    text-align: center;
  }

  .hero .btn-group {
    justify-content: center;
  }

  .hero__image {
    max-width: 500px;
    margin: 0 auto;
  }

  .grid--2,
  .grid--3,
  .grid--4 {
    grid-template-columns: 1fr;
  }

  .grid--2-1,
  .grid--1-2 {
    grid-template-columns: 1fr;
  }

  .footer__inner {
    grid-template-columns: 1fr;
  }

  .footer__bottom {
    flex-direction: column;
    gap: 16px;
    text-align: center;
  }

  .stats {
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
  }

  .page-hero {
    padding: 120px 20px 60px;
  }

  .cta-banner {
    padding: 40px 20px 0;
  }

  .section-header {
    margin-bottom: 40px;
  }

  .logo-marquee__group {
    gap: 32px;
    padding-right: 32px;
  }

  .logo-marquee__group img {
    width: 100px;
    height: 40px;
  }

  .btn-group {
    flex-direction: column;
    align-items: stretch;
  }

  .btn-group .btn {
    justify-content: center;
  }

  .problem-panel__inner {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .problem-panel {
    padding: 60px 0;
  }

  .step-list__item {
    gap: 24px;
    padding: 32px 0;
  }

  .step-list__num {
    width: 48px;
  }

  .contact-layout {
    grid-template-columns: 1fr;
  }

  .contact-form-card {
    padding: 32px 24px;
  }

  .contact-sidebar__title {
    margin-bottom: 20px;
  }

  .contact-method {
    padding: 12px 0;
  }

  .card--benefit .card__body {
    padding: 32px 24px;
  }

  .card__icon {
    width: 48px;
    height: 48px;
  }

  .service-panel {
    padding: 64px 0;
  }

  .service-panel__inner {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .service-panel__content {
    max-width: 560px;
  }

  .service-panel__phone {
    order: 2;
  }

  .split {
    grid-template-columns: 1fr;
  }

  .split--reverse {
    direction: ltr;
  }

  .split__photo {
    height: 300px;
  }

  .split__content {
    padding: 48px 20px;
  }

  .photo-break {
    height: 350px;
  }

  .big-number {
    font-size: 3.5rem;
  }
}

@media (max-width: 480px) {
  :root {
    --fs-4xl: 1.875rem;
    --fs-3xl: 1.5rem;
  }

  .header__inner {
    height: 64px;
  }

  .header__logo img {
    height: 36px;
  }

  .hero {
    padding: 100px 16px 48px;
  }

  .section {
    padding: 48px 16px;
  }

  .container {
    padding: 0 16px;
  }

  .phone {
    width: 280px;
    height: 560px;
    border-radius: 42px;
    padding: 10px;
  }

  .phone__screen {
    border-radius: 32px;
  }

  .phone__notch {
    width: 88px;
    height: 24px;
    top: 16px;
  }

  .wa-message p {
    font-size: 11px;
  }
}

/* --- Inline-style extractions: shared utility/modifier classes ---
   These capture HTML style="" attributes that were repeated across pages.
   Values intentionally match the former inline styles exactly. */

/* Button group alignment */
.btn-group--center { justify-content: center; }

/* Container narrow variant (distinct from --narrow which uses a variable) */
.container--800 { max-width: 800px; }

/* Full-width button (used inside product/pricing cards) */
.btn--block { width: 100%; }

/* Grid gap / alignment modifiers (override base .grid gap of 32px) */
.grid--gap-lg { gap: 48px; }
.grid--gap-xl { gap: 56px; }
.grid--gap-2xl { gap: 60px; }
.grid--align-start { align-items: start; }
.grid--align-stretch { align-items: stretch; }
.grid--align-center { align-items: center; }

/* Service-area "what we offer" list */
.area-list { list-style: none; padding: 0; }
.area-list > li { padding: 12px 0; border-bottom: 1px solid var(--border); }
.area-list > li:last-child { border-bottom: 0; }

/* Machine / product thumbnail image inside cards.
   Fixed 180px-tall box with object-fit: contain so all four cards in a
   row stay vertically aligned regardless of each photo's natural
   aspect ratio. The image is letterboxed inside the box rather than
   stretched. */
.machine-thumb {
  height: 180px;
  width: 100%;
  object-fit: contain;
  margin: 0 auto 20px;
  display: block;
}

/* Case study media image */
.case-study__media-img {
  border-radius: var(--card-radius);
  width: 100%;
  height: auto;
}

/* Case study logo spacing above title */
.case-study__logo { margin-bottom: 32px; }

/* Case study prev/next nav row */
.case-study__nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}

/* card__body padding/alignment variants */
.card__body--centered { text-align: center; padding: 48px 32px; }
.card__body--centered-md { text-align: center; padding: 40px 28px; }
.card__body--centered-sm { text-align: center; padding: 36px 24px; }
.card__body--centered-xs { text-align: center; padding: 28px 20px; }
.card__body--spacious { padding: 48px 32px; }
.card__body--comfy { padding: 40px 32px; }
.card__body--hospitality { padding: 36px 28px; }
.card__body--machine { padding: 32px 36px 48px; }

/* feature__icon layout variants */
.feature__icon--centered { margin: 0 auto 24px; }
.feature__icon--stacked { margin-bottom: 20px; }

/* card__title xl variant used on short-term rental machine cards */
.card__title--xl { font-size: var(--fs-xl); margin-bottom: 16px; }

/* Homepage feature image (coffee-supply, machine-rental) */
.split__photo img.home-feature-img {
  object-fit: contain;
  background: #fff;
  padding: 48px 64px;
  object-position: center;
}
.split__photo img.home-feature-img--padded { padding: 24px; }
