/* ============================================================
   BIWI BYGG — Premium Design System (Taste-Skill v1.6.1)
   DESIGN_VARIANCE: 8 (Asymmetric)
   MOTION_INTENSITY: 6 (Fluid CSS)
   VISUAL_DENSITY: 4 (Airy)
   ============================================================ */

/* ---------- IMPORT FONTS (Anti-Inter Rule) ---------- */
@import url('https://fonts.googleapis.com/css2?family=Oswald:wght@400;500;600;700&family=Satoshi:wght@400;500;700&display=swap');

/* ---------- RESET ---------- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}
body {
  font-family: 'Satoshi', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 16px;
  line-height: 1.7;
  color: #1a1a1a;
  background: #faf9f7;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; transition: color 0.3s cubic-bezier(0.16, 1, 0.3, 1); }
ul { list-style: none; }

/* ---------- TYPOGRAPHY (Deterministic Typography Rule) ---------- */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Oswald', sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  line-height: 1.1;
  color: #0f0f0f;
}
h1 {
  font-size: clamp(2.8rem, 6vw, 5.5rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  text-align: left;
}
h2 {
  font-size: clamp(2rem, 4vw, 3.5rem);
  font-weight: 600;
  margin-bottom: 1.5rem;
  text-align: left;
}
h3 {
  font-size: clamp(1.4rem, 2.5vw, 2rem);
  font-weight: 500;
  margin-bottom: 1rem;
}
h4 {
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}
p {
  margin-bottom: 1rem;
  max-width: 65ch;
  color: #4a4a4a;
  line-height: 1.7;
}
p:last-child { margin-bottom: 0; }

.accent { color: #c62828; }

/* ---------- CONTAINER ---------- */
.container {
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 clamp(1.5rem, 4vw, 3rem);
}

/* ---------- SECTIONS ---------- */
.section {
  padding: clamp(5rem, 12vw, 10rem) 0;
}
.section-light { background: #ffffff; }
.section-dark {
  background: #0f0f0f;
  color: #f5f5f5;
}
.section-dark h2,
.section-dark h3,
.section-dark h4 { color: #f5f5f5; }
.section-dark p { color: rgba(255, 255, 255, 0.75); }

/* ---------- SECTION HEADING (Left-Aligned for DESIGN_VARIANCE=8) ---------- */
.section-heading {
  max-width: 800px;
  margin: 0 0 4rem;
  text-align: left;
  padding-left: 2rem;
  border-left: 3px solid #c62828;
}
.section-label {
  display: inline-block;
  font-family: 'Satoshi', sans-serif;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: #c62828;
  margin-bottom: 1rem;
}
.section-heading h2 { margin-bottom: 1rem; }
.section-heading p { font-size: 1.05rem; color: #666; }

/* ---------- TOP BAR ---------- */
.topbar {
  background: #0f0f0f;
  color: #a0a0a0;
  font-size: 0.8rem;
  padding: 0.6rem 0;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.topbar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.topbar-left, .topbar-right { display: flex; gap: 1.5rem; align-items: center; }
.topbar-item { white-space: nowrap; letter-spacing: 0.03em; }
.topbar-phone { color: #f5f5f5; }
.topbar-license {
  display: inline-flex;
  align-items: center;
  color: #f5f5f5;
}
.topbar-license img {
  display: block;
  width: 34px;
  height: 34px;
}

/* ---------- HEADER / NAV ---------- */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(250, 249, 247, 0.96);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  border-bottom: 1px solid rgba(0,0,0,0.06);
  padding: 0;
  transition: box-shadow 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}
.header.scrolled { box-shadow: 0 1px 20px rgba(0,0,0,0.06); }
.header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 72px;
}
.logo {
  font-family: 'Oswald', sans-serif;
  font-size: 1.4rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #0f0f0f;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  text-decoration: none;
}
.logo img.logo-mark {
  display: block;
  height: 44px;
  width: auto;
  max-width: 180px;
}
.header .logo img.logo-mark { height: 40px; }
.footer .logo img.logo-mark {
  height: 44px;
  filter: brightness(0) invert(1);
}
.logo .logo-text { display: none; }
.logo .dot {
  display: none;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2.25rem;
}
.nav-links > a,
.nav-links .nav-link {
  font-size: 0.85rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #0f0f0f;
  padding: 0.3rem 0;
  position: relative;
  transition: color 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}
.nav-links > a::after,
.nav-links .nav-link::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 2px;
  background: #c62828;
  transition: width 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}
.nav-links .nav-link:hover { color: #c62828; }
.nav-links .nav-link:hover::after,
.nav-links .nav-link.active::after { width: 100%; }
.nav-links .nav-link.active { color: #c62828; }

/* ---------- MEGA MENU ---------- */
.nav-item-mega {
  position: static;
  display: inline-flex;
  align-items: center;
}
.mega-caret {
  font-size: 0.7em;
  color: inherit;
  opacity: 0.55;
  transition: transform 0.25s ease;
  display: inline-block;
}
.mega-toggle {
  background: none;
  border: 0;
  padding: 0.3rem 0.4rem;
  cursor: pointer;
  color: #0f0f0f;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  /* Eliminate iOS Safari tap delay and prevent double-tap zoom from
     intercepting the caret tap on small screens. */
  touch-action: manipulation;
  -webkit-tap-highlight-color: rgba(198, 40, 40, 0.18);
}
/* On mobile the parent link itself becomes a submenu toggle. The link still
   renders as a link but Safari must treat the tap as an immediate click,
   not a synthesised hover-then-click. */
.nav-link.has-mega,
.menu-toggle,
.nav-close {
  touch-action: manipulation;
  -webkit-tap-highlight-color: rgba(198, 40, 40, 0.18);
}
/* `.open` state is the JS-driven source of truth on all devices.
   Hover is gated to real-pointer devices below to avoid iOS Safari's
   first-tap-simulates-hover behaviour (the "second tap to open" bug). */
.nav-item-mega.open .mega-caret {
  transform: rotate(180deg);
  opacity: 1;
}
@media (hover: hover) and (pointer: fine) {
  .nav-item-mega:hover .mega-caret {
    transform: rotate(180deg);
    opacity: 1;
  }
}
.nav-close {
  display: none;
  background: none;
  border: 0;
  font-size: 2.2rem;
  line-height: 1;
  color: #0f0f0f;
  cursor: pointer;
  padding: 0.25rem 0.5rem;
  align-self: flex-end;
  margin: -0.25rem -0.25rem 0.75rem auto;
}

.mega-menu {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: #ffffff;
  border-top: 1px solid rgba(0, 0, 0, 0.06);
  border-bottom: 3px solid #c62828;
  box-shadow: 0 28px 60px -28px rgba(15, 15, 15, 0.32);
  padding: 2.4rem 0 2.6rem;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  /* Hide is delayed so brief mouse exits don't collapse it */
  transition:
    opacity 0.22s ease 0.18s,
    transform 0.28s cubic-bezier(0.16, 1, 0.3, 1) 0.18s,
    visibility 0s linear 0.45s;
  z-index: 60;
  pointer-events: none;
}
/* Invisible hover-bridge attached to the menu — kicks in once menu is open
   (pseudo only receives events when host has pointer-events: auto) */
.mega-menu::before {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  top: -28px;
  height: 28px;
  background: transparent;
  pointer-events: auto;
}
/* `.open` is the JS-driven open state, applied on every device. Hover and
   focus-within are scoped to real-pointer devices below so that iOS Safari
   doesn't synthesise a hover on the first tap (which would otherwise
   require a second tap to actually open the menu). */
.nav-item-mega.open .mega-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  pointer-events: auto;
  transition:
    opacity 0.22s ease 0s,
    transform 0.28s cubic-bezier(0.16, 1, 0.3, 1) 0s,
    visibility 0s linear 0s;
}
@media (hover: hover) and (pointer: fine) {
  .nav-item-mega:hover .mega-menu,
  .nav-item-mega:focus-within .mega-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    pointer-events: auto;
    transition:
      opacity 0.22s ease 0s,
      transform 0.28s cubic-bezier(0.16, 1, 0.3, 1) 0s,
      visibility 0s linear 0s;
  }
}
/* Primary safeguard: trigger hit-pad extends FULL way down to the menu.
   Header is 73px tall, trigger sits centered (~33px tall, ~20px from top),
   so 24px below the trigger reaches the header bottom where the menu opens.
   We use a generous 32px pad with sideways extension to cover diagonal mouse paths. */
.nav-item-mega .has-mega {
  position: relative;
}
.nav-item-mega .has-mega::before {
  content: '';
  position: absolute;
  left: -16px;
  right: -16px;
  bottom: -32px;
  height: 32px;
  pointer-events: auto;
  z-index: 1;
}
/* Whole nav-item gets an invisible bottom sustainer via the trigger anchor's
   ::after — keeps menu open when cursor briefly leaves the anchor on its
   way to the menu. We attach to .has-mega (already position: relative)
   because .nav-item-mega itself MUST stay position: static so the absolute
   .mega-menu can span full viewport width relative to the header. */
.nav-item-mega .has-mega::after {
  content: '';
  position: absolute;
  left: -24px;
  right: -24px;
  bottom: -32px;
  height: 32px;
  pointer-events: auto;
  z-index: 1;
}
.mega-grid {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 clamp(1rem, 4vw, 3rem);
  display: grid;
  grid-template-columns: repeat(3, 1fr) 1.1fr;
  gap: 2.25rem;
}
.mega-grid-single {
  grid-template-columns: 1.4fr 1fr;
  max-width: 920px;
}
.mega-col { min-width: 0; }
.mega-heading {
  font-family: 'Oswald', sans-serif;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #c62828;
  margin: 0 0 1.1rem;
}
.mega-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 0.55rem;
}
.mega-list li { margin: 0; }
.mega-link {
  display: block;
  padding: 0.55rem 0.7rem 0.55rem 0;
  border-left: 2px solid transparent;
  padding-left: 0.7rem;
  text-decoration: none;
  color: inherit;
  transition: border-color 0.2s ease, transform 0.2s ease, background 0.2s ease;
}
.mega-link:hover {
  border-left-color: #c62828;
  background: rgba(198, 40, 40, 0.04);
  transform: translateX(2px);
}
.mega-link::after { display: none; }
.mega-link-title {
  display: block;
  font-family: 'Oswald', sans-serif;
  font-size: 0.95rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: #0f0f0f;
  text-transform: none;
}
.mega-link:hover .mega-link-title { color: #c62828; }
.mega-link-sub {
  display: block;
  font-size: 0.78rem;
  color: #6a6a6a;
  margin-top: 0.15rem;
  letter-spacing: 0;
  text-transform: none;
  line-height: 1.4;
}
.mega-cta {
  background: #0f0f0f;
  color: #fff;
  padding: 1.6rem 1.5rem 1.7rem;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  align-self: start;
}
.mega-cta-eyebrow {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: #c62828;
}
.mega-cta h4 {
  font-family: 'Oswald', sans-serif;
  font-size: 1.15rem;
  color: #fff;
  margin: 0;
  letter-spacing: 0.02em;
}
.mega-cta p {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.78);
  margin: 0;
  line-height: 1.55;
}
.btn-sm {
  padding: 0.55rem 1.1rem !important;
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  margin-top: 0.4rem;
  align-self: flex-start;
}
@media (max-width: 1180px) {
  .mega-grid { grid-template-columns: repeat(3, 1fr); }
  .mega-cta { grid-column: 1 / -1; flex-direction: row; align-items: center; gap: 1.5rem; }
  .mega-cta h4, .mega-cta p { flex: 1; }
  .btn-sm { align-self: center; flex-shrink: 0; }
}

.nav-cta {
  background: #0f0f0f !important;
  color: #fff !important;
  padding: 0.55rem 1.5rem !important;
  border-radius: 0 !important;
  letter-spacing: 0.12em !important;
  transition: background 0.3s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.2s cubic-bezier(0.16, 1, 0.3, 1) !important;
}
.nav-cta:hover {
  background: #c62828 !important;
  transform: translateY(-2px);
}
.nav-cta::after { display: none !important; }

.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
}
.menu-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: #0f0f0f;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1),
              opacity 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

/* ---------- HERO (Asymmetric Layout - DESIGN_VARIANCE=8) ---------- */
.hero {
  position: relative;
  min-height: calc(100dvh - 116px);
  display: grid;
  grid-template-columns: 6fr 4fr;
  align-items: center;
  overflow: hidden;
}
.hero-media {
  grid-column: 1;
  grid-row: 1;
  height: 100%;
  z-index: 1;
}
.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    to right,
    rgba(15, 15, 15, 0.3) 0%,
    rgba(15, 15, 15, 0.7) 60%,
    rgba(15, 15, 15, 0.95) 100%
  );
  z-index: 2;
  grid-column: 1 / -1;
  grid-row: 1;
}
.hero-content {
  position: relative;
  z-index: 3;
  grid-column: 2;
  grid-row: 1;
  padding: clamp(2rem, 5vw, 4rem);
  color: #f5f5f5;
  animation: fadeInUp 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}
.hero-content h1 {
  color: #f5f5f5;
  margin-bottom: 1.5rem;
  text-align: left;
}
.hero-content p {
  font-size: 1.2rem;
  color: rgba(245, 245, 245, 0.8);
  max-width: 500px;
  margin-bottom: 2rem;
}
.hero-content .eyebrow {
  color: #f5f5f5;
  background: rgba(15, 15, 15, 0.46);
  border: 1px solid rgba(255, 255, 255, 0.16);
  padding: 0.45rem 0.8rem 0.45rem 3rem;
  font-size: 0.78rem;
  font-weight: 700;
  text-shadow: 0 1px 10px rgba(0, 0, 0, 0.45);
}
.hero-content .eyebrow::before {
  left: 0.75rem;
  background: #c62828;
}
.hero-actions {
  display: flex;
  flex-wrap: nowrap;
  gap: 0.85rem;
  align-items: center;
}
.hero-actions .btn-lg {
  min-width: 0;
  padding: 1rem clamp(1.35rem, 2.4vw, 2.1rem);
  font-size: 0.9rem;
  white-space: nowrap;
}
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

/* ---------- STAT BAR (Asymmetric Grid - Not 3 Equal Columns) ---------- */
.stat-bar {
  background: #c62828;
  padding: 3rem 0;
  position: relative;
  overflow: hidden;
}
.stat-bar::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(255,255,255,0.1) 0%, transparent 100%);
  pointer-events: none;
}
.stat-bar .container {
  display: grid;
  grid-template-columns: 1fr 1.5fr 1fr;
  gap: 2rem;
  position: relative;
  z-index: 1;
}
.stat-item {
  text-align: center;
  padding: 1rem;
  border-right: 1px solid rgba(255,255,255,0.2);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
.stat-item:last-child { border-right: none; }
.stat-item:hover { transform: translateY(-5px); }
.stat-number {
  font-family: 'Oswald', sans-serif;
  font-size: clamp(2.5rem, 4vw, 3.5rem);
  font-weight: 700;
  color: #f5f5f5;
  line-height: 1;
  margin-bottom: 0.5rem;
}
.stat-label {
  font-size: 0.85rem;
  color: rgba(245, 245, 245, 0.9);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

/* ---------- FEATURED SERVICES (Asymmetric Grid - Banned 3-Col Equal) ---------- */
.featured-services {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 2rem;
  margin-top: 3rem;
}
.featured-card {
  position: relative;
  border-radius: 0;
  overflow: hidden;
  min-height: 400px;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}
.featured-card:first-child {
  grid-row: span 2;
}
.featured-card:nth-child(2) {
  min-height: 300px;
}
.card-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}
.featured-card:hover .card-bg {
  transform: scale(1.05);
}
.card-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    to top,
    rgba(15, 15, 15, 0.9) 0%,
    rgba(15, 15, 15, 0.3) 100%
  );
}
.card-content {
  position: relative;
  z-index: 2;
  padding: 2rem;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  color: #f5f5f5;
}
.card-content h4 {
  color: #f5f5f5;
  font-size: 1.4rem;
  margin-bottom: 0.5rem;
}
.card-content p {
  color: rgba(245, 245, 245, 0.8);
  max-width: none;
  margin-bottom: 1rem;
}
.read-more {
  display: inline-block;
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #f5f5f5;
  padding-bottom: 0.3rem;
  border-bottom: 2px solid #c62828;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
.read-more:hover {
  padding-left: 0.5rem;
  color: #c62828;
}

/* ---------- BUTTONS ---------- */
.btn {
  display: inline-block;
  font-family: 'Satoshi', sans-serif;
  font-size: 0.9rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  padding: 1rem 2.5rem;
  border: 2px solid transparent;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  text-align: center;
  vertical-align: middle;
  line-height: 1.2;
}
.btn-primary {
  background: #c62828;
  color: #f5f5f5;
}
.btn-primary:hover {
  background: #0f0f0f;
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(198, 40, 40, 0.3);
}
.btn-lg {
  font-size: 1rem;
  padding: 1.2rem 3rem;
}

/* ---------- RESPONSIVE (Mobile Override for DESIGN_VARIANCE > 4) ---------- */
@media (max-width: 768px) {
  .hero {
    grid-template-columns: 1fr;
    min-height: calc(100dvh - 86px);
  }
  .hero-media {
    width: 100%;
  }
  .hero-content {
    grid-column: 1;
    padding: 2rem clamp(1.25rem, 5vw, 2rem);
    display: flex;
    flex-direction: column;
    justify-content: center;
  }
  .hero-content h1 {
    font-size: clamp(2rem, 8vw, 3rem);
    overflow-wrap: anywhere;
    word-break: break-word;
  }
  .hero-content p,
  .hero-content .eyebrow { max-width: 100%; }
  .hero-actions {
    flex-wrap: wrap;
  }
  .stat-bar .container {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  .stat-item {
    border-right: none;
    border-bottom: 1px solid rgba(255,255,255,0.2);
  }
  .stat-item:last-child { border-bottom: none; }
  .featured-services {
    grid-template-columns: 1fr;
  }
  .featured-card:first-child {
    grid-row: auto;
  }
  .nav-links {
    position: fixed;
    top: 72px;
    right: 0;
    bottom: 0;
    left: 0;
    background: #ffffff;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 1.5rem 1.5rem 3rem;
    overflow-y: auto;
    transform: translateX(100%);
    transition: transform 0.32s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: 1000;
    display: flex;
  }
  .nav-links.mobile-open { transform: translateX(0); }
  .nav-links .nav-link,
  .nav-links > a {
    padding: 1rem 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
    font-size: 1rem;
    width: 100%;
    justify-content: space-between;
  }
  .nav-links .nav-link::after,
  .nav-links > a::after { display: none; }
  .nav-cta {
    margin-top: 1.5rem;
    text-align: center;
    width: 100%;
    border-bottom: none !important;
    justify-content: center !important;
  }
  .menu-toggle {
    display: flex;
    position: relative;
    z-index: 1001;
  }
  .menu-toggle[aria-expanded="true"] span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
  }
  .menu-toggle[aria-expanded="true"] span:nth-child(2) {
    opacity: 0;
  }
  .menu-toggle[aria-expanded="true"] span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
  }
  body.nav-open { overflow: hidden; }

  .nav-item-mega,
  .nav-item-mega .has-mega {
    width: 100%;
  }
  .nav-item-mega .has-mega::before,
  .nav-item-mega .has-mega::after,
  .mega-menu::before {
    display: none;
  }

  /* Mobile mega menu: collapse to inline accordion */
  .mega-menu {
    position: static;
    box-shadow: none;
    border: none;
    background: #faf9f7;
    padding: 0;
    transform: none;
    opacity: 0;
    visibility: hidden;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.32s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.2s ease;
    pointer-events: none;
  }
  .nav-item-mega.open .mega-menu {
    opacity: 1;
    visibility: visible;
    max-height: 2000px;
    padding: 0.75rem 0 1.25rem;
    pointer-events: auto;
  }
  .mega-grid {
    grid-template-columns: 1fr !important;
    gap: 1.25rem;
    padding: 0 1rem;
  }
  .mega-cta { padding: 1.25rem; }
  .mega-cta { flex-direction: column !important; align-items: flex-start; gap: 0.5rem; }
  .btn-sm { align-self: flex-start; }

  .section-heading {
    padding-left: 1rem;
  }
}

/* ---------- ANIMATIONS (MOTION_INTENSITY=6) ---------- */
@keyframes shimmer {
  0% { background-position: -1000px 0; }
  100% { background-position: 1000px 0; }
}

/* ---------- SERVICES GRID (Asymmetric - Not 3-Col Equal) ---------- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
  gap: 2rem;
  margin-top: 3rem;
}
.service-card {
  position: relative;
  background: #ffffff;
  border: 1px solid rgba(0,0,0,0.06);
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}
.service-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 40px rgba(0,0,0,0.08);
}
.service-card-image {
  width: 100%;
  height: 250px;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}
.service-card:hover .service-card-image {
  transform: scale(1.05);
}
.service-card-content {
  padding: 1.5rem;
}
.service-card h3 {
  margin-bottom: 0.5rem;
}
.service-card p {
  font-size: 0.95rem;
  margin-bottom: 1rem;
}

/* ---------- EMPLOYEE GRID ---------- */
.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}
.team-member {
  text-align: center;
}
.team-member-photo {
  width: 150px;
  height: 150px;
  border-radius: 50%;
  object-fit: cover;
  margin: 0 auto 1rem;
  border: 3px solid #c62828;
}
.team-member h4 {
  font-size: 1rem;
  margin-bottom: 0.3rem;
}
.team-member-title {
  font-size: 0.85rem;
  color: #666;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

/* ---------- TESTIMONIALS ---------- */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}
.testimonial-card {
  background: #ffffff;
  padding: 2rem;
  border-left: 4px solid #c62828;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
.testimonial-card:hover {
  transform: translateX(5px);
}
.testimonial-text {
  font-style: italic;
  margin-bottom: 1rem;
  color: #4a4a4a;
}
.testimonial-author {
  font-weight: 600;
  color: #0f0f0f;
}

/* ---------- CTA BANNER ---------- */
.cta-banner {
  background:
    linear-gradient(120deg, rgba(198,40,40,0.08), rgba(198,40,40,0) 42%),
    #f4f1eb;
  color: #0f0f0f;
  padding: clamp(4rem, 8vw, 6rem) 0;
  text-align: left;
  border-top: 1px solid rgba(15,15,15,0.08);
  border-bottom: 1px solid rgba(15,15,15,0.08);
}
.cta-banner .container {
  max-width: 980px;
}
.cta-banner h2 {
  color: #0f0f0f;
  margin-bottom: 1rem;
}
.cta-banner p {
  color: #4a4a4a;
  max-width: 660px;
  margin: 0 0 2rem;
}
.cta-kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 1rem;
  color: #c62828;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.cta-kicker::before {
  content: '';
  width: 32px;
  height: 2px;
  background: #c62828;
}
.cta-banner .btn-primary {
  background: #c62828;
  color: #f5f5f5;
  border: 2px solid #c62828;
}
.cta-banner .btn-primary:hover {
  background: #0f0f0f;
  border-color: #0f0f0f;
  color: #f5f5f5;
}
.cta-banner .btn-outline,
.cta-banner .btn-white {
  background: transparent;
  color: #0f0f0f;
  border: 2px solid #0f0f0f;
}
.cta-banner .btn-outline:hover,
.cta-banner .btn-white:hover {
  background: #0f0f0f;
  color: #f5f5f5;
  border-color: #0f0f0f;
}
.cta-banner .cta-row {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}
@media (max-width: 640px) {
  .cta-banner .cta-row {
    flex-direction: column;
    align-items: stretch;
  }
  .cta-banner .cta-row .btn {
    width: 100%;
  }
}

/* ---------- FOOTER ---------- */
.footer {
  background: #0f0f0f;
  color: rgba(255, 255, 255, 0.78);
  padding: 4.5rem 0 2rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: clamp(2rem, 4vw, 3.5rem);
}
.footer .footer-brand .logo {
  margin-bottom: 1.25rem;
}
.footer .footer-brand p {
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.95rem;
  line-height: 1.7;
  max-width: 34ch;
}
.footer h4 {
  color: #ffffff;
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  margin-bottom: 1.25rem;
}
.footer ul { list-style: none; padding: 0; margin: 0; }
.footer-links li,
.footer ul li {
  margin-bottom: 0.7rem;
}
.footer a {
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.95rem;
  transition: color 0.3s ease;
}
.footer-links a {
  font-size: 0.95rem;
  transition: color 0.3s ease;
}
.footer a:hover,
.footer-links a:hover { color: #ffffff; }
.footer-contact p {
  color: rgba(255, 255, 255, 0.78);
  margin-bottom: 0.55rem;
  font-size: 0.95rem;
  max-width: none;
}
.footer-contact p a { color: inherit; }
.footer-contact p a:hover { color: #fff; }
.social-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  margin-top: 1.25rem;
}
.social-link {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  min-height: 42px;
  padding: 0.55rem 0.7rem;
  border: 1px solid rgba(255,255,255,0.18);
  color: #fff !important;
  font-size: 0.82rem !important;
}
.social-link:hover { border-color: rgba(255,255,255,0.48); background: rgba(255,255,255,0.06); }
.social-link svg { width: 18px; height: 18px; flex: 0 0 auto; }
.footer-bottom {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(255,255,255,0.12);
  text-align: center;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.55);
}
.footer-bottom a {
  color: rgba(255, 255, 255, 0.78);
  text-decoration: underline;
  text-underline-offset: 0.2em;
}

/* ---------- Cookie banner + privacy page ---------- */
.cookie-banner {
  position: fixed;
  left: clamp(1rem, 3vw, 2rem);
  right: clamp(1rem, 3vw, 2rem);
  bottom: clamp(1rem, 3vw, 2rem);
  z-index: 200;
}
.cookie-banner[hidden] { display: none; }
.cookie-banner-inner {
  max-width: 1080px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 1.25rem;
  align-items: center;
  background: rgba(15, 15, 15, 0.96);
  color: #fff;
  border: 1px solid rgba(255,255,255,0.12);
  border-left: 4px solid #c62828;
  box-shadow: 0 24px 70px rgba(0,0,0,0.28);
  padding: 1.2rem 1.25rem;
}
.cookie-eyebrow {
  display: block;
  color: #ff6b6b;
  font-family: 'Oswald', sans-serif;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 0.35rem;
}
.cookie-copy p {
  color: rgba(255,255,255,0.82);
  font-size: 0.92rem;
  line-height: 1.55;
  margin: 0;
  max-width: 72ch;
}
.cookie-copy a {
  color: #fff;
  text-decoration: underline;
  text-underline-offset: 0.2em;
}
.cookie-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  white-space: nowrap;
}
.cookie-close {
  background: transparent;
  border: 1px solid rgba(255,255,255,0.28);
  color: #fff;
  cursor: pointer;
  font-family: inherit;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  line-height: 1;
  padding: 0.62rem 1rem;
  text-transform: uppercase;
  transition: border-color 0.2s ease, background 0.2s ease;
}
.cookie-close:hover {
  background: rgba(255,255,255,0.08);
  border-color: rgba(255,255,255,0.56);
}
.policy-layout {
  display: grid;
  grid-template-columns: minmax(260px, 0.42fr) minmax(0, 0.72fr);
  gap: clamp(2rem, 5vw, 5rem);
  align-items: start;
}
.policy-aside {
  position: sticky;
  top: 110px;
}
.policy-aside h2 {
  font-size: clamp(2rem, 4vw, 3.2rem);
  line-height: 1;
  margin-bottom: 1rem;
}
.policy-aside p {
  color: #4a4a4a;
  font-size: 1.05rem;
}
.policy-content {
  background: #fff;
  border: 1px solid rgba(0,0,0,0.06);
  box-shadow: 0 18px 50px rgba(0,0,0,0.06);
  padding: clamp(1.5rem, 4vw, 3rem);
}
.policy-content h3 {
  color: #0f0f0f;
  font-family: 'Oswald', sans-serif;
  font-size: 1.25rem;
  letter-spacing: 0.04em;
  margin: 2rem 0 0.7rem;
}
.policy-content h3:first-child { margin-top: 0; }
.policy-content p {
  color: #353535;
  line-height: 1.75;
  margin: 0 0 1rem;
}
.policy-content a {
  color: #c62828;
  font-weight: 600;
}
.policy-updated {
  border-top: 1px solid rgba(0,0,0,0.08);
  color: #666 !important;
  font-size: 0.9rem;
  margin-top: 2rem !important;
  padding-top: 1rem;
}

@media (max-width: 768px) {
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  .cookie-banner {
    left: 0.75rem;
    right: 0.75rem;
    bottom: 0.75rem;
  }
  .cookie-banner-inner {
    grid-template-columns: 1fr;
    gap: 1rem;
    padding: 1rem;
  }
  .cookie-actions {
    align-items: stretch;
    flex-direction: column;
    white-space: normal;
  }
  .cookie-actions .btn,
  .cookie-close {
    width: 100%;
    justify-content: center;
    text-align: center;
  }
  .policy-layout {
    grid-template-columns: 1fr;
  }
  .policy-aside {
    position: static;
  }
}

/* ============================================================
   TASTE-SKILL ADDITIONS v1.7
   - Scroll entry animations (MOTION_INTENSITY=6)
   - Tactile button feedback
   - Staggered grid reveals
   - Eyebrow/label tags
   - Page header enhancements
   ============================================================ */

/* Scroll Entry Animation - Elements fade up on load */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Staggered entry for grid items */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.section > .container > *:not(.section-heading):first-of-type,
.section > .container > *:nth-child(3) {
  animation: fadeInUp 0.7s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.section > .container > *,
.services-grid .service-card,
.testimonials-grid .testimonial-card,
.featured-services .featured-card,
.team-grid .team-card {
  --entry-delay: 0ms;
  animation: scrollEntry 0.7s cubic-bezier(0.16, 1, 0.3, 1) both;
}

/* Stagger children of grids */
.services-grid .service-card:nth-child(1) { --entry-delay: 0ms; }
.services-grid .service-card:nth-child(2) { --entry-delay: 80ms; }
.services-grid .service-card:nth-child(3) { --entry-delay: 160ms; }
.services-grid .service-card:nth-child(4) { --entry-delay: 240ms; }
.services-grid .service-card:nth-child(5) { --entry-delay: 320ms; }
.services-grid .service-card:nth-child(6) { --entry-delay: 400ms; }
.services-grid .service-card:nth-child(7) { --entry-delay: 480ms; }
.services-grid .service-card:nth-child(8) { --entry-delay: 560ms; }
.services-grid .service-card:nth-child(9) { --entry-delay: 640ms; }

.testimonials-grid .testimonial-card:nth-child(1) { --entry-delay: 0ms; }
.testimonials-grid .testimonial-card:nth-child(2) { --entry-delay: 100ms; }
.testimonials-grid .testimonial-card:nth-child(3) { --entry-delay: 200ms; }

.featured-services .featured-card:nth-child(1) { --entry-delay: 0ms; }
.featured-services .featured-card:nth-child(2) { --entry-delay: 80ms; }
.featured-services .featured-card:nth-child(3) { --entry-delay: 160ms; }
.featured-services .featured-card:nth-child(4) { --entry-delay: 240ms; }
.featured-services .featured-card:nth-child(5) { --entry-delay: 320ms; }
.featured-services .featured-card:nth-child(6) { --entry-delay: 400ms; }

.team-grid .team-card:nth-child(1) { --entry-delay: 0ms; }
.team-grid .team-card:nth-child(2) { --entry-delay: 60ms; }
.team-grid .team-card:nth-child(3) { --entry-delay: 120ms; }
.team-grid .team-card:nth-child(4) { --entry-delay: 180ms; }
.team-grid .team-card:nth-child(5) { --entry-delay: 240ms; }
.team-grid .team-card:nth-child(6) { --entry-delay: 300ms; }
.team-grid .team-card:nth-child(7) { --entry-delay: 360ms; }
.team-grid .team-card:nth-child(8) { --entry-delay: 420ms; }

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

/* Apply the staggered animation */
.services-grid .service-card,
.testimonials-grid .testimonial-card,
.featured-services .featured-card,
.team-grid .team-card {
  animation: scrollEntry 0.6s cubic-bezier(0.16, 1, 0.3, 1) both;
  animation-delay: var(--entry-delay);
}

/* Tactile Button Feedback - Taste-Skill Rule 5 */
.btn:active {
  transform: scale(0.98) translateY(1px);
}

.btn-primary:active {
  background: #0f0f0f;
}

.btn-outline, .btn-white {
  background: transparent;
  color: #f5f5f5;
  border: 2px solid rgba(255,255,255,0.3);
}
.btn-outline:hover, .btn-white:hover {
  background: #f5f5f5;
  color: #0f0f0f;
  border-color: #f5f5f5;
}
/* Contextual override: dark button on light sections */
.section-light .btn-outline,
.section-light .btn-white,
section[style*="#ffffff"] .btn-outline,
section[style*="#ffffff"] .btn-white,
section[style*="#fff"] .btn-outline,
section[style*="#fff"] .btn-white {
  color: #0f0f0f;
  border-color: rgba(15,15,15,0.35);
}
.section-light .btn-outline:hover,
.section-light .btn-white:hover,
section[style*="#ffffff"] .btn-outline:hover,
section[style*="#ffffff"] .btn-white:hover,
section[style*="#fff"] .btn-outline:hover,
section[style*="#fff"] .btn-white:hover {
  background: #0f0f0f;
  color: #f5f5f5;
  border-color: #0f0f0f;
}

/* Eyebrow Tag Enhancement */
.section-label {
  display: inline-block;
  font-family: 'Satoshi', sans-serif;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: #c62828;
  margin-bottom: 0.75rem;
  padding: 0.3rem 0.8rem;
  background: rgba(198, 40, 40, 0.08);
  border-radius: 4px;
}

.section-dark .section-label {
  background: rgba(198, 40, 40, 0.15);
  color: #e57373;
}

/* Page Header Styles */
.page-header {
  position: relative;
  min-height: 65dvh;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
}
.page-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}
.page-header:hover .page-bg {
  transform: scale(1.03);
}
.page-header .overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    to top,
    rgba(15, 15, 15, 0.85) 0%,
    rgba(15, 15, 15, 0.4) 50%,
    rgba(15, 15, 15, 0.2) 100%
  );
  z-index: 1;
}
.page-header .container {
  position: relative;
  z-index: 2;
  padding: 3rem clamp(1.25rem, 4vw, 3rem);
}
.page-title {
  font-family: 'Oswald', sans-serif;
  font-size: clamp(2.5rem, 5vw, 4.5rem);
  font-weight: 700;
  color: #f5f5f5;
  text-align: left;
  margin-bottom: 0.75rem;
}
.breadcrumbs, .breadcrumb-link {
  font-size: 0.85rem;
  color: rgba(245, 245, 245, 0.7);
}
.breadcrumb-link {
  color: rgba(245, 245, 245, 0.7);
  transition: color 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
.breadcrumb-link:hover {
  color: #f5f5f5;
}

/* Tilt Card Effect - Taste-Skill Arsenal */
.service-card {
  position: relative;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1),
              box-shadow 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}
.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: #c62828;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 2;
}
.service-card:hover::before {
  transform: scaleX(1);
}

/* Form Styles (Taste-Skill Rule 6) */
.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}
.form-label {
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #0f0f0f;
}
.form-input,
.form-textarea {
  padding: 0.875rem 1rem;
  border: 1px solid rgba(0,0,0,0.1);
  background: #ffffff;
  font-family: 'Satoshi', sans-serif;
  font-size: 1rem;
  color: #0f0f0f;
  transition: border-color 0.3s cubic-bezier(0.16, 1, 0.3, 1),
              box-shadow 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
.form-input:focus,
.form-textarea:focus {
  outline: none;
  border-color: #c62828;
  box-shadow: 0 0 0 3px rgba(198, 40, 40, 0.1);
}
.form-textarea {
  min-height: 150px;
  resize: vertical;
}

/* Testimonials Enhancement (Asymmetric Layout) */
.testimonials {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr));
  gap: 1.75rem;
  margin-top: 3rem;
  align-items: stretch;
}
.testimonial {
  background: rgba(255,255,255,0.05);
  padding: 2rem;
  border-left: 3px solid #c62828;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
.testimonial:hover {
  transform: translateY(-5px);
  background: rgba(255,255,255,0.08);
}
.testimonial p {
  color: rgba(245, 245, 245, 0.9);
  font-style: italic;
  margin-bottom: 1rem;
}
.testimonial cite {
  color: #c62828;
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

/* Mobile Responsive Updates for Asymmetric Grids */
@media (max-width: 768px) {
  .testimonials {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  .testimonial {
    padding: 1.5rem;
  }
  .page-header {
    min-height: 50dvh;
  }
  .page-header .container {
    padding: 2rem 1.25rem;
  }
  .page-title {
    font-size: clamp(1.8rem, 6vw, 2.5rem);
    overflow-wrap: anywhere;
  }
  .breadcrumbs {
    flex-wrap: wrap;
    gap: 0.25rem;
    font-size: 0.78rem;
  }
  .section-heading {
    padding-left: 1rem;
    margin-bottom: 3rem;
  }
  .services-grid {
    grid-template-columns: 1fr;
  }
  .testimonials-grid {
    grid-template-columns: 1fr;
  }
}

@keyframes mobileMenuOpen {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Robust mobile navigation override.
   Kept late in the file so older desktop hover/menu helpers cannot cover it. */
@media (max-width: 1024px) {
  .header { z-index: 3000; }
  .header .container { height: 72px; }
  .menu-toggle {
    display: flex !important;
    position: relative;
    z-index: 3002;
  }
  .menu-toggle[aria-expanded="true"] span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
  }
  .menu-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .menu-toggle[aria-expanded="true"] span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
  }
  /* The drawer's top edge follows the live header bottom edge (set by JS
     to header.getBoundingClientRect().bottom). When the page is scrolled
     down past the topbar the header sits at viewport top: 0 so the
     variable resolves to 72px; when the page is at scroll: 0 the topbar
     is visible above the header and the variable resolves to ~110px.
     Either way the drawer sits flush below the header instead of cutting
     through it. The 72px fallback covers the no-JS case. */
  .nav-links {
    position: fixed !important;
    top: var(--mobile-menu-top, 72px) !important;
    right: 0 !important;
    bottom: 0 !important;
    left: 0 !important;
    z-index: 3001 !important;
    display: none !important;
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 0 !important;
    overflow-y: auto !important;
    -webkit-overflow-scrolling: touch;
    height: calc(100dvh - var(--mobile-menu-top, 72px)) !important;
    min-height: calc(100dvh - var(--mobile-menu-top, 72px)) !important;
    max-height: calc(100dvh - var(--mobile-menu-top, 72px)) !important;
    padding: 1rem 1.25rem calc(2rem + env(safe-area-inset-bottom)) !important;
    background: #ffffff !important;
    border-top: 1px solid rgba(0,0,0,0.06);
    box-shadow: 0 30px 70px rgba(0,0,0,0.18);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: none !important;
  }
  .nav-links.mobile-open {
    display: flex !important;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    animation: mobileMenuOpen 0.24s cubic-bezier(0.16, 1, 0.3, 1);
  }
  /* The hamburger morphs into an X on open (z-index 3002, above the
     drawer), so the in-drawer "Stäng meny" X is redundant and was
     stacking visually right under the hamburger. Hide it on mobile. */
  .nav-close {
    display: none !important;
  }
  /* Mega menu item becomes a row with link + accordion button */
  .nav-item-mega {
    width: 100% !important;
    display: flex !important;
    flex-wrap: wrap !important;
    align-items: stretch !important;
    border-bottom: 1px solid rgba(0,0,0,0.08);
  }
  .nav-item-mega > .nav-link,
  .nav-item-mega > .has-mega {
    /* Force flex-basis to zero so the link doesn't claim the full row
       width (which would push the caret to a second row on iPhone Safari).
       Also reset width:100% from the 768px breakpoint above and
       min-width:auto from the user-agent stylesheet. */
    flex: 1 1 0% !important;
    width: auto !important;
    min-width: 0 !important;
    padding: 1.1rem 0 !important;
    border-bottom: 0 !important;
    color: #0f0f0f !important;
    font-size: 1.05rem !important;
  }
  .nav-item-mega > .mega-toggle {
    flex: 0 0 auto !important;
    padding: 0 1rem !important;
    min-width: 56px;
    min-height: 56px;
    color: #0f0f0f !important;
    align-self: center;
    border-left: 1px solid rgba(0,0,0,0.06);
  }
  .nav-item-mega > .mega-toggle .mega-caret { font-size: 1rem; opacity: 0.75; }
  .nav-item-mega.open > .mega-toggle .mega-caret { transform: rotate(180deg); opacity: 1; }

  /* Plain top-level links */
  .nav-links > a:not(.nav-cta),
  .nav-links .nav-link:not(.has-mega) {
    display: flex !important;
    align-items: center;
    justify-content: space-between !important;
    padding: 1.1rem 0 !important;
    border-bottom: 1px solid rgba(0,0,0,0.08);
    color: #0f0f0f !important;
    font-size: 1.05rem !important;
    min-height: 56px;
  }
  .nav-links .nav-link::after,
  .nav-links > a::after,
  .nav-item-mega .has-mega::before,
  .nav-item-mega .has-mega::after,
  .mega-menu::before {
    display: none !important;
  }
  /* Submenu accordion */
  .mega-menu {
    position: static !important;
    display: block !important;
    flex-basis: 100% !important;
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: none !important;
    box-shadow: none !important;
    border: 0 !important;
    background: #faf9f7 !important;
    padding: 0 !important;
    transition: max-height 0.3s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.2s ease;
  }
  .nav-item-mega.open .mega-menu {
    max-height: 2400px;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    padding: 0.5rem 0 1rem !important;
  }
  .mega-grid,
  .mega-grid-single {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 0.5rem !important;
    padding: 0.25rem 0.75rem 0 !important;
  }
  .mega-heading {
    margin-top: 0.5rem;
    margin-bottom: 0.5rem;
  }
  .mega-list { gap: 0.1rem !important; }
  .mega-link {
    padding: 0.85rem 0.75rem !important;
    border-left: 0 !important;
    border-bottom: 1px solid rgba(0,0,0,0.05);
  }
  .mega-link-title { font-size: 1rem !important; }
  .mega-link-sub { font-size: 0.78rem !important; }
  .mega-cta {
    margin: 0.75rem 0.75rem 0;
    padding: 1rem !important;
    flex-direction: column !important;
    align-items: flex-start !important;
  }
  .nav-cta {
    justify-content: center !important;
    margin-top: 1.25rem !important;
    padding: 1rem !important;
    width: 100% !important;
    font-size: 0.95rem !important;
  }
}

/* Grain overlay disabled — the fixed full-viewport layer with mix-blend-mode
   forced a costly repaint on every scroll frame for almost no visual gain at
   0.015 opacity. Texture is now handled by image content alone. */

/* Print styles */
@media print {
  .topbar, .header, .menu-toggle,
  .footer, body::after {
    display: none !important;
  }
  .hero, .section, .cta-banner {
    padding: 1rem 0;
  }
  body {
    color: #000;
    background: #fff;
  }
}
