/* =====================================================================
   MMST LIMITED — Mining Maintenance Solutions Tanzania
   main.css — canonical design system (Tier-1 corporate)
   Brand: amber/gold + industrial black, warm off-white surfaces
   ===================================================================== */

/*
 * SPEC-NAMED ALIASES
 * These map the brief's required variable names onto the canonical tokens
 * above. Use either name — they resolve to the same value.
 *
 * --color-primary        #F5A623  (MMST Gold)
 * --color-primary-dark   #E8940F  (Gold hover/dark)
 * --color-black          #0A0A0A
 * --color-white          #FFFFFF
 * --color-red            #C0392B
 * --color-gray-100..900  neutral gray scale
 * --font-heading         Poppins (alias of --font-head)
 * --font-body            Inter   (alias of --font-body — same name, kept)
 * --space-*              spacing scale aliases
 */

/* ----------------------------------------------------------------- */
/* 1. DESIGN TOKENS                                                   */
/* ----------------------------------------------------------------- */
:root {
  /* ---- Spec-required aliases ---- */
  --color-primary:      #F5A623;
  --color-primary-dark: #E8940F;
  --color-black:        #0A0A0A;
  --color-white:        #FFFFFF;
  --color-red:          #C0392B;
  --color-gray-100:     #F5F5F5;
  --color-gray-200:     #EEEEEE;
  --color-gray-300:     #E0E0E0;
  --color-gray-400:     #BDBDBD;
  --color-gray-500:     #9E9E9E;
  --color-gray-600:     #757575;
  --color-gray-700:     #616161;
  --color-gray-800:     #424242;
  --color-gray-900:     #212121;
  --font-heading:       'Poppins', 'Segoe UI', system-ui, sans-serif;
  /* --font-body already defined below */
  --space-1: .25rem; --space-2: .5rem; --space-3: .75rem; --space-4: 1rem;
  --space-5: 1.5rem; --space-6: 2rem;  --space-7: 3rem;   --space-8: 4rem;
  /* Utility classes required by spec */
  /* .container, .btn-primary, .btn-secondary, .section-padding defined below */

  /* Brand */
  --c-black:        #121212;
  --c-black-soft:   #1d1d1f;
  --c-ink:          #232326;   /* body text */
  --c-ink-soft:     #5b5b62;   /* secondary text */
  --c-amber:        #f5a623;   /* brand gold */
  --c-amber-bright: #ffb838;
  --c-orange:       #e8730a;   /* deep orange — CTA */
  --c-orange-deep:  #c95e06;   /* hover */

  /* Surfaces */
  --c-bg:           #ffffff;
  --c-cream:        #faf7f1;   /* warm off-white sections */
  --c-cream-2:      #f3efe7;
  --c-line:         #e7e1d6;   /* hairline borders */
  --c-line-soft:    #efeae1;

  /* Functional */
  --c-success:      #1f9d57;
  --c-error:        #d92d20;

  /* Gradients */
  --grad-sunset:    linear-gradient(160deg,#f5a623 0%,#e8730a 48%,#1a1a1a 100%);
  --grad-cta:       linear-gradient(92deg,#f5a623 0%,#e8730a 100%);
  --grad-dark:      linear-gradient(135deg,#1a1a1d 0%,#101012 100%);

  /* Typography */
  --font-head: 'Poppins', 'Segoe UI', system-ui, sans-serif;
  --font-body: 'Inter', 'Segoe UI', system-ui, sans-serif;

  --fs-hero:  clamp(2.4rem, 5.2vw, 4.25rem);
  --fs-h1:    clamp(2.05rem, 4vw, 3.1rem);
  --fs-h2:    clamp(1.6rem, 3vw, 2.4rem);
  --fs-h3:    clamp(1.25rem, 2vw, 1.6rem);
  --fs-h4:    1.15rem;
  --fs-body:  1.0625rem;
  --fs-sm:    0.9375rem;
  --fs-xs:    0.8125rem;

  /* Spacing scale */
  --sp-1: .25rem;  --sp-2: .5rem;  --sp-3: .75rem; --sp-4: 1rem;
  --sp-5: 1.5rem;  --sp-6: 2rem;   --sp-7: 3rem;   --sp-8: 4rem;
  --sp-9: 6rem;    --sp-10: 8rem;

  /* Radius / shadow / motion */
  --r-sm: 6px;  --r-md: 12px; --r-lg: 18px; --r-xl: 26px; --r-pill: 999px;
  --sh-1: 0 1px 2px rgba(18,18,18,.06), 0 1px 3px rgba(18,18,18,.05);
  --sh-2: 0 4px 14px rgba(18,18,18,.08);
  --sh-3: 0 12px 32px rgba(18,18,18,.12);
  --sh-amber: 0 10px 28px rgba(232,115,10,.28);
  --ease: cubic-bezier(.22,.61,.36,1);
  --container: 1200px;
  --container-wide: 1320px;
  --header-h: 92px;
}

/* ----------------------------------------------------------------- */
/* 2. RESET / BASE                                                    */
/* ----------------------------------------------------------------- */
*,*::before,*::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 12px); }
body {
  font-family: var(--font-body);
  font-size: var(--fs-body);
  line-height: 1.65;
  color: var(--c-ink);
  background: var(--c-bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img,svg,video { display: block; max-width: 100%; height: auto; }
/* Global overflow guard: long unbroken strings (model numbers, emails, URLs)
   never force a horizontal scrollbar. */
h1,h2,h3,h4,h5,p,li,a,span,blockquote,label { overflow-wrap: break-word; }
a { color: inherit; text-decoration: none; transition: color .2s var(--ease); }
ul,ol { list-style: none; }
button { font: inherit; cursor: pointer; border: none; background: none; }
h1,h2,h3,h4,h5 { font-family: var(--font-head); font-weight: 700; line-height: 1.14; color: var(--c-black); letter-spacing: -.01em; }
h1 { font-size: var(--fs-h1); }
h2 { font-size: var(--fs-h2); }
h3 { font-size: var(--fs-h3); }
h4 { font-size: var(--fs-h4); }
p  { color: var(--c-ink-soft); }
strong { color: var(--c-ink); font-weight: 600; }
:focus-visible { outline: 3px solid var(--c-orange); outline-offset: 2px; border-radius: 4px; }

/* ----------------------------------------------------------------- */
/* 3. LAYOUT PRIMITIVES                                               */
/* ----------------------------------------------------------------- */
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: clamp(1.1rem, 4vw, 2rem); }
.container--wide { max-width: var(--container-wide); }
.section { padding-block: clamp(3.5rem, 7vw, 7rem); }
.section--tight { padding-block: clamp(2.5rem, 5vw, 4.5rem); }
.section--cream { background: var(--c-cream); }
.section--dark { background: var(--grad-dark); color: #e9e9ec; }
.section--dark h1,.section--dark h2,.section--dark h3,.section--dark h4 { color: #fff; }
.section--dark p { color: #b9b9c2; }

.grid { display: grid; gap: clamp(1.25rem, 2.5vw, 2rem); }
/* min-width:0 lets grid/flex children shrink below their content size,
   so wide media or long words can't blow out the track and cause overflow. */
.grid > *, .split > *, .stats > * { min-width: 0; }
.grid-2 { grid-template-columns: repeat(2,1fr); }
.grid-3 { grid-template-columns: repeat(3,1fr); }
.grid-4 { grid-template-columns: repeat(4,1fr); }
.flex { display: flex; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.gap-3 { gap: var(--sp-3); } .gap-4 { gap: var(--sp-4); } .gap-5 { gap: var(--sp-5); }
.text-center { text-align: center; }
.mx-auto { margin-inline: auto; }
.measure { max-width: 62ch; }
.measure-narrow { max-width: 48ch; }

/* ----------------------------------------------------------------- */
/* 4. SECTION HEADERS / EYEBROWS                                      */
/* ----------------------------------------------------------------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: .5rem;
  font-family: var(--font-head); font-weight: 600;
  font-size: var(--fs-xs); letter-spacing: .14em; text-transform: uppercase;
  color: var(--c-orange);
}
.eyebrow::before { content: ""; width: 26px; height: 2px; background: var(--c-amber); display: inline-block; }
.section-head { max-width: 720px; margin-bottom: clamp(2rem,4vw,3rem); }
.section-head.text-center { margin-inline: auto; }
.section-head h2 { margin: .6rem 0 .8rem; }
.lead { font-size: 1.18rem; color: var(--c-ink-soft); line-height: 1.6; }

/* ----------------------------------------------------------------- */
/* 5. BUTTONS                                                         */
/* ----------------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
  font-family: var(--font-head); font-weight: 600; font-size: var(--fs-sm);
  padding: .85rem 1.65rem; border-radius: var(--r-pill);
  transition: all .25s var(--ease); white-space: nowrap; cursor: pointer; border: 2px solid transparent;
}
.btn svg { width: 18px; height: 18px; }
.btn--primary { background: var(--grad-cta); color: #fff; box-shadow: var(--sh-amber); }
.btn--primary:hover { transform: translateY(-2px); box-shadow: 0 14px 34px rgba(232,115,10,.4); }
.btn--dark { background: var(--c-black); color: #fff; }
.btn--dark:hover { background: var(--c-black-soft); transform: translateY(-2px); }
.btn--outline { border-color: var(--c-ink); color: var(--c-ink); }
.btn--outline:hover { background: var(--c-black); border-color: var(--c-black); color: #fff; }
.btn--ghost-light { border-color: rgba(255,255,255,.55); color: #fff; }
.btn--ghost-light:hover { background: #fff; color: var(--c-black); border-color: #fff; }
.btn--amber { background: var(--c-amber); color: var(--c-black); }
.btn--amber:hover { background: var(--c-amber-bright); transform: translateY(-2px); }
.btn--lg { padding: 1.05rem 2.1rem; font-size: 1rem; }
.btn--block { width: 100%; }
.link-arrow { font-family: var(--font-head); font-weight: 600; font-size: var(--fs-sm); color: var(--c-orange); display: inline-flex; align-items: center; gap: .4rem; }
.link-arrow span { transition: transform .25s var(--ease); }
.link-arrow:hover span { transform: translateX(4px); }

/* ----------------------------------------------------------------- */
/* 6. TOP UTILITY BAR + HEADER / NAV                                  */
/* ----------------------------------------------------------------- */
.topbar { background: var(--c-black); color: #cfcfd6; font-size: var(--fs-xs); }
.topbar .container { display: flex; justify-content: space-between; align-items: center; min-height: 40px; gap: 1rem; }
.topbar a { color: #e7e7ec; }
.topbar a:hover { color: var(--c-amber); }
.topbar__contact { display: flex; gap: 1.4rem; align-items: center; flex-wrap: wrap; }
.topbar__region { color: #9a9aa3; }

.site-header { position: sticky; top: 0; z-index: 100; background: rgba(255,255,255,.96); backdrop-filter: blur(10px); border-bottom: 1px solid var(--c-line-soft); transition: box-shadow .3s var(--ease), background .3s; }
.site-header.is-scrolled { box-shadow: var(--sh-2); }
.nav { display: flex; align-items: center; justify-content: space-between; min-height: var(--header-h); gap: 1.5rem; }
.nav__logo img { height: 52px; width: auto; object-fit: contain; }
.nav__menu { display: flex; align-items: center; gap: .35rem; }
.nav__contact { display: none; } /* mobile drawer quick-contact strip — hidden on desktop */
.nav__item { position: relative; }
.nav__link { display: inline-flex; align-items: center; gap: .35rem; padding: .65rem .9rem; border-radius: var(--r-sm); font-family: var(--font-head); font-weight: 500; font-size: var(--fs-sm); color: var(--c-ink); }
.nav__link:hover, .nav__item:hover > .nav__link { color: var(--c-orange); }
.nav__link[aria-current="page"] { color: var(--c-orange); }
.nav__link .chev { width: 14px; height: 14px; transition: transform .25s var(--ease); }
.nav__item:hover .chev { transform: rotate(180deg); }
.nav__dropdown {
  position: absolute; top: calc(100% + 8px); left: 0; min-width: 252px;
  background: #fff; border: 1px solid var(--c-line); border-radius: var(--r-md);
  box-shadow: var(--sh-3); padding: .5rem; opacity: 0; visibility: hidden;
  transform: translateY(8px); transition: all .22s var(--ease); z-index: 50;
}
.nav__item:hover .nav__dropdown, .nav__item:focus-within .nav__dropdown { opacity: 1; visibility: visible; transform: translateY(0); }
.nav__dropdown a { display: block; padding: .6rem .8rem; border-radius: var(--r-sm); font-size: var(--fs-sm); font-weight: 500; color: var(--c-ink); }
.nav__dropdown a:hover { background: var(--c-cream); color: var(--c-orange); }
.nav__actions { display: flex; align-items: center; gap: .75rem; }
.nav__toggle { display: none; flex-direction: column; gap: 5px; padding: 8px; }
.nav__toggle span { width: 26px; height: 2.5px; background: var(--c-black); border-radius: 2px; transition: .3s var(--ease); }
.nav__toggle.is-open span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.nav__toggle.is-open span:nth-child(2) { opacity: 0; }
.nav__toggle.is-open span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

/* ----------------------------------------------------------------- */
/* 7. HERO                                                            */
/* ----------------------------------------------------------------- */
.hero { position: relative; background: var(--grad-dark); color: #fff; overflow: hidden; }
.hero::after { content:""; position:absolute; inset:0; background: radial-gradient(900px 500px at 85% -10%, rgba(245,166,35,.22), transparent 60%); pointer-events:none; }
.hero__inner { position: relative; z-index: 2; display: grid; grid-template-columns: 1.05fr .95fr; gap: 3rem; align-items: center; padding-block: clamp(3.5rem,7vw,6.5rem); }
.hero__eyebrow { color: var(--c-amber); }
.hero__title { font-size: var(--fs-hero); color: #fff; margin: 1rem 0 1.25rem; }
.hero__title .accent { background: var(--grad-cta); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero__sub { font-size: 1.2rem; color: #c4c4cd; max-width: 54ch; margin-bottom: 2rem; }
.hero__ctas { display: flex; gap: 1rem; flex-wrap: wrap; }
.hero__media { position: relative; border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--sh-3); border: 1px solid rgba(255,255,255,.08); }
.hero__media img { width: 100%; height: 100%; object-fit: cover; }
.hero__stats { display: flex; gap: 2.5rem; margin-top: 2.5rem; flex-wrap: wrap; }
.hero__stat .num { font-family: var(--font-head); font-weight: 700; font-size: 2.1rem; color: var(--c-amber); }
.hero__stat .label { font-size: var(--fs-xs); text-transform: uppercase; letter-spacing: .08em; color: #9a9aa3; }
.page-hero { background: var(--grad-dark); color: #fff; padding-block: clamp(3rem,5vw,4.5rem); position: relative; overflow: hidden; }
.page-hero::after { content:""; position:absolute; inset:0; background: radial-gradient(700px 360px at 90% 0%, rgba(245,166,35,.18), transparent 60%); }
.page-hero__inner { position: relative; z-index: 2; max-width: 760px; }
.page-hero h1 { color: #fff; margin: .8rem 0 1rem; font-size: var(--fs-h1); }
.page-hero p { color: #c4c4cd; font-size: 1.15rem; }
.breadcrumb { display: flex; gap: .5rem; align-items: center; flex-wrap: wrap; font-size: var(--fs-xs); color: #9a9aa3; }
.breadcrumb a:hover { color: var(--c-amber); }
.breadcrumb span { color: #6a6a72; }

/* ----------------------------------------------------------------- */
/* 8. CARDS                                                           */
/* ----------------------------------------------------------------- */
.card { background: #fff; border: 1px solid var(--c-line); border-radius: var(--r-md); overflow: hidden; transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s; height: 100%; }
.card:hover { transform: translateY(-6px); box-shadow: var(--sh-3); border-color: var(--c-line-soft); }
.card__media { aspect-ratio: 16/10; overflow: hidden; background: var(--c-cream-2); }
.card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease); }
.card:hover .card__media img { transform: scale(1.06); }

/* Diagram / parts illustration variant — show the whole image, never crop.
   Used for technical product/parts illustrations whose aspect ratios differ
   wildly from the 16:10 card box. Keeps the fixed ratio (no layout shift)
   but letterboxes the artwork on a clean cream field. */
.card__media--contain { background: var(--c-cream); }
.card__media--contain img { object-fit: contain; padding: .85rem; }
/* Don't zoom-crop a contained illustration on hover */
.card:hover .card__media--contain img { transform: none; }
.card__body { padding: 1.5rem; }
.card__body h3 { margin-bottom: .5rem; }
.card__body p { font-size: var(--fs-sm); margin-bottom: 1rem; }

.icon-card { background: #fff; border: 1px solid var(--c-line); border-radius: var(--r-md); padding: 2rem 1.75rem; transition: transform .3s var(--ease), box-shadow .3s var(--ease); height: 100%; }
.icon-card:hover { transform: translateY(-6px); box-shadow: var(--sh-3); }
.icon-card__icon { width: 58px; height: 58px; border-radius: var(--r-md); background: linear-gradient(145deg,#fff3df,#ffe6c2); color: var(--c-orange); display: grid; place-items: center; margin-bottom: 1.25rem; }
.icon-card__icon svg { width: 28px; height: 28px; }
.icon-card h3 { font-size: 1.2rem; margin-bottom: .5rem; }
.icon-card p { font-size: var(--fs-sm); }
.section--dark .icon-card { background: rgba(255,255,255,.04); border-color: rgba(255,255,255,.1); }
.section--dark .icon-card__icon { background: rgba(245,166,35,.14); }

/* Feature/value pill list */
.checklist { display: grid; gap: .85rem; }
.checklist li { display: flex; gap: .75rem; align-items: flex-start; font-size: var(--fs-sm); color: var(--c-ink); }
.checklist li::before { content: "✓"; flex: 0 0 22px; height: 22px; border-radius: 50%; background: var(--c-amber); color: var(--c-black); font-weight: 700; font-size: .8rem; display: grid; place-items: center; margin-top: 2px; }

/* ----------------------------------------------------------------- */
/* 9. STATS / TRUST / LOGOS                                           */
/* ----------------------------------------------------------------- */
.stats { display: grid; grid-template-columns: repeat(4,1fr); gap: 1.5rem; }
.stat { text-align: center; padding: 1.5rem 1rem; }
.stat .num { font-family: var(--font-head); font-weight: 700; font-size: clamp(2rem,4vw,2.8rem); color: var(--c-orange); line-height: 1; }
.stat .label { margin-top: .5rem; font-size: var(--fs-sm); color: var(--c-ink-soft); }
.section--dark .stat .num { color: var(--c-amber); }

.logo-strip { display: flex; flex-wrap: wrap; gap: .75rem 1rem; align-items: center; justify-content: center; }
.brand-chip { font-family: var(--font-head); font-weight: 600; font-size: var(--fs-sm); letter-spacing: .03em; color: var(--c-ink); background: #fff; border: 1px solid var(--c-line); border-radius: var(--r-pill); padding: .6rem 1.4rem; }
.section--dark .brand-chip { background: rgba(255,255,255,.05); border-color: rgba(255,255,255,.14); color: #ededf2; }

/* ----------------------------------------------------------------- */
/* 10. SPLIT / FEATURE ROWS                                           */
/* ----------------------------------------------------------------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem,5vw,4rem); align-items: center; }
.split__media { border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--sh-2); }
.split__media img { width: 100%; height: 100%; object-fit: cover; }
.split--reverse .split__media { order: 2; }

/* Diagram / parts illustration variant for feature rows — full image, no crop.
   Letterbox on a clean field with a sensible max-height so very wide or very
   tall illustrations stay tidy and the labelled parts are always fully visible. */
.split__media--contain { background: var(--c-cream); border: 1px solid var(--c-line); box-shadow: var(--sh-1); }
.split__media--contain img { object-fit: contain; max-height: 420px; padding: 1.25rem; margin-inline: auto; }

/* CTA band */
.cta-band { background: var(--grad-cta); border-radius: var(--r-xl); padding: clamp(2.25rem,5vw,3.75rem); color: #fff; text-align: center; position: relative; overflow: hidden; }
.cta-band h2 { color: #fff; margin-bottom: .75rem; }
.cta-band p { color: rgba(255,255,255,.92); max-width: 56ch; margin: 0 auto 1.75rem; }
.cta-band .btn--dark { background: var(--c-black); }
.cta-band__ctas { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }

/* Steps / process */
.steps { counter-reset: step; display: grid; gap: 1.5rem; }
.step { display: flex; gap: 1.25rem; align-items: flex-start; }
.step__num { counter-increment: step; flex: 0 0 48px; height: 48px; border-radius: 50%; background: var(--c-black); color: var(--c-amber); font-family: var(--font-head); font-weight: 700; display: grid; place-items: center; }
.step__num::before { content: counter(step,decimal-leading-zero); }
.step h4 { margin-bottom: .25rem; }
.step p { font-size: var(--fs-sm); }

/* ----------------------------------------------------------------- */
/* 11. ACCORDION (FAQ)                                                */
/* ----------------------------------------------------------------- */
.accordion { display: grid; gap: .75rem; }
.acc-item { border: 1px solid var(--c-line); border-radius: var(--r-md); background: #fff; overflow: hidden; }
.acc-trigger { width: 100%; text-align: left; display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: 1.15rem 1.4rem; font-family: var(--font-head); font-weight: 600; font-size: 1.02rem; color: var(--c-black); }
.acc-trigger .plus { flex: 0 0 24px; height: 24px; position: relative; transition: transform .3s var(--ease); }
.acc-trigger .plus::before,.acc-trigger .plus::after { content: ""; position: absolute; background: var(--c-orange); inset: 0; margin: auto; }
.acc-trigger .plus::before { width: 14px; height: 2px; }
.acc-trigger .plus::after { width: 2px; height: 14px; transition: transform .3s var(--ease); }
.acc-item.is-open .plus::after { transform: rotate(90deg); }
.acc-panel { max-height: 0; overflow: hidden; transition: max-height .35s var(--ease); }
.acc-panel__inner { padding: 0 1.4rem 1.25rem; font-size: var(--fs-sm); color: var(--c-ink-soft); }

/* ----------------------------------------------------------------- */
/* 12. FORMS                                                          */
/* ----------------------------------------------------------------- */
.form { display: grid; gap: 1.1rem; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem; }
.field { display: grid; gap: .4rem; }
.field label { font-family: var(--font-head); font-weight: 600; font-size: var(--fs-sm); color: var(--c-ink); }
.field label .req { color: var(--c-orange); }
.field input,.field select,.field textarea {
  width: 100%; padding: .85rem 1rem; min-height: 48px; font: inherit; font-size: 1rem;
  color: var(--c-ink); background: #fff; border: 1.5px solid var(--c-line); border-radius: var(--r-sm);
  transition: border-color .2s, box-shadow .2s; max-width: 100%;
}
/* font-size:1rem (>=16px) on inputs prevents iOS Safari auto-zoom on focus */
.field input:focus,.field select:focus,.field textarea:focus { outline: none; border-color: var(--c-orange); box-shadow: 0 0 0 3px rgba(232,115,10,.15); }
.field textarea { resize: vertical; min-height: 130px; }
.form-note { font-size: var(--fs-xs); color: var(--c-ink-soft); }
.form-status { padding: .9rem 1.1rem; border-radius: var(--r-sm); font-size: var(--fs-sm); display: none; }
.form-status.ok { display: block; background: #e7f7ee; color: var(--c-success); }
.form-status.err { display: block; background: #fdeceb; color: var(--c-error); }

/* ----------------------------------------------------------------- */
/* 13. FOOTER                                                         */
/* ----------------------------------------------------------------- */
.footer { background: var(--c-black); color: #b7b7c0; padding-top: clamp(3rem,6vw,5rem); }
.footer a:hover { color: var(--c-amber); }
.footer__grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.3fr; gap: 2.5rem; padding-bottom: 3rem; }
.footer__brand img { height: 54px; width: auto; object-fit: contain; margin-bottom: 1rem; }
.footer__brand p { color: #8f8f99; font-size: var(--fs-sm); max-width: 34ch; }
.footer__social { display: flex; gap: .6rem; margin-top: 1.25rem; }
.footer__social a { width: 38px; height: 38px; border-radius: 50%; background: rgba(255,255,255,.07); display: grid; place-items: center; color: #d6d6dd; transition: .25s var(--ease); }
.footer__social a:hover { background: var(--c-amber); color: var(--c-black); }
.footer__col h4 { color: #fff; font-size: 1rem; margin-bottom: 1.1rem; }
.footer__col ul { display: grid; gap: .65rem; }
.footer__col a { font-size: var(--fs-sm); color: #b7b7c0; }
.footer__contact li { font-size: var(--fs-sm); margin-bottom: .65rem; display: flex; gap: .6rem; }
.footer__contact svg { width: 18px; height: 18px; color: var(--c-amber); flex: 0 0 18px; margin-top: 3px; }
.footer__bottom { border-top: 1px solid rgba(255,255,255,.1); padding-block: 1.5rem; display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; font-size: var(--fs-xs); color: #8f8f99; }
.footer__bottom a { color: #b7b7c0; }
.footer__legal { display: flex; gap: 1.25rem; flex-wrap: wrap; }

/* ----------------------------------------------------------------- */
/* 14. WHATSAPP FLOAT + BACK TO TOP                                   */
/* ----------------------------------------------------------------- */
.whatsapp-float { position: fixed; right: 22px; bottom: 22px; z-index: 90; width: 56px; height: 56px; border-radius: 50%; background: #25d366; color: #fff; display: grid; place-items: center; box-shadow: 0 8px 24px rgba(37,211,102,.45); transition: transform .25s var(--ease); }
@media (max-width: 600px) { .whatsapp-float { right: 16px; bottom: 16px; width: 52px; height: 52px; } }
.whatsapp-float:hover { transform: scale(1.08); }
.whatsapp-float svg { width: 30px; height: 30px; }

/* ----------------------------------------------------------------- */
/* 15. SCROLL REVEAL ANIMATION                                        */
/* ----------------------------------------------------------------- */
[data-reveal] { opacity: 0; transform: translateY(26px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
[data-reveal].is-visible { opacity: 1; transform: none; }
[data-reveal-delay="1"] { transition-delay: .08s; }
[data-reveal-delay="2"] { transition-delay: .16s; }
[data-reveal-delay="3"] { transition-delay: .24s; }
[data-reveal-delay="4"] { transition-delay: .32s; }

/* ----------------------------------------------------------------- */
/* 15b. SPEC UTILITY ALIASES                                         */
/* ----------------------------------------------------------------- */
/* Aliases using the brief's required class names */
.btn-primary  { background: var(--grad-cta); color: #fff; box-shadow: var(--sh-amber); display: inline-flex; align-items: center; justify-content: center; gap: .55rem; font-family: var(--font-head); font-weight: 600; font-size: var(--fs-sm); padding: .85rem 1.65rem; border-radius: var(--r-pill); transition: all .25s var(--ease); white-space: nowrap; cursor: pointer; border: 2px solid transparent; text-decoration: none; }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 14px 34px rgba(232,115,10,.4); }
.btn-secondary { background: transparent; color: var(--c-ink); border: 2px solid var(--c-ink); display: inline-flex; align-items: center; justify-content: center; gap: .55rem; font-family: var(--font-head); font-weight: 600; font-size: var(--fs-sm); padding: .85rem 1.65rem; border-radius: var(--r-pill); transition: all .25s var(--ease); white-space: nowrap; cursor: pointer; text-decoration: none; }
.btn-secondary:hover { background: var(--c-black); border-color: var(--c-black); color: #fff; }
.section-padding { padding-block: clamp(3.5rem, 7vw, 7rem); }

/* ----------------------------------------------------------------- */
/* 16. UTILITIES                                                      */
/* ----------------------------------------------------------------- */
.mt-0{margin-top:0}.mt-2{margin-top:var(--sp-2)}.mt-4{margin-top:var(--sp-4)}.mt-5{margin-top:var(--sp-5)}.mt-6{margin-top:var(--sp-6)}
.mb-2{margin-bottom:var(--sp-2)}.mb-4{margin-bottom:var(--sp-4)}.mb-5{margin-bottom:var(--sp-5)}.mb-6{margin-bottom:var(--sp-6)}
.tag { display:inline-block; font-family:var(--font-head); font-weight:600; font-size:var(--fs-xs); letter-spacing:.04em; text-transform:uppercase; color:var(--c-orange); background:#fff3df; padding:.3rem .8rem; border-radius:var(--r-pill); }
.divider { height:1px; background:var(--c-line); border:0; }
.bg-cream { background: var(--c-cream); }
.skip-link { position:absolute; left:-999px; top:0; background:var(--c-black); color:#fff; padding:.6rem 1rem; z-index:200; }
.skip-link:focus { left:8px; top:8px; }

/* ----------------------------------------------------------------- */
/* 17. RESPONSIVE                                                     */
/* ----------------------------------------------------------------- */
@media (max-width: 1024px) {
  .hero__inner { grid-template-columns: 1fr; }
  .hero__media { order: -1; max-height: 360px; }
  .grid-4 { grid-template-columns: repeat(2,1fr); }
  .footer__grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 900px) {
  :root { --header-h: 72px; }

  /* --- FIX: backdrop-filter on the sticky header makes it a containing block
     for position:fixed descendants, which trapped the drawer inside the ~72px
     header. Neutralise the filter (and any transform) on mobile so the fixed
     drawer is positioned relative to the viewport again. --- */
  .site-header { backdrop-filter: none; -webkit-backdrop-filter: none; transform: none; filter: none; background: rgba(255,255,255,.98); }
  .site-header .nav, .site-header .nav__actions { transform: none; filter: none; }

  .nav__menu { display: none; }
  .nav__toggle { display: flex; }

  /* --- Drawer: fills from under the header to the bottom of the viewport --- */
  .nav__menu.is-open {
    display: flex; position: fixed; inset: var(--header-h) 0 0 0; background: #fff;
    flex-direction: column; align-items: stretch; gap: 0; padding: 1rem;
    padding-bottom: 6.5rem; /* room for the pinned CTA */
    overflow-y: auto; -webkit-overflow-scrolling: touch; z-index: 99;
    animation: drawerIn .28s var(--ease);
  }
  @keyframes drawerIn { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: translateY(0); } }

  .nav__menu.is-open .nav__item { border-bottom: 1px solid var(--c-line-soft); }
  /* Comfortable >=48px tap targets in the mobile drawer */
  .nav__menu.is-open .nav__link { padding: 1rem .5rem; min-height: 48px; font-size: 1.05rem; justify-content: space-between; }
  .nav__menu.is-open .nav__link[aria-current="page"] { color: var(--c-orange); background: var(--c-cream); border-radius: var(--r-sm); }
  .nav__menu.is-open .nav__dropdown { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; border: none; padding: 0 0 .5rem 1rem; max-height: 0; overflow: hidden; transition: max-height .35s var(--ease); }
  .nav__menu.is-open .nav__dropdown a { padding-block: .75rem; min-height: 48px; display: flex; align-items: center; }
  .nav__item.is-open .nav__dropdown { max-height: 800px; } /* fits the 6-item Products menu */
  .nav__item.is-open .chev { transform: rotate(180deg); }

  /* --- Quick-contact strip injected at top of the drawer (by main.js) --- */
  .nav__contact { display: flex; gap: .6rem; margin: 0 0 .75rem; }
  .nav__contact a {
    flex: 1; display: inline-flex; align-items: center; justify-content: center; gap: .45rem;
    min-height: 48px; padding: .65rem .5rem; border-radius: var(--r-sm);
    font-family: var(--font-head); font-weight: 600; font-size: var(--fs-sm);
    border: 1px solid var(--c-line); color: var(--c-ink); background: var(--c-cream);
  }
  .nav__contact a svg { width: 18px; height: 18px; }
  .nav__contact .nav__contact--wa { color: #128c7e; border-color: rgba(18,140,126,.3); }

  /* --- Primary CTA: pinned full-width at the bottom of the open drawer --- */
  .nav__actions .btn { display: none; }
  body.nav-open .nav__actions .btn--primary {
    display: inline-flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 100;
    width: auto; margin: 0 1rem 1rem; justify-content: center; min-height: 52px;
  }

  /* 3-up card grids become 2-up on tablets so cards aren't cramped */
  .grid-3 { grid-template-columns: repeat(2,1fr); }
}
@media (max-width: 720px) {
  .grid-2,.grid-3,.grid-4 { grid-template-columns: 1fr; }
  .split,.split--reverse .split__media { grid-template-columns: 1fr; order: 0; }
  .split--reverse .split__media { order: -1; }
  .stats { grid-template-columns: repeat(2,1fr); }
  .form-row { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: 1fr; }
  .topbar__contact .hide-sm,
  .topbar__region.hide-sm { display: none; }

  /* --- HERO: balanced vertical rhythm once stacked --- */
  .hero__inner { gap: 2rem; padding-block: clamp(2.5rem,8vw,3.5rem); }
  .hero__title { margin: .65rem 0 1rem; }
  .hero__sub { font-size: 1.075rem; margin-bottom: 1.5rem; max-width: none; }
  .hero__media { order: -1; max-height: 300px; }
  .hero__stats { gap: 1.25rem 2rem; margin-top: 1.75rem; }
  .page-hero p { font-size: 1.06rem; }

  /* --- SECTION spacing: trim the oversized rhythm on phones --- */
  .section { padding-block: clamp(2.75rem,9vw,3.75rem); }
  .section--tight { padding-block: clamp(2.25rem,7vw,3rem); }
  .section-padding { padding-block: clamp(2.75rem,9vw,3.75rem); }
  .section-head { margin-bottom: 1.75rem; }
  .lead { font-size: 1.075rem; }

  /* --- CARDS / steps: comfortable full-width gaps --- */
  .grid { gap: 1.1rem; }
  .steps { gap: 1.1rem; }
  .step__num { flex-basis: 42px; height: 42px; }

  /* Reduce split media height once stacked so it doesn't dominate the fold,
     but keep a sensible floor so contained product images stay legible */
  .split__media { max-height: 320px; }
  .split__media--contain img { max-height: 280px; min-height: 200px; }
  .card__media--contain { min-height: 180px; }

  /* --- CTA band: smaller radius reads better edge-to-edge on phones --- */
  .cta-band { border-radius: var(--r-lg); padding: clamp(1.75rem,7vw,2.5rem); }

  /* --- FOOTER: clean stacked columns with breathing room --- */
  .footer__grid { gap: 2rem; }
  .footer__brand { margin-bottom: .5rem; }
}
/* ---- Small phones (<=600px): tighten spacing, full-width CTAs ---- */
@media (max-width: 600px) {
  /* Comfortable side padding floor so text never kisses the screen edge */
  .container { padding-inline: 1.15rem; }

  /* Full-width, stacked CTAs */
  .hero__ctas .btn,
  .cta-band__ctas .btn { width: 100%; }
  .hero__ctas, .cta-band__ctas { flex-direction: column; align-items: stretch; }

  /* HERO stats: keep numbers from cramping their labels */
  .hero__stats { gap: 1.1rem 1.75rem; }
  .hero__stat .num { font-size: 1.8rem; line-height: 1.1; }

  /* TYPOGRAPHY: gentler headings + lead on small phones, no widows */
  .section-head h2 { font-size: clamp(1.5rem, 6.5vw, 1.9rem); }
  .lead { font-size: 1.05rem; line-height: 1.58; }
  .hero__sub { font-size: 1.05rem; }
  .cta-band p, .page-hero p { font-size: 1.04rem; }

  /* STATS band: 2-up with clear separation between numbers + labels */
  .stat { padding: .9rem .5rem; }
  .stat .label { margin-top: .35rem; }

  .brand-chip { padding: .55rem 1rem; font-size: var(--fs-xs); }

  /* CARDS / checklist: comfortable full-width padding */
  .card__body { padding: 1.25rem; }
  .icon-card { padding: 1.5rem 1.25rem; }
  .checklist { gap: .7rem; }

  /* FORMS: comfortable stacked spacing, full-width submit */
  .form { gap: .95rem; }
  .form .btn,
  .form [type="submit"] { width: 100%; }

  /* Larger tap target for topbar phone link */
  .topbar .container { min-height: 44px; }
  .topbar a { padding-block: .35rem; display: inline-flex; align-items: center; }

  /* FOOTER: roomier stacked spacing + tappable social icons */
  .footer__grid { gap: 1.75rem; padding-bottom: 2.25rem; }
  .footer__social a { width: 42px; height: 42px; }
}
/* ---- Very small phones (<=380px): smallest stat layout ---- */
@media (max-width: 380px) {
  /* Slightly tighter side padding to win back content width at 360px */
  .container { padding-inline: 1rem; }

  /* Keep the hero headline readable, not oversized, on a 360px screen */
  .hero__title { font-size: clamp(1.95rem, 9vw, 2.35rem); }
  .page-hero h1 { font-size: clamp(1.85rem, 8.5vw, 2.2rem); }

  /* Single-column stats with a divider so numbers + labels read clearly */
  .stats { grid-template-columns: 1fr; gap: .25rem; }
  .stat { padding: .85rem .5rem; border-bottom: 1px solid var(--c-line); }
  .stat:last-child { border-bottom: 0; }
  .section--dark .stat { border-color: rgba(255,255,255,.12); }

  /* Hero stats: 2-up grid keeps three short metrics tidy instead of wrapping oddly */
  .hero__stats { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem 1.5rem; }

  .footer__bottom { flex-direction: column; align-items: flex-start; gap: .5rem; }
  .footer__legal { gap: 1rem; }
}
@media (prefers-reduced-motion: reduce) {
  *,*::before,*::after { animation-duration: .01ms !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  [data-reveal] { opacity: 1; transform: none; }
}
