:root {
  --ink: #102027;
  --muted: #5c6d73;
  --paper: #f8faf9;
  --white: #ffffff;
  --navy: #082433;
  --teal: #009a9f;
  --teal-dark: #087379;
  --gold: #d5a24c;
  --coral: #e86b5f;
  --line: rgba(16, 32, 39, 0.12);
  --shadow: 0 24px 70px rgba(8, 36, 51, 0.14);
  --radius: 8px;
  --container: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  overflow-x: hidden;
  color: var(--ink);
  background: var(--paper);
  font-family: "Manrope", Arial, sans-serif;
  line-height: 1.6;
}
img { display: block; width: 100%; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, p { margin-top: 0; }
.container { width: min(var(--container), calc(100% - 40px)); margin: 0 auto; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 22px;
  align-items: center;
  min-height: 82px;
  padding: 14px max(20px, calc((100vw - var(--container)) / 2));
  color: var(--white);
  background: rgba(8, 36, 51, 0.93);
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(18px);
}

.brand { display: inline-flex; align-items: center; gap: 12px; min-width: 0; }
.brand-mark {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  flex: 0 0 46px;
  color: var(--navy);
  background: linear-gradient(135deg, #ffffff 0%, #e6f8f6 46%, #f4c86d 100%);
  border-radius: var(--radius);
  font-size: 0.86rem;
  font-weight: 800;
}
.brand-copy { display: grid; gap: 1px; min-width: 0; }
.brand-copy span { font-size: 0.96rem; font-weight: 800; white-space: nowrap; }
.brand-copy small { color: rgba(255, 255, 255, 0.72); font-size: 0.71rem; font-weight: 600; text-transform: uppercase; }

.site-nav { display: flex; justify-content: center; gap: 26px; font-size: 0.92rem; font-weight: 700; }
.site-nav a { position: relative; padding: 10px 0; color: rgba(255, 255, 255, 0.84); }
.site-nav a::after {
  position: absolute;
  right: 0;
  bottom: 4px;
  left: 0;
  height: 2px;
  content: "";
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 180ms ease;
}
.site-nav a:hover, .site-nav a:focus-visible, .site-nav a.is-active { color: var(--white); }
.site-nav a:hover::after, .site-nav a:focus-visible::after, .site-nav a.is-active::after { transform: scaleX(1); }
.header-actions { display: flex; align-items: center; gap: 14px; }
.header-contact { display: grid; gap: 3px; color: rgba(255, 255, 255, 0.78); font-size: 0.76rem; font-weight: 700; }
.header-contact a:hover, .footer-links a:hover, .footer-contact a:hover { color: var(--gold); }

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 22px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  font-size: 0.92rem;
  font-weight: 800;
  line-height: 1;
  white-space: nowrap;
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease, border-color 180ms ease;
}
.button:hover, .button:focus-visible { transform: translateY(-2px); }
.button-primary { color: var(--navy); background: var(--gold); box-shadow: 0 18px 38px rgba(213, 162, 76, 0.26); }
.button-primary:hover, .button-primary:focus-visible { background: #efbd61; }
.button-secondary { color: var(--white); background: rgba(255, 255, 255, 0.12); border-color: rgba(255, 255, 255, 0.42); }
.button-outline { color: var(--teal-dark); background: var(--white); border-color: rgba(0, 154, 159, 0.28); box-shadow: 0 16px 34px rgba(8, 36, 51, 0.08); }
.button-light { color: var(--navy); background: var(--white); box-shadow: 0 18px 38px rgba(0, 0, 0, 0.16); }
.button-small { min-height: 42px; padding: 0 18px; font-size: 0.84rem; }

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.08);
}
.nav-toggle span { display: block; width: 18px; height: 2px; margin: 4px auto; background: var(--white); transition: transform 180ms ease, opacity 180ms ease; }

.hero, .page-hero {
  position: relative;
  display: grid;
  align-items: center;
  min-height: clamp(570px, 78svh, 780px);
  overflow: hidden;
  color: var(--white);
}
.page-hero { min-height: clamp(430px, 54svh, 620px); }
.page-hero-compact { min-height: clamp(340px, 42svh, 470px); }
.hero-media, .hero-overlay, .page-hero-media, .page-hero-overlay { position: absolute; inset: 0; }
.hero-media img, .page-hero-media img { height: 100%; object-fit: cover; object-position: 62% center; }
.hero-overlay {
  background: linear-gradient(90deg, rgba(8, 36, 51, 0.92) 0%, rgba(8, 36, 51, 0.74) 38%, rgba(8, 36, 51, 0.38) 66%, rgba(8, 36, 51, 0.26) 100%), linear-gradient(180deg, rgba(8, 36, 51, 0.12) 0%, rgba(8, 36, 51, 0.72) 100%);
}
.page-hero-overlay {
  background: linear-gradient(90deg, rgba(8, 36, 51, 0.94) 0%, rgba(8, 36, 51, 0.8) 42%, rgba(8, 36, 51, 0.48) 100%), linear-gradient(180deg, rgba(8, 36, 51, 0.1) 0%, rgba(8, 36, 51, 0.76) 100%);
}
.hero-content, .page-hero-content { position: relative; z-index: 1; padding: 62px 0 76px; }
.page-hero-content { padding: 76px 0; }
.eyebrow, .section-label { margin: 0 0 14px; color: var(--gold); font-size: 0.76rem; font-weight: 800; text-transform: uppercase; }
h1 { max-width: 760px; margin-bottom: 20px; font-size: clamp(2.45rem, 6vw, 5.4rem); line-height: 0.98; }
.page-hero h1 { max-width: 840px; font-size: clamp(2.35rem, 5vw, 4.75rem); line-height: 1; }
.hero-copy, .page-hero p:last-child { max-width: 720px; margin-bottom: 32px; color: rgba(255, 255, 255, 0.84); font-size: clamp(1rem, 2vw, 1.18rem); }
.hero-buttons { display: flex; flex-wrap: wrap; gap: 14px; }

.section-pad { padding: clamp(68px, 9vw, 112px) 0; }
.muted-section, .services-section { background: linear-gradient(180deg, #f8faf9 0%, #eef6f4 100%); }
.about-section { background: linear-gradient(180deg, #ffffff 0%, #f8faf9 100%); }
.split-layout { display: grid; grid-template-columns: minmax(0, 0.94fr) minmax(0, 1.06fr); gap: clamp(32px, 6vw, 78px); align-items: center; }
.about-image { position: relative; overflow: hidden; border-radius: var(--radius); box-shadow: var(--shadow); }
.about-image::after { position: absolute; right: 24px; bottom: 24px; width: 128px; height: 128px; content: ""; border: 12px solid rgba(213, 162, 76, 0.72); border-radius: var(--radius); }
.about-image img { aspect-ratio: 4 / 5; height: 100%; object-fit: cover; object-position: 69% center; }
.about-content h2, .section-heading h2, .cta-strip h2, .contact-panel h2 { margin-bottom: 18px; font-size: clamp(2rem, 4vw, 3.45rem); line-height: 1.05; }
.about-content > p, .section-heading p { color: var(--muted); font-size: 1.02rem; }
.pillar-list { display: grid; gap: 14px; margin: 30px 0; }
.pillar { display: grid; grid-template-columns: 50px 1fr; gap: 16px; align-items: start; padding: 18px; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: 0 14px 34px rgba(8, 36, 51, 0.05); }
.pillar-icon, .service-icon { display: grid; place-items: center; width: 50px; height: 50px; color: var(--white); background: linear-gradient(135deg, var(--teal), var(--teal-dark)); border-radius: var(--radius); font-size: 1rem; }
.service-icon { width: 58px; height: 58px; margin-bottom: 24px; color: var(--navy); background: #eaf7f4; font-size: 1.52rem; }
.pillar p, .service-card p, .detail-card p, .feature-item p, .process-step p, .portfolio-card p, .contact-panel p, .contact-card p, .legal-card p, .legal-card li { color: var(--muted); }

.section-heading { max-width: 760px; margin-bottom: 42px; }
.services-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 18px; }
.service-card, .detail-card, .feature-item, .process-step, .portfolio-card, .contact-panel, .contact-card, .legal-card, .stat-card, .service-detail-card {
  background: var(--white);
  border: 1px solid rgba(16, 32, 39, 0.1);
  border-radius: var(--radius);
  box-shadow: 0 18px 44px rgba(8, 36, 51, 0.07);
}
.service-card { grid-column: span 2; min-height: 294px; padding: 28px; transition: transform 190ms ease, box-shadow 190ms ease, border-color 190ms ease; }
.service-card:hover, .service-card:focus-within, .portfolio-card:hover, .portfolio-card:focus-within { border-color: rgba(0, 154, 159, 0.36); box-shadow: 0 26px 64px rgba(8, 36, 51, 0.13); transform: translateY(-6px); }
.service-card-featured, .service-wide-card, .portfolio-card-highlight { color: var(--white); background: linear-gradient(135deg, rgba(8, 36, 51, 0.94), rgba(0, 154, 159, 0.9)), var(--navy); }
.service-card-featured { grid-column: span 4; }
.service-card-featured p, .service-wide-card p, .service-wide-card li, .portfolio-card-highlight p { color: rgba(255, 255, 255, 0.8); }
.service-card-featured .service-icon, .service-wide-card .service-icon { background: var(--gold); }

.value-grid, .feature-grid, .process-grid, .portfolio-grid, .service-detail-grid, .stats-grid { display: grid; gap: 18px; }
.value-grid { grid-template-columns: repeat(3, 1fr); }
.feature-grid, .process-grid, .stats-grid { grid-template-columns: repeat(4, 1fr); }
.portfolio-grid { grid-template-columns: repeat(3, 1fr); }
.detail-card, .feature-item, .process-step, .portfolio-card { padding: 28px; }
.process-step span { display: inline-flex; align-items: center; justify-content: center; width: 48px; height: 48px; margin-bottom: 24px; color: var(--navy); background: var(--gold); border-radius: var(--radius); font-weight: 800; }
.service-detail-grid { grid-template-columns: repeat(2, 1fr); }
.service-detail-card { display: grid; grid-template-columns: 70px 1fr; gap: 18px; min-height: 320px; padding: 30px; }
.service-wide-card { grid-column: 1 / -1; min-height: 230px; }
.check-list { display: grid; gap: 10px; padding: 0; margin: 22px 0 0; list-style: none; }
.check-list li { position: relative; padding-left: 28px; color: var(--muted); }
.check-list li::before { position: absolute; top: 0; left: 0; color: var(--teal); content: "\2713"; font-weight: 800; }
.service-wide-card .check-list li::before { color: var(--gold); }
.portfolio-tag { display: inline-flex; margin-bottom: 22px; padding: 7px 10px; color: var(--teal-dark); background: #eaf7f4; border-radius: var(--radius); font-size: 0.76rem; font-weight: 800; text-transform: uppercase; }
.portfolio-card-highlight .portfolio-tag { color: var(--navy); background: var(--gold); }

.cta-strip { padding: clamp(54px, 8vw, 86px) 0; color: var(--white); background: linear-gradient(135deg, rgba(232, 107, 95, 0.84), rgba(0, 154, 159, 0.78)), linear-gradient(90deg, #082433, #173f47); }
.cta-content { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 28px; align-items: center; }
.cta-content p { max-width: 730px; margin-bottom: 0; color: rgba(255, 255, 255, 0.78); }
.cta-strip .section-label { color: rgba(255, 255, 255, 0.74); }
.stats-section { padding: clamp(48px, 7vw, 78px) 0; background: #ffffff; }
.stat-card { min-height: 160px; padding: 26px; background: linear-gradient(180deg, #ffffff 0%, #f5fbfa 100%); }
.stat-card strong { display: block; color: var(--teal-dark); font-size: clamp(2.2rem, 5vw, 4rem); line-height: 1; }
.stat-card span:last-child { display: block; margin-top: 12px; color: var(--muted); font-weight: 800; }

.contact-grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(300px, 0.75fr); gap: clamp(24px, 5vw, 58px); align-items: start; }
.contact-panel { padding: clamp(26px, 4vw, 42px); }
.contact-form { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; margin-top: 28px; }
.form-row, .form-row-full { display: grid; gap: 8px; }
.form-row-full { grid-column: 1 / -1; }
.form-row label { font-weight: 800; }
.form-row input, .form-row select, .form-row textarea { width: 100%; min-height: 48px; padding: 12px 14px; color: var(--ink); font: inherit; background: #f8faf9; border: 1px solid var(--line); border-radius: var(--radius); outline: none; }
.form-row textarea { resize: vertical; }
.form-row input:focus, .form-row select:focus, .form-row textarea:focus { border-color: var(--teal); box-shadow: 0 0 0 4px rgba(0, 154, 159, 0.12); }
.contact-form .button { justify-self: start; min-width: 190px; }
.contact-details-panel { display: grid; gap: 18px; }
.contact-card { padding: 26px; }
.contact-card a, .legal-card a { color: var(--teal-dark); font-weight: 800; }

.legal-layout { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: clamp(24px, 5vw, 58px); align-items: start; }
.legal-nav { position: sticky; top: 108px; display: grid; gap: 8px; padding: 18px; background: #ffffff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: 0 18px 44px rgba(8, 36, 51, 0.06); }
.legal-nav a { padding: 10px 12px; color: var(--muted); border-radius: var(--radius); font-size: 0.9rem; font-weight: 800; }
.legal-nav a:hover, .legal-nav a:focus-visible { color: var(--navy); background: #eaf7f4; }
.legal-card { padding: clamp(28px, 5vw, 54px); }
.legal-card section + section { padding-top: 30px; margin-top: 30px; border-top: 1px solid var(--line); }
.legal-card h2 { margin-bottom: 12px; font-size: clamp(1.4rem, 2.8vw, 2rem); }

.site-footer { color: rgba(255, 255, 255, 0.78); background: #071b23; }
.footer-grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(150px, 0.62fr) minmax(150px, 0.68fr) minmax(0, 1.18fr); gap: clamp(24px, 5vw, 54px); padding: clamp(54px, 7vw, 82px) 0; }
.footer-brand { margin-bottom: 18px; color: var(--white); }
.footer-about p { max-width: 410px; }
.site-footer h2 { margin-bottom: 18px; color: var(--white); font-size: 1rem; }
.footer-links { display: grid; gap: 10px; padding: 0; margin: 0; list-style: none; }
.footer-contact address { display: grid; gap: 12px; font-style: normal; }
.footer-contact strong { color: var(--white); }
.footer-bottom { padding: 18px 20px; text-align: center; border-top: 1px solid rgba(255, 255, 255, 0.11); }
.footer-bottom p { margin: 0; font-size: 0.9rem; }

@keyframes softRise {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}

.hero-content > *, .page-hero-content > * {
  opacity: 0;
  animation: softRise 720ms ease forwards;
}
.hero-content > *:nth-child(2), .page-hero-content > *:nth-child(2) { animation-delay: 110ms; }
.hero-content > *:nth-child(3), .page-hero-content > *:nth-child(3) { animation-delay: 210ms; }
.hero-content > *:nth-child(4), .page-hero-content > *:nth-child(4) { animation-delay: 310ms; }

.js .reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 620ms ease, transform 620ms ease;
  transition-delay: var(--reveal-delay, 0ms);
}
.js .reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 1100px) {
  .site-header { grid-template-columns: auto auto; }
  .nav-toggle { display: block; justify-self: end; }
  .site-nav, .header-actions { grid-column: 1 / -1; }
  .site-nav { display: none; flex-direction: column; align-items: flex-start; gap: 2px; padding: 16px 0 4px; }
  .header-actions { display: none; align-items: flex-start; padding-bottom: 12px; }
  .site-header.nav-open .site-nav, .site-header.nav-open .header-actions { display: flex; }
  .site-header.nav-open .nav-toggle span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
  .site-header.nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
  .site-header.nav-open .nav-toggle span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }
}

@media (max-width: 900px) {
  .split-layout, .cta-content, .footer-grid, .contact-grid, .legal-layout { grid-template-columns: 1fr; }
  .about-image img { aspect-ratio: 16 / 10; object-position: center; }
  .service-card, .service-card-featured { grid-column: span 3; }
  .value-grid, .feature-grid, .process-grid, .portfolio-grid, .service-detail-grid, .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .service-wide-card { grid-column: auto; }
  .legal-nav { position: static; }
}

@media (max-width: 620px) {
  .container { width: min(100% - 28px, var(--container)); }
  .site-header { min-height: 72px; padding-right: 14px; padding-left: 14px; }
  .brand-mark { width: 42px; height: 42px; flex-basis: 42px; }
  .brand-copy span { max-width: 210px; overflow-wrap: anywhere; white-space: normal; line-height: 1.08; }
  .brand-copy small { display: none; }
  .header-actions { gap: 12px; }
  .header-contact { font-size: 0.8rem; }
  .hero { min-height: 610px; }
  .page-hero { min-height: 430px; }
  .hero-media img, .page-hero-media img { object-position: 65% center; }
  .hero-overlay, .page-hero-overlay { background: linear-gradient(90deg, rgba(8, 36, 51, 0.94) 0%, rgba(8, 36, 51, 0.78) 55%, rgba(8, 36, 51, 0.42) 100%), linear-gradient(180deg, rgba(8, 36, 51, 0.16) 0%, rgba(8, 36, 51, 0.84) 100%); }
  .hero-content, .page-hero-content { padding: 46px 0 54px; }
  .eyebrow { max-width: 31ch; line-height: 1.45; }
  h1, .page-hero h1 { max-width: 100%; font-size: clamp(2.05rem, 11vw, 2.85rem); line-height: 1.05; overflow-wrap: break-word; }
  .hero-copy, .page-hero p:last-child { max-width: 100%; overflow-wrap: break-word; }
  .hero-buttons, .header-actions { flex-direction: column; align-items: stretch; }
  .button { width: 100%; white-space: normal; text-align: center; }
  .services-grid, .value-grid, .feature-grid, .process-grid, .portfolio-grid, .service-detail-grid, .stats-grid, .contact-form { grid-template-columns: 1fr; }
  .service-card, .service-card-featured { grid-column: auto; min-height: auto; }
  .pillar { grid-template-columns: 44px 1fr; padding: 16px; }
  .pillar-icon { width: 44px; height: 44px; }
  .service-detail-card { grid-template-columns: 1fr; min-height: auto; padding: 24px; }
  .contact-form .button { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    scroll-behavior: auto !important;
    transition: none !important;
    animation: none !important;
  }
  .hero-content > *, .page-hero-content > *, .js .reveal {
    opacity: 1 !important;
    transform: none !important;
  }
}
