:root {
  --navy: #082f65;
  --navy-dark: #031f45;
  --blue: #0c5ca8;
  --gold: #e7a51a;
  --gold-light: #f3bc43;
  --text: #15243a;
  --muted: #607086;
  --white: #ffffff;
  --off-white: #f7f9fc;
  --border: #dce4ee;
  --shadow: 0 16px 40px rgba(7, 35, 76, 0.12);
  --container: 1180px;
  --header-height: 104px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--text);
  background: var(--white);
  font-family: "Inter", sans-serif;
  line-height: 1.65;
}

body.menu-open {
  overflow: hidden;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input {
  font: inherit;
}

.container {
  width: min(var(--container), calc(100% - 40px));
  margin-inline: auto;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: fixed;
  left: 16px;
  top: -60px;
  z-index: 9999;
  background: var(--gold);
  color: var(--navy-dark);
  padding: 10px 14px;
  font-weight: 700;
  border-radius: 4px;
}

.skip-link:focus {
  top: 16px;
}

/* Header */
.site-header {
  position: relative;
  z-index: 1000;
  height: var(--header-height);
  background: rgba(255, 255, 255, 0.98);
  transition: box-shadow 0.3s ease, transform 0.3s ease, height 0.3s ease;
}

.site-header.is-sticky {
  position: fixed;
  inset: 0 0 auto 0;
  height: 82px;
  box-shadow: 0 8px 28px rgba(4, 28, 61, 0.13);
  animation: headerDrop 0.35s ease;
}

@keyframes headerDrop {
  from { transform: translateY(-100%); }
  to { transform: translateY(0); }
}

.header-inner {
  height: 100%;
  display: flex;
  align-items: center;
  gap: 30px;
}

.brand {
  width: 135px;
  flex: 0 0 auto;
}

.site-header.is-sticky .brand {
  width: 110px;
}

.desktop-nav {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 35px;
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
}

.desktop-nav > a,
.nav-dropdown-toggle {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 46px;
  color: var(--navy-dark);
  border: 0;
  background: transparent;
  cursor: pointer;
  text-transform: uppercase;
  font-weight: 700;
}

.desktop-nav > a::after,
.nav-dropdown-toggle::after {
  content: "";
  position: absolute;
  left: 0;
  right: 100%;
  bottom: 1px;
  height: 2px;
  background: var(--gold);
  transition: right 0.25s ease;
}

.desktop-nav > a:hover::after,
.desktop-nav > a.active::after,
.nav-dropdown:hover .nav-dropdown-toggle::after,
.nav-dropdown-toggle:focus-visible::after {
  right: 0;
}

.desktop-nav > a.active {
  color: var(--gold);
}

.nav-dropdown {
  position: relative;
}

.nav-dropdown-menu {
  position: absolute;
  top: calc(100% + 10px);
  left: -20px;
  width: 230px;
  padding: 12px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 8px;
  box-shadow: var(--shadow);
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: all 0.22s ease;
}

.nav-dropdown:hover .nav-dropdown-menu,
.nav-dropdown:focus-within .nav-dropdown-menu,
.nav-dropdown.open .nav-dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.nav-dropdown-menu a {
  display: block;
  padding: 10px 12px;
  border-radius: 5px;
  font-size: 13px;
  text-transform: none;
}

.nav-dropdown-menu a:hover {
  background: var(--off-white);
  color: var(--blue);
}

.header-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 24px;
  border-radius: 6px;
  background: linear-gradient(135deg, var(--navy), var(--blue));
  color: var(--white);
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
  box-shadow: 0 9px 24px rgba(8, 47, 101, 0.18);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.header-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(8, 47, 101, 0.25);
}

.menu-toggle {
  display: none;
  width: 46px;
  height: 46px;
  margin-left: auto;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  width: 27px;
  height: 3px;
  margin: 5px auto;
  background: var(--navy-dark);
  border-radius: 5px;
  transition: transform 0.25s ease, opacity 0.25s ease;
}

.menu-toggle.active span:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}
.menu-toggle.active span:nth-child(2) {
  opacity: 0;
}
.menu-toggle.active span:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

.mobile-menu {
  display: none;
}

/* Hero */
.hero {
  position: relative;
  min-height: 600px;
  overflow: hidden;
  isolation: isolate;
  background:
    linear-gradient(90deg, rgba(248, 252, 255, 0.98) 0%, rgba(237, 247, 255, 0.86) 38%, rgba(216, 235, 250, 0.38) 66%, rgba(9, 56, 107, 0.24) 100%),
    url("https://images.unsplash.com/photo-1521791136064-7986c2920216?auto=format&fit=crop&w=2000&q=88") center 42% / cover no-repeat;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(90deg, transparent 0 50%, rgba(13, 90, 164, 0.12) 100%),
    radial-gradient(circle at 75% 50%, rgba(255,255,255,0.15), transparent 48%);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(90deg, rgba(255,255,255,0.35), transparent 70%);
}

.hero-content {
  min-height: 600px;
  display: flex;
  align-items: center;
  padding: 70px 0 105px;
}

.hero-copy {
  width: min(640px, 58%);
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--blue);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.eyebrow.light {
  color: #cfe0f4;
}

.hero h1,
.section-heading h2,
.cta-band h2 {
  font-family: "Libre Baskerville", serif;
  color: var(--navy-dark);
}

.hero h1 {
  margin: 0;
  font-size: clamp(48px, 5.2vw, 76px);
  line-height: 1.15;
  letter-spacing: -0.04em;
}

.hero h1 span {
  color: var(--gold);
}

.gold-rule {
  width: 70px;
  height: 4px;
  margin: 28px 0;
  background: var(--gold);
  border-radius: 99px;
}

.hero-text {
  max-width: 520px;
  margin: 0;
  color: #24364c;
  font-size: 18px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 35px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 15px;
  min-height: 54px;
  padding: 0 26px;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
  transition: all 0.22s ease;
}

.btn-primary {
  background: linear-gradient(135deg, var(--navy), var(--blue));
  color: var(--white);
  box-shadow: 0 12px 24px rgba(8, 47, 101, 0.2);
}

.btn-primary:hover,
.btn-gold:hover {
  transform: translateY(-2px);
}

.btn-secondary {
  border: 1px solid var(--navy);
  background: rgba(255, 255, 255, 0.72);
  color: var(--navy);
}

.btn-secondary:hover {
  background: var(--navy);
  color: var(--white);
}

.hero-swoop {
  position: absolute;
  left: -5%;
  right: -5%;
  bottom: -42px;
  height: 115px;
  z-index: 2;
  background: var(--navy-dark);
  border-top: 7px solid var(--gold);
  border-radius: 52% 48% 0 0 / 50% 55% 0 0;
  transform: rotate(1.2deg);
}

.hero-swoop::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 38px;
  height: 90px;
  background: var(--white);
  border-radius: 55% 45% 0 0 / 35% 45% 0 0;
}

/* Services */
.services-section {
  position: relative;
  padding: 95px 0 110px;
  background:
    radial-gradient(circle at 20% 10%, rgba(13, 92, 168, 0.04), transparent 30%),
    linear-gradient(#fff, #fbfcfe);
}

.section-heading {
  max-width: 760px;
  margin: 0 auto 50px;
  text-align: center;
}

.section-kicker {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 17px;
  color: var(--gold);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.section-kicker span {
  width: 48px;
  height: 1px;
  background: var(--gold);
}

.section-heading h2 {
  margin: 12px 0 14px;
  font-size: clamp(32px, 3.2vw, 46px);
  line-height: 1.25;
}

.section-heading p {
  margin: 0;
  color: var(--muted);
}

.flip-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 28px;
  perspective: 1200px;
}

.flip-card {
  min-height: 365px;
  outline: none;
  perspective: 1200px;
}

.flip-card-inner {
  position: relative;
  width: 100%;
  height: 100%;
  min-height: 365px;
  transition: transform 0.72s cubic-bezier(.2,.7,.2,1);
  transform-style: preserve-3d;
}

.flip-card:hover .flip-card-inner,
.flip-card:focus .flip-card-inner,
.flip-card:focus-within .flip-card-inner {
  transform: rotateY(180deg);
}

.flip-card-face {
  position: absolute;
  inset: 0;
  padding: 38px 28px 32px;
  border-radius: 12px;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  overflow: hidden;
  box-shadow: var(--shadow);
}

.flip-card-front {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  background: var(--white);
  border: 1px solid var(--border);
}

.service-icon {
  width: 70px;
  height: 70px;
  display: grid;
  place-items: center;
  margin-bottom: 20px;
  border: 2px solid var(--blue);
  border-radius: 50%;
  color: var(--gold);
  font-size: 27px;
  box-shadow: inset 0 0 0 7px #f7fbff;
}

.flip-card h3 {
  margin: 0 0 13px;
  color: var(--navy-dark);
  font-family: "Libre Baskerville", serif;
  font-size: 20px;
  line-height: 1.4;
}

.flip-card p {
  margin: 0;
  color: #46576c;
  font-size: 14px;
}

.learn-link {
  margin-top: auto;
  padding-top: 20px;
  color: var(--blue);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.learn-link i,
.flip-card-back a i {
  margin-left: 8px;
}

.flip-card-back {
  display: flex;
  align-items: flex-end;
  transform: rotateY(180deg);
  background-position: center;
  background-size: cover;
  color: var(--white);
}

.back-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(1, 17, 39, 0.25), rgba(2, 29, 63, 0.95));
}

.back-content {
  position: relative;
  z-index: 1;
}

.flip-card-back h3,
.flip-card-back p {
  color: var(--white);
}

.flip-card-back a {
  display: inline-flex;
  align-items: center;
  margin-top: 22px;
  color: var(--gold-light);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.bg-workplace {
  background-image: url("https://images.unsplash.com/photo-1556761175-b413da4baf72?auto=format&fit=crop&w=900&q=85");
}
.bg-marketing {
  background-image: url("https://images.unsplash.com/photo-1552664730-d307ca884978?auto=format&fit=crop&w=900&q=85");
}
.bg-case {
  background-image: url("https://images.unsplash.com/photo-1556761175-4b46a572b786?auto=format&fit=crop&w=900&q=85");
}
.bg-lowcode {
  background-image: url("https://images.unsplash.com/photo-1555066931-4365d14bab8c?auto=format&fit=crop&w=900&q=85");
}
.bg-erp {
  background-image: url("https://images.unsplash.com/photo-1551288049-bebda4e38f71?auto=format&fit=crop&w=900&q=85");
}
.bg-digital {
  background-image: url("https://images.unsplash.com/photo-1460925895917-afdab827c52f?auto=format&fit=crop&w=900&q=85");
}

/* CTA */
.cta-band {
  padding: 68px 0;
  background:
    linear-gradient(105deg, rgba(3,31,69,0.98), rgba(8,74,135,0.95)),
    url("https://images.unsplash.com/photo-1497366754035-f200968a6e72?auto=format&fit=crop&w=1800&q=80") center/cover;
}

.cta-band-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
}

.cta-band h2 {
  max-width: 760px;
  margin: 0;
  color: var(--white);
  font-size: clamp(28px, 3vw, 42px);
}

.btn-gold {
  flex: 0 0 auto;
  background: var(--gold);
  color: var(--navy-dark);
}

/* Footer */
.site-footer {
  position: relative;
  background:
    radial-gradient(circle at 15% 20%, rgba(18, 100, 179, 0.25), transparent 32%),
    linear-gradient(135deg, #072b5c, #031b3c 65%, #061f43);
  color: #dce7f4;
}

.footer-gold-line {
  height: 4px;
  background: var(--gold);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.25fr 0.8fr 1fr 1.25fr;
  gap: 58px;
  padding: 72px 0 58px;
}

.footer-logo {
  width: 150px;
  margin-bottom: 20px;
  filter: brightness(0) invert(1);
}

.footer-brand-column p,
.newsletter-column p {
  margin: 0;
  color: #c2d1e1;
  font-size: 14px;
}

.social-links {
  display: flex;
  gap: 13px;
  margin-top: 25px;
}

.social-links a {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255,255,255,0.55);
  border-radius: 50%;
  transition: all 0.2s ease;
}

.social-links a:hover {
  border-color: var(--gold);
  background: var(--gold);
  color: var(--navy-dark);
  transform: translateY(-2px);
}

.footer-grid h3 {
  margin: 0 0 22px;
  color: var(--white);
  font-size: 14px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.footer-links-column a {
  display: block;
  margin: 0 0 11px;
  color: #d4e0ee;
  font-size: 14px;
}

.footer-links-column a:hover {
  color: var(--gold-light);
}

.newsletter-form {
  display: flex;
  margin-top: 20px;
}

.newsletter-form input {
  width: 100%;
  min-width: 0;
  height: 48px;
  border: 0;
  border-radius: 6px 0 0 6px;
  padding: 0 15px;
  outline: none;
}

.newsletter-form input:focus {
  box-shadow: inset 0 0 0 2px var(--gold);
}

.newsletter-form button {
  width: 52px;
  flex: 0 0 auto;
  border: 0;
  border-radius: 0 6px 6px 0;
  background: var(--gold);
  color: var(--navy-dark);
  cursor: pointer;
}

.footer-bottom {
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  border-top: 1px solid rgba(255,255,255,0.14);
  color: #b8c8d9;
  font-size: 13px;
}

.footer-bottom div {
  display: flex;
  align-items: center;
  gap: 14px;
}

.footer-bottom a:hover {
  color: var(--gold-light);
}

.back-to-top {
  position: fixed;
  right: 25px;
  bottom: 25px;
  z-index: 999;
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: var(--gold);
  color: var(--navy-dark);
  box-shadow: 0 14px 30px rgba(2, 24, 54, 0.25);
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(16px);
  transition: all 0.25s ease;
}

.back-to-top.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.back-to-top:hover {
  transform: translateY(-3px);
}

/* Responsive */
@media (max-width: 1040px) {
  .desktop-nav,
  .header-cta {
    display: none;
  }

  .menu-toggle {
    display: block;
  }

  .mobile-menu {
    position: fixed;
    top: var(--header-height);
    left: 0;
    right: 0;
    max-height: calc(100vh - var(--header-height));
    overflow-y: auto;
    display: block;
    padding: 20px;
    background: var(--white);
    border-top: 1px solid var(--border);
    box-shadow: 0 18px 35px rgba(5, 31, 66, 0.14);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-12px);
    transition: all 0.25s ease;
  }

  .site-header.is-sticky .mobile-menu {
    top: 82px;
    max-height: calc(100vh - 82px);
  }

  .mobile-menu.open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }

  .mobile-menu > a,
  .mobile-submenu-toggle {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 13px 7px;
    border: 0;
    border-bottom: 1px solid #edf1f6;
    background: transparent;
    color: var(--navy-dark);
    text-align: left;
    font-weight: 700;
  }

  .mobile-menu > a.active {
    color: var(--gold);
  }

  .mobile-submenu {
    display: none;
    padding: 4px 0 9px 16px;
  }

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

  .mobile-submenu a {
    display: block;
    padding: 10px 7px;
    color: var(--muted);
    font-size: 14px;
  }

  .mobile-cta {
    margin-top: 14px;
    justify-content: center !important;
    border: 0 !important;
    border-radius: 5px;
    background: var(--navy);
    color: var(--white) !important;
  }

  .hero-copy {
    width: min(680px, 70%);
  }

  .flip-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  :root {
    --header-height: 86px;
  }

  .container {
    width: min(100% - 28px, var(--container));
  }

  .brand {
    width: 110px;
  }

  .site-header.is-sticky .brand {
    width: 98px;
  }

  .hero {
    min-height: 625px;
    background-position: 63% center;
  }

  .hero::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background: rgba(244, 250, 255, 0.58);
  }

  .hero-content {
    min-height: 625px;
    padding: 55px 0 105px;
  }

  .hero-copy {
    width: 100%;
  }

  .hero h1 {
    font-size: clamp(42px, 12vw, 60px);
  }

  .hero-text {
    max-width: 92%;
    font-size: 16px;
  }

  .hero-actions {
    gap: 11px;
  }

  .btn {
    min-height: 51px;
    padding: 0 20px;
  }

  .hero-swoop {
    height: 90px;
    bottom: -33px;
  }

  .services-section {
    padding: 75px 0 80px;
  }

  .flip-grid {
    grid-template-columns: 1fr;
  }

  .flip-card,
  .flip-card-inner {
    min-height: 350px;
  }

  .cta-band-inner {
    align-items: flex-start;
    flex-direction: column;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 38px;
    padding: 58px 0 45px;
  }

  .footer-bottom {
    align-items: flex-start;
    flex-direction: column;
    padding: 24px 0;
  }
}

@media (max-width: 460px) {
  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .btn {
    width: 100%;
  }

  .section-kicker span {
    width: 28px;
  }

  .back-to-top {
    right: 16px;
    bottom: 16px;
    width: 48px;
    height: 48px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
}


/* Internal Pages - Phase 2 */
.page-hero {
  padding: 31px 0 29px;
  background:
    linear-gradient(115deg, rgba(7, 62, 129, 0.98), rgba(10, 87, 163, 0.94)),
    url("https://images.unsplash.com/photo-1497366811353-6870744d04b2?auto=format&fit=crop&w=1800&q=80") center/cover;
  color: var(--white);
}

.page-hero-inner {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 30px;
}

.page-hero h1 {
  margin: 0 0 7px;
  color: var(--white);
  font-family: "Libre Baskerville", serif;
  font-size: clamp(30px, 3.2vw, 46px);
  line-height: 1.2;
}

.page-subtitle {
  margin: 0;
  max-width: 690px;
  color: #dceafa;
  font-size: 15px;
}

.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 9px;
  margin: 0 0 5px;
  color: var(--white);
  font-size: 13px;
  font-weight: 600;
}

.breadcrumbs a {
  color: var(--gold-light);
}

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

.breadcrumbs i {
  color: rgba(255,255,255,0.55);
  font-size: 10px;
}

.content-section {
  padding: 90px 0;
}

.content-section.soft-bg {
  background: var(--off-white);
}

.intro-split {
  display: grid;
  grid-template-columns: 1.03fr 0.97fr;
  align-items: center;
  gap: 65px;
}

.intro-split.reverse .intro-image {
  order: 2;
}

.intro-image {
  position: relative;
}

.intro-image img {
  width: 100%;
  min-height: 490px;
  object-fit: cover;
  border-radius: 14px;
  box-shadow: var(--shadow);
}

.intro-image::before {
  content: "";
  position: absolute;
  left: -18px;
  bottom: -18px;
  z-index: -1;
  width: 75%;
  height: 75%;
  border-radius: 14px;
  background: var(--gold);
}

.intro-copy .section-kicker {
  justify-content: flex-start;
}

.intro-copy .section-kicker span:first-child {
  display: none;
}

.intro-copy h2,
.values-heading h2,
.contact-info h2,
.services-intro h2 {
  margin: 12px 0 20px;
  color: var(--navy-dark);
  font-family: "Libre Baskerville", serif;
  font-size: clamp(32px, 3.4vw, 47px);
  line-height: 1.28;
}

.intro-copy p,
.services-intro p,
.contact-info p {
  color: var(--muted);
}

.highlight-list {
  display: grid;
  gap: 16px;
  margin-top: 26px;
}

.highlight-item {
  display: grid;
  grid-template-columns: 43px 1fr;
  gap: 14px;
  align-items: start;
}

.highlight-item i {
  width: 43px;
  height: 43px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #eaf3fc;
  color: var(--blue);
}

.highlight-item h3 {
  margin: 0 0 3px;
  color: var(--navy-dark);
  font-size: 16px;
}

.highlight-item p {
  margin: 0;
  font-size: 14px;
}

.mission-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 28px;
}

.mission-card {
  padding: 36px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--white);
  box-shadow: 0 12px 34px rgba(7, 35, 76, 0.08);
}

.mission-card .service-icon {
  margin-bottom: 17px;
}

.mission-card h3 {
  margin: 0 0 12px;
  color: var(--navy-dark);
  font-family: "Libre Baskerville", serif;
  font-size: 23px;
}

.mission-card p {
  margin: 0;
  color: var(--muted);
}

.values-heading {
  max-width: 760px;
  margin: 0 auto 42px;
  text-align: center;
}

.values-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 18px;
}

.value-card {
  padding: 27px 20px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--white);
  text-align: center;
  box-shadow: 0 10px 28px rgba(7, 35, 76, 0.07);
}

.value-card i {
  margin-bottom: 14px;
  color: var(--gold);
  font-size: 27px;
}

.value-card h3 {
  margin: 0;
  color: var(--navy-dark);
  font-size: 15px;
}

.service-category-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 30px;
  margin-top: 45px;
}

.service-category-card {
  position: relative;
  min-height: 430px;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  border-radius: 14px;
  background-position: center;
  background-size: cover;
  box-shadow: var(--shadow);
}

.service-category-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(2,22,49,0.12), rgba(3,31,69,0.96));
}

.service-category-content {
  position: relative;
  z-index: 1;
  padding: 38px;
  color: var(--white);
}

.service-category-content .eyebrow {
  color: var(--gold-light);
}

.service-category-content h3 {
  margin: 0 0 13px;
  color: var(--white);
  font-family: "Libre Baskerville", serif;
  font-size: 29px;
}

.service-category-content p {
  margin: 0 0 23px;
  color: #dce7f4;
}

.service-category-content a {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: var(--gold-light);
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
}

.for-profit-bg {
  background-image: url("https://images.unsplash.com/photo-1552664730-d307ca884978?auto=format&fit=crop&w=1200&q=85");
}

.non-profit-bg {
  background-image: url("https://images.unsplash.com/photo-1559027615-cd4628902d4a?auto=format&fit=crop&w=1200&q=85");
}

.compact-services-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  margin-top: 45px;
}

.compact-service-card {
  padding: 31px 27px;
  border: 1px solid var(--border);
  border-radius: 11px;
  background: var(--white);
  box-shadow: 0 10px 28px rgba(7, 35, 76, 0.07);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.compact-service-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow);
}

.compact-service-card .service-icon {
  width: 60px;
  height: 60px;
  margin-bottom: 17px;
  font-size: 22px;
}

.compact-service-card h3 {
  margin: 0 0 10px;
  color: var(--navy-dark);
  font-family: "Libre Baskerville", serif;
  font-size: 18px;
}

.compact-service-card p {
  margin: 0 0 18px;
  color: var(--muted);
  font-size: 14px;
}

.compact-service-card a {
  color: var(--blue);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.contact-layout {
  display: grid;
  grid-template-columns: 0.82fr 1.18fr;
  gap: 58px;
  align-items: start;
}

.contact-image {
  margin-top: 30px;
}

.contact-image img {
  width: 100%;
  height: 310px;
  object-fit: cover;
  border-radius: 12px;
  box-shadow: var(--shadow);
}

.contact-details {
  display: grid;
  gap: 16px;
  margin-top: 28px;
}

.contact-detail {
  display: grid;
  grid-template-columns: 46px 1fr;
  gap: 14px;
  align-items: center;
}

.contact-detail i {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #eaf3fc;
  color: var(--blue);
}

.contact-detail strong {
  display: block;
  color: var(--navy-dark);
  font-size: 14px;
}

.contact-detail span,
.contact-detail a {
  color: var(--muted);
  font-size: 14px;
}

.contact-form-card {
  padding: 40px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--white);
  box-shadow: var(--shadow);
}

.contact-form-card h2 {
  margin: 0 0 8px;
  color: var(--navy-dark);
  font-family: "Libre Baskerville", serif;
  font-size: 30px;
}

.contact-form-card > p {
  margin: 0 0 27px;
  color: var(--muted);
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.form-group.full {
  grid-column: 1 / -1;
}

.form-group label {
  display: block;
  margin-bottom: 7px;
  color: var(--navy-dark);
  font-size: 13px;
  font-weight: 700;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  border: 1px solid #ced9e6;
  border-radius: 6px;
  background: #fbfdff;
  color: var(--text);
  padding: 12px 14px;
  outline: none;
}

.form-group textarea {
  min-height: 145px;
  resize: vertical;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(12,92,168,0.11);
}

.form-note {
  margin: 15px 0 0 !important;
  font-size: 12px;
}

@media (max-width: 1040px) {
  .values-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .compact-services-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 820px) {
  .page-hero-inner,
  .intro-split,
  .contact-layout {
    grid-template-columns: 1fr;
  }

  .page-hero-inner {
    align-items: flex-start;
    flex-direction: column;
    gap: 13px;
  }

  .breadcrumbs {
    justify-content: flex-start;
  }

  .intro-split.reverse .intro-image {
    order: initial;
  }

  .intro-image img {
    min-height: 390px;
  }

  .mission-grid,
  .service-category-grid {
    grid-template-columns: 1fr;
  }

  .values-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 560px) {
  .page-hero {
    padding: 25px 0;
  }

  .content-section {
    padding: 68px 0;
  }

  .intro-image img {
    min-height: 320px;
  }

  .compact-services-grid,
  .values-grid,
  .form-grid {
    grid-template-columns: 1fr;
  }

  .contact-form-card {
    padding: 28px 22px;
  }

  .service-category-card {
    min-height: 380px;
  }

  .service-category-content {
    padding: 28px;
  }
}
