/* ==========================================================================
   Surginexa - public stylesheet
   Design system: light medical-industrial, deep navy + restrained teal accent.
   ========================================================================== */

:root {
  /* Brand colours */
  --navy-950: #081527;
  --navy-900: #0b1f38;
  --navy-800: #0f2a4a;
  --navy-700: #16375e;
  --navy-600: #1d4e82;
  --teal-700: #d10008;
  --teal-600: #ed1c24;
  --teal-500: #2fb6ad;
  --teal-200: #bfe9e5;
  --teal-100: #e2f6f4;
  --teal-50:  #f2fbfa;

  /* Neutrals */
  --ink-900: #16233b;
  --ink-700: #33445f;
  --ink-600: #56678a;
  --ink-400: #8494ad;
  --line: #e2e8f0;
  --line-strong: #cdd8e5;
  --bg: #ffffff;
  --bg-soft: #f6f9fc;
  --bg-navy-soft: #edf3fa;

  /* Feedback */
  --danger: #b42318;
  --danger-bg: #fef3f2;
  --danger-line: #fecdca;
  --success: #067647;
  --success-bg: #ecfdf3;
  --success-line: #abefc6;
  --warning: #b54708;
  --warning-bg: #fffaeb;
  --warning-line: #fedf89;
  --info: #175cd3;
  --info-bg: #eff8ff;
  --info-line: #b2ddff;

  /* Shape */
  --radius-sm: 6px;
  --radius: 10px;
  --radius-lg: 16px;
  --radius-pill: 999px;

  --shadow-xs: 0 1px 2px rgba(16, 35, 60, .06);
  --shadow-sm: 0 1px 3px rgba(16, 35, 60, .08), 0 1px 2px rgba(16, 35, 60, .04);
  --shadow: 0 6px 16px -4px rgba(16, 35, 60, .12);
  --shadow-lg: 0 18px 40px -12px rgba(16, 35, 60, .22);

  --container: 1200px;
  --font-sans: "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
}

/* --------------------------------------------------------------------------
   Base
   -------------------------------------------------------------------------- */

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.65;
  color: var(--ink-900);
  background: var(--bg);
}

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

a { color: var(--navy-600); text-decoration: none; }
a:hover { color: var(--teal-700); }

h1, h2, h3, h4, h5, h6 {
  color: var(--navy-800);
  line-height: 1.25;
  margin: 0 0 .5em;
  font-weight: 700;
  letter-spacing: -.01em;
}

h1 { font-size: 2.35rem; }
h2 { font-size: 1.75rem; }
h3 { font-size: 1.22rem; }
h4 { font-size: 1.05rem; }

p { margin: 0 0 1em; }

ul, ol { margin: 0 0 1em; padding-left: 1.25em; }

hr { border: 0; border-top: 1px solid var(--line); margin: 2rem 0; }

::selection { background: var(--teal-200); color: var(--navy-900); }

.icon {
  width: 1.15em;
  height: 1.15em;
  flex: none;
  display: inline-block;
  vertical-align: -0.18em;
  stroke-width: 2;
  stroke: currentColor;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.sr-only {
  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: -9999px;
  top: 0;
  z-index: 200;
  background: var(--navy-800);
  color: #fff;
  padding: .6rem 1rem;
  border-radius: 0 0 var(--radius) 0;
}
.skip-link:focus { left: 0; color: #fff; }

/* --------------------------------------------------------------------------
   Layout helpers
   -------------------------------------------------------------------------- */

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 1.25rem;
}

.section { padding: 4rem 0; }
.section-soft { background: var(--bg-soft); }
.section-tight { padding: 2.75rem 0; }
.section-navy { background: var(--navy-800); color: #dce6f2; }
.section-navy h2, .section-navy h3 { color: #fff; }

.section-head { margin-bottom: 2.25rem; max-width: 780px; }
.section-head-center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head-left { text-align: left; }

.section-title { margin-bottom: .4rem; }

.section-subtitle {
  color: var(--ink-600);
  font-size: 1.05rem;
  margin: 0;
}

.section-link {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  margin-top: .9rem;
  font-weight: 600;
  color: var(--teal-700);
}
.section-link:hover { color: var(--teal-600); gap: .55rem; }
.section-link .icon { width: 1rem; height: 1rem; transition: transform .15s ease; }

.grid { display: grid; gap: 1.5rem; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 1.5rem;
}
.card-grid-wide { grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); }
.card-grid-2 { grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); }
.card-grid-3 { grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }
.card-grid-4 { grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); }

.text-center { text-align: center; }
.mt-0 { margin-top: 0; }
.mt-1 { margin-top: .5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }
.mb-0 { margin-bottom: 0; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }

.lead {
  font-size: 1.12rem;
  color: var(--ink-600);
}

/* --------------------------------------------------------------------------
   Buttons
   -------------------------------------------------------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .45rem;
  padding: .68rem 1.25rem;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  font: inherit;
  font-weight: 600;
  font-size: .95rem;
  line-height: 1.3;
  cursor: pointer;
  text-align: center;
  transition: background-color .15s ease, color .15s ease, border-color .15s ease, box-shadow .15s ease;
  white-space: nowrap;
}
.btn .icon { width: 1.05em; height: 1.05em; }

.btn-primary { background: var(--teal-600); color: #fff; }
.btn-primary:hover { background: var(--teal-700); color: #fff; }

.btn-navy { background: var(--navy-800); color: #fff; }
.btn-navy:hover { background: var(--navy-900); color: #fff; }

.btn-outline {
  background: transparent;
  border-color: var(--line-strong);
  color: var(--navy-700);
}
.btn-outline:hover { border-color: var(--navy-600); color: var(--navy-800); background: var(--bg-soft); }

.btn-light {
  background: #fff;
  border-color: var(--line-strong);
  color: var(--navy-800);
}
.btn-light:hover { border-color: var(--teal-500); color: var(--teal-700); }

.btn-ghost-light {
  background: transparent;
  border-color: rgba(255, 255, 255, .45);
  color: #fff;
}
.btn-ghost-light:hover { background: rgba(255, 255, 255, .12); color: #fff; border-color: rgba(255, 255, 255, .7); }

.btn-danger { background: var(--danger); color: #fff; }
.btn-danger:hover { background: #912018; color: #fff; }

.btn-lg { padding: .85rem 1.6rem; font-size: 1.02rem; }
.btn-sm { padding: .42rem .85rem; font-size: .86rem; }
.btn-block { width: 100%; }

.btn[disabled], .btn.is-disabled { opacity: .55; pointer-events: none; }

/* --------------------------------------------------------------------------
   Badges, pills, tags
   -------------------------------------------------------------------------- */

.badge {
  display: inline-flex;
  align-items: center;
  gap: .3rem;
  padding: .18rem .6rem;
  border-radius: var(--radius-pill);
  font-size: .74rem;
  font-weight: 700;
  letter-spacing: .02em;
  text-transform: uppercase;
}

.badge-sample { background: var(--warning-bg); color: var(--warning); border: 1px solid var(--warning-line); }
.badge-new { background: var(--teal-100); color: var(--teal-700); border: 1px solid var(--teal-200); }
.badge-muted { background: var(--bg-soft); color: var(--ink-600); border: 1px solid var(--line); }
.badge-status-published { background: var(--success-bg); color: var(--success); border: 1px solid var(--success-line); }
.badge-status-draft { background: var(--bg-soft); color: var(--ink-600); border: 1px solid var(--line); }

.pills { display: flex; flex-wrap: wrap; gap: .5rem; list-style: none; margin: 0; padding: 0; }
.pill {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  padding: .3rem .8rem;
  font-size: .86rem;
  color: var(--ink-700);
}
.pill.is-active { background: var(--navy-800); border-color: var(--navy-800); color: #fff; }
.pill.is-active a { color: #fff; }
.pill.is-static { background: var(--teal-100); border-color: var(--teal-200); color: var(--teal-700); font-weight: 600; }
.pill.is-static .icon { width: .95rem; height: .95rem; }
.pill.is-static a { display: inline-flex; align-items: center; color: var(--teal-700); opacity: .75; }
.pill.is-static a:hover { opacity: 1; }

/* --------------------------------------------------------------------------
   Header: topbar
   -------------------------------------------------------------------------- */

.site-header { position: relative; z-index: 60; background: #fff; box-shadow: var(--shadow-xs); }

.topbar {
  background: var(--navy-900);
  color: #c6d4e6;
  font-size: .84rem;
}
.topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 38px;
  max-width: 1440px;
}
.topbar-contact, .topbar-actions { display: flex; align-items: center; gap: 1.1rem; flex-wrap: wrap; }
.topbar a {
  color: #d7e2f1;
  display: inline-flex;
  align-items: center;
  gap: .4rem;
}
.topbar a:hover { color: var(--teal-500); }
.topbar .icon { width: .95rem; height: .95rem; }
.topbar-muted { color: #8fa3bf; font-style: italic; }

/* --------------------------------------------------------------------------
   Header: navbar
   -------------------------------------------------------------------------- */

.navbar { background: #fff; border-bottom: 1px solid var(--line); padding-top: 10px;}
.navbar-inner {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  row-gap: .45rem;
  min-height: 72px;
  position: relative;
  max-width: 1440px;
  flex-wrap: wrap;
}

.brand { display: inline-flex; align-items: center; gap: .6rem; order: 1; }
.brand-mark { flex: none; }
.brand-logo { display: block; flex: none; width: auto; height: 42px; max-width: 220px; object-fit: contain; }
.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-name {
  font-weight: 800;
  font-size: 1.28rem;
  letter-spacing: .12em;
  color: var(--navy-800);
}
.brand-tagline {
  font-size: .68rem;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--teal-600);
  font-weight: 600;
}

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  padding: .45rem .6rem;
  color: var(--navy-800);
  cursor: pointer;
  margin-left: auto;
  order: 2;
}
.nav-toggle .icon { width: 1.35rem; height: 1.35rem; }
.nav-toggle-close { display: none; }

/* The nine-item nav cannot share one row with the brand and the search/quote
   actions below ~1830px of content width, so the desktop header is two rows:
   brand + actions, then the full-width link row. display:contents keeps
   .site-nav as a real box for the burger panel below 1281px. */
.site-nav { display: contents; }

.nav-list {
  display: flex;
  align-items: center;
  gap: .15rem;
  list-style: none;
  margin: 0;
  padding: .15rem 0 0;
  flex: 0 0 100%;
  order: 3;
  border-top: 1px solid var(--line);
}

.nav-item { position: relative; }

.nav-item > a {
  display: inline-flex;
  align-items: center;
  gap: .3rem;
  padding: .55rem .5rem;
  font-weight: 600;
  font-size: clamp(.84rem, .62rem + .26vw, .93rem);
  color: var(--navy-700);
  border-radius: var(--radius-sm);
  white-space: nowrap;
}
.nav-item > a:hover { color: var(--teal-700); background: var(--teal-50); }
.nav-item > a.is-active { color: var(--teal-700); }
.nav-caret { width: .85rem !important; height: .85rem !important; transition: transform .15s ease; }
.nav-item:hover .nav-caret { transform: rotate(180deg); }

/* Mega menu */
.mega-menu {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(6px);
  width: min(860px, 92vw);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  padding: 1.5rem;
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 1.75rem;
  opacity: 0;
  visibility: hidden;
  transition: opacity .16s ease, transform .16s ease, visibility .16s;
}
.has-mega:hover .mega-menu,
.has-mega:focus-within .mega-menu {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

.mega-heading {
  font-size: .74rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .12em;
  color: var(--ink-400);
  margin: 0 0 .7rem;
}

.mega-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: .1rem .9rem;
}
.mega-grid a {
  display: block;
  padding: .3rem .1rem;
  font-size: .89rem;
  color: var(--ink-700);
  border-radius: 4px;
}
.mega-grid a:hover { color: var(--teal-700); background: var(--teal-50); padding-left: .4rem; }

.mega-links { list-style: none; margin: 0; padding: 0; }
.mega-links a {
  display: flex;
  align-items: center;
  gap: .5rem;
  padding: .42rem .1rem;
  font-size: .9rem;
  font-weight: 600;
  color: var(--navy-700);
}
.mega-links a:hover { color: var(--teal-700); }
.mega-links .icon { width: 1rem; height: 1rem; color: var(--teal-600); }

/* Dropdown */
.dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 265px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  padding: .6rem;
  opacity: 0;
  visibility: hidden;
  transform: translateY(6px);
  transition: opacity .16s ease, transform .16s ease, visibility .16s;
}
.has-dropdown:hover .dropdown,
.has-dropdown:focus-within .dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown-links { list-style: none; margin: 0; padding: 0; }
.dropdown-links a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .5rem;
  padding: .48rem .7rem;
  border-radius: var(--radius-sm);
  font-size: .9rem;
  color: var(--ink-700);
}
.dropdown-links a:hover { background: var(--teal-50); color: var(--teal-700); }
.dropdown-more { border-top: 1px solid var(--line); margin-top: .4rem; padding-top: .4rem; }
.dropdown-more a { font-weight: 700; color: var(--teal-700); justify-content: flex-start; }
.dropdown-more .icon { width: .95rem; height: .95rem; }

/* Search + quote inside nav */
.nav-actions { display: flex; align-items: center; gap: .75rem; flex: 0 0 auto; margin-left: auto; order: 2; }

.search-form { position: relative; display: flex; align-items: center; }
.search-input {
  width: clamp(130px, 11vw, 215px);
  padding: .5rem 2.3rem .5rem .85rem;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-pill);
  font: inherit;
  font-size: .88rem;
  background: var(--bg-soft);
}
.search-input:focus { outline: 2px solid var(--teal-200); border-color: var(--teal-500); background: #fff; }
.search-submit {
  position: absolute;
  right: .28rem;
  background: none;
  border: 0;
  padding: .3rem;
  color: var(--ink-600);
  cursor: pointer;
  display: flex;
  border-radius: 50%;
}
.search-submit:hover { color: var(--teal-700); background: var(--teal-50); }
.search-submit .icon { width: 1.05rem; height: 1.05rem; }

.btn-quote .icon { width: 1rem; height: 1rem; }

/* Breadcrumbs */
.breadcrumb-bar { background: var(--bg-soft); border-bottom: 1px solid var(--line); }
.breadcrumbs { padding: .7rem 0; font-size: .86rem; color: var(--ink-600); }
.breadcrumbs ol {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .3rem;
}
.breadcrumbs li { display: flex; align-items: center; gap: .3rem; }
.breadcrumbs li + li::before { content: "/"; color: var(--ink-400); margin-right: .3rem; }
.breadcrumbs a { color: var(--ink-600); }
.breadcrumbs a:hover { color: var(--teal-700); }
.breadcrumbs [aria-current] { color: var(--navy-800); font-weight: 600; }

/* --------------------------------------------------------------------------
   Hero
   -------------------------------------------------------------------------- */

.hero {
  position: relative;
  background:
    linear-gradient(100deg, rgba(8, 21, 39, .96) 0%, rgba(15, 42, 74, .93) 45%, rgba(21, 60, 100, .82) 100%),
    url("../images/hero-abstract.jpg") center / cover no-repeat;
  color: #e4ecf6;
  overflow: hidden;
}

.hero-inner {
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  gap: 3rem;
  align-items: center;
  padding: 4.5rem 0 4.75rem;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  background: rgba(47, 182, 173, .14);
  border: 1px solid rgba(47, 182, 173, .4);
  color: #7fe0d8;
  border-radius: var(--radius-pill);
  padding: .3rem .9rem;
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
  margin-bottom: 1.2rem;
}

.hero-title {
  color: #fff;
  font-size: 2.9rem;
  line-height: 1.14;
  margin-bottom: 1rem;
  letter-spacing: -.015em;
}
.hero-title .accent { color: var(--teal-500); }

.hero-lead { font-size: 1.13rem; color: #b9c9dd; max-width: 34rem; margin-bottom: 1.8rem; }

.hero-actions { display: flex; flex-wrap: wrap; gap: .85rem; margin-bottom: 2.4rem; }

.hero-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 2.2rem;
  border-top: 1px solid rgba(255, 255, 255, .14);
  padding-top: 1.5rem;
  margin: 0;
}
.hero-stat { margin: 0; }
.hero-stat-value {
  display: block;
  font-size: 1.55rem;
  font-weight: 800;
  color: #fff;
  line-height: 1.2;
}
.hero-stat-label { font-size: .84rem; color: #9db1ca; }

.hero-panel {
  background: rgba(255, 255, 255, .05);
  border: 1px solid rgba(255, 255, 255, .14);
  border-radius: var(--radius-lg);
  padding: 1.6rem;
  backdrop-filter: blur(4px);
}
.hero-panel-title {
  color: #fff;
  font-size: .8rem;
  text-transform: uppercase;
  letter-spacing: .12em;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: .5rem;
}
.hero-panel-list { list-style: none; margin: 0 0 1.1rem; padding: 0; }
.hero-panel-list li {
  display: flex;
  align-items: center;
  gap: .65rem;
  padding: .5rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, .09);
  font-size: .93rem;
  color: #cfdcec;
}
.hero-panel-list li:last-child { border-bottom: 0; }
.hero-panel-list .icon { color: var(--teal-500); width: 1.1rem; height: 1.1rem; }

/* --------------------------------------------------------------------------
   Page hero (inner pages)
   -------------------------------------------------------------------------- */

.page-hero {
  background: linear-gradient(100deg, rgba(8, 21, 39, .97), rgba(15, 42, 74, .94));
  color: #cfdcec;
  padding: 3rem 0;
}
.page-hero h1 { color: #fff; margin-bottom: .5rem; }
.page-hero p { color: #a9bcd4; max-width: 46rem; margin: 0; font-size: 1.05rem; }
.page-hero .pills { margin-top: 1.2rem; }
.page-hero .pill { background: rgba(255,255,255,.07); border-color: rgba(255,255,255,.18); color: #cfdcec; }
.page-hero .pill.is-active { background: var(--teal-600); border-color: var(--teal-600); color: #fff; }
.page-hero .pill a:hover { color: var(--teal-500); }
.page-hero .pill.is-active a { color: #fff; }

/* --------------------------------------------------------------------------
   Cards
   -------------------------------------------------------------------------- */

.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: box-shadow .18s ease, transform .18s ease, border-color .18s ease;
}
.card:hover { box-shadow: var(--shadow); transform: translateY(-2px); border-color: var(--line-strong); }

.card-media {
  position: relative;
  display: block;
  aspect-ratio: 4 / 3;
  background: var(--bg-soft);
  overflow: hidden;
}
.card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s ease; }
.card:hover .card-media img { transform: scale(1.03); }

.card-media .badge { position: absolute; top: .7rem; left: .7rem; box-shadow: var(--shadow-xs); }

.card-body { padding: 1.2rem 1.25rem 1.3rem; display: flex; flex-direction: column; flex: 1; }

.card-kicker {
  font-size: .76rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--teal-700);
  margin-bottom: .45rem;
}
.card-kicker a { color: inherit; }
.card-kicker a:hover { text-decoration: underline; }
.card-date { color: var(--ink-400); font-weight: 500; }

.card-title { font-size: 1.08rem; margin-bottom: .5rem; }
.card-title a { color: var(--navy-800); }
.card-title a:hover { color: var(--teal-700); }

.card-text { color: var(--ink-600); font-size: .92rem; margin-bottom: .9rem; }

.card-code {
  margin-top: auto;
  font-size: .8rem;
  color: var(--ink-400);
  font-family: "Consolas", "Menlo", monospace;
  letter-spacing: .01em;
}

.card-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .55rem;
  margin-top: .9rem;
}

/* Catalogue card variant */
.catalogue-card .catalogue-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 84px;
  background: linear-gradient(135deg, var(--navy-800), var(--navy-600));
  color: var(--teal-500);
}
.catalogue-card .card-body { padding-top: 1.1rem; }

/* Specialty tile */
.specialty-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: box-shadow .18s ease, transform .18s ease, border-color .18s ease;
}
.specialty-card:hover { box-shadow: var(--shadow); transform: translateY(-2px); border-color: var(--teal-200); }

.specialty-card-link {
  display: block;
  padding: 1.35rem 1.3rem 1.25rem;
  color: inherit;
}

.specialty-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border-radius: var(--radius);
  background: var(--teal-50);
  border: 1px solid var(--teal-100);
  color: var(--teal-700);
  margin-bottom: .9rem;
}

.specialty-name { font-size: 1.02rem; margin-bottom: .35rem; color: var(--navy-800); }
.specialty-text { font-size: .87rem; color: var(--ink-600); margin-bottom: .6rem; }
.specialty-count { font-size: .8rem; font-weight: 600; color: var(--ink-400); }
.specialty-card:hover .specialty-name { color: var(--teal-700); }

/* Category directory groups */
.category-group { margin-bottom: 3.25rem; }
.category-group:last-of-type { margin-bottom: 0; }
.category-group-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1.25rem;
  padding-bottom: 1.1rem;
  margin-bottom: 1.6rem;
  border-bottom: 1px solid var(--line);
}
.category-group-head h2 { font-size: 1.35rem; margin: 0; color: var(--navy-800); }
.category-group-head p { margin: .4rem 0 0; font-size: .92rem; color: var(--ink-600); max-width: 68ch; }
.category-group-head .category-group-meta { font-size: .82rem; color: var(--ink-400); font-weight: 600; }
.category-group-head .btn { flex: none; }

@media (max-width: 640px) {
  .category-group-head { flex-direction: column; align-items: flex-start; }
}

/* --------------------------------------------------------------------------
   Detail pages: product / set / procedure / article
   -------------------------------------------------------------------------- */

.detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 2.5rem;
  align-items: start;
}

.detail-gallery {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--bg-soft);
  margin-bottom: 1.75rem;
}
.detail-gallery img { width: 100%; aspect-ratio: 4/3; object-fit: cover; }
.detail-gallery-thumbs {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(84px, 1fr));
  gap: .5rem;
  margin-top: .6rem;
}
.detail-gallery-thumbs img {
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  cursor: pointer;
  aspect-ratio: 4/3;
  object-fit: cover;
}
.detail-gallery-thumbs img.is-active { border-color: var(--teal-600); box-shadow: 0 0 0 2px var(--teal-100); }
.gallery-thumb {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
  border-radius: var(--radius-sm);
}
.detail-gallery[data-gallery] { position: relative; }
.detail-gallery:focus { outline: none; }
.gallery-arrow {
  position: absolute; z-index: 3; top: 50%;
  display: flex; align-items: center; justify-content: center;
  width: 42px; height: 42px; padding: 0; border: 0; border-radius: 50%;
  background: rgba(15, 42, 74, .78); color: #fff; cursor: pointer;
  box-shadow: 0 2px 8px rgba(0, 0, 0, .25);
  transition: background .15s ease, transform .15s ease;
}
.gallery-arrow:hover { background: #2fb6ad; transform: scale(1.06); }
.gallery-arrow:focus-visible { outline: 3px solid #2fb6ad; outline-offset: 2px; }
.gallery-arrow svg { width: 20px; height: 20px; }
.gallery-prev { left: 12px; }
.gallery-next { right: 12px; }
.gallery-counter {
  position: absolute; z-index: 3; right: 12px; top: 12px;
  padding: .2rem .65rem; border-radius: 999px;
  background: rgba(15, 42, 74, .78); color: #fff; font-size: .78rem; font-weight: 600; line-height: 1.4;
}
.gallery-arrow[hidden], .gallery-counter[hidden] { display: none !important; }
@media (max-width: 560px) {
  .gallery-arrow { width: 36px; height: 36px; }
  .gallery-prev { left: 8px; }
  .gallery-next { right: 8px; }
}

.detail-header { margin-bottom: 1.4rem; }
.detail-header h1 { margin-bottom: .35rem; }
.detail-meta { display: flex; flex-wrap: wrap; align-items: center; gap: .6rem 1rem; color: var(--ink-600); font-size: .9rem; }
.meta-item { display: inline-flex; align-items: center; gap: .35rem; }
.meta-item .icon { width: 1rem; height: 1rem; color: var(--teal-600); flex: none; }

.detail-summary .lead { color: var(--ink-700); }
.detail-actions { display: flex; flex-wrap: wrap; gap: .6rem; }
.sidebar-note { font-size: .88rem; color: var(--ink-600); margin-bottom: .75rem; }

.notfound-actions { display: flex; flex-wrap: wrap; gap: .7rem; justify-content: center; margin-bottom: 2.5rem; }
.notfound-links { max-width: 420px; margin: 0 auto; }
.notfound-links h2 { font-size: 1.15rem; margin-bottom: .75rem; text-align: center; }

.spec-table { width: 100%; border-collapse: collapse; font-size: .92rem; }
.spec-table th, .spec-table td { padding: .6rem .75rem; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.spec-table th { color: var(--ink-600); font-weight: 600; width: 38%; background: var(--bg-soft); }
.spec-table tr:last-child th, .spec-table tr:last-child td { border-bottom: 0; }
.spec-wrap { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }

.sidebar-box {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.4rem;
  margin-bottom: 1.5rem;
}
.sidebar-box h3 {
  font-size: .82rem;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--ink-400);
  margin-bottom: .9rem;
  display: flex;
  align-items: center;
  gap: .45rem;
}
.sidebar-box .icon { width: 1rem; height: 1rem; }

.sidebar-list { list-style: none; margin: 0; padding: 0; }
.sidebar-list li { padding: .5rem 0; border-bottom: 1px solid var(--line); font-size: .92rem; }
.sidebar-list li:last-child { border-bottom: 0; }
.sidebar-list a { display: flex; align-items: center; gap: .5rem; color: var(--ink-700); }
.sidebar-list a:hover { color: var(--teal-700); }
.sidebar-list .icon { width: .95rem; height: .95rem; color: var(--teal-600); flex: none; }
.sidebar-list a.is-active { color: var(--teal-700); font-weight: 700; }
.sidebar-list li.sidebar-more { border-bottom: 0; padding-top: .8rem; }
.sidebar-list li.sidebar-more a { font-weight: 700; color: var(--teal-700); }
.sidebar-list li.sidebar-more .icon { margin-left: auto; }
.sidebar-count { margin-left: auto; color: var(--ink-400); font-size: .8rem; font-weight: 600; }
.sidebar-list-plain li { display: flex; justify-content: space-between; gap: .75rem; color: var(--ink-600); }
.sidebar-list-plain strong { color: var(--navy-800); }

.h2-compact { font-size: 1.5rem; }

.sidebar-actions { display: grid; gap: .6rem; }

.quote-cta-box {
  background: linear-gradient(140deg, var(--navy-800), var(--navy-600));
  border-radius: var(--radius);
  padding: 1.5rem;
  color: #cfdcec;
  margin-bottom: 1.5rem;
}
.quote-cta-box h3 { color: #fff; font-size: 1.08rem; margin-bottom: .4rem; }
.quote-cta-box p { font-size: .88rem; color: #a9bcd4; margin-bottom: 1rem; }

/* Content typography (procedure/blog body) */
.prose { font-size: 1.02rem; color: var(--ink-700); }
.prose h1 { font-size: clamp(1.6rem, 3vw, 2rem); line-height: 1.25; color: var(--navy-800); margin: 0 0 .9rem; }
.prose h2 { font-size: 1.45rem; margin-top: 2rem; }
.prose h3 { font-size: 1.16rem; margin-top: 1.6rem; }
.prose ul, .prose ol { margin-bottom: 1.2rem; }
.prose li { margin-bottom: .35rem; }
.prose img { border-radius: var(--radius); margin: 1.2rem 0; }
.prose blockquote {
  border-left: 3px solid var(--teal-500);
  background: var(--teal-50);
  margin: 1.4rem 0;
  padding: .9rem 1.2rem;
  border-radius: 0 var(--radius) var(--radius) 0;
  color: var(--ink-700);
}
.prose table { width: 100%; border-collapse: collapse; margin: 1.2rem 0; font-size: .94rem; }
.prose th, .prose td { border: 1px solid var(--line); padding: .55rem .75rem; text-align: left; }
.prose th { background: var(--bg-soft); color: var(--navy-800); }

.article-meta { color: var(--ink-600); font-size: .9rem; display: flex; flex-wrap: wrap; gap: .4rem 1rem; margin-bottom: 1.2rem; }

/* Procedure steps */
.step-list { counter-reset: step; list-style: none; margin: 1.5rem 0; padding: 0; }
.step-list li {
  counter-increment: step;
  position: relative;
  padding: 0 0 1.4rem 3.1rem;
  border-left: 2px solid var(--line);
  margin-left: 1.1rem;
}
.step-list li:last-child { border-left-color: transparent; padding-bottom: 0; }
.step-list li::before {
  content: counter(step);
  position: absolute;
  left: -1.1rem;
  top: 0;
  width: 2.2rem;
  height: 2.2rem;
  border-radius: 50%;
  background: var(--teal-600);
  color: #fff;
  font-weight: 700;
  font-size: .9rem;
  display: flex;
  align-items: center;
  justify-content: center;
}
.step-list strong { color: var(--navy-800); }

/* Tables */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); }
.data-table { width: 100%; border-collapse: collapse; font-size: .92rem; min-width: 540px; }
.data-table th, .data-table td { padding: .7rem .9rem; text-align: left; border-bottom: 1px solid var(--line); vertical-align: top; }
.data-table th { background: var(--bg-soft); color: var(--navy-800); font-weight: 700; white-space: nowrap; }
.data-table tr:last-child td { border-bottom: 0; }
.data-table tbody tr:hover { background: var(--teal-50); }

/* --------------------------------------------------------------------------
   Feature / info blocks
   -------------------------------------------------------------------------- */

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

.feature {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.5rem;
}
.feature-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  border-radius: var(--radius);
  background: var(--navy-800);
  color: var(--teal-500);
  margin-bottom: 1rem;
}
.feature h3 { font-size: 1.03rem; margin-bottom: .4rem; }
.feature p { font-size: .9rem; color: var(--ink-600); margin: 0; }

.checklist { list-style: none; margin: 0 0 1.2rem; padding: 0; }
.checklist li {
  display: flex;
  gap: .6rem;
  align-items: flex-start;
  padding: .38rem 0;
  color: var(--ink-700);
}
.checklist .icon { color: var(--teal-600); width: 1.1rem; height: 1.1rem; margin-top: .2rem; }

.stat-band {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 1.25rem;
}
.stat-block {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.35rem 1.25rem;
  text-align: center;
}
.stat-block .stat-value { display: block; font-size: 1.7rem; font-weight: 800; color: var(--navy-800); line-height: 1.2; }
.stat-block .stat-label { font-size: .86rem; color: var(--ink-600); }

.cta-band {
  background: linear-gradient(120deg, var(--navy-900), var(--navy-700));
  border-radius: var(--radius-lg);
  padding: 2.6rem 2.4rem;
  color: #cfdcec;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}
.cta-band h2 { color: #fff; margin-bottom: .4rem; }
.cta-band p { margin: 0; color: #a9bcd4; max-width: 40rem; }
.cta-band-actions { display: flex; gap: .75rem; flex-wrap: wrap; flex: none; }

/* Split feature (image + text) */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: center; }
.split-media img { border-radius: var(--radius-lg); box-shadow: var(--shadow); }
.split-reverse .split-media { order: 2; }

/* --------------------------------------------------------------------------
   Empty state, notices, flash
   -------------------------------------------------------------------------- */

.empty-state {
  text-align: center;
  border: 1px dashed var(--line-strong);
  border-radius: var(--radius);
  padding: 3rem 1.5rem;
  color: var(--ink-600);
  background: var(--bg-soft);
}
.empty-state .empty-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: #fff;
  border: 1px solid var(--line);
  color: var(--ink-400);
  margin-bottom: 1rem;
}
.empty-state p { margin: 0; max-width: 34rem; margin-left: auto; margin-right: auto; }
.empty-hint { margin-top: .7rem !important; font-size: .88rem; color: var(--ink-400); }

.sample-notice {
  display: flex;
  gap: .6rem;
  align-items: flex-start;
  background: var(--warning-bg);
  border: 1px solid var(--warning-line);
  border-radius: var(--radius);
  padding: .8rem 1rem;
  color: var(--warning);
  font-size: .9rem;
  margin-bottom: 1.5rem;
}
.sample-notice .icon { margin-top: .15rem; }

.flash {
  display: flex;
  gap: .6rem;
  align-items: flex-start;
  border-radius: var(--radius);
  padding: .9rem 1.1rem;
  margin: 1.25rem auto 0;
  font-size: .94rem;
  max-width: var(--container);
}
.flash .icon { margin-top: .15rem; }
.flash-success { background: var(--success-bg); border: 1px solid var(--success-line); color: var(--success); }
.flash-error { background: var(--danger-bg); border: 1px solid var(--danger-line); color: var(--danger); }
.flash-info { background: var(--info-bg); border: 1px solid var(--info-line); color: var(--info); }
.flash-warning { background: var(--warning-bg); border: 1px solid var(--warning-line); color: var(--warning); }
.flash-inner { padding: 0 1.25rem; }

/* --------------------------------------------------------------------------
   Forms
   -------------------------------------------------------------------------- */

.form-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 2rem;
  box-shadow: var(--shadow-sm);
}

.form-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.1rem 1.25rem; }
.form-grid .span-2 { grid-column: span 2; }

.field { display: flex; flex-direction: column; gap: .35rem; }
.field label { font-weight: 600; font-size: .9rem; color: var(--navy-800); }
.field .req { color: var(--danger); }

.field input[type="text"],
.field input[type="email"],
.field input[type="tel"],
.field input[type="url"],
.field input[type="number"],
.field input[type="password"],
.field input[type="search"],
.field select,
.field textarea {
  width: 100%;
  padding: .62rem .8rem;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  font: inherit;
  font-size: .95rem;
  color: var(--ink-900);
  background: #fff;
}
.field textarea { resize: vertical; min-height: 120px; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: 2px solid var(--teal-200);
  border-color: var(--teal-500);
}
.field-error { color: var(--danger); font-size: .84rem; }
.field-hint { color: var(--ink-400); font-size: .82rem; }
.field.has-error input, .field.has-error select, .field.has-error textarea { border-color: var(--danger); }

.checkbox-field { flex-direction: row; align-items: center; display: flex; gap: .5rem; font-size: .92rem; color: var(--ink-700); }
.checkbox-field input { width: auto; }

.form-actions { display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; margin-top: .5rem; }

.form-narrow { max-width: 460px; margin: 0 auto; }

.upload-box {
  border: 1px dashed var(--line-strong);
  border-radius: var(--radius-sm);
  padding: .9rem;
  background: var(--bg-soft);
  font-size: .88rem;
  color: var(--ink-600);
}
.upload-box input[type="file"] { margin-top: .4rem; }

/* Filter bar */
.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: .9rem;
  align-items: end;
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1rem 1.2rem;
  margin-bottom: 1.75rem;
}
.filter-bar .field { min-width: 190px; flex: 1; }
.filter-bar .field label { font-size: .8rem; text-transform: uppercase; letter-spacing: .06em; color: var(--ink-400); }
.filter-bar .btn { flex: none; }
.filter-reset { font-size: .88rem; color: var(--ink-600); align-self: center; }

.result-count { color: var(--ink-600); font-size: .92rem; margin-bottom: 1.2rem; }

/* --------------------------------------------------------------------------
   Pagination
   -------------------------------------------------------------------------- */

.pagination { display: flex; flex-wrap: wrap; justify-content: center; gap: .3rem; margin-top: 2.5rem; }
.pagination .page-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .35rem;
  min-width: 2.3rem;
  height: 2.3rem;
  padding: 0 .65rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  font-size: .9rem;
  color: var(--ink-700);
  background: #fff;
}
.pagination a.page-link:hover { border-color: var(--teal-500); color: var(--teal-700); text-decoration: none; }
.pagination .page-link.is-current {
  background: var(--navy-800);
  border-color: var(--navy-800);
  color: #fff;
  font-weight: 700;
}
.pagination .page-ellipsis {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 1.4rem;
  color: var(--ink-400);
}

/* --------------------------------------------------------------------------
   Blog
   -------------------------------------------------------------------------- */

.blog-layout { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 2.5rem; align-items: start; }

.blog-sidebar .sidebar-box h3 { color: var(--ink-400); }
.blog-sidebar .sidebar-list a.is-current { color: var(--teal-700); font-weight: 700; }

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */

.site-footer {
  background: var(--navy-900);
  color: #b9c9dd;
  margin-top: 4rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1.1fr 1fr 1.2fr;
  gap: 2.5rem;
  padding: 3.5rem 0 2.5rem;
}

.brand-footer .brand-name { color: #fff; }
.brand-footer .brand-logo { height: 48px; max-width: 240px; }
.footer-desc { font-size: .9rem; color: #94a9c4; margin: 1rem 0 .9rem; }
.footer-note { font-size: .84rem; color: #7e93b0; display: flex; gap: .45rem; align-items: flex-start; }
.footer-note .icon { width: 1rem; height: 1rem; margin-top: .15rem; color: var(--teal-500); flex: none; }

.footer-heading {
  color: #fff;
  font-size: .82rem;
  text-transform: uppercase;
  letter-spacing: .12em;
  margin-bottom: 1.1rem;
}

.footer-links { list-style: none; margin: 0; padding: 0; }
.footer-links li { margin-bottom: .5rem; }
.footer-links a { color: #a8bbd4; font-size: .92rem; }
.footer-links a:hover { color: var(--teal-500); }
.footer-links li.footer-links-label {
  margin: 1rem 0 .55rem;
  padding-top: .85rem;
  border-top: 1px solid rgba(255, 255, 255, .1);
  color: #7e93b0;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.footer-contact { list-style: none; margin: 0; padding: 0; }
.footer-contact li {
  display: flex;
  gap: .55rem;
  align-items: flex-start;
  margin-bottom: .7rem;
  font-size: .9rem;
  color: #a8bbd4;
}
.footer-contact .icon { width: 1.05rem; height: 1.05rem; margin-top: .18rem; color: var(--teal-500); flex: none; }
.footer-contact a { color: #a8bbd4; }
.footer-contact a:hover { color: var(--teal-500); }

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, .1);
  padding: 1.25rem 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  font-size: .86rem;
  color: #7e93b0;
}
.footer-bottom p { margin: 0; }
.footer-bottom-links { display: flex; list-style: none; gap: 1.25rem; margin: 0; padding: 0; }
.footer-bottom-links a { color: #7e93b0; }
.footer-bottom-links a:hover { color: var(--teal-500); }

.footer-admin-note {
  display: flex;
  gap: .5rem;
  align-items: flex-start;
  background: rgba(181, 71, 8, .16);
  border: 1px solid rgba(253, 223, 137, .3);
  color: #f4cf8a;
  border-radius: var(--radius-sm);
  padding: .7rem .9rem;
  font-size: .84rem;
  margin: 0 0 1.5rem;
}
.footer-admin-note .icon { margin-top: .15rem; flex: none; }

/* Floating WhatsApp */
.whatsapp-float {
  position: fixed;
  right: 1.4rem;
  bottom: 1.4rem;
  z-index: 90;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: #25d366;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-lg);
  transition: transform .15s ease;
}
.whatsapp-float:hover { transform: scale(1.06); color: #fff; }
.whatsapp-float .icon { width: 1.6rem; height: 1.6rem; }

/* --------------------------------------------------------------------------
   Search page
   -------------------------------------------------------------------------- */

.search-hero-form { max-width: 620px; margin: 1.6rem 0 0; }
.search-hero-form .search-form { width: 100%; }
.search-hero-form .search-input {
  width: 100%;
  padding: .85rem 3rem .85rem 1.1rem;
  font-size: 1rem;
  border-radius: var(--radius);
  background: #fff;
}
.search-hero-form .search-submit { right: .55rem; }

.search-section { margin-bottom: 2.5rem; }
.search-section h2 { font-size: 1.2rem; display: flex; align-items: center; gap: .5rem; }
.search-section h2 .count {
  font-size: .78rem;
  background: var(--teal-100);
  color: var(--teal-700);
  border-radius: var(--radius-pill);
  padding: .1rem .6rem;
  font-weight: 700;
}

.search-result {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1rem 1.2rem;
  margin-bottom: .8rem;
  background: #fff;
  transition: border-color .15s ease;
}
.search-result:hover { border-color: var(--teal-200); }
.search-result .result-type {
  font-size: .72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--teal-700);
}
.search-result h3 { font-size: 1.02rem; margin: .25rem 0 .3rem; }
.search-result p { font-size: .9rem; color: var(--ink-600); margin: 0; }
mark { background: var(--teal-100); color: inherit; padding: 0 .15em; border-radius: 2px; }

/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */

@media (max-width: 1100px) {
  .hero-title { font-size: 2.45rem; }
  .footer-grid { grid-template-columns: 1.4fr 1fr 1fr; }
  .footer-grid .footer-col:last-child { grid-column: span 3; }
}

@media (max-width: 1280px) {
  .navbar-inner { flex-wrap: nowrap; }
  .nav-toggle { display: inline-flex; }

  .site-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #fff;
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow-lg);
    flex-direction: column;
    align-items: stretch;
    flex-wrap: nowrap;
    padding: 1rem 1.25rem 1.4rem;
    gap: 1rem;
    max-height: calc(100vh - 110px);
    overflow-y: auto;
  }
  .site-nav.is-open { display: flex; }

  body.nav-open { overflow: hidden; }

  .nav-list { flex: 0 0 auto; flex-direction: column; align-items: stretch; gap: 0; order: 0; border-top: 0; padding-top: 0; }
  .nav-item { border-bottom: 1px solid var(--line); }
  .nav-item > a { padding: .8rem .2rem; width: 100%; justify-content: space-between; font-size: .98rem; }
  .nav-caret { transition: transform .2s ease; }

  .mega-menu, .dropdown {
    position: static;
    top: auto;
    left: auto;
    right: auto;
    transform: none;
    opacity: 1;
    visibility: visible;
    display: none;
    width: auto;
    max-width: none;
    max-height: none;
    overflow: visible;
    box-shadow: none;
    border: 0;
    border-radius: 0;
    padding: .4rem .2rem 1rem;
  }
  .has-mega.is-expanded .mega-menu,
  .has-dropdown.is-expanded .dropdown { display: grid; }
  .has-mega.is-expanded .nav-caret,
  .has-dropdown.is-expanded .nav-caret { transform: rotate(180deg); }
  .dropdown { display: none; }
  .has-dropdown.is-expanded .dropdown { display: block; }
  .mega-menu { grid-template-columns: 1fr; gap: 1.25rem; }
  .mega-grid { grid-template-columns: repeat(2, 1fr); }

  .nav-actions { flex-direction: column; align-items: stretch; margin-left: 0; order: 0; }
  .search-input { width: 100%; }
  .btn-quote { justify-content: center; }

  .hero-inner { grid-template-columns: 1fr; padding: 3.25rem 0; gap: 2.25rem; }
  .hero-panel { max-width: 560px; }

  .detail-layout { grid-template-columns: 1fr; }
  .blog-layout { grid-template-columns: 1fr; }

  .split { grid-template-columns: 1fr; gap: 1.75rem; }
  .split-reverse .split-media { order: 0; }

  .cta-band { flex-direction: column; align-items: flex-start; padding: 2rem 1.6rem; }

  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid .footer-col:last-child { grid-column: span 2; }
}

@media (max-width: 768px) {
  h1 { font-size: 1.9rem; }
  .hero-title { font-size: 2rem; }
  .section { padding: 3rem 0; }
  .form-grid { grid-template-columns: 1fr; }
  .form-grid .span-2 { grid-column: auto; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr 1fr; }
  .stat-band { grid-template-columns: repeat(2, 1fr); }
  .card-grid { grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); }
  .topbar-contact { gap: .75rem; }
  .topbar .topbar-muted { display: none; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 560px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .card-grid { grid-template-columns: 1fr; }
  .hero-actions .btn { width: 100%; }
  .hero-stats { gap: 1.4rem; }
  .mega-grid { grid-template-columns: 1fr; }
  .filter-bar { flex-direction: column; align-items: stretch; }
  .form-card { padding: 1.4rem; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-grid .footer-col:last-child { grid-column: auto; }
}

/* Print */
@media print {
  .site-header, .site-footer, .whatsapp-float, .breadcrumb-bar, .hero-actions { display: none !important; }
  body { font-size: 12pt; }
}
