.header-inner { position: relative; }
.brand { flex-shrink: 0; }
.desktop-nav { gap: clamp(16px, 2.9vw, 26px); height: 100%; }
.nav-services { display: flex; align-items: center; align-self: stretch; }
.desktop-nav > a, .mega-toggle { white-space: nowrap; }
.mega-toggle { display: flex; align-items: center; justify-content: center; gap: 10px; height: 100%; padding: 0; border: 0; background: transparent; color: inherit; font: inherit; line-height: 1.5; }
.mega-toggle[aria-expanded="true"], .mega-toggle:hover { color: var(--accent); }
.mega-toggle span { display: block; width: 7px; height: 7px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; font-size: 0; transform: translateY(-2px) rotate(45deg); transition: transform 1300ms ease; }
.mega-toggle[aria-expanded="true"] span { transform: translateY(2px) rotate(225deg); }
.mega-menu[hidden] { display: none; }
.mega-mobile-link { display: none; }
.mega-menu { position: absolute; z-index: 60; top: 100%; right: 0; width: min(920px, 100%); display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 20px 28px; padding: 28px; max-height: calc(100dvh - 104px); overflow-y: auto; background: #fff; border: 1px solid #e6e8e6; border-radius: 0 0 16px 16px; box-shadow: 0 22px 50px #102d4626; }
.mega-intro { grid-column: 1 / -1; display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 0 0 18px; border-bottom: 1px solid #e6e8e6; }
.mega-intro .eyebrow { margin: 0; font-size: 10px; }
.mega-intro > p:not(.eyebrow) { display: none; }
.mega-intro > span { font-size: 12px; line-height: 1.5; color: var(--muted); font-weight: 400; }
.mega-services { display: flex; flex-direction: column; gap: 5px; }
.mega-services [data-service] { display: flex; align-items: center; gap: 12px; width: 100%; min-height: 58px; text-align: left; border: 1px solid transparent; border-radius: 8px; background: transparent; padding: 14px 12px; font-size: 14px; line-height: 1.4; font-weight: 600; color: var(--ink); transition: background 1300ms ease, border-color 1300ms ease; }
.mega-services [data-service] > span { color: #957c63; font-size: 10px; font-weight: 400; }
.mega-services [data-service] > b { margin-left: auto; font-size: 21px; font-weight: 400; color: var(--accent); }
.mega-services [data-service][data-selected="true"] { background: #f7f2ea; border-color: #eadcca; }
.mega-preview { align-self: start; overflow: hidden; border-radius: 12px; background: white; border: 1px solid #e8e3d9; }
.mega-preview img { width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; }
.mega-preview-copy { padding: 20px; }
.mega-preview h3 { font-size: 21px; line-height: 1.2; letter-spacing: -.03em; }
.mega-preview p { margin-top: 12px; font-size: 13px; font-weight: 400; line-height: 1.7; }
.mega-preview a { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 18px; padding-top: 12px; border-top: 1px solid var(--line); font-size: 12px; color: var(--ink); }
.mega-preview a span { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: var(--ink); color: white; font-size: 20px; }
@media (min-width: 901px) and (max-width: 1200px) {
  .brand img { width: 145px; }
  .desktop-nav { font-size: 12px; gap: 14px; }
  .header-inner { gap: 16px; }
  .mega-menu { grid-template-columns: 1.1fr 1fr; }
}
@media (min-width: 901px) {
  .header-inner { position: static; }
  .mega-menu {
    left: 0;
    right: 0;
    width: 100%;
    height: auto;
    display: flex;
    flex-wrap: wrap;
    align-items: stretch;
    gap: 22px 32px;
    padding: 24px max(32px, calc((100% - var(--width)) / 2)) 30px;
    max-height: calc(100dvh - 88px);
    scrollbar-width: thin;
    border: 0;
    border-top: 1px solid #e6e8e6;
    border-radius: 0;
    background: linear-gradient(110deg, #fff 35%, #faf6ef 100%);
  }
  .mega-intro { flex: 0 0 100%; padding-bottom: 16px; }
  .mega-services { flex: 0 0 32%; min-width: 0; gap: 3px; }
  .mega-services [data-service] { min-height: 48px; padding: 10px 12px; font-size: 14px; }
  .mega-services [data-service][data-selected="true"] {
    background: #f6ebdd;
    border-color: #e6cfb3;
    box-shadow: inset 3px 0 var(--accent);
  }
  .mega-preview {
    display: flex;
    flex: 1 1 0;
    min-width: 0;
    min-height: 300px;
    align-self: stretch;
    border: 0;
    border-radius: 14px;
    background: radial-gradient(ellipse at top right, #245268, transparent 75%), #102f40;
    box-shadow: 0 10px 28px #102d4612;
  }
  .mega-preview img {
    flex: 0 0 43%;
    width: 43%;
    min-width: 0;
    height: auto;
    aspect-ratio: auto;
    align-self: stretch;
    object-fit: cover;
  }
  .mega-preview-copy { display: flex; flex: 1; min-width: 0; flex-direction: column; justify-content: center; align-items: flex-start; padding: clamp(20px, 2.4vw, 36px); }
  .mega-preview-copy::before { content: ''; width: 34px; height: 3px; margin-bottom: 20px; background: var(--accent); }
  .mega-preview h3 { color: #fff; font-size: clamp(22px, 2vw, 29px); line-height: 1.16; }
  .mega-preview p { color: #d3e0e5; margin-top: 15px; font-size: 13px; line-height: 1.75; }
  .mega-preview a { width: 100%; color: #fff; border-top-color: #ffffff30; margin-top: 24px; padding-top: 16px; }
  .mega-preview a span { flex-shrink: 0; width: 36px; height: 36px; background: #f6a36b; color: #102f40; }
  .mega-preview a:hover span { background: #fff; }
}
@media (max-width: 900px) {
  .header-inner { position: static;}
  .desktop-nav { gap: 0; height: auto; max-height: calc(100dvh - 74px); overflow-y: auto; }
  .nav-services { display: block; }
  .mega-toggle { width: 100%; height: auto; justify-content: space-between; padding: 13px 0; }
  .mega-menu { position: static; transform: none; width: 100%; max-height: none; overflow: visible; grid-template-columns: 1fr; gap: 0; padding: 8px 0; border: 0; border-radius: 0; box-shadow: none; }
  .mega-intro, .mega-preview, .mega-services [data-service] { display: none; }
  .mega-mobile-link { display: flex; align-items: center; gap: 12px; min-height: 56px; padding: 12px; border: 1px solid transparent; border-radius: 8px; color: var(--ink); font-size: 13px; font-weight: 600; line-height: 1.5; }
  .mega-mobile-link > span { flex-shrink: 0; font-size: 10px; font-weight: 400; color: #957c63; }
  .mega-mobile-link:hover, .mega-mobile-link:focus-visible { background: #f7f2ea; border-color: #eadcca; }
  .mega-services [data-service] { padding: 12px 8px; font-size: 12px; }
  .mega-preview-copy { padding: 14px; }
  .mega-preview h3 { font-size: 18px; }
}
@media (max-width: 540px) {
  .header-inner { position: static; padding: 10px;}
  .mega-menu { grid-template-columns: 1fr; }
  .mega-services { gap: 2px; }
  .mega-services [data-service] { padding: 10px; }
  .mega-preview img { aspect-ratio: 2 / 1; }
}
