@layer reset,base,layout,components,sections,pages,utilities,overrides;
:root {
  --blue-de-france: #0d85d8;
  --primary-blue: #0d85d8;
  --eerie-black: #1c1c1c;
  --davys-grey: #3d3d3c;
  --seasalt: #eef0f2;
  --platinum: #daddd8;
  --ghost-white: #fafaff;
  --white: #fff;
  --alert-warning-bg: #fff3cd;
  --alert-warning-border: #ffc107;
  --alert-warning-text: #856404;
}
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}
body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  line-height: 1.6;
  color: var(--eerie-black);
}
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}
.skip-link {
  position: absolute;
  top: -100px;
  left: 0;
  background: var(--blue-de-france);
  color: #fff;
  padding: 12px 20px;
  z-index: 9999;
}
.skip-link:focus {
  top: 0;
}
.noscript-warning {
  background: var(--alert-warning-bg);
  border-bottom: 3px solid var(--alert-warning-border);
  padding: 15px 0;
  position: sticky;
  top: 0;
  z-index: 10000;
}
.header,
#header-placeholder {
  background: var(--ghost-white);
  padding: 20px 0;
  border-bottom: 1px solid var(--platinum);
  position: sticky;
  top: 0;
  width: 100%;
  z-index: 1000;
  min-height: 81px;
}
.nav-wrapper {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.logo img {
  height: 40px;
  width: auto;
}
.nav-menu > ul {
  display: flex;
  list-style: none;
  gap: 40px;
}
.nav-menu a {
  text-decoration: none;
  color: var(--eerie-black);
  font-weight: 500;
}
.hamburger {
  display: none;
  flex-direction: column;
  gap: 4px;
  background: 0 0;
  border: none;
  cursor: pointer;
  padding: 10px;
  min-width: 44px;
  min-height: 44px;
  z-index: 1001;
}
.hamburger span {
  width: 25px;
  height: 3px;
  background: var(--eerie-black);
}
/* Hero — service pages pattern (see web-applications / MVP critical): photo full-bleed, opaque scrim through copy column then long fade */
.hero {
  background-color: var(--seasalt);
  padding: 120px 0;
  position: relative;
  min-height: 500px;
  overflow: hidden;
  contain: layout style;
}
.hero-bg-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 72% center;
  z-index: 0;
  contain: strict;
  content-visibility: auto;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  /*
   * Solid opaque scrim through the copy column (~34rem) + margin past the last glyph;
   * fade begins only after that point (matches web-apps / MVP “solid left, soft dissolve” pattern).
   * clamp keeps narrow viewports from washing completely opaque when fixed rem exceeds width.
   */
  --hero-scrim-solid-end: clamp(22rem, 78vw, 38rem);
  background: linear-gradient(
    to right,
    #fafaff 0,
    #fafaff var(--hero-scrim-solid-end),
    rgba(250, 250, 255, 0.97) calc(var(--hero-scrim-solid-end) + 2rem),
    rgba(250, 250, 255, 0.82) calc(var(--hero-scrim-solid-end) + 9rem),
    rgba(250, 250, 255, 0.42) calc(var(--hero-scrim-solid-end) + 24rem),
    rgba(250, 250, 255, 0.08) calc(var(--hero-scrim-solid-end) + 40rem),
    rgba(250, 250, 255, 0) 100%
  );
  z-index: 1;
}
.hero-grid {
  position: relative;
  z-index: 2;
  max-width: 600px;
}
.hero-content {
  max-width: 34rem;
}
.hero-title {
  font-size: 48px;
  font-weight: 400;
  line-height: 1.2;
  margin-bottom: 20px;
  text-wrap: balance;
  contain: layout style;
}
.hero-title .highlight {
  color: var(--blue-de-france);
  font-weight: 700;
}
.hero-subtitle {
  color: var(--davys-grey);
  margin-bottom: 30px;
  line-height: 1.8;
}
.about-description {
  color: var(--davys-grey);
  margin-bottom: 25px;
  line-height: 1.8;
}
@media (max-width: 800px) {
  .hero-bg-image {
    display: block;
    width: 100%;
    height: 100%;
    left: 0;
    right: 0;
    top: 0;
    object-fit: cover;
    object-position: center 24%;
  }

  .hero-bg-image.hero-bg-right {
    object-position: 62% 22%;
  }
}
@media (max-width: 991px) {
  .hamburger {
    display: flex;
  }
  .nav-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 320px;
    height: 100vh;
    background: var(--ghost-white);
    z-index: 999;
  }
  .nav-menu.active {
    right: 0;
  }
  .nav-menu > ul {
    flex-direction: column;
    padding: 20px;
    margin-top: 60px;
  }
}
@media (max-width: 768px) {
  .container {
    padding: 0 15px;
  }
  .hero {
    padding: 60px 0 80px;
    min-height: auto;
  }
  .hero-title {
    font-size: 36px;
  }
}
@media (max-width: 435px) {
  .hero-title {
    font-size: 28px;
  }
}
.nav-item-has-dropdown {
  position: relative;
}
.nav-dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 220px;
  list-style: none;
  background: var(--ghost-white);
  border: 1px solid var(--platinum);
  border-radius: 8px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
  padding: 8px 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition:
    opacity 0.25s ease,
    transform 0.25s ease,
    visibility 0s linear 0.25s;
  z-index: 1001;
}
.nav-item-has-dropdown:hover > .nav-dropdown,
.nav-item-has-dropdown:focus-within > .nav-dropdown,
.nav-item-has-dropdown.open > .nav-dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  transition:
    opacity 0.25s ease,
    transform 0.25s ease,
    visibility 0s linear 0s;
}
.nav-dropdown a {
  display: flex;
  align-items: center;
  padding: 10px 18px;
  min-height: 44px;
  font-weight: 500;
  color: var(--eerie-black);
  white-space: nowrap;
  text-decoration: none;
}
.nav-dropdown a:hover,
.nav-dropdown a:focus {
  color: var(--blue-de-france);
  background: rgba(33, 150, 243, 0.08);
}
.nav-dropdown-toggle {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.nav-dropdown-toggle::after {
  display: none;
  content: none;
}
.nav-dropdown-caret {
  width: 0;
  height: 0;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-top: 5px solid currentColor;
  transition: transform 0.3s ease;
}
.nav-item-has-dropdown:hover .nav-dropdown-caret,
.nav-item-has-dropdown:focus-within .nav-dropdown-caret,
.nav-item-has-dropdown.open .nav-dropdown-caret {
  transform: rotate(180deg);
}
@media (max-width: 991px) {
  .nav-dropdown {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    border: none;
    background: transparent;
    padding: 0 0 8px 16px;
    margin: 0;
    min-width: 0;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
  }
  .nav-item-has-dropdown.open > .nav-dropdown {
    max-height: 500px;
  }
  .nav-dropdown a {
    padding: 12px 10px;
  }
  .nav-dropdown a:hover,
  .nav-dropdown a:focus {
    background: transparent;
  }
}
