/* Arnav Enterprises — site styles */
:root {
  --navy: #16235A;
  --navy-2: #0E1840;
  --navy-line: #26346E;
  --sun: #F4A300;
  --sun-hover: #FFB627;
  --sun-soft: #FFD27A;
  --rust: #B4500A;
  --green: #1E7B4A;
  --green-hover: #17663C;
  --teal: #2BA3B8;
  --paper: #F6F3EC;
  --sand: #EDE8DC;
  --card: #FFFFFF;
  --line: #E3DDCF;
  --ink: #141826;
  --ink-2: #3A3F4E;
  --muted: #5A6070;
  --on-navy: #CBD2EA;
  --on-navy-2: #AEB8DA;
  --radius: 12px;
  --display: 'Archivo', 'Arial Narrow', sans-serif;
  --body: 'Mukta', system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--body); font-size: 17px; line-height: 1.55; }
img { max-width: 100%; display: block; }
a { color: var(--navy); }
a:hover { color: var(--rust); }
h1, h2, h3, h4 { font-family: var(--display); letter-spacing: -0.015em; margin: 0; }
p { margin: 0; }
[id] { scroll-margin-top: 88px; }
:focus-visible { outline: 3px solid var(--sun); outline-offset: 2px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -9999px; top: 0; background: var(--sun); color: var(--navy-2); padding: 10px 16px; z-index: 100; font-weight: 700; }
.skip:focus { left: 8px; top: 8px; }

.wrap { max-width: 1240px; margin: 0 auto; padding: 0 32px; }
.section { padding: 96px 0; }
.section-sm { padding: 64px 0; }
.stack { display: flex; flex-direction: column; gap: 20px; }
.stack-lg { display: flex; flex-direction: column; gap: 36px; }
.row-between { display: flex; flex-wrap: wrap; gap: 16px; justify-content: space-between; align-items: flex-end; }
.eyebrow { font-family: var(--display); font-size: 13px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--rust); }
.on-dark .eyebrow { color: var(--sun); }
.h-xl { font-size: clamp(40px, 5.4vw, 72px); line-height: 1.02; font-weight: 900; }
.h-lg { font-size: clamp(32px, 3.6vw, 44px); line-height: 1.08; font-weight: 800; color: var(--navy); }
.h-md { font-size: clamp(26px, 2.6vw, 34px); line-height: 1.12; font-weight: 800; color: var(--navy); }
.h-sm { font-size: 22px; font-weight: 800; color: var(--navy); }
.lead { font-size: 19px; color: var(--ink-2); max-width: 640px; }
.muted { color: var(--muted); }
.hi { font-family: var(--body); }
.bg-white { background: var(--card); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.bg-sand { background: var(--sand); }
.bg-navy { background: var(--navy); color: #fff; }

.grid4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
.grid3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.grid2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 48px; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 22px; border-radius: 8px; font-family: var(--display); font-weight: 700; font-size: 16px; text-decoration: none; border: 2px solid transparent; cursor: pointer; line-height: 1.1; text-align: center; transition: background .15s, color .15s, border-color .15s; }
.btn svg { flex: none; }
.btn-sun { background: var(--sun); color: var(--navy-2); }
.btn-sun:hover { background: var(--sun-hover); color: var(--navy-2); }
.btn-ghost { border-color: rgba(255,255,255,.7); color: #fff; background: transparent; }
.btn-ghost:hover { border-color: var(--sun); color: var(--sun); }
.btn-navy { background: var(--navy); color: #fff; }
.btn-navy:hover { background: var(--navy-2); color: #fff; }
.btn-line { border-color: var(--navy); color: var(--navy); background: transparent; }
.btn-line:hover { background: var(--navy); color: #fff; }
.btn-wa { background: var(--green); color: #fff; }
.btn-wa:hover { background: var(--green-hover); color: #fff; }
.btn-sm { min-height: 44px; font-size: 14.5px; padding: 0 12px; }
.btn-block { width: 100%; }

/* Top bar + header */
.topbar { background: var(--navy-2); color: var(--on-navy-2); font-size: 14px; }
.topbar .wrap { display: flex; flex-wrap: wrap; gap: 6px 24px; justify-content: space-between; align-items: center; padding-top: 8px; padding-bottom: 8px; }
.topbar a { color: #fff; text-decoration: none; }
.topbar a:hover { color: var(--sun); }
.topbar .motto { color: var(--sun); font-weight: 600; }
.topbar .links { display: flex; flex-wrap: wrap; gap: 6px 20px; }

.header { background: var(--navy); color: #fff; position: sticky; top: 0; z-index: 50; box-shadow: 0 1px 0 rgba(0,0,0,.2); }
.header .wrap { display: flex; align-items: center; gap: 14px 28px; padding-top: 12px; padding-bottom: 12px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: #fff; }
.brand:hover { color: #fff; }
.brand-logo { height: 49px; width: auto; border-radius: 6px; flex: none; }
.brand-name { font-family: var(--display); font-weight: 900; font-size: 20px; letter-spacing: .02em; line-height: 1.1; display: block; }
.brand-sub { font-size: 12.5px; color: var(--on-navy-2); display: block; }
.nav { display: flex; gap: 2px; flex: 1; }
.nav a { color: #D5DBEE; text-decoration: none; padding: 12px 14px; font-weight: 600; font-size: 16px; }
.nav a:hover { color: #fff; }
.nav a[aria-current="page"] { color: #fff; box-shadow: inset 0 -3px 0 var(--sun); }
.menu-btn { display: none; margin-left: auto; background: transparent; border: 2px solid rgba(255,255,255,.4); color: #fff; border-radius: 8px; width: 48px; height: 48px; align-items: center; justify-content: center; cursor: pointer; }

/* Hero */
.hero { background: var(--navy); color: #fff; overflow: hidden; }
.hero .wrap { display: flex; flex-wrap: wrap; gap: 48px; align-items: center; padding-top: 72px; padding-bottom: 88px; }
.hero-text { flex: 1 1 520px; min-width: 0; display: flex; flex-direction: column; gap: 24px; }
.hero-text .accent { color: var(--sun); }
.hero-slogan { font-size: 24px; font-weight: 600; color: var(--sun-soft); line-height: 1.35; }
.hero-lead { font-size: 19px; color: var(--on-navy); max-width: 560px; }
.hero-stats { display: flex; flex-wrap: wrap; gap: 36px; padding-top: 24px; margin-top: 8px; border-top: 1px solid rgba(255,255,255,.15); }
.hero-stats b { display: block; font-family: var(--display); font-size: 34px; font-weight: 800; color: #fff; line-height: 1.1; }
.hero-stats span { font-size: 14px; color: var(--on-navy-2); }
.hero-media { flex: 1 1 440px; min-width: 0; height: 460px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-rows: repeat(2, minmax(0, 1fr)); gap: 14px; }
.hero-media > div { min-width: 0; min-height: 0; border-radius: 12px; overflow: hidden; background: var(--navy-2); box-shadow: 0 8px 24px rgba(0,0,0,.25); }
.hero-media .tall { grid-row: span 2; }
.hero-media img, .hero-media .ph { display: block; width: 100%; height: 100%; object-fit: cover; object-position: center; }

.trust { background: var(--sun); color: var(--navy-2); }
.trust .wrap { display: flex; flex-wrap: wrap; gap: 12px 40px; justify-content: space-between; padding-top: 18px; padding-bottom: 18px; font-family: var(--display); font-weight: 700; font-size: 15px; }
.trust span { display: inline-flex; gap: 8px; align-items: center; }

.page-head { background: var(--navy); color: #fff; }
.page-head .wrap { padding-top: 48px; padding-bottom: 56px; display: flex; flex-direction: column; gap: 14px; }
.page-head p { color: var(--on-navy); font-size: 19px; max-width: 720px; }
.crumbs { font-size: 14px; color: var(--muted); }
.page-head .crumbs, .page-head .crumbs a { color: var(--on-navy-2); }
.crumbs a { text-decoration: none; }
.crumbs a:hover { text-decoration: underline; }

/* Placeholder image */
.ph { background: repeating-linear-gradient(135deg, #ECE6D8 0 12px, #F3EFE5 12px 24px); display: flex; align-items: center; justify-content: center; color: #6B6553; font-size: 13px; font-family: ui-monospace, Menlo, Consolas, monospace; text-align: center; padding: 12px; }
.ph-dark { background: repeating-linear-gradient(135deg, #22306B 0 12px, #1C2960 12px 24px); color: var(--on-navy-2); }

/* Cards */
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); }
.cat-card { display: flex; flex-direction: column; text-decoration: none; color: var(--ink); overflow: hidden; transition: border-color .15s, transform .15s; }
.cat-card:hover { border-color: var(--navy); color: var(--ink); transform: translateY(-2px); }
.cat-card .media { aspect-ratio: 4 / 3; border-bottom: 1px solid var(--line); overflow: hidden; background: #fff; }
.cat-card .media img { width: 100%; height: 100%; object-fit: contain; }
.cat-card .body { padding: 18px 20px 20px; display: flex; flex-direction: column; gap: 4px; }
.cat-card .name { font-family: var(--display); font-weight: 700; font-size: 19px; color: var(--navy); line-height: 1.2; }
.cat-card .hi { font-size: 15px; color: var(--muted); }
.cat-card .meta { font-size: 14px; color: var(--muted); padding-top: 6px; }

.product { display: flex; flex-direction: column; overflow: hidden; }
.product .media { aspect-ratio: 4 / 3; border-bottom: 1px solid var(--line); background: #fff; display: block; overflow: hidden; }
.product .media img { width: 100%; height: 100%; object-fit: contain; transition: transform .2s; }
.product .media:hover img { transform: scale(1.03); }
.product .media .ph { height: 100%; }
.product .body { padding: 16px 18px 18px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.product h3 { font-size: 18px; font-weight: 700; line-height: 1.25; }
.product h3 a { color: var(--ink); text-decoration: none; }
.product h3 a:hover { color: var(--rust); }
.product .spec { font-size: 14.5px; color: var(--muted); line-height: 1.45; }
.price-row { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 6px; margin-top: auto; padding-top: 8px; }
.price { font-family: var(--display); font-size: 21px; font-weight: 800; color: var(--navy); }
.price-note { font-size: 13px; color: var(--muted); }
.product .actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.tag { align-self: flex-start; display: inline-block; font-size: 12px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--navy); background: #E7EAF5; border-radius: 4px; padding: 3px 8px; }

/* Catalogue toolbar */
.toolbar { display: flex; flex-direction: column; gap: 18px; }
.chips { display: flex; gap: 10px; overflow-x: auto; padding-bottom: 6px; scrollbar-width: thin; }
.chip { flex: none; min-height: 44px; padding: 0 16px; border-radius: 999px; border: 1px solid #C9C2B1; background: #fff; color: var(--ink); font: inherit; font-size: 15px; font-weight: 600; cursor: pointer; white-space: nowrap; }
.chip:hover { border-color: var(--navy); }
.chip[aria-pressed="true"] { background: var(--navy); border-color: var(--navy); color: #fff; }
.chip .n { opacity: .65; font-weight: 500; margin-left: 4px; }
.search { display: flex; flex-wrap: wrap; gap: 10px; max-width: 640px; padding-top: 10px; }
.search input { flex: 1 1 320px; border-color: #4A5A9A; }
.empty { padding: 48px; text-align: center; color: var(--muted); }

/* Forms */
input, select, textarea { font: inherit; font-size: 16px; border: 1px solid #C9C2B1; border-radius: 8px; padding: 12px 14px; background: #fff; color: var(--ink); width: 100%; min-height: 48px; }
textarea { min-height: 110px; resize: vertical; }
label { font-size: 14px; font-weight: 600; color: var(--ink-2); display: flex; flex-direction: column; gap: 6px; }
.form { padding: 32px; display: flex; flex-direction: column; gap: 18px; }
.form .grid2 { gap: 16px; }
.form .grid3 { gap: 16px; }
.form-note { font-size: 13px; color: var(--muted); text-align: center; }
.req { color: var(--rust); }

/* Steps / misc */
.steps { margin: 8px 0 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 16px; }
.steps li { display: flex; gap: 16px; align-items: flex-start; }
.num { flex: none; width: 40px; height: 40px; border-radius: 50%; background: var(--navy); color: var(--sun); display: flex; align-items: center; justify-content: center; font-family: var(--display); font-weight: 800; }
.scheme { background: var(--navy); color: #fff; border-radius: 16px; padding: 40px; display: flex; flex-direction: column; gap: 18px; }
.scheme .hi { font-size: 30px; font-weight: 700; line-height: 1.25; color: var(--sun-soft); }
.scheme p { color: var(--on-navy); }
.pills { display: flex; flex-wrap: wrap; gap: 10px; }
.pills span { border: 1px solid #4A5A9A; border-radius: 999px; padding: 6px 14px; font-size: 14px; }

.review { margin: 0; padding: 28px; display: flex; flex-direction: column; gap: 16px; }
.review .stars { color: #C27C00; font-size: 20px; letter-spacing: 2px; }
.review blockquote { margin: 0; font-family: var(--display); font-size: 21px; font-weight: 600; line-height: 1.35; color: var(--navy); }
.review figcaption { margin-top: auto; font-size: 15px; color: var(--muted); }
.review figcaption b { color: var(--ink); }

.contact-list { display: flex; flex-direction: column; gap: 14px; padding-top: 8px; font-size: 17px; }
.contact-list a { text-decoration: none; font-weight: 700; display: inline-flex; gap: 10px; align-items: center; }
.contact-list span { display: inline-flex; gap: 10px; align-items: flex-start; color: var(--ink-2); }
.map { border: 0; width: 100%; min-height: 260px; border-radius: 12px; background: var(--sand); }

.cta-band { background: var(--navy); color: #fff; border-radius: 18px; padding: 48px; display: flex; flex-wrap: wrap; gap: 24px; align-items: center; justify-content: space-between; }
.cta-band p { color: var(--on-navy); }
.note-box { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 36px; display: flex; flex-wrap: wrap; gap: 24px; align-items: center; justify-content: space-between; }

/* Product detail */
.pd { display: flex; flex-wrap: wrap; gap: 48px; align-items: flex-start; }
.pd-gallery { flex: 1 1 520px; min-width: 0; display: flex; flex-direction: column; gap: 12px; }
.pd-main { aspect-ratio: 1 / 1; border-radius: 14px; background: #fff; border: 1px solid var(--line); overflow: hidden; display: flex; align-items: center; justify-content: center; }
.pd-main img { width: 100%; height: 100%; object-fit: contain; }
.pd-main .ph { width: 100%; height: 100%; font-size: 15px; }
.thumbs { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px; }
.thumb { aspect-ratio: 1 / 1; padding: 0; border: 1px solid var(--line); border-radius: 10px; background: #fff; overflow: hidden; cursor: pointer; }
.thumb img { width: 100%; height: 100%; object-fit: cover; }
.thumb[aria-current="true"] { outline: 3px solid var(--navy); outline-offset: 2px; }
.pd-info { flex: 1 1 460px; min-width: 0; display: flex; flex-direction: column; gap: 20px; }
.pd-price { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.pd-price .price { font-size: 40px; font-weight: 900; color: var(--ink); }
.kpis { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.kpi { background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 14px; }
.kpi div:first-child { font-size: 13px; color: var(--muted); }
.kpi div:last-child { font-family: var(--display); font-weight: 800; font-size: 18px; line-height: 1.2; }
.btn-row { display: flex; flex-wrap: wrap; gap: 10px; }
.btn-row .btn { flex: 1 1 160px; }
.checks { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 8px; font-size: 15.5px; color: var(--ink-2); }
.checks li { display: flex; gap: 10px; align-items: flex-start; }
.checks svg { color: var(--green); flex: none; margin-top: 3px; }
.table-box { position: relative; overflow-x: auto; background: #fff; border: 1px solid var(--line); border-radius: 12px; }
table.specs { width: 100%; border-collapse: collapse; font-size: 16px; }
table.specs th, table.specs td { text-align: left; padding: 12px 16px; border-bottom: 1px solid var(--line); vertical-align: top; }
table.specs tr:last-child th, table.specs tr:last-child td { border-bottom: 0; }
table.specs th { width: 42%; color: var(--muted); font-weight: 600; background: #FBFAF6; }
.terms { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 0 18px; font-size: 15px; color: var(--ink-2); }
.terms summary { cursor: pointer; font-family: var(--display); font-weight: 700; color: var(--navy); min-height: 48px; display: flex; align-items: center; }
.terms ul { margin: 0 0 16px; padding-left: 20px; display: flex; flex-direction: column; gap: 6px; }
.video { position: relative; aspect-ratio: 16 / 9; border-radius: 12px; overflow: hidden; background: #000; }
.video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* Partner tabs (suppliers) */
.ways { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.way { text-align: left; font: inherit; cursor: pointer; padding: 28px; border-radius: 14px; display: flex; flex-direction: column; gap: 10px; background: #fff; color: var(--ink); border: 2px solid var(--line); }
.way:hover { border-color: var(--navy); }
.way[aria-selected="true"] { background: var(--navy); color: #fff; border-color: var(--navy); }
.way b { font-family: var(--display); font-size: 22px; font-weight: 800; }
.way span { font-size: 16px; opacity: .85; }
.step-card { display: flex; flex-direction: column; gap: 10px; padding-top: 18px; border-top: 4px solid var(--sun); }
.step-card .n { font-family: var(--display); font-weight: 900; font-size: 30px; color: var(--navy); }
.brand-card { display: flex; flex-direction: column; gap: 8px; padding: 24px; }
.brand-card b { font-family: var(--display); font-weight: 800; font-size: 20px; color: var(--navy); }

/* Footer */
.footer { background: var(--navy-2); color: var(--on-navy-2); font-size: 15px; }
.footer a { color: #fff; text-decoration: none; }
.footer a:hover { color: var(--sun); }
.footer h2 { font-family: var(--display); color: #fff; font-size: 15px; letter-spacing: .06em; text-transform: uppercase; margin: 0 0 14px; }
.footer ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 40px; padding-top: 64px; padding-bottom: 48px; }
.footer-base { border-top: 1px solid var(--navy-line); padding-top: 18px; padding-bottom: 18px; font-size: 13.5px; display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between; }

/* Floating WhatsApp */
.wa-float { position: fixed; right: 18px; bottom: 18px; z-index: 60; width: 58px; height: 58px; border-radius: 50%; background: var(--green); color: #fff; display: flex; align-items: center; justify-content: center; box-shadow: 0 6px 20px rgba(0,0,0,.25); }
.wa-float:hover { background: var(--green-hover); color: #fff; }

/* Responsive */
@media (max-width: 1000px) {
  .grid4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid3, .ways { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid2 { grid-template-columns: minmax(0, 1fr); gap: 40px; }
}
@media (max-width: 860px) {
  .menu-btn { display: inline-flex; }
  .header .wrap { flex-wrap: wrap; }
  .header .cta { display: none; }
  .nav { display: none; flex-basis: 100%; flex-direction: column; padding-bottom: 8px; }
  .nav.open { display: flex; }
  .nav a { padding: 14px 4px; border-top: 1px solid var(--navy-line); }
  .nav a[aria-current="page"] { box-shadow: inset 4px 0 0 var(--sun); padding-left: 14px; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .wrap { padding: 0 16px; }
  .section { padding: 64px 0; }
  .grid4, .grid3, .ways { grid-template-columns: minmax(0, 1fr); }
  .kpis { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .hide-sm { display: none; }
  .hero .wrap { padding-top: 48px; padding-bottom: 56px; }
  .hero-media { height: 340px; gap: 10px; }
  .form, .scheme, .cta-band, .note-box { padding: 24px; }
  .brand-name { font-size: 17px; }
  .thumbs { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}

/* Messages & spam trap (PHP site) */
.notice { margin: 0; padding: 14px 16px; border-radius: 10px; font-size: 15px; display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.notice-ok { background: #E7F4EC; color: #14532D; border: 1px solid #A7D7B8; }
.notice-error { background: #FDECEC; color: #8A1C1C; border: 1px solid #F2B8B8; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* Privacy Policy / Terms of Use */
.legal { max-width: 780px; background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 40px 44px; color: var(--ink-2); font-size: 17px; line-height: 1.7; }
.legal h2 { font-size: 22px; color: var(--navy); margin: 30px 0 10px; }
.legal h2:first-child { margin-top: 0; }
.legal p { margin: 0 0 14px; }
.legal ul { margin: 0 0 14px; padding-left: 22px; display: flex; flex-direction: column; gap: 6px; }
.legal-foot { border-top: 1px solid var(--line); padding-top: 16px; margin-top: 24px !important; color: var(--muted); }
.footer-base a { color: var(--on-navy-2); text-decoration: underline; }
.footer-base a:hover { color: var(--sun); }
.form-note a { color: inherit; text-decoration: underline; }
@media (max-width: 640px) { .legal { padding: 24px 20px; font-size: 16px; } }

/* =====================================================================
   Fluid layout — scales smoothly from 320px phones to 2560px monitors.
   Sizes use clamp(), grids use auto-fill, so there are no awkward
   in-between widths. These rules come last and override the older
   fixed breakpoints above.
   ===================================================================== */
:root {
  --gutter: clamp(16px, 4vw, 40px);
  --space: clamp(48px, 7vw, 104px);
}
body { font-size: clamp(15.5px, 0.25vw + 14.5px, 18px); }
.wrap { max-width: 1320px; padding-left: var(--gutter); padding-right: var(--gutter); }
@media (min-width: 1700px) { .wrap { max-width: 1440px; } }
.section { padding: var(--space) 0; }
.section-sm { padding: calc(var(--space) * .66) 0; }
.stack-lg { gap: clamp(24px, 3vw, 40px); }

/* Type */
.h-xl { font-size: clamp(34px, 4.2vw + 14px, 80px); }
.h-lg { font-size: clamp(27px, 2.2vw + 16px, 50px); }
.h-md { font-size: clamp(22px, 1.4vw + 15px, 36px); }
.h-sm { font-size: clamp(19px, 0.6vw + 15px, 24px); }
.lead, .hero-lead, .page-head p { font-size: clamp(16.5px, 0.4vw + 15px, 20px); }
.hero-slogan { font-size: clamp(19px, 1vw + 15px, 27px); }
.eyebrow { font-size: clamp(12px, 0.2vw + 11px, 13.5px); }

/* Grids: as many columns as fit */
/* auto-fill, but never more than 4 (grid4) or 3 (grid3) columns, so short rows never leave empty slots */
.grid4 { --g: clamp(14px, 1.8vw, 24px); gap: var(--g); grid-template-columns: repeat(auto-fill, minmax(max(min(100%, 250px), calc((100% - 3 * var(--g)) / 4)), 1fr)); }
.grid3 { --g: clamp(16px, 2vw, 28px); gap: var(--g); grid-template-columns: repeat(auto-fill, minmax(max(min(100%, 290px), calc((100% - 2 * var(--g)) / 3)), 1fr)); }
.grid2 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 440px), 1fr)); gap: clamp(28px, 4vw, 56px); }
.kpis { grid-template-columns: repeat(auto-fit, minmax(min(100%, 140px), 1fr)); }
.ways { grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); gap: clamp(14px, 2vw, 24px); }
.form .grid2 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); gap: 16px; }
.form .grid3 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); gap: 16px; }

/* Top bar: always one line; less important items drop out as space runs out */
.topbar { font-size: clamp(12.5px, 0.3vw + 11.5px, 14px); }
.topbar .wrap { flex-wrap: nowrap; padding-top: 7px; padding-bottom: 7px; }
.topbar .motto { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.topbar .links { flex-wrap: nowrap; white-space: nowrap; gap: 6px clamp(10px, 1.6vw, 20px); }
.topbar .links .hide-sm { display: inline; }
@media (max-width: 1100px) { .topbar .links span.hide-sm, .topbar .links span { display: none; } }
@media (max-width: 860px) { .topbar .links a.hide-sm, .topbar .links a[href^="mailto"] { display: none; } }
@media (max-width: 520px) { .topbar .links a:nth-child(2) { display: none; } }

/* Header: logo, name and menu button always on one line */
.header .wrap { flex-wrap: nowrap; gap: 12px clamp(12px, 2vw, 28px); padding-top: clamp(8px, 1vw, 12px); padding-bottom: clamp(8px, 1vw, 12px); }
.brand { min-width: 0; flex: 0 1 auto; gap: clamp(8px, 1vw, 12px); }
.brand > span { min-width: 0; }
.brand-logo { height: clamp(38px, 1.6vw + 32px, 52px); }
.brand-name { font-size: clamp(14.5px, 0.8vw + 11.5px, 21px); white-space: nowrap; }
.brand-sub { font-size: clamp(11px, 0.25vw + 10px, 12.5px); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.nav a { padding: 12px clamp(8px, 1vw, 14px); }
.header .cta { flex: none; }
@media (max-width: 1023px) {
  .header .wrap { flex-wrap: wrap; }
  .brand { flex: 1 1 0; }
  .menu-btn { display: inline-flex; flex: none; }
  .header .cta { display: none; }
  .nav { display: none; flex-basis: 100%; flex-direction: column; padding-bottom: 8px; }
  .nav.open { display: flex; }
  .nav a { padding: 14px 4px; border-top: 1px solid var(--navy-line); }
  .nav a[aria-current="page"] { box-shadow: inset 4px 0 0 var(--sun); padding-left: 14px; }
}
@media (max-width: 359px) { .brand-sub { display: none; } }
[id] { scroll-margin-top: clamp(72px, 6vw, 96px); }

/* Hero */
.hero .wrap { gap: clamp(28px, 4vw, 56px); padding-top: clamp(36px, 6vw, 88px); padding-bottom: clamp(44px, 7vw, 100px); }
.hero-text { gap: clamp(16px, 2vw, 26px); }
.hero-media { height: clamp(300px, 36vw, 540px); gap: clamp(8px, 1vw, 14px); }
@media (max-width: 1023px) { .hero-media { flex-basis: 100%; height: clamp(250px, 58vw, 480px); } }
.hero-stats { gap: clamp(18px, 3vw, 44px); padding-top: clamp(16px, 2vw, 24px); }
.hero-stats b { font-size: clamp(26px, 1.4vw + 19px, 40px); }
.hero-stats span { font-size: clamp(12.5px, 0.2vw + 12px, 14px); }
@media (max-width: 520px) {
  /* full-width buttons on phones (overrides the inline flex on these buttons) */
  .hero .btn-row .btn, .page-head .btn-row .btn, .cta-band .btn-row .btn, .note-box .btn-row .btn { flex: 1 1 100% !important; }
  .hero-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
}

/* Trust strip: tidy rows on every width */
.trust .wrap { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr)); gap: 10px 24px; padding-top: clamp(14px, 1.6vw, 20px); padding-bottom: clamp(14px, 1.6vw, 20px); font-size: clamp(13.5px, 0.3vw + 12.5px, 15.5px); }

/* Page headers, cards and panels */
.page-head .wrap { padding-top: clamp(32px, 4.5vw, 64px); padding-bottom: clamp(36px, 5vw, 72px); }
.cat-card .body, .product .body { padding: clamp(14px, 1.4vw, 20px); }
.cat-card .name { font-size: clamp(17px, 0.4vw + 15px, 20px); }
.product h3 { font-size: clamp(16.5px, 0.3vw + 15px, 19px); }
.price { font-size: clamp(19px, 0.4vw + 17px, 23px); }
.form, .scheme, .note-box { padding: clamp(20px, 3vw, 40px); }
.cta-band { padding: clamp(24px, 4vw, 56px); border-radius: clamp(12px, 1.4vw, 18px); }
.review { padding: clamp(20px, 2.2vw, 30px); }
.review blockquote { font-size: clamp(18px, 0.6vw + 15px, 22px); }
.legal { padding: clamp(22px, 4vw, 48px); font-size: clamp(15.5px, 0.25vw + 14.5px, 17.5px); }
.map { min-height: clamp(220px, 26vw, 320px); }

/* Product page */
.pd { gap: clamp(24px, 4vw, 56px); }
.pd-price .price { font-size: clamp(30px, 1.6vw + 22px, 44px); }
.thumbs { grid-template-columns: repeat(auto-fill, minmax(64px, 1fr)); }
.btn-row .btn { min-width: 0; }

/* Catalogue filter chips: scroll on phones, wrap on large screens */
@media (min-width: 1024px) { .chips { flex-wrap: wrap; overflow: visible; } }

/* Footer */
.footer-grid { grid-template-columns: repeat(auto-fit, minmax(min(100%, 210px), 1fr)); gap: clamp(24px, 3vw, 44px); padding-top: clamp(40px, 5vw, 72px); padding-bottom: clamp(28px, 4vw, 52px); }

/* Very small phones */
@media (max-width: 359px) {
  .btn { padding: 0 14px; font-size: 15px; }
  .product .actions { grid-template-columns: minmax(0, 1fr); }
}

/* Rows of exactly four cards (popular / related machines): 4 → 2×2 → 1, never 3 + 1 */
.grid-quad { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 1099px) { .grid-quad { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 539px) { .grid-quad { grid-template-columns: minmax(0, 1fr); } }

/* "Get a Quote" inside the phone/tablet menu (the header button is hidden there) */
.nav .nav-cta { display: none; }
@media (max-width: 1023px) {
  .nav .nav-cta { display: flex; margin-top: 12px; padding: 0 22px; border-top: 0; color: var(--navy-2); box-shadow: none; }
  .nav .nav-cta:hover { color: var(--navy-2); }
}

/* Product gallery on phones: shorter main photo, one swipeable row of thumbnails */
@media (max-width: 639px) {
  .pd-main { aspect-ratio: 4 / 3; }
  .thumbs { display: flex; overflow-x: auto; gap: 8px; padding-bottom: 4px; scroll-snap-type: x mandatory; }
  .thumb { flex: 0 0 64px; scroll-snap-align: start; }
}

/* Keep the last footer line clear of the floating WhatsApp button on small screens */
@media (max-width: 767px) { .footer-base { padding-bottom: 92px; } }

/* Footer credit: Revotik */
.footer .dev-credit { display: flex; align-items: center; gap: 12px; margin-top: 12px; padding-top: 18px; border-top: 1px solid var(--navy-line); max-width: 280px; }
.footer .dev-credit img { flex: none; width: 44px; height: 44px; display: block; border-radius: 50%; }
.footer .dev-text { display: flex; flex-direction: column; gap: 4px; }
.footer .dev-text small { font-size: 11px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; line-height: 1; color: var(--on-navy-2); }
.footer .dev-text a { font-family: var(--display); font-size: 24px; font-weight: 800; line-height: 1; letter-spacing: .01em; color: #fff; text-decoration: none; transition: color .2s; align-self: flex-start; }
.footer .dev-text a:hover, .footer .dev-text a:focus-visible { color: var(--sun); text-decoration: underline; text-underline-offset: 4px; }

/* Anything marked hidden stays hidden, even if a class gives it display:flex/grid */
[hidden] { display: none !important; }
