@import url("https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@400;500;600;700&family=Spectral:wght@400;600&display=swap");

:root {
  /* Premium dark base */
  --bg: #0a0f14;
  --bg-rgb: 10, 15, 20;

  /* Surfaces: richer & more separated */
  --surface: #0f1722;
  --surface-strong: #0b121b;
  --surface-muted: #0d1520;

  /* Text: crisp */
  --text: #e9f0f8;
  --text-muted: #aab7c7;
  --heading: #f5f8fd;

  /* Borders: machined */
  --border: #213244;
  --border-strong: #2d4258;

  /* Accent (CTA red): premium, less â€œalarmâ€ */
  --accent: #d61f33;
  --accent-strong: #a81626;
  --accent-contrast: #ffffff;

  /* Links/focus: restrained (less neon teal) */
  --link: #86bfef;
  --link-hover: #a8d6ff;
  --focus-ring: #86bfef;
  --focus-ring-rgb: 134, 191, 239;
  --case-study-ratio: 2 / 1;

  /* Aliases (keep your mapping) */
  --color-ink: var(--bg);
  --color-ink-soft: var(--surface-strong);
  --color-surface: var(--surface-muted);
  --color-card: var(--surface);
  --color-border: var(--border);
  --color-muted: var(--text-muted);
  --color-text: var(--text);
  --color-accent: var(--accent);
  --color-accent-dark: var(--accent-strong);
  --color-teal: var(--focus-ring);
  --color-glow: rgba(var(--focus-ring-rgb), 0.14);

  /* Geometry/spacing unchanged */
  --radius-lg: 20px;
  --radius-md: 14px;
  --radius-sm: 10px;
  --space-xs: 0.5rem;
  --space-sm: 0.75rem;
  --space-md: 1.25rem;
  --space-lg: 2rem;
  --space-xl: 3rem;
  --space-2xl: 4.5rem;
  --max-width: 1200px;

  /* Base RGB Components for DRY Alpha management */
  --rgb-border-steel: 33, 50, 68;      /* The primary machined-blue used for borders */
  --rgb-text-ice: 233, 240, 248;       /* The bright highlight color used for text/accents */
  --rgb-text-slate: 170, 183, 199;     /* The muted grey used for secondary info */
  --rgb-shadow: 0, 0, 0;               /* Standard black for shadows */

  /* Refined Border Aliases */
  --border-subtle: rgba(var(--rgb-border-steel), 0.85);
  --border-medium: rgba(var(--rgb-border-steel), 0.88);
  --border-heavy:  rgba(var(--rgb-border-steel), 0.9);

  /* Refined Text/UI Aliases */
  --text-highlight: rgba(var(--rgb-text-ice), 0.92);
  --text-breadcrumb: rgba(var(--rgb-text-ice), 0.9);
  --ui-scroll-cue:   rgba(var(--rgb-text-ice), 0.75);
  
  /* Shadows: tighter/cleaner */
  --shadow-soft: 0 10px 24px rgba(var(--rgb-shadow), 0.46);
}

* {
  box-sizing: border-box;
}

.nowrap, .nav-link, .nav-phone, .btn, .logo-text {
    white-space: nowrap;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Space Grotesk", "Segoe UI", sans-serif;
  color: var(--text);
  background-color: var(--bg);
  background-image: radial-gradient(circle at top, rgba(13, 21, 32, 0.9), var(--bg) 58%);
  line-height: 1.6;
  min-height: 100vh;
  color-scheme: dark;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body.cookie-visible {
  padding-bottom: 4.75rem;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: var(--link);
  text-decoration: none;
}

a:hover,
a:focus {
  color: var(--link-hover);
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: 2px solid var(--focus-ring);
  outline-offset: 3px;
  box-shadow: 0 0 0 3px rgba(var(--focus-ring-rgb), 0.22);
}

p {
  margin: 0 0 var(--space-md);
  color: var(--text-muted);
}

h1,
h2,
h3,
h4 {
  margin: 0 0 var(--space-sm);
  font-family: "Spectral", "Times New Roman", serif;
  color: var(--heading);
  line-height: 1.2;
}

h1 {
  font-size: clamp(2.3rem, 3vw + 1.2rem, 3.8rem);
}

h2 {
  font-size: clamp(1.8rem, 2vw + 1rem, 2.6rem);
}

h3 {
  font-size: 1.3rem;
}

.container {
  width: min(100% - 2.5rem, var(--max-width));
  margin: 0 auto;
}

.section {
  padding: var(--space-lg) 0;
}

.section-heading {
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
  margin-bottom: var(--space-lg);
}

.eyebrow {
  text-transform: uppercase;
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  font-weight: 500;
  color: rgba(var(--rgb-text-slate), 0.9);
}

.skip-link {
  position: absolute;
  left: -999px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.skip-link:focus {
  position: static;
  width: auto;
  height: auto;
  padding: var(--space-xs) var(--space-sm);
  background: var(--surface-strong);
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(var(--bg-rgb), 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-subtle);
}

.nav {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-sm) 0;
  gap: var(--space-sm);
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  color: var(--heading);
  text-decoration: none;
}

.logo-mark svg,
.logo-mark img {
  height: 58px;
  width: auto;
  display: block;
  color: var(--heading);
  max-width: 312px;
}

.logo-text {
  font-family: "Space Grotesk", "Segoe UI", sans-serif;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.95rem;
  color: var(--heading);
  line-height: 1;
  white-space: nowrap;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}

.nav-link {
  font-size: 1rem;
  font-weight: 500;
  padding: 0.35rem 0.5rem;
  border-radius: var(--radius-sm);
  transition: color 0.2s ease, background 0.2s ease, border-color 0.2s ease;
  color: var(--text);
}

.nav-right-group {
  display: flex;
  align-items: center;
  justify-content: flex-end; /* Pushes content to the far right */
  gap: var(--space-xs);
}

.nav-link:hover,
.nav-link:focus {
  color: var(--heading);
  background: rgba(var(--focus-ring-rgb), 0.08);
}

.nav-link.is-active {
  color: var(--heading);
  background: rgba(var(--focus-ring-rgb), 0.14);
  border: 1px solid rgba(var(--focus-ring-rgb), 0.18);
}

.nav-cta {
  margin: 0;
}

.nav-extras {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  margin-left: var(--space-md);
}

.nav-phone {
  font-size: 0.95rem;
  color: var(--text-breadcrumb);
}

.nav-contact-icons {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.nav-contact-icon {
  display: inline-flex;
  width: 40px;
  height: 40px;
  border-radius: 999px;
  border: 1px solid var(--border-subtle);
  align-items: center;
  justify-content: center;
  background: rgba(15, 23, 34, 0.25);
  color: var(--heading);
}

.nav-contact-icon svg {
  width: 18px;
  height: 18px;
  stroke: currentColor;
}

.nav-contact-icon--phone {
  color: #6c8fb4;
  display: none;
}

.nav-contact-icon--whatsapp {
  color: #3bcf86;
}

.nav-contact-icon--email {
  color: var(--accent);
}

/* 1. Default state: Quote icon is hidden */
.nav-contact-icon--quote {
  color: var(--accent);
  display: none;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 0.3rem;
  background: transparent;
  border: 1px solid var(--border-subtle);
  padding: 0.5rem 0.6rem;
  border-radius: var(--radius-sm);
  cursor: pointer;
  margin-right: var(--space-xs);
}

.nav-toggle span {
  width: 22px;
  height: 2px;
  background: var(--heading);
}

.hero {
  position: relative;
  background-image: linear-gradient(
      120deg,
      rgba(var(--bg-rgb), 0.9),
      rgba(var(--bg-rgb), 0.48)
    ), var(--hero-bg); /* The dynamic image */
  background-size: cover;
  background-position: center;
  padding: var(--space-2xl) 0;
  min-height: 70vh;
  display: flex;
  align-items: center;
}

.hero--alt {
  background-image: linear-gradient(
      120deg,
      rgba(var(--bg-rgb), 0.92),
      rgba(var(--bg-rgb), 0.52)
    ), var(--hero-bg); /* The dynamic image */
}

.hero--inner {
  min-height: 45vh;
}

.hero-content {
  max-width: 100%;
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

/* Slightly tighter panel width improves â€œpremiumâ€ readability */
.hero-panel {
  width: 100%;
  max-width: 1040px;
  margin: 0 auto;
  background: rgba(var(--bg-rgb), 0.86);
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-lg);
  padding: clamp(1.5rem, 3vw, 2.4rem);
  box-shadow: 0 22px 52px rgba(var(--rgb-shadow), 0.58);
  backdrop-filter: blur(6px);
}

.hero-subheading {
  color: var(--text-highlight);
  font-size: 1.05rem;
  margin-bottom: 0
}

.hero-trust {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.35rem;
  color: var(--text-muted);
  font-size: 0.95rem;
}

.hero-trust li::before {
  content: "-";
  color: rgba(var(--focus-ring-rgb), 0.85);
  margin-right: 0.5rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
  align-items: center;
}

.hero-shortcuts {
  display: flex;
  flex-wrap: wrap;
  row-gap: 0.45rem;
  column-gap: 0;
  align-items: center;
  font-size: 0.95rem;
  color: var(--text-muted);
}

.hero-shortcuts > a {
  display: inline-flex;
  align-items: center;
}

.hero-shortcuts > a + a {
  border-left: 1px solid rgba(var(--rgb-text-ice), 0.35);
  margin-left: 0.75rem;
  padding-left: 0.75rem;
}

.hero-shortcut {
  color: var(--link);
  font-weight: 600;
}

.hero-shortcut:hover,
.hero-shortcut:focus {
  color: var(--link-hover);
}

.section-actions {
  margin-top: var(--space-md);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.75rem 1.35rem;
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--text);
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease,
    border-color 0.18s ease, color 0.18s ease;
  cursor: pointer;
}

.btn--primary,
.btn-primary {
  background: var(--accent);
  color: var(--accent-contrast);
  box-shadow: 0 14px 30px rgba(214, 31, 51, 0.24);
}

.btn--primary:hover,
.btn--primary:focus,
.btn-primary:hover,
.btn-primary:focus {
  background: var(--accent-strong);
  transform: translateY(-1px);
}

.btn--ghost,
.btn--secondary,
.btn-secondary {
  border-color: rgba(var(--focus-ring-rgb), 0.28);
  color: var(--heading);
  background: rgba(15, 23, 34, 0.35);
}

.btn--ghost:hover,
.btn--ghost:focus,
.btn--secondary:hover,
.btn--secondary:focus,
.btn-secondary:hover,
.btn-secondary:focus {
  border-color: rgba(var(--focus-ring-rgb), 0.46);
  background: rgba(var(--focus-ring-rgb), 0.06);
  transform: translateY(-1px);
}

.mobile-only-cta {
  margin: 0;
  display: none;
}

.cta-link {
  color: var(--link);
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.cta-link span {
  font-size: 1.1rem;
}

.cta-tertiary {
  font-size: 0.95rem;
  color: var(--link);
}

.hero-divider {
  height: 1px;
  width: min(100% - 2.5rem, var(--max-width));
  margin: 0 auto;
  background: linear-gradient(
    90deg,
    rgba(var(--focus-ring-rgb), 0),
    rgba(var(--focus-ring-rgb), 0.28),
    rgba(var(--focus-ring-rgb), 0)
  );
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem;
  margin: var(--space-md) 0 var(--space-xs);
  font-size: 0.95rem;
  color: var(--text-muted);
}

.breadcrumb a {
  color: var(--text-breadcrumb);
}

.scroll-cue {
  position: absolute;
  left: 50%;
  bottom: 1.2rem;
  transform: translateX(-50%);
  width: 34px;
  height: 34px;
  border-radius: 999px;
  border: 1px solid rgba(var(--rgb-text-ice), 0.55);
  display: grid;
  place-items: center;
  opacity: 0.78;
  pointer-events: auto;
  cursor: pointer;
}

.scroll-cue::after {
  content: "";
  width: 8px;
  height: 8px;
  border-right: 2px solid var(--ui-scroll-cue);
  border-bottom: 2px solid var(--ui-scroll-cue);
  transform: rotate(45deg);
  margin-top: -0.4rem;
}

.scroll-top {
  position: fixed;
  right: 1.75rem;
  --scroll-top-offset: 1.75rem;
  bottom: calc(var(--scroll-top-offset) + env(safe-area-inset-bottom, 0px));
  width: 44px;
  height: 44px;
  border-radius: 999px;
  border: 1px solid var(--border-heavy);
  background: rgba(15, 23, 34, 0.6);
  color: var(--heading);
  display: grid;
  place-items: center;
  opacity: 0;
  transform: translateY(8px);
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease, background 0.2s ease, border-color 0.2s ease;
  z-index: 900;
}

.scroll-top::before {
  content: "";
  width: 10px;
  height: 10px;
  border-left: 2px solid currentColor;
  border-top: 2px solid currentColor;
  transform: rotate(45deg);
  margin-top: 4px;
}

.scroll-top.is-visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.scroll-top:hover,
.scroll-top:focus {
  background: rgba(15, 23, 34, 0.85);
  border-color: rgba(var(--focus-ring-rgb), 0.6);
}

body.cookie-visible .scroll-top {
  --scroll-top-offset: 6.25rem;
}

.grid {
  display: grid;
  gap: var(--space-lg);
}

.grid-2 {
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.grid-3 {
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.grid-4 {
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.grid-5 {
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}

.card {
  background: var(--surface);
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
  box-shadow: var(--shadow-soft);
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.card p {
  margin-bottom: var(--space-sm);
}

.steps-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.brand-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.brand-list .card {
  text-align: center;
}

.service-card .card-icon {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  background: rgba(var(--focus-ring-rgb), 0.08);
  border: 1px solid rgba(var(--focus-ring-rgb), 0.22);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.service-card svg {
  width: 28px;
  height: 28px;
  stroke: rgba(var(--focus-ring-rgb), 0.95);
}

.case-card {
  padding: var(--space-md);
  gap: var(--space-xs);
}

.case-card-media {
  width: 100%;
  aspect-ratio: var(--case-study-ratio, 2 / 1);
  border-radius: var(--radius-md);
  margin-bottom: var(--space-sm);
  border: 1px solid var(--border-medium);
  overflow: hidden;
  display: block;
}

.case-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.case-card a {
  color: var(--link);
  font-weight: 600;
}

.band {
  padding: var(--space-xl);
  border-radius: var(--radius-lg);
  background: linear-gradient(
    130deg,
    rgba(var(--focus-ring-rgb), 0.08),
    rgba(214, 31, 51, 0.08)
  );
  border: 1px solid var(--border-medium);
}

.site-footer {
  padding: var(--space-xl) 0 var(--space-lg);
  border-top: 1px solid var(--border-subtle);
  background: var(--bg);
}

.footer-grid {
  display: grid;
  gap: var(--space-lg);
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  margin-bottom: var(--space-lg);
}

.footer-brand {
  color: var(--heading);
}

.footer-brand .logo-mark svg,
.footer-brand .logo-mark img {
  height: 44px;
  width: auto;
}

.footer-links a {
  display: block;
  margin-bottom: var(--space-xs);
  color: rgba(var(--rgb-text-slate), 0.95);
}

.footer-links a:hover,
.footer-links a:focus {
  color: var(--heading);
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: var(--space-sm);
  font-size: 0.9rem;
  color: rgba(var(--rgb-text-slate), 0.95);
}

.form {
  display: grid;
  gap: var(--space-md);
  background: var(--surface);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
  border: 1px solid var(--border-medium);
}

.form label {
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 0.3rem;
  display: block;
  color: var(--text-highlight);
}

.form input,
.form textarea,
.form select {
  width: 100%;
  padding: 0.75rem 0.9rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-medium);
  background: rgba(11, 18, 27, 0.75);
  color: var(--text);
}

.form textarea {
  min-height: 140px;
  resize: vertical;
}

.form-status {
  padding: 0.6rem 0.9rem;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  background: rgba(var(--focus-ring-rgb), 0.14);
  color: var(--text);
  border: 1px solid rgba(var(--focus-ring-rgb), 0.18);
}

.form-status[data-state="error"] {
  background: rgba(214, 31, 51, 0.18);
  border-color: rgba(214, 31, 51, 0.28);
}

.form-status[data-state="loading"] {
  background: rgba(var(--focus-ring-rgb), 0.1);
}

.form-status[data-state="success"] {
  background: rgba(62, 189, 112, 0.18);
  border-color: rgba(62, 189, 112, 0.35);
  color: #d9f6e4;
}

#contact-form {
  scroll-margin-top: 7rem;
}

#services {
  scroll-margin-top: 4rem;
}

.cookie-banner {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 0.85rem 1.25rem;
  background: rgba(var(--bg-rgb), 0.96);
  border-top: 1px solid var(--border-subtle);
  box-shadow: 0 -14px 34px rgba(var(--rgb-shadow), 0.55);
  z-index: 1001;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-md);
  flex-wrap: wrap;
  backdrop-filter: blur(10px);
}

.cookie-banner.hidden {
  display: none;
}

.cookie-banner p {
  margin: 0;
  color: var(--text-highlight);
  font-size: 0.95rem;
}

.cookie-actions {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  flex-wrap: wrap;
}

.cookie-link {
  color: var(--link);
  font-weight: 600;
}

.cookie-link:hover,
.cookie-link:focus {
  text-decoration: underline;
}

.form input:focus-visible,
.form textarea:focus-visible,
.form select:focus-visible {
  border-color: rgba(var(--focus-ring-rgb), 0.8);
  box-shadow: 0 0 0 3px rgba(var(--focus-ring-rgb), 0.22);
}

@media (max-width: 900px) {
  .hero {
    min-height: 60vh;
  }

  .nav-extras {
    gap: var(--space-xs);
    margin-left: 0;
  }

  .nav-contact-icons {
    gap: 0.5rem;
    margin-left: 0;
  }

  .nav-contact-icon {
    width: 44px;
    height: 44px;
  }
}

@media (max-width: 600px) {
  .container {
    width: min(100% - 1.5rem, var(--max-width));
  }

  .hero {
    min-height: 55vh;
  }

  .hero-panel {
    background: rgba(var(--bg-rgb), 0.92);
    max-width: 100%;
  }

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }

  #contact-form {
    scroll-margin-top: 6rem;
  }

  .btn {
    width: 100%;
  }

  /* Mobile cookie banner: compact, not a wall */
  .cookie-banner {
    padding: 0.6rem 0.85rem;
    gap: 0.55rem;
  }

  .cookie-banner p {
    font-size: 0.9rem;
    line-height: 1.35;
  }

  .cookie-actions {
    width: 100%;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.45rem;
    align-items: stretch;
  }

  .cookie-actions .btn {
    width: 100%;
    padding: 0.7rem 0.9rem;
  }

  .cookie-link {
    grid-column: 1 / -1;
    justify-self: end;
    font-size: 0.85rem;
    margin-top: 0.1rem;
  }

  body.cookie-visible {
    padding-bottom: 5.2rem;
  }

  .logo-mark svg,
  .logo-mark img {
    height: 48px;
    width: auto;
  }

  .footer-brand .logo-mark svg,
  .footer-brand .logo-mark img {
    height: 38px;
    width: auto;
  }

  .grid-2 {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  }

  .grid-3 {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  }

  .grid-4 {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  }

  .grid-5 {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  }

  .footer-grid {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  }

  .logo-text {
    font-size: 0.9rem;
    letter-spacing: 0.06em;
  }

  .scroll-top {
    right: 1.5rem;
    --scroll-top-offset: 1.25rem;
    bottom: calc(var(--scroll-top-offset) + env(safe-area-inset-bottom, 0px));
    width: 40px;
    height: 40px;
  }

  body.cookie-visible .scroll-top {
    --scroll-top-offset: 5.75rem;
  }
}

/* --- PROGRESSIVE HEADER COLLAPSE --- */

/* Step 1: Phone number becomes an icon first */
@media (max-width: 1140px) {
  .nav-phone { display: none; }
  .nav-contact-icon--phone { display: inline-flex; }
}

/* Step 2: Menu links move to Hamburger */
@media (max-width: 1025px) {
  .nav-toggle { display: flex; }
  .nav-links {
    position: absolute;
    right: 1.25rem;
    top: calc(100% + 0.5rem);
    flex-direction: column;
    background: rgba(var(--bg-rgb), 0.97);
    border: 1px solid var(--border-heavy);
    border-radius: var(--radius-md);
    padding: var(--space-md);
    display: none; /* Controlled by JS nav-open class */
    align-items: flex-start;
    min-width: 220px;
    box-shadow: 0 16px 44px rgba(var(--rgb-shadow), 0.55);
  }
  body.nav-open .nav-links { display: flex; }
}

/* Step 3: Request a Quote button becomes an icon (Email Icon acts as CTA) */
@media (max-width: 600px) {
  .nav-contact-icon--quote { 
    display: inline-flex; 
  }

  .nav-cta {
    margin-left: 0;
    width: 100%;
    justify-content: flex-start;
    display: none;
  }

  .mobile-only-cta {
    display: inline-flex;
  }
}

/* NEW Step 4: Hide the icon and rely on the burger menu */
@media (max-width: 440px) {
  .nav-contact-icon--quote {
    display: none; /* Hides the icon on very small screens */
  }
}

/* ============================================================
   MASTER COOKIE FIX (Safe & Clean)
   ============================================================ */

/* 1. VARIABLES */
:root {
    --cc-font-family: "Space Grotesk", "Segoe UI", sans-serif;
    --cc-bg: var(--surface);               /* #0f1722 */
    --cc-text: var(--text);                /* #e9f0f8 */
    
    /* Buttons */
    --cc-btn-primary-bg: var(--accent);    /* #d61f33 */
    --cc-btn-primary-color: #ffffff;
    --cc-btn-primary-border-color: var(--accent);
    --cc-btn-primary-hover-bg: var(--accent-strong);
    
    /* Secondary Button (Ghost) */
    --cc-btn-secondary-bg: transparent;
    --cc-btn-secondary-color: var(--text-muted);
    --cc-btn-secondary-border-color: var(--border-strong);
    
    /* Toggles */
    --cc-toggle-on-bg: var(--accent);
    --cc-toggle-off-bg: var(--surface-strong);
    --cc-toggle-on-knob-bg: #fff;
    
    /* Dimensions */
    --cc-modal-border-radius: var(--radius-lg);
    --cc-btn-border-radius: 999px;
}

/* 2. "YOUR CHOICES" TEXT FIX */
/* Forces the description text to be visible and have space */
#cc-main .pm__desc {
    display: block !important;
    color: var(--text-muted) !important;
    font-size: 0.95rem !important;
    line-height: 1.5 !important;
    margin-bottom: 24px !important;
}

#cc-main .pm__title {
    color: var(--text-muted) !important;
}

/* 3. ROW LAYOUT (The Bars) */
#cc-main .pm__section--toggle {
    background: transparent !important;
    border: none !important;
    padding: 0 !important;
    margin-bottom: 12px !important;
}

#cc-main .pm__section-title {
    position: relative !important;
    display: flex !important;
    align-items: center !important;
    width: 100% !important;
    min-height: 60px !important;
    
    /* KEY FIX: 60px padding on the left stops text from hitting the icon */
    padding: 0 16px 0 60px !important;    
    color: var(--heading) !important;
    background-color: var(--surface-strong) !important;
    border: 1px solid var(--border) !important;
    border-radius: 12px !important;
    box-shadow: none !important;
    transition: background 0.2s ease;
}

#cc-main .pm__section-title:hover {
    background-color: var(--surface-muted) !important;
    border-color: var(--border-strong) !important;
}

/* 4. CIRCLE ICON (Left Side) */
#cc-main .pm__section-arrow {
    position: absolute !important;
    left: 16px !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    
    width: 28px !important;
    height: 28px !important;
    
    display: flex !important;
    align-items: center;
    justify-content: center;
    
    background: #ffffff !important;
    border: none !important;
    border-radius: 50% !important;
    margin: 0 !important;
    z-index: 10;
}

#cc-main .pm__section-arrow svg {
    stroke: var(--surface) !important;
    stroke-width: 4px !important;
    width: 10px !important;
    height: 10px !important;
    transform: rotate(0deg) !important; 
    transition: transform 0.2s ease;
}

#cc-main .pm__section--toggle.is-expanded .pm__section-arrow svg {
    transform: rotate(90deg) !important;
}

/* 5. TOGGLES & RED TICKS */
#cc-main .section__toggle-wrapper {
    margin-left: auto !important;
}

#cc-main .toggle__icon-on {
    display: block !important;
    /* opacity: 1 !important; */
    transform: rotate(0deg) !important;
}

#cc-main .toggle__icon-on svg {
    stroke: var(--accent) !important;
    stroke-width: 3px !important;
    transform: scale(0.7) !important;
}

#cc-main .section__toggle:disabled + .toggle__icon .toggle__icon-on svg {
    stroke: #666 !important;
}

/* 6. BOTTOM CONSENT BAR */
#cc-main .cm--bar {
    left: 0; right: 0; bottom: 0;
    width: 100%; max-width: 100%;
    border-radius: 0;
    border-top: 1px solid var(--border);
    background-color: rgba(10, 15, 20, 0.95);
    backdrop-filter: blur(10px);
    padding: 1rem 1.5rem;
}


/* 7. REJECT BUTTON (Ghost Style) */
#cc-main .pm__footer .pm__btn-group .pm__btn:nth-child(2) {
    background-color: transparent !important;
    border: 1px solid var(--border-strong) !important;
    color: var(--text-muted) !important;
}
#cc-main .pm__footer .pm__btn-group .pm__btn:nth-child(2):hover {
    border-color: var(--text) !important;
    color: var(--text) !important;
}

#cc-main .cm__title {
    color: var(--heading) !important;
    font-weight: 600 !important;
    font-size: 1.1rem !important;
    margin-bottom: 0.5rem !important;
}

#cc-main .cm__desc {
    color: var(--text) !important;
    font-size: 0.95rem !important;
    margin-bottom: 1rem !important; /* Adds space between text and buttons */
}

/* =========================================
   NEW: Expandable Description Styles
   ========================================= */

/* 1. Style the Description Box */
#cc-main .pm__section-desc-wrapper {
    background-color: var(--surface-strong) !important;
    border: 1px solid var(--border) !important;
    border-top: none !important; /* Connects to the title bar */
    border-radius: 0 0 12px 12px !important;
    margin-top: -2px !important; /* Pulls it up to touch the title */
    overflow: hidden;
    transition: background-color 0.2s ease, border-color 0.2s ease !important;
}

/* 2. Style the Text inside */
#cc-main .pm__section-desc {
    padding: 16px 20px !important;
    color: var(--text-muted) !important;
    font-size: 0.9rem !important;
    line-height: 1.5 !important;
}

/* 3. Logic: Remove bottom corners of Title when Open */
/* This makes it look like one continuous card */
#cc-main .pm__section--toggle.is-expanded .pm__section-title {
    border-bottom-left-radius: 0 !important;
    border-bottom-right-radius: 0 !important;
    border-bottom-color: transparent !important; /* Hides the line between them */
}

/* 1. When hovering the Container, highlight the Title (Top part) */
#cc-main .pm__section--toggle:hover .pm__section-title {
    background-color: var(--surface-muted) !important;
    border-color: var(--border-strong) !important;
}

/* 2. When hovering the Container, highlight the Description (Bottom part) */
#cc-main .pm__section--toggle:hover .pm__section-desc-wrapper {
    background-color: var(--surface-muted) !important;
    border-color: var(--border-strong) !important;
}

/* 3. CLEANUP: Keep the middle line invisible when expanded & hovering */
/* This prevents a border line from appearing between the title and text when you hover */
#cc-main .pm__section--toggle.is-expanded:hover .pm__section-title {
    border-bottom-color: transparent !important;
}

#cc-main .pm__section--toggle.is-expanded:hover .pm__section-desc-wrapper {
    border-top: none !important;
}

/* ============================================================
   FIX: UNBOX THE FIRST SECTION ("Cookie Usage")
   ============================================================ */

/* 1. Reset the outer container of the first section */
#cc-main .pm__section:first-child {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    padding: 0 !important;
    margin-bottom: 1.5rem !important; /* Adds space before the switches start */
}

/* 2. Remove the "Card Header" styling from the Title */
#cc-main .pm__section:first-child .pm__section-title {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    padding: 0 !important;
    min-height: auto !important;
    margin-bottom: 0.75rem !important;
    
    /* Typography adjustments to look like a heading */
    color: var(--heading) !important; 
    font-weight: 600 !important;
    font-size: 1rem !important; /* Slightly larger heading */
}

/* 3. Remove the "Card Body" styling from the Description wrapper */
#cc-main .pm__section:first-child .pm__section-desc-wrapper {
    background: transparent !important;
    border: none !important;
    padding: 0 !important;
    margin: 0 !important;
    border-radius: 0 !important;
}

/* 4. Adjust the Description text padding */
#cc-main .pm__section:first-child .pm__section-desc {
    padding: 0 !important;
    color: var(--text-muted) !important;
    line-height: 1.6 !important;
}