/* =========================================================
   A-1 Cleaning Machines Sales & Services – Stylesheet
   Light + dark themes, mobile-first polish, scroll effects
   ========================================================= */

/* ---------- Theme tokens (light) ---------- */
:root {
  color-scheme: light;

  --navy: #0f1f33;
  --navy-2: #172d4a;
  --navy-3: #22406a;
  --accent: #f5b301;
  --accent-dark: #d99a00;
  --white: #ffffff;

  --bg: #ffffff;
  --bg-alt: #f3f6f9;
  --surface: #ffffff;
  --surface-2: #ffffff;
  --ink: #1a2433;
  --muted: #5b6b7f;
  --heading: #0f1f33;
  --line: #dfe5ec;
  --line-strong: #b8c4d2;
  --header-bg: rgba(255, 255, 255, .86);
  --soft: #fff4d1;
  --soft-ink: #8a6200;
  --icon-bg: #0f1f33;
  --primary-bg: #0f1f33;
  --primary-bg-hover: #22406a;
  --word-dim: #c9d2dd;
  --dark-1: #0f1f33;
  --dark-2: #172d4a;
  --dark-3: #22406a;
  --footer-bg: #0f1f33;
  --topbar-bg: #0f1f33;
  --ph-1: #eef2f6;
  --ph-2: #e2e8ef;
  --shadow: 0 10px 30px -12px rgba(15, 31, 51, .25);
  --shadow-sm: 0 4px 14px -6px rgba(15, 31, 51, .18);

  --radius: 12px;
  --radius-lg: 18px;
  --font-head: "Barlow Condensed", "Arial Narrow", sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --container: 1200px;
  --header-h: 76px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

/* ---------- Theme tokens (dark) ---------- */
:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #0a121d;
  --bg-alt: #0e1826;
  --surface: #122033;
  --surface-2: #0e1a2a;
  --ink: #e3e9f1;
  --muted: #95a6ba;
  --heading: #f3f6fa;
  --line: #213149;
  --line-strong: #2f4563;
  --header-bg: rgba(10, 18, 29, .82);
  --soft: rgba(245, 179, 1, .13);
  --soft-ink: #f7c948;
  --icon-bg: #1c3352;
  --primary-bg: #2a4a75;
  --primary-bg-hover: #35598a;
  --word-dim: #26384f;
  --dark-1: #0c1828;
  --dark-2: #10203a;
  --dark-3: #183156;
  --footer-bg: #060c15;
  --topbar-bg: #060c15;
  --ph-1: #142338;
  --ph-2: #0f1c2e;
  --shadow: 0 14px 34px -14px rgba(0, 0, 0, .7);
  --shadow-sm: 0 6px 16px -8px rgba(0, 0, 0, .6);
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --bg: #0a121d;
    --bg-alt: #0e1826;
    --surface: #122033;
    --surface-2: #0e1a2a;
    --ink: #e3e9f1;
    --muted: #95a6ba;
    --heading: #f3f6fa;
    --line: #213149;
    --line-strong: #2f4563;
    --header-bg: rgba(10, 18, 29, .82);
    --soft: rgba(245, 179, 1, .13);
    --soft-ink: #f7c948;
    --icon-bg: #1c3352;
    --primary-bg: #2a4a75;
    --primary-bg-hover: #35598a;
    --word-dim: #26384f;
    --dark-1: #0c1828;
    --dark-2: #10203a;
    --dark-3: #183156;
    --footer-bg: #060c15;
    --topbar-bg: #060c15;
    --ph-1: #142338;
    --ph-2: #0f1c2e;
    --shadow: 0 14px 34px -14px rgba(0, 0, 0, .7);
    --shadow-sm: 0 6px 16px -8px rgba(0, 0, 0, .6);
  }
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 8px); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
  transition: background-color .3s ease, color .3s ease;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { font-family: var(--font-head); line-height: 1.1; margin: 0 0 .5em; letter-spacing: .2px; color: var(--heading); }
h1 { font-size: clamp(2.4rem, 5.5vw, 4rem); font-weight: 800; text-transform: uppercase; }
h2 { font-size: clamp(1.9rem, 3.6vw, 2.75rem); font-weight: 700; }
h3 { font-size: 1.6rem; font-weight: 700; }
h4 { font-size: 1.2rem; font-weight: 700; }
p { margin: 0 0 1em; }
strong { color: inherit; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 20px; }
.center { text-align: center; margin-top: 40px; }

/* ---------- Icons ---------- */
.ic {
  width: 1.1em; height: 1.1em; flex-shrink: 0;
  stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round;
  vertical-align: -0.15em;
}
.ic--lg { width: 24px; height: 24px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  min-height: 44px; padding: .7em 1.4em; border-radius: 10px; border: 2px solid transparent;
  font-weight: 600; font-size: .95rem; cursor: pointer; font-family: inherit; line-height: 1.2;
  transition: transform .2s var(--ease), background .2s ease, color .2s ease, border-color .2s ease, box-shadow .2s ease;
}
.btn:active { transform: scale(.97); }
.btn--lg { padding: .9em 1.7em; font-size: 1rem; }
.btn--block { width: 100%; }
.btn--accent { background: var(--accent); color: var(--navy); }
.btn--primary { background: var(--primary-bg); color: var(--white); }
.btn--outline { border-color: var(--heading); color: var(--heading); background: transparent; }
.btn--ghost { border-color: rgba(255,255,255,.45); color: var(--white); background: transparent; }
.btn--dark { background: var(--navy); color: var(--white); }
.btn--white { background: var(--white); color: var(--navy); }
@media (hover: hover) {
  .btn:hover { transform: translateY(-2px); }
  .btn--accent:hover { background: var(--accent-dark); box-shadow: 0 8px 20px -8px rgba(245, 179, 1, .7); }
  .btn--primary:hover { background: var(--primary-bg-hover); }
  .btn--outline:hover { background: var(--heading); color: var(--bg); }
  .btn--ghost:hover { border-color: var(--white); background: rgba(255,255,255,.08); }
}

/* ---------- Eyebrow / tags ---------- */
.eyebrow {
  display: inline-block; font-size: .78rem; font-weight: 700; letter-spacing: 2px; text-transform: uppercase;
  color: var(--accent-dark); margin-bottom: 12px; padding-left: 34px; position: relative;
}
:root[data-theme="dark"] .eyebrow { color: var(--accent); }
.eyebrow::before {
  content: ""; position: absolute; left: 0; top: 50%; width: 24px; height: 3px; background: var(--accent); border-radius: 2px;
}
.eyebrow--light { color: var(--accent); }
.tag {
  display: inline-block; font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: 1px;
  background: var(--soft); color: var(--soft-ink); padding: 4px 10px; border-radius: 999px; margin-bottom: 10px;
}

/* ---------- Image slots ---------- */
.img-slot {
  position: relative; margin: 0; width: 100%;
  aspect-ratio: var(--ratio, 4 / 3);
  border-radius: var(--radius); overflow: hidden;
  background:
    repeating-linear-gradient(45deg, rgba(127,140,160,.06) 0 12px, transparent 12px 24px),
    linear-gradient(135deg, var(--ph-1), var(--ph-2));
  border: 2px dashed var(--line-strong);
}
.img-slot--dark {
  background:
    repeating-linear-gradient(45deg, rgba(255,255,255,.04) 0 12px, transparent 12px 24px),
    linear-gradient(135deg, #1d3557, #142640);
  border-color: rgba(255,255,255,.25);
}
.img-slot__ph {
  position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center; padding: 18px; gap: 8px; color: var(--muted); overflow: auto;
}
.img-slot--dark .img-slot__ph { color: #cfd8e3; }
.img-slot__ph > .ic { width: 34px; height: 34px; opacity: .6; }
.img-slot__file {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: .75rem; font-weight: 600;
  background: rgba(127,140,160,.15); padding: 3px 8px; border-radius: 6px;
}
.img-slot__prompt { font-size: .8rem; line-height: 1.45; margin: 0; max-width: 46ch; }
.img-slot--sm .img-slot__prompt { font-size: .7rem; }
.img-slot img { width: 100%; height: 100%; object-fit: cover; }
.img-slot.is-loaded { border: 0; background: var(--ph-2); }
.img-slot.is-loaded .img-slot__ph { display: none; }

/* ---------- Top bar ---------- */
.topbar { background: var(--topbar-bg); color: #c3cedb; font-size: .85rem; }
.topbar__inner { display: flex; justify-content: space-between; align-items: center; min-height: 40px; gap: 16px; flex-wrap: wrap; }
.topbar__group { display: flex; gap: 22px; flex-wrap: wrap; }
.topbar a, .topbar span { display: inline-flex; align-items: center; gap: 7px; }
.topbar a:hover { color: var(--accent); }
.topbar .ic { color: var(--accent); }

/* ---------- Header ---------- */
.header {
  position: sticky; top: 0; z-index: 50; background: var(--header-bg);
  -webkit-backdrop-filter: saturate(180%) blur(14px); backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--line); transition: box-shadow .2s ease, background-color .3s ease;
}
.header.is-scrolled { box-shadow: var(--shadow-sm); }
.header__inner { display: flex; align-items: center; justify-content: space-between; height: var(--header-h); gap: 16px; }
.header__actions { display: flex; align-items: center; gap: 6px; }

.logo { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.logo__mark {
  font-family: var(--font-head); font-weight: 800; font-size: 1.6rem; line-height: 1;
  background: var(--accent); color: var(--navy); padding: 8px 10px; border-radius: 8px;
  box-shadow: inset 0 -3px 0 rgba(0,0,0,.12);
}
.logo__text { display: flex; flex-direction: column; line-height: 1.05; }
.logo__text strong { font-family: var(--font-head); font-size: 1.35rem; font-weight: 700; color: var(--heading); text-transform: uppercase; }
.logo__text small { font-size: .72rem; font-weight: 600; letter-spacing: 2px; text-transform: uppercase; color: var(--muted); }
.logo--light .logo__text strong { color: var(--white); }
.logo--light .logo__text small { color: #9fb0c4; }

.nav { display: flex; align-items: center; gap: 26px; margin-left: auto; }
.nav a:not(.btn) { font-weight: 500; font-size: .95rem; color: var(--ink); position: relative; padding: 6px 0; }
.nav a:not(.btn)::after {
  content: ""; position: absolute; left: 0; bottom: 0; width: 0; height: 2px; background: var(--accent); transition: width .2s ease;
}
.nav a:not(.btn):hover::after, .nav a.is-active::after { width: 100%; }

.icon-btn {
  display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 10px;
  background: none; border: 0; color: var(--heading); cursor: pointer; transition: background .2s ease;
}
.icon-btn:hover { background: var(--bg-alt); }
.nav-toggle { display: none; }

/* Theme toggle icon swap */
.theme-toggle .i-sun { display: none; }
:root[data-theme="dark"] .theme-toggle .i-sun { display: block; }
:root[data-theme="dark"] .theme-toggle .i-moon { display: none; }
.theme-toggle svg { transition: transform .5s var(--ease); }
.theme-toggle:active svg { transform: rotate(-40deg) scale(.85); }

/* ---------- Hero ---------- */
.hero {
  --p: 0;
  position: relative; color: var(--white); overflow: hidden;
  background:
    radial-gradient(1000px 500px at 85% -10%, rgba(245,179,1,.18), transparent 60%),
    linear-gradient(160deg, var(--dark-1) 0%, var(--dark-2) 60%, var(--dark-3) 100%);
}
.hero h1 { color: var(--white); }
.hero::after {
  content: ""; position: absolute; inset: auto 0 0 0; height: 6px;
  background: repeating-linear-gradient(-45deg, var(--accent) 0 18px, var(--navy) 18px 36px);
}
.hero__inner { display: grid; grid-template-columns: 1.05fr 1fr; gap: 56px; align-items: center; padding: 88px 20px 104px; }
.hero__content {
  transform: translate3d(0, calc(var(--p) * 70px), 0);
  opacity: calc(1 - var(--p) * 1.15);
  will-change: transform, opacity;
}
.hero h1 .hl { color: var(--accent); display: block; }
.hero__lead { font-size: 1.08rem; color: #c8d3e0; max-width: 56ch; }
.hero__lead strong { color: var(--white); }
.hero__actions { display: flex; gap: 14px; flex-wrap: wrap; margin: 28px 0 40px; }
.hero__stats { list-style: none; padding: 0; margin: 0; display: flex; gap: 36px; flex-wrap: wrap; }
.hero__stats li { display: flex; flex-direction: column; border-left: 3px solid var(--accent); padding-left: 14px; }
.hero__stats strong { font-family: var(--font-head); font-size: 2rem; line-height: 1; }
.hero__stats span { font-size: .85rem; color: #a9b8ca; }
.hero__media {
  position: relative;
  transform: translate3d(0, calc(var(--p) * -40px), 0);
  will-change: transform;
}
.hero__media .img-slot { box-shadow: 0 30px 60px -20px rgba(0,0,0,.55); }
.hero__media .img-slot img { transform: scale(calc(1 + var(--p) * .18)); transform-origin: 60% 60%; will-change: transform; }
.hero__badge {
  position: absolute; left: -24px; bottom: -24px; display: flex; align-items: center; gap: 12px;
  background: var(--surface); color: var(--ink); padding: 14px 18px; border-radius: var(--radius); box-shadow: var(--shadow);
}
.hero__badge .ic { width: 34px; height: 34px; color: var(--soft-ink); background: var(--soft); padding: 6px; border-radius: 8px; }
.hero__badge strong { display: block; font-family: var(--font-head); font-size: 1.15rem; color: var(--heading); }
.hero__badge span { font-size: .8rem; color: var(--muted); }

/* Hero intro (on page load) */
@keyframes rise { from { opacity: 0; transform: translateY(28px); filter: blur(6px); } to { opacity: 1; transform: none; filter: none; } }
@keyframes pop { from { opacity: 0; transform: scale(.94) translateY(20px); } to { opacity: 1; transform: none; } }
.hero .eyebrow, .hero h1, .hero__lead, .hero__actions, .hero__stats { animation: rise .9s var(--ease) both; }
.hero h1 { animation-delay: .08s; }
.hero__lead { animation-delay: .2s; }
.hero__actions { animation-delay: .3s; }
.hero__stats { animation-delay: .4s; }
.hero__media > .img-slot { animation: pop 1.1s var(--ease) .15s both; }
.hero__badge { animation: rise .8s var(--ease) .6s both; }

/* ---------- Statement (word-by-word highlight) ---------- */
.statement { padding: 140px 0 120px; background: var(--bg); }
.statement__text {
  font-family: var(--font-head); font-weight: 700; font-size: clamp(2rem, 5vw, 4rem); line-height: 1.12;
  max-width: 22ch; margin: 0 auto; text-align: center; letter-spacing: .3px;
}
.statement__text .w { color: var(--word-dim); transition: color .35s ease; }
.statement__text .w.is-lit { color: var(--heading); }
.statement__text .w.hl.is-lit { color: var(--accent); }
:root:not([data-theme="dark"]) .statement__text .w.hl.is-lit { color: var(--accent-dark); }

/* ---------- Showcase (sticky, scroll-driven) ---------- */
.showcase { position: relative; height: 420vh; background: var(--bg-alt); }
.showcase__sticky {
  position: sticky; top: var(--header-h);
  height: calc(100vh - var(--header-h)); height: calc(100svh - var(--header-h));
  display: flex; align-items: center; overflow: hidden;
}
.showcase__inner { display: grid; grid-template-columns: 1fr 1.15fr; gap: 64px; align-items: center; }
.showcase__slides { display: grid; }
.showcase__slide {
  grid-area: 1 / 1; opacity: 0; transform: translateY(40px); filter: blur(8px); pointer-events: none;
  transition: opacity .6s var(--ease), transform .7s var(--ease), filter .6s var(--ease);
}
.showcase__slide.is-active { opacity: 1; transform: none; filter: none; pointer-events: auto; }
.showcase__slide.is-past { transform: translateY(-40px); }
.showcase__num {
  display: block; font-family: var(--font-head); font-weight: 800; font-size: 1rem; letter-spacing: 3px; color: var(--accent-dark); margin-bottom: 8px;
}
:root[data-theme="dark"] .showcase__num { color: var(--accent); }
.showcase__slide h2 { font-size: clamp(2.6rem, 6vw, 4.6rem); margin-bottom: .25em; }
.showcase__slide p { color: var(--muted); font-size: 1.1rem; max-width: 42ch; }
.showcase__progress { display: flex; gap: 8px; margin-top: 34px; }
.showcase__progress span { position: relative; height: 4px; flex: 0 0 44px; background: var(--line); border-radius: 4px; overflow: hidden; }
.showcase__progress span i { position: absolute; inset: 0; background: var(--accent); transform-origin: left; transform: scaleX(var(--f, 0)); }
.showcase__media { position: relative; aspect-ratio: 4 / 3; border-radius: 22px; overflow: hidden; box-shadow: var(--shadow); background: var(--ph-2); }
.showcase__img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  opacity: 0; transform: scale(1.12);
  transition: opacity .8s var(--ease), transform 1.2s var(--ease);
}
.showcase__img.is-active { opacity: 1; transform: scale(calc(1.06 - var(--lp, 0) * .06)); }

/* ---------- Sections ---------- */
.section { padding: 96px 0; }
.section--alt { background: var(--bg-alt); }
.section--dark { background: linear-gradient(170deg, var(--dark-1), var(--dark-2)); color: var(--white); }
.section--dark h2, .section--dark h3 { color: var(--white); }
.section__head { max-width: 720px; margin: 0 auto 52px; text-align: center; }
.section__head .eyebrow { padding-left: 0; }
.section__head .eyebrow::before { display: none; }
.section__head p { color: var(--muted); font-size: 1.05rem; }
.section__head--light p { color: #b9c6d6; }
.swipe-hint { display: none; }

/* ---------- Products ---------- */
.products { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.product {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden;
  display: flex; flex-direction: column; transition: transform .3s var(--ease), box-shadow .3s ease;
}
.product .img-slot { border-radius: 0; border-width: 0 0 2px 0; }
.product .img-slot img { transition: transform .8s var(--ease); }
.product .img-slot.is-loaded { border: 0; }
.product__body { padding: 24px; display: flex; flex-direction: column; flex: 1; }
.product__body > p { color: var(--muted); font-size: .95rem; }
.product__actions { display: flex; gap: 12px; margin-top: auto; padding-top: 10px; }
.product__actions .btn { flex: 1; }
@media (hover: hover) {
  .product:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
  .product:hover .img-slot img { transform: scale(1.05); }
}

.checklist { list-style: none; padding: 0; margin: 0 0 18px; display: grid; gap: 8px; }
.checklist li { display: flex; gap: 10px; align-items: flex-start; font-size: .93rem; }
.checklist .ic { color: var(--accent-dark); margin-top: 3px; stroke-width: 3; }
:root[data-theme="dark"] .checklist .ic { color: var(--accent); }
.checklist--light li { color: #d5deea; }
.checklist--light .ic { color: var(--accent); }

/* ---------- Split layout ---------- */
.split { display: grid; grid-template-columns: 1fr 1.1fr; gap: 64px; align-items: center; }
.split--reverse .split__media { order: 2; }
.split__content > p { color: var(--muted); font-size: 1.03rem; }

/* Parallax image (JS sets --py) */
[data-parallax] img { transform: translate3d(0, var(--py, 0px), 0) scale(1.14); will-change: transform; }

/* Zoom-in reveal (JS sets --z from 0 to 1) */
.zoom-reveal {
  clip-path: inset(calc((1 - var(--z, 1)) * 9%) calc((1 - var(--z, 1)) * 9%) round var(--radius-lg));
  will-change: clip-path;
}
.zoom-reveal img { transform: scale(calc(1.3 - var(--z, 1) * .3)); will-change: transform; }

/* ---------- Rental ---------- */
.steps { list-style: none; padding: 0; margin: 28px 0; display: grid; gap: 18px; }
.steps li { display: flex; gap: 16px; align-items: flex-start; }
.steps__num {
  flex-shrink: 0; width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center;
  background: var(--accent); color: var(--navy); font-family: var(--font-head); font-weight: 800; font-size: 1.3rem;
}
.steps h4 { margin-bottom: 2px; }
.steps p { margin: 0; color: var(--muted); font-size: .93rem; }
.rent-plans { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-bottom: 30px; }
.rent-plan { background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 14px; text-align: center; }
.rent-plan strong { display: block; font-family: var(--font-head); font-size: 1.3rem; color: var(--heading); }
.rent-plan span { font-size: .8rem; color: var(--muted); line-height: 1.35; display: block; }
.rent-plan--hl { background: var(--icon-bg); border-color: var(--icon-bg); }
.rent-plan--hl strong { color: var(--accent); }
.rent-plan--hl span { color: #c3cedb; }

/* ---------- Spare parts ---------- */
.parts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.part {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 14px 18px;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.part:hover { border-color: var(--accent); box-shadow: var(--shadow-sm); }
.part .img-slot { margin-bottom: 14px; border-radius: 8px; }
.part h4 { margin-bottom: 4px; }
.part p { margin: 0; color: var(--muted); font-size: .88rem; }

/* ---------- Service plans ---------- */
.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; align-items: stretch; }
.plan {
  position: relative; background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.14);
  border-radius: var(--radius-lg); padding: 32px 28px; display: flex; flex-direction: column;
}
.plan .checklist { flex: 1; margin-bottom: 26px; }
.plan h3 { font-size: 1.9rem; margin-bottom: .15em; }
.plan__sub { color: #9fb0c4; font-size: .92rem; margin-bottom: 22px; padding-bottom: 18px; border-bottom: 1px solid rgba(255,255,255,.12); }
.plan--featured { background: var(--dark-3); border: 2px solid var(--accent); transform: scale(1.03); box-shadow: 0 30px 60px -25px rgba(0,0,0,.6); }
.plan__ribbon {
  position: absolute; top: -14px; left: 50%; transform: translateX(-50%);
  background: var(--accent); color: var(--navy); font-size: .75rem; font-weight: 700; letter-spacing: 1px;
  text-transform: uppercase; padding: 5px 14px; border-radius: 999px; white-space: nowrap;
}
.plans__note { text-align: center; font-size: .8rem; color: #8ea0b6; margin: 22px 0 48px; }
.service-banner .img-slot { border-radius: var(--radius-lg); }

/* ---------- Industries ---------- */
.industries { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.industry { position: relative; border-radius: var(--radius); overflow: hidden; }
.industry .img-slot { border-radius: var(--radius); }
.industry .img-slot img { transition: transform .8s var(--ease); }
@media (hover: hover) { .industry:hover .img-slot img { transform: scale(1.06); } }
.industry > span {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 30px 14px 12px;
  background: linear-gradient(transparent, rgba(10,18,29,.9));
  color: var(--white); font-family: var(--font-head); font-size: 1.2rem; font-weight: 700;
  border-radius: 0 0 var(--radius) var(--radius);
}

/* ---------- Features ---------- */
.features { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; margin-top: 28px; }
.feature { display: flex; gap: 14px; align-items: flex-start; }
.feature__icon {
  flex-shrink: 0; width: 46px; height: 46px; border-radius: 10px; display: grid; place-items: center;
  background: var(--soft); color: var(--soft-ink);
}
.feature__icon .ic { width: 22px; height: 22px; }
.feature h4 { margin-bottom: 2px; }
.feature p { margin: 0; color: var(--muted); font-size: .9rem; }

/* ---------- CTA band ---------- */
.cta-band { background: var(--accent); color: var(--navy); padding: 54px 0; }
.cta-band h2 { color: var(--navy); margin-bottom: .2em; }
.cta-band__inner { display: flex; align-items: center; justify-content: space-between; gap: 30px; flex-wrap: wrap; }
.cta-band p { margin: 0; font-weight: 500; }
.cta-band__actions { display: flex; gap: 14px; flex-wrap: wrap; }

/* ---------- Contact ---------- */
.contact { display: grid; grid-template-columns: 1fr 1.1fr; gap: 56px; align-items: start; }
.contact__info > p { color: var(--muted); }
.contact__list { list-style: none; padding: 0; margin: 28px 0; display: grid; gap: 18px; }
.contact__list li { display: flex; gap: 14px; align-items: flex-start; }
.contact__icon {
  flex-shrink: 0; width: 44px; height: 44px; border-radius: 10px; display: grid; place-items: center;
  background: var(--icon-bg); color: var(--accent);
}
.contact__list strong { display: block; font-size: .8rem; text-transform: uppercase; letter-spacing: 1px; color: var(--muted); }
.contact__list a:hover { color: var(--accent-dark); }

.map { position: relative; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); box-shadow: var(--shadow-sm); }
.map iframe { display: block; width: 100%; height: 280px; border: 0; }
:root[data-theme="dark"] .map iframe { filter: invert(.9) hue-rotate(180deg) brightness(.95) contrast(.9); }
.map__link {
  position: absolute; right: 12px; bottom: 12px; display: inline-flex; align-items: center; gap: 6px;
  background: var(--navy); color: var(--white); font-size: .85rem; font-weight: 600;
  padding: 10px 14px; border-radius: 8px; box-shadow: var(--shadow-sm);
}
.map__link:hover { background: var(--navy-3); }
.map__link .ic { color: var(--accent); }

.form {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 34px; box-shadow: var(--shadow); display: grid; gap: 16px;
}
.form h3 { margin: 0 0 4px; }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form label { display: grid; gap: 6px; font-size: .85rem; font-weight: 600; color: var(--ink); }
.form input, .form select, .form textarea {
  width: 100%; font: inherit; font-weight: 400; font-size: 16px; /* 16px stops iOS zoom-on-focus */
  color: var(--ink); padding: 12px 14px; min-height: 48px;
  border: 1.5px solid var(--line); border-radius: 10px; background: var(--surface-2);
  transition: border-color .2s ease, box-shadow .2s ease, background-color .3s ease;
}
.form textarea { resize: vertical; }
.form input:focus, .form select:focus, .form textarea:focus {
  outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(245, 179, 1, .25);
}
.form .is-invalid { border-color: #e05252; }
.form__status { margin: 0; font-size: .9rem; font-weight: 600; min-height: 1.4em; }
.form__status.ok { color: #22a35a; }
.form__status.err { color: #e05252; }

/* ---------- Footer ---------- */
.footer { background: var(--footer-bg); color: #a9b8ca; padding-top: 64px; }
.footer__grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 40px; padding-bottom: 48px; }
.footer h4 { color: var(--white); margin-bottom: 16px; }
.footer__grid > div > a:not(.logo), .footer__grid > div > span { display: block; font-size: .92rem; margin-bottom: 9px; }
.footer__grid a:not(.logo):hover { color: var(--accent); }
.footer__about { font-size: .92rem; margin-top: 18px; max-width: 36ch; }
.footer__bottom { border-top: 1px solid rgba(255,255,255,.1); padding: 20px 0; font-size: .85rem; text-align: center; }

/* ---------- Floating WhatsApp (desktop) ---------- */
.wa-float {
  position: fixed; right: 22px; bottom: 22px; z-index: 60; width: 58px; height: 58px; border-radius: 50%;
  background: #25d366; color: var(--white); display: grid; place-items: center;
  box-shadow: 0 10px 25px -8px rgba(37, 211, 102, .7); transition: transform .2s ease;
}
.wa-float:hover { transform: scale(1.08); }
.wa-float .ic { width: 28px; height: 28px; }

/* ---------- Mobile quick-action bar ---------- */
.mobile-bar { display: none; }

/* ---------- Scroll progress line ---------- */
.scroll-progress {
  position: fixed; top: 0; left: 0; right: 0; height: 3px; z-index: 100; pointer-events: none;
  background: var(--accent); transform-origin: left; transform: scaleX(var(--sp, 0));
}

/* ---------- Reveal on scroll ---------- */
.reveal {
  opacity: 0; transform: translateY(36px) scale(.98); filter: blur(6px);
  transition: opacity .9s var(--ease), transform .9s var(--ease), filter .9s var(--ease);
  transition-delay: var(--d, 0ms);
}
.reveal.is-visible { opacity: 1; transform: none; filter: none; }

/* =========================================================
   Responsive
   ========================================================= */
@media (max-width: 1080px) {
  .nav { gap: 18px; }
  .products { grid-template-columns: repeat(2, 1fr); }
  .parts, .industries { grid-template-columns: repeat(3, 1fr); }
  .rent-plans { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 920px) {
  :root { --header-h: 64px; }
  .nav-toggle { display: inline-grid; }
  .nav {
    position: fixed; top: var(--header-h); left: 0; right: 0; height: calc(100vh - var(--header-h)); height: calc(100dvh - var(--header-h));
    flex-direction: column; align-items: stretch; gap: 0; padding: 8px 20px 30px; margin: 0;
    background: var(--bg); opacity: 0; visibility: hidden; transform: translateY(-12px);
    transition: opacity .3s var(--ease), transform .3s var(--ease), visibility .3s; overflow-y: auto;
  }
  .nav.is-open { opacity: 1; visibility: visible; transform: none; }
  .nav a:not(.btn) { padding: 16px 4px; border-bottom: 1px solid var(--line); font-size: 1.15rem; font-weight: 600; }
  .nav a:not(.btn)::after { display: none; }
  .nav__cta { margin-top: 22px; min-height: 52px; }

  .hero__inner { grid-template-columns: 1fr; padding: 48px 20px 76px; gap: 44px; }
  .hero__badge { left: 12px; bottom: -20px; }
  .statement { padding: 100px 0 90px; }
  .showcase__inner { grid-template-columns: 1fr; gap: 22px; }
  .showcase__media { order: -1; aspect-ratio: auto; height: 40svh; max-height: 360px; border-radius: 18px; }
  .showcase__slide h2 { font-size: clamp(2.2rem, 9vw, 3.2rem); }
  .showcase__slide p { font-size: 1rem; margin-bottom: .9em; }
  .showcase__progress { margin-top: 18px; }
  .split, .contact { grid-template-columns: 1fr; gap: 40px; }
  .split--reverse .split__media { order: 0; }
  .split__media { max-width: 560px; }
  .plans { grid-template-columns: 1fr; max-width: 520px; margin: 0 auto; }
  .plan--featured { transform: none; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .section { padding: 72px 0; }
}

@media (max-width: 640px) {
  .container { padding: 0 16px; }
  body { padding-bottom: calc(68px + env(safe-area-inset-bottom)); }
  h1 { font-size: clamp(2.2rem, 10.5vw, 2.8rem); }
  .topbar { font-size: .8rem; }
  .topbar__hide-sm { display: none; }
  .topbar__inner { justify-content: center; min-height: 36px; }
  .topbar__group { gap: 16px; }
  .logo { gap: 8px; }
  .logo__mark { font-size: 1.3rem; padding: 7px 8px; }
  .logo__text strong { font-size: 1.08rem; }
  .logo__text small { font-size: .6rem; letter-spacing: 1.4px; }
  .header__actions { gap: 0; }

  .hero__inner { padding: 36px 16px 64px; }
  .hero__lead { font-size: 1rem; }
  .hero__actions { margin: 24px 0 30px; }
  .hero__actions .btn { flex: 1 1 100%; }
  .hero__stats { gap: 10px; flex-wrap: nowrap; }
  .hero__stats li { flex: 1; padding-left: 10px; min-width: 0; }
  .hero__stats strong { font-size: 1.55rem; }
  .hero__stats span { font-size: .75rem; }
  .hero__badge { padding: 10px 14px; }

  .section__head { margin-bottom: 36px; }
  .section__head p { font-size: 1rem; }

  /* Machines: swipeable carousel */
  .products {
    display: flex; gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory; overscroll-behavior-x: contain;
    margin: 0 -16px; padding: 4px 16px 18px; scrollbar-width: none;
  }
  .products::-webkit-scrollbar { display: none; }
  .product { flex: 0 0 86%; scroll-snap-align: center; }
  .swipe-hint {
    display: flex; align-items: center; justify-content: center; gap: 6px;
    color: var(--muted); font-size: .85rem; font-weight: 500; margin: 0 0 14px;
  }
  .swipe-hint .ic { animation: nudge 1.6s ease-in-out infinite; }
  @keyframes nudge { 0%, 100% { transform: translateX(0); } 50% { transform: translateX(6px); } }

  .rent-plans { grid-template-columns: repeat(2, 1fr); }
  .parts { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .part { padding: 10px 10px 14px; }
  .part h4 { font-size: 1.05rem; }
  .part p { font-size: .8rem; }
  .industries { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .industry > span { font-size: 1rem; padding: 24px 10px 8px; }
  .industry .img-slot__prompt, .part .img-slot__prompt { display: none; }
  .features { grid-template-columns: 1fr; }
  .plan { padding: 28px 22px; }
  .service-banner .img-slot { aspect-ratio: 4 / 3; }

  .cta-band { padding: 44px 0; text-align: center; }
  .cta-band__inner { justify-content: center; }
  .cta-band__actions { width: 100%; }
  .cta-band__actions .btn { flex: 1; }

  .form { padding: 22px 18px; }
  .form__row { grid-template-columns: 1fr; }
  .map iframe { height: 240px; }
  .footer__grid { grid-template-columns: 1fr; gap: 28px; }

  .wa-float { display: none; }
  .mobile-bar {
    display: grid; grid-template-columns: 1fr 1fr 1.25fr; gap: 8px;
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 70;
    padding: 8px 10px calc(8px + env(safe-area-inset-bottom));
    background: var(--header-bg); border-top: 1px solid var(--line);
    -webkit-backdrop-filter: saturate(180%) blur(14px); backdrop-filter: saturate(180%) blur(14px);
  }
  .mobile-bar a {
    display: flex; align-items: center; justify-content: center; gap: 6px; min-height: 48px;
    border-radius: 12px; font-weight: 600; font-size: .9rem; background: var(--bg-alt); color: var(--heading);
  }
  .mobile-bar a .ic { width: 18px; height: 18px; }
  .mobile-bar__wa { color: #fff !important; background: #25d366 !important; }
  .mobile-bar__cta { background: var(--accent) !important; color: var(--navy) !important; }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
  .reveal { opacity: 1; transform: none; filter: none; transition: none; }
  .hero__content, .hero__media, .hero__media .img-slot img, [data-parallax] img, .zoom-reveal, .zoom-reveal img {
    transform: none !important; opacity: 1 !important; clip-path: none !important;
  }
  .showcase__slide, .showcase__img { transition: opacity .2s linear; filter: none; transform: none !important; }
}
