/* ==========================================================================
   VAUDI CONSTRUCTION LOGISTICS — design system
   Brand colours are the project's original values (do not change):
   blue #0f5eb3 · dark blue #0b3f7a · red #e53935 · dark red #b91c1c · white
   ========================================================================== */

:root {
  /* Brand */
  --color-white: #ffffff;
  --color-blue: #0f5eb3;
  --color-blue-dark: #0b3f7a;
  --color-red: #e53935;
  --color-red-dark: #b91c1c;

  /* Neutrals & support (from the original stylesheet) */
  --color-text: #142033;
  --color-text-soft: #5b6c7c;
  --color-surface: #f4f8ff;
  --color-surface-strong: #e7efff;
  --color-border: #dfeaf9;
  --color-border-strong: #c9d8ee;
  --color-success: #1f8f5f;
  --color-success-text: #166b47;
  --color-whatsapp: #25d366;

  /* Semantic aliases */
  --color-primary: var(--color-blue);
  --color-primary-hover: var(--color-blue-dark);
  --color-accent: var(--color-red);
  --color-accent-strong: var(--color-red-dark); /* red with AA contrast for white text */
  --color-focus: rgba(15, 94, 179, 0.45);

  /* Type */
  --font-sans: 'Inter Variable', 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
  --text-xs: 0.75rem;
  --text-sm: 0.875rem;
  --text-base: 1rem;
  --text-lg: 1.125rem;
  --text-xl: clamp(1.25rem, 1.1rem + 0.5vw, 1.5rem);
  --text-2xl: clamp(1.6rem, 1.3rem + 1.2vw, 2.25rem);
  --text-3xl: clamp(2rem, 1.4rem + 2.6vw, 3.4rem);

  /* Space, shape, depth */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.5rem;
  --space-6: 2rem;
  --space-7: 3rem;
  --space-8: clamp(3rem, 2rem + 4vw, 5rem);
  --radius: 0.5rem;
  --radius-sm: 0.375rem;
  --radius-pill: 999px;
  --shadow-card: 0 1px 2px rgba(11, 63, 122, 0.06), 0 6px 18px rgba(11, 63, 122, 0.06);
  --shadow-raised: 0 12px 32px rgba(11, 63, 122, 0.14);
  --container: 1200px;
  --gutter: clamp(1rem, 0.6rem + 1.6vw, 1.5rem);
  --header-h: 80px;
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-padding-top: calc(var(--header-h) + 1rem);
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: var(--text-base);
  line-height: 1.6;
  color: var(--color-text);
  background: var(--color-white);
  overflow-x: clip;
}

img,
svg {
  max-width: 100%;
  display: block;
}

img {
  height: auto;
}

a {
  color: var(--color-primary);
  text-underline-offset: 0.18em;
}

a:hover {
  color: var(--color-primary-hover);
}

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

button {
  cursor: pointer;
}

h1,
h2,
h3,
h4 {
  margin: 0 0 var(--space-3);
  line-height: 1.15;
  font-weight: 800;
  letter-spacing: -0.015em;
  color: var(--color-text);
  text-wrap: balance;
}

h1 {
  font-size: var(--text-3xl);
}

h2 {
  font-size: var(--text-2xl);
}

h3 {
  font-size: var(--text-lg);
  letter-spacing: -0.005em;
}

p {
  margin: 0 0 var(--space-4);
}

:focus-visible {
  outline: 3px solid var(--color-focus);
  outline-offset: 2px;
}

[hidden] {
  display: none !important;
}

.icon {
  width: 1.25em;
  height: 1.25em;
  flex: none;
}

.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  left: var(--space-4);
  top: -100px;
  z-index: 100;
  background: var(--color-blue-dark);
  color: var(--color-white);
  padding: var(--space-2) var(--space-4);
  border-radius: var(--radius);
  font-weight: 700;
}

.skip-link:focus {
  top: var(--space-3);
  color: var(--color-white);
}

.container {
  width: min(var(--container), 100% - 2 * var(--gutter));
  margin-inline: auto;
}

/* ------------------------------------------------------------- buttons */
.btn {
  --btn-bg: var(--color-surface-strong);
  --btn-fg: var(--color-text);
  --btn-border: var(--color-border-strong);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  min-height: 2.75rem;
  padding: 0.6rem 1.15rem;
  border: 1px solid var(--btn-border);
  border-radius: var(--radius);
  background: var(--btn-bg);
  color: var(--btn-fg);
  font-weight: 700;
  font-size: var(--text-sm);
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  white-space: nowrap;
  transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.btn:hover {
  color: var(--btn-fg);
}

.btn:disabled,
.btn[aria-disabled='true'] {
  opacity: 0.5;
  cursor: not-allowed;
}

.btn--primary {
  --btn-bg: var(--color-primary);
  --btn-fg: var(--color-white);
  --btn-border: var(--color-primary);
}

.btn--primary:not(:disabled):hover {
  --btn-bg: var(--color-primary-hover);
  --btn-border: var(--color-primary-hover);
}

.btn--accent,
.btn--whatsapp {
  --btn-bg: var(--color-accent-strong);
  --btn-fg: var(--color-white);
  --btn-border: var(--color-accent-strong);
}

.btn--accent:not(:disabled):hover,
.btn--whatsapp:not(:disabled):hover {
  --btn-bg: #991b1b;
  --btn-border: #991b1b;
}

.btn--secondary:not(:disabled):hover {
  --btn-bg: var(--color-white);
  --btn-border: var(--color-primary);
  --btn-fg: var(--color-primary);
}

.btn--ghost {
  --btn-bg: transparent;
  --btn-border: transparent;
  --btn-fg: var(--color-primary);
}

.btn--ghost:not(:disabled):hover {
  --btn-bg: var(--color-surface);
}

.btn--on-dark {
  --btn-bg: transparent;
  --btn-fg: var(--color-white);
  --btn-border: rgba(255, 255, 255, 0.7);
}

.btn--on-dark:hover {
  --btn-bg: rgba(255, 255, 255, 0.12);
  --btn-border: var(--color-white);
}

.btn--white {
  --btn-bg: var(--color-white);
  --btn-fg: var(--color-blue-dark);
  --btn-border: var(--color-white);
}

.btn--white:hover {
  --btn-bg: var(--color-surface-strong);
  --btn-fg: var(--color-blue-dark);
}

.btn--danger {
  --btn-bg: var(--color-white);
  --btn-fg: var(--color-red-dark);
  --btn-border: #f2c4c4;
}

.btn--danger:not(:disabled):hover {
  --btn-bg: #fdf1f1;
  --btn-border: var(--color-red-dark);
}

.btn--lg {
  min-height: 3.1rem;
  padding: 0.75rem 1.4rem;
  font-size: var(--text-base);
}

.btn--sm {
  min-height: 2.5rem;
  padding: 0.4rem 0.75rem;
}

.btn--block {
  width: 100%;
}

.btn--icon {
  width: 2.75rem;
  padding: 0;
}

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
}

.link-arrow:hover {
  text-decoration: underline;
}

/* ------------------------------------------------------------- header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--color-white);
  border-bottom: 1px solid var(--color-border);
}

.topbar {
  background: var(--color-blue-dark);
  color: rgba(255, 255, 255, 0.92);
  font-size: var(--text-xs);
}

.topbar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  min-height: 2rem;
}

.topbar a {
  color: var(--color-white);
  text-decoration: none;
  font-weight: 600;
}

.topbar a:hover {
  text-decoration: underline;
}

.topbar__services {
  margin: 0;
  letter-spacing: 0.02em;
}

.topbar__contact {
  display: flex;
  gap: var(--space-4);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  min-height: var(--header-h);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: var(--space-3);
  text-decoration: none;
  color: var(--color-text);
  min-width: 0;
  margin-right: auto;
}

.brand-logo {
  display: block;
  height: 48px;
  width: auto;
  max-width: 100%;
  object-fit: contain;
}

.brand-logo--footer {
  height: 44px;
}

@media (min-width: 1100px) {
  .site-header .brand-logo {
    height: 58px;
  }
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 2.6rem;
  height: 2.6rem;
  flex: none;
  border-radius: var(--radius);
  background: var(--color-blue);
  color: var(--color-white);
  font-weight: 900;
  font-size: 1.3rem;
  box-shadow: inset 0 -4px 0 var(--color-red);
}

.brand-text {
  display: grid;
  line-height: 1;
}

.brand-name {
  font-weight: 900;
  font-size: 1.35rem;
  letter-spacing: 0.08em;
  color: var(--color-blue);
}

.brand-sub {
  margin-top: 0.2rem;
  font-weight: 800;
  font-size: 0.66rem;
  letter-spacing: 0.08em;
  color: var(--color-red-dark);
  white-space: nowrap;
}

.site-nav ul {
  display: flex;
  gap: var(--space-1);
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-nav li > a {
  display: block;
  padding: 0.55rem 0.8rem;
  border-radius: var(--radius-sm);
  color: var(--color-text);
  font-weight: 600;
  font-size: var(--text-sm);
  text-decoration: none;
}

.site-nav li > a:hover {
  background: var(--color-surface);
  color: var(--color-primary);
}

.site-nav li > a[aria-current='page'] {
  color: var(--color-primary);
  box-shadow: inset 0 -2px 0 var(--color-red);
  border-radius: 0;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: var(--space-2);
}

.header-cart {
  position: relative;
}

.header-cart .cart-label {
  margin-left: 0.1rem;
}

.cart-count {
  min-width: 1.35rem;
  height: 1.35rem;
  padding: 0 0.35rem;
  border-radius: var(--radius-pill);
  background: var(--color-red-dark);
  color: var(--color-white);
  font-size: 0.72rem;
  font-weight: 800;
  line-height: 1.35rem;
  text-align: center;
}

.cart-count.is-bumped {
  animation: bump 0.3s ease;
}

@keyframes bump {
  50% {
    transform: scale(1.25);
  }
}

.nav-toggle {
  display: none;
}

@media (max-width: 899px) {
  .topbar__services {
    display: none;
  }

  .topbar__inner {
    justify-content: center;
  }

  .nav-toggle {
    display: inline-flex;
  }

  .header-quote {
    display: none;
  }

  .site-nav {
    position: absolute;
    inset: 100% 0 auto;
    background: var(--color-white);
    border-bottom: 1px solid var(--color-border);
    box-shadow: var(--shadow-raised);
    padding: var(--space-2) var(--gutter) var(--space-4);
  }

  .site-nav:not(.is-open) {
    display: none;
  }

  .site-nav ul {
    flex-direction: column;
  }

  .site-nav li > a {
    padding: 0.85rem 0.5rem;
    font-size: var(--text-base);
    border-bottom: 1px solid var(--color-border);
    border-radius: 0;
  }

  .site-nav li > a[aria-current='page'] {
    box-shadow: inset 3px 0 0 var(--color-red);
    padding-left: 0.9rem;
  }

  .site-nav__cta {
    margin-top: var(--space-4);
  }
}

@media (min-width: 900px) {
  .site-nav__cta {
    display: none;
  }
}

@media (max-width: 1099px) and (min-width: 900px) {
  .brand-logo {
    height: 40px;
  }

  .site-nav ul {
    gap: 0;
  }

  .site-nav li > a {
    padding-inline: 0.55rem;
  }

  .header-quote {
    display: none;
  }
}

@media (max-width: 479px) {
  :root {
    --header-h: 64px;
  }

  .brand-logo {
    height: 32px;
  }

  .brand-mark {
    width: 2.3rem;
    height: 2.3rem;
    font-size: 1.15rem;
  }

  .brand-name {
    font-size: 1.15rem;
  }

  .brand-sub {
    font-size: 0.56rem;
  }

  .header-cart .cart-label {
    display: none;
  }

  .header-cart {
    padding-inline: 0.65rem;
  }

  .topbar__contact a:last-child {
    display: none;
  }
}

/* ------------------------------------------------------------- sections */
.section {
  padding-block: var(--space-8);
}

.section--tight {
  padding-block: var(--space-7);
}

.section--surface {
  background: var(--color-surface);
}

.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: var(--space-4) var(--space-5);
  flex-wrap: wrap;
  margin-bottom: var(--space-6);
}

.section-head h2 {
  margin: 0;
}

.section-head p {
  margin: var(--space-2) 0 0;
  color: var(--color-text-soft);
  max-width: 60ch;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  margin-bottom: var(--space-3);
  color: var(--color-red-dark);
  font-size: var(--text-xs);
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.eyebrow::before {
  content: '';
  width: 1.5rem;
  height: 3px;
  background: var(--color-red);
}

.lead {
  font-size: var(--text-lg);
  color: var(--color-text-soft);
  max-width: 62ch;
}

.page-hero {
  background: var(--color-surface);
  border-bottom: 1px solid var(--color-border);
  padding-block: clamp(2rem, 1.5rem + 2vw, 3.25rem);
}

.page-hero h1 {
  font-size: var(--text-2xl);
  margin-bottom: var(--space-2);
}

.page-hero .lead {
  margin: 0;
}

.breadcrumbs ol {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  margin: 0 0 var(--space-4);
  padding: 0;
  list-style: none;
  font-size: var(--text-sm);
  color: var(--color-text-soft);
}

.breadcrumbs li + li::before {
  content: '/';
  margin-right: var(--space-2);
  color: var(--color-border-strong);
}

.breadcrumbs a {
  color: var(--color-text-soft);
}

.breadcrumbs [aria-current] {
  color: var(--color-text);
  font-weight: 600;
}

/* ------------------------------------------------------------- hero */
.hero {
  background: var(--color-blue-dark);
  color: var(--color-white);
  overflow: hidden;
}

.hero__inner {
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(0, 1.18fr);
  align-items: center;
  gap: clamp(1.5rem, 1rem + 3vw, 3.5rem);
  padding-block: clamp(2.5rem, 1.5rem + 4vw, 5rem);
}

.hero h1 {
  color: var(--color-white);
  font-size: clamp(2.1rem, 1.3rem + 3vw, 3.5rem);
  margin-bottom: var(--space-4);
}

.hero h1 .accent {
  color: #ff8a80; /* tint of brand red; 4.6:1 on dark blue for large text */
}

.hero .eyebrow {
  color: var(--color-white);
}

.hero .eyebrow::before {
  background: var(--color-red);
}

.hero__lead {
  font-size: var(--text-lg);
  color: rgba(255, 255, 255, 0.88);
  max-width: 54ch;
  margin-bottom: var(--space-5);
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
}

.hero__principles {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2) var(--space-4);
  margin: var(--space-6) 0 0;
  padding: var(--space-4) 0 0;
  list-style: none;
  border-top: 1px solid rgba(255, 255, 255, 0.18);
  font-size: var(--text-sm);
  font-weight: 600;
  color: rgba(255, 255, 255, 0.9);
}

.hero__principles li {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.hero__principles .icon {
  color: #ff8a80;
  width: 1rem;
  height: 1rem;
}

.hero__media {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
  aspect-ratio: 4 / 3;
  background: var(--color-blue);
}

.hero__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero__media::after {
  content: '';
  position: absolute;
  inset: auto 0 0;
  height: 6px;
  background: var(--color-red);
}

/* Flyer variant: portrait poster shown whole (never cropped), opens full size on click */
.hero__inner:has(.hero__media--flyer) {
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
}

.hero__media--flyer {
  display: block;
  aspect-ratio: 896 / 1195;
  width: 100%;
  max-width: 460px;
  justify-self: center;
  background: var(--color-white);
}

.hero__media--flyer img {
  object-fit: contain;
}

.hero__media--flyer:focus-visible {
  outline: 3px solid #ff8a80;
  outline-offset: 4px;
}

@media (max-width: 859px) {
  .hero__inner,
  .hero__inner:has(.hero__media--flyer) {
    grid-template-columns: 1fr;
  }

  .hero__media {
    order: -1;
    aspect-ratio: 4 / 3;
  }

  /* The flyer is tall: keep the headline first on phones and tablets */
  .hero__media--flyer {
    order: 0;
    aspect-ratio: 896 / 1195;
    max-width: 520px;
  }
}

/* ------------------------------------------------------------- WhatsApp QR card */
.qr-card {
  display: flex;
  align-items: center;
  gap: var(--space-5);
  margin-top: var(--space-6);
  padding: var(--space-5);
  border: 1px solid var(--color-border, #dfe5ee);
  border-left: 4px solid var(--color-red);
  border-radius: var(--radius);
  background: var(--color-surface, #f5f7fb);
}

.qr-card__code {
  flex: none;
  width: 132px;
  height: 132px;
  padding: 6px;
  border-radius: calc(var(--radius) / 2);
  background: var(--color-white);
  box-shadow: 0 2px 10px rgba(11, 63, 122, 0.12);
}

.qr-card__code img {
  display: block;
  width: 100%;
  height: 100%;
}

.qr-card h3 {
  margin: 0 0 var(--space-1);
  font-size: var(--text-lg);
}

.qr-card p {
  margin: 0;
  font-size: var(--text-sm);
}

.footer-qr {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  margin-top: var(--space-4);
}

.footer-qr img {
  flex: none;
  width: 88px;
  height: 88px;
  padding: 4px;
  border-radius: 6px;
  background: var(--color-white);
}

.footer-qr span {
  font-size: var(--text-sm);
  line-height: 1.4;
}

/* Scanning only makes sense from another screen: hide on phones */
@media (max-width: 767px) {
  .footer-qr {
    display: none;
  }
}

@media (max-width: 479px) {
  .qr-card {
    flex-direction: column;
    text-align: center;
  }
}

@media (max-width: 479px) {
  .hero__actions .btn {
    flex: 1 1 100%;
  }
}

/* ------------------------------------------------------------- feature strip */
.benefits {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--space-4);
  margin: 0;
  padding: 0;
  list-style: none;
}

.benefit {
  display: flex;
  gap: var(--space-3);
  align-items: flex-start;
}

.benefit__icon {
  display: grid;
  place-items: center;
  width: 2.75rem;
  height: 2.75rem;
  flex: none;
  border-radius: var(--radius);
  background: var(--color-surface-strong);
  color: var(--color-blue);
}

.benefit strong {
  display: block;
  margin-bottom: 0.15rem;
}

.benefit p {
  margin: 0;
  font-size: var(--text-sm);
  color: var(--color-text-soft);
}

@media (max-width: 959px) {
  .benefits {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 519px) {
  .benefits {
    grid-template-columns: 1fr;
  }
}

/* ------------------------------------------------------------- cards & grids */
.card {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
}

.grid {
  display: grid;
  gap: var(--space-4);
}

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

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

@media (max-width: 859px) {
  .grid--3 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 599px) {
  .grid--3,
  .grid--2 {
    grid-template-columns: 1fr;
  }
}

.category-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 200px), 1fr));
  gap: var(--space-3);
}

.category-tile {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
  padding: var(--space-4) var(--space-4);
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-left: 4px solid var(--color-blue);
  border-radius: var(--radius);
  color: var(--color-text);
  text-decoration: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.category-tile:hover {
  color: var(--color-text);
  border-color: var(--color-border-strong);
  border-left-color: var(--color-red);
  box-shadow: var(--shadow-card);
}

.category-tile strong {
  display: block;
  font-size: var(--text-base);
}

.category-tile span {
  font-size: var(--text-sm);
  color: var(--color-text-soft);
}

.category-tile .icon {
  color: var(--color-blue);
}

@media (max-width: 519px) {
  .category-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* product grid & card */
.product-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--space-4);
}

@media (max-width: 1099px) {
  .product-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 779px) {
  .product-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: var(--space-3);
  }
}

.product-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.product-card:hover {
  border-color: var(--color-border-strong);
  box-shadow: var(--shadow-raised);
}

.product-card__media {
  display: block;
  aspect-ratio: 4 / 3;
  background: var(--color-surface);
  border-bottom: 1px solid var(--color-border);
}

.product-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.product-card--unavailable .product-card__media img {
  filter: grayscale(0.7);
  opacity: 0.75;
}

.product-card__body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: var(--space-4);
}

.product-card__meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--space-2);
  margin-bottom: var(--space-2);
}

.product-card__category {
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--color-text-soft);
}

.product-card__name {
  margin: 0 0 var(--space-2);
  font-size: var(--text-base);
  line-height: 1.3;
}

.product-card__name a {
  color: var(--color-text);
  text-decoration: none;
}

.product-card__name a:hover {
  color: var(--color-primary);
  text-decoration: underline;
}

.product-card__price {
  margin: auto 0 var(--space-4);
  padding-top: var(--space-1);
  font-weight: 800;
  font-size: var(--text-lg);
  color: var(--color-blue);
}

.price__unit {
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--color-text-soft);
}

.product-card__price--quote,
.detail__price--quote {
  color: var(--color-text);
  font-weight: 700;
}

.product-card__price--quote {
  font-size: var(--text-base);
}

.product-card__actions {
  display: grid;
  gap: var(--space-2);
}

@media (max-width: 519px) {
  .product-card__body {
    padding: var(--space-3);
  }

  .product-card__price {
    font-size: var(--text-base);
    margin-bottom: var(--space-3);
  }

  .product-card__price .price__unit {
    display: block;
    font-size: var(--text-xs);
  }

  .product-card__actions .btn {
    padding-inline: 0.5rem;
    font-size: 0.8rem;
  }

  .product-card__details {
    min-height: 2.5rem;
  }
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.2rem 0.55rem;
  border-radius: var(--radius-pill);
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  white-space: nowrap;
}

.badge--success {
  background: #e3f4ec;
  color: var(--color-success-text);
}

.badge--danger {
  background: #fde8e8;
  color: var(--color-red-dark);
}

.badge--neutral {
  background: var(--color-surface-strong);
  color: var(--color-blue-dark);
}

.badge--warning {
  background: #fff4dc;
  color: #7a4b00;
}

/* steps */
.steps {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: clamp(1.5rem, 1rem + 3vw, 3.5rem);
  align-items: center;
}

.steps__media {
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 4 / 5;
  background: var(--color-surface);
  box-shadow: var(--shadow-card);
  position: relative;
}

.steps__media::after {
  content: '';
  position: absolute;
  inset: auto 0 0;
  height: 6px;
  background: var(--color-red);
}

.steps__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}

/* Photo on a white studio background: show the whole figure on a matching white card */
.steps__media--cutout {
  aspect-ratio: 1 / 1;
  background: #ffffff;
  border: 1px solid var(--color-border);
}

.steps__media--cutout img {
  object-fit: contain;
  object-position: center bottom;
  padding: var(--space-4) var(--space-4) 0;
}

.steps__list {
  counter-reset: step;
  display: grid;
  gap: var(--space-4);
  margin: 0;
  padding: 0;
  list-style: none;
}

.step {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: var(--space-4);
  padding: var(--space-5);
}

.step__num {
  display: grid;
  place-items: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  background: var(--color-red-dark);
  color: var(--color-white);
  font-weight: 800;
}

.step h3 {
  margin-bottom: var(--space-1);
}

.step p {
  margin: 0;
  color: var(--color-text-soft);
}

@media (max-width: 859px) {
  .steps {
    grid-template-columns: 1fr;
  }

  .steps__media {
    aspect-ratio: 4 / 3;
  }
}

/* services */
.service {
  padding: var(--space-5);
  border-top: 4px solid var(--color-blue);
}

.service__icon {
  display: grid;
  place-items: center;
  width: 2.75rem;
  height: 2.75rem;
  margin-bottom: var(--space-4);
  border-radius: var(--radius);
  background: var(--color-surface-strong);
  color: var(--color-blue);
}

.service h3 {
  color: var(--color-red-dark);
  text-transform: uppercase;
  font-size: var(--text-base);
  letter-spacing: 0.02em;
}

.service p {
  margin: 0;
  color: var(--color-text-soft);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--space-4);
}

@media (max-width: 959px) {
  .services-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 519px) {
  .services-grid {
    grid-template-columns: 1fr;
  }
}

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

.service {
  display: flex;
  flex-direction: column;
}

.service__link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  margin-top: auto;
  padding-top: var(--space-4);
  font-weight: 600;
  font-size: var(--text-sm);
  color: var(--color-blue);
  text-decoration: none;
}

.service__link:hover {
  color: var(--color-red-dark);
}

.service__link .icon {
  width: 1rem;
  height: 1rem;
  transition: transform 0.2s ease;
}

.service__link:hover .icon {
  transform: translateX(3px);
}

/* equipment */
.equipment-grid,
.range-grid {
  display: grid;
  gap: var(--space-3);
  margin: 0;
  padding: 0;
  list-style: none;
}

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

.equipment {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: var(--space-4);
  padding: var(--space-4) var(--space-5);
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg, var(--radius));
  box-shadow: var(--shadow-card);
}

.equipment__icon {
  display: grid;
  place-items: center;
  width: 3.25rem;
  height: 3.25rem;
  border-radius: 50%;
  background: var(--color-blue);
  color: var(--color-white);
}

.equipment__icon .icon {
  width: 1.6rem;
  height: 1.6rem;
}

.equipment h3 {
  margin: 0;
  font-size: var(--text-base);
}

/* product range */
.range-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

/* Product range with photo: image beside a two-column list */
.range-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(1.25rem, 0.75rem + 2vw, 2.5rem);
}

.range-figure {
  position: relative;
  margin: 0;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--color-blue-dark);
  box-shadow: 0 16px 40px rgba(11, 63, 122, 0.18);
}

.range-figure img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1278 / 832;
  object-fit: cover;
}

.range-figure figcaption {
  padding: var(--space-3) var(--space-4);
  border-top: 4px solid var(--color-red);
  color: rgba(255, 255, 255, 0.92);
  font-size: var(--text-sm);
  font-weight: 600;
}

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

.range-grid--paired > .range-item:last-child:nth-child(odd) {
  grid-column: 1 / -1;
}

@media (max-width: 899px) {
  .range-layout {
    grid-template-columns: 1fr;
  }
}

.range-item {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  padding: var(--space-4);
  border: 1px solid var(--color-border);
  border-left: 4px solid var(--color-blue);
  border-radius: var(--radius);
  background: var(--color-white);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.range-item:hover {
  border-left-color: var(--color-red);
  box-shadow: var(--shadow-card);
}

.range-item__icon {
  color: var(--color-blue);
}

.range-item a {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  font-size: var(--text-sm);
  font-weight: 600;
  text-decoration: none;
}

.range-item a .icon {
  width: 1rem;
  height: 1rem;
}

@media (max-width: 1023px) {
  .equipment-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

@media (max-width: 959px) {
  .services-grid--3 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 639px) {
  .equipment-grid {
    grid-template-columns: 1fr;
  }

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

@media (max-width: 519px) {
  .services-grid--3 {
    grid-template-columns: 1fr;
  }
}

/* paired range list: 2 columns beside the photo, 4 when stacked under it, 2 on phones */
@media (min-width: 900px) and (max-width: 1023px) {
  .range-grid--paired {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 640px) and (max-width: 899px) {
  .range-grid--paired {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

.section-actions {
  display: flex;
  justify-content: center;
  margin-top: var(--space-6);
}

/* split feature */
.split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(1.5rem, 1rem + 3vw, 3.5rem);
  align-items: center;
}

.split img {
  width: 100%;
  aspect-ratio: 4 / 3;
  border-radius: var(--radius);
  border: 1px solid var(--color-border);
  object-fit: cover;
}

.split--reverse > :first-child {
  order: 2;
}

.split img.img-portrait {
  aspect-ratio: 4 / 5;
  object-position: center top;
  max-height: 640px;
}

@media (max-width: 859px) {
  .split {
    grid-template-columns: 1fr;
  }

  .split--reverse > :first-child {
    order: 0;
  }
}

.check-list {
  display: grid;
  gap: var(--space-3);
  margin: 0 0 var(--space-5);
  padding: 0;
  list-style: none;
}

.check-list li {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: var(--space-3);
}

.check-list .icon {
  color: var(--color-success);
  margin-top: 0.15rem;
}

/* contact strip */
.cta-band {
  background: var(--color-red-dark);
  color: var(--color-white);
}

.cta-band__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--space-4) var(--space-6);
  padding-block: var(--space-6);
}

.cta-band h2 {
  color: var(--color-white);
  font-size: var(--text-xl);
  margin-bottom: var(--space-1);
}

.cta-band p {
  margin: 0;
  color: rgba(255, 255, 255, 0.92);
}

.cta-band__actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
}

@media (max-width: 599px) {
  .cta-band__actions {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    width: 100%;
  }

  .cta-band__actions .btn {
    padding-inline: 0.4rem;
  }
}

@media (max-width: 379px) {
  .cta-band__actions {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 599px) {
  .cta-band__actions--stack {
    grid-template-columns: 1fr;
  }
}

/* ------------------------------------------------------------- forms */
.field {
  display: grid;
  gap: 0.35rem;
  min-width: 0;
}

.field > label,
.field__label {
  font-weight: 700;
  font-size: var(--text-sm);
}

.field__hint {
  font-size: var(--text-xs);
  color: var(--color-text-soft);
}

.input,
.select,
.textarea {
  width: 100%;
  min-height: 2.75rem;
  padding: 0.55rem 0.8rem;
  border: 1px solid var(--color-border-strong);
  border-radius: var(--radius);
  background: var(--color-white);
}

.textarea {
  min-height: 7rem;
  resize: vertical;
}

.input:focus-visible,
.select:focus-visible,
.textarea:focus-visible {
  outline: 3px solid var(--color-focus);
  outline-offset: 0;
  border-color: var(--color-blue);
}

.input[aria-invalid='true'],
.select[aria-invalid='true'],
.textarea[aria-invalid='true'] {
  border-color: var(--color-red-dark);
}

.field__error {
  font-size: var(--text-xs);
  font-weight: 600;
  color: var(--color-red-dark);
}

.input-icon {
  position: relative;
}

.input-icon .icon {
  position: absolute;
  left: 0.75rem;
  top: 50%;
  translate: 0 -50%;
  color: var(--color-text-soft);
  pointer-events: none;
}

.input-icon .input {
  padding-left: 2.4rem;
}

.checkbox {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  min-height: 2.75rem;
  font-weight: 600;
  font-size: var(--text-sm);
  cursor: pointer;
}

.checkbox input {
  width: 1.15rem;
  height: 1.15rem;
  accent-color: var(--color-blue);
}

/* quantity stepper */
.qty__label {
  display: block;
  font-weight: 700;
  font-size: var(--text-sm);
  margin-bottom: 0.35rem;
}

.qty__control {
  display: inline-flex;
  align-items: stretch;
  border: 1px solid var(--color-border-strong);
  border-radius: var(--radius);
  background: var(--color-white);
  overflow: hidden;
}

.qty__btn {
  display: grid;
  place-items: center;
  width: 2.75rem;
  min-height: 2.75rem;
  border: 0;
  background: var(--color-surface);
  color: var(--color-blue-dark);
}

.qty__btn:hover:not(:disabled) {
  background: var(--color-surface-strong);
}

.qty__btn:disabled {
  color: var(--color-border-strong);
  cursor: not-allowed;
}

.qty__input {
  width: 3.75rem;
  border: 0;
  border-inline: 1px solid var(--color-border);
  text-align: center;
  font-weight: 700;
  -moz-appearance: textfield;
  appearance: textfield;
}

.qty__input::-webkit-outer-spin-button,
.qty__input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.qty__control--sm .qty__btn {
  width: 2.5rem;
  min-height: 2.5rem;
}

.qty__control--sm .qty__input {
  width: 3.25rem;
}

/* ------------------------------------------------------------- shop */
.shop-toolbar {
  display: grid;
  grid-template-columns: minmax(0, 2fr) repeat(2, minmax(0, 1fr)) auto;
  align-items: end;
  gap: var(--space-3);
  padding: var(--space-4);
  margin-bottom: var(--space-4);
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  margin: 0 0 var(--space-4);
  padding: 0;
  list-style: none;
}

.chip {
  min-height: 2.5rem;
  padding: 0.35rem 0.85rem;
  border: 1px solid var(--color-border-strong);
  border-radius: var(--radius-pill);
  background: var(--color-white);
  font-size: var(--text-sm);
  font-weight: 600;
}

.chip:hover {
  border-color: var(--color-blue);
  color: var(--color-blue);
}

.chip[aria-pressed='true'] {
  background: var(--color-blue);
  border-color: var(--color-blue);
  color: var(--color-white);
}

.result-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
  margin-bottom: var(--space-4);
  font-size: var(--text-sm);
  color: var(--color-text-soft);
}

.result-bar p {
  margin: 0;
}

@media (max-width: 859px) {
  .shop-toolbar {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .shop-toolbar .field--search {
    grid-column: 1 / -1;
  }
}

@media (max-width: 599px) {
  .chips {
    flex-wrap: nowrap;
    overflow-x: auto;
    margin-inline: calc(-1 * var(--gutter));
    padding-inline: var(--gutter);
    padding-bottom: var(--space-1);
    scrollbar-width: thin;
  }

  .chip {
    flex: none;
  }
}

.empty-state {
  display: grid;
  justify-items: center;
  gap: var(--space-2);
  padding: var(--space-7) var(--space-5);
  text-align: center;
  background: var(--color-surface);
  border: 1px dashed var(--color-border-strong);
  border-radius: var(--radius);
  color: var(--color-text-soft);
}

.empty-state h2,
.empty-state h3 {
  margin: 0;
  font-size: var(--text-xl);
}

.empty-state p {
  max-width: 46ch;
}

.empty-state__icon {
  display: grid;
  place-items: center;
  width: 3.5rem;
  height: 3.5rem;
  border-radius: 50%;
  background: var(--color-white);
  color: var(--color-blue);
  border: 1px solid var(--color-border);
}

.empty-state__icon .icon {
  width: 1.6rem;
  height: 1.6rem;
}

/* ------------------------------------------------------------- product detail */
.detail {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: clamp(1.5rem, 1rem + 3vw, 3.5rem);
  align-items: start;
}

@media (max-width: 859px) {
  .detail {
    grid-template-columns: 1fr;
  }
}

.gallery__main {
  aspect-ratio: 4 / 3;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--color-surface);
}

.gallery__main img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.gallery__thumbs {
  display: flex;
  gap: var(--space-2);
  margin-top: var(--space-3);
  overflow-x: auto;
}

.gallery__thumb {
  flex: none;
  width: 5rem;
  padding: 0;
  border: 2px solid var(--color-border);
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: var(--color-surface);
}

.gallery__thumb[aria-current='true'] {
  border-color: var(--color-blue);
}

.gallery__thumb img {
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.detail__category {
  display: inline-block;
  margin-bottom: var(--space-2);
  font-size: var(--text-xs);
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-red-dark);
  text-decoration: none;
}

.detail__title {
  font-size: var(--text-2xl);
  margin-bottom: var(--space-3);
}

.detail__price {
  margin: var(--space-4) 0 var(--space-2);
  font-size: var(--text-2xl);
  font-weight: 800;
  color: var(--color-blue);
}

.detail__price .price__unit {
  font-size: var(--text-base);
}

.detail__hint {
  font-size: var(--text-sm);
  color: var(--color-text-soft);
}

.detail__description {
  margin-top: var(--space-4);
  color: var(--color-text);
}

.detail__facts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-3);
  margin: var(--space-4) 0;
  padding: var(--space-4);
  background: var(--color-surface);
  border-radius: var(--radius);
}

.detail__facts dt {
  font-size: var(--text-xs);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--color-text-soft);
}

.detail__facts dd {
  margin: 0;
  font-weight: 700;
  text-transform: capitalize;
}

.detail__stock-note {
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--color-success-text);
}

.detail__buy {
  display: flex;
  align-items: flex-end;
  flex-wrap: wrap;
  gap: var(--space-3);
  margin: var(--space-5) 0 var(--space-3);
}

.detail__buy > .btn {
  flex: 1 1 200px;
}

.detail__status {
  display: flex;
  gap: var(--space-2);
}

.notice {
  display: flex;
  gap: var(--space-3);
  align-items: flex-start;
  padding: var(--space-3) var(--space-4);
  border-radius: var(--radius);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  font-size: var(--text-sm);
  color: var(--color-text);
}

.notice .icon {
  color: var(--color-blue);
  margin-top: 0.1rem;
}

.notice p {
  margin: 0;
}

.notice--warning {
  background: #fff8e8;
  border-color: #f3dca6;
}

.notice--warning .icon {
  color: #7a4b00;
}

.notice--danger {
  background: #fdf1f1;
  border-color: #f2c4c4;
}

.notice--danger .icon {
  color: var(--color-red-dark);
}

/* ------------------------------------------------------------- cart */
.cart-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 380px);
  gap: var(--space-5);
  align-items: start;
}

@media (max-width: 899px) {
  .cart-layout {
    grid-template-columns: 1fr;
  }
}

.cart-lines {
  display: grid;
  gap: var(--space-3);
  margin: 0;
  padding: 0;
  list-style: none;
}

.cart-line {
  display: grid;
  grid-template-columns: 88px minmax(0, 1fr) auto;
  grid-template-areas:
    'img info total'
    'img controls controls';
  gap: var(--space-2) var(--space-4);
  padding: var(--space-4);
}

.cart-line__img {
  grid-area: img;
  width: 88px;
  aspect-ratio: 1;
  border-radius: var(--radius-sm);
  border: 1px solid var(--color-border);
  object-fit: cover;
  background: var(--color-surface);
}

.cart-line__info {
  grid-area: info;
  min-width: 0;
}

.cart-line__name {
  display: block;
  font-weight: 700;
  color: var(--color-text);
  text-decoration: none;
  line-height: 1.3;
}

.cart-line__name:hover {
  color: var(--color-primary);
  text-decoration: underline;
}

.cart-line__unit {
  margin: 0.2rem 0 0;
  font-size: var(--text-sm);
  color: var(--color-text-soft);
}

.cart-line__total {
  grid-area: total;
  text-align: right;
  font-weight: 800;
  white-space: nowrap;
}

.cart-line__total small {
  display: block;
  font-size: var(--text-xs);
  font-weight: 600;
  color: var(--color-text-soft);
}

.cart-line__controls {
  grid-area: controls;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--space-2);
}

.cart-line__flag {
  margin-top: var(--space-2);
  font-size: var(--text-sm);
  font-weight: 600;
}

.cart-line--blocked {
  background: #fffafa;
  border-color: #f2c4c4;
}

.cart-line--blocked .cart-line__img {
  filter: grayscale(1);
  opacity: 0.6;
}

@media (max-width: 479px) {
  .cart-line {
    grid-template-columns: 64px minmax(0, 1fr);
    grid-template-areas:
      'img info'
      'total total'
      'controls controls';
    padding: var(--space-3);
  }

  .cart-line__img {
    width: 64px;
  }

  .cart-line__total {
    display: flex;
    justify-content: space-between;
    text-align: left;
    padding-top: var(--space-2);
    border-top: 1px solid var(--color-border);
  }

  .cart-line__total small {
    display: inline;
  }
}

.summary {
  position: sticky;
  top: calc(var(--header-h) + 1rem);
  padding: var(--space-5);
}

.summary h2 {
  font-size: var(--text-xl);
}

.summary__rows {
  display: grid;
  gap: var(--space-2);
  margin: 0 0 var(--space-4);
}

.summary__rows div {
  display: flex;
  justify-content: space-between;
  gap: var(--space-3);
}

.summary__rows dt {
  color: var(--color-text-soft);
}

.summary__rows dd {
  margin: 0;
  font-weight: 700;
  text-align: right;
}

.summary__total {
  padding-top: var(--space-3);
  border-top: 1px solid var(--color-border);
  font-size: var(--text-lg);
}

.summary__total dt {
  color: var(--color-text) !important;
  font-weight: 800;
}

.summary__total dd {
  color: var(--color-blue);
  font-weight: 800;
}

.summary__actions {
  display: grid;
  gap: var(--space-2);
  margin-top: var(--space-4);
}

.summary .notice {
  margin-top: var(--space-4);
}

.ref {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-weight: 700;
  letter-spacing: 0.03em;
}

@media (max-width: 899px) {
  .summary {
    position: static;
  }
}

/* ------------------------------------------------------------- info pages */
.info-card {
  padding: var(--space-5);
}

.info-card h2,
.info-card h3 {
  font-size: var(--text-lg);
  color: var(--color-red-dark);
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.info-card p:last-child {
  margin-bottom: 0;
}

.contact-list {
  display: grid;
  gap: var(--space-4);
  margin: 0;
  padding: 0;
  list-style: none;
}

.contact-list li {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: var(--space-3);
  align-items: start;
}

.contact-list .icon-wrap {
  display: grid;
  place-items: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: var(--radius);
  background: var(--color-surface-strong);
  color: var(--color-blue);
}

.contact-list strong {
  display: block;
  font-size: var(--text-sm);
  color: var(--color-text-soft);
  font-weight: 600;
}

.contact-list a,
.contact-list span {
  font-weight: 700;
  overflow-wrap: anywhere;
}

.faq {
  display: grid;
  gap: var(--space-3);
  max-width: 820px;
}

.faq details {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
}

.faq summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--space-4);
  padding: var(--space-4) var(--space-5);
  font-weight: 700;
  cursor: pointer;
  list-style: none;
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary::after {
  content: '+';
  font-size: 1.4rem;
  line-height: 1;
  color: var(--color-blue);
}

.faq details[open] summary::after {
  content: '−';
}

.faq details p {
  margin: 0;
  padding: 0 var(--space-5) var(--space-5);
  color: var(--color-text-soft);
}

/* ------------------------------------------------------------- footer */
.site-footer {
  background: var(--color-blue-dark);
  color: rgba(255, 255, 255, 0.86);
  font-size: var(--text-sm);
  border-top: 6px solid var(--color-red);
}

.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) repeat(3, minmax(0, 1fr));
  gap: var(--space-6);
  padding-block: var(--space-7);
}

.site-footer h2 {
  color: var(--color-white);
  font-size: var(--text-sm);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: var(--space-4);
}

.site-footer ul {
  display: grid;
  gap: var(--space-2);
  margin: 0;
  padding: 0;
  list-style: none;
}

.footer-email {
  overflow-wrap: anywhere;
}

.site-footer a {
  color: var(--color-white);
  text-decoration: none;
}

.site-footer a:hover {
  text-decoration: underline;
}

.footer-brand .brand-name {
  color: var(--color-white);
}

.footer-brand .brand-sub {
  color: #ff8a80;
}

.footer-brand p {
  margin: var(--space-4) 0 0;
  max-width: 38ch;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--space-2) var(--space-4);
  padding-block: var(--space-4);
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  font-size: var(--text-xs);
  color: rgba(255, 255, 255, 0.75);
}

@media (max-width: 899px) {
  .footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .footer-brand {
    grid-column: 1 / -1;
  }
}

@media (max-width: 479px) {
  .footer-grid {
    grid-template-columns: 1fr;
    gap: var(--space-5);
  }
}

/* ------------------------------------------------------------- floating WhatsApp, toast, dialog */
.floating-whatsapp {
  position: fixed;
  right: max(1rem, env(safe-area-inset-right));
  bottom: max(1rem, env(safe-area-inset-bottom));
  z-index: 40;
  display: flex;
  align-items: center;
  gap: 0.65rem;
  text-decoration: none;
  -webkit-tap-highlight-color: transparent;
}

.floating-whatsapp__btn {
  position: relative;
  display: grid;
  place-items: center;
  width: 3.6rem;
  height: 3.6rem;
  border-radius: 50%;
  background: var(--color-whatsapp); /* official WhatsApp green #25D366 */
  color: #ffffff;
  box-shadow:
    0 8px 20px rgba(37, 211, 102, 0.35),
    0 2px 6px rgba(0, 0, 0, 0.18);
}

.floating-whatsapp__btn .icon {
  width: 1.95rem;
  height: 1.95rem;
}

.floating-whatsapp__label {
  padding: 0.5rem 0.9rem;
  border-radius: var(--radius-pill);
  background: var(--color-white);
  color: var(--color-text);
  font-size: var(--text-sm);
  font-weight: 700;
  white-space: nowrap;
  box-shadow: 0 6px 18px rgba(11, 63, 122, 0.16);
  opacity: 0;
  transform: translateX(10px);
  pointer-events: none;
  transition: opacity 260ms ease, transform 360ms cubic-bezier(0.22, 1, 0.36, 1);
}

.floating-whatsapp:hover .floating-whatsapp__label,
.floating-whatsapp:focus-visible .floating-whatsapp__label,
.floating-whatsapp.is-peek .floating-whatsapp__label {
  opacity: 1;
  transform: none;
}

.floating-whatsapp:focus-visible {
  outline: none;
}

.floating-whatsapp:focus-visible .floating-whatsapp__btn {
  outline: 3px solid var(--color-focus);
  outline-offset: 3px;
}

/* Official WhatsApp logo inside buttons keeps its own colours */
.icon--wa {
  width: 1.35em;
  height: 1.35em;
}

.toast-region {
  position: fixed;
  left: 50%;
  bottom: max(1rem, env(safe-area-inset-bottom));
  z-index: 60;
  translate: -50% 0;
  width: min(440px, calc(100% - 2rem));
  display: grid;
  gap: var(--space-2);
  pointer-events: none;
}

.toast {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-3) var(--space-4);
  border-radius: var(--radius);
  background: var(--color-text);
  color: var(--color-white);
  box-shadow: var(--shadow-raised);
  font-size: var(--text-sm);
  pointer-events: auto;
  animation: toast-in 0.2s ease-out;
}

.toast .icon {
  color: #7ee0ae;
}

.toast--error .icon {
  color: #ff8a80;
}

.toast p {
  margin: 0;
  flex: 1;
}

.toast a {
  color: var(--color-white);
  font-weight: 800;
  white-space: nowrap;
}

@keyframes toast-in {
  from {
    opacity: 0;
    translate: 0 8px;
  }
}

.dialog {
  width: min(480px, calc(100% - 2rem));
  padding: 0;
  border: 0;
  border-radius: var(--radius);
  box-shadow: var(--shadow-raised);
  color: var(--color-text);
}

.dialog::backdrop {
  background: rgba(20, 32, 51, 0.55);
}

.dialog__body {
  padding: var(--space-5);
}

.dialog__body h2 {
  font-size: var(--text-xl);
}

.dialog__actions {
  display: flex;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: var(--space-2);
  margin-top: var(--space-5);
}

.spinner {
  width: 1.1rem;
  height: 1.1rem;
  border: 2px solid currentColor;
  border-right-color: transparent;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.skeleton {
  border-radius: var(--radius);
  background: linear-gradient(90deg, var(--color-surface) 25%, var(--color-surface-strong) 50%, var(--color-surface) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.2s infinite;
}

@keyframes shimmer {
  to {
    background-position: -200% 0;
  }
}


/* ==========================================================================
   MOTION
   Subtle, purposeful animation. Everything below only runs when the visitor
   has NOT asked their device to reduce motion. Content is always visible
   without JavaScript (reveal classes are added by scripts/site.js).
   ========================================================================== */
:root {
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
  --dur-fast: 180ms;
  --dur: 320ms;
  --dur-slow: 700ms;
}

@media (prefers-reduced-motion: no-preference) {
  /* Smooth cross-fade between pages (supporting browsers; others ignore it) */
  @view-transition {
    navigation: auto;
  }

  ::view-transition-old(root),
  ::view-transition-new(root) {
    animation-duration: 260ms;
    animation-timing-function: var(--ease-in-out);
  }

  html {
    scroll-behavior: smooth;
  }

  /* ---- Hero entrance (on page load) ---- */
  .hero .eyebrow,
  .hero h1,
  .hero__lead,
  .hero__actions,
  .hero__principles {
    animation: rise-in var(--dur-slow) var(--ease-out) both;
  }

  .hero h1 { animation-delay: 80ms; }
  .hero__lead { animation-delay: 180ms; }
  .hero__actions { animation-delay: 280ms; }
  .hero__principles { animation-delay: 380ms; }

  .hero__media {
    animation: media-in 900ms var(--ease-out) 120ms both;
  }

  .hero__media::after {
    transform-origin: left;
    animation: bar-grow 900ms var(--ease-out) 600ms both;
  }

  .hero__principles li {
    animation: fade-in var(--dur-slow) var(--ease-out) both;
  }

  .hero__principles li:nth-child(1) { animation-delay: 450ms; }
  .hero__principles li:nth-child(2) { animation-delay: 520ms; }
  .hero__principles li:nth-child(3) { animation-delay: 590ms; }
  .hero__principles li:nth-child(4) { animation-delay: 660ms; }
  .hero__principles li:nth-child(5) { animation-delay: 730ms; }

  .page-hero .container > * {
    animation: rise-in 600ms var(--ease-out) both;
  }

  .page-hero .container > :nth-child(2) { animation-delay: 70ms; }
  .page-hero .container > :nth-child(3) { animation-delay: 140ms; }

  /* ---- Scroll reveal (classes added by JS) ---- */
  .reveal {
    opacity: 0;
    transform: translateY(24px);
    transition:
      opacity 650ms var(--ease-out),
      transform 650ms var(--ease-out);
    transition-delay: calc(var(--reveal-i, 0) * 80ms);
  }

  .reveal.is-visible {
    opacity: 1;
    transform: none;
  }

  /* ---- Header ---- */
  .site-header {
    transition: box-shadow var(--dur) var(--ease-out);
  }

  .site-header.is-scrolled {
    box-shadow: 0 8px 24px rgba(11, 63, 122, 0.1);
  }

  .site-nav li > a {
    position: relative;
  }

  @media (min-width: 900px) {
    .site-nav li > a::after {
      content: '';
      position: absolute;
      left: 0.8rem;
      right: 0.8rem;
      bottom: 0.2rem;
      height: 2px;
      background: var(--color-red);
      transform: scaleX(0);
      transition: transform var(--dur) var(--ease-out);
    }

    .site-nav li > a:hover::after {
      transform: scaleX(1);
    }

    .site-nav li > a[aria-current='page']::after {
      display: none;
    }
  }

  @media (max-width: 899px) {
    .site-nav.is-open {
      animation: menu-in 260ms var(--ease-out) both;
    }

    .site-nav.is-open li {
      animation: rise-in 360ms var(--ease-out) both;
    }

    .site-nav.is-open li:nth-child(2) { animation-delay: 30ms; }
    .site-nav.is-open li:nth-child(3) { animation-delay: 60ms; }
    .site-nav.is-open li:nth-child(4) { animation-delay: 90ms; }
    .site-nav.is-open li:nth-child(5) { animation-delay: 120ms; }
  }

  .brand-logo {
    transition: transform var(--dur) var(--ease-out);
  }

  .brand:hover .brand-logo {
    transform: scale(1.02);
  }

  /* ---- Buttons ---- */
  .btn {
    transition:
      background-color var(--dur-fast) ease,
      border-color var(--dur-fast) ease,
      color var(--dur-fast) ease,
      transform var(--dur-fast) var(--ease-out),
      box-shadow var(--dur-fast) var(--ease-out);
  }

  .btn:not(:disabled):hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(11, 63, 122, 0.16);
  }

  .btn:not(:disabled):active {
    transform: translateY(0) scale(0.98);
    box-shadow: none;
  }

  .btn .icon {
    transition: transform var(--dur) var(--ease-out);
  }

  .btn.is-added .icon {
    animation: pop 420ms var(--ease-out);
  }

  .link-arrow .icon,
  .category-tile .icon {
    transition: transform var(--dur) var(--ease-out);
  }

  .link-arrow:hover .icon,
  .category-tile:hover .icon {
    transform: translateX(4px);
  }

  /* ---- Cards ---- */
  .product-card,
  .category-tile,
  .service,
  .info-card,
  .step {
    transition:
      transform var(--dur) var(--ease-out),
      box-shadow var(--dur) var(--ease-out),
      border-color var(--dur) var(--ease-out);
  }

  .product-card:hover,
  .service:hover,
  .category-tile:hover {
    transform: translateY(-4px);
  }

  .service:hover,
  .info-card:hover,
  .step:hover {
    box-shadow: var(--shadow-raised);
  }

  .product-card__media {
    overflow: hidden;
  }

  .product-card__media img {
    transition: transform 600ms var(--ease-out), filter var(--dur) ease;
  }

  .product-card:hover .product-card__media img {
    transform: scale(1.05);
  }

  .service__icon,
  .benefit__icon {
    transition: transform var(--dur) var(--ease-out), background-color var(--dur) ease, color var(--dur) ease;
  }

  .service:hover .service__icon,
  .benefit:hover .benefit__icon {
    transform: translateY(-2px) rotate(-4deg);
    background: var(--color-blue);
    color: var(--color-white);
  }

  .step__num {
    transition: transform var(--dur) var(--ease-out);
  }

  .step:hover .step__num {
    transform: scale(1.1);
  }

  /* ---- Imagery ---- */
  .split img,
  .steps__media img,
  .gallery__main img {
    transition: transform 900ms var(--ease-out);
  }

  .split:hover img,
  .steps__media:hover img {
    transform: scale(1.03);
  }

  .hero__media img {
    transition: transform 1200ms var(--ease-out);
  }

  .hero__media:hover img {
    transform: scale(1.03);
  }

  .gallery__thumb {
    transition: border-color var(--dur-fast) ease, transform var(--dur-fast) var(--ease-out);
  }

  .gallery__thumb:hover {
    transform: translateY(-2px);
  }

  /* ---- Forms & controls ---- */
  .input,
  .select,
  .textarea,
  .chip,
  .qty__btn {
    transition: border-color var(--dur-fast) ease, box-shadow var(--dur-fast) ease, background-color var(--dur-fast) ease, color var(--dur-fast) ease;
  }

  .input:focus-visible,
  .select:focus-visible,
  .textarea:focus-visible {
    box-shadow: 0 0 0 4px rgba(15, 94, 179, 0.12);
  }

  .faq summary::after {
    transition: transform var(--dur) var(--ease-out);
  }

  .faq details[open] summary::after {
    transform: rotate(180deg);
  }

  .faq details[open] p {
    animation: rise-in 360ms var(--ease-out) both;
  }

  /* ---- Cart ---- */
  .summary__total dd {
    transition: color var(--dur) ease;
  }

  /* ---- Floating WhatsApp ----
     Pops in after the page settles, then every 6 s sends out a soft ripple
     and gives a small "ringing" wiggle. Pauses while hovered. */
  .floating-whatsapp__btn {
    animation: wa-in 600ms var(--ease-out) 700ms both;
    transition: transform var(--dur) var(--ease-out), box-shadow var(--dur) var(--ease-out);
  }

  .floating-whatsapp__btn::before,
  .floating-whatsapp__btn::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 50%;
    border: 2px solid rgba(37, 211, 102, 0.7);
    opacity: 0;
    pointer-events: none;
    animation: wa-ripple 6s var(--ease-out) 2s infinite;
  }

  .floating-whatsapp__btn::after {
    animation-delay: 2.35s;
  }

  .floating-whatsapp__btn .icon {
    transform-origin: 50% 55%;
    animation: wa-ring 6s ease-in-out 2s infinite;
  }

  .floating-whatsapp:hover .floating-whatsapp__btn {
    transform: translateY(-3px) scale(1.06);
    box-shadow:
      0 14px 28px rgba(37, 211, 102, 0.45),
      0 4px 10px rgba(0, 0, 0, 0.2);
  }

  .floating-whatsapp:hover .floating-whatsapp__btn::before,
  .floating-whatsapp:hover .floating-whatsapp__btn::after,
  .floating-whatsapp:hover .floating-whatsapp__btn .icon {
    animation-play-state: paused;
  }

  .floating-whatsapp:active .floating-whatsapp__btn {
    transform: scale(0.96);
  }

  .dialog[open] {
    animation: dialog-in 260ms var(--ease-out) both;
  }

  .dialog[open]::backdrop {
    animation: fade-in 260ms ease both;
  }
}

@keyframes rise-in {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
}

@keyframes fade-in {
  from {
    opacity: 0;
  }
}

@keyframes media-in {
  from {
    opacity: 0;
    transform: translateY(24px) scale(0.97);
  }
}

@keyframes bar-grow {
  from {
    transform: scaleX(0);
  }
}

@keyframes menu-in {
  from {
    opacity: 0;
    transform: translateY(-8px);
  }
}

@keyframes pop {
  40% {
    transform: scale(1.35) rotate(-8deg);
  }
}

@keyframes wa-in {
  0% {
    opacity: 0;
    transform: scale(0.4) translateY(20px);
  }

  60% {
    opacity: 1;
    transform: scale(1.08);
  }
}

@keyframes wa-ripple {
  0% {
    opacity: 0.75;
    transform: scale(1);
  }

  28%,
  100% {
    opacity: 0;
    transform: scale(1.75);
  }
}

@keyframes wa-ring {
  0%,
  10%,
  100% {
    transform: rotate(0);
  }

  2% { transform: rotate(-12deg); }
  4% { transform: rotate(10deg); }
  6% { transform: rotate(-8deg); }
  8% { transform: rotate(5deg); }
}

@keyframes dialog-in {
  from {
    opacity: 0;
    transform: translateY(12px) scale(0.98);
  }
}

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

@media print {
  .site-header,
  .site-footer,
  .floating-whatsapp-wrap,
  .toast-region {
    display: none !important;
  }
}

/* ------------------------------------------------------------- services gallery */
.yard-gallery {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-4);
  margin: 0;
  padding: 0;
  list-style: none;
}

.yard-photo,
.finish-photo {
  position: relative;
  margin: 0;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--color-blue-dark);
  box-shadow: var(--shadow-card);
}

.yard-photo img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.yard-photo figcaption {
  position: absolute;
  left: var(--space-3);
  bottom: var(--space-3);
  max-width: calc(100% - var(--space-6));
  padding: 0.35rem 0.75rem;
  border-left: 3px solid var(--color-red);
  border-radius: var(--radius-sm);
  background: rgba(11, 63, 122, 0.88);
  color: #fff;
  font-size: var(--text-sm);
  font-weight: 600;
}

.finish-title {
  margin: var(--space-7) 0 var(--space-4);
  font-size: var(--text-xl);
}

.finish-gallery {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--space-4);
  margin: 0;
  padding: 0;
  list-style: none;
}

.finish-photo {
  background: #fff;
}

.finish-photo img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 4;
  object-fit: cover;
}

.finish-photo figcaption {
  padding: var(--space-3);
  border-top: 3px solid var(--color-red);
  color: var(--color-text);
  font-size: var(--text-sm);
  font-weight: 600;
}

@media (max-width: 899px) {
  .finish-gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 599px) {
  .yard-gallery { grid-template-columns: 1fr; gap: var(--space-3); }
  .finish-gallery { gap: var(--space-3); }
  .finish-title { margin-top: var(--space-6); }
  .finish-photo figcaption { padding: var(--space-2) var(--space-3); font-size: var(--text-xs); }
}

@media (prefers-reduced-motion: no-preference) {
  .yard-photo img,
  .finish-photo img { transition: transform 400ms var(--ease-out); }
  .yard-photo:hover img,
  .finish-photo:hover img { transform: scale(1.03); }
}

/* ------------------------------------------------------------- phone polish */
@media (max-width: 599px) {
  /* commitments as tidy chips instead of a ragged wrapped line */
  .hero__principles {
    gap: var(--space-2);
  }

  /* category chips scroll sideways; keep each label on one line */
  .chip {
    white-space: nowrap;
  }

  .hero__principles li {
    padding: 0.3rem 0.7rem 0.3rem 0.55rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.06);
    font-size: var(--text-xs);
  }
}

@media (max-width: 519px) {
  /* compact service cards: icon beside the title */
  .service {
    display: grid;
    grid-template-columns: 2.5rem minmax(0, 1fr);
    column-gap: var(--space-3);
    align-items: center;
    padding: var(--space-4);
  }

  .service__icon {
    width: 2.5rem;
    height: 2.5rem;
    margin: 0;
  }

  .service h3 {
    margin: 0;
  }

  .service p,
  .service__link {
    grid-column: 1 / -1;
  }

  .service p {
    margin-top: var(--space-3);
  }

  .service__link {
    justify-self: start;
    min-height: 2.75rem;
    padding-top: var(--space-2);
  }
}

@media (max-width: 479px) {
  /* shop filters: full-width selects so option text is never cut off */
  .shop-toolbar {
    grid-template-columns: 1fr;
  }

  /* contact page email: one line, no mid-word breaks */
  .info-card {
    padding: var(--space-4);
  }

  .contact-list a[href^='mailto:'] {
    font-size: clamp(0.72rem, 3.7vw, 1rem);
    overflow-wrap: break-word;
    word-break: normal;
  }

  /* footer: Shop and Company side by side, bigger tap targets */
  .footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: var(--space-6) var(--space-4);
  }

  .footer-grid > div:last-child {
    grid-column: 1 / -1;
  }

  .site-footer ul {
    gap: 0;
  }

  .site-footer li > a {
    display: inline-block;
    padding-block: 0.4rem;
  }

  .site-footer li:not(:has(a)) {
    padding-block: 0.4rem;
  }

  .footer-bottom {
    flex-direction: column;
    padding-bottom: calc(var(--space-4) + 4.5rem); /* clear the floating WhatsApp button */
  }
}

@media (max-width: 899px) {
  /* dim the page behind the open mobile menu; tapping it closes the menu */
  .site-header:has(.site-nav.is-open)::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    height: 100vh;
    z-index: -1;
    background: rgba(7, 27, 56, 0.55);
  }
}
