@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;500;600;700;800&display=swap');

@font-face {
  font-family: 'Horizon';
  src: url('fonts/Horizon_Regular.otf') format('opentype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

:root {
  --amber: #FF6B35;
  --amber-hover: #e85a25;
  --amber-light: #fff3ec;
  --charcoal: #2D3142;
  --charcoal-light: #3d4256;
  --offwhite: #F7F7F2;
  --white: #ffffff;
  --border: #e0dfd8;
  --muted: #5c5e6a;
  --focus: #FF6B35;

  --font-head: 'Horizon', 'Montserrat', sans-serif;
  --font-body: 'Montserrat', sans-serif;
  --font-data: 'Montserrat', sans-serif;

  --space-xs: 8px;
  --space-sm: 16px;
  --space-md: 24px;
  --space-lg: 48px;
  --space-xl: 96px;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  font-size: 18px;
  line-height: 1.7;
  color: var(--charcoal);
  background: var(--offwhite);
  -webkit-font-smoothing: antialiased;
}

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

a { color: var(--amber); text-decoration-skip-ink: auto; }
a:hover { color: var(--amber-hover); }

:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
  border-radius: 4px;
}

.skip-link {
  position: absolute;
  top: -100%;
  left: var(--space-sm);
  background: var(--amber);
  color: var(--white);
  padding: var(--space-xs) var(--space-sm);
  border-radius: 0 0 6px 6px;
  font-weight: 600;
  z-index: 9999;
  text-decoration: none;
}
.skip-link:focus { top: 0; }

.container {
  width: min(1060px, 90%);
  margin: 0 auto;
}

/* ─── HEADER ─── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 200;
  background: var(--white);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--space-sm) 0;
  gap: var(--space-sm);
}

.logo {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 1.25rem;
  letter-spacing: 0.04em;
  color: var(--charcoal);
  text-decoration: none;
}

.menu-toggle {
  display: none;
  background: none;
  border: 1px solid var(--border);
  border-radius: 6px;
  font-size: 1.35rem;
  padding: 6px 10px;
  cursor: pointer;
  color: var(--charcoal);
}

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

.nav-list > li > a,
.nav-label {
  text-decoration: none;
  color: var(--charcoal);
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 0.92rem;
  letter-spacing: 0.02em;
  cursor: default;
  transition: color 0.15s;
}

.nav-list > li > a { cursor: pointer; }
.nav-list > li > a:hover { color: var(--amber); }

/* dropdown */
.has-dropdown { position: relative; }

.dropdown {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  list-style: none;
  min-width: 180px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 8px;
  box-shadow: 0 12px 32px rgba(45,49,66,0.10);
  padding: var(--space-xs) 0;
  display: none;
  z-index: 300;
}

.has-dropdown:hover > .dropdown,
.has-dropdown:focus-within > .dropdown { display: block; }

.dropdown-item {
  display: block;
  padding: 8px 16px;
  font-family: var(--font-head);
  font-weight: 500;
  font-size: 0.88rem;
  color: var(--muted);
  cursor: default;
  transition: background 0.12s;
}
.dropdown-item:hover { background: var(--offwhite); }

/* side dropdown */
.has-side-dropdown { position: relative; }

.side-dropdown {
  position: absolute;
  top: 0;
  left: calc(100% + 4px);
  list-style: none;
  min-width: 180px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 8px;
  box-shadow: 0 12px 32px rgba(45,49,66,0.10);
  padding: var(--space-xs) 0;
  display: none;
  z-index: 310;
}

.has-side-dropdown:hover > .side-dropdown,
.has-side-dropdown:focus-within > .side-dropdown { display: block; }

/* ─── SECTIONS ─── */
.section {
  padding: var(--space-xl) 0;
}
.section-alt {
  background: var(--white);
}

h1, h2, h3, h4 { font-family: var(--font-head); line-height: 1.2; }

h2 {
  font-size: 36px;
  font-weight: 800;
  margin-bottom: var(--space-sm);
}
h3 {
  font-size: 24px;
  font-weight: 700;
  margin-top: var(--space-lg);
  margin-bottom: var(--space-xs);
}
h4 {
  font-size: 18px;
  font-weight: 600;
  margin-top: var(--space-md);
  margin-bottom: 4px;
}

p { max-width: 72ch; margin-bottom: var(--space-sm); }

ol, ul { padding-left: 1.4em; margin-bottom: var(--space-sm); max-width: 72ch; }
li { margin-bottom: 6px; }

/* ─── HERO ─── */
.hero {
  padding: var(--space-xl) 0 var(--space-lg);
  background: var(--white);
}

.award-badge {
  background: var(--offwhite);
  border-left: 4px solid var(--amber);
  border-radius: 8px;
  padding: var(--space-sm) var(--space-md);
  margin-bottom: var(--space-lg);
}
.award-badge p { margin-bottom: 4px; }
.award-badge .award-title { font-family: var(--font-head); font-weight: 700; }

.hero-headline {
  font-family: var(--font-head);
  font-size: 48px;
  font-weight: 800;
  line-height: 1.05;
  margin-bottom: var(--space-md);
}

.hero-sub {
  font-size: 1.1rem;
  color: var(--charcoal);
  margin-bottom: var(--space-md);
}

.hero-detail {
  color: var(--muted);
  margin-bottom: var(--space-sm);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
  margin-top: var(--space-md);
}

/* ─── TRUST BAR ─── */
.trust-bar {
  padding: var(--space-lg) 0;
  background: var(--charcoal);
  color: var(--white);
}

.stat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: var(--space-md);
}

.stat-card {
  text-align: center;
  padding: var(--space-md);
}

.stat-number {
  display: block;
  font-family: var(--font-data);
  font-size: 40px;
  font-weight: 700;
  color: var(--amber);
  line-height: 1.1;
}

.stat-label {
  display: block;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  margin-top: 6px;
  text-transform: uppercase;
}

.stat-context {
  display: block;
  font-size: 0.82rem;
  color: #a9aab3;
  margin-top: 4px;
}

/* ─── FOUNDER STORY ─── */
.founder-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: var(--space-lg) var(--space-md);
  margin-bottom: var(--space-lg);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--space-md);
}

.founder-photo {
  width: 100%;
  max-width: 360px;
  aspect-ratio: 4/3;
  background: var(--offwhite);
  border: 1px dashed var(--border);
  border-radius: 8px;
  display: grid;
  place-items: center;
  color: var(--muted);
  font-size: 0.9rem;
}

.founder-quote {
  font-family: var(--font-head);
  font-size: 1.3rem;
  font-style: italic;
  line-height: 1.5;
  border-left: 4px solid var(--amber);
  padding-left: var(--space-md);
  max-width: 62ch;
}

.founder-credit {
  font-family: var(--font-head);
  font-weight: 600;
  color: var(--muted);
}

.metrics-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: var(--space-sm);
  margin-top: var(--space-md);
}

.metric-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: var(--space-md);
  text-align: center;
}

.metric-card .stat-number { font-size: 32px; color: var(--amber); }
.metric-card .stat-label {
  font-size: 0.8rem;
  color: var(--muted);
  margin-top: 4px;
}

/* ─── PROGRESSIVE DISCLOSURE ─── */
details {
  border: 1px solid var(--border);
  border-radius: 10px;
  margin-bottom: var(--space-sm);
  background: var(--white);
  overflow: hidden;
}

details[open] { background: var(--white); }

summary {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.1rem;
  padding: var(--space-sm) var(--space-md);
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: background 0.15s;
  user-select: none;
}
summary::-webkit-details-marker { display: none; }
summary::after {
  content: '+';
  font-family: var(--font-data);
  font-size: 1.3rem;
  color: var(--amber);
  flex-shrink: 0;
  margin-left: var(--space-sm);
  transition: transform 0.2s;
}
details[open] > summary::after {
  content: '−';
}

summary:hover { background: var(--offwhite); }

.details-body {
  padding: 0 var(--space-md) var(--space-md);
}

/* ─── PHILOSOPHY CARDS ─── */
.philosophy-sub {
  color: var(--muted);
  font-size: 1.05rem;
  margin-bottom: var(--space-md);
}

/* ─── CTA SECTION ─── */
.cta-section {
  background: var(--charcoal);
  color: var(--white);
}

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

.cta-lead {
  font-family: var(--font-data);
  font-size: 1rem;
  color: var(--amber);
  margin-bottom: var(--space-md);
}

.cta-list {
  list-style: none;
  padding-left: 0;
}
.cta-list li {
  padding-left: var(--space-md);
  position: relative;
  margin-bottom: 10px;
}

/* ─── COMMUNITY CARDS ─── */
.community-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: var(--space-sm);
  margin-top: var(--space-md);
}

.community-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: var(--space-md);
}

.community-card h4 { margin-top: 0; margin-bottom: var(--space-xs); }

/* ─── BUTTONS ─── */
.btn {
  display: inline-block;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 0.95rem;
  text-decoration: none;
  padding: 14px 28px;
  border-radius: 8px;
  transition: background 0.15s, color 0.15s, box-shadow 0.15s;
  cursor: pointer;
  border: none;
  min-height: 48px;
  line-height: 1;
}

.btn-primary {
  background: var(--amber);
  color: var(--white);
}
.btn-primary:hover {
  background: var(--amber-hover);
  color: var(--white);
  box-shadow: 0 4px 16px rgba(255,107,53,0.25);
}

.btn-secondary {
  background: transparent;
  color: var(--charcoal);
  border: 2px solid var(--charcoal);
}
.btn-secondary:hover {
  background: var(--charcoal);
  color: var(--white);
}

.cta-section .btn-secondary {
  color: var(--white);
  border-color: var(--white);
}
.cta-section .btn-secondary:hover {
  background: var(--white);
  color: var(--charcoal);
}

.btn-ghost {
  background: none;
  color: var(--amber);
  padding: 0;
  text-decoration: underline;
  text-underline-offset: 3px;
  min-height: auto;
  border-radius: 0;
}
.btn-ghost:hover { color: var(--amber-hover); }

/* ─── CONTACT ─── */
.contact-sub {
  color: var(--muted);
  font-size: 1.05rem;
  margin-bottom: var(--space-md);
}

.social-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: var(--space-sm);
  margin: var(--space-md) 0;
}

.social-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: var(--space-md);
}
.social-card h4 { margin-top: 0; }

.img-placeholder {
  border: 1px dashed var(--border);
  border-radius: 8px;
  min-height: 120px;
  display: grid;
  place-items: center;
  margin-top: var(--space-sm);
  background: var(--offwhite);
  color: var(--muted);
  font-size: 0.85rem;
}

.map-wrap {
  margin: var(--space-sm) 0 var(--space-md);
}
.map-wrap iframe {
  width: 100%;
  min-height: 340px;
  border: 1px solid var(--border);
  border-radius: 10px;
}

/* ─── FOOTER ─── */
.site-footer {
  background: var(--charcoal);
  color: #a9aab3;
  padding: var(--space-lg) 0 var(--space-md);
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: var(--space-lg);
  margin-bottom: var(--space-lg);
}

.footer-col h4 {
  font-family: var(--font-head);
  color: var(--white);
  font-size: 0.9rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-top: 0;
  margin-bottom: var(--space-sm);
}

.footer-col ul {
  list-style: none;
  padding: 0;
}
.footer-col li { margin-bottom: 8px; }
.footer-col a {
  color: #a9aab3;
  text-decoration: none;
  font-size: 0.88rem;
}
.footer-col a:hover { color: var(--amber); }

.footer-bottom {
  border-top: 1px solid #444760;
  padding-top: var(--space-sm);
  font-size: 0.82rem;
  text-align: center;
}

/* ─── ACCESSIBILITY STATEMENT ─── */
.a11y-card {
  background: var(--offwhite);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: var(--space-md);
  margin-top: var(--space-md);
}
.a11y-card h4 { margin-top: 0; }
.a11y-card ul { list-style: none; padding: 0; }
.a11y-card li::before { content: '✓ '; color: var(--amber); font-weight: 700; }

/* ─── PHOTO SLOTS ─── */
.photo-slot {
  border: 2px dashed var(--border);
  border-radius: 10px;
  background: var(--offwhite);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: var(--space-md);
  gap: 6px;
  color: var(--muted);
  font-size: 0.82rem;
  overflow: hidden;
}

.photo-slot__label {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--charcoal);
}
.photo-slot__spec {
  font-family: var(--font-data);
  font-size: 0.72rem;
  letter-spacing: 0.02em;
  color: #94968e;
}
.photo-slot__desc { max-width: 44ch; }

.photo-slot--hero      { aspect-ratio: 16/9; width: 100%; }
.photo-slot--portrait   { aspect-ratio: 5/7; }
.photo-slot--square     { aspect-ratio: 1; }
.photo-slot--landscape  { aspect-ratio: 3/2; width: 100%; }
.photo-slot--wide       { aspect-ratio: 7/3; width: 100%; }
.photo-slot--icon       { width: 120px; height: 120px; border-radius: 50%; }
.photo-slot--infographic { aspect-ratio: 3/2; width: 100%; }

/* photo grids */
.photo-grid {
  display: grid;
  gap: var(--space-sm);
  margin: var(--space-md) 0;
}
.photo-grid--3 { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.photo-grid--4 { grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
.photo-grid--9 { grid-template-columns: repeat(3, 1fr); }

/* horizontal scroll gallery */
.gallery-scroll {
  display: flex;
  gap: var(--space-sm);
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding-bottom: var(--space-sm);
  margin: var(--space-md) 0;
  -webkit-overflow-scrolling: touch;
}
.gallery-scroll > * {
  flex: 0 0 min(360px, 80%);
  scroll-snap-align: start;
}

/* ─── HERO BACKGROUND ─── */
.hero-bg {
  position: relative;
  background-size: cover;
  background-position: center right;
  min-height: 540px;
  display: flex;
  align-items: center;
}
.hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(45,49,66,0.40);
  z-index: 1;
}
.hero-bg > .container {
  position: relative;
  z-index: 2;
  color: var(--white);
}
.hero-bg .hero-headline,
.hero-bg .hero-sub,
.hero-bg .award-badge { color: var(--white); }
.hero-bg .award-badge { background: rgba(255,255,255,0.12); border-color: rgba(255,255,255,0.2); }
.hero-bg .award-badge a { color: var(--amber); }

/* ─── PRODUCT SHOWCASE ─── */
.product-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-lg);
  align-items: start;
  margin-bottom: var(--space-lg);
}

.product-info h3:first-child { margin-top: 0; }

.product-price {
  font-family: var(--font-data);
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--amber);
}

/* ─── FAQ ─── */
.faq-section details { background: var(--offwhite); }
.faq-section details[open] { background: var(--white); }

/* ─── VENDING PAGE ─── */
.vending-hero {
  position: relative;
  width: 100%;
  overflow: hidden;
}

.vending-hero__img {
  width: 100%;
  height: 500px;
  object-fit: cover;
  display: block;
}

.vending-hero__content {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: var(--space-xl) 0 var(--space-lg);
  background: linear-gradient(transparent, rgba(45,49,66,0.85));
}

.vending-hero__content h1 {
  font-family: var(--font-head);
  font-size: 48px;
  font-weight: 800;
  color: var(--white);
  margin-bottom: 4px;
}

.vending-hero__content p {
  font-size: 1.15rem;
  color: rgba(255,255,255,0.9);
  font-family: var(--font-head);
  font-weight: 500;
}

.vending-intro {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-lg);
  align-items: center;
  margin-bottom: var(--space-lg);
}

.vending-intro__img {
  width: 100%;
  border-radius: 10px;
  object-fit: cover;
  box-shadow: 0 8px 24px rgba(45,49,66,0.12);
}

.vending-feature-img {
  width: 100%;
  border-radius: 10px;
  margin-top: var(--space-sm);
}

.vending-machines-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--space-sm);
  margin: var(--space-md) 0 var(--space-lg);
}

.vending-machines-grid img {
  width: 100%;
  border-radius: 10px;
  object-fit: cover;
  aspect-ratio: 4/3;
  box-shadow: 0 4px 16px rgba(45,49,66,0.10);
  transition: transform 0.2s, box-shadow 0.2s;
}

.vending-machines-grid img:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 28px rgba(45,49,66,0.18);
}

.vending-campaign-scroll {
  display: flex;
  gap: var(--space-sm);
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding-bottom: var(--space-sm);
  margin: var(--space-md) 0 var(--space-lg);
  -webkit-overflow-scrolling: touch;
}

.vending-campaign-scroll img {
  flex: 0 0 min(380px, 80%);
  scroll-snap-align: start;
  border-radius: 10px;
  object-fit: cover;
  aspect-ratio: 4/3;
  box-shadow: 0 4px 16px rgba(45,49,66,0.10);
}

.vending-location-img {
  width: 100%;
  border-radius: 10px;
  margin: var(--space-md) 0 var(--space-lg);
  box-shadow: 0 4px 16px rgba(45,49,66,0.10);
}

/* ─── PHOTO SLOTS WITH IMAGES ─── */
.photo-slot--has-image {
  padding: 0;
  border: none;
  background: transparent;
}

.photo-slot--has-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 10px;
}

/* ─── PARTNER LOGOS ─── */
.partner-logos {
  margin-top: var(--space-md);
}

@media (max-width: 768px) {
  .product-layout { grid-template-columns: 1fr; }
  .photo-grid--9 { grid-template-columns: repeat(3, 1fr); }
  .gallery-scroll > * { flex: 0 0 85%; }
  .vending-intro { grid-template-columns: 1fr; }
  .vending-hero__img { height: 300px; }
  .vending-hero__content h1 { font-size: 32px; }
  .vending-hero__content { padding: var(--space-lg) 0 var(--space-md); }
}

/* ─── RESPONSIVE ─── */
@media (max-width: 768px) {
  body { font-size: 16px; }

  .hero-headline { font-size: 32px; }
  h2 { font-size: 24px; }
  h3 { font-size: 20px; }

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

  .menu-toggle { display: block; }

  #primary-nav {
    display: none;
    width: 100%;
  }
  #primary-nav.open { display: block; }

  .nav-list {
    flex-direction: column;
    align-items: flex-start;
    gap: var(--space-sm);
    padding-top: var(--space-sm);
  }

  .header-inner { flex-wrap: wrap; }

  .dropdown {
    position: static;
    box-shadow: none;
    border: none;
    padding-left: var(--space-sm);
    display: block;
  }

  .side-dropdown {
    position: static;
    box-shadow: none;
    border: none;
    padding-left: var(--space-sm);
    display: block;
  }

  .stat-number { font-size: 32px; }
  .stat-grid { grid-template-columns: 1fr; }
  .metrics-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }

  .hero-actions { flex-direction: column; }
  .hero-actions .btn { width: 100%; text-align: center; }

  .founder-card { padding: var(--space-md); }
}

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