:root {
  --color-navy: #0c243f;
  --color-navy-deep: #071526;
  --color-blue: #4179d5;
  --color-orange: #ff9942;
  --color-orange-dark: #e87519;
  --color-text: #24364a;
  --color-muted: #607185;
  --color-surface: #f4f7fa;
  --color-white: #ffffff;
  --color-border: #dce4ec;
  --shadow-soft: 0 20px 50px rgba(7, 21, 38, 0.12);
  --radius: 18px;
  --container: 1180px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--color-text);
  background: var(--color-white);
  font-family: "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 1rem;
  line-height: 1.65;
  text-rendering: optimizeLegibility;
}

body,
button {
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: inherit;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1,
h2,
h3 {
  color: var(--color-navy);
  line-height: 1.16;
  letter-spacing: -0.025em;
}

h1 {
  margin-bottom: 1.5rem;
  font-size: clamp(2.35rem, 5vw, 4.8rem);
}

h2 {
  margin-bottom: 1.25rem;
  font-size: clamp(2rem, 3.6vw, 3.25rem);
}

h3 {
  margin-bottom: 0.85rem;
  font-size: 1.35rem;
}

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

.section {
  padding-block: clamp(4.5rem, 9vw, 7.5rem);
}

.skip-link {
  position: fixed;
  z-index: 1000;
  top: 0.75rem;
  left: 0.75rem;
  padding: 0.7rem 1rem;
  color: var(--color-navy-deep);
  background: var(--color-white);
  border-radius: 8px;
  box-shadow: var(--shadow-soft);
  font-weight: 700;
  transform: translateY(-160%);
  transition: transform 160ms ease;
}

.skip-link:focus {
  transform: translateY(0);
}

.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;
}

:focus-visible {
  outline: 3px solid var(--color-orange);
  outline-offset: 4px;
}

/* Header and navigation */
.site-header {
  position: relative;
  z-index: 100;
  color: var(--color-white);
  background: var(--color-navy-deep);
  box-shadow: 0 3px 16px rgba(0, 0, 0, 0.18);
}

.header-inner {
  display: flex;
  min-height: 112px;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.brand {
  flex: 0 0 auto;
  border-radius: 10px;
}

.brand img {
  width: 88px;
  height: 88px;
  object-fit: contain;
  background: var(--color-white);
  border-radius: 10px;
}

.site-nav ul,
.footer-nav ul {
  padding: 0;
  margin: 0;
  list-style: none;
}

.site-nav ul {
  display: flex;
  align-items: center;
  gap: clamp(1.2rem, 3vw, 2.4rem);
}

.site-nav a {
  position: relative;
  display: inline-block;
  padding-block: 0.55rem;
  color: var(--color-white);
  font-weight: 650;
  text-decoration: none;
}

.site-nav a::after {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 2px;
  content: "";
  background: var(--color-orange);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 180ms ease;
}

.site-nav a:hover::after,
.site-nav a:focus-visible::after,
.site-nav a.is-current::after {
  transform: scaleX(1);
  transform-origin: left;
}

.menu-toggle {
  display: none;
  width: 48px;
  height: 48px;
  padding: 11px;
  color: var(--color-white);
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 10px;
  cursor: pointer;
}

.menu-toggle > span:not(.sr-only) {
  display: block;
  width: 100%;
  height: 2px;
  margin-block: 5px;
  background: currentColor;
  transition: transform 180ms ease, opacity 180ms ease;
}

.menu-toggle[aria-expanded="true"] > span:nth-child(2) {
  transform: translateY(7px) rotate(45deg);
}

.menu-toggle[aria-expanded="true"] > span:nth-child(3) {
  opacity: 0;
}

.menu-toggle[aria-expanded="true"] > span:nth-child(4) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Hero */
.hero {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 90% 20%, rgba(65, 121, 213, 0.13), transparent 28rem),
    linear-gradient(180deg, var(--color-white), #f7f9fc);
}

.hero::before {
  position: absolute;
  top: -10rem;
  left: -12rem;
  width: 28rem;
  height: 28rem;
  content: "";
  background: rgba(255, 153, 66, 0.1);
  border-radius: 50%;
}

.hero-grid {
  position: relative;
  display: grid;
  min-height: min(760px, calc(100vh - 112px));
  align-items: center;
  grid-template-columns: minmax(0, 1.35fr) minmax(280px, 0.65fr);
  gap: clamp(3rem, 8vw, 7rem);
  padding-block: clamp(5rem, 10vw, 9rem);
}

.hero-copy {
  max-width: 790px;
}

.eyebrow {
  margin-bottom: 0.85rem;
  color: var(--color-orange-dark);
  font-size: 0.85rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.hero-text {
  max-width: 700px;
  margin-bottom: 2.25rem;
  color: var(--color-muted);
  font-size: clamp(1.05rem, 2vw, 1.25rem);
}

.button {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.9rem 1.4rem;
  color: var(--color-navy-deep);
  background: var(--color-orange);
  border-radius: 999px;
  box-shadow: 0 12px 30px rgba(232, 117, 25, 0.25);
  font-weight: 800;
  text-decoration: none;
  transition: background 160ms ease, transform 160ms ease, box-shadow 160ms ease;
}

.button:hover {
  background: #ffad65;
  box-shadow: 0 16px 34px rgba(232, 117, 25, 0.32);
  transform: translateY(-2px);
}

.button svg {
  width: 1.2rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.hero-art {
  position: relative;
  display: grid;
  min-height: 390px;
  place-items: center;
}

.hero-art img {
  position: relative;
  z-index: 2;
  width: min(100%, 390px);
  height: auto;
  filter: drop-shadow(0 22px 28px rgba(7, 21, 38, 0.22));
}

.hero-orbit {
  position: absolute;
  width: min(90%, 360px);
  aspect-ratio: 1;
  background: var(--color-orange);
  border: 18px solid rgba(255, 255, 255, 0.68);
  border-radius: 50%;
  box-shadow: 0 0 0 1px rgba(7, 21, 38, 0.08), var(--shadow-soft);
}

/* Sections and cards */
.services {
  scroll-margin-top: 1rem;
  background: var(--color-white);
}

.section-heading {
  max-width: 760px;
  margin-bottom: clamp(2.5rem, 5vw, 4.5rem);
}

.section-heading-centered {
  margin-inline: auto;
  text-align: center;
}

.section-heading-centered > p:last-child {
  max-width: 700px;
  margin-inline: auto;
  color: var(--color-muted);
  font-size: 1.08rem;
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.25rem;
}

.service-card,
.contact-card {
  position: relative;
  overflow: hidden;
  color: rgba(255, 255, 255, 0.78);
  background: var(--color-navy);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius);
  box-shadow: 0 14px 30px rgba(7, 21, 38, 0.13);
}

.service-card {
  min-height: 320px;
  padding: clamp(1.7rem, 3vw, 2.4rem);
}

.service-card::after {
  position: absolute;
  right: -4rem;
  bottom: -4rem;
  width: 10rem;
  height: 10rem;
  content: "";
  background: rgba(255, 153, 66, 0.12);
  border-radius: 50%;
  transition: transform 220ms ease;
}

.service-card:hover::after {
  transform: scale(1.35);
}

.service-card h3,
.contact-card h3 {
  color: var(--color-white);
}

.service-card p,
.contact-card p,
.contact-card address {
  margin-bottom: 0;
}

.card-icon {
  width: 46px;
  height: 46px;
  margin-bottom: 1.5rem;
  color: var(--color-orange);
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.contact {
  scroll-margin-top: 1rem;
  color: var(--color-text);
  background: var(--color-surface);
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.25rem;
}

.contact-card {
  min-height: 245px;
  padding: 2rem;
}

.contact-card address {
  font-style: normal;
}

.contact-card a {
  text-decoration-color: rgba(255, 153, 66, 0.65);
  text-underline-offset: 0.22em;
}

.contact-card a:hover {
  color: var(--color-orange);
}

/* Legal page */
.legal-page {
  min-height: 60vh;
  background:
    radial-gradient(circle at 85% 10%, rgba(65, 121, 213, 0.12), transparent 28rem),
    var(--color-surface);
}

.legal-container {
  max-width: 900px;
}

.legal-card {
  padding: clamp(2rem, 6vw, 4.5rem);
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
}

.legal-card section + section {
  padding-top: 1.75rem;
  margin-top: 1.75rem;
  border-top: 1px solid var(--color-border);
}

.legal-card h2 {
  margin-bottom: 0.65rem;
  font-size: 1.35rem;
}

.legal-card p,
.legal-card address {
  margin-bottom: 0;
  font-style: normal;
}

.legal-card a {
  color: var(--color-blue);
  text-underline-offset: 0.2em;
}

/* Footer */
.site-footer {
  color: rgba(255, 255, 255, 0.72);
  background: var(--color-navy-deep);
}

.footer-grid {
  display: grid;
  align-items: start;
  grid-template-columns: 160px minmax(0, 1fr) minmax(180px, 0.45fr);
  gap: clamp(2rem, 6vw, 5rem);
  padding-block: clamp(3.5rem, 7vw, 5.5rem);
}

.footer-brand img {
  width: 128px;
  height: 128px;
  object-fit: contain;
  background: var(--color-white);
  border-radius: 12px;
}

.footer-about {
  max-width: 620px;
  margin-bottom: 0;
}

.footer-nav h2 {
  margin-bottom: 1rem;
  color: var(--color-white);
  font-size: 1.25rem;
  letter-spacing: 0;
}

.footer-nav li + li {
  margin-top: 0.5rem;
}

.footer-nav a {
  color: rgba(255, 255, 255, 0.76);
  text-decoration: none;
  transition: color 150ms ease;
}

.footer-nav a:hover {
  color: var(--color-orange);
}

.footer-bottom {
  padding-block: 1.35rem;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 0.92rem;
}

.footer-bottom p {
  margin-bottom: 0;
}

/* Responsive navigation and layout */
@media (max-width: 860px) {
  .header-inner {
    min-height: 96px;
  }

  .brand img {
    width: 72px;
    height: 72px;
  }

  .menu-toggle {
    display: block;
  }

  .site-nav {
    position: absolute;
    top: 100%;
    right: 0;
    left: 0;
    display: none;
    padding: 0.5rem 1rem 1.25rem;
    background: var(--color-navy-deep);
    box-shadow: 0 18px 24px rgba(0, 0, 0, 0.2);
  }

  .site-nav.is-open {
    display: block;
  }

  .site-nav ul {
    width: min(100%, var(--container));
    margin-inline: auto;
    align-items: stretch;
    flex-direction: column;
    gap: 0;
  }

  .site-nav a {
    display: block;
    padding: 0.75rem 0;
  }

  .site-nav a::after {
    right: auto;
    width: 40px;
  }

  .hero-grid {
    min-height: auto;
    grid-template-columns: 1fr;
  }

  .hero-art {
    min-height: 320px;
    order: -1;
  }

  .hero-art img {
    width: min(72vw, 310px);
  }

  .hero-orbit {
    width: min(65vw, 285px);
  }

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

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

  .footer-nav {
    grid-column: 1 / -1;
  }
}

@media (max-width: 580px) {
  .container {
    width: min(calc(100% - 1.5rem), var(--container));
  }

  .hero-grid {
    gap: 2.5rem;
    padding-block: 4rem;
  }

  .hero-art {
    min-height: 260px;
  }

  .card-grid,
  .contact-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .service-card {
    min-height: 0;
  }

  .footer-nav {
    grid-column: auto;
  }
}

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

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}
