/* ============================================================
   DENALI WordPress Theme — global.css
   Shared styles: reset, utilities, header, footer, back-to-top.
   All page stylesheets @import this file.
   Design tokens live in global-variables.css.
   ============================================================ */

@import url('global-variables.css');

/* ──────────────────────────────────────────────────────────────
   GOOGLE FONTS
────────────────────────────────────────────────────────────── */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Material+Symbols+Outlined:opsz,wght,FILL,GRAD@20..48,100..700,0..1,-50..200&display=swap');

/* ──────────────────────────────────────────────────────────────
   RESET & BASE
────────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html  { scroll-behavior: smooth; font-size: 16px; }

body  {
  font-family: var(--font-family);
  background: var(--surface);
  color: var(--on-surface);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img     { display: block; max-width: 100%; height: auto; }
a       { text-decoration: none; color: inherit; }
ul      { list-style: none; }
address { font-style: normal; }
button  { cursor: pointer; font-family: inherit; border: none; background: none; }
details > summary                    { list-style: none; }
details > summary::-webkit-details-marker { display: none; }

/* ──────────────────────────────────────────────────────────────
   LAYOUT UTILITIES
────────────────────────────────────────────────────────────── */
.container {
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.container-narrow { max-width: var(--container-narrow); }

.section             { padding-block: var(--space-section); }
.section-bg-light    { background: var(--surface-white); }
.section-bg-dark     { background: var(--on-dark); }

.section-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: var(--space-3xl);
  gap: var(--space-lg);
  flex-wrap: wrap;
}
.section-header.text-center {
  flex-direction: column;
  align-items: center;
  text-align: center;
}
.section-header p { max-width: 40rem; }
.section-title     { margin-bottom: 4rem; }

.grid   { display: grid; gap: var(--gutter); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

@media (max-width: 900px) { .grid-3 { grid-template-columns: 1fr; } }
@media (max-width: 900px) { .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .grid-2, .grid-4 { grid-template-columns: 1fr; } }

/* ──────────────────────────────────────────────────────────────
   TYPOGRAPHY UTILITIES
────────────────────────────────────────────────────────────── */
.display-xl {
  font-size: clamp(2.5rem, 6vw, var(--fs-4xl));
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.02em;
}
.headline-lg {
  font-size: clamp(1.75rem, 4vw, var(--fs-3xl));
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.01em;
}
.headline-md {
  font-size: var(--fs-xl);
  font-weight: 600;
  line-height: 1.3;
  margin-bottom: var(--space-md);
}
.body-lg { font-size: var(--fs-lg); line-height: 1.6; }
.body-md { font-size: var(--fs-base); line-height: 1.5; }
.body-sm { font-size: var(--fs-sm); line-height: 1.5; }

.text-primary  { color: var(--primary); }
.text-muted    { color: var(--on-surface-variant); }
.text-white    { color: #fff; }
.text-white-80 { color: rgba(255,255,255,.80); }
.text-center   { text-align: center; }

.eyebrow {
  display: block;
  font-size: var(--fs-xs);
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 0.5rem;
}
.eyebrow-sm { font-size: 0.7rem; margin-bottom: 0.5rem; }

.line-clamp-2 {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ──────────────────────────────────────────────────────────────
   BUTTONS
────────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-family: var(--font-family);
  font-weight: 600;
  border-radius: var(--radius-lg);
  transition:
    background var(--duration-base) var(--ease-out),
    color var(--duration-base) var(--ease-out),
    box-shadow var(--duration-base) var(--ease-out),
    transform var(--duration-fast) var(--ease-spring);
  white-space: nowrap;
  cursor: pointer;
}
.btn:active { transform: scale(.96); }

.btn-primary {
  background: var(--primary);
  color: #fff;
  padding: 0.6rem 1.5rem;
  font-size: var(--fs-base);
}
.btn-primary:hover { background: var(--primary-light); box-shadow: var(--shadow-md); }

.btn-pill       { border-radius: var(--radius-full); }
.btn-lg         { padding: 1rem 2rem; font-size: var(--fs-lg); border-radius: var(--radius-xl); }
.btn-xl         { padding: 1.25rem 3rem; font-size: var(--fs-lg); font-weight: 700; }

.btn-icon {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}
.btn-icon .material-symbols-outlined { font-size: 1.125rem; }

.btn-ghost {
  background: rgba(255,255,255,.12);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,.30);
  color: #fff;
}
.btn-ghost:hover { background: rgba(255,255,255,.22); }

.btn-outline {
  background: transparent;
  border: 2px solid var(--primary);
  color: var(--primary);
  padding: 0.9rem 2rem;
  border-radius: var(--radius-xl);
  font-weight: 600;
}
.btn-outline:hover { background: var(--primary); color: #fff; }

.btn-white {
  background: #fff;
  color: var(--on-surface);
  border-radius: var(--radius-full);
  padding: 1rem 2.5rem;
  font-size: var(--fs-lg);
  font-weight: 700;
}
.btn-white:hover { box-shadow: var(--shadow-xl); }

.btn-soft {
  background: rgba(114, 121, 108, .15);
  color: var(--on-surface);
  padding: 0.5rem 1.5rem;
  border-radius: var(--radius-full);
  font-size: var(--fs-base);
  font-weight: 600;
}
.btn-soft:hover { background: rgba(114, 121, 108, .28); }

.btn-text-arrow {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--secondary);
  font-weight: 600;
  font-size: var(--fs-base);
  background: none;
  border: none;
  cursor: pointer;
  transition: gap var(--duration-base) var(--ease-out);
}
.btn-text-arrow:hover { gap: 0.7rem; }
.btn-text-arrow .material-symbols-outlined { font-size: 1.25rem; }

.btn-cta-white {
  background: #fff;
  color: var(--primary);
  border-radius: var(--radius-xl);
}
.btn-cta-white:hover { box-shadow: var(--shadow-xl); }

.btn-cta-ghost {
  background: rgba(255,255,255,.12);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,.30);
  color: #fff;
  border-radius: var(--radius-xl);
}
.btn-cta-ghost:hover { background: rgba(255,255,255,.22); }

/* ──────────────────────────────────────────────────────────────
   LABEL PILL
────────────────────────────────────────────────────────────── */
.label-pill {
  display: inline-block;
  padding: 0.35rem 1rem;
  background: rgba(255,255,255,.15);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255,255,255,.25);
  border-radius: var(--radius-full);
  color: #fff;
  font-size: var(--fs-xs);
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  margin-bottom: var(--space-lg);
}

/* ──────────────────────────────────────────────────────────────
   HEADER  ← from homepage (styles.css) — canonical style
────────────────────────────────────────────────────────────── */
.site-header {
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 1000;
  height: 5rem;
  background: var(--glass-fill);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(194, 201, 185, .20);
  box-shadow: var(--shadow-sm);
  transition:
    height var(--duration-base) var(--ease-out),
    box-shadow var(--duration-base) var(--ease-out);
}
.site-header.scrolled { height: 4rem; box-shadow: var(--shadow-md); }

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

/* Logo */
.logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
}
.logo-icon  { color: var(--primary); font-size: 1.875rem; }
.logo-text  { font-size: 1.25rem; font-weight: 700; color: var(--primary); letter-spacing: -0.01em; }
.logo-light .logo-text { color: var(--surface-white); }
.logo-light .logo-icon { color: var(--primary-fixed-dim); }

/* Custom image logo — sized via inline CSS injected by denali_logo_inline_css() */
.logo .custom-logo-link { display: flex; align-items: center; line-height: 0; }
.logo .custom-logo      { display: block; width: auto; height: 40px; max-height: 40px; object-fit: contain; }

/* Desktop nav */
.nav-desktop { display: flex; align-items: center; gap: 2rem; }
.nav-link {
  font-weight: 500;
  color: var(--on-surface-variant);
  position: relative;
  padding-bottom: 2px;
  transition: color var(--duration-base) var(--ease-out);
}
.nav-link::after {
  content: '';
  position: absolute;
  left: 0; bottom: -2px;
  width: 0; height: 2px;
  background: var(--primary);
  border-radius: var(--radius-full);
  transition: width var(--duration-base) var(--ease-out);
}
.nav-link:hover, .nav-link.active         { color: var(--primary); }
.nav-link.active::after, .nav-link:hover::after { width: 100%; }

/* Services dropdown */
.nav-dropdown-wrap { position: relative; }
.nav-link-dropdown {
  display: flex;
  align-items: center;
  gap: 0.2rem;
  background: none;
  border: none;
  padding: 0;
  font-size: var(--fs-base);
  font-family: var(--font-family);
  cursor: pointer;
  padding-bottom: 2px;
}
.dropdown-chevron {
  font-size: 1rem !important;
  transition: transform var(--duration-base) var(--ease-out);
}
.nav-link-dropdown[aria-expanded="true"] .dropdown-chevron,
.nav-dropdown-wrap:hover .dropdown-chevron { transform: rotate(180deg); }

.nav-dropdown {
  position: absolute;
  top: calc(100% + 0.85rem);
  left: 50%;
  min-width: 16.5rem;
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid rgba(194,201,185,.42);
  border-radius: 1.25rem;
  box-shadow: 0 24px 60px rgba(11, 28, 48, .16);
  padding: 0.55rem;
  opacity: 0;
  visibility: hidden;
  transform: translate(-50%, -8px) scale(.98);
  transform-origin: top center;
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  transition:
    opacity var(--duration-base) var(--ease-out),
    transform var(--duration-base) var(--ease-out),
    visibility var(--duration-base);
  z-index: 200;
}
.nav-dropdown::before {
  content: '';
  position: absolute;
  top: -7px;
  left: 50%;
  width: 14px;
  height: 14px;
  background: rgba(255, 255, 255, 0.96);
  border-left: 1px solid rgba(194,201,185,.42);
  border-top: 1px solid rgba(194,201,185,.42);
  transform: translateX(-50%) rotate(45deg);
}
.nav-dropdown-wrap:hover .nav-dropdown,
.nav-dropdown.open {
  opacity: 1;
  visibility: visible;
  transform: translate(-50%, 0) scale(1);
}
.dropdown-item {
  position: relative;
  display: flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.82rem 1rem 0.82rem 1.05rem;
  border-radius: 0.95rem;
  font-size: var(--fs-sm);
  font-weight: 600;
  color: var(--on-surface-variant);
  overflow: hidden;
  transition:
    background var(--duration-fast) var(--ease-out),
    color var(--duration-fast) var(--ease-out),
    transform var(--duration-fast) var(--ease-out),
    box-shadow var(--duration-fast) var(--ease-out),
    padding-left var(--duration-fast) var(--ease-out);
}
.dropdown-item::before {
  content: '';
  width: 0.5rem;
  height: 0.5rem;
  flex: 0 0 0.5rem;
  border-radius: var(--radius-full);
  background: var(--primary-fixed-dim);
  opacity: .45;
  transition:
    opacity var(--duration-fast) var(--ease-out),
    background var(--duration-fast) var(--ease-out),
    transform var(--duration-fast) var(--ease-out);
}
.dropdown-item::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(36, 76, 13, .10), rgba(0, 98, 157, .08));
  opacity: 0;
  transition: opacity var(--duration-fast) var(--ease-out);
  z-index: -1;
}
.dropdown-item:hover,
.dropdown-item:focus-visible {
  color: var(--primary);
  background: rgba(36, 76, 13, .06);
  box-shadow: inset 0 0 0 1px rgba(36, 76, 13, .12);
  padding-left: 1.25rem;
  transform: translateX(2px);
  outline: none;
}
.dropdown-item:hover::before,
.dropdown-item:focus-visible::before,
.dropdown-item-active::before {
  opacity: 1;
  background: var(--primary);
  transform: scale(1.15);
}
.dropdown-item:hover::after,
.dropdown-item:focus-visible::after,
.dropdown-item-active::after { opacity: 1; }
.dropdown-item-active {
  color: var(--primary) !important;
  font-weight: 700;
  background: rgba(36, 76, 13, .08);
  box-shadow: inset 0 0 0 1px rgba(36, 76, 13, .14);
}

/* Header actions */
.header-actions { display: flex; align-items: center; gap: 1rem; }

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 1.5rem;
  height: 1.125rem;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
}
.hamburger span {
  display: block;
  height: 2px;
  background: var(--on-surface);
  border-radius: var(--radius-full);
  transition: transform var(--duration-base) var(--ease-out), opacity var(--duration-base);
}
.hamburger.open span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* Mobile nav */
.nav-mobile {
  display: none;
  flex-direction: column;
  gap: 0;
  background: linear-gradient(160deg, var(--primary) 0%, var(--tertiary) 100%);
  border-top: 1px solid rgba(255, 255, 255, 0.10);
  padding: 0;
  max-height: 0;
  overflow: hidden;
  transition:
    max-height var(--duration-slow) var(--ease-out),
    padding var(--duration-slow) var(--ease-out);
}
.nav-mobile.open {
  display: flex;
  max-height: 42rem;
  padding: var(--space-md) 0;
}
.nav-mobile .nav-link {
  padding: var(--space-sm) var(--gutter);
  display: block;
  color: rgba(255, 255, 255, 0.90) !important;
  font-weight: 500;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  transition: background var(--duration-base), color var(--duration-base), padding-left var(--duration-base);
}
.nav-mobile .nav-link:last-child { border-bottom: none; }
.nav-mobile .nav-link:hover,
.nav-mobile .nav-link:focus {
  background: rgba(255, 255, 255, 0.10);
  color: #ffffff !important;
  padding-left: calc(var(--gutter) + 0.25rem);
}

.nav-mobile.open {
  overflow-y: auto;
  overscroll-behavior: contain;
}

/* ──────────────────────────────────────────────────────────────
   FOOTER  ← from homepage (styles.css) — canonical style
────────────────────────────────────────────────────────────── */
.site-footer {
  background: var(--tertiary);
  padding-top: var(--space-section);
  padding-bottom: var(--space-xl);
  position: relative;
  overflow: hidden;
}

.footer-faded-bg {
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  font-size: clamp(3rem, 10vw, 8rem);
  font-weight: 800;
  color: transparent;
  -webkit-text-stroke: 1px rgba(255,255,255,.06);
  white-space: nowrap;
  pointer-events: none;
  user-select: none;
  line-height: 1;
  letter-spacing: -0.02em;
}

.footer-grid {
  position: relative;
  z-index: 10;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: var(--gutter);
}

.footer-brand .logo { margin-bottom: 2rem; }

.footer-tagline {
  color: rgba(218, 226, 253, .70);
  font-size: var(--fs-sm);
  line-height: 1.6;
  max-width: 18rem;
  margin-bottom: 2rem;
}

.social-links { display: flex; gap: 1rem; }
.social-btn {
  width: 2.5rem; height: 2.5rem;
  border-radius: var(--radius-full);
  border: 1px solid rgba(255,255,255,.20);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  transition: background var(--duration-base) var(--ease-out);
}
.social-btn:hover { background: rgba(255,255,255,.12); }
.social-btn .material-symbols-outlined { font-size: 1.125rem; }

.footer-heading { color: #fff; font-weight: 700; margin-bottom: 2rem; font-size: var(--fs-base); }

.footer-links { display: flex; flex-direction: column; gap: 1rem; }
.footer-links a {
  color: rgba(218, 226, 253, .65);
  font-size: var(--fs-sm);
  display: inline-block;
  transition: color var(--duration-base), transform var(--duration-base) var(--ease-out);
}
.footer-links a:hover      { color: #fff; transform: translateX(4px); }
.footer-link-bold          { font-weight: 700 !important; color: rgba(218,226,253,.90) !important; }
.footer-link-bold:hover    { color: #fff !important; }

.footer-address {
  color: rgba(218, 226, 253, .65);
  font-size: var(--fs-sm);
  line-height: 1.7;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.footer-bottom {
  position: relative;
  z-index: 10;
  margin-top: 6rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(255,255,255,.10);
}
.footer-bottom-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}
.footer-copy {
  color: rgba(218, 226, 253, .45);
  font-size: var(--fs-xs);
  font-weight: 600;
  letter-spacing: .04em;
}
.footer-legal { display: flex; gap: 2rem; }
.footer-legal a {
  color: rgba(218, 226, 253, .45);
  font-size: var(--fs-xs);
  font-weight: 600;
  letter-spacing: .04em;
  transition: color var(--duration-base);
}
.footer-legal a:hover { color: #fff; }

/* ──────────────────────────────────────────────────────────────
   BACK TO TOP  ← from homepage (styles.css) — canonical style
────────────────────────────────────────────────────────────── */
.back-to-top {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  z-index: 999;
  width: 3rem;
  height: 3rem;
  border-radius: var(--radius-full);
  background: var(--primary);
  color: #fff;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-lg);
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px) scale(0.85);
  transition:
    opacity var(--duration-base) var(--ease-out),
    transform var(--duration-base) var(--ease-spring),
    visibility var(--duration-base),
    background var(--duration-base);
}
.back-to-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
}
.back-to-top:hover {
  background: var(--primary-light);
  transform: translateY(-3px) scale(1.08);
  box-shadow: var(--shadow-xl);
}
.back-to-top:active { transform: scale(0.95); }
.back-to-top .material-symbols-outlined { font-size: 1.25rem; }

/* ──────────────────────────────────────────────────────────────
   SCROLL REVEAL (JS-driven)
────────────────────────────────────────────────────────────── */
.scroll-reveal {
  opacity: 0;
  transform: translateY(28px);
  transition:
    opacity var(--duration-slower) var(--ease-out),
    transform var(--duration-slower) var(--ease-out);
}
.scroll-reveal.in-view      { opacity: 1; transform: translateY(0); }
.scroll-reveal:nth-child(2) { transition-delay: 100ms; }
.scroll-reveal:nth-child(3) { transition-delay: 200ms; }
.scroll-reveal:nth-child(4) { transition-delay: 300ms; }

/* Reveal up animation (used on hero sections) */
.reveal-up {
  opacity: 0;
  transform: translateY(30px);
  animation: revealUp 0.7s var(--ease-out) forwards;
}
.reveal-hero { animation: revealHero 0.6s var(--ease-out) forwards; opacity: 0; }
@keyframes revealUp  { to { opacity: 1; transform: translateY(0); } }
@keyframes revealHero{ to { opacity: 1; transform: translateY(0); } }
.reveal-delay-1 { animation-delay: 0.12s; }
.reveal-delay-2 { animation-delay: 0.24s; }
.reveal-delay-3 { animation-delay: 0.36s; }

/* ──────────────────────────────────────────────────────────────
   HOVER CARD
────────────────────────────────────────────────────────────── */
.hover-card {
  transition:
    transform var(--duration-slow) var(--ease-spring),
    box-shadow var(--duration-slow) var(--ease-out);
}
.hover-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-xl);
}

/* ──────────────────────────────────────────────────────────────
   RESPONSIVE — HEADER
────────────────────────────────────────────────────────────── */
@media (max-width: 900px) {
  :root { --space-section: 5rem; }
  .nav-desktop  { display: none; }
  .hamburger    { display: flex; }
}

@media (max-width: 600px) {
  :root { --space-section: 4rem; --gutter: 1.25rem; }
}

/* ──────────────────────────────────────────────────────────────
   RESPONSIVE — FOOTER
────────────────────────────────────────────────────────────── */
@media (max-width: 1100px) {
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 600px) {
  .footer-grid         { grid-template-columns: 1fr; }
  .footer-bottom-inner { flex-direction: column; text-align: center; }
}

/* Premium active page indicators — added for clear navigation state */
.nav-desktop .nav-link.active,
.nav-desktop .nav-link[aria-current="page"] {
  color: var(--primary);
  font-weight: 700;
}

.nav-desktop .nav-link.active::after,
.nav-desktop .nav-link[aria-current="page"]::after {
  width: 100%;
  height: 3px;
  bottom: -7px;
  background: linear-gradient(90deg, var(--primary), var(--secondary));
  box-shadow: 0 6px 16px rgba(36, 76, 13, .22);
}

.nav-link-dropdown.active {
  color: var(--primary);
  font-weight: 700;
}

.nav-link-dropdown.active .dropdown-chevron {
  color: var(--primary);
}

.nav-mobile .nav-link.active {
  color: var(--primary-dim) !important;
  font-weight: 700;
  background: rgba(255, 255, 255, 0.12);
  border-left: 4px solid var(--primary-dim);
  padding-left: calc(var(--gutter) - 4px);
}

.dropdown-item.dropdown-item-active {
  color: var(--primary) !important;
  font-weight: 800;
}

.footer-links a.footer-link-bold,
.footer-links a.footer-link-active {
  position: relative;
  color: #fff !important;
  font-weight: 800 !important;
  padding-left: .85rem;
}

.footer-links a.footer-link-bold::before,
.footer-links a.footer-link-active::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  width: .38rem;
  height: .38rem;
  border-radius: 999px;
  background: var(--primary-fixed-dim);
  transform: translateY(-50%);
  box-shadow: 0 0 0 4px rgba(178, 245, 106, .10);
}

/* Related Services cross-navigation on service pages */
.related-services-section {
  position: relative;
  padding: clamp(4rem, 7vw, 6.5rem) 0;
  background:
    radial-gradient(circle at top left, rgba(121, 169, 115, 0.14), transparent 34rem),
    linear-gradient(135deg, #f7faf8 0%, #ffffff 48%, #eef5f8 100%);
  overflow: hidden;
}

.related-services-section::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image: linear-gradient(rgba(8, 77, 144, 0.055) 1px, transparent 1px), linear-gradient(90deg, rgba(8, 77, 144, 0.055) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: linear-gradient(to bottom, transparent, #000 18%, #000 82%, transparent);
}

.related-services-section .container {
  position: relative;
  z-index: 1;
}

.related-services-header {
  max-width: 760px;
  margin: 0 auto clamp(2rem, 4vw, 3rem);
  text-align: center;
}

.related-services-header h2 {
  margin: 0.65rem 0 1rem;
  color: #073a6f;
  font-size: clamp(2rem, 4vw, 3.25rem);
  line-height: 1.05;
  letter-spacing: -0.04em;
}

.related-services-header p {
  margin: 0;
  color: rgba(16, 34, 53, 0.72);
  font-size: clamp(1rem, 1.6vw, 1.12rem);
  line-height: 1.75;
}

.related-services-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(1rem, 2vw, 1.5rem);
}

.related-service-card {
  position: relative;
  display: flex;
  min-height: 310px;
  flex-direction: column;
  align-items: flex-start;
  padding: clamp(1.35rem, 2.4vw, 2rem);
  border: 1px solid rgba(8, 77, 144, 0.12);
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.88);
  box-shadow: 0 24px 70px rgba(8, 43, 78, 0.09);
  color: inherit;
  text-decoration: none;
  overflow: hidden;
  transition: transform 0.35s ease, box-shadow 0.35s ease, border-color 0.35s ease;
}

.related-service-card::after {
  content: "";
  position: absolute;
  width: 180px;
  height: 180px;
  right: -70px;
  bottom: -80px;
  border-radius: 999px;
  background: rgba(121, 169, 115, 0.16);
  transition: transform 0.35s ease, background 0.35s ease;
}

.related-service-card:hover,
.related-service-card:focus-visible {
  transform: translateY(-8px);
  border-color: rgba(121, 169, 115, 0.45);
  box-shadow: 0 32px 90px rgba(8, 43, 78, 0.16);
  outline: none;
}

.related-service-card:hover::after,
.related-service-card:focus-visible::after {
  transform: scale(1.18);
  background: rgba(8, 77, 144, 0.16);
}

.related-service-icon {
  display: inline-flex;
  width: 3.3rem;
  height: 3.3rem;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.3rem;
  border-radius: 18px;
  background: linear-gradient(135deg, #084d90, #79a973);
  color: #fff;
  font-size: 1.8rem;
  box-shadow: 0 18px 40px rgba(8, 77, 144, 0.25);
}

.related-service-label {
  display: inline-flex;
  margin-bottom: 0.65rem;
  color: #79a973;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.related-service-card h3 {
  margin: 0 0 0.8rem;
  color: #073a6f;
  font-size: clamp(1.35rem, 2vw, 1.75rem);
  letter-spacing: -0.025em;
}

.related-service-card p {
  margin: 0 0 1.4rem;
  color: rgba(16, 34, 53, 0.7);
  line-height: 1.7;
}

.related-service-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  margin-top: auto;
  color: #084d90;
  font-weight: 800;
}

.related-service-cta .material-symbols-outlined {
  font-size: 1.1rem;
  transition: transform 0.25s ease;
}

.related-service-card:hover .related-service-cta .material-symbols-outlined,
.related-service-card:focus-visible .related-service-cta .material-symbols-outlined {
  transform: translateX(4px);
}

@media (max-width: 900px) {
  .related-services-grid {
    grid-template-columns: 1fr;
  }

  .related-service-card {
    min-height: auto;
  }
}

/* Logo resize and mobile alignment refinements */
.site-header .logo {
  flex: 0 0 auto;
}

.footer-brand .logo .custom-logo,
.footer-brand .footer-custom-logo {
  filter: brightness(0) invert(1);
}

@media (max-width: 600px) {
  .site-header .container.header-inner {
    padding-left: 0.85rem;
    padding-right: 1rem;
  }

  .site-header .logo {
    justify-content: flex-start;
    min-width: 0;
  }

  .site-header .logo-text {
    font-size: 1.05rem;
  }

  .site-header .header-actions {
    gap: 0.75rem;
    flex-shrink: 0;
  }
}
