@font-face { font-family: Poppins; src: url('poppins-regular.woff') format('woff'); font-weight: 400; font-display: swap; }
@font-face { font-family: Poppins; src: url('poppins-semibold.woff') format('woff'); font-weight: 600; font-display: swap; }
@font-face { font-family: Poppins; src: url('poppins-bold.woff') format('woff'); font-weight: 700; font-display: swap; }
@font-face { font-family: Poppins; src: url('poppins-black.woff') format('woff'); font-weight: 900; font-display: swap; }

:root {
  --brand-navy: #002246;
  --brand-deep: #001a36;
  --brand-light: #edf2f6;
  --brand-hover: #123e62;
  --brand-gold: #d79800;
  --brand-gold-soft: #fbf4e2;
  --brand-gold-ink: #805b00;
  --sidebar-width: 240px;
  --mobile-nav-height: 70px;
  --interior-gutter: clamp(1.25rem, 4vw, 3.75rem);
}

html, body { min-height: 100%; margin: 0; color: #555; background: #fff; font: 400 13px / 2.3076923077 Poppins, Arial, "Helvetica Neue", sans-serif; overflow-y: auto; }
*, *::before, *::after { box-sizing: border-box; }
h1, h2, h3, p, figure, blockquote, dl, dd, ul, ol { margin: 0; padding: 0; }
h1, h2, h3 { font: 400 30px / 1.2 Poppins, Arial, "Helvetica Neue", sans-serif; }
h2 { font-size: 26px; }
h3 { font-size: 24px; }
img { max-width: 100%; height: auto; vertical-align: middle; -webkit-user-drag: none; }
img, a:has(img), [data-gallery-enlarge] { -webkit-touch-callout: none; }
a { color: var(--brand-navy); text-decoration: none; }
a:hover { color: var(--brand-hover); text-decoration: none; }
button, input, select, textarea { margin: 0; font: inherit; }
textarea { overflow: auto; }
[hidden] { display: none !important; }

#header .desktop-sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  width: var(--sidebar-width);
  height: auto;
  z-index: 10;
  box-sizing: border-box;
  overflow-y: auto;
  color: #fff;
  background: #fff;
}

#header .desktop-sidebar > .header {
  display: grid;
  grid-template-rows: minmax(max-content, 1fr) auto minmax(max-content, 1fr);
  gap: clamp(.6rem, 2vh, 1.25rem);
  min-height: 100vh;
  min-height: 100dvh;
  padding-block: clamp(.75rem, 3vh, 1.75rem);
}

.sidebar-brand {
  align-self: start;
  justify-self: center;
  width: min(85%, 210px);
}

.sidebar-brand a, .sidebar-brand img {
  display: block;
  width: 100%;
  height: auto;
}

#header .desktop-sidebar .header__content-right { display: block; width: 100%; }
#header .desktop-sidebar .sidebar-menu { display: grid; gap: .25rem; padding: 0 .75rem; list-style: none; }
#header .sidebar-menu a {
  display: flex;
  align-items: center;
  gap: .875rem;
  float: none;
  width: 100%;
  height: auto;
  min-height: 3.25rem;
  padding: .4rem .875rem;
  border-left: 3px solid transparent;
  border-radius: 4px;
  box-shadow: none;
}
#header .navigation-icon {
  display: grid;
  flex: 0 0 34px;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 8px;
  background: #edf2f9;
}
#header .navigation-icon img { display: block; float: none; width: 22px; height: 22px; }
#header .sidebar-menu__label {
  color: var(--brand-navy);
  font-size: .94rem;
  line-height: 1.25;
  letter-spacing: .08em;
  text-transform: uppercase;
}
#header .sidebar-menu a:hover,
#header .sidebar-menu a[aria-current] { background: var(--brand-light); border-left-color: var(--brand-navy); }
#header .sidebar-menu a[aria-current] .navigation-icon { background: var(--brand-navy); }
#header .sidebar-menu a[aria-current] .navigation-icon img { filter: brightness(0) invert(1); }
#header .sidebar-menu a:focus-visible { outline-offset: -3px; }

.project-button { position: relative; display: flex; align-items: center; gap: 55px; margin-top: 20px; color: #555; font-size: .95rem; }
.project-button::before { flex: 0 0 55px; width: 55px; height: 55px; border: 1px solid #060505; border-radius: 50%; content: ''; }
.project-button:hover { color: #555; }
.project-button:hover::before { border-color: var(--brand-navy); background: var(--brand-navy); }
.project-button img { position: absolute; top: 0; left: 40px; width: 55px; height: 55px; transform: rotate(135deg); filter: grayscale(1) brightness(.52) sepia(1) hue-rotate(177deg) saturate(2); }

.sidebar-contacts {
  display: flex;
  align-self: end;
  justify-content: center;
  gap: .45rem;
  margin-inline: .9rem;
  padding-top: 1.05rem;
  border-top: 1px solid #dbe3ef;
}
.sidebar-contacts a {
  display: grid;
  width: 40px;
  height: 40px;
  place-items: center;
  border: 1px solid #dbe3ef;
  border-radius: 50%;
  background: #fff;
}
.sidebar-contacts a:hover { border-color: #a5b8d7; background: var(--brand-light); }
.sidebar-contacts img { display: block; width: 19px; height: 19px; }

#header .header-mobile { position: fixed; inset: 0 0 auto; z-index: 99; display: none; background: var(--brand-deep); }
#header .header-mobile__bar { display: grid; align-items: center; min-height: var(--mobile-nav-height); padding: 0; }
.header-mobile__bar-inner { display: flex; align-items: center; justify-content: space-between; }
.mobile-nav__container { width: 100%; padding-inline: 15px; }
.header-mobile .logo {
  display: block;
  max-width: min(70vw, 265px);
  background: #fff;
}
.header-mobile .logo img { display: block; width: 100%; max-height: 54px; object-fit: contain; }
.header-nav-menu-mobile { display: none; }
#header .header-nav-menu-mobile.is-open { display: block; max-height: calc(100dvh - var(--mobile-nav-height)); overflow-y: auto; }
#header .menu-mobile { list-style: none; }
#header .menu-mobile a { position: relative; display: flex; align-items: center; gap: .8rem; padding: 10px 25px 10px 15px; border-bottom: 1px solid #2a2828; color: #fff; text-transform: capitalize; }
#header .menu-mobile a:is(:hover, :focus-visible) { color: #fff; text-decoration: underline; text-underline-offset: .3em; }
#header .menu-mobile .menu-item a[aria-current] { text-decoration: underline; text-underline-offset: .3em; }
#header .header-nav-menu-mobile .sidebar-contacts { justify-content: flex-start; margin: .9rem 0 0; padding: .8rem 0 1rem .8rem; border-top-color: #486389; }
#header .header-nav-menu-mobile .sidebar-contacts a:focus-visible { outline-color: #fff; }
.hamburger { display: flex; width: 50px; height: 50px; align-items: center; justify-content: center; flex: 0 0 50px; padding: 0; border: 0; background: transparent; cursor: pointer; }
.hamburger:hover, .hamburger.is-active { background: #111; }
.hamburger:focus-visible { outline-color: #fff; outline-offset: -3px; }
.hamburger-box { position: relative; display: block; width: 20px; height: 15px; }
.hamburger-inner, .hamburger-inner::before, .hamburger-inner::after { position: absolute; left: 0; width: 20px; height: 2px; border-radius: 2px; background: #fff; }
.hamburger-inner { top: 0; }
.hamburger-inner::before { top: 6px; content: ''; }
.hamburger-inner::after { top: 12px; content: ''; }
.hamburger.is-active .hamburger-inner { top: 6px; background: transparent; }
.hamburger.is-active .hamburger-inner::before { top: 0; transform: rotate(45deg); }
.hamburger.is-active .hamburger-inner::after { top: 0; transform: rotate(-45deg); }

@media (prefers-reduced-motion: no-preference) {
  .project-button::before { transition: background-color .5s ease, border-color .5s ease; }
  .hamburger-inner::before, .hamburger-inner::after { transition: transform .16s ease, top .16s ease; }
}
.interior-main {
  display: flex;
  position: relative;
  flex-direction: column;
  width: calc(100% - var(--sidebar-width));
  min-height: 100vh;
  height: auto;
  margin-left: var(--sidebar-width);
  overflow-y: visible;
}
.interior-wrap { width: min(100% - 2 * var(--interior-gutter), 76rem); margin-inline: auto; }
.interior-header { background: var(--brand-light); border-block: 3px solid transparent; border-top-color: var(--brand-navy); }
.interior-header__inner { display: flex; align-items: center; justify-content: space-between; min-height: 4rem; gap: .75rem 1.5rem; padding-block: .65rem; }
.interior-breadcrumbs ol { display: flex; flex-wrap: wrap; align-items: baseline; gap: .25rem .65rem; padding: 0; margin: 0; list-style: none; }
.interior-breadcrumbs li { display: flex; align-items: baseline; gap: .65rem; color: var(--brand-deep); font-size: .94rem; }
.interior-breadcrumbs li + li::before { color: #516783; content: '/'; }
.interior-breadcrumbs a { color: var(--brand-navy); text-decoration: underline; text-underline-offset: .2em; }
.interior-breadcrumbs [aria-current] { font-weight: 600; }
.interior-header__phone { white-space: nowrap; padding: .45rem .875rem; color: #fff; background: var(--brand-navy); font-size: .82rem; font-weight: 600; }
.interior-header__phone:hover, .interior-header__phone:focus { color: #fff; background: var(--brand-deep); }

.site-footer {
  --footer-navy: var(--brand-navy);
  --footer-rule: #4b638f;
  clear: both;
  margin-top: auto;
  padding-inline: clamp(18px, 3.125vw, 60px);
  color: #e6eefb;
  background: var(--footer-navy);
  font: 400 clamp(15px, .86vw, 17px) / 1.55 system-ui, sans-serif;
}
.site-footer h2 { margin: 0 0 10px; color: #fff; font-size: clamp(17px, 1.04vw, 20px); font-weight: 700; line-height: 1.25; }
.site-footer a { color: inherit; text-decoration: none; overflow-wrap: anywhere; }
.site-footer a:hover { color: #fff; text-decoration: underline; text-underline-offset: .2em; }
.site-footer a:focus-visible { outline-color: #fff; }
.site-footer ul { margin: 0; padding: 0; list-style: none; }
.site-footer__cta, .site-footer__bottom { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 24px; }
.site-footer__cta { padding: clamp(20px, 1.45vw, 28px) 0 clamp(18px, 1.25vw, 24px); border-bottom: 1px solid var(--footer-rule); }
.site-footer__cta h2 { margin: 0; font-size: clamp(24px, 1.77vw, 34px); line-height: 1.2; }
.site-footer__cta a {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  gap: 22px;
  padding: 8px 18px;
  color: var(--footer-navy);
  background: #fff;
  font-size: 15px;
  font-weight: 700;
}
.site-footer__cta a:is(:hover, :focus-visible) { color: var(--footer-navy); background: var(--brand-gold-soft); text-decoration: none; }
.site-footer__cta a span { font-size: 1.3em; line-height: 1; }
.site-footer__grid { display: grid; grid-template-columns: minmax(0, 35fr) minmax(0, 32fr) minmax(0, 33fr); padding: clamp(22px, 1.62vw, 31px) 0 clamp(25px, 1.88vw, 36px); }
.site-footer__grid > :not(:last-child) { padding-right: 20px; }
.site-footer__logo { display: block; width: min(100%, 245px); }
.site-footer__logo img { display: block; width: 100%; height: auto; object-fit: contain; }
.site-footer__brand p { max-width: 27ch; margin: 11px 0 0; }
.site-footer__grid nav ul { display: grid; grid-template-rows: repeat(3, auto); grid-template-columns: repeat(2, minmax(0, 118px)); grid-auto-flow: column; gap: 10px 17px; }
.site-footer address { margin: 0 0 17px; color: inherit; font: inherit; }
.site-footer__contact li + li { margin-top: 3px; }
.site-footer__contact a, .site-footer__bottom a { color: #fff; font-weight: 700; }
.site-footer__bottom { border-top: 1px solid var(--footer-rule); padding: 18px 0 clamp(22px, 1.65vw, 32px); }
.site-footer__bottom small, .site-footer__bottom a { font-size: clamp(13px, .75vw, 15px); }
.site-footer__bottom a { display: inline-flex; align-items: center; gap: 9px; }
.site-footer__bottom a span { font-size: 1.55em; line-height: 1; }

@media (prefers-reduced-motion: no-preference) {
  .site-footer__cta a { transition: background-color .22s ease; }
  .site-footer__cta a span { transition: transform .22s ease; }
  .site-footer__cta a:is(:hover, :focus-visible) span { transform: translate(3px, -3px); }
}

@media (max-width: 991px) {
  #header .desktop-sidebar { display: none; }
  #header .header-mobile { display: block; }
  .interior-main { width: 100%; margin-left: 0; padding-top: var(--mobile-nav-height); }
}

@media (max-width: 600px) {
  .interior-header__inner { column-gap: .5rem; }
  .interior-header__phone { padding-inline: .6rem; }
  .site-footer__grid { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .site-footer__grid > :not(:last-child) { padding-right: 0; }
}

a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible {
  outline: 2px solid var(--brand-navy);
  outline-offset: 3px;
}


/* Logo palette accents. Inset rules preserve all existing layout dimensions. */
::selection { color: var(--brand-navy); background: var(--brand-gold-soft); }
#header .sidebar-menu a[aria-current] { border-left-color: var(--brand-gold); }
#header .sidebar-menu a:hover { border-left-color: var(--brand-gold); }
#header .sidebar-contacts a:is(:hover, :focus-visible) { border-color: var(--brand-gold-ink); background: var(--brand-gold-soft); }
#header .menu-mobile a[aria-current] { box-shadow: inset 3px 0 var(--brand-gold); }
#header .menu-mobile a:is(:hover, :focus-visible) { text-decoration-color: var(--brand-gold); }

:is(.about-hero, .services-hero, .team-hero, .portfolio-intro, .contact-hero, .careers-hero, .news-hero) { box-shadow: inset 0 -2px var(--brand-gold); }
.site-footer { box-shadow: inset 0 2px var(--brand-gold); }
.site-footer a:is(:hover, :focus-visible), .interior-breadcrumbs a:hover { text-decoration-color: var(--brand-gold); }
.site-footer .site-footer__cta a { box-shadow: inset 0 -2px var(--brand-gold); }
.site-footer .site-footer__cta a:is(:hover, :focus-visible) { background: var(--brand-gold); color: var(--brand-navy); }

.about-page .about-card:is(:hover, :focus-within),
.services-page .services-card:is(:hover, :focus-within),
.team-page .team-card:is(:hover, :focus-within),
.projects-page .project-card:is(:hover, :focus-within),
.news-page .news-card:is(:hover, :focus-within),
.news-page .news-related__card:is(:hover, :focus-visible),
.careers-page .career-role:is(:hover, :focus-within) { border-color: var(--brand-gold); }
.about-page .about-card:is(:hover, :focus-within),
.services-page .services-card:is(:hover, :focus-within),
.careers-page .career-role:is(:hover, :focus-within) { border-left-color: var(--brand-gold); }
.team-page .team-card:is(:hover, :focus-within) .team-card__content { border-top-color: var(--brand-gold); }

.projects-page .portfolio-tabs button[aria-selected="true"],
.news-page .news-filters a[aria-current],
.news-page .news-pagination a[aria-current] { box-shadow: inset 0 -3px var(--brand-gold); }
.projects-page .portfolio-tabs button:hover,
.news-page .news-filters a:hover,
.news-page .news-pagination a:hover { border-color: var(--brand-gold-ink); }

.about-page .about-hero__link:is(:hover, :focus-visible),
.services-page .services-hero__link:is(:hover, :focus-visible),
.team-page .team-hero__link:is(:hover, :focus-visible),
.contact-page .contact-button:is(:hover, :focus-visible),
.careers-page .career-button:is(:hover, :focus-visible),
.careers-page .career-upload:hover .career-button { border-color: var(--brand-gold); color: var(--brand-navy); background: var(--brand-gold); }
.news-page :is(.news-back, .news-card a, .news-prose a):hover { text-decoration-color: var(--brand-gold); }
.contact-page .contact-field :is(input, textarea, select):focus,
.careers-page .career-field :is(input, textarea, select):focus { border-color: var(--brand-gold-ink); outline-color: var(--brand-navy); }

.home-page .home-slider__controls { border-color: rgb(215 152 0 / 65%); }
.home-page .home-slider__dot[aria-current]::before { background: var(--brand-gold); }
.home-page .home-slider__controls button:is(:hover, :focus-visible) { color: var(--brand-navy); background: var(--brand-gold); }
.home-page .home-slider__slide figcaption a:hover { text-decoration-color: var(--brand-gold); }
.project-detail .project-detail__facts { box-shadow: inset 0 -2px var(--brand-gold); }
.project-detail .project-detail-gallery [data-gallery-enlarge]::after { border-color: var(--brand-gold); }
.project-image-viewer :is(.project-image-viewer__close, .project-image-viewer__controls button):is(:hover, :focus-visible) { color: var(--brand-navy); background: var(--brand-gold); border-color: var(--brand-gold); }
.site-consent button:first-of-type:is(:hover, :focus-visible) { color: var(--brand-navy); background: var(--brand-gold); border-color: var(--brand-gold); }

@media (prefers-reduced-motion: no-preference) {
  #header .sidebar-contacts a { transition: border-color .2s ease, background-color .2s ease; }
  .site-footer .site-footer__cta a { transition: background-color .2s ease, box-shadow .2s ease; }
}
