/* White & blue theme, dual hero (red then blue) */
:root {
  --blue-50: #f0f6ff;
  --blue-100: #dbeafe;
  --blue-200: #bfdbfe;
  --blue-500: #3b82f6;
  --blue-600: #2563eb;
  --blue-700: #1d4ed8;
  --blue-900: #1e3a5f;
  --white: #ffffff;
  --text: #1e293b;
  --text-muted: #64748b;
  --red-hero: #b91c1c;
  --red-hero-dark: #991b1b;
  --shadow: 0 12px 40px rgba(30, 58, 95, 0.12);
  --header-h: 7rem;
  --header-inset-right: 100px;
  --font: "DM Sans", system-ui, sans-serif;
  --transition: 0.65s ease;
  --nav-breakpoint: 769px;
}

img,
video {
  max-width: 100%;
  height: auto;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 0.5rem);
}

body {
  margin: 0;
  font-family: var(--font);
  color: var(--text);
  background: var(--white);
  line-height: 1.6;
}

/* Page entrance (on refresh) — needs html.js + body.is-ready */
.reveal {
  backface-visibility: hidden;
}

html.js body:not(.is-ready) .reveal {
  opacity: 0;
  transform: translate3d(0, 1.25rem, 0);
}

html.js body.is-ready .reveal {
  opacity: 1;
  transform: none;
  transition:
    opacity 0.6s ease,
    transform 0.6s ease;
  transition-delay: calc(55ms * var(--r, 0));
}

body.nav-open {
  overflow: hidden;
  touch-action: none;
  overscroll-behavior: none;
}

.header {
  position: sticky;
  top: 0;
  z-index: 102;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: var(--header-h);
  padding: 0 var(--header-inset-right) 0
    max(1.5rem, env(safe-area-inset-left, 0px));
  padding-right: max(
    var(--header-inset-right),
    env(safe-area-inset-right, 0px)
  );
  background: var(--white);
  border-bottom: 1px solid var(--blue-100);
  box-shadow: 0 1px 0 rgba(37, 99, 235, 0.06);
  gap: 0.75rem;
}

.header__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-width: 0;
  flex: 0 1 auto;
}

/* Hamburger: hidden on wide screens, shown in mobile rules below */
.header__menu {
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  min-width: 44px;
  min-height: 44px;
  padding: 0;
  margin: 0;
  margin-left: auto;
  border: 1px solid var(--blue-200);
  border-radius: 10px;
  background: var(--white);
  color: var(--blue-900);
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: background 0.2s, border-color 0.2s, box-shadow 0.2s;
}

.header__menu:hover {
  background: var(--blue-50);
  border-color: var(--blue-500);
}

.header__menu[aria-expanded="true"] {
  background: var(--blue-100);
  border-color: var(--blue-500);
}

.header__menu-bars {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 20px;
  height: 14px;
  position: relative;
}

.header__menu-line {
  position: absolute;
  left: 0;
  right: 0;
  height: 2px;
  background: currentColor;
  border-radius: 1px;
  transition: transform 0.2s, opacity 0.2s, top 0.2s;
}

.header__menu-line:nth-child(1) {
  top: 0;
}

.header__menu-line:nth-child(2) {
  top: 6px;
}

.header__menu-line:nth-child(3) {
  top: 12px;
}

body.nav-open .header__menu-line:nth-child(1) {
  top: 6px;
  transform: rotate(45deg);
}

body.nav-open .header__menu-line:nth-child(2) {
  opacity: 0;
}

body.nav-open .header__menu-line:nth-child(3) {
  top: 6px;
  transform: rotate(-45deg);
}

.nav-backdrop {
  display: none;
}

@media (min-width: 769px) {
  .header__bar {
    max-width: 55%;
    margin-right: auto;
  }

  .header__menu {
    display: none;
  }

  .header .nav {
    flex: 0 0 auto;
    margin-left: 1rem;
  }
}

.logo {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  min-width: 0;
  line-height: 0;
}

.logo__img {
  display: block;
  height: 6rem;
  width: auto;
  max-width: 6.5rem;
  object-fit: contain;
  flex-shrink: 0;
}

.nav {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.35rem 0.5rem;
  max-width: 100%;
}

.nav__link {
  color: var(--blue-900);
  text-decoration: none;
  font-weight: 500;
  padding: 0.5rem 0.75rem;
  border-radius: 8px;
  transition: background 0.2s, color 0.2s;
}

.nav__link:hover {
  background: var(--blue-50);
  color: var(--blue-600);
}

.nav__link--current {
  color: var(--blue-600);
  font-weight: 600;
  background: var(--blue-50);
}

.nav__menu a.nav__link--current {
  color: var(--blue-700);
  font-weight: 600;
}

/* Inner page title band */
.page-banner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2.75rem 1.5rem 1.5rem;
}

.page-banner__title {
  color: var(--blue-900);
  font-size: clamp(1.65rem, 4vw, 2.15rem);
  font-weight: 700;
  line-height: 1.2;
  margin: 0 0 0.5rem;
}

.page-banner__lede {
  color: var(--text-muted);
  margin: 0;
  max-width: 52ch;
  line-height: 1.55;
}

/* Dropdown: show dental & surgical on hover */
.nav__dropdown {
  position: relative;
}

.nav__trigger {
  font: inherit;
  font-weight: 500;
  color: var(--blue-900);
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0.5rem 0.75rem;
  border-radius: 8px;
  transition: background 0.2s, color 0.2s;
}

.nav__trigger:hover,
.nav__dropdown:hover .nav__trigger {
  background: var(--blue-50);
  color: var(--blue-600);
}

.nav__menu {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(0.25rem);
  min-width: 14rem;
  margin: 0;
  padding: 0.5rem;
  list-style: none;
  background: var(--white);
  border: 1px solid var(--blue-100);
  border-radius: 12px;
  box-shadow: var(--shadow);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.2s, visibility 0.2s, transform 0.2s;
}

.nav__dropdown:hover .nav__menu,
.nav__dropdown:focus-within .nav__menu {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0.35rem);
}

.nav__menu a {
  display: block;
  padding: 0.65rem 0.9rem;
  color: var(--text);
  text-decoration: none;
  font-size: 0.9375rem;
  border-radius: 8px;
  transition: background 0.15s, color 0.15s;
}

.nav__menu a:hover {
  background: var(--blue-50);
  color: var(--blue-700);
}

/* Hero: stacked slides, red then blue */
.hero {
  position: relative;
  /* Shorter than full viewport so less empty space above Featured */
  min-height: min(78vh, 700px);
  margin-bottom: 50px;
  overflow: hidden;
}

.hero__slide {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100%;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition);
}

.hero__slide.is-active {
  position: relative;
  min-height: min(78vh, 700px);
  opacity: 1;
  pointer-events: auto;
  z-index: 1;
}

/* When second slide is active, first is under */
.hero__slide--surgical:not(.is-active) {
  position: absolute;
  z-index: 0;
}

.hero__slide--medical.is-active {
  z-index: 2;
}

.hero__slide--surgical {
  background: linear-gradient(135deg, var(--red-hero) 0%, var(--red-hero-dark) 100%);
  color: var(--white);
}

.hero__slide--medical {
  background: linear-gradient(135deg, var(--blue-600) 0%, var(--blue-900) 100%);
  color: var(--white);
}

.hero__inner {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 2.5rem 1.75rem 0.75rem;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 2.5rem;
  align-items: center;
}

.hero__text {
  padding-bottom: 15px;
  min-width: 0;
}

.hero__eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.75rem;
  font-weight: 600;
  margin: 0 0 0.75rem;
  opacity: 0.9;
}

.hero h1 {
  font-size: clamp(2rem, 5vw, 3.15rem);
  font-weight: 700;
  line-height: 1.15;
  margin: 0 0 1.1rem;
  max-width: 22ch;
}

.hero__lede {
  margin: 0 0 1rem;
  max-width: 50ch;
  font-size: 1.125rem;
  line-height: 1.55;
  opacity: 0.95;
}

.hero__more {
  margin: 0;
  max-width: 52ch;
  font-size: 0.98rem;
  line-height: 1.6;
  opacity: 0.9;
}

.hero__more:last-child {
  margin-bottom: 0;
}

.hero__media {
  justify-self: end;
}

.hero__img {
  display: block;
  width: min(340px, 46vw);
  max-height: 420px;
  object-fit: cover;
  border-radius: 16px;
  box-shadow: 0 24px 56px rgba(0, 0, 0, 0.28);
  border: 3px solid rgba(255, 255, 255, 0.35);
}

@media (min-width: 640px) {
  .hero__img {
    width: min(400px, 40vw);
    max-height: 480px;
  }
}

@media (min-width: 1024px) {
  .hero__inner {
    padding: 2.75rem 2rem 0.75rem;
    gap: 3rem;
  }

  .hero__img {
    width: min(480px, 38vw);
    max-height: 520px;
  }
}

@media (max-width: 700px) {
  .hero__inner {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero h1 {
    max-width: none;
  }

  .hero__lede,
  .hero__more {
    max-width: none;
  }

  .hero__media {
    justify-self: center;
  }

  .hero__img {
    width: min(360px, 90vw);
    max-height: 400px;
  }
}

.section {
  max-width: 1200px;
  margin: 0 auto;
  padding: 4rem 1.5rem;
}

.section--alt {
  background: var(--blue-50);
  border-top: 1px solid var(--blue-100);
  border-bottom: 1px solid var(--blue-100);
  max-width: none;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}

.section--alt .section__head,
.section--alt .grid {
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
}

.section__head h2 {
  color: var(--blue-900);
  font-size: 1.75rem;
  margin: 0 0 0.5rem;
}

.section__head p {
  color: var(--text-muted);
  margin: 0 0 2rem;
  max-width: 55ch;
}

.section__see-more {
  margin: 1.5rem 0 0;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.95rem;
}

.grid {
  display: grid;
  gap: 1.25rem;
}

.grid--3 {
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.card {
  background: var(--white);
  border: 1px solid var(--blue-100);
  border-radius: 14px;
  padding: 1.5rem;
  box-shadow: 0 2px 12px rgba(37, 99, 235, 0.06);
}

.card--line {
  border-left: 4px solid var(--blue-500);
}

.card h3 {
  color: var(--blue-700);
  margin: 0 0 0.5rem;
  font-size: 1.1rem;
}

.card p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.95rem;
}

/* Featured instruments — sits directly under hero (tight to hero) */
main > .section--featured:first-of-type {
  margin-top: 0;
  position: relative;
  z-index: 1;
}

.section.section--featured {
  background: linear-gradient(180deg, var(--white) 0%, var(--blue-50) 100%);
  border-bottom: 1px solid var(--blue-100);
  max-width: none;
  margin-top: 0;
  /* Override .section: no top padding so Featured sits under Hero */
  padding: 0 1.5rem 4rem;
}

.section--featured .section__head,
.section--featured .featured-grid {
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
}

/* Intro text under the hero (Featured heading + description) */
.section--featured .section__head {
  padding-top: 15px;
  padding-bottom: 15px;
}

.page-banner + .section--featured .section__head {
  padding-top: 1.75rem;
}

.catalogue-subhead {
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--blue-800);
  margin: 0 auto 0.75rem;
  max-width: 1200px;
  padding: 0 0.25rem;
}

.featured-grid.catalogue-product-grid + .catalogue-subhead {
  margin-top: 2rem;
}

.featured-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem;
}

.feature-card {
  display: flex;
  flex-direction: column;
  background: var(--white);
  border: 1px solid var(--blue-100);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(30, 58, 95, 0.08);
  transition: box-shadow 0.2s, transform 0.2s;
}

.feature-card:hover {
  box-shadow: 0 12px 32px rgba(30, 58, 95, 0.12);
  transform: translateY(-2px);
}

.feature-card__media {
  aspect-ratio: 4 / 3;
  background: var(--blue-100);
  overflow: hidden;
}

.feature-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.feature-card__body {
  padding: 1.1rem 1.35rem 1.2rem;
}

.feature-card h3 {
  margin: 0;
  padding-top: 0.4rem;
  font-size: 1.05rem;
  color: var(--blue-900);
  line-height: 1.3;
}

a.feature-card--link {
  text-decoration: none;
  color: inherit;
  -webkit-tap-highlight-color: transparent;
}

a.feature-card--link:focus-visible {
  outline: 2px solid var(--blue-500);
  outline-offset: 3px;
}

/* Product detail (product.html) */
.breadcrumb {
  max-width: 1200px;
  margin: 0 auto 1.25rem;
  padding: 0 1.5rem;
  font-size: 0.875rem;
  color: var(--text-muted);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem 0.5rem;
}

.breadcrumb__link {
  color: var(--blue-600);
  text-decoration: none;
  font-weight: 500;
}

.breadcrumb__link:hover {
  text-decoration: underline;
}

.breadcrumb__sep {
  color: var(--blue-200);
  user-select: none;
}

.breadcrumb__current {
  color: var(--text-muted);
  max-width: 100%;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.product-error {
  max-width: 1200px;
  margin: 0 auto;
  padding: 3rem 1.5rem 4rem;
  text-align: center;
}

.product-error__text {
  font-size: 1.1rem;
  color: var(--blue-900);
  font-weight: 600;
  margin: 0 0 0.5rem;
}

.product-detail {
  max-width: 1200px;
  margin: 0 auto;
  padding: 1.25rem 1.5rem 2.5rem;
}

.product-detail__layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.75rem 2.5rem;
  align-items: start;
}

@media (min-width: 880px) {
  .product-detail__layout {
    grid-template-columns: 1.1fr 1fr;
  }
}

.product-detail__media {
  border-radius: 16px;
  overflow: hidden;
  background: var(--blue-100);
  border: 1px solid var(--blue-100);
  box-shadow: 0 8px 32px rgba(30, 58, 95, 0.1);
}

.product-detail__img {
  display: block;
  width: 100%;
  height: auto;
  max-height: min(70vh, 640px);
  object-fit: contain;
}

.product-detail__gallery {
  list-style: none;
  margin: 0.85rem 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0.5rem;
}

.product-detail__gallery-item {
  margin: 0;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid var(--blue-100);
  background: var(--blue-50);
  aspect-ratio: 4 / 3;
}

.product-detail__gallery-img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

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

/* Home featured: first two cards show 5-thumb strip */
.feature-card__thumbs {
  list-style: none;
  margin: 0;
  padding: 0.4rem 0 0;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0.35rem;
}

.feature-card__thumb {
  margin: 0;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid var(--blue-100);
  aspect-ratio: 1;
  background: var(--blue-50);
}

.feature-card__thumb img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

@media (max-width: 520px) {
  .feature-card__thumbs {
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 0.25rem;
  }
}

.product-detail__content {
  padding: 0.25rem 0 0;
}

.product-detail__title {
  color: var(--blue-900);
  font-size: clamp(1.4rem, 3.5vw, 1.9rem);
  line-height: 1.2;
  margin: 0 0 0.75rem;
}

.product-detail__lede {
  color: var(--blue-700);
  font-size: 1.05rem;
  font-weight: 500;
  line-height: 1.5;
  margin: 0 0 1.1rem;
}

.product-detail__body p {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.65;
  margin: 0 0 0.9rem;
}

.product-detail__body p:last-child {
  margin-bottom: 0;
}

.product-detail__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1rem;
  margin: 1.5rem 0 0;
}

.btn--ghost {
  background: var(--white);
  color: var(--blue-600);
  border: 1px solid var(--blue-200);
  box-shadow: none;
}

.btn--ghost:hover {
  background: var(--blue-50);
  border-color: var(--blue-400);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(30, 58, 95, 0.12);
}

.related-wrap {
  margin-top: 0;
  padding-top: 2.5rem;
}

/* Related products — same crop box for every image; card ~20px+ shorter than default featured cards */
.related-wrap .feature-card {
  min-height: 0;
}
.related-wrap .feature-card__media {
  aspect-ratio: 3 / 2;
  flex-shrink: 0;
  min-height: 0;
  background: var(--white);
}
.related-wrap .feature-card__media img {
  object-fit: cover;
  object-position: center;
}
.related-wrap .feature-card__body {
  padding: 0.9rem 1.1rem 0.9rem;
}
.related-wrap .feature-card h3 {
  font-size: 1rem;
  margin: 0;
  padding-top: 0.45rem;
  line-height: 1.25;
}

/* Catalogue */
.section--catalogue {
  background: var(--blue-50);
  border-top: 1px solid var(--blue-100);
  border-bottom: 1px solid var(--blue-100);
  max-width: none;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}

.catalogue-block {
  max-width: 1200px;
  margin: 0 auto;
}

.catalogue-block__text h2 {
  color: var(--blue-900);
  font-size: 1.5rem;
  margin: 0 0 0.75rem;
}

.catalogue-block__text p {
  color: var(--text-muted);
  margin: 0 0 1.25rem;
  max-width: 50ch;
}

.text-link {
  color: var(--blue-600);
  font-weight: 500;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.text-link:hover {
  color: var(--blue-700);
}

.catalogue-note {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin: 0.75rem 0 0;
  font-style: italic;
}

.catalogue-code {
  font-family: ui-monospace, monospace;
  font-size: 0.75em;
  font-style: normal;
  word-break: break-all;
}

/* Contact form */
.contact-section {
  max-width: 640px;
  margin: 0 auto;
  padding: 3rem 1.5rem 4rem;
}

.contact-section--split {
  max-width: 900px;
}

.contact-page__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.75rem;
  align-items: start;
}

@media (min-width: 720px) {
  .contact-page__grid {
    grid-template-columns: minmax(240px, 1fr) minmax(0, 1.2fr);
    gap: 2rem;
  }
}

.location-card {
  background: var(--white);
  border: 1px solid var(--blue-100);
  border-radius: 14px;
  padding: 1.35rem 1.4rem 1.5rem;
  box-shadow: 0 4px 20px rgba(30, 58, 95, 0.06);
}

.location-card__title {
  color: var(--blue-900);
  font-size: 1.05rem;
  font-weight: 600;
  margin: 0 0 0.75rem;
}

.location-card__address {
  font-style: normal;
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.6;
  margin: 0 0 0.9rem;
}

.location-card__address strong {
  color: var(--blue-900);
  font-style: normal;
  font-weight: 600;
}

.location-card__map {
  display: inline-block;
  font-weight: 500;
  font-size: 0.9rem;
  margin: 0;
}

.contact-section__title {
  color: var(--blue-900);
  font-size: 1.75rem;
  margin: 0 0 0.5rem;
}

.contact-section__intro {
  color: var(--text-muted);
  margin: 0 0 1.75rem;
  line-height: 1.55;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.form-row {
  margin-bottom: 1.1rem;
}

.form-row--2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

@media (max-width: 560px) {
  .form-row--2 {
    grid-template-columns: 1fr;
  }
}

.field {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.field label {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--blue-900);
}

.req {
  color: #dc2626;
  font-weight: 600;
}

.field input,
.field textarea {
  font: inherit;
  color: var(--text);
  padding: 0.65rem 0.75rem;
  border: 1px solid var(--blue-200);
  border-radius: 10px;
  background: var(--white);
  transition: border-color 0.2s, box-shadow 0.2s;
  width: 100%;
  max-width: 100%;
}

.field input:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--blue-500);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
}

.field textarea {
  min-height: 120px;
  resize: vertical;
}

.form-actions {
  margin-top: 0.25rem;
}

.contact-form__status {
  min-height: 1.5rem;
  margin: 0.75rem 0 0;
  font-size: 0.9rem;
  color: var(--blue-700);
  font-weight: 500;
}

.btn {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  font: inherit;
  font-weight: 600;
  text-decoration: none;
  text-align: center;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s, background 0.2s;
}

.btn--primary {
  background: var(--blue-600);
  color: var(--white);
  box-shadow: 0 4px 14px rgba(37, 99, 235, 0.35);
}

.btn--primary:hover {
  background: var(--blue-700);
  transform: translateY(-1px);
  box-shadow: 0 8px 24px rgba(37, 99, 235, 0.4);
}

/* ——— Mobile & small screens ——— */
@media (max-width: 768px) {
  :root {
    --header-inset-right: 1rem;
  }

  html {
    scroll-padding-top: calc(var(--header-h) + 0.25rem);
  }

  .header {
    min-height: var(--header-h);
    padding: 0.5rem
      max(1rem, env(safe-area-inset-right, 0px))
      0.5rem
      max(1rem, env(safe-area-inset-left, 0px));
  }

  .header__bar {
    width: 100%;
  }

  .header__menu {
    display: inline-flex;
    flex-shrink: 0;
  }

  .logo {
    padding-right: 0.5rem;
  }

  .logo__img {
    height: clamp(3.5rem, 8vw, 6rem);
    max-width: 6rem;
  }

  .nav {
    position: fixed;
    z-index: 100;
    top: var(--header-h);
    right: 0;
    left: auto;
    width: min(20.5rem, 100%);
    max-width: 100%;
    height: auto;
    min-height: 0;
    max-height: calc(100dvh - var(--header-h));
    margin: 0;
    padding: 0.75rem 1.15rem
      max(1rem, env(safe-area-inset-bottom, 0px))
      max(1rem, env(safe-area-inset-right, 0px));
    background: var(--white);
    border: none;
    border-left: 1px solid var(--blue-100);
    border-radius: 0;
    box-shadow: -6px 0 28px rgba(15, 23, 42, 0.12);
    flex-direction: column;
    flex-wrap: nowrap;
    align-items: stretch;
    justify-content: flex-start;
    gap: 0.15rem;
    overflow-y: auto;
    overflow-x: hidden;
    -webkit-overflow-scrolling: touch;
    transform: translateX(100%);
    transition: transform 0.3s ease;
    /* Closed menu must not block clicks; open menu must allow link navigation (no inert) */
    pointer-events: none;
  }

  body.nav-open .nav {
    transform: translateX(0);
    pointer-events: auto;
  }

  @supports not (height: 100dvh) {
    .nav {
      max-height: calc(100vh - var(--header-h));
    }
  }

  .nav__link,
  .nav__trigger {
    min-height: 44px;
    display: flex;
    align-items: center;
    padding: 0.5rem 0.75rem;
  }

  .nav__link {
    width: 100%;
    -webkit-tap-highlight-color: transparent;
  }

  .nav__dropdown {
    width: 100%;
  }

  .nav__dropdown .nav__menu {
    position: static;
    left: auto;
    transform: none;
    min-width: 0;
    width: 100%;
    margin: 0.25rem 0 0.35rem;
    padding: 0.4rem 0.5rem;
    background: var(--blue-50);
    border: 1px solid var(--blue-100);
    border-radius: 10px;
    box-shadow: none;
    display: none;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
  }

  .nav__dropdown.is-open .nav__menu {
    display: block;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
  }

  .nav__dropdown:hover:not(.is-open) .nav__menu,
  .nav__dropdown:focus-within:not(.is-open) .nav__menu {
    opacity: 0 !important;
    visibility: hidden !important;
  }

  .nav__menu a {
    min-height: 44px;
    display: flex;
    align-items: center;
  }

  .nav-backdrop {
    display: block;
    position: fixed;
    inset: 0;
    z-index: 99;
    background: rgba(15, 23, 42, 0.45);
    -webkit-tap-highlight-color: transparent;
  }

  .nav-backdrop[hidden] {
    display: none;
  }

  .hero {
    min-height: min(72vh, 600px);
    margin-bottom: 50px;
  }

  .hero__slide.is-active {
    min-height: min(72vh, 600px);
  }

  .hero__inner {
    padding: 1.5rem max(1rem, env(safe-area-inset-right, 0px)) 0.5rem
      max(1rem, env(safe-area-inset-left, 0px));
    gap: 1.5rem;
  }

  .section {
    padding: 2.5rem 1rem;
  }

  .section--featured {
    margin-top: 0;
    padding: 0 1rem 2.25rem;
  }

  .section--alt,
  .section--catalogue {
    padding-left: 1rem;
    padding-right: 1rem;
  }

  .section__head h2 {
    font-size: clamp(1.35rem, 5vw, 1.75rem);
  }

  .featured-grid {
    grid-template-columns: 1fr;
    gap: 1.15rem;
  }

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

  .contact-section {
    padding: 2.25rem 1rem 3rem;
  }
}

/* Very narrow phones */
@media (max-width: 380px) {
  .header__menu {
    width: 42px;
    height: 42px;
  }
}

/* Respect reduced motion */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .hero__slide,
  .nav,
  .header__menu-line,
  .btn,
  .feature-card,
  .reveal {
    transition: none !important;
  }

  body.nav-open .nav {
    transition: none;
  }

  html.js body .reveal {
    opacity: 1;
    transform: none;
    will-change: auto;
  }
}

.footer {
  text-align: center;
  padding: 1.5rem 1rem;
  padding-bottom: max(1.5rem, env(safe-area-inset-bottom, 0px));
  color: var(--text-muted);
  font-size: 0.875rem;
  border-top: 1px solid var(--blue-100);
}

.footer__inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.25rem;
}

.footer__copy {
  margin: 0;
  max-width: 48ch;
}

.footer__block {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
  text-align: center;
}

.footer__label {
  margin: 0;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--blue-600);
}

.footer__location {
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.5;
  max-width: 32rem;
}

.footer__actions {
  margin: 0.25rem 0 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.35rem 0.75rem;
}

.footer__link {
  color: var(--blue-600);
  font-weight: 500;
  text-decoration: none;
}

.footer__link:hover {
  text-decoration: underline;
}

.footer__sep {
  color: var(--blue-200);
  user-select: none;
}

@media (min-width: 640px) {
  .footer__inner {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: flex-start;
    text-align: left;
  }

  .footer__block {
    align-items: flex-end;
    text-align: right;
  }
}

@media (min-width: 769px) {
  .footer {
    padding: 2rem 1.5rem;
  }
}
