/* === Site Header === */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background-color: var(--white);
  border-bottom: 1px solid var(--border);
  height: var(--header-height);
  transition: box-shadow 0.2s;
}

.site-header--scrolled {
  box-shadow: var(--shadow-md);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-height);
  gap: 2rem;
}

/* Logo */
.site-header__logo {
  display: flex;
  align-items: center;
  text-decoration: none;
  flex-shrink: 0;
}

.site-header__logo-img {
  height: 60px;
  width: auto;
}

/* Phone */
.site-header__right {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.site-header__phones {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.125rem;
}

.site-header__phone {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--navy);
  font-weight: 500;
  font-size: 0.9375rem;
  text-decoration: none;
  white-space: nowrap;
}

.site-header__phone:hover {
  color: var(--primary);
}

.site-header__phone svg {
  color: var(--accent);
  flex-shrink: 0;
}

/* Smartphone icon for direct line — site blue (office row keeps handset / accent icon) */
.site-header__phone--direct svg,
.site-header__phone-icon--mobile {
  color: var(--primary);
}

.site-header__phone--direct:hover svg {
  color: var(--primary-dark);
}

/* === Desktop Nav === */
.nav {
  display: flex;
  align-items: center;
}

.nav__list {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.nav__link {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.5rem 0.875rem;
  color: var(--text);
  font-size: 0.9375rem;
  font-weight: 500;
  border-radius: var(--radius-sm);
  transition: color 0.15s, background-color 0.15s;
  text-decoration: none;
  white-space: nowrap;
}

.nav__link:hover {
  color: var(--primary);
}

.nav__link--active {
  color: var(--accent);
}

.nav__chevron {
  transition: transform 0.2s;
}

/* Dropdown */
.nav__item--dropdown {
  position: relative;
}

.dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 260px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  padding: 0.5rem 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(4px);
  transition: opacity 0.15s, visibility 0.15s, transform 0.15s;
  z-index: 200;
}

.nav__item--dropdown:hover .dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.nav__item--dropdown:hover .nav__chevron {
  transform: rotate(180deg);
}

.dropdown__link {
  display: block;
  padding: 0.5rem 1rem;
  color: var(--text);
  font-size: 0.875rem;
  text-decoration: none;
  transition: background-color 0.1s, color 0.1s;
}

.dropdown__link:hover {
  background-color: var(--light);
  color: var(--primary);
}

/* === Hamburger === */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  padding: 8px;
  background: none;
  border: none;
  cursor: pointer;
  z-index: 200;
}

.hamburger__line {
  display: block;
  width: 100%;
  height: 2px;
  background-color: var(--navy);
  border-radius: 2px;
  transition: transform 0.2s, opacity 0.2s;
}

.hamburger--open .hamburger__line:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.hamburger--open .hamburger__line:nth-child(2) {
  opacity: 0;
}

.hamburger--open .hamburger__line:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* === Mobile Menu === */
.mobile-menu {
  display: none;
  position: fixed;
  top: var(--header-height);
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--white);
  padding: 1.5rem;
  overflow-y: auto;
  z-index: 90;
}

.mobile-menu--open {
  display: block;
}

.mobile-menu .nav__list {
  flex-direction: column;
  align-items: stretch;
  gap: 0;
}

.mobile-menu .nav__link {
  padding: 0.875rem 0;
  font-size: 1.0625rem;
  border-bottom: 1px solid var(--border);
}

.mobile-menu .dropdown {
  position: static;
  opacity: 1;
  visibility: visible;
  transform: none;
  box-shadow: none;
  border: none;
  border-radius: 0;
  padding: 0 0 0 1rem;
  min-width: 0;
}

.mobile-menu .dropdown__link {
  padding: 0.625rem 0;
  border-bottom: 1px solid var(--light-alt);
}

.mobile-menu__phones {
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.mobile-menu__phone {
  font-size: 1rem;
  font-weight: 600;
  color: var(--navy);
  text-decoration: none;
}

.mobile-menu__phone:hover {
  color: var(--primary);
}

.mobile-menu__phone--direct {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.mobile-menu__phone--direct .site-header__phone-icon--mobile {
  color: var(--primary);
  flex-shrink: 0;
}

.mobile-menu__phone--direct:hover .site-header__phone-icon--mobile {
  color: var(--primary-dark);
}

/* === Main Content Offset === */
main {
  padding-top: var(--header-height);
}

/* === Page Hero (for standard pages) === */
.page-hero {
  background-color: var(--navy);
  color: var(--white);
  padding: 3rem 0;
}

.page-hero h1 {
  color: var(--white);
}

.page-hero__subtitle {
  color: var(--gray);
  margin-top: 0.5rem;
  font-size: 1.125rem;
}

/* === Shared Hero (Services overview, About, individual service pages) === */
.services-hero {
  position: relative;
  background-color: var(--navy);
  background-size: cover;
  background-position: center;
  padding: 5rem 0 4rem;
  overflow: hidden;
}

.services-hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(15, 23, 42, 0.94) 0%,
    rgba(15, 23, 42, 0.82) 45%,
    rgba(15, 23, 42, 0.72) 100%
  );
}

.services-hero__inner {
  position: relative;
  z-index: 1;
}

.services-hero__title {
  font-family: 'Roboto Slab', 'Georgia', serif;
  font-size: 2.75rem;
  font-weight: 700;
  color: var(--white);
  line-height: 1.15;
  margin-bottom: 1.25rem;
  max-width: 20ch;
}

.services-hero__prose {
  max-width: 48rem;
}

.services-hero__prose p {
  color: rgba(226, 232, 240, 0.95);
  font-size: 1.0625rem;
  line-height: 1.7;
}

.services-hero__prose p + p {
  margin-top: 1rem;
}

.services-hero--plain {
  background-image: none !important;
}

/* === Breadcrumb === */
.breadcrumb ol {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
}

.breadcrumb a {
  color: var(--gray);
  text-decoration: none;
}

.breadcrumb a:hover {
  color: var(--white);
}

.breadcrumb li:not(:last-child)::after {
  content: "/";
  margin-left: 0.5rem;
  color: var(--gray);
}

.breadcrumb li[aria-current="page"] {
  color: var(--primary-light);
}

/* === Contact Footer (Service Pages) === */
.contact-footer {
  background-color: var(--light);
  border-top: 3px solid var(--accent);
  padding: 3rem 0;
}

.contact-footer__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.contact-footer__text h2,
.contact-footer__text h3 {
  font-size: 1.25rem;
  margin-bottom: 0.25rem;
}

.contact-footer__text p {
  color: var(--text-light);
}

.contact-footer__actions {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-shrink: 0;
}

.contact-footer__phone {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--navy);
  font-weight: 500;
  font-size: 1.0625rem;
  text-decoration: none;
  white-space: nowrap;
}

.contact-footer__phone:hover {
  color: var(--primary);
}

.contact-footer__phone svg {
  color: var(--primary);
}

.contact-footer__phones {
  display: flex;
  flex-direction: column;
  gap: 0.375rem;
}

.contact-footer__phone--direct svg {
  color: var(--primary);
}

/* === Site Footer === */
.site-footer {
  background-color: var(--navy);
  color: var(--gray);
  padding: 2.5rem 0 0;
}

.site-footer__inner {
  display: grid;
  grid-template-columns: 1.2fr 1.5fr 1fr;
  gap: 2.5rem;
  align-items: start;
}

.site-footer__logo {
  display: inline-block;
  text-decoration: none;
  margin-bottom: 0.75rem;
}

.site-footer__logo-img {
  height: 40px;
  width: auto;
  filter: brightness(0) invert(1);
}

.site-footer__tagline {
  font-size: 0.875rem;
  line-height: 1.5;
  color: var(--gray);
}

.site-footer__col h4 {
  color: var(--white);
  font-size: 0.8125rem;
  font-family: 'Roboto', sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.75rem;
}

.site-footer__col--services ul {
  columns: 2;
  column-gap: 1.5rem;
}

.site-footer__col ul {
  display: flex;
  flex-direction: column;
  gap: 0.375rem;
}

.site-footer__col--services ul li {
  break-inside: avoid;
}

.site-footer__col a {
  color: var(--gray);
  font-size: 0.8125rem;
  text-decoration: none;
  transition: color 0.15s;
}

.site-footer__col a:hover {
  color: var(--white);
}

.site-footer__contact-heading {
  margin-top: 1.25rem;
}

.site-footer__contact {
  gap: 0.625rem;
}

.site-footer__contact li {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
}

.site-footer__contact svg {
  flex-shrink: 0;
  margin-top: 2px;
  color: var(--accent);
}

.site-footer__contact-block {
  font-size: 0.8125rem;
  line-height: 1.45;
  color: var(--gray);
}

.site-footer__contact-label {
  display: block;
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--white);
  margin-bottom: 0.2rem;
}

.site-footer__bottom {
  margin-top: 2rem;
  padding: 1rem 0;
  border-top: 1px solid var(--navy-mid);
}

.site-footer__bottom p {
  font-size: 0.8125rem;
  color: var(--gray);
}

/* === Responsive: Tablet === */
@media (max-width: 1024px) {
  .site-footer__inner {
    grid-template-columns: 1fr 1fr;
  }

  .site-footer__brand {
    grid-column: 1 / -1;
  }
}

/* === Responsive: Mobile === */
@media (max-width: 768px) {
  .nav {
    display: none;
  }

  .site-header__right {
    display: none;
  }

  .hamburger {
    display: flex;
  }

  .services-hero {
    padding: 4rem 0 3rem;
  }

  .services-hero__title {
    font-size: 2rem;
    max-width: none;
  }

  .services-hero__prose {
    max-width: none;
  }

  .contact-footer__inner {
    flex-direction: column;
    text-align: center;
  }

  .contact-footer__actions {
    flex-direction: column;
  }

  .site-footer__inner {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .site-footer__col--services ul {
    columns: 1;
  }
}
