/* ============================================
   BODIAM MEAT COMPANY — Website Styles
   Brand: Trade-grade, Sussex, confident, clean
   ============================================ */

/* --- CSS Custom Properties --- */
:root {
  /* Palette — matched to Bodiam Meat Co. logo (dark teal + castle) */
  --color-dark: #1A2E38;
  --color-primary: #1E5A6B;
  --color-primary-light: #2A7A8C;
  --color-accent: #C4883A;
  --color-accent-light: #D4A05A;
  --color-cream: #F7F4EF;
  --color-warm-gray: #E8E3DC;
  --color-text: #2D2D2D;
  --color-text-light: #6B6B6B;
  --color-white: #FFFFFF;
  --color-black: #111111;

  /* Typography */
  --font-heading: 'DM Serif Display', Georgia, serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;

  /* Spacing */
  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 2rem;
  --space-lg: 4rem;
  --space-xl: 6rem;
  --space-2xl: 8rem;

  /* Layout */
  --max-width: 1200px;
  --max-width-narrow: 800px;

  /* Transitions */
  --transition: 0.3s ease;
}

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

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-body);
  color: var(--color-text);
  background-color: var(--color-white);
  line-height: 1.7;
  overflow-x: hidden;
}

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

a {
  color: inherit;
  text-decoration: none;
}

/* --- Typography --- */
h1, h2, h3, h4 {
  font-family: var(--font-heading);
  color: var(--color-dark);
  line-height: 1.2;
  font-weight: 400;
}

h1 {
  font-size: clamp(2.25rem, 4vw, 3.25rem);
  letter-spacing: -0.02em;
}

h2 {
  font-size: clamp(2rem, 4vw, 3rem);
  letter-spacing: -0.01em;
}

h3 {
  font-size: clamp(1.4rem, 2.5vw, 1.75rem);
}

h4 {
  font-size: 1.25rem;
}

p {
  font-size: 1.05rem;
  max-width: 65ch;
}

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

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

.text-center {
  text-align: center;
}

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

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

.section {
  padding: var(--space-xl) 0;
}

@media (max-width: 768px) {
  .section { padding: 3rem 0; }
}

/* Tables (policy pages) — keep within the viewport on small screens */
table { max-width: 100%; }
table td, table th { overflow-wrap: anywhere; word-break: break-word; }

.section--cream {
  background-color: var(--color-cream);
}

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

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

.section--dark p {
  color: rgba(255, 255, 255, 0.85);
}

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

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

.section--primary p {
  color: rgba(255, 255, 255, 0.9);
}

/* --- Grid --- */
.grid {
  display: grid;
  gap: var(--space-md);
}

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

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

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

@media (max-width: 768px) {
  .grid--2,
  .grid--3,
  .grid--4 {
    grid-template-columns: 1fr;
  }
}

/* --- Navigation --- */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.97);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
  transition: var(--transition);
}

.nav--scrolled {
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.08);
}

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

.nav__logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-heading);
  font-size: 1.35rem;
  color: var(--color-dark);
  letter-spacing: -0.01em;
}

.nav__logo-img {
  height: 50px;
  width: auto;
  display: block;
}

@media (max-width: 768px) {
  .nav__logo-img {
    height: 40px;
  }
}

.nav__links {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  list-style: none;
}

.nav__link {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--color-text-light);
  transition: color var(--transition);
  position: relative;
}

.nav__link:hover,
.nav__link--active {
  color: var(--color-dark);
}

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

.nav__link:hover::after,
.nav__link--active::after {
  width: 100%;
}

.nav__login {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.6rem 1.2rem;
  background: var(--color-accent);
  color: var(--color-white);
  border: 1.5px solid var(--color-accent);
  border-radius: 6px;
  font-size: 0.85rem;
  font-weight: 600;
  transition: background var(--transition), color var(--transition), box-shadow var(--transition);
}

.nav__login:hover {
  background: var(--color-accent-light);
  border-color: var(--color-accent-light);
  color: var(--color-white);
  box-shadow: 0 2px 10px rgba(196, 136, 58, 0.3);
}

.nav__cta {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.7rem 1.5rem;
  background: var(--color-primary);
  color: var(--color-white);
  border-radius: 6px;
  font-size: 0.9rem;
  font-weight: 600;
  transition: background var(--transition);
}

.nav__cta:hover {
  background: var(--color-primary-light);
}

/* Mobile nav toggle */
.nav__toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
}

.nav__toggle-bar {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--color-dark);
  margin: 6px 0;
  transition: var(--transition);
  border-radius: 2px;
}

@media (max-width: 768px) {
  .nav__toggle {
    display: block;
  }

  .nav__links {
    display: none;
    position: absolute;
    top: 80px;
    left: 0;
    right: 0;
    background: var(--color-white);
    flex-direction: column;
    padding: var(--space-md);
    gap: var(--space-sm);
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  }

  .nav__links--open {
    display: flex;
  }

  .nav__link {
    font-size: 1.1rem;
    padding: 0.5rem 0;
  }
}

/* --- Hero --- */
.hero {
  position: relative;
  min-height: 90vh;
  display: flex;
  align-items: center;
  padding-top: 80px;
  overflow: hidden;
}

.hero--home {
  background: linear-gradient(135deg, var(--color-dark) 0%, #1A3D4D 50%, var(--color-primary) 100%);
  color: var(--color-white);
}

.hero--page {
  min-height: 50vh;
  background: var(--color-cream);
}

.hero--page h1,
.hero--page h2 {
  color: var(--color-dark);
}

.hero__content {
  position: relative;
  z-index: 2;
  max-width: 700px;
}

.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 100px;
  font-size: 0.85rem;
  font-weight: 500;
  margin-bottom: var(--space-md);
  color: rgba(255, 255, 255, 0.9);
}

.hero__badge-dot {
  width: 8px;
  height: 8px;
  background: var(--color-accent);
  border-radius: 50%;
}

.hero__title {
  color: var(--color-white);
  margin-bottom: var(--space-sm);
  max-width: 620px;
  line-height: 1.25;
}

.hero__subtitle {
  font-size: clamp(1.05rem, 1.8vw, 1.2rem);
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: var(--space-md);
  max-width: 700px;
}

.hero__actions {
  display: flex;
  gap: var(--space-sm);
  flex-wrap: wrap;
}

.hero__image {
  position: absolute;
  right: -4%;
  top: 50%;
  transform: translateY(-50%);
  width: 48%;
  height: 86%;
  border-radius: 20px;
  overflow: hidden;
  opacity: 1;
  /* Soft fade on the left edge so the photo blends into the navy instead of reading as a hard box */
  -webkit-mask-image: linear-gradient(to right, transparent 0%, #000 24%);
  mask-image: linear-gradient(to right, transparent 0%, #000 24%);
}

@media (max-width: 768px) {
  .hero {
    min-height: 80vh;
  }
  .hero--page {
    min-height: 40vh;
  }
  .hero__image {
    display: none;
  }
}

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.9rem 2rem;
  border-radius: 6px;
  font-size: 1rem;
  font-weight: 600;
  font-family: var(--font-body);
  cursor: pointer;
  border: none;
  transition: all var(--transition);
  text-decoration: none;
}

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

.btn--primary:hover {
  background: var(--color-accent-light);
  transform: translateY(-1px);
  box-shadow: 0 4px 15px rgba(196, 136, 58, 0.3);
}

.btn--secondary {
  background: rgba(255, 255, 255, 0.15);
  color: var(--color-white);
  border: 1px solid rgba(255, 255, 255, 0.3);
}

.btn--secondary:hover {
  background: rgba(255, 255, 255, 0.25);
}

.btn--outline {
  background: transparent;
  color: var(--color-primary);
  border: 2px solid var(--color-primary);
}

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

.btn--fresho {
  background: var(--color-accent);
  color: var(--color-white);
  border: 2px solid var(--color-accent);
}

.btn--fresho:hover {
  background: var(--color-accent-light);
  border-color: var(--color-accent-light);
  transform: translateY(-1px);
  box-shadow: 0 4px 15px rgba(196, 136, 58, 0.4);
}

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

.btn--dark:hover {
  background: #243B4D;
}

.btn--large {
  padding: 0.95rem 2rem;
  font-size: 1rem;
}

.btn__arrow {
  transition: transform var(--transition);
}

.btn:hover .btn__arrow {
  transform: translateX(3px);
}

/* --- Cards --- */
.card {
  background: var(--color-white);
  border-radius: 12px;
  padding: var(--space-md);
  transition: all var(--transition);
}

.card--elevated {
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.06);
}

.card--elevated:hover {
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
  transform: translateY(-2px);
}

.card--bordered {
  border: 1px solid var(--color-warm-gray);
}

.card__icon {
  width: 48px;
  height: 48px;
  background: var(--color-cream);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--space-sm);
  font-size: 1.4rem;
}

.card__icon--primary {
  background: rgba(44, 95, 63, 0.1);
  color: var(--color-primary);
}

.card__title {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
  color: var(--color-dark);
}

.card__text {
  font-size: 0.95rem;
  color: var(--color-text-light);
  line-height: 1.6;
}

/* --- Section Headers --- */
.section-header {
  margin-bottom: var(--space-lg);
}

.section-header--center {
  text-align: center;
}

.section-header--center p {
  margin-left: auto;
  margin-right: auto;
}

.section-header__label {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--color-primary);
  margin-bottom: 0.75rem;
}

.section--dark .section-header__label,
.section--primary .section-header__label {
  color: var(--color-accent);
}

.section-header h2 {
  margin-bottom: 0.75rem;
}

.section-header p {
  font-size: 1.1rem;
  color: var(--color-text-light);
  line-height: 1.7;
}

.section--dark .section-header p {
  color: rgba(255, 255, 255, 0.7);
}

/* --- Product Range Section --- */
.range-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-md);
}

.range-card {
  background: var(--color-white);
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--color-warm-gray);
  transition: all var(--transition);
}

.range-card:hover {
  border-color: var(--color-primary);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
}

.range-card__image {
  height: 240px;
  background: var(--color-warm-gray);
  position: relative;
  overflow: hidden;
}

.range-card__image-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  background: linear-gradient(135deg, var(--color-cream) 0%, var(--color-warm-gray) 100%);
}

.range-card__body {
  padding: var(--space-md);
}

.range-card__title {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
  color: var(--color-dark);
}

.range-card__desc {
  font-size: 0.95rem;
  color: var(--color-text-light);
  margin-bottom: var(--space-sm);
  line-height: 1.6;
}

.range-card__items {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.range-card__tag {
  display: inline-block;
  padding: 0.3rem 0.8rem;
  background: var(--color-cream);
  border-radius: 100px;
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--color-text);
}

@media (max-width: 768px) {
  .range-grid {
    grid-template-columns: 1fr;
  }
}

/* --- How It Works --- */
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-md);
  position: relative;
}

.steps::before {
  content: '';
  position: absolute;
  top: 36px;
  left: 15%;
  right: 15%;
  height: 2px;
  background: var(--color-warm-gray);
  z-index: 0;
}

.step {
  text-align: center;
  position: relative;
  z-index: 1;
}

.step__number {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: var(--color-primary);
  color: var(--color-white);
  font-family: var(--font-heading);
  font-size: 1.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto var(--space-sm);
}

.step__title {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  margin-bottom: 0.5rem;
  color: var(--color-dark);
}

.step__text {
  font-size: 0.95rem;
  color: var(--color-text-light);
  max-width: 280px;
  margin: 0 auto;
  line-height: 1.6;
}

@media (max-width: 768px) {
  .steps {
    grid-template-columns: 1fr;
    gap: var(--space-lg);
  }
  .steps::before {
    display: none;
  }
}

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

.stat__number {
  font-family: var(--font-heading);
  font-size: clamp(2.5rem, 4vw, 3.5rem);
  color: var(--color-accent);
  line-height: 1;
  margin-bottom: 0.25rem;
}

.stat__label {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.7);
  font-weight: 500;
}

@media (max-width: 768px) {
  .stats {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-md);
  }
}

/* --- Testimonial --- */
.testimonial {
  position: relative;
  padding: var(--space-lg);
  background: var(--color-white);
  border-radius: 16px;
  border: 1px solid var(--color-warm-gray);
  max-width: 700px;
  margin: 0 auto;
}

.testimonial__quote {
  font-family: var(--font-heading);
  font-size: clamp(1.2rem, 2.5vw, 1.5rem);
  color: var(--color-dark);
  line-height: 1.5;
  margin-bottom: var(--space-md);
}

.testimonial__quote::before {
  content: '\201C';
  font-size: 4rem;
  color: var(--color-primary);
  line-height: 0;
  vertical-align: -1.5rem;
  margin-right: 0.25rem;
  opacity: 0.3;
}

.testimonial__author {
  font-weight: 600;
  color: var(--color-dark);
}

.testimonial__role {
  font-size: 0.9rem;
  color: var(--color-text-light);
}

/* --- Delivery Map Section --- */
.delivery {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-lg);
  align-items: center;
}

.delivery__map {
  height: 400px;
  background: var(--color-warm-gray);
  border-radius: 16px;
  overflow: hidden;
}

.delivery__info h3 {
  margin-bottom: var(--space-sm);
}

.delivery__info p {
  margin-bottom: var(--space-sm);
}

.delivery__areas {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: var(--space-sm);
}

.delivery__area-tag {
  padding: 0.5rem 1rem;
  background: var(--color-cream);
  border-radius: 8px;
  font-size: 0.9rem;
  font-weight: 500;
}

@media (max-width: 768px) {
  .delivery {
    grid-template-columns: 1fr;
  }
}

/* --- CTA Section --- */
.cta-section {
  text-align: center;
  padding: var(--space-2xl) 0;
}

.cta-section h2 {
  color: var(--color-white);
  margin-bottom: 0.75rem;
}

.cta-section p {
  margin: 0 auto var(--space-md);
  max-width: 500px;
}

.cta-section .btn {
  margin: 0 0.5rem;
}

.cta__phone {
  font-family: var(--font-heading);
  font-size: clamp(1.5rem, 3vw, 2.25rem);
  color: var(--color-white);
  margin-bottom: 0.5rem;
}

.cta__phone a {
  color: var(--color-accent);
  text-decoration: none;
}

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

.cta__email {
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: var(--space-md);
}

.cta__email a {
  color: rgba(255, 255, 255, 0.9);
}

/* --- About / Split Sections --- */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-lg);
  align-items: center;
}

.split--reverse {
  direction: rtl;
}

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

.split__image {
  height: 450px;
  background: var(--color-warm-gray);
  border-radius: 16px;
  overflow: hidden;
  position: relative;
}

.split__image-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  background: linear-gradient(135deg, var(--color-cream) 0%, var(--color-warm-gray) 100%);
}

.split__content h2 {
  margin-bottom: var(--space-sm);
}

.split__content h3 {
  margin-bottom: 0.5rem;
}

.split__content p {
  margin-bottom: var(--space-sm);
  color: var(--color-text-light);
}

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

@media (max-width: 768px) {
  .split,
  .split--reverse {
    grid-template-columns: 1fr;
    direction: ltr;
  }
  .split__image {
    height: 300px;
  }
}

/* --- Values / Features List --- */
.features-list {
  list-style: none;
  padding: 0;
}

.features-list li {
  display: flex;
  gap: var(--space-sm);
  padding: var(--space-sm) 0;
  border-bottom: 1px solid var(--color-warm-gray);
}

.features-list li:last-child {
  border-bottom: none;
}

.features-list__icon {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  background: rgba(44, 95, 63, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 2px;
}

.features-list__icon svg {
  width: 14px;
  height: 14px;
  color: var(--color-primary);
}

.features-list__text strong {
  display: block;
  font-size: 1rem;
  color: var(--color-dark);
  margin-bottom: 0.15rem;
}

.features-list__text span {
  font-size: 0.92rem;
  color: var(--color-text-light);
  line-height: 1.5;
}

/* --- Contact / Form --- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: var(--space-lg);
  align-items: start;
}

.contact-info__item {
  display: flex;
  gap: var(--space-sm);
  margin-bottom: var(--space-md);
}

.contact-info__icon {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  background: rgba(44, 95, 63, 0.1);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.contact-info__label {
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-text-light);
  margin-bottom: 0.15rem;
}

.contact-info__value {
  font-size: 1.1rem;
  color: var(--color-dark);
  font-weight: 500;
}

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

.form {
  background: var(--color-white);
  padding: var(--space-md);
  border-radius: 16px;
  border: 1px solid var(--color-warm-gray);
}

.form__group {
  margin-bottom: var(--space-sm);
}

.form__label {
  display: block;
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 0.35rem;
  color: var(--color-dark);
}

.form__input,
.form__textarea,
.form__select {
  width: 100%;
  padding: 0.8rem 1rem;
  border: 1px solid var(--color-warm-gray);
  border-radius: 8px;
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--color-text);
  transition: border-color var(--transition);
  background: var(--color-white);
}

.form__input:focus,
.form__textarea:focus,
.form__select:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(44, 95, 63, 0.1);
}

.form__textarea {
  min-height: 120px;
  resize: vertical;
}

.form__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-sm);
}

@media (max-width: 768px) {
  .contact-grid {
    grid-template-columns: 1fr;
  }
  .form__row {
    grid-template-columns: 1fr;
  }
}

/* --- Food Service Benefit Cards --- */
.benefit-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-md);
  align-items: stretch;
}

.benefit-card {
  text-align: center;
  padding: var(--space-md);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.benefit-card__icon {
  font-size: 2.5rem;
  margin-bottom: var(--space-sm);
}

.benefit-card__title {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  color: var(--color-dark);
  margin-bottom: 0.5rem;
}

.benefit-card__text {
  font-size: 0.92rem;
  color: var(--color-text-light);
  line-height: 1.6;
  max-width: 300px;
  margin: 0 auto;
}

@media (max-width: 768px) {
  .benefit-cards {
    grid-template-columns: 1fr;
  }
}

/* --- Product Grid (Food Service) --- */
.product-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-sm);
}

.product-item {
  background: var(--color-white);
  border: 1px solid var(--color-warm-gray);
  border-radius: 12px;
  padding: var(--space-md);
  text-align: center;
  transition: all var(--transition);
}

.product-item:hover {
  border-color: var(--color-primary);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.06);
}

.product-item__icon {
  font-size: 2rem;
  margin-bottom: 0.5rem;
}

.product-item__name {
  font-weight: 600;
  font-size: 1rem;
  color: var(--color-dark);
  margin-bottom: 0.25rem;
}

.product-item__desc {
  font-size: 0.85rem;
  color: var(--color-text-light);
}

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

/* --- Footer --- */
.footer {
  background: var(--color-dark);
  color: rgba(255, 255, 255, 0.7);
  padding: var(--space-xl) 0 var(--space-md);
}

.footer__grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: var(--space-lg);
  margin-bottom: var(--space-lg);
}

.footer__brand {
  max-width: 300px;
}

.footer__logo {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  color: var(--color-white);
  margin-bottom: var(--space-sm);
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.footer__logo-img {
  height: 44px;
  width: auto;
  display: block;
}

.footer__desc {
  font-size: 0.9rem;
  line-height: 1.7;
}

.footer__heading {
  font-family: var(--font-heading);
  font-size: 1rem;
  color: var(--color-white);
  margin-bottom: var(--space-sm);
}

.footer__links {
  list-style: none;
}

.footer__links li {
  margin-bottom: 0.5rem;
}

.footer__links a {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.6);
  transition: color var(--transition);
}

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

.footer__contact-item {
  display: flex;
  align-items: start;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
  font-size: 0.9rem;
}

.footer__contact-icon {
  flex-shrink: 0;
  margin-top: 2px;
  color: var(--color-accent);
}

.footer__bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: var(--space-md);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.85rem;
}

.footer__vat {
  color: rgba(255, 255, 255, 0.4);
}

@media (max-width: 768px) {
  .footer__grid {
    grid-template-columns: 1fr;
    gap: var(--space-md);
  }
  .footer__bottom {
    flex-direction: column;
    gap: 0.5rem;
    text-align: center;
  }
}

/* --- Legal Content Pages --- */
.legal-content h2 {
  font-size: 1.5rem;
  margin-top: var(--space-lg);
  margin-bottom: var(--space-sm);
}

.legal-content h2:first-child {
  margin-top: 0;
}

.legal-content h3 {
  font-size: 1.15rem;
  margin-top: var(--space-md);
  margin-bottom: 0.5rem;
}

.legal-content p {
  margin-bottom: var(--space-sm);
  color: var(--color-text-light);
  line-height: 1.8;
}

.legal-content ul {
  margin: 0 0 var(--space-md) var(--space-md);
  color: var(--color-text-light);
  line-height: 1.8;
}

.legal-content ul li {
  margin-bottom: 0.35rem;
}

.legal-content a {
  color: var(--color-primary);
  text-decoration: underline;
}

.legal-content code {
  background: var(--color-cream);
  padding: 0.15rem 0.5rem;
  border-radius: 4px;
  font-size: 0.85rem;
}

/* --- Testimonial Marquee --- */
.testimonial-marquee {
  overflow: hidden;
  width: 100%;
  padding: var(--space-sm) 0;
}

.testimonial-marquee__track {
  display: flex;
  gap: var(--space-md);
  animation: marquee-scroll 40s linear infinite;
  width: max-content;
}

.testimonial-marquee__item {
  flex-shrink: 0;
  width: 400px;
  background: var(--color-white);
  border: 1px solid var(--color-warm-gray);
  border-radius: 12px;
  padding: var(--space-md);
}

.testimonial-marquee__quote {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  color: var(--color-dark);
  line-height: 1.5;
  margin-bottom: var(--space-sm);
}

.testimonial-marquee__author {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--color-text-light);
}

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

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

@media (max-width: 768px) {
  .testimonial-marquee__item {
    width: 300px;
  }
}

@media (max-width: 480px) {
  .testimonial-marquee__item {
    width: 260px;
    padding: 1rem;
  }
  .testimonial-marquee__quote {
    font-size: 1rem;
  }
}

/* --- Meet the Team --- */
.team-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: var(--space-md);
  text-align: center;
  justify-items: center;
}

.team-card {
  background: var(--color-white);
  border: 1px solid var(--color-warm-gray);
  border-radius: 16px;
  padding: var(--space-md);
  transition: all var(--transition);
}

.team-card:hover {
  border-color: var(--color-primary);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.06);
}

.team-card__photo {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: var(--color-warm-gray);
  margin: 0 auto var(--space-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  color: var(--color-text-light);
  overflow: hidden;
}

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

.team-card__name {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  color: var(--color-dark);
  margin-bottom: 0.25rem;
}

.team-card__role {
  font-size: 0.9rem;
  color: var(--color-text-light);
}

@media (max-width: 1024px) {
  .team-grid {
    grid-template-columns: repeat(3, 1fr);
    justify-content: center;
  }
}

@media (max-width: 768px) {
  .team-grid {
    grid-template-columns: repeat(2, 1fr);
    justify-content: center;
  }
}

@media (max-width: 480px) {
  .team-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
  }
  .team-card {
    padding: 1rem;
  }
  .team-card__photo {
    width: 80px;
    height: 80px;
  }
}

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

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

/* Stagger children */
.stagger > .fade-up:nth-child(1) { transition-delay: 0s; }
.stagger > .fade-up:nth-child(2) { transition-delay: 0.1s; }
.stagger > .fade-up:nth-child(3) { transition-delay: 0.2s; }
.stagger > .fade-up:nth-child(4) { transition-delay: 0.3s; }

/* --- Logo Bar --- */
.logo-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-lg);
  flex-wrap: wrap;
  padding: var(--space-md) 0;
  opacity: 0.5;
}

.logo-bar__item {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  color: var(--color-text-light);
  white-space: nowrap;
}

/* --- Announcement Bar --- */
.announcement {
  background: var(--color-primary);
  color: var(--color-white);
  text-align: center;
  padding: 0.6rem var(--space-md);
  font-size: 0.85rem;
  font-weight: 500;
}

.announcement a {
  color: var(--color-accent-light);
  text-decoration: underline;
}

/* --- Real Image Styles --- */
.range-card__image img,
.split__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* --- Feature icon color fix for new teal --- */
.features-list__icon {
  background: rgba(30, 90, 107, 0.1);
}

.contact-info__icon {
  background: rgba(30, 90, 107, 0.1);
}

.card__icon--primary {
  background: rgba(30, 90, 107, 0.1);
}

.form__input:focus,
.form__textarea:focus,
.form__select:focus {
  box-shadow: 0 0 0 3px rgba(30, 90, 107, 0.1);
}

/* ============================================
   MOBILE OPTIMISATION
   ============================================ */

/* --- Small Mobile (375px and below) --- */
@media (max-width: 480px) {
  :root {
    --space-md: 1.25rem;
    --space-lg: 2.5rem;
    --space-xl: 3.5rem;
    --space-2xl: 5rem;
  }

  body {
    font-size: 15px;
  }

  h1 {
    font-size: 2rem;
  }

  h2 {
    font-size: 1.65rem;
  }

  .container {
    padding: 0 1rem;
  }

  /* Nav mobile tweaks */
  .nav__inner {
    height: 64px;
    padding: 0 1rem;
  }

  .nav__logo {
    font-size: 1.1rem;
  }

  .nav__links {
    top: 64px;
  }

  /* Hero mobile */
  .hero {
    min-height: 70vh;
    padding-top: 64px;
  }

  .hero--page {
    min-height: 35vh;
  }

  .hero__badge {
    font-size: 0.75rem;
    padding: 0.4rem 0.75rem;
  }

  .hero__subtitle {
    font-size: 1rem;
  }

  .hero__actions {
    flex-direction: column;
  }

  .hero__actions .btn {
    width: 100%;
    justify-content: center;
    text-align: center;
  }

  /* Stats mobile */
  .stats {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.25rem;
    padding: 2rem 0;
  }

  .stat__number {
    font-size: 2rem;
  }

  .stat__label {
    font-size: 0.8rem;
  }

  /* Steps mobile */
  .step__number {
    width: 56px;
    height: 56px;
    font-size: 1.4rem;
  }

  /* Testimonial mobile */
  .testimonial {
    padding: 1.5rem;
  }

  .testimonial__quote {
    font-size: 1.1rem;
  }

  .testimonial__quote::before {
    font-size: 3rem;
    vertical-align: -1.2rem;
  }

  /* CTA mobile */
  .cta-section {
    padding: 3rem 0;
  }

  .cta__phone {
    font-size: 1.4rem;
  }

  /* Product grid mobile */
  .product-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
  }

  .product-item {
    padding: 1rem;
  }

  .product-item__icon {
    font-size: 1.5rem;
  }

  /* Benefit cards mobile */
  .benefit-cards {
    gap: 1rem;
  }

  /* Logo bar mobile */
  .logo-bar {
    gap: 1.5rem;
  }

  .logo-bar__item {
    font-size: 1rem;
  }

  /* Footer mobile */
  .footer {
    padding: 3rem 0 1.5rem;
  }

  /* Delivery map mobile */
  .delivery__map {
    height: 250px;
  }

  /* Split image mobile */
  .split__image {
    height: 220px;
  }

  /* Range card mobile */
  .range-card__image {
    height: 180px;
  }
}

/* --- Tablet (769px - 1024px) --- */
@media (min-width: 769px) and (max-width: 1024px) {
  .footer__grid {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-md);
  }

  .split__image {
    height: 380px;
  }

  .delivery__map {
    height: 350px;
  }
}

/* --- Touch-friendly tap targets --- */
@media (hover: none) and (pointer: coarse) {
  .nav__link {
    padding: 0.75rem 0;
    min-height: 44px;
    display: flex;
    align-items: center;
  }

  .btn {
    min-height: 48px;
  }

  .form__input,
  .form__textarea,
  .form__select {
    min-height: 48px;
    font-size: 16px; /* Prevents iOS zoom on focus */
  }

  .delivery__area-tag,
  .range-card__tag {
    padding: 0.5rem 1rem;
    min-height: 36px;
    display: inline-flex;
    align-items: center;
  }
}

/* --- Announcement bar mobile --- */
@media (max-width: 768px) {
  .announcement {
    font-size: 0.78rem;
    padding: 0.5rem 1rem;
  }
}

/* --- Safe area insets (notch phones) --- */
@supports (padding: env(safe-area-inset-bottom)) {
  .footer__bottom {
    padding-bottom: calc(var(--space-md) + env(safe-area-inset-bottom));
  }
}

/* --- Reduced motion preference --- */
@media (prefers-reduced-motion: reduce) {
  .fade-up {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .testimonial-marquee__track {
    animation: none;
    flex-wrap: wrap;
    justify-content: center;
  }

  html {
    scroll-behavior: auto;
  }

  * {
    transition-duration: 0.01ms !important;
  }
}

/* --- Print styles --- */
@media print {
  .nav,
  .announcement,
  .footer,
  .btn {
    display: none;
  }

  .hero {
    min-height: auto;
    padding: 2rem 0;
    background: white !important;
    color: black !important;
  }

  .hero__title,
  .hero__subtitle {
    color: black !important;
  }

  .section--dark,
  .section--primary {
    background: white !important;
    color: black !important;
  }

  .section--dark h2,
  .section--dark h3,
  .section--primary h2,
  .section--primary h3 {
    color: black !important;
  }
}

/* --- Password Gate Mobile --- */
@media (max-width: 480px) {
  #password-gate > div > div {
    padding: 24px 20px !important;
  }
  #password-gate > div > div > div:first-child {
    font-size: 1.5rem !important;
  }
}

/* --- Cookie Banner Mobile --- */
@media (max-width: 640px) {
  #cookie-banner > div {
    flex-direction: column !important;
    gap: 12px !important;
    text-align: center;
  }
  #cookie-banner > div > div:last-child {
    width: 100%;
    justify-content: center !important;
  }
  #cookie-banner > div > div:last-child button {
    flex: 1;
  }
}

/* --- Additional mobile fixes --- */
@media (max-width: 768px) {
  /* Ensure images don't overflow */
  img {
    max-width: 100%;
    height: auto;
  }
  
  /* Fix any tables that might overflow */
  table {
    display: block;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
  
  /* Ensure form elements are full width */
  input, textarea, select, button {
    max-width: 100%;
  }
}

/* --- Landscape phone fixes --- */
@media (max-height: 500px) and (orientation: landscape) {
  .hero {
    min-height: auto;
    padding: 80px 0 40px;
  }
}

/* ============================================
   SEGMENTS GRID — "Who We Supply" cards
   ============================================ */
.segments-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: var(--space-md);
  margin-top: var(--space-md);
}

.segment-card {
  background: var(--color-white);
  border: 1px solid var(--color-warm-gray);
  border-radius: 12px;
  padding: 1.75rem 1.5rem;
  text-align: left;
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}

.segment-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 32px rgba(26, 46, 56, 0.08);
  border-color: var(--color-primary);
}

.segment-card__icon {
  width: 44px;
  height: 44px;
  color: var(--color-primary);
  margin-bottom: 1rem;
}

.segment-card__icon svg {
  width: 100%;
  height: 100%;
}

.segment-card__title {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  color: var(--color-dark);
  margin-bottom: 0.5rem;
}

.segment-card__text {
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--color-text-light);
}

@media (max-width: 600px) {
  .segments-grid {
    grid-template-columns: 1fr;
  }
}


/* ============================================
   JOURNEY SCENE — "How ordering works"
   Animated van travelling afternoon → night → sunrise → morning
   ============================================ */
.journey {
  position: relative;
  width: 100%;
  margin: 3.5rem 0 2.5rem;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 12px 40px rgba(26, 46, 56, 0.18);
  aspect-ratio: 5 / 1;
  min-height: 200px;
  background: #1A2E38;
}

.journey__scene {
  display: block;
  width: 100%;
  height: 100%;
}

.journey__van {
  animation: van-drive 16s linear infinite;
  filter: drop-shadow(0 5px 7px rgba(0, 0, 0, 0.5));
}

/* Van is scaled 1.5× so it reads clearly against the road; translate sweeps it across */
@keyframes van-drive {
  0%   { transform: translate(-110px, 222px) scale(1.5); }
  100% { transform: translate(1320px, 222px) scale(1.5); }
}

.journey__roadline {
  animation: road-scroll 0.55s linear infinite;
}

@keyframes road-scroll {
  to { stroke-dashoffset: -40; }
}

@media (prefers-reduced-motion: reduce) {
  .journey__van     { animation: none; transform: translate(150px, 222px) scale(1.5); }
  .journey__roadline { animation: none; }
}

/* Step cards below the scene */
.journey__steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-md);
  margin-top: 2.5rem;
}

.journey__step {
  text-align: center;
  position: relative;
  padding: 0 0.75rem;
}

.journey__time {
  font-family: 'Oswald', var(--font-body);
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--color-text-light);
  margin-bottom: 0.5rem;
  display: inline-block;
  transition: color 0.4s ease, transform 0.4s ease;
}

/* Each step's time label pulses as the van passes its position */
.journey__step:nth-child(1) .journey__time { animation: time-pulse 16s linear infinite 0s; }
.journey__step:nth-child(2) .journey__time { animation: time-pulse 16s linear infinite 4s; }
.journey__step:nth-child(3) .journey__time { animation: time-pulse 16s linear infinite 8s; }
.journey__step:nth-child(4) .journey__time { animation: time-pulse 16s linear infinite 12s; }

@keyframes time-pulse {
  0%, 5%   { color: var(--color-text-light); transform: scale(1); }
  6%, 18%  { color: var(--color-accent); transform: scale(1.18); text-shadow: 0 0 16px rgba(196, 136, 58, 0.4); }
  19%, 100% { color: var(--color-text-light); transform: scale(1); text-shadow: none; }
}

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

.journey__title {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  color: var(--color-dark);
  margin-bottom: 0.5rem;
}

.journey__text {
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--color-text-light);
  margin: 0 auto;
  max-width: 24ch;
}

@media (max-width: 900px) {
  .journey {
    aspect-ratio: 4 / 1.6;
  }
  .journey__steps {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.75rem;
  }
}

@media (max-width: 520px) {
  .journey {
    aspect-ratio: 3 / 2;
  }
  .journey__steps {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }
}

/* ============================================
   MEET THE TEAMS — group photo cards
   ============================================ */
.teams-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-md);
  margin-top: var(--space-md);
}

.team-photo-card {
  background: var(--color-white);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 16px rgba(26, 46, 56, 0.06);
  transition: transform var(--transition), box-shadow var(--transition);
  display: flex;
  flex-direction: column;
}

.team-photo-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 40px rgba(26, 46, 56, 0.14);
}

.team-photo-card__photo {
  aspect-ratio: 4 / 3;
  background: linear-gradient(135deg, var(--color-warm-gray), var(--color-cream));
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-text-light);
  position: relative;
  overflow: hidden;
}

.team-photo-card__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.team-photo-card__placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.78rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  font-weight: 500;
  color: var(--color-text-light);
  opacity: 0.6;
}

.team-photo-card__placeholder svg {
  color: var(--color-primary);
  opacity: 0.5;
}

.team-photo-card__body {
  padding: 1.25rem 1.5rem 1.75rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.team-photo-card__name {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  color: var(--color-dark);
  margin-bottom: 0.5rem;
}

.team-photo-card__role {
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--color-text-light);
}

.teams-grid__note {
  text-align: center;
  font-size: 0.85rem;
  color: var(--color-text-light);
  font-style: italic;
  margin-top: 1.5rem;
  opacity: 0.75;
}

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

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