/* ==========================================================================
   GPS Vending — shared stylesheet
   Vanilla CSS only. System fonts. Colors: #F5C645 (gold), #3C88BB (blue).
   ========================================================================== */

:root {
  --gold: #f5c645;
  --gold-dark: #d9a91f;
  --blue: #3c88bb;
  --blue-dark: #2c6e9c;
  --blue-deep: #285f85;
  --ink: #1c2733;
  --body: #344251;
  --muted: #5d6b7a;
  --line: #1c2733;
  --bg: #ffffff;
  --bg-alt: #f4f7fa;
  --bg-blue: #eaf2f8;
  --white: #ffffff;
  --radius: 12px;
  --shadow-img: 0 18px 40px -18px rgba(28, 39, 51, 0.45);
  --shadow-card: 0 10px 30px -16px rgba(28, 39, 51, 0.3);
  --maxw: 1120px;
  --space: clamp(3rem, 7vw, 5.5rem);
  --border: 1px solid var(--ink);
  --focus: 3px solid var(--blue);
}

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

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

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica,
    Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji";
  color: var(--body);
  background: var(--bg);
  line-height: 1.65;
  font-size: 1.0625rem;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1,
h2,
h3,
h4 {
  color: var(--ink);
  line-height: 1.2;
  margin: 0 0 0.5em;
  font-weight: 700;
  letter-spacing: -0.01em;
}

h1 {
  font-size: clamp(2rem, 5vw, 3rem);
}
h2 {
  font-size: clamp(1.6rem, 3.6vw, 2.25rem);
}
h3 {
  font-size: clamp(1.2rem, 2.4vw, 1.4rem);
}

p {
  margin: 0 0 1rem;
}

a {
  color: var(--blue-dark);
}

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

ul,
ol {
  margin: 0 0 1rem;
  padding-left: 1.25rem;
}

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

/* ---- Skip link ---------------------------------------------------------- */
.skip-link {
  position: absolute;
  left: 0.75rem;
  top: -3rem;
  z-index: 200;
  background: var(--ink);
  color: #fff;
  padding: 0.6rem 1rem;
  border-radius: 0 0 8px 8px;
  transition: top 0.2s ease;
}
.skip-link:focus {
  top: 0;
}

/* ---- Layout helpers ----------------------------------------------------- */
.container {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: clamp(1rem, 4vw, 2rem);
}

.section {
  padding-block: var(--space);
  border-top: var(--border);
  border-bottom: var(--border);
}
/* Avoid doubled 4px lines between consecutive sections */
.section + .section {
  border-top: none;
}

.section--alt {
  background: var(--bg-alt);
}
.section--blue {
  background: var(--bg-blue);
}

.section__head {
  max-width: 48rem;
  margin: 0 auto 2.5rem;
  text-align: center;
}
.section__head p {
  color: var(--muted);
  font-size: 1.05rem;
  margin-bottom: 0;
}

.eyebrow {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--blue-dark);
  margin-bottom: 0.75rem;
}
.eyebrow::before {
  content: "";
  display: inline-block;
  width: 1.6rem;
  height: 3px;
  background: var(--gold);
  vertical-align: middle;
  margin-right: 0.5rem;
  border-radius: 2px;
}

/* ---- Buttons ------------------------------------------------------------ */
.btn {
  display: inline-block;
  font: inherit;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  border: 2px solid transparent;
  border-radius: 999px;
  padding: 0.8rem 1.6rem;
  transition: transform 0.15s ease, background-color 0.15s ease,
    color 0.15s ease, box-shadow 0.15s ease;
}
.btn:hover {
  transform: translateY(-2px);
}
.btn--primary {
  background: var(--gold);
  color: var(--ink);
  box-shadow: 0 8px 20px -10px rgba(217, 169, 31, 0.9);
}
.btn--primary:hover {
  background: var(--gold-dark);
}
.btn--secondary {
  background: var(--blue);
  color: #fff;
}
.btn--secondary:hover {
  background: var(--blue-dark);
}
.btn--ghost {
  background: transparent;
  color: #fff;
  border-color: rgba(255, 255, 255, 0.7);
}
.btn--ghost:hover {
  background: rgba(255, 255, 255, 0.12);
}

/* ==========================================================================
   Header / navigation
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--white);
  border-bottom: var(--border);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-block: 0.85rem;
  min-height: 72px;
}

.nav__brand {
  display: inline-flex;
  align-items: center;
  line-height: 0;
}
.nav__logo {
  width: 132px;
  height: auto;
}

.nav__toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font: inherit;
  font-weight: 700;
  color: var(--ink);
  background: transparent;
  border: 1px solid var(--ink);
  border-radius: 8px;
  padding: 0.45rem 0.7rem;
  cursor: pointer;
}
.nav__toggle-bars {
  position: relative;
  width: 20px;
  height: 2px;
  background: var(--ink);
  display: inline-block;
}
.nav__toggle-bars::before,
.nav__toggle-bars::after {
  content: "";
  position: absolute;
  left: 0;
  width: 20px;
  height: 2px;
  background: var(--ink);
}
.nav__toggle-bars::before {
  top: -6px;
}
.nav__toggle-bars::after {
  top: 6px;
}

.nav__panel {
  display: none;
}

.nav__menu {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.nav__menu a {
  display: block;
  text-decoration: none;
  color: var(--ink);
  font-weight: 600;
  padding: 0.7rem 0.5rem;
  border-radius: 6px;
}
.nav__menu a:hover {
  color: var(--blue-dark);
}
.nav__menu a[aria-current="page"] {
  color: var(--blue-dark);
  box-shadow: inset 0 -3px 0 var(--gold);
}

/* Mobile open state */
.nav__panel.is-open {
  display: block;
  position: absolute;
  left: 0;
  right: 0;
  top: 100%;
  background: var(--white);
  border-bottom: var(--border);
  box-shadow: var(--shadow-card);
  padding: 1rem clamp(1rem, 4vw, 2rem) 1.25rem;
}
.nav__panel.is-open .nav__menu--right {
  margin-top: 0.25rem;
  border-top: 1px solid #e1e8ef;
  padding-top: 0.5rem;
}

/* ==========================================================================
   Hero
   ========================================================================== */
.hero {
  border-bottom: var(--border);
  background: linear-gradient(180deg, var(--bg-blue), var(--white));
}
.hero__inner {
  display: grid;
  gap: clamp(1.5rem, 4vw, 3rem);
  align-items: center;
  padding-block: clamp(2.5rem, 6vw, 4.5rem);
}
.hero__title {
  margin-bottom: 0.75rem;
}
.hero__lead {
  font-size: 1.15rem;
  color: var(--body);
  max-width: 38rem;
}
.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.5rem;
}
.hero__media img {
  width: 100%;
  height: auto;
  border-radius: var(--radius);
  box-shadow: var(--shadow-img);
}

/* ==========================================================================
   Generic media + cards
   ========================================================================== */
.shadow-img {
  border-radius: var(--radius);
  box-shadow: var(--shadow-img);
}

.grid {
  display: grid;
  gap: 1.5rem;
}
.grid--2 {
  grid-template-columns: 1fr;
}
.grid--3 {
  grid-template-columns: 1fr;
}

.card {
  background: var(--white);
  border: 1px solid #e1e8ef;
  border-radius: var(--radius);
  padding: 1.6rem;
  box-shadow: var(--shadow-card);
  height: 100%;
}
.card h3 {
  margin-bottom: 0.4rem;
}
.card p:last-child {
  margin-bottom: 0;
}
.card__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  border-radius: 10px;
  background: var(--bg-blue);
  color: var(--blue-dark);
  margin-bottom: 0.9rem;
}
.card__icon svg {
  width: 24px;
  height: 24px;
}

/* Split content rows (image + text) */
.split {
  display: grid;
  gap: clamp(1.5rem, 4vw, 3rem);
  align-items: center;
}
.split__media img {
  border-radius: var(--radius);
  box-shadow: var(--shadow-img);
  width: 100%;
}

.checklist {
  list-style: none;
  padding: 0;
  margin: 1rem 0 0;
}
.checklist li {
  position: relative;
  padding-left: 2rem;
  margin-bottom: 0.7rem;
}
.checklist li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.35em;
  width: 1.1rem;
  height: 1.1rem;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: inset 0 0 0 3px rgba(255, 255, 255, 0.85);
}

/* Stat / trust strip */
.trust {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
  text-align: center;
}
.trust__item strong {
  display: block;
  font-size: 1.6rem;
  color: var(--blue-dark);
}

/* Steps */
.steps {
  counter-reset: step;
  display: grid;
  gap: 1.25rem;
  list-style: none;
  padding: 0;
}
.steps li {
  position: relative;
  background: var(--white);
  border: 1px solid #e1e8ef;
  border-radius: var(--radius);
  padding: 1.4rem 1.4rem 1.4rem 4rem;
  box-shadow: var(--shadow-card);
}
.steps li::before {
  counter-increment: step;
  content: counter(step);
  position: absolute;
  left: 1.1rem;
  top: 1.2rem;
  width: 2rem;
  height: 2rem;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--blue);
  color: #fff;
  font-weight: 700;
}

/* ==========================================================================
   CTA band
   ========================================================================== */
.cta {
  background: var(--blue);
  color: #fff;
  text-align: center;
}
.cta h2 {
  color: #fff;
}
.cta p {
  color: rgba(255, 255, 255, 0.9);
  max-width: 40rem;
  margin-inline: auto;
}
.cta .hero__actions,
.hero__actions--center {
  justify-content: center;
}

/* ==========================================================================
   Forms
   ========================================================================== */
.form {
  background: var(--white);
  border: 1px solid #e1e8ef;
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
  padding: clamp(1.5rem, 4vw, 2.5rem);
}
.form__row {
  margin-bottom: 1.1rem;
}
.form__grid {
  display: grid;
  gap: 1.1rem;
}
.form label {
  display: block;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 0.35rem;
}
.req {
  color: #b03a2e;
}
.form input,
.form select,
.form textarea {
  width: 100%;
  font: inherit;
  color: var(--ink);
  background: #fff;
  border: 1px solid #c3cedb;
  border-radius: 8px;
  padding: 0.7rem 0.85rem;
}
.form input:focus,
.form select:focus,
.form textarea:focus {
  border-color: var(--blue);
  outline: none;
  box-shadow: 0 0 0 3px rgba(60, 136, 187, 0.25);
}
.form textarea {
  min-height: 140px;
  resize: vertical;
}
.form__hint {
  font-size: 0.85rem;
  color: var(--muted);
  margin: 0.3rem 0 0;
}
.form__actions {
  margin-top: 0.5rem;
}
.form__row--spaced {
  margin-top: 1.1rem;
}
.form-wrap {
  max-width: 720px;
  margin-inline: auto;
}
/* Honeypot — visually and from AT hidden, still in DOM */
.hp-field {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
.form__status {
  margin-top: 1rem;
  padding: 0.85rem 1rem;
  border-radius: 8px;
  font-weight: 600;
  display: none;
}
.form__status.is-error {
  display: block;
  background: #fdecea;
  color: #8c2d22;
  border: 1px solid #f0b4ac;
}
.form__status.is-success {
  display: block;
  background: #e7f6ec;
  color: #1e6b3a;
  border: 1px solid #aedcc0;
}

/* ==========================================================================
   Contact details
   ========================================================================== */
.contact-list {
  list-style: none;
  padding: 0;
  margin: 0;
}
.contact-list li {
  display: flex;
  gap: 0.85rem;
  align-items: flex-start;
  margin-bottom: 1.1rem;
}
.contact-list svg {
  flex: 0 0 auto;
  width: 22px;
  height: 22px;
  color: var(--blue-dark);
  margin-top: 0.2rem;
}
.contact-list a {
  color: var(--ink);
  text-decoration: none;
  font-weight: 600;
}
.contact-list a:hover {
  color: var(--blue-dark);
}

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer {
  background: var(--ink);
  color: #cfd8e2;
  border-top: var(--border);
}
.site-footer a {
  color: #fff;
  text-decoration: none;
}
.site-footer a:hover {
  color: var(--gold);
}
.footer__grid {
  display: grid;
  gap: 2rem;
  padding-block: clamp(2.5rem, 5vw, 3.5rem);
}
.footer__brand img {
  width: 150px;
  margin-bottom: 1rem;
}
.footer h2,
.footer__col h3 {
  color: #fff;
  font-size: 1.05rem;
  margin-bottom: 0.8rem;
}
.footer__col ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
.footer__col li {
  margin-bottom: 0.5rem;
}
.footer__nap {
  font-style: normal;
}
.footer__bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  padding-block: 1.25rem;
  font-size: 0.9rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
  justify-content: space-between;
}

/* ==========================================================================
   Blog index
   ========================================================================== */
.post-card {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
  background: var(--white);
  border: 1px solid #e1e8ef;
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
  padding: 1.6rem;
  height: 100%;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.post-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 36px -18px rgba(28, 39, 51, 0.4);
}
.post-card .eyebrow {
  margin-bottom: 0.5rem;
}
.post-card h3 {
  margin-bottom: 0.5rem;
}
.post-card p {
  color: var(--body);
}
.post-card__more {
  margin-top: auto;
  padding-top: 0.75rem;
  font-weight: 700;
  color: var(--blue-dark);
}
.post-card__more::after {
  content: " \2192";
}

/* ==========================================================================
   Article (prose)
   ========================================================================== */
.article {
  padding-block: var(--space);
}
.prose {
  max-width: 46rem;
  margin-inline: auto;
}
.prose .article__meta {
  color: var(--muted);
  font-size: 0.95rem;
  margin-bottom: 1.5rem;
}
.prose h2 {
  margin-top: 2.2rem;
}
.prose p {
  margin-bottom: 1.15rem;
}
.prose .article__cta {
  margin-top: 2.5rem;
  padding: 1.5rem;
  background: var(--bg-blue);
  border-radius: var(--radius);
  text-align: center;
}
.prose .article__cta p {
  margin-bottom: 1rem;
}

.breadcrumb {
  font-size: 0.9rem;
  color: var(--muted);
  padding-top: 1.25rem;
}
.breadcrumb a {
  color: var(--blue-dark);
  text-decoration: none;
}
.breadcrumb a:hover {
  text-decoration: underline;
}

/* ==========================================================================
   Scroll reveal animation
   ========================================================================== */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
  will-change: opacity, transform;
}
.reveal.is-visible {
  opacity: 1;
  transform: none;
}
/* Stagger helper */
.reveal[data-delay="1"] {
  transition-delay: 0.08s;
}
.reveal[data-delay="2"] {
  transition-delay: 0.16s;
}
.reveal[data-delay="3"] {
  transition-delay: 0.24s;
}

/* ==========================================================================
   Responsive — tablet / desktop
   ========================================================================== */
@media (min-width: 640px) {
  .grid--2 {
    grid-template-columns: 1fr 1fr;
  }
  .grid--3 {
    grid-template-columns: repeat(2, 1fr);
  }
  .trust {
    grid-template-columns: repeat(3, 1fr);
  }
  .footer__grid {
    grid-template-columns: 1.4fr 1fr 1fr;
  }
}

@media (min-width: 880px) {
  .grid--3 {
    grid-template-columns: repeat(3, 1fr);
  }
  .hero__inner {
    grid-template-columns: 1.05fr 0.95fr;
  }
  .split {
    grid-template-columns: 1fr 1fr;
  }
  .split--reverse .split__media {
    order: 2;
  }

  /* Desktop nav: centered logo, links split left/right */
  .nav {
    position: relative;
    justify-content: center;
    padding-block: 1.25rem;
  }
  .nav__toggle {
    display: none;
  }
  .nav__brand {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
  }
  .nav__logo {
    width: 150px;
  }
  .nav__panel {
    display: flex;
    flex: 1;
    align-items: center;
    justify-content: space-between;
  }
  .nav__menu {
    flex-direction: row;
    gap: 0.35rem;
    align-items: center;
  }
  .nav__menu--left {
    justify-content: flex-start;
    padding-right: 90px;
  }
  .nav__menu--right {
    justify-content: flex-end;
    padding-left: 90px;
  }
  .nav__menu a {
    padding: 0.5rem 0.7rem;
  }
}

/* ==========================================================================
   Reduced motion
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    transition-duration: 0.001ms !important;
  }
  .reveal {
    opacity: 1;
    transform: none;
  }
}
