/* NexaVet: Emerald design.
   Layout: white working sections, graphite (or navy / grey) feature bands, emerald accents,
   deep blue for quote actions. Colours are tokens so themes and light/dark mode swap cleanly. */

:root {
  --bg: #ffffff; --alt: #f6f8f7; --surface: #ffffff; --line: #e2e6e4;
  --ink: #14181b; --muted: #5b6560; --ph: #eef1ef;
  --accent: #0f5a45; --accent-bg: #0f5a45; --on-accent: #ffffff; --accent-soft: #e3efe9;
  --blue: #08517e; --blue-bg: #08517e;
  --band: #14181b; --band-line: #2b3236; --band-text: #f2f4f3; --band-muted: #9aa49f; --band-accent: #7fc3a9;
  --hl-bg: #0f5a45; --hl-head: #ffffff; --hl-text: #e2f1ea; --hl-eyebrow: #cfe8dc; --hl-btn-bg: #ffffff; --hl-btn-text: #0f5a45;
  --wa: #128c4a;
  --f-mono: var(--f-body); /* labels use the main font */
  --wrap: 76rem; --gutter: clamp(1rem, 4vw, 2rem);
  --r-btn: 0px; --r-card: 0px;
  color-scheme: light;
}
:root[data-palette="emerald-navy"] { --bg: #eff1f3; --alt: #e4e8eb; --surface: #f7f8fa; --line: #d5dade; --ph: #dfe3e7; --muted: #55605f; --band: #102a43; --band-line: #22405e; --band-text: #eef3f8; --band-muted: #a3b4c8; --band-accent: #7fd1ae; }
:root[data-palette="emerald-grey"] { --bg: #eff1f3; --alt: #e4e8eb; --surface: #f7f8fa; --line: #d5dade; --ph: #dfe3e7; --muted: #55605f; --band: #3a4146; --band-line: #4b5359; --band-text: #f2f4f3; --band-muted: #bcc3c7; --band-accent: #9fd8bf; }

:root[data-mode="dark"] {
  --bg: #0f1614; --alt: #141d1a; --surface: #17211e; --line: #26332e;
  --ink: #e4ebe7; --muted: #9aa8a1; --ph: #1a2521;
  --accent: #6cc9a0; --accent-bg: #1d7357; --on-accent: #ffffff; --accent-soft: #17302a;
  --blue: #7ab8e6; --blue-bg: #1c6596;
  --band: #0a100e; --band-line: #1f2a26; --band-text: #e4ebe7; --band-muted: #8e9c95; --band-accent: #6cc9a0;
  --wa: #1f9d5b;
  color-scheme: dark;
}
:root[data-mode="dark"] { --hl-bg: #1d7357; --hl-btn-text: #1d7357; }
:root[data-mode="dark"][data-palette="emerald-navy"] { --bg: #0e141b; --alt: #121a23; --surface: #16202b; --line: #243242; --ph: #18222d; --band: #0b1a2c; --band-line: #1d324a; }
:root[data-mode="dark"][data-palette="emerald-grey"] { --bg: #121517; --alt: #171b1d; --surface: #1c2123; --line: #2b3134; --ph: #1f2427; --band: #262b2f; --band-line: #363d42; }

/* Light blue theme: emerald accents become blue to match the headline colour */
:root[data-palette="blue"] { --accent: #1a6fae; --accent-bg: #1a6fae; --accent-soft: #e4f0fa; --band-accent: #7cc0f0;
  --hl-bg: #e4f0fa; --hl-head: #08517e; --hl-text: #3d5a73; --hl-eyebrow: #1a6fae; --hl-btn-bg: #08517e; --hl-btn-text: #ffffff; }
:root[data-mode="dark"][data-palette="blue"] { --bg: #0e141b; --alt: #121a23; --surface: #16202b; --line: #243242; --ph: #18222d; --muted: #9aaabb; --band: #0a1018; --band-line: #1d2a38; --accent: #7cc0f0; --accent-bg: #1c6596; --accent-soft: #12283b; --band-accent: #7cc0f0;
  --hl-bg: #12283b; --hl-head: #cfe6f8; --hl-text: #a9c3d8; --hl-eyebrow: #7cc0f0; --hl-btn-bg: #7cc0f0; --hl-btn-text: #08223a; }

:root[data-corners="soft"] { --r-btn: 6px; --r-card: 10px; }
:root[data-corners="round"] { --r-btn: 999px; --r-card: 16px; }

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; } /* filters hide items with the hidden attribute */
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition: none !important; animation: none !important; } }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 1.0625rem/1.6 var(--f-body); -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; height: auto; }
a { color: var(--accent); }
h1, h2, h3 { font-family: var(--f-head); line-height: 1.05; margin: 0; letter-spacing: -.03em; text-wrap: balance; font-weight: 700; }
h1 { font-size: clamp(2.4rem, 5.5vw, 4.4rem); letter-spacing: -.045em; }
h2 { font-size: clamp(1.8rem, 3.6vw, 2.9rem); }
h3 { font-size: 1.3rem; letter-spacing: -.02em; }
.h3 { font-size: 1.5rem; }
p { margin: 0; }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 2px; }
.wrap { max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }
.eyebrow { font: 600 .75rem/1.3 var(--f-mono); letter-spacing: .12em; text-transform: uppercase; color: var(--accent); }
.lede { font-size: 1.15rem; line-height: 1.55; color: var(--muted); max-width: 36rem; }
.muted { color: var(--muted); }
.small { font-size: .9rem; }
.mt { margin-top: 2rem; }
.stack { display: grid; gap: 1.1rem; align-content: start; }
.accent-h { color: var(--accent); }
.sr { 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(--ink); color: var(--bg); padding: .6rem 1rem; z-index: 100; }
.skip:focus { left: 1rem; }
.hp { position: absolute; left: -9999px; }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5rem; min-height: 44px; padding: .75rem 1.3rem; border-radius: var(--r-btn); border: 1px solid transparent; font: 600 .95rem/1.1 var(--f-body); text-decoration: none; cursor: pointer; transition: transform .15s, filter .15s; }
.btn:hover { transform: translateY(-1px); filter: brightness(1.08); }
.btn-primary { background: var(--ink); color: var(--bg); }
.btn-quote { background: var(--blue-bg); color: #fff; }
.btn-wa { background: var(--wa); color: #fff; }
.btn-line { border-color: var(--ink); color: var(--ink); background: transparent; }
.btn-onaccent { background: var(--hl-btn-bg); color: var(--hl-btn-text); }
.btn-wide { width: 100%; }
.trade { display: inline-block; font-size: .85rem; color: var(--blue); margin-left: .25rem; }
.more { display: inline-flex; align-items: center; gap: .4rem; font-weight: 600; color: var(--accent); text-decoration: none; }
.more:hover { text-decoration: underline; }
.icon-btn { display: inline-flex; align-items: center; justify-content: center; min-width: 44px; min-height: 44px; padding: 0 .6rem; border: 1px solid var(--line); background: var(--surface); color: var(--ink); border-radius: var(--r-btn); cursor: pointer; font: 600 .9rem var(--f-body); }
.badge { font: 500 .65rem/1 var(--f-mono); letter-spacing: .1em; text-transform: uppercase; padding: .3rem .45rem; border: 1px dashed var(--muted); color: var(--muted); border-radius: 3px; }

/* placeholder imagery */
.ph { background-color: var(--ph); background-image: repeating-linear-gradient(135deg, rgba(128,128,128,.09) 0 1px, transparent 1px 14px); display: flex; align-items: flex-end; padding: 1rem; color: var(--muted); font: 400 .78rem/1.4 var(--f-mono); min-height: 12rem; }

/* top bar + header */
.topbar { background: var(--band); color: var(--band-muted); font: 400 .75rem/1.4 var(--f-mono); letter-spacing: .05em; }
.topbar-in { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .4rem 1.5rem; padding-block: .55rem; }
.topbar a { color: var(--band-muted); text-decoration: none; }
.topbar a:hover { color: var(--band-text); }
.topbar-r { display: flex; gap: 1.5rem; flex-wrap: wrap; }
.header { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 40; background: color-mix(in srgb, var(--bg) 94%, transparent); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.nav { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 4.5rem; }
.brand { display: flex; align-items: center; flex-shrink: 0; }
.logo { height: 32px; width: auto; }
.logo-dark { display: none; }
:root[data-mode="dark"] .logo-light { display: none; }
:root[data-mode="dark"] .logo-dark { display: block; }
.nav-links { display: flex; flex-wrap: nowrap; align-items: center; gap: .25rem; list-style: none; margin: 0; padding: 0; }
.nav-links > li > a { display: block; padding: .6rem .75rem; color: var(--ink); text-decoration: none; font-weight: 500; font-size: .95rem; white-space: nowrap; }
.nav-links > li > a[aria-current="page"] { box-shadow: inset 0 -2px 0 var(--accent); }
.nav-links a:hover { color: var(--accent); }
.has-sub { position: relative; }
.sub { display: none; position: absolute; top: 100%; left: 0; min-width: 16rem; list-style: none; margin: 0; padding: .5rem; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-card); box-shadow: 0 18px 40px -20px rgba(0,0,0,.35); }
.sub a { display: block; padding: .55rem .7rem; color: var(--ink); text-decoration: none; font-size: .95rem; }
.sub a:hover { background: var(--alt); color: var(--accent); }
.has-sub:hover .sub, .has-sub:focus-within .sub { display: block; }
.nav-tools { display: flex; align-items: center; gap: .5rem; }
.lang { font: 600 .85rem var(--f-mono); color: var(--ink); text-decoration: none; min-width: 44px; min-height: 44px; display: inline-flex; align-items: center; justify-content: center; border: 1px solid var(--line); border-radius: var(--r-btn); }
.mode-btn .i-moon { display: none; }
:root[data-mode="dark"] .mode-btn .i-sun { display: none; }
:root[data-mode="dark"] .mode-btn .i-moon { display: block; }
.menu-btn { display: none; }
@media (max-width: 1180px) {
  .nav-quote { display: none; }
  .nav-links > li > a { padding: .6rem .55rem; font-size: .92rem; }
}
@media (max-width: 940px) {
  .menu-btn { display: inline-flex; }
  .nav-links { display: none; position: absolute; left: 0; right: 0; top: 100%; flex-direction: column; align-items: stretch; background: var(--bg); border-bottom: 1px solid var(--line); padding: .5rem var(--gutter) 1rem; max-height: 75vh; overflow: auto; }
  .nav-links.open { display: flex; }
  .nav-links > li > a[aria-current="page"] { box-shadow: inset 3px 0 0 var(--accent); }
  .sub { display: block; position: static; border: 0; box-shadow: none; padding: 0 0 .5rem 1rem; background: transparent; min-width: 0; }
  .sub a { padding: .4rem .7rem; color: var(--muted); }
}
@media (max-width: 420px) { .nav-tools { gap: .35rem; } .nav-tools .icon-btn, .nav-tools .lang { min-width: 40px; min-height: 40px; } .logo { height: 28px; } }

/* bands */
.band { padding-block: clamp(3.5rem, 8vw, 6rem); }
.band-tight { padding-block: clamp(2.5rem, 5vw, 3.5rem); }
.band-alt { background: var(--alt); border-block: 1px solid var(--line); }
.band-dark { background: var(--band); color: var(--band-text); }
.band-dark .eyebrow { color: var(--band-accent); }
.band-dark h2 { margin: 1rem 0 2.5rem; }
.sec-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: 1.5rem; margin-bottom: 2.5rem; }
.sec-head h2 { max-width: 40rem; }
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: clamp(2rem, 6vw, 4.5rem); align-items: start; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } }
.grid { display: grid; gap: 1rem; }
.g2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (max-width: 760px) { .g2 { grid-template-columns: 1fr; } }
.prose { display: grid; gap: 1rem; max-width: 40rem; }
.prose p { color: var(--muted); }

/* hero carousel */
.hero { padding-block: clamp(2.5rem, 6vw, 4.5rem) 2rem; }
.carousel { display: grid; }
.slide { grid-area: 1 / 1; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: clamp(2rem, 5vw, 3.5rem); align-items: center; opacity: 0; visibility: hidden; transition: opacity .6s ease, visibility .6s; }
.slide.is-active { opacity: 1; visibility: visible; }
.slide-text { display: grid; gap: 1.4rem; }
.hero-h { color: var(--blue); font-size: clamp(2.6rem, 6vw, 4.8rem); line-height: .98; letter-spacing: -.045em; }
.actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: .5rem; }
.slide-media .ph, .slide-media img { height: clamp(18rem, 40vw, 31rem); width: 100%; object-fit: cover; border-radius: var(--r-card); }
.car-ctrl { display: flex; align-items: center; gap: 1rem; margin-top: 1.75rem; }
.dots { display: flex; gap: .5rem; }
.dot { width: 2.25rem; height: 44px; border: 0; background: none; padding: 0; cursor: pointer; position: relative; }
.dot::before { content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 3px; background: var(--line); }
.dot.is-active::before { background: var(--accent); }
@media (max-width: 860px) { .slide { grid-template-columns: 1fr; } .slide-media { order: -1; } .slide-media .ph, .slide-media img { height: 15rem; } }

/* paths */
.paths { padding-bottom: clamp(2.5rem, 6vw, 4rem); }
.path { display: flex; justify-content: space-between; align-items: center; gap: 1.5rem; padding: 1.6rem 1.8rem; background: var(--alt); border: 1px solid var(--line); border-radius: var(--r-card); text-decoration: none; color: var(--ink); transition: border-color .2s; }
.path:hover { border-color: var(--accent); }
.path > span:first-child { display: grid; gap: .35rem; }
.path strong { font: 700 1.3rem/1.2 var(--f-head); letter-spacing: -.02em; }
.path-go { display: inline-flex; gap: .4rem; align-items: center; font-weight: 600; color: var(--accent); white-space: nowrap; }
.path-go.quote-c { color: var(--blue); }
@media (max-width: 520px) { .path { flex-direction: column; align-items: flex-start; } }

/* range tiles */
.tiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.1rem; }
.tile { display: flex; flex-direction: column; gap: .7rem; padding: 1.5rem; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-card); text-decoration: none; color: var(--ink); transition: border-color .2s, transform .2s; }
.tile:hover { border-color: var(--accent); transform: translateY(-2px); }
.tile p { color: var(--muted); font-size: .95rem; }
.tile .more { margin-top: auto; padding-top: .5rem; }
.tile-big { grid-row: span 2; }
.tile-big h3 { font-size: 1.9rem; }
.tile-img { min-height: 16rem; flex: 1; margin-bottom: .5rem; border-radius: calc(var(--r-card) * .6); object-fit: cover; }
@media (max-width: 900px) { .tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); } .tile-big { grid-column: 1 / -1; grid-row: auto; } }
@media (max-width: 560px) { .tiles { grid-template-columns: 1fr; } }

/* featured */
.feat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr)); gap: 1px; background: var(--band-line); border: 1px solid var(--band-line); }
.feat { background: var(--band); padding: 1.75rem; display: flex; flex-direction: column; gap: .8rem; text-decoration: none; color: var(--band-text); }
.feat:hover { background: color-mix(in srgb, var(--band) 88%, #fff); }
.feat p { color: var(--band-muted); font-size: .92rem; }
.feat-go { margin-top: auto; display: inline-flex; align-items: center; gap: .4rem; color: var(--band-accent); font-weight: 600; font-size: .92rem; }
.feat .badge { align-self: flex-start; order: -1; color: var(--band-muted); border-color: var(--band-muted); }

/* service cells */
.cells { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.cells-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.cell { background: var(--surface); padding: 1.75rem; display: grid; gap: .5rem; align-content: start; }
.cell p { color: var(--muted); font-size: .95rem; }
@media (max-width: 860px) { .cells-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .cells, .cells-3 { grid-template-columns: 1fr; } }

/* next event + pet banner + cta */
.next-ev { display: flex; flex-wrap: wrap; align-items: center; gap: 1.5rem 2rem; padding: 1.75rem; border: 1px solid var(--line); border-radius: var(--r-card); background: var(--surface); text-decoration: none; color: var(--ink); }
.next-ev:hover { border-color: var(--accent); }
.next-ev-body { flex: 1 1 18rem; display: grid; gap: .3rem; }
.next-ev-body strong { font: 700 1.4rem/1.2 var(--f-head); letter-spacing: -.02em; }
.date { display: grid; text-align: center; min-width: 5.5rem; padding: .6rem; background: var(--accent-soft); color: var(--accent); border-radius: var(--r-card); }
.date b { font: 800 2rem/1 var(--f-head); }
.date span { font: 500 .72rem/1.4 var(--f-mono); letter-spacing: .08em; text-transform: uppercase; }
.pet { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 1.5rem; padding: clamp(1.75rem, 4vw, 2.5rem); background: var(--hl-bg); color: var(--hl-text); border-radius: var(--r-card); }
.pet > div { display: grid; gap: .6rem; max-width: 40rem; }
.pet .eyebrow { color: var(--hl-eyebrow); }
.pet h2 { color: var(--hl-head); }
.pet p { color: var(--hl-text); }
.cta { background: var(--hl-bg); color: var(--hl-text); padding-block: clamp(3rem, 7vw, 4.5rem); }
.cta-in { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 1.5rem; }
.cta h2 { max-width: 44rem; font-size: clamp(1.6rem, 3vw, 2.4rem); color: var(--hl-head); }

/* page hero */
.page-hero { background: var(--alt); border-bottom: 1px solid var(--line); padding-block: clamp(2.5rem, 6vw, 4rem); }
.page-hero .wrap { display: grid; gap: 1rem; }
.page-hero h1 { color: var(--blue); }
.crumbs { font: 400 .78rem/1.4 var(--f-mono); color: var(--muted); letter-spacing: .04em; }
.crumbs a { color: var(--muted); }
.crumbs-light { margin-bottom: 1.5rem; }

/* product grid + cards */
.filters { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; margin-bottom: 2rem; }
.chips { display: flex; flex-wrap: wrap; gap: .5rem; }
.chip { min-height: 40px; padding: .45rem .95rem; border: 1px solid var(--line); background: var(--surface); color: var(--ink); border-radius: 999px; font: 500 .9rem var(--f-body); cursor: pointer; }
.chip[aria-pressed="true"] { background: var(--accent-bg); border-color: var(--accent-bg); color: #fff; }
.filter-r { display: flex; flex-wrap: wrap; gap: .5rem; }
.p-search, .aud-f { min-height: 40px; padding: .45rem .8rem; border: 1px solid var(--line); background: var(--surface); color: var(--ink); border-radius: var(--r-btn); font: inherit; font-size: .9rem; }
.pgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(16rem, 1fr)); gap: 1.25rem; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-card); display: flex; flex-direction: column; min-width: 0; overflow: hidden; }
.pcard-img { display: block; }
.pcard-img img, .pcard-img .ph { aspect-ratio: 4 / 3; width: 100%; object-fit: cover; min-height: 0; }
.pcard-body { padding: 1.2rem; display: grid; gap: .5rem; align-content: start; flex: 1; }
.pcard-body h3 { font-size: 1.15rem; }
.pcard-body h3 a { color: var(--ink); text-decoration: none; }
.pcard-body h3 a:hover { color: var(--accent); }
.pcard-body p { color: var(--muted); font-size: .92rem; }
.pcard-meta { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: .5rem; }
.pcard-foot { padding: 1rem 1.2rem; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; }
.pcard-foot .btn { padding: .6rem 1rem; font-size: .88rem; }
.empty, .coming { padding: 1.5rem 0; }
.jump { display: flex; flex-wrap: wrap; gap: .5rem 1.25rem; margin-bottom: 2rem; padding-bottom: 1rem; border-bottom: 1px solid var(--line); }
.jump a { font-weight: 500; text-decoration: none; }
.cat { margin-bottom: 3rem; }
.cat-h { font-size: 1.5rem; margin-bottom: 1.25rem; scroll-margin-top: 6rem; }

/* product detail */
.pd { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: clamp(2rem, 5vw, 4rem); align-items: start; }
.pd-media { display: grid; gap: .75rem; position: sticky; top: 6rem; }
.pd-main { width: 100%; aspect-ratio: 1 / 1; object-fit: contain; background: var(--alt); border: 1px solid var(--line); border-radius: var(--r-card); min-height: 0; }
.thumbs { display: flex; gap: .5rem; flex-wrap: wrap; }
.thumb { width: 4.5rem; height: 4.5rem; padding: 0; border: 1px solid var(--line); background: var(--alt); cursor: pointer; border-radius: calc(var(--r-card) * .5); overflow: hidden; }
.thumb img { width: 100%; height: 100%; object-fit: cover; }
.pd-info { display: grid; gap: 1.25rem; align-content: start; }
.pd-h { font-size: clamp(2rem, 4vw, 3rem); }
.pd-actions { display: flex; flex-wrap: wrap; align-items: center; gap: .6rem; }
.table-wrap { overflow-x: auto; }
.spec { width: 100%; border-collapse: collapse; font-size: .95rem; }
.spec th, .spec td { text-align: left; padding: .65rem 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.spec th { font: 500 .78rem/1.5 var(--f-mono); text-transform: uppercase; letter-spacing: .06em; color: var(--muted); width: 40%; padding-right: 1rem; }
@media (max-width: 860px) { .pd { grid-template-columns: 1fr; } .pd-media { position: static; } }

/* events */
.events { display: grid; gap: 1rem; margin-top: 1.25rem; }
.event { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 1.5rem; align-items: center; padding: 1.5rem; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-card); }
.event-body { display: grid; gap: .4rem; }
.event-body p { color: var(--muted); font-size: .95rem; }
.event.past { opacity: .8; }
@media (max-width: 680px) { .event { grid-template-columns: auto minmax(0, 1fr); } .event .btn { grid-column: 1 / -1; } }

/* about */
.about-img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--r-card); min-height: 0; }
.team { display: grid; grid-template-columns: repeat(auto-fill, minmax(12rem, 1fr)); gap: 1.25rem; margin-top: 1.5rem; }
.person { margin: 0; display: grid; gap: .6rem; }
.person-img { aspect-ratio: 1; width: 100%; object-fit: cover; min-height: 0; border-radius: var(--r-card); }
.person figcaption { display: grid; }
.brands { display: grid; grid-template-columns: repeat(auto-fill, minmax(10rem, 1fr)); gap: 1rem; margin-top: 1.5rem; }
.brand-logo { display: grid; place-items: center; min-height: 6rem; padding: 1rem; background: var(--surface); border: 1px solid var(--line); color: var(--muted); text-decoration: none; font-weight: 600; }

/* contact */
.contact { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(2rem, 5vw, 4rem); align-items: start; }
.contact-info { display: grid; gap: 1.5rem; }
.contact dl { margin: 0; display: grid; gap: 1.1rem; }
.contact dt { font: 500 .75rem/1.4 var(--f-mono); letter-spacing: .1em; text-transform: uppercase; color: var(--accent); }
.contact dd { margin: .25rem 0 0; }
.form { display: grid; gap: 1rem; padding: clamp(1.25rem, 3vw, 2rem); background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-card); }
.form label { display: grid; gap: .35rem; font-size: .92rem; font-weight: 500; }
.form input, .form select, .form textarea { font: inherit; font-size: .95rem; padding: .7rem .8rem; border: 1px solid var(--line); border-radius: min(var(--r-btn), 10px); background: var(--bg); color: var(--ink); width: 100%; }
.form button { justify-self: start; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.form-msg { font-weight: 600; color: var(--accent); }
@media (max-width: 860px) { .contact { grid-template-columns: 1fr; } }
@media (max-width: 560px) { .row2 { grid-template-columns: 1fr; } }

/* footer */
.footer { background: var(--band); color: var(--band-muted); padding-block: 3.5rem 2rem; font-size: .92rem; }
.foot-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 2rem; }
.foot-h { font: 500 .75rem/1.4 var(--f-mono); letter-spacing: .12em; text-transform: uppercase; color: var(--band-text); margin-bottom: .9rem; }
.footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .5rem; }
.footer a { color: var(--band-muted); text-decoration: none; }
.footer a:hover { color: var(--band-text); }
.foot-brand { display: grid; gap: .8rem; align-content: start; }
.logo-foot { height: 30px; width: auto; }
.foot-addr { max-width: 18rem; }
.foot-base { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .75rem; margin-top: 2.5rem; padding-top: 1.25rem; border-top: 1px solid var(--band-line); font: 400 .75rem/1.5 var(--f-mono); }
@media (max-width: 860px) { .foot-grid { grid-template-columns: 1fr 1fr; } .foot-brand { grid-column: 1 / -1; } }
@media (max-width: 480px) { .foot-grid { grid-template-columns: 1fr; } }

/* floating WhatsApp */
.wa-fab { position: fixed; right: max(1rem, env(safe-area-inset-right, 0px)); bottom: calc(1rem + env(safe-area-inset-bottom, 0px)); z-index: 50; display: inline-flex; align-items: center; gap: .5rem; padding: .85rem 1.1rem; background: var(--wa); color: #fff; border-radius: 999px; text-decoration: none; font-weight: 600; box-shadow: 0 12px 30px -12px rgba(0,0,0,.45); }
.wa-fab svg { width: 22px; height: 22px; }
@media (max-width: 560px) { .wa-fab span { display: none; } .wa-fab { padding: .9rem; } }

/* Cover photos behind sections (set in Pages CMS) */
.has-bg { position: relative; isolation: isolate; background-size: cover; background-position: center; border-color: transparent; }
.has-bg::before { content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit; }
.bg-dark::before { background: linear-gradient(90deg, rgba(6, 14, 24, .86) 0%, rgba(6, 14, 24, .6) 60%, rgba(6, 14, 24, .45) 100%); }
.bg-light::before { background: rgba(255, 255, 255, .84); }
:root[data-mode="dark"] .bg-light::before { background: rgba(10, 16, 24, .8); }
.bg-none::before { display: none; }
.bg-dark { --bg: #0b1520; --ink: #f2f6fa; --muted: #c9d5e0; --accent: #8fcaf3; --blue: #ffffff; --line: rgba(255, 255, 255, .18);
  --surface: rgba(10, 20, 32, .55); --alt: rgba(10, 20, 32, .5); --accent-soft: rgba(255, 255, 255, .12);
  --hl-head: #ffffff; --hl-text: #dbe6ef; --hl-eyebrow: #8fcaf3; color: var(--ink); }
.bg-dark .tile, .bg-dark .cell, .bg-dark .card, .bg-dark .next-ev, .bg-dark .path { backdrop-filter: blur(8px); }
.bg-dark .eyebrow { color: var(--accent); }
.slide-full { grid-template-columns: 1fr; align-content: center; min-height: clamp(26rem, 46vw, 36rem); padding: clamp(1.75rem, 5vw, 4rem); border-radius: var(--r-card); }
.slide-full .slide-text { max-width: 40rem; }

/* Product cards: badge sits on the photo, buttons line up across a row */
.pcard-top { position: relative; }
.pcard-top .badge { position: absolute; top: .75rem; left: .75rem; background: var(--surface); }
.pcard-body .eyebrow { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pcard-foot { flex-direction: column; align-items: flex-start; justify-content: flex-start; gap: .55rem; }
/* Each card shares row lines with its neighbours: photo, text and button areas line up across the row */
@supports (grid-template-rows: subgrid) {
  .pgrid > .pcard { display: grid; grid-row: span 3; grid-template-rows: subgrid; row-gap: 0; }
}
.pcard-foot .trade { margin-left: 0; }
.course .pcard-foot { min-height: 0; }

/* Product page photo: show it at its own shape (no grey bars), placeholder stays square */
img.pd-main { aspect-ratio: auto; height: auto; max-height: 80vh; object-fit: contain; background: transparent; }

/* Sections with a cover photo have no border, so no untinted strip of the photo shows along the edge */
.has-bg { border: 0 !important; }

/* Phones: a full-photo slide shows the photo as a strip on top and the text below, so the whole photo is visible */
.slide-media-m { display: none; }
@media (max-width: 700px) {
  .slide-full { background-image: none !important; background-color: var(--band); padding: 0; min-height: 0; overflow: hidden; gap: 0; align-content: start; }
  .slide-full::before { display: none; }
  .slide-full .slide-media-m { display: block; order: -1; }
  .slide-full .slide-media-m img { width: 100%; height: auto; aspect-ratio: 2 / 1; object-fit: cover; object-position: 70% center; border-radius: 0; }
  .slide-full .slide-text { padding: 1.5rem 1.25rem 1.75rem; gap: 1rem; }
  .slide-full .hero-h { font-size: clamp(2rem, 9vw, 2.6rem); }
  .slide-full .lede { font-size: 1rem; }
}

/* Phones: keep the whole slideshow (photo, text, buttons and arrows) on one screen */
@media (max-width: 700px) {
  .topbar { display: none; }
  .hero { padding-block: 1rem 1.25rem; }
  .slide-text { gap: .7rem; }
  .slide .hero-h { font-size: clamp(1.85rem, 8.4vw, 2.35rem); }
  .slide .lede { font-size: .98rem; line-height: 1.5; display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }
  .slide .actions { gap: .5rem; margin-top: .25rem; }
  .slide .actions .btn { padding: .65rem .9rem; font-size: .9rem; }
  .slide-media .ph, .slide-media img { height: 11rem; }
  .slide { gap: 1rem; }
  .slide-full .slide-text { padding: 1.1rem 1.1rem 1.25rem; }
  .car-ctrl { margin-top: .75rem; }
  .car-ctrl .icon-btn { min-width: 40px; min-height: 40px; }
}
@media (max-width: 380px) {
  .slide-full .slide-media-m img { aspect-ratio: 5 / 2; }
  .slide-media .ph, .slide-media img { height: 9.5rem; }
  .slide .hero-h { font-size: 1.75rem; }
  .slide .lede { -webkit-line-clamp: 3; }
}

/* Lists and small headings inside descriptions */
.prose ul, .prose ol { margin: 0; padding-left: 1.3rem; display: grid; gap: .35rem; color: var(--muted); }
.prose li::marker { color: var(--accent); }
.prose h2, .prose h3, .prose .prose-h { font-size: 1.05rem; letter-spacing: -.01em; color: var(--ink); margin-top: .5rem; }
.prose strong { color: var(--ink); }
.prose ul.num { list-style: none; padding-left: 0; }
