:root {
  color-scheme: light;
  --bg: #f6f8f7;
  --surface: #ffffff;
  --surface-2: #eef5f3;
  --surface-3: #f8fbfa;
  --text: #182226;
  --muted: #52666d;
  --line: #d9e5e2;
  --brand: #087083;
  --brand-strong: #064f5d;
  --accent: #f07e2f;
  --green: #248e68;
  --red: #b24848;
  --yellow: #f4c542;
  --shadow: 0 22px 70px rgba(16, 31, 36, 0.14);
  --shadow-soft: 0 14px 40px rgba(16, 31, 36, 0.09);
  --glass: rgba(255, 255, 255, 0.78);
  --radius: 8px;
  --header-h: 74px;
}

[data-theme="dark"] {
  color-scheme: dark;
  --bg: #0b1316;
  --surface: #121f22;
  --surface-2: #182a2d;
  --surface-3: #0e191c;
  --text: #f4fbf8;
  --muted: #c7d5d6;
  --line: #314a50;
  --brand: #42b9cf;
  --brand-strong: #70d2df;
  --accent: #f1a64e;
  --green: #55c392;
  --red: #ee7777;
  --yellow: #f5d76a;
  --shadow: 0 18px 45px rgba(0, 0, 0, 0.32);
  --shadow-soft: 0 10px 28px rgba(0, 0, 0, 0.24);
  --glass: rgba(24, 35, 38, 0.82);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 18px);
  overflow-x: clip;
}

body {
  margin: 0;
  min-width: 320px;
  background:
    radial-gradient(circle at 12% -12%, color-mix(in srgb, var(--brand), transparent 78%), transparent 38rem),
    radial-gradient(circle at 92% 8%, color-mix(in srgb, var(--accent), transparent 86%), transparent 34rem),
    var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", "Liberation Sans", sans-serif;
  font-size: 16px;
  line-height: 1.55;
  letter-spacing: 0;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
  transition: background-color 220ms ease, color 220ms ease;
}

@supports not (overflow: clip) {
  html,
  body {
    overflow-x: hidden;
  }
}

body.modal-open {
  overflow: hidden;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}

button {
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
}

address {
  font-style: normal;
}

:focus-visible {
  outline: 3px solid rgba(242, 139, 56, 0.55);
  outline-offset: 3px;
}

.skip-link {
  position: fixed;
  top: 10px;
  left: 10px;
  z-index: 1000;
  transform: translateY(-130%);
  padding: 10px 14px;
  background: var(--text);
  color: var(--surface);
  border-radius: var(--radius);
  transition: transform 180ms ease;
}

.skip-link:focus {
  transform: translateY(0);
}

.layout {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 10px;
  z-index: 100;
  min-height: var(--header-h);
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 18px;
  width: min(1240px, calc(100% - 28px));
  margin: 10px auto 0;
  padding: 9px 14px;
  border: 1px solid color-mix(in srgb, var(--line), transparent 15%);
  border-radius: 14px;
  background: var(--glass);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 14px 40px rgba(16, 31, 36, 0.1);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.brand img {
  width: 58px;
  height: 48px;
  object-fit: contain;
  border-radius: 4px;
  background: #020404;
}

.brand strong,
.brand small {
  display: block;
  line-height: 1.15;
}

.brand strong {
  font-size: 1rem;
  white-space: nowrap;
}

.brand small {
  margin-top: 3px;
  color: var(--muted);
  font-size: 0.78rem;
}

.site-nav {
  justify-self: center;
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 5px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: color-mix(in srgb, var(--surface-3), transparent 12%);
}

.site-nav a {
  padding: 9px 11px;
  border-radius: 6px;
  color: var(--muted);
  font-size: 0.92rem;
  transition: background 160ms ease, color 160ms ease, transform 160ms ease;
}

.site-nav a:hover,
.site-nav a.active {
  background: var(--surface);
  color: var(--text);
  transform: translateY(-1px);
}

.header-actions {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.nav-toggle {
  display: none;
}

.nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  background: currentColor;
  margin: 3px auto;
}

.icon-button {
  width: 42px;
  height: 42px;
  display: inline-grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
  color: var(--text);
  box-shadow: none;
}

.icon-button.nav-toggle {
  display: none;
}

.theme-glyph {
  width: 18px;
  height: 18px;
  display: block;
  border: 2px solid currentColor;
  border-radius: 50%;
  box-shadow: inset 8px 0 0 currentColor;
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

[data-theme-mode="auto"] .theme-glyph {
  border-radius: 8px;
  box-shadow: inset 0 -8px 0 currentColor;
}

[data-theme-mode="light"] .theme-glyph {
  box-shadow: inset 0 0 0 2px transparent;
  background: currentColor;
}

.icon-button:hover .theme-glyph {
  transform: rotate(16deg);
}

.button {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 16px;
  border: 1px solid transparent;
  border-radius: 12px;
  font-weight: 700;
  line-height: 1.2;
  text-align: center;
  transition: transform 180ms ease, background 180ms ease, border-color 180ms ease, box-shadow 180ms ease, color 180ms ease;
}

.button:hover {
  transform: translateY(-1px);
}

.button:active {
  transform: translateY(0);
}

.button-primary {
  background: linear-gradient(135deg, var(--brand), #25b9ce);
  color: #ffffff;
  box-shadow: 0 10px 20px rgba(15, 102, 120, 0.22);
}

.button-primary:hover {
  background: var(--brand-strong);
}

.button-secondary {
  border-color: var(--line);
  border-color: color-mix(in srgb, var(--brand), var(--line) 55%);
  background: var(--surface);
  color: var(--brand-strong);
}

[data-theme="dark"] .button-secondary {
  background: #1d2b2d;
  color: #70d2df;
}

.hero .button-secondary {
  border-color: rgba(112, 210, 223, 0.6);
  background: rgba(10, 35, 42, 0.82);
  color: #d9fbff;
}

.hero .button-ghost {
  border-color: rgba(255, 255, 255, 0.42);
  background: rgba(8, 22, 28, 0.42);
  color: #ffffff;
}

.button-ghost {
  border-color: var(--line);
  background: transparent;
  color: var(--text);
}

.button.compact {
  min-height: 38px;
  padding: 8px 12px;
  font-size: 0.9rem;
}

.button.full {
  width: 100%;
}

.hero {
  position: relative;
  min-height: min(840px, calc(86svh - var(--header-h)));
  display: grid;
  align-items: center;
  overflow: clip;
  background: #102228;
  color: #ffffff;
  margin-top: calc((var(--header-h) + 20px) * -1);
  padding-top: calc(var(--header-h) + 20px);
}

.hero-media {
  position: absolute;
  inset: 0;
  background-image: url("assets/products/hero-irrigation.jpg");
  background-position: center;
  background-size: cover;
  transform: scale(1.02);
  animation: heroDrift 18s ease-in-out infinite alternate;
}

.hero-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(8, 22, 28, 0.78), rgba(8, 22, 28, 0.46) 56%, rgba(8, 22, 28, 0.64)),
    rgba(8, 22, 28, 0.28);
}

.hero-content {
  position: relative;
  z-index: 1;
  padding: 96px 0 74px;
  animation: heroIntro 700ms ease both;
}

.hero-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 42px;
  align-items: center;
}

.hero-copy-block {
  min-width: 0;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--accent);
  font-size: 0.82rem;
  font-weight: 800;
  text-transform: uppercase;
}

.hero .eyebrow {
  color: #ffd17d;
}

h1,
h2,
h3,
p {
  overflow-wrap: break-word;
}

h1,
h2,
h3 {
  margin: 0;
  line-height: 1.08;
}

h1 {
  max-width: 100%;
  font-size: clamp(2.4rem, 4vw, 4.2rem);
  letter-spacing: 0;
}

#hero-title {
  display: block;
  max-width: 100%;
  white-space: nowrap;
  overflow-wrap: normal;
  word-break: keep-all;
  text-wrap: nowrap;
}

h2 {
  font-size: 2.3rem;
}

h3 {
  font-size: 1.32rem;
}

.hero-copy {
  max-width: 820px;
  margin: 20px 0 0;
  font-size: 1.18rem;
  color: rgba(255, 255, 255, 0.9);
}

[data-hero-rotator] {
  display: inline-block;
  color: #9cecff;
  font-weight: 800;
  transition: opacity 180ms ease, transform 180ms ease;
}

[data-hero-rotator].is-changing {
  opacity: 0;
  transform: translateY(6px);
}

.hero-actions,
.quick-actions,
.query-actions,
.catalogue-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.hero-actions {
  margin-top: 30px;
}

.hero-console {
  display: grid;
  gap: 16px;
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.16), rgba(255, 255, 255, 0.07));
  box-shadow: 0 26px 80px rgba(0, 0, 0, 0.25);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.console-header {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 14px;
  align-items: center;
}

.console-header img {
  width: 92px;
  height: 70px;
  object-fit: contain;
  border-radius: 10px;
  background: #020404;
}

.console-header span {
  display: block;
  color: #9cecff;
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
}

.console-header strong {
  display: block;
  margin-top: 3px;
  color: #ffffff;
  font-size: 1.22rem;
}

.console-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.console-grid span {
  min-height: 70px;
  padding: 12px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 12px;
  background: rgba(2, 4, 4, 0.18);
  color: rgba(255, 255, 255, 0.78);
}

.console-grid strong {
  display: block;
  color: #ffffff;
  font-size: 1.45rem;
  line-height: 1.05;
}

.hero-proof {
  width: min(1000px, 100%);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin-top: 38px;
}

.hero-proof span {
  min-height: 74px;
  padding: 14px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.82);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease;
}

.hero-proof span:hover {
  transform: translateY(-3px);
  border-color: rgba(156, 236, 255, 0.72);
  background: rgba(255, 255, 255, 0.13);
}

.hero-proof strong {
  display: block;
  color: #ffffff;
  font-size: 1.3rem;
}

.section-band {
  padding: 84px 0;
}

.section-band > .layout {
  position: relative;
}

.dashboard-band,
.calculator-band,
.contact-band {
  background: transparent;
}

.products-band,
.catalogue-band {
  background: color-mix(in srgb, var(--surface), transparent 18%);
}

.service-band,
.about-band {
  background: var(--surface-2);
}

.section-heading {
  max-width: 760px;
  margin-bottom: 32px;
}

.section-heading h2 {
  letter-spacing: 0;
}

.section-heading p:not(.eyebrow),
.about-copy p,
.text-panel p,
.service-item p,
.product-desc {
  color: var(--muted);
}

.section-heading h2 + p {
  margin-top: 14px;
}

.compact-heading {
  margin-bottom: 24px;
}

.dashboard-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}

.metric-card,
.product-card,
.estimate-panel,
.catalogue-controls,
.catalogue-preview,
.legal-panel,
.contact-card,
.query-form,
.selected-list {
  border: 1px solid var(--line);
  border-radius: 18px;
  background:
    linear-gradient(180deg, color-mix(in srgb, var(--surface), #ffffff 6%), var(--surface));
  box-shadow: var(--shadow-soft);
  transition: transform 190ms ease, border-color 190ms ease, box-shadow 190ms ease, background-color 190ms ease;
}

.metric-card:hover,
.product-card:hover,
.service-item:hover,
.contact-card:hover {
  transform: translateY(-4px);
  border-color: color-mix(in srgb, var(--brand), var(--line) 35%);
  box-shadow: var(--shadow);
}

.metric-card {
  min-height: 142px;
  padding: 22px;
}

.metric-card strong {
  display: block;
  margin-top: 8px;
  font-size: 1.35rem;
}

.metric-card small {
  display: block;
  margin-top: 10px;
  color: var(--muted);
}

.metric-label {
  color: var(--muted);
  font-size: 0.9rem;
}

.status-active::before {
  content: "";
  display: inline-block;
  width: 10px;
  height: 10px;
  margin-right: 8px;
  border-radius: 50%;
  background: var(--green);
}

.smart-card {
  border-color: var(--accent);
  border-color: color-mix(in srgb, var(--accent), var(--line) 45%);
}

.split-panel {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  align-items: center;
  margin-top: 28px;
}

.split-panel > *,
.toolbar > *,
.calculator-grid > *,
.catalogue-layout > *,
.about-grid > *,
.contact-grid > * {
  min-width: 0;
}

.image-panel {
  overflow: hidden;
  border-radius: 22px;
  background: var(--surface-3);
  box-shadow: var(--shadow);
}

.image-panel img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  transition: transform 520ms ease;
}

.image-panel:hover img,
.service-item:hover img {
  transform: scale(1.035);
}

.text-panel {
  padding: 6px 0;
}

.text-panel p {
  margin: 18px 0 24px;
}

.toolbar {
  display: grid;
  grid-template-columns: minmax(240px, 1fr) 220px 190px;
  gap: 12px;
  align-items: end;
  margin-bottom: 18px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--surface);
  box-shadow: var(--shadow-soft);
}

label,
.search-field,
.select-field {
  display: grid;
  gap: 7px;
}

label span,
.search-field span,
.select-field span,
legend {
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 700;
}

input,
select,
textarea {
  width: 100%;
  min-width: 0;
  min-height: 46px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
  padding: 10px 12px;
  transition: border-color 180ms ease, box-shadow 180ms ease, background-color 180ms ease;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--brand);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--brand), transparent 82%);
  outline: 0;
}

textarea {
  resize: vertical;
}

input[type="range"] {
  padding: 0;
}

.category-tabs {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 3px 0 16px;
  scrollbar-width: thin;
}

.category-tabs button {
  min-height: 38px;
  flex: 0 0 auto;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface-3);
  padding: 8px 12px;
  color: var(--text);
  font-weight: 700;
  transition: transform 160ms ease, border-color 160ms ease, background-color 160ms ease;
}

.category-tabs button:hover {
  transform: translateY(-1px);
  border-color: var(--brand);
}

.category-tabs button[aria-selected="true"] {
  border-color: var(--brand);
  background: var(--surface);
  background: color-mix(in srgb, var(--brand), var(--surface) 88%);
  color: var(--brand-strong);
}

.smart-strip {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 10px;
  align-items: center;
  min-height: 58px;
  margin: 0 0 18px;
  padding: 12px 14px;
  border: 1px solid color-mix(in srgb, var(--brand), var(--line) 54%);
  border-radius: 18px;
  background:
    linear-gradient(135deg, color-mix(in srgb, var(--brand), transparent 88%), transparent),
    var(--surface);
  box-shadow: var(--shadow-soft);
}

.smart-strip strong {
  color: var(--brand-strong);
}

.smart-strip-items {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.smart-chip {
  min-height: 34px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface-3);
  padding: 7px 10px;
  color: var(--text);
  font-weight: 800;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.product-card {
  display: grid;
  grid-template-rows: auto 1fr;
  overflow: hidden;
}

.product-image {
  position: relative;
  background:
    radial-gradient(circle at 20% 10%, color-mix(in srgb, var(--brand), transparent 80%), transparent 16rem),
    var(--surface-3);
}

.product-image img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: contain;
  object-position: var(--image-x, 50%) var(--image-y, 50%);
  padding: 18px;
  transform: scale(var(--image-scale, 1));
  transform-origin: var(--image-x, 50%) var(--image-y, 50%);
  transition: transform 260ms ease;
}

.product-card:hover .product-image img {
  transform: scale(calc(var(--image-scale, 1) * 1.035));
}

.badge {
  position: absolute;
  top: 10px;
  left: 10px;
  max-width: calc(100% - 20px);
  padding: 5px 8px;
  border-radius: 999px;
  background: var(--text);
  color: var(--surface);
  font-size: 0.74rem;
  font-weight: 800;
}

.product-body {
  display: grid;
  grid-template-rows: auto auto auto 1fr auto;
  gap: 10px;
  padding: 17px;
}

.product-meta {
  margin: 0;
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
}

.product-desc {
  margin: 0;
}

.spec-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-content: start;
  margin: 0;
  padding: 0;
  list-style: none;
}

.spec-list li {
  padding: 5px 8px;
  border-radius: 999px;
  background: var(--surface-2);
  color: var(--text);
  font-size: 0.8rem;
}

.product-actions {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-top: 4px;
}

.empty-state {
  padding: 28px;
  border: 1px dashed var(--line);
  border-radius: var(--radius);
  color: var(--muted);
  text-align: center;
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.service-item {
  display: grid;
  grid-template-rows: auto 1fr;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--surface);
}

.service-item img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  background: var(--surface-3);
}

.service-item div {
  padding: 18px;
}

.service-item p {
  margin-bottom: 0;
}

.calculator-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 18px;
  align-items: start;
}

.calculator-form,
.query-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--surface);
  box-shadow: var(--shadow-soft);
}

.wide,
.check-row,
.query-actions {
  grid-column: 1 / -1;
}

.check-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 0;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 14px;
}

.check-row.stacked {
  display: grid;
}

.check-row label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.check-row input {
  width: auto;
  min-height: auto;
}

.estimate-panel {
  position: sticky;
  top: calc(var(--header-h) + 20px);
  padding: 22px;
}

.estimate-panel strong {
  display: block;
  font-size: 2.45rem;
  line-height: 1;
}

.estimate-panel dl,
.legal-panel dl {
  display: grid;
  gap: 0;
  margin: 24px 0;
}

.estimate-panel dl div,
.legal-panel dl div {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 14px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}

.estimate-panel dt,
.legal-panel dt {
  color: var(--muted);
}

.estimate-panel dd,
.legal-panel dd {
  margin: 0;
  font-weight: 800;
  text-align: right;
}

.estimate-panel .button + .button {
  margin-top: 10px;
}

.catalogue-layout {
  display: grid;
  grid-template-columns: 380px minmax(0, 1fr);
  gap: 18px;
  align-items: start;
}

.admin-band {
  background:
    linear-gradient(135deg, color-mix(in srgb, var(--brand), transparent 91%), transparent),
    var(--surface-2);
}

.admin-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: 18px;
  align-items: start;
  margin-bottom: 18px;
}

.admin-card {
  min-width: 0;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--surface);
  box-shadow: var(--shadow-soft);
}

.admin-card-heading {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: start;
  margin-bottom: 16px;
}

.admin-card-heading h3 {
  margin-top: 4px;
}

.admin-form,
.product-admin-form,
.transport-admin-form {
  display: grid;
  gap: 14px;
}

.product-admin-form {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.transport-admin-form {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.product-admin-form .wide {
  grid-column: 1 / -1;
}

.transport-admin-form .wide {
  grid-column: 1 / -1;
}

.variant-editor,
.variant-select-label {
  display: grid;
  gap: 8px;
}

.variant-editor-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.variant-list {
  display: grid;
  gap: 10px;
}

.transport-list {
  display: grid;
  gap: 10px;
}

.variant-row {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface-3);
}

.variant-row label,
.variant-select-label {
  gap: 5px;
}

.variant-row .variant-actions {
  grid-column: 1 / -1;
  display: flex;
  justify-content: flex-end;
}

.variant-row .variant-actions button {
  min-height: 34px;
}

.transport-mode-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface-3);
}

.transport-mode-row .wide {
  grid-column: 1 / -1;
}

.transport-mode-row .variant-actions {
  grid-column: 1 / -1;
  display: flex;
  justify-content: flex-end;
}

.transport-mode-row .variant-actions button {
  min-height: 34px;
}

.check-inline {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  align-self: end;
  min-height: 46px;
}

.check-inline input {
  width: auto;
  min-height: auto;
}

.pin-match-list {
  display: grid;
  gap: 8px;
  margin-top: 10px;
  max-height: 260px;
  overflow: auto;
}

.pin-match-item {
  display: grid;
  gap: 3px;
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-3);
  color: var(--text);
  text-align: left;
  cursor: pointer;
}

.pin-match-item strong,
.pin-match-item span {
  overflow-wrap: anywhere;
}

.pin-match-item span {
  color: var(--muted);
  font-size: 0.86rem;
}

.pin-match-item.selected {
  border-color: var(--brand);
  box-shadow: 0 0 0 2px var(--brand-soft);
}

.user-list,
.managed-product-list,
.activity-list {
  display: grid;
  gap: 8px;
  margin-top: 16px;
}

.user-row,
.managed-product-row,
.activity-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  align-items: center;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface-3);
}

.user-row strong,
.managed-product-row strong,
.activity-row strong {
  display: block;
}

.user-row small,
.managed-product-row small,
.activity-row small,
.login-note {
  color: var(--muted);
}

.user-role-badges,
.variant-summary {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 6px;
}

.user-badge,
.variant-pill {
  display: inline-flex;
  align-items: center;
  padding: 3px 8px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--muted);
  font-size: 0.74rem;
}

.activity-row small {
  display: block;
  margin-top: 3px;
}

.activity-flag {
  justify-self: end;
  padding: 6px 9px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--brand-strong);
  font-size: 0.72rem;
  font-weight: 900;
}

.request-user-heading {
  margin: 10px 0 2px;
  color: var(--brand-strong);
  font-size: 1rem;
}

.user-actions,
.managed-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: end;
}

.image-fit-editor {
  display: grid;
  grid-template-columns: minmax(260px, 360px) 1fr;
  gap: 16px;
  align-items: center;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--surface-3);
}

.image-fit-frame {
  position: relative;
  overflow: hidden;
  border: 1px dashed color-mix(in srgb, var(--brand), var(--line) 45%);
  border-radius: 14px;
  background:
    linear-gradient(45deg, color-mix(in srgb, var(--line), transparent 40%) 25%, transparent 25%),
    linear-gradient(-45deg, color-mix(in srgb, var(--line), transparent 40%) 25%, transparent 25%),
    var(--surface);
  background-size: 18px 18px;
  aspect-ratio: 4 / 3;
  cursor: grab;
  touch-action: none;
}

.image-fit-frame:active {
  cursor: grabbing;
}

.image-fit-frame img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: var(--fit-x, 50%) var(--fit-y, 50%);
  transform: scale(var(--fit-scale, 1));
  transform-origin: var(--fit-x, 50%) var(--fit-y, 50%);
  pointer-events: none;
}

.fit-controls {
  display: grid;
  gap: 12px;
}

.catalogue-controls,
.selected-list,
.catalogue-preview {
  padding: 20px;
}

.catalogue-controls {
  display: grid;
  gap: 14px;
  position: sticky;
  top: calc(var(--header-h) + 20px);
}

.selected-list {
  min-height: 86px;
  margin-bottom: 18px;
}

.selected-list:empty::before {
  content: "No products selected yet.";
  color: var(--muted);
}

.selected-item {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 10px;
  align-items: center;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
}

.selected-item:last-child {
  border-bottom: 0;
}

.qty-control {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.qty-control button,
.remove-btn {
  width: 32px;
  height: 32px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface-3);
}

.qty-control input {
  width: 70px;
  min-height: 32px;
  padding: 4px 8px;
  border-radius: var(--radius);
  text-align: center;
}

.catalogue-preview {
  min-height: 520px;
}

.catalogue-preview header {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 14px;
  align-items: center;
  padding-bottom: 18px;
  border-bottom: 2px solid var(--brand);
}

.catalogue-preview header img {
  width: 82px;
  height: 62px;
  object-fit: contain;
  border-radius: 10px;
  background: #020404;
}

.catalogue-preview h3 {
  margin: 22px 0 12px;
}

.catalogue-preview table {
  width: 100%;
  border-collapse: collapse;
  margin: 12px 0 20px;
  font-size: 0.92rem;
}

.catalogue-preview th,
.catalogue-preview td {
  padding: 10px;
  border: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

.catalogue-preview th {
  background: var(--surface-2);
}

.about-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 440px;
  gap: 34px;
}

.about-copy p {
  font-size: 1.04rem;
}

.timeline {
  display: grid;
  gap: 10px;
  margin-top: 26px;
}

.timeline div {
  display: grid;
  grid-template-columns: 100px 1fr;
  gap: 12px;
  align-items: center;
  padding: 14px;
  border-left: 4px solid var(--accent);
  background: var(--surface);
  border-radius: 16px;
}

.timeline strong {
  color: var(--brand-strong);
}

.legal-panel {
  padding: 22px;
}

.legal-panel dl {
  margin-bottom: 0;
}

.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 390px;
  gap: 18px;
  align-items: start;
}

.contact-stack {
  display: grid;
  gap: 14px;
}

.contact-card {
  padding: 20px;
}

.contact-card h3 {
  margin-bottom: 12px;
}

.contact-line {
  width: 100%;
  min-height: 52px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 0;
  border: 0;
  border-bottom: 1px solid var(--line);
  background: transparent;
  text-align: left;
  font-weight: 800;
}

.contact-line:last-child {
  border-bottom: 0;
}

.contact-line span {
  color: var(--brand-strong);
  font-size: 0.84rem;
  font-weight: 700;
  text-align: right;
}

.contact-card address {
  margin-bottom: 16px;
  color: var(--muted);
}

.map-frame {
  overflow: hidden;
  aspect-ratio: 16 / 9;
  margin-bottom: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-strong);
}

.map-frame iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
}

.site-footer {
  padding: 24px 0;
  border-top: 1px solid var(--line);
  background: var(--surface);
}

.footer-layout {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.footer-layout p {
  margin: 4px 0 0;
  color: var(--muted);
}

.developer-credit {
  display: inline-block;
  margin-top: 6px;
  color: var(--muted);
  font-size: 0.72rem;
  letter-spacing: 0;
}

.reveal-ready {
  opacity: 0;
  transform: translateY(18px);
}

.reveal-ready.is-visible {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 520ms ease, transform 520ms ease;
}

.contact-modal[hidden] {
  display: none;
}

.contact-modal {
  position: fixed;
  inset: 0;
  z-index: 500;
  display: grid;
  place-items: center;
  padding: 18px;
}

.modal-scrim {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
}

.modal-panel {
  position: relative;
  width: min(480px, 100%);
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.product-modal-panel {
  width: min(920px, 100%);
}

.product-detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 22px;
  align-items: start;
}

.product-detail-image {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 18px;
  background:
    radial-gradient(circle at 20% 12%, color-mix(in srgb, var(--brand), transparent 82%), transparent 18rem),
    var(--surface-3);
}

.product-detail-image img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: contain;
  object-position: var(--image-x, 50%) var(--image-y, 50%);
  padding: 18px;
  transform: scale(var(--image-scale, 1));
  transform-origin: var(--image-x, 50%) var(--image-y, 50%);
}

.product-detail-copy {
  min-width: 0;
}

.product-detail-copy h2 {
  margin-right: 38px;
}

.detail-list {
  display: grid;
  gap: 0;
  margin: 18px 0;
}

.detail-list div {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 14px;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
}

.detail-list dt {
  color: var(--muted);
}

.detail-list dd {
  margin: 0;
  font-weight: 800;
  text-align: right;
}

.product-detail-actions {
  margin-top: 16px;
}

.modal-close {
  position: absolute;
  top: 12px;
  right: 12px;
  font-size: 1.4rem;
}

.modal-actions {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-top: 22px;
}

.secure-prompt {
  position: fixed;
  inset: 0;
  z-index: 650;
  display: grid;
  place-items: center;
  padding: 18px;
}

.secure-prompt-scrim {
  position: absolute;
  inset: 0;
  border: 0;
  background: rgba(0, 0, 0, 0.48);
}

.secure-prompt-panel {
  position: relative;
  width: min(420px, 100%);
  display: grid;
  gap: 14px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.secure-prompt-panel h3 {
  margin: 0;
  font-size: 1.05rem;
}

.secure-prompt-panel input,
.secure-prompt-panel textarea {
  width: 100%;
  min-height: 46px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface-3);
}

.secure-prompt-panel textarea {
  resize: vertical;
}

.secure-prompt-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}

.toast-region {
  position: fixed;
  right: 16px;
  bottom: 16px;
  z-index: 700;
  display: grid;
  gap: 8px;
}

.toast {
  max-width: 340px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--text);
  color: var(--surface);
  box-shadow: var(--shadow);
}

.floating-dock {
  position: fixed;
  right: 16px;
  bottom: 16px;
  z-index: 420;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  max-width: min(680px, calc(100% - 32px));
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--glass);
  box-shadow: var(--shadow);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.dock-action {
  position: relative;
  gap: 8px;
  white-space: nowrap;
}

.dock-icon {
  display: none;
}

.back-top-button {
  position: fixed;
  right: 16px;
  bottom: calc(24px + var(--dock-height, 74px));
  z-index: 421;
  width: auto;
  min-height: 44px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--text);
  color: var(--surface);
  font-weight: 800;
  box-shadow: var(--shadow);
  opacity: 1;
  transform: translateY(0);
  transition: opacity 180ms ease, transform 180ms ease, bottom 180ms ease;
}

.back-top-button[hidden] {
  display: inline-flex;
  opacity: 0;
  pointer-events: none;
  transform: translateY(12px);
}

.floating-dock .dock-count {
  display: inline-grid;
  min-width: 22px;
  height: 22px;
  place-items: center;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.22);
  color: inherit;
  font-size: 0.78rem;
}

@media (max-width: 1080px) {
  .site-header {
    grid-template-columns: auto auto 1fr;
  }

  .hero-layout {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .hero-console {
    width: min(520px, 100%);
  }

  .icon-button.nav-toggle {
    display: inline-grid;
  }

  .site-nav {
    position: absolute;
    top: calc(100% + 8px);
    left: 16px;
    right: 16px;
    display: none;
    justify-self: stretch;
    flex-direction: column;
    align-items: stretch;
    padding: 10px;
    border-radius: 16px;
    box-shadow: var(--shadow);
  }

  .site-nav.open {
    display: flex;
  }

  .site-nav a {
    padding: 12px;
  }

  .header-actions {
    justify-self: end;
  }

  .dashboard-grid,
  .product-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .toolbar,
  .split-panel,
  .calculator-grid,
  .catalogue-layout,
  .admin-grid,
  .product-admin-form,
  .about-grid,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .variant-row {
    grid-template-columns: 1fr 1fr;
  }

  .estimate-panel,
  .catalogue-controls {
    position: static;
  }
}

@media (max-width: 760px) {
  :root {
    --header-h: 66px;
  }

  .layout {
    width: min(1180px, calc(100% - 22px));
  }

  .site-header {
    top: 8px;
    width: min(100% - 16px, 1240px);
    margin-top: 8px;
    padding: 8px 10px;
    gap: 9px;
  }

  .brand img {
    width: 48px;
    height: 42px;
  }

  .brand strong {
    font-size: 0.92rem;
  }

  .brand small {
    display: none;
  }

  .header-actions .button {
    display: none;
  }

  .hero {
    min-height: min(980px, 88svh);
  }

  .hero-content {
    padding: 62px 0 54px;
  }

  h1 {
    max-width: 100%;
  }

  #hero-title {
    font-size: clamp(1.35rem, 6.6vw, 1.75rem);
  }

  h2 {
    font-size: 1.85rem;
  }

  h3 {
    font-size: 1.18rem;
  }

  .hero-copy {
    max-width: 35ch;
    font-size: 1rem;
  }

  .hero-console {
    padding: 14px;
  }

  .console-grid {
    grid-template-columns: 1fr 1fr;
  }

  .hero-proof,
  .dashboard-grid,
  .product-grid,
  .service-grid {
    grid-template-columns: 1fr;
  }

  .category-tabs {
    flex-wrap: wrap;
    overflow-x: visible;
  }

  .section-band {
    padding: 58px 0;
  }

  .calculator-form,
  .query-form {
    grid-template-columns: 1fr;
    padding: 16px;
  }

  .modal-actions,
  .product-actions {
    grid-template-columns: 1fr;
  }

  .smart-strip,
  .image-fit-editor,
  .product-detail-layout {
    grid-template-columns: 1fr;
  }

  .floating-dock {
    left: 50%;
    right: auto;
    bottom: calc(10px + env(safe-area-inset-bottom, 0px));
    display: flex;
    flex-wrap: nowrap;
    grid-template-columns: none;
    justify-content: center;
    width: auto;
    max-width: calc(100% - 88px);
    min-height: 56px;
    padding: 7px;
    border-radius: 999px;
    transform: translateX(-50%);
  }

  .back-top-button {
    right: 10px;
    bottom: calc(18px + env(safe-area-inset-bottom, 0px) + var(--dock-height, 70px));
  }

  .floating-dock .button {
    width: 46px;
    height: 46px;
    min-width: 46px;
    min-height: 46px;
    padding: 0;
    border-radius: 999px;
  }

  .floating-dock .dock-label {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
  }

  .floating-dock .dock-icon {
    display: inline-grid;
    width: 100%;
    height: 100%;
    place-items: center;
    border-radius: inherit;
    font-size: 0.72rem;
    font-weight: 950;
    letter-spacing: 0;
    line-height: 1;
  }

  .floating-dock .dock-count {
    position: absolute;
    top: -5px;
    right: -5px;
    min-width: 19px;
    height: 19px;
    border: 1px solid color-mix(in srgb, var(--surface), transparent 20%);
    background: var(--brand-strong);
    color: #061014;
    font-size: 0.68rem;
  }

  .floating-dock .dock-contact .dock-icon,
  .floating-dock .dock-whatsapp .dock-icon {
    font-size: 0.68rem;
  }

  .footer-layout,
  .selected-item {
    align-items: stretch;
    flex-direction: column;
  }

  .footer-layout {
    display: grid;
  }

  .selected-item {
    grid-template-columns: 1fr;
  }

  .timeline div,
  .estimate-panel dl div,
  .legal-panel dl div {
    grid-template-columns: 1fr;
  }

  .estimate-panel dd,
  .legal-panel dd {
    text-align: left;
  }

  .catalogue-preview {
    overflow-x: auto;
  }
}

@media (max-width: 420px) {
  .brand strong {
    max-width: 155px;
    white-space: normal;
  }

  .button {
    width: 100%;
  }

  .hero-actions,
  .quick-actions,
  .query-actions,
  .catalogue-actions {
    display: grid;
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }

  .reveal-ready {
    opacity: 1;
    transform: none;
  }
}

@keyframes heroIntro {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes heroDrift {
  from {
    transform: scale(1.02) translate3d(-8px, -4px, 0);
  }
  to {
    transform: scale(1.06) translate3d(8px, 6px, 0);
  }
}

@media print {
  @page {
    size: auto;
    margin: 12mm;
  }

  html,
  body {
    margin: 0;
    padding: 0;
    background: #ffffff !important;
  }

  body > header,
  body > footer,
  .toast-region,
  .modal,
  .secure-prompt,
  .floating-actions,
  .back-to-top,
  .nav-toggle,
  [data-login-modal],
  [data-contact-modal] {
    display: none !important;
  }

  main > :not(.catalogue-band) {
    display: none !important;
  }

  .catalogue-band,
  .catalogue-band .layout,
  .catalogue-band .catalogue-layout,
  .catalogue-band .catalogue-preview {
    display: block !important;
  }

  .catalogue-band {
    margin: 0 !important;
    padding: 0 !important;
  }

  .catalogue-band .section-heading,
  .catalogue-band .catalogue-controls,
  .catalogue-band .selected-list {
    display: none !important;
  }

  .catalogue-band .layout,
  .catalogue-band .catalogue-layout {
    margin: 0 !important;
    padding: 0 !important;
    max-width: none !important;
    gap: 0 !important;
  }

  .catalogue-preview {
    width: 100% !important;
    min-height: auto;
    margin: 0 !important;
    padding: 0 !important;
    box-shadow: none !important;
    border: 0 !important;
    background: #ffffff !important;
    color: #000000 !important;
  }

  .catalogue-preview,
  .catalogue-preview * {
    break-inside: avoid;
    page-break-inside: avoid;
  }

  .catalogue-preview table {
    page-break-inside: auto;
  }

  .catalogue-preview tr,
  .catalogue-preview img,
  .catalogue-preview header {
    break-inside: avoid;
    page-break-inside: avoid;
  }
}
