/* ==========================================================================
   Achieva Vending — stylesheet
   Light theme only. Edit colours in the :root block below.
   ========================================================================== */

:root {
  /* ---- Brand (sampled from the Achieva logo) ----
     --green      #90BD3E  the logo lime. Fills and shapes only — it is 2.2:1 on
                           white, so never use it for text or thin icons.
     --green-ink  #4A6020  darkened lime, 7:1 on white. This is the text green.
     --green-mid  #62802A  4.5:1 on white. Links and small labels.            */
  --green:        #90BD3E;
  --green-ink:    #4A6020;
  --green-mid:    #62802A;
  --green-dark:   #7BA630;
  --green-deep:   #14170F;
  --green-tint:   #EFF7DF;
  --green-tint-2: #F7FBEF;

  /* Amber is NOT a brand colour — it marks unfinished content only. */
  --amber:        #E09B3D;
  --amber-tint:   #FDF3E4;

  /* Neutrals — biased slightly green, taken from the logo's grey arrow */
  --ink:          #14170F;
  --body:         #4C5245;
  --muted:        #71786A;
  --line:         #E2E5DC;
  --line-soft:    #EFF1EA;
  --bg:           #FFFFFF;
  --bg-alt:       #F7F8F4;

  /* System */
  --radius:       14px;
  --radius-lg:    22px;
  --shadow:       0 1px 2px rgba(16,36,31,.05), 0 8px 24px -12px rgba(16,36,31,.14);
  --shadow-lg:    0 2px 4px rgba(16,36,31,.05), 0 24px 48px -20px rgba(16,36,31,.20);
  --wrap:         1160px;
  --font:         "Manrope", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

/* --------------------------------------------------------------- reset -- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.65;
  color: var(--body);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--green-mid); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3, h4 {
  color: var(--ink); line-height: 1.18; margin: 0 0 .5em;
  letter-spacing: -.02em; font-weight: 800;
  text-wrap: balance;
}
h1 { font-size: clamp(2.1rem, 5.2vw, 3.5rem); }
h2 { font-size: clamp(1.65rem, 3.6vw, 2.5rem); }
h3 { font-size: 1.2rem; font-weight: 750; }
p  { margin: 0 0 1.1em; }
ul { margin: 0 0 1.1em; padding-left: 1.15em; }
li { margin-bottom: .4em; }
strong { color: var(--ink); font-weight: 700; }
hr { border: 0; border-top: 1px solid var(--line); margin: 3rem 0; }

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

.skip {
  position: absolute; left: -9999px; top: 0;
  background: var(--green-deep); color: #fff; padding: .8rem 1.2rem;
  z-index: 200; border-radius: 0 0 8px 0; font-weight: 700;
}
.skip:focus { left: 0; }

/* ------------------------------------------------------------- layout -- */
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.section { padding: clamp(3.5rem, 7vw, 6rem) 0; }
.section--alt { background: var(--bg-alt); }
.section--tint { background: var(--green-tint-2); }

.eyebrow {
  display: inline-block;
  font-size: .78rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase;
  color: var(--green-ink); background: var(--green-tint);
  padding: .38rem .8rem; border-radius: 100px; margin-bottom: 1rem;
}
.lede { font-size: clamp(1.05rem, 1.9vw, 1.24rem); color: var(--body); max-width: 62ch; }
.section-head { max-width: 760px; margin-bottom: 2.75rem; }
.center { text-align: center; margin-left: auto; margin-right: auto; }

.grid { display: grid; gap: 1.5rem; }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.grid-4 { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }

/* ------------------------------------------------------------ buttons -- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .6rem;
  font-family: inherit; font-size: .97rem; font-weight: 750; line-height: 1;
  padding: .95rem 1.6rem; border-radius: 100px; border: 2px solid transparent;
  cursor: pointer; text-decoration: none !important;
  transition: transform .15s ease, background-color .15s ease, box-shadow .15s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn svg { flex: 0 0 auto; }

.btn--primary { background: var(--green-deep); color: #fff; box-shadow: var(--shadow); }
.btn--primary:hover { background: #262C1C; }

.btn--wa { background: var(--green); color: var(--green-deep); box-shadow: var(--shadow); }
.btn--wa:hover { background: var(--green-dark); color: var(--green-deep); }

.btn--ghost { background: #fff; color: var(--green-deep); border-color: var(--line); }
.btn--ghost:hover { border-color: var(--green-ink); color: var(--green-ink); }

.btn--block { width: 100%; }
.btn-row { display: flex; flex-wrap: wrap; gap: .85rem; margin-top: 1.75rem; }

/* ------------------------------------------------------------- header -- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,.92);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--line-soft);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; height: 74px; }

.brand { display: flex; align-items: center; gap: .7rem; text-decoration: none !important; }
.brand img { height: 46px; width: auto; }
.site-footer .brand img { height: 50px; }
@media (max-width: 420px) { .brand img { height: 36px; } }
.brand__name { font-weight: 800; font-size: 1.12rem; color: var(--ink); line-height: 1.15; letter-spacing: -.02em; }
.brand__tag  { font-size: .66rem; font-weight: 700; letter-spacing: .11em; text-transform: uppercase; color: var(--muted); }

.nav { display: flex; align-items: center; gap: .35rem; }
.nav a {
  padding: .55rem .8rem; border-radius: 9px;
  font-size: .93rem; font-weight: 650; color: var(--body); text-decoration: none !important;
}
.nav a:hover { background: var(--green-tint-2); color: var(--green-deep); }
.nav a[aria-current="page"] { color: var(--green-ink); background: var(--green-tint); }
.nav .btn { margin-left: .5rem; padding: .72rem 1.2rem; font-size: .9rem; }

.nav-toggle {
  display: none; background: none; border: 0; cursor: pointer;
  padding: .5rem; border-radius: 9px; color: var(--ink);
}
.nav-toggle:hover { background: var(--bg-alt); }

@media (max-width: 900px) {
  .nav-toggle { display: block; }
  .nav {
    position: absolute; left: 0; right: 0; top: 74px;
    flex-direction: column; align-items: stretch; gap: .15rem;
    background: #fff; border-bottom: 1px solid var(--line);
    padding: 1rem 24px 1.5rem;
    box-shadow: var(--shadow);
  }
  .nav[hidden] { display: none; }
  .nav a { padding: .8rem .75rem; font-size: 1rem; }
  .nav .btn { margin: .6rem 0 0; }
}

/* --------------------------------------------------------------- hero -- */
.hero {
  position: relative; overflow: hidden;
  background:
    radial-gradient(900px 460px at 88% -8%, var(--green-tint) 0%, rgba(231,243,240,0) 62%),
    radial-gradient(720px 420px at 4% 108%, var(--bg-alt) 0%, rgba(247,248,244,0) 60%),
    var(--bg);
  border-bottom: 1px solid var(--line-soft);
}
.hero__inner {
  display: grid; grid-template-columns: 1.08fr .92fr; gap: 3.5rem; align-items: center;
  padding: clamp(3rem, 7vw, 5.5rem) 0 clamp(3rem, 7vw, 5rem);
}
@media (max-width: 900px) { .hero__inner { grid-template-columns: 1fr; gap: 2.5rem; } }

.hero h1 { margin-bottom: 1rem; }
.hero h1 em { font-style: normal; color: var(--green-ink); }

.hero__shot {
  background: linear-gradient(160deg, var(--green-tint) 0%, var(--green-tint-2) 100%);
  border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 1.25rem; display: grid; place-items: center;
}
.hero__shot img { max-height: 460px; width: auto; }

.hero__badge {
  display: flex; align-items: center; gap: 1rem;
  margin-top: 2.25rem; padding: 1rem 1.25rem;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  max-width: 420px;
}
.hero__badge img { width: 52px; height: auto; flex: 0 0 auto; }
.hero__badge strong { display: block; font-size: .97rem; color: var(--ink); }
.hero__badge span { font-size: .87rem; color: var(--muted); }

.trust-row { display: flex; flex-wrap: wrap; gap: 1.5rem 2.25rem; margin-top: 2.25rem; }
.trust { display: flex; align-items: center; gap: .6rem; font-size: .92rem; font-weight: 650; color: var(--body); }
.trust svg { color: var(--green-ink); flex: 0 0 auto; }

/* --------------------------------------------------------------- cards -- */
.card {
  background: #fff; border: 1px solid var(--line);
  border-radius: var(--radius-lg); padding: 1.9rem;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.card--hover:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); border-color: var(--green-tint); }
.card h3 { margin-bottom: .5rem; }
.card p:last-child { margin-bottom: 0; }

.icon-badge {
  width: 46px; height: 46px; border-radius: 13px; margin-bottom: 1.1rem;
  background: var(--green-tint); color: var(--green-ink);
  display: grid; place-items: center;
}
.icon-badge--amber { background: var(--amber-tint); color: #A96F1C; }

/* premises photo tiles */
.place { margin: 0; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.place img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; display: block; }
.place figcaption { padding: .9rem 1rem 1.05rem; }
.place strong { display: block; font-size: 1rem; color: var(--ink); }
.place span { font-size: .85rem; color: var(--muted); }

/* stat tiles */
.stat { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.5rem; text-align: center; }
.stat__num { font-size: clamp(1.7rem, 3.4vw, 2.3rem); font-weight: 800; color: var(--green-ink); line-height: 1; letter-spacing: -.03em; }
.stat__label { font-size: .87rem; font-weight: 650; color: var(--muted); margin-top: .5rem; }

/* ---------------------------------------------------- machine cards ----- */
.machine {
  display: flex; flex-direction: column;
  background: #fff; border: 1px solid var(--line);
  border-radius: var(--radius-lg); overflow: hidden;
  transition: transform .18s ease, box-shadow .18s ease;
}
.machine:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }

.machine__media {
  aspect-ratio: 4 / 5; background: var(--green-tint-2);
  border-bottom: 1px solid var(--line-soft);
  display: grid; place-items: center; position: relative;
  overflow: hidden;          /* nothing may escape into the card body */
  flex: 0 0 auto;            /* and the box must not be shrunk by the flex column */
}
/* Absolutely positioned so the photo sizes against the media box's own definite
   height. A percentage height on a static child of an aspect-ratio flex item can
   resolve to auto, which lets a tall image render full size and overflow. */
.machine__media img {
  position: absolute; inset: 1.1rem;
  width: calc(100% - 2.2rem); height: calc(100% - 2.2rem);
  object-fit: contain;
}

.ph { text-align: center; padding: 1.5rem; color: var(--muted); }
.ph svg { color: #B9CCC6; margin: 0 auto .6rem; }
.ph span { font-size: .8rem; font-weight: 700; letter-spacing: .04em; display: block; }

.machine__body { padding: 1.6rem; display: flex; flex-direction: column; flex: 1; }
.machine__body > p { font-size: .96rem; }

.speclist { list-style: none; padding: 0; margin: 0 0 1.2rem; }
.speclist__title {
  font-size: .72rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase;
  color: var(--muted); margin: 0 0 .55rem;
  padding-left: 0; list-style: none;
}
.speclist__title::before { content: none !important; display: none !important; }
.speclist li {
  position: relative; padding-left: 1.5rem; margin-bottom: .4rem;
  font-size: .91rem; line-height: 1.5;
}
.speclist li::before {
  content: ""; position: absolute; left: 0; top: .5em;
  width: 7px; height: 7px; border-radius: 50%; background: var(--green);
}
.speclist--amber li::before { background: var(--muted); }

.machine__foot { margin-top: auto; padding-top: .5rem; }
.machine__note { font-size: .78rem; color: var(--muted); text-align: center; margin: .7rem 0 0; }

/* Machine cards run TWO to a row, so an even-numbered fleet fills even rows
   instead of stranding one card on its own. Deliberately its own class:
   .grid-3 is shared with the services, models and feature sections, and
   repurposing it there would silently reflow half the site. */
.grid-machines { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (max-width: 639px) { .grid-machines { grid-template-columns: 1fr; } }

/* Two per row makes each card about half the container wide. Keeping the 4/5
   portrait panel at that width would give a ~680px-tall photo box, so from
   900px up the panel is shorter and wider. The image still uses object-fit:
   contain inside it, so no machine is ever cropped — only the tinted panel
   around it changes shape.
   This block sits AFTER the base .machine__media rule on purpose. A media
   query adds no specificity, so an earlier copy would simply lose to it. */
@media (min-width: 900px) {
  .grid-machines .machine__media { aspect-ratio: 3 / 2; }
}

/* ------------------------------------------------------- placeholders -- */
.todo {
  background: var(--amber-tint);
  border: 1px dashed #E0B472;
  border-radius: var(--radius);
  padding: 1.1rem 1.35rem;
  font-size: .89rem; color: #7A5314;
  margin: 0 0 2rem;
}
.todo strong { color: #5E3E0A; }
.todo p:last-child { margin-bottom: 0; }

/* -------------------------------------------------------------- forms -- */
.form-card {
  background: #fff; border: 1px solid var(--line);
  border-radius: var(--radius-lg); padding: clamp(1.6rem, 3.5vw, 2.5rem);
  box-shadow: var(--shadow);
}
.field { margin-bottom: 1.2rem; }
.field label { display: block; font-size: .88rem; font-weight: 700; color: var(--ink); margin-bottom: .45rem; }
.field .req { color: #C0392B; }
.field input, .field select, .field textarea {
  width: 100%; font-family: inherit; font-size: 1rem; color: var(--ink);
  padding: .85rem 1rem; border: 1.5px solid var(--line);
  border-radius: 11px; background: #fff; transition: border-color .15s ease, box-shadow .15s ease;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--green-ink); box-shadow: 0 0 0 4px var(--green-tint);
}
.field textarea { resize: vertical; min-height: 130px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.2rem; }
@media (max-width: 620px) { .field-row { grid-template-columns: 1fr; } }
.form-note { font-size: .84rem; color: var(--muted); margin-top: 1rem; }
.hp { position: absolute; left: -9999px; }

/* ------------------------------------------------------- contact info -- */
.info-list { list-style: none; padding: 0; margin: 0; }
.info-list li { display: flex; gap: .95rem; padding: 1.15rem 0; border-bottom: 1px solid var(--line-soft); }
.info-list li:last-child { border-bottom: 0; }
.info-list svg { color: var(--green-ink); flex: 0 0 auto; margin-top: .2rem; }
.info-list dt { font-size: .74rem; font-weight: 800; letter-spacing: .09em; text-transform: uppercase; color: var(--muted); margin-bottom: .2rem; }
.info-list dd { margin: 0; color: var(--ink); font-weight: 650; }
.info-list dd a { font-weight: 650; }

/* ----------------------------------------------------------- cta band -- */
.cta-band {
  background: linear-gradient(135deg, var(--green-tint) 0%, var(--green-tint-2) 60%, var(--bg-alt) 100%);
  border-top: 1px solid var(--line-soft);
  border-bottom: 1px solid var(--line-soft);
}
.cta-band .wrap { padding-top: clamp(3rem, 6vw, 4.5rem); padding-bottom: clamp(3rem, 6vw, 4.5rem); text-align: center; }
.cta-band h2 { margin-bottom: .6rem; }
.cta-band .btn-row { justify-content: center; }
.cta-micro { font-size: .87rem; color: var(--muted); margin-top: 1.5rem; }

/* ------------------------------------------------------------- footer -- */
.site-footer { background: var(--green-deep); color: #BFC7B4; padding: clamp(3rem, 6vw, 4.5rem) 0 2rem; }
.site-footer h4 { color: #fff; font-size: .76rem; letter-spacing: .11em; text-transform: uppercase; margin-bottom: 1.1rem; font-weight: 800; }
.site-footer a { color: #BFC7B4; text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 2.5rem; }
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr 1fr; gap: 2rem; } }
@media (max-width: 520px) { .footer-grid { grid-template-columns: 1fr; } }
.site-footer .brand__name { color: #fff; }
.site-footer .brand__tag  { color: #8A9279; }
.site-footer p { font-size: .92rem; }
.footer-list { list-style: none; padding: 0; margin: 0; font-size: .93rem; }
.footer-list li { margin-bottom: .55rem; }
.footer-bottom {
  margin-top: 3rem; padding-top: 1.75rem; border-top: 1px solid rgba(255,255,255,.12);
  display: flex; flex-wrap: wrap; gap: .75rem 1.5rem; justify-content: space-between;
  font-size: .84rem; color: #8A9279;
}

/* ------------------------------------------- floating WhatsApp button -- */
.wa-float {
  position: fixed; right: 20px; bottom: 20px; z-index: 120;
  display: inline-flex; align-items: center; gap: .6rem;
  padding: .8rem 1.15rem; border-radius: 100px;
  background: var(--green); color: var(--green-deep);
  font-weight: 750; font-size: .92rem; line-height: 1.1;
  text-decoration: none !important;
  box-shadow: 0 6px 20px -6px rgba(20,23,15,.35), 0 2px 6px rgba(20,23,15,.12);
  transition: transform .15s ease, background-color .15s ease;
}
.wa-float:hover { background: var(--green-dark); transform: translateY(-2px); }
.wa-float span { display: flex; flex-direction: column; }
.wa-float small { font-size: .72rem; font-weight: 650; opacity: .75; }
@media (max-width: 520px) {
  .wa-float { right: 14px; bottom: 14px; padding: .75rem .95rem; font-size: .88rem; }
}
@media print { .wa-float { display: none !important; } }

/* ------------------------------------------------------------ utility -- */
/* Visually hidden, still announced by screen readers. Used for headings that
   keep the document outline valid without changing the visual design. */
.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
/* An h2 that should look like an h3 — correct outline, unchanged appearance. */
h2.h3 { font-size: 1.2rem; font-weight: 750; }

/* Touch targets: inline links in the contact panel and footer are only as tall
   as their text. Give them room on small screens. */
@media (max-width: 700px) {
  .info-list dd a,
  .footer-list a { display: inline-block; padding: .35rem 0; }
  .footer-list li { margin-bottom: .2rem; }
}

.mb-0 { margin-bottom: 0; }
.mt-2 { margin-top: 2rem; }
.small { font-size: .88rem; }
.muted { color: var(--muted); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

@media print {
  .site-header, .cta-band, .btn, .site-footer { display: none !important; }
}
