:root {
  --color-primary: #466BA5;
  --color-primary-dark: #35547f;
  --color-secondary: #7287B8;
  --color-accent: #466BA5;
  --color-accent-dark: #35547f;
  --color-bg: #ffffff;
  --color-bg-alt: #f4f6f9;
  --color-text: #22303f;
  --color-text-muted: #5b6b7b;
  --color-border: #e1e6ec;
  --color-accent-red: #e02030;
  --color-accent-purple: #423c8c;
  --font-base: 'Open Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Arial, sans-serif;
}

@font-face {
  font-family: 'Open Sans';
  src: url('fonts/open-sans-variable.woff2') format('woff2-variations'), url('fonts/open-sans-variable.woff2') format('woff2');
  font-weight: 300 800;
  font-style: normal;
  font-display: swap;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

@keyframes fade-in-up {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes badge-pop {
  from { opacity: 0; transform: scale(0.8); }
  to { opacity: 1; transform: scale(1); }
}
@keyframes blob-float {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(-10px, 14px) scale(1.06); }
}

body {
  font-family: var(--font-base);
  color: var(--color-text);
  background: var(--color-bg);
  line-height: 1.6;
  padding-bottom: 90px;
}

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

h1, h2, h3 { color: var(--color-primary); font-weight: 700; line-height: 1.25; }
h1 { font-size: 2.5rem; font-weight: 800; letter-spacing: -0.02em; margin-bottom: 1rem; }
h2 {
  font-size: 1.75rem;
  font-weight: 800;
  letter-spacing: -0.01em;
  margin-bottom: 1.5rem;
  padding-left: 0.9rem;
  border-left: 4px solid var(--color-accent);
}
h3 { font-size: 1.25rem; margin-bottom: 0.5rem; }
p { margin-bottom: 0.75rem; }
a { color: var(--color-accent); text-decoration: none; transition: color 0.15s ease; }
a:hover { text-decoration: underline; }

/* Header */
#top, #services, #about, #contact { scroll-margin-top: 80px; }
.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  box-shadow: 0 2px 10px rgba(27, 58, 92, 0.12);
}
.site-header-top {
  background: var(--color-bg);
  border-bottom: 1px solid var(--color-border);
}
.header-top-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}
.wordmark img {
  display: block;
  height: 38px;
  width: auto;
}
.btn-header-cta {
  font-size: 0.9rem;
}

.site-nav-bar {
  background: var(--color-primary);
}
.nav-bar-inner {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  position: relative;
  min-height: 48px;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}
.nav-links a {
  position: relative;
  color: #d7e3f0;
  padding: 0.75rem 0;
}
.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0.5rem;
  height: 2px;
  background: #fff;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.2s ease;
}
.nav-links a:hover { color: #fff; }
.nav-links a:hover::after { transform: scaleX(1); }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
}
.nav-toggle span {
  width: 24px;
  height: 2px;
  background: #fff;
}

/* Hero */
.hero {
  background: var(--color-bg-alt);
  background-image: radial-gradient(circle at 85% 30%, rgba(70, 107, 165, 0.12), transparent 60%);
  padding: 4.5rem 0;
  overflow: hidden;
}
.hero-inner {
  display: flex;
  align-items: center;
  gap: 3rem;
}
.hero-text { flex: 1.1; }
.hero-text h1 { animation: fade-in-up 0.7s ease both; }
.hero-text .hero-lead { animation: fade-in-up 0.7s ease 0.15s both; }
.hero-text .btn { animation: fade-in-up 0.7s ease 0.3s both; }
.hero-lead {
  max-width: 520px;
  margin: 0 0 2rem;
  color: var(--color-text-muted);
  font-size: 1.1rem;
}
.hero-visual {
  flex: 0.9;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 320px;
}
.hero-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(2px);
  animation: blob-float 7s ease-in-out infinite;
}
.hero-blob-blue {
  width: 260px;
  height: 260px;
  background: radial-gradient(circle, rgba(70, 107, 165, 0.35) 0%, rgba(70, 107, 165, 0) 72%);
  top: 10%;
  left: 8%;
  animation-duration: 8s;
}
.hero-blob-red {
  width: 180px;
  height: 180px;
  background: radial-gradient(circle, rgba(224, 32, 48, 0.22) 0%, rgba(224, 32, 48, 0) 72%);
  bottom: 4%;
  right: 6%;
  animation-duration: 6s;
  animation-delay: -2s;
}
.hero-blob-purple {
  width: 200px;
  height: 200px;
  background: radial-gradient(circle, rgba(66, 60, 140, 0.22) 0%, rgba(66, 60, 140, 0) 72%);
  top: 22%;
  right: 18%;
  animation-duration: 9s;
  animation-delay: -4s;
}
.hero-badge {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 168px;
  height: 168px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 20px 40px rgba(27, 58, 92, 0.22);
  animation: badge-pop 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) 0.2s both;
}
.hero-badge img {
  width: 104px;
  height: auto;
}
.btn {
  display: inline-block;
  padding: 0.75rem 1.75rem;
  border-radius: 4px;
  font-weight: 600;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}
.btn-primary {
  background: var(--color-accent);
  color: #fff;
  box-shadow: 0 4px 14px rgba(70, 107, 165, 0.3);
}
.btn-primary:hover {
  background: var(--color-accent-dark);
  text-decoration: none;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(70, 107, 165, 0.38);
}

/* Services */
.services { padding: 4rem 0; }
.service {
  display: flex;
  gap: 2rem;
  align-items: center;
  padding: 2rem;
  margin-bottom: 1.5rem;
  border-radius: 10px;
  color: #fff;
  box-shadow: 0 6px 18px rgba(27, 58, 92, 0.14);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.service:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 28px rgba(27, 58, 92, 0.22);
}
.service:last-child { margin-bottom: 0; }
.service:nth-child(odd) { background: var(--color-primary); }
.service:nth-child(even) { background: var(--color-secondary); }
.service-number {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 3.5rem;
  height: 3.5rem;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.16);
  font-size: 1.35rem;
  font-weight: 800;
  color: #fff;
}
.service-content { flex: 1; }
.service-content h3 { color: #fff; }
.service-content a { color: #fff; text-decoration: underline; }

/* About */
.about {
  background: var(--color-bg-alt);
  padding: 4rem 0;
}
.values {
  display: flex;
  gap: 2rem;
  margin-top: 2.5rem;
  flex-wrap: wrap;
}
.value {
  flex: 1;
  min-width: 220px;
  text-align: center;
  background: var(--color-bg);
  border-radius: 10px;
  padding: 2rem 1.5rem;
  box-shadow: 0 6px 18px rgba(27, 58, 92, 0.08);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.value:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 24px rgba(27, 58, 92, 0.14);
}
.value img {
  max-width: 100%;
  height: 140px;
  object-fit: contain;
  margin-bottom: 1rem;
}
.value h3 { font-size: 1.1rem; color: var(--color-accent-red); }
.value p { color: var(--color-accent-purple); font-weight: 600; margin-bottom: 0; }

/* Contact */
.contact { padding: 4rem 0; }
.contact-lead {
  max-width: 640px;
  color: var(--color-text-muted);
  margin-bottom: 2rem;
}
.contact-people {
  display: flex;
  gap: 2rem;
  flex-wrap: wrap;
  margin-bottom: 2rem;
}
.contact-person {
  flex: 1;
  min-width: 220px;
  background: var(--color-bg-alt);
  padding: 1.5rem;
  border-radius: 10px;
  border-left: 3px solid var(--color-accent);
  box-shadow: 0 4px 14px rgba(27, 58, 92, 0.06);
}
.contact-address {
  font-style: normal;
  color: var(--color-text-muted);
}

/* Footer */
.site-footer {
  background: var(--color-primary-dark);
  color: #cfd9e3;
  padding: 1.5rem 0;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 10;
}
.footer-inner {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.site-footer a { color: #cfd9e3; }
.site-footer a:hover { color: #fff; }

/* Scroll reveal */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}
@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
  .hero-blob { animation: none; }
  .hero-text h1, .hero-text .hero-lead, .hero-text .btn, .hero-badge {
    animation: none;
    opacity: 1;
    transform: none;
  }
}

/* Legal page */
.legal { padding: 3rem 0; }
.legal h1 { margin-bottom: 2rem; }
.legal h2 { font-size: 1.25rem; margin-top: 2rem; }

/* Mobile */
@media (max-width: 768px) {
  body { padding-bottom: 130px; }
  .nav-toggle { display: flex; }
  .nav-bar-inner { justify-content: space-between; }
  .nav-links {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--color-primary);
    flex-direction: column;
    align-items: flex-start;
    padding: 1rem 1.5rem;
    gap: 1rem;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s;
  }
  #mainNav.nav-open .nav-links {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }
  .hero-inner { flex-direction: column; text-align: center; }
  .hero-lead { margin: 0 auto 2rem; }
  .hero-visual { order: -1; height: 220px; margin: 0 auto 1rem; }
  .hero-badge { width: 130px; height: 130px; }
  .hero-badge img { width: 80px; }
  .hero-blob-blue { width: 190px; height: 190px; }
  .hero-blob-red { width: 130px; height: 130px; }
  .hero-blob-purple { width: 150px; height: 150px; }
  .service { flex-direction: column !important; gap: 1rem; }
  .service-number { min-width: auto; }
  h1 { font-size: 1.75rem; }
}
