/* ==========================================================================
   819 Vending Company — shared stylesheet
   Brand palette:
     --ink       #142441  brand navy (from logo), headlines, footer bg
     --ink-2     #24395F  secondary dark surface
     --pink      #F0448C  froyo pink (primary accent / CTA)
     --pink-dark #D22E73  hover state
     --teal      #21D8B8  robotic/tech accent
     --cream     #FFF8F1  page background
     --cream-2   #FCEFE3  section alt background
     --paper     #FFFFFF  card surfaces
   ========================================================================== */

:root {
  --ink: #142441;
  --ink-2: #24395f;
  --pink: #f0448c;
  --pink-dark: #d22e73;
  --teal: #21d8b8;
  --cream: #fff8f1;
  --cream-2: #fcefe3;
  --paper: #ffffff;
  --text: #2c2438;
  --text-soft: #6b6178;
  --border: #ece2f0;
  --shadow: 0 10px 30px rgba(34, 25, 52, 0.08);
  --shadow-lg: 0 20px 50px rgba(34, 25, 52, 0.16);
  --radius: 18px;
  --radius-sm: 10px;
  --max: 1180px;
  font-size: 16px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: "Poppins", "Segoe UI", system-ui, -apple-system, sans-serif;
  color: var(--text);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
  line-height: 1.6;
}

h1, h2, h3, h4 {
  font-family: "Playfair Display", Georgia, "Times New Roman", serif;
  color: var(--ink);
  margin: 0 0 0.5em;
  line-height: 1.15;
  font-weight: 700;
}

h1 { font-size: clamp(2.1rem, 5vw, 3.4rem); }
h2 { font-size: clamp(1.6rem, 3.4vw, 2.4rem); }
h3 { font-size: 1.3rem; }

p { margin: 0 0 1em; color: var(--text-soft); }

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

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

.container {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 24px;
}

.section {
  padding: 88px 0;
}

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

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--pink-dark);
  background: rgba(240, 68, 140, 0.1);
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 18px;
}

.section-head {
  max-width: 640px;
  margin: 0 auto 56px;
  text-align: center;
}

.section-head p { font-size: 1.05rem; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 15px 30px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.98rem;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease, color 0.15s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }

.btn-primary {
  background: var(--pink);
  color: #fff;
  box-shadow: 0 12px 24px rgba(240, 68, 140, 0.32);
}
.btn-primary:hover { background: var(--pink-dark); }

.btn-dark {
  background: var(--ink);
  color: #fff;
  box-shadow: 0 12px 24px rgba(34, 25, 52, 0.25);
}
.btn-dark:hover { background: var(--ink-2); }

.btn-outline {
  background: transparent;
  border-color: rgba(255, 255, 255, 0.5);
  color: #fff;
}
.btn-outline:hover { background: rgba(255, 255, 255, 0.12); }

.btn-outline-dark {
  background: transparent;
  border-color: var(--ink);
  color: var(--ink);
}
.btn-outline-dark:hover { background: var(--ink); color: #fff; }

.btn-block { width: 100%; }

/* ---------- Header / Nav ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 248, 241, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 1.15rem;
  color: var(--ink);
}

.brand-mark {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--pink), var(--teal));
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 1.2rem;
}

.brand small {
  display: block;
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-soft);
}

.brand-logo {
  height: 32px;
  width: auto;
  display: block;
}

.footer-brand .brand-logo {
  height: 38px;
}

.brand-logo-light {
  filter: brightness(0) invert(1);
}

.brand-tagline {
  font-family: "Poppins", sans-serif;
  font-size: 0.6rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-soft);
  line-height: 1.4;
  border-left: 1px solid var(--border);
  padding-left: 12px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 30px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links a {
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--ink);
  position: relative;
  padding: 4px 0;
}
.nav-links a.active,
.nav-links a:hover { color: var(--pink-dark); }

.nav-links .nav-tech a {
  font-size: 1.05rem;
  line-height: 1;
  display: flex;
  align-items: center;
  opacity: 0.6;
  border-left: 1px solid var(--border);
  padding-left: 16px;
  filter: grayscale(1);
}
.nav-links .nav-tech a:hover { opacity: 1; filter: none; }
.nav-tech-label { display: none; }

.nav-cta { display: flex; align-items: center; gap: 16px; }
.nav-phone {
  font-weight: 700;
  font-size: 0.92rem;
  color: var(--ink);
  display: flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}
.nav-toggle span {
  width: 24px;
  height: 2.5px;
  background: var(--ink);
  border-radius: 2px;
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  background: radial-gradient(circle at 15% 20%, #24395f 0%, var(--ink) 55%, #0a1526 100%);
  color: #fff;
  padding: 100px 0 120px;
}

.hero-glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  opacity: 0.55;
  z-index: 0;
}
.hero-glow.one { width: 340px; height: 340px; background: var(--pink); top: -80px; right: -60px; }
.hero-glow.two { width: 260px; height: 260px; background: var(--teal); bottom: -60px; left: -40px; opacity: 0.35; }

.hero-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 56px;
  align-items: center;
}

.hero h1 { color: #fff; }
.hero .lede { color: rgba(255, 255, 255, 0.78); font-size: 1.12rem; max-width: 520px; }

.hero-cta { display: flex; gap: 16px; flex-wrap: wrap; margin-top: 32px; }

.hero-stats {
  display: flex;
  gap: 34px;
  margin-top: 48px;
  flex-wrap: wrap;
}
.hero-stats div strong {
  display: block;
  font-size: 1.7rem;
  color: var(--teal);
}
.hero-stats div span {
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.65);
}

.hero-visual {
  position: relative;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 28px;
  padding: 34px;
  backdrop-filter: blur(6px);
}

.machine-card {
  background: linear-gradient(160deg, #ffffff 0%, #fdf1f7 100%);
  border-radius: 20px;
  padding: 26px;
  color: var(--ink);
  box-shadow: var(--shadow-lg);
}

.machine-card .badge {
  display: inline-block;
  background: var(--teal);
  color: #0e2e29;
  font-weight: 700;
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 5px 12px;
  border-radius: 999px;
  margin-bottom: 14px;
}

.swirl-illustration {
  width: 100%;
  height: auto;
  margin: 10px 0 18px;
}

.machine-photo {
  width: 100%;
  height: auto;
  border-radius: 14px;
  margin: 6px 0 18px;
  display: block;
}

/* ---------- Page hero (interior pages) ---------- */
.page-hero {
  background: linear-gradient(160deg, var(--ink) 0%, #24395f 100%);
  color: #fff;
  padding: 76px 0 64px;
  text-align: center;
}
.page-hero h1 { color: #fff; }
.page-hero p { color: rgba(255,255,255,0.75); max-width: 620px; margin: 0 auto; }

/* ---------- Cards / Grids ---------- */
.grid {
  display: grid;
  gap: 28px;
}
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

.card {
  background: var(--paper);
  border-radius: var(--radius);
  padding: 32px 28px;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
}

.card .icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  margin-bottom: 18px;
  background: rgba(240, 68, 140, 0.1);
  color: var(--pink-dark);
}

.card.alt .icon { background: rgba(33, 216, 184, 0.14); color: #0e8a76; }

.step-num {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--ink);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  margin-bottom: 16px;
}

/* ---------- Split sections ---------- */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.visual-block {
  background: linear-gradient(160deg, var(--cream-2), #fff);
  border-radius: 24px;
  border: 1px solid var(--border);
  padding: 40px;
  text-align: center;
}

.check-list { list-style: none; margin: 0; padding: 0; }
.check-list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 14px;
  color: var(--text);
  font-weight: 500;
}
.check-list li .dot {
  flex: none;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: rgba(33, 216, 184, 0.18);
  color: #0e8a76;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  margin-top: 2px;
}

/* ---------- Flavor gallery ---------- */
.flavor-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 26px;
}
.flavor-tile {
  width: 128px;
  text-align: center;
}
.flavor-tile img {
  width: 112px;
  height: 112px;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: var(--shadow);
  margin: 0 auto 10px;
  display: block;
}
.flavor-tile span {
  font-weight: 600;
  font-size: 0.85rem;
  color: var(--ink);
  display: block;
}

/* ---------- Flavor / topping chips ---------- */
.chip-row { display: flex; flex-wrap: wrap; gap: 10px; }
.chip {
  background: var(--paper);
  border: 1px solid var(--border);
  padding: 9px 16px;
  border-radius: 999px;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--ink);
}

/* ---------- Fully Managed section ---------- */
.managed-section {
  position: relative;
  overflow: hidden;
  background: radial-gradient(circle at 85% 0%, #24395f 0%, var(--ink) 55%, #0a1526 100%);
  color: #fff;
}

.managed-section .section-head h2 { color: #fff; }
.managed-section .section-head p { color: rgba(255, 255, 255, 0.72); }

.managed-card {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--radius);
  padding: 32px 28px;
  backdrop-filter: blur(6px);
  transition: transform 0.2s ease, background 0.2s ease;
}
.managed-card:hover {
  transform: translateY(-4px);
  background: rgba(255, 255, 255, 0.09);
}

.managed-card .icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  margin-bottom: 18px;
  background: rgba(240, 68, 140, 0.18);
}

.managed-card h3 { color: #fff; margin-bottom: 12px; }

.managed-card p {
  color: rgba(255, 255, 255, 0.75);
  font-size: 0.95rem;
}

.managed-card .check-list li {
  color: rgba(255, 255, 255, 0.9);
  font-weight: 500;
  font-size: 0.95rem;
}
.managed-card .check-list li .dot {
  background: rgba(33, 216, 184, 0.22);
  color: #6df0d8;
}

/* ---------- CTA band ---------- */
.cta-band {
  background: linear-gradient(120deg, var(--pink) 0%, #ff7ab0 100%);
  color: #fff;
  border-radius: 28px;
  padding: 56px;
  text-align: center;
  margin: 0 24px;
  box-shadow: var(--shadow-lg);
}
.cta-band h2 { color: #fff; }
.cta-band p { color: rgba(255,255,255,0.9); max-width: 520px; margin: 0 auto 28px; }
.cta-band .btn-group { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

/* ---------- Forms ---------- */
.form-card {
  background: var(--paper);
  border-radius: var(--radius);
  padding: 40px;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
}

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }

.field { margin-bottom: 20px; }
.field label {
  display: block;
  font-weight: 600;
  font-size: 0.88rem;
  color: var(--ink);
  margin-bottom: 7px;
}
.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 13px 15px;
  border-radius: var(--radius-sm);
  border: 1.5px solid var(--border);
  font-family: inherit;
  font-size: 0.96rem;
  background: #fffdfb;
  color: var(--text);
}
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--pink);
}
.field textarea { resize: vertical; min-height: 110px; }
.field-note { font-size: 0.8rem; color: var(--text-soft); margin-top: 6px; }

.form-status {
  margin-top: 16px;
  font-size: 0.9rem;
  font-weight: 600;
}
.form-status.success { color: #0e8a76; }
.form-status.error { color: var(--pink-dark); }

/* ---------- Contact info list ---------- */
.contact-list { list-style: none; margin: 0 0 30px; padding: 0; }
.contact-list li {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  margin-bottom: 22px;
}
.contact-list .icon-sm {
  flex: none;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: rgba(240, 68, 140, 0.1);
  color: var(--pink-dark);
  display: flex;
  align-items: center;
  justify-content: center;
}
.contact-list strong { display: block; color: var(--ink); }

/* ---------- Locations page ---------- */
.map-frame {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  height: 460px;
}
.map-frame iframe { width: 100%; height: 100%; border: 0; }
.map-frame #map { width: 100%; height: 100%; }
.map-frame .leaflet-popup-content { font-family: inherit; font-size: 0.85rem; line-height: 1.5; }

.location-list { list-style: none; margin: 0; padding: 0; }
.location-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 18px 20px;
  background: var(--paper);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  margin-bottom: 12px;
}
.location-item h4 { margin: 0 0 4px; }
.location-item span.tag {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #0e8a76;
  background: rgba(33, 216, 184, 0.14);
  padding: 4px 10px;
  border-radius: 999px;
}
.empty-state {
  text-align: center;
  padding: 60px 30px;
  border: 2px dashed var(--border);
  border-radius: var(--radius);
  color: var(--text-soft);
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--ink);
  color: rgba(255, 255, 255, 0.72);
  padding: 64px 0 28px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}
.footer-grid h4 {
  color: #fff;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 18px;
}
.footer-grid ul { list-style: none; margin: 0; padding: 0; }
.footer-grid li { margin-bottom: 10px; }
.footer-grid a:hover { color: var(--teal); }
.footer-brand p { color: rgba(255,255,255,0.6); max-width: 280px; }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 24px;
  font-size: 0.82rem;
  flex-wrap: wrap;
  gap: 10px;
}

/* ---------- Utilities ---------- */
.text-center { text-align: center; }
.mt-0 { margin-top: 0; }
.badge-soft {
  display: inline-block;
  background: rgba(33, 216, 184, 0.14);
  color: #0e8a76;
  font-weight: 700;
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 5px 12px;
  border-radius: 999px;
}

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .hero-inner { grid-template-columns: 1fr; }
  .split { grid-template-columns: 1fr; }
  .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .cta-band { margin: 0 16px; padding: 40px 26px; }
}

/* Nav switches to the hamburger menu earlier than the rest of the layout
   collapses, since the nav row (brand + links + phone + CTA) runs out of
   room before card grids/forms/footer do. */
@media (max-width: 1060px) {
  .nav-links, .nav-cta .nav-phone { display: none; }
  .nav-toggle { display: flex; }
  .nav.open .nav-links {
    display: flex;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    background: var(--cream);
    padding: 20px 24px 28px;
    gap: 18px;
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow);
  }
  .nav-links .nav-tech a {
    border-left: none; padding-left: 0; padding-top: 14px; border-top: 1px solid var(--border);
    opacity: 1; filter: none; font-weight: 600; font-size: 0.95rem; color: var(--ink); gap: 8px;
  }
  .nav-tech-label { display: inline; }
}

@media (max-width: 480px) {
  .brand-tagline { display: none; }
}

@media (max-width: 720px) {
  .grid-3, .grid-4, .grid-2 { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
  .section { padding: 64px 0; }
  .location-item { flex-direction: column; align-items: flex-start; }
}
