/* ============================================================
   Shift Break Vending — Design Tokens
   ============================================================ */
:root {
  /* Brand colors — see accessibility notes below */
  --color-navy: #152238;        /* primary text on light bg, dark section bg */
  --color-navy-soft: #24314A;
  --color-coral: #E85A3B;       /* decorative fills + text ONLY on navy bg (4.5:1) */
  --color-coral-deep: #C2452B;  /* buttons + coral text on light bg (5:1) */
  --color-cream: #F4EFE3;
  --color-cream-deep: #EAE0CC;
  --color-white: #FFFFFF;

  --color-bg: var(--color-white);
  --color-bg-alt: var(--color-cream);
  --color-text: var(--color-navy);
  --color-text-muted: #4B5670;
  --color-border: #E4DFD2;

  --font-display: 'Fredoka', ui-rounded, 'Segoe UI', sans-serif;
  --font-body: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;

  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.5rem;
  --space-6: 2rem;
  --space-8: 3rem;
  --space-10: 4rem;
  --space-12: 6rem;
  --space-16: 8rem;

  --radius-sm: 10px;
  --radius-md: 18px;
  --radius-lg: 28px;
  --radius-full: 999px;

  --shadow-sm: 0 2px 10px rgba(21, 34, 56, 0.08);
  --shadow-md: 0 12px 32px rgba(21, 34, 56, 0.12);
  --shadow-lg: 0 24px 60px rgba(21, 34, 56, 0.18);

  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --dur-fast: 150ms;
  --dur-base: 250ms;
  --dur-slow: 400ms;

  --container-max: 1200px;
  --header-h: 76px;
}

/* ============================================================
   Reset
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
html, body { min-height: 100dvh; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--color-text);
  background: var(--color-bg);
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul, ol { margin: 0; padding: 0; list-style: none; }
button { font: inherit; cursor: pointer; }
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 600; margin: 0; color: var(--color-navy); line-height: 1.15; }
p { margin: 0; }
input, textarea, select { font: inherit; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; scroll-behavior: auto !important; }
}

.skip-link {
  position: absolute; left: 0; top: -60px;
  background: var(--color-navy); color: var(--color-white);
  padding: var(--space-3) var(--space-5); border-radius: 0 0 var(--radius-sm) 0;
  z-index: 1000; transition: top var(--dur-base) var(--ease-out);
}
.skip-link:focus { top: 0; }

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

.container {
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: var(--space-5);
}

/* Progressive-enhancement reveal: only hides content once JS confirms it can animate it back in */
.js [data-reveal] { opacity: 0; }
.js [data-reveal].revealed { opacity: 1; }
@media (prefers-reduced-motion: reduce) {
  .js [data-reveal] { opacity: 1 !important; transform: none !important; }
}

.icon { width: 20px; height: 20px; flex-shrink: 0; }

/* ============================================================
   Buttons
   ============================================================ */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--space-2);
  font-family: var(--font-body); font-weight: 700; font-size: 0.95rem;
  padding: 0.9rem 1.6rem; border-radius: var(--radius-full);
  border: 2px solid transparent; cursor: pointer;
  transition: transform var(--dur-fast) var(--ease-out), box-shadow var(--dur-base) var(--ease-out), background-color var(--dur-base) var(--ease-out);
  white-space: nowrap;
}
.btn:active { transform: scale(0.97); }
.btn-primary { background: var(--color-coral-deep); color: var(--color-white); box-shadow: var(--shadow-sm); }
.btn-primary:hover { background: #A93A22; box-shadow: var(--shadow-md); transform: translateY(-2px); }
.btn-ghost { background: transparent; color: var(--color-navy); border-color: var(--color-navy); }
.btn-ghost:hover { background: var(--color-navy); color: var(--color-white); transform: translateY(-2px); }
.btn-large { padding: 1.05rem 1.9rem; font-size: 1rem; }
.btn-small { padding: 0.65rem 1.25rem; font-size: 0.875rem; }
.btn-block { width: 100%; }

/* ============================================================
   Header
   ============================================================ */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(244, 239, 227, 0.85);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid transparent;
  transition: box-shadow var(--dur-base) var(--ease-out), border-color var(--dur-base) var(--ease-out), background-color var(--dur-base) var(--ease-out);
}
.site-header.is-scrolled { background: rgba(244, 239, 227, 0.97); border-color: var(--color-border); box-shadow: var(--shadow-sm); }

.header-inner { display: flex; align-items: center; justify-content: space-between; height: var(--header-h); gap: var(--space-4); }

.brand { display: flex; align-items: center; gap: var(--space-3); }
.brand-mark { border-radius: 9px; }
.brand-text { display: flex; flex-direction: column; line-height: 1.05; }
.brand-name { font-family: var(--font-display); font-weight: 600; font-size: 1.15rem; color: var(--color-navy); }
.brand-sub { font-size: 0.62rem; font-weight: 700; letter-spacing: 0.18em; color: var(--color-coral-deep); }

.main-nav ul { display: flex; gap: var(--space-6); }
.main-nav a {
  font-weight: 600; font-size: 0.95rem; color: var(--color-navy); position: relative; padding: var(--space-2) 0;
}
.main-nav a::after {
  content: ""; position: absolute; left: 0; right: 100%; bottom: -2px; height: 2px;
  background: var(--color-coral-deep); transition: right var(--dur-base) var(--ease-out);
}
.main-nav a:hover::after, .main-nav a:focus-visible::after { right: 0; }

.header-actions { display: flex; align-items: center; gap: var(--space-3); }
.phone-pill {
  display: flex; align-items: center; gap: var(--space-2);
  background: var(--color-navy); color: var(--color-white);
  padding: 0.6rem 1.1rem; border-radius: var(--radius-full); font-weight: 700; font-size: 0.9rem;
  transition: background var(--dur-base) var(--ease-out), transform var(--dur-fast) var(--ease-out);
}
.phone-pill:hover { background: var(--color-navy-soft); transform: translateY(-1px); }
.phone-pill .icon { width: 16px; height: 16px; color: var(--color-coral); }

.nav-toggle {
  display: none; flex-direction: column; justify-content: center; gap: 5px;
  width: 44px; height: 44px; background: transparent; border: none; border-radius: var(--radius-sm);
}
.nav-toggle span { display: block; width: 22px; height: 2px; background: var(--color-navy); margin-inline: auto; transition: transform var(--dur-base) var(--ease-out), opacity var(--dur-base) var(--ease-out); }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ============================================================
   Hero
   ============================================================ */
.hero { position: relative; padding-block: var(--space-10) var(--space-12); background: var(--color-cream); overflow: hidden; }
.hero-bg { position: absolute; inset: 0; z-index: 0; }
.blob { position: absolute; border-radius: 50%; filter: blur(60px); opacity: 0.35; }
.blob-1 { width: 420px; height: 420px; background: var(--color-coral); top: -140px; right: -120px; }
.blob-2 { width: 320px; height: 320px; background: var(--color-navy); opacity: 0.12; bottom: -140px; left: -100px; }

.hero-inner { position: relative; z-index: 1; display: grid; grid-template-columns: 1fr; gap: var(--space-10); align-items: center; }

.eyebrow {
  display: inline-block; font-size: 0.8rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--color-coral-deep); margin-bottom: var(--space-3);
}
.hero h1 { font-size: clamp(2.2rem, 6vw, 3.4rem); margin-bottom: var(--space-5); }
.hero h1 .line { display: block; }
.accent-underline { position: relative; color: var(--color-coral-deep); white-space: nowrap; }

.hero-lead { font-size: 1.1rem; color: var(--color-text-muted); max-width: 46ch; margin-bottom: var(--space-6); }

.hero-actions { display: flex; flex-wrap: wrap; gap: var(--space-4); margin-bottom: var(--space-6); }

.hero-trust { display: flex; flex-wrap: wrap; gap: var(--space-5); font-size: 0.85rem; font-weight: 700; color: var(--color-navy); }
.hero-trust li { display: flex; align-items: center; gap: var(--space-2); }
.hero-trust li::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--color-coral-deep); }

.hero-visual { display: flex; justify-content: center; }
.machine-card {
  position: relative; width: min(280px, 70vw); filter: drop-shadow(var(--shadow-lg));
}
.machine-card svg { width: 100%; height: auto; }
.float-chip {
  position: absolute; background: var(--color-white); color: var(--color-navy);
  font-weight: 700; font-size: 0.75rem; padding: 0.5rem 0.9rem; border-radius: var(--radius-full);
  box-shadow: var(--shadow-md); display: flex; align-items: center; white-space: nowrap;
}
.chip-1 { top: 8%; right: -12%; }
.chip-2 { bottom: 14%; left: -16%; }

/* ============================================================
   Trust strip
   ============================================================ */
.trust-strip { background: var(--color-navy); padding-block: var(--space-6); }
.trust-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--space-5); }
.trust-item { display: flex; align-items: center; gap: var(--space-3); color: var(--color-white); font-weight: 600; font-size: 0.9rem; }
.trust-item .icon { color: var(--color-coral); }

/* ============================================================
   Generic section
   ============================================================ */
.section { padding-block: var(--space-12); }
.section-alt { background: var(--color-cream); }
.section-head { max-width: 640px; margin-bottom: var(--space-8); }
.section-head h2 { font-size: clamp(1.8rem, 4vw, 2.5rem); margin-bottom: var(--space-4); }
.section-lead { color: var(--color-text-muted); font-size: 1.05rem; }

/* ============================================================
   Services
   ============================================================ */
.card-grid { display: grid; grid-template-columns: 1fr; gap: var(--space-5); }
.service-card {
  background: var(--color-white); border: 1px solid var(--color-border); border-radius: var(--radius-lg);
  padding: var(--space-6); transition: transform var(--dur-base) var(--ease-out), box-shadow var(--dur-base) var(--ease-out), border-color var(--dur-base) var(--ease-out);
}
.service-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); border-color: transparent; }
.service-icon {
  width: 52px; height: 52px; border-radius: var(--radius-md); background: var(--color-cream);
  display: flex; align-items: center; justify-content: center; margin-bottom: var(--space-4); color: var(--color-coral-deep);
}
.service-icon svg { width: 26px; height: 26px; }
.service-card h3 { font-size: 1.2rem; margin-bottom: var(--space-2); }
.service-card p { color: var(--color-text-muted); font-size: 0.95rem; }
.service-card-cta { background: var(--color-navy); border-color: var(--color-navy); }
.service-card-cta h3, .service-card-cta p { color: var(--color-white); }
.service-card-cta p { color: rgba(255,255,255,0.75); margin-bottom: var(--space-4); }
.service-card-cta:hover { transform: translateY(-6px); }

/* ============================================================
   Timeline
   ============================================================ */
.timeline { display: grid; grid-template-columns: 1fr; gap: var(--space-6); position: relative; }
.timeline-step {
  background: var(--color-white); border-radius: var(--radius-lg); padding: var(--space-6);
  border: 1px solid var(--color-border); position: relative;
}
.step-num {
  display: inline-flex; align-items: center; justify-content: center;
  width: 42px; height: 42px; border-radius: 50%; background: var(--color-coral-deep); color: var(--color-white);
  font-family: var(--font-display); font-weight: 600; font-size: 1rem; margin-bottom: var(--space-4);
}
.timeline-step h3 { font-size: 1.15rem; margin-bottom: var(--space-2); }
.timeline-step p { color: var(--color-text-muted); font-size: 0.95rem; }

/* ============================================================
   Why us
   ============================================================ */
.why-grid { display: grid; grid-template-columns: 1fr; gap: var(--space-10); align-items: start; }
.why-list { margin-top: var(--space-6); display: flex; flex-direction: column; gap: var(--space-5); }
.why-list li { display: flex; gap: var(--space-4); align-items: flex-start; }
.why-list .icon {
  width: 28px; height: 28px; padding: 6px; border-radius: 50%; background: var(--color-cream); color: var(--color-coral-deep); flex-shrink: 0;
}
.why-list strong { display: block; font-size: 1rem; margin-bottom: 2px; }
.why-list span { color: var(--color-text-muted); font-size: 0.92rem; }

.why-stats { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-4); }
.stat-card {
  background: var(--color-navy); color: var(--color-white); border-radius: var(--radius-lg);
  padding: var(--space-6); display: flex; flex-direction: column; gap: 2px;
}
.stat-value { display: flex; align-items: baseline; flex-wrap: nowrap; gap: 2px; }
.stat-number { font-family: var(--font-display); font-size: 2.6rem; font-weight: 600; color: var(--color-coral); white-space: nowrap; }
.stat-suffix { font-family: var(--font-display); font-size: 1.6rem; color: var(--color-coral); white-space: nowrap; }
.stat-label { font-size: 0.85rem; color: rgba(255,255,255,0.75); margin-top: var(--space-2); }

/* ============================================================
   Service area
   ============================================================ */
.area-layout { display: grid; grid-template-columns: 1fr; gap: var(--space-8); }
.area-cities { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-3); align-content: start; }
.city-card {
  background: var(--color-white); border: 1px solid var(--color-border); border-radius: var(--radius-md);
  padding: 0.85rem 1rem; display: flex; align-items: center; gap: var(--space-3);
  font-weight: 700; font-size: 0.95rem; color: var(--color-navy);
}
.city-card .icon { width: 18px; height: 18px; color: var(--color-coral-deep); flex-shrink: 0; }
.map-frame { border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-md); aspect-ratio: 4 / 3; }
.map-frame iframe { width: 100%; height: 100%; }

/* ============================================================
   Contact
   ============================================================ */
.contact-section { background: var(--color-navy); color: var(--color-white); }
.contact-layout { display: grid; grid-template-columns: 1fr; gap: var(--space-10); }
.contact-info .eyebrow { color: var(--color-coral); }
.contact-info h2 { color: var(--color-white); font-size: clamp(1.8rem, 4vw, 2.5rem); margin-bottom: var(--space-4); }
.contact-info .section-lead { color: rgba(255,255,255,0.72); margin-bottom: var(--space-6); }

.contact-methods { display: flex; flex-direction: column; gap: var(--space-3); }
.contact-method {
  display: flex; align-items: center; gap: var(--space-4);
  background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.12); border-radius: var(--radius-md);
  padding: var(--space-4) var(--space-5); transition: background var(--dur-base) var(--ease-out), transform var(--dur-fast) var(--ease-out);
}
.contact-method:hover { background: rgba(255,255,255,0.12); transform: translateX(4px); }
.contact-icon {
  width: 42px; height: 42px; border-radius: 50%; background: var(--color-coral-deep); color: var(--color-white);
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.contact-icon svg { width: 20px; height: 20px; }
.contact-method strong { display: block; font-size: 0.95rem; }
.contact-method small { color: rgba(255,255,255,0.65); font-size: 0.85rem; }

.contact-form { background: var(--color-white); border-radius: var(--radius-lg); padding: var(--space-6); color: var(--color-navy); box-shadow: var(--shadow-lg); min-width: 0; }
.form-row { margin-bottom: var(--space-4); display: flex; flex-direction: column; gap: var(--space-2); }
.form-row-split { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-4); margin-bottom: 0; min-width: 0; }
.form-row-split > div { display: flex; flex-direction: column; gap: var(--space-2); margin-bottom: var(--space-4); min-width: 0; }
.form-row label { font-size: 0.85rem; font-weight: 700; }
.form-row label span { color: var(--color-coral-deep); margin-left: 3px; }
.form-row input, .form-row textarea {
  border: 1.5px solid var(--color-border); border-radius: var(--radius-sm); padding: 0.8rem 1rem;
  font-size: 1rem; min-height: 44px; transition: border-color var(--dur-base) var(--ease-out), box-shadow var(--dur-base) var(--ease-out);
  background: var(--color-cream); color: var(--color-navy);
}
.form-row textarea { min-height: 100px; resize: vertical; }
.form-row input:focus, .form-row textarea:focus {
  outline: none; border-color: var(--color-coral-deep); box-shadow: 0 0 0 4px rgba(194, 69, 43, 0.15);
}
.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.form-note { margin-top: var(--space-3); font-size: 0.9rem; font-weight: 600; min-height: 1.2em; }
.form-note.success { color: #1D7A4C; }
.form-note.error { color: #B3261E; }

/* ============================================================
   Footer
   ============================================================ */
.site-footer { background: var(--color-navy); border-top: 1px solid rgba(255,255,255,0.08); padding-top: var(--space-10); }
.footer-inner { display: grid; grid-template-columns: 1fr; gap: var(--space-8); padding-bottom: var(--space-8); }
.footer-brand { max-width: 320px; }
.footer-brand p { color: rgba(255,255,255,0.6); font-size: 0.9rem; margin-top: var(--space-4); }
.footer-brand .brand-name { color: var(--color-white); }
.site-footer h4 { color: var(--color-white); font-size: 0.85rem; letter-spacing: 0.08em; text-transform: uppercase; margin-bottom: var(--space-4); font-family: var(--font-body); font-weight: 700; }
.footer-nav, .footer-contact { display: flex; flex-direction: column; gap: var(--space-3); }
.footer-nav a, .footer-contact a, .footer-contact span { color: rgba(255,255,255,0.7); font-size: 0.92rem; transition: color var(--dur-fast) var(--ease-out); }
.footer-nav a:hover, .footer-contact a:hover { color: var(--color-coral); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.08); padding-block: var(--space-5); }
.footer-bottom p { color: rgba(255,255,255,0.5); font-size: 0.82rem; }

/* ============================================================
   Responsive — Tablet (768px+)
   ============================================================ */
@media (min-width: 768px) {
  .hero-actions .btn-large, .btn-large { font-size: 1.05rem; }
  .trust-grid { grid-template-columns: repeat(4, 1fr); }
  .card-grid { grid-template-columns: repeat(2, 1fr); }
  .timeline { grid-template-columns: repeat(2, 1fr); }
  .form-row-split { grid-template-columns: 1fr 1fr; }
  .footer-inner { grid-template-columns: 1.4fr 1fr 1fr; }
}

/* ============================================================
   Responsive — Desktop (1024px+)
   ============================================================ */
@media (min-width: 1024px) {
  .header-actions .nav-toggle { display: none; }
  .main-nav { display: block; }

  .hero-inner { grid-template-columns: 1.1fr 0.9fr; gap: var(--space-12); }
  .hero h1 { text-align: left; }

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

  .why-grid { grid-template-columns: 1.1fr 0.9fr; }

  .area-layout { grid-template-columns: 0.9fr 1.1fr; align-items: start; }

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

/* ============================================================
   Responsive — below 1024px: mobile nav
   ============================================================ */
@media (max-width: 1023.98px) {
  .nav-toggle { display: flex; }
  .main-nav {
    position: fixed; inset: var(--header-h) var(--space-5) auto var(--space-5);
    background: var(--color-white); border-radius: var(--radius-lg); box-shadow: var(--shadow-lg);
    padding: var(--space-5); transform: translateY(-12px); opacity: 0; pointer-events: none;
    transition: transform var(--dur-base) var(--ease-out), opacity var(--dur-base) var(--ease-out);
  }
  .main-nav.is-open { transform: translateY(0); opacity: 1; pointer-events: auto; }
  .main-nav ul { flex-direction: column; gap: var(--space-2); }
  .main-nav a { display: block; padding: var(--space-3) var(--space-2); }
  .header-actions .btn-small { display: none; }
}

@media (max-width: 480px) {
  .phone-pill span:last-child { display: none; }
  .phone-pill { width: 44px; height: 44px; padding: 0; justify-content: center; gap: 0; }
}

/* ============================================================
   Large desktop refinement (1440px+)
   ============================================================ */
@media (min-width: 1440px) {
  :root { --container-max: 1280px; }
  .hero-lead { font-size: 1.2rem; }
}
