:root {
  --navy: #0b2545;
  --navy-dark: #071931;
  --blue: #4a6fe3;
  --blue-light: #7b93e8;
  --bg: #ffffff;
  --bg-alt: #f5f7fb;
  --text: #1a1f2b;
  --text-muted: #5a6472;
  --border: #e3e7ef;
  --radius: 10px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
}

.container {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 24px;
}

h1, h2, h3, h4 {
  font-weight: 700;
  line-height: 1.25;
  margin: 0 0 16px;
  color: var(--navy);
}

h2 { font-size: 2rem; }
h3 { font-size: 1.25rem; }
h4 { font-size: 1.05rem; }

p { margin: 0 0 16px; color: var(--text-muted); }

a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; }

ul { margin: 0; padding-left: 1.1rem; }
li { margin-bottom: 10px; color: var(--text-muted); }
li strong { color: var(--text); }

/* Header: fixed, hidden at the top, slides in once the page is scrolled */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 150;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--border);
  transform: translateY(-100%);
  opacity: 0;
  pointer-events: none;
  transition: transform 0.35s ease, opacity 0.3s ease;
}

.site-header.visible {
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}

/* Used on pages without a big hero logo (e.g. thank-you): header is always shown, in normal flow */
.site-header.static {
  position: static;
  transform: none;
  opacity: 1;
  pointer-events: auto;
}

.nav {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 24px;
}

.brand {
  display: block;
}

.brand-logo {
  height: 88px;
  display: block;
}

.nav-links {
  display: flex;
  gap: 28px;
}

.nav-links a {
  color: var(--navy);
  font-weight: 500;
  font-size: 0.95rem;
}

.nav-links a:hover { color: var(--blue); text-decoration: none; }

/* Groups nav links + language toggle together on the right of the header */
.nav-right {
  display: flex;
  align-items: center;
  gap: 24px;
}

.lang-toggle {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.85rem;
  font-weight: 600;
  padding-left: 20px;
  border-left: 1px solid var(--border);
}

.lang-btn {
  background: none;
  border: none;
  cursor: pointer;
  font: inherit;
  color: var(--text-muted);
  padding: 4px 6px;
  border-radius: 4px;
}

.lang-btn.active {
  color: var(--navy);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.lang-btn:hover { color: var(--blue); }
.lang-sep { color: var(--border); }

/* Hero */
.hero {
  position: relative;
  overflow: hidden;
  background: linear-gradient(180deg, var(--bg-alt) 0%, var(--bg) 100%);
  padding: 96px 0 72px;
  text-align: center;
}

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

.hero-logo {
  display: block;
  height: 280px;
  margin: 0 auto 32px;
}

.hero h1 {
  font-size: 2.75rem;
  max-width: 800px;
  margin: 0 auto 24px;
}

.hero-sub {
  max-width: 620px;
  margin: 0 auto 32px;
  font-size: 1.1rem;
}

/* Offset anchor-scroll targets so headings don't land under the fixed header */
.services, .why-us, .contact {
  scroll-margin-top: 76px;
}

/* Animated decorative background: digital lines + compass */
.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}

.hero-lines {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.flow-path {
  fill: none;
  stroke: var(--navy);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-dasharray: 6 16;
  opacity: 0.16;
  animation: flow-dash 7s linear infinite;
}

.flow-path.p2 {
  stroke: var(--blue);
  animation-duration: 9s;
  animation-direction: reverse;
}

.flow-path.p3 { animation-duration: 11s; }

.flow-node {
  fill: var(--blue);
  opacity: 0.35;
  transform-box: fill-box;
  transform-origin: center;
  animation: flow-pulse 3.4s ease-in-out infinite;
}

.flow-node:nth-child(odd) { animation-delay: -1.6s; }
.flow-node:nth-child(3n) { animation-delay: -2.4s; }

@keyframes flow-dash { to { stroke-dashoffset: -440; } }

@keyframes flow-pulse {
  0%, 100% { opacity: 0.2; transform: scale(0.8); }
  50% { opacity: 0.6; transform: scale(1.3); }
}

.hero-compass {
  position: absolute;
  right: -70px;
  bottom: -90px;
  width: 380px;
  height: 380px;
  opacity: 0.10;
}

.compass-rotate {
  transform-origin: 100px 100px;
  animation: compass-spin 110s linear infinite;
}

.compass-ring { fill: none; stroke: var(--navy); stroke-width: 1.5; }
.compass-ticks line { stroke: var(--navy); stroke-width: 2.5; }
.compass-needle { fill: var(--blue); }
.compass-center { fill: var(--navy); }

@keyframes compass-spin { to { transform: rotate(360deg); } }

.why-us-bg .flow-path { stroke: var(--blue-light); opacity: 0.22; }
.why-us-bg .flow-node { fill: var(--blue-light); opacity: 0.4; }

@media (prefers-reduced-motion: reduce) {
  .flow-path, .flow-node, .compass-rotate {
    animation: none !important;
  }
}

.btn {
  display: inline-block;
  padding: 14px 32px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  border: none;
}

.btn-primary {
  background: var(--navy);
  color: #fff;
}

.btn-primary:hover {
  background: var(--blue);
  text-decoration: none;
}

/* Services */
.services { padding: 88px 0; }

.section-intro {
  max-width: 680px;
  font-size: 1.05rem;
  margin-bottom: 48px;
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 28px;
}

.card {
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
}

.card h3 {
  border-bottom: 2px solid var(--blue-light);
  padding-bottom: 14px;
  margin-bottom: 18px;
}

/* Why us */
.why-us {
  position: relative;
  overflow: hidden;
  background: var(--navy);
  padding: 88px 0;
}

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

.why-us h2 { color: #fff; }
.why-us p { color: #cfd8ec; }

.feature-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 28px;
  margin-top: 40px;
}

.feature {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: var(--radius);
  padding: 24px;
}

.feature h4 { color: #fff; }
.feature p { color: #b8c2da; margin-bottom: 0; font-size: 0.95rem; }

/* Contact */
.contact { padding: 88px 0; }

.contact-layout {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 48px;
  align-items: start;
}

.hidden-field { display: none; }

.form-row {
  margin-bottom: 20px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-row label {
  font-weight: 500;
  font-size: 0.9rem;
  color: var(--navy);
}

.form-row input,
.form-row textarea {
  font-family: inherit;
  font-size: 1rem;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--bg-alt);
  color: var(--text);
}

.form-row input:focus,
.form-row textarea:focus {
  outline: none;
  border-color: var(--blue);
  background: #fff;
}

.contact-info {
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
  align-self: start;
}

.contact-info-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.contact-info-item + .contact-info-item {
  margin-top: 22px;
  padding-top: 22px;
  border-top: 1px solid var(--border);
}

.contact-info-label {
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--text-muted);
}

.contact-info-item a {
  font-size: 1rem;
  font-weight: 500;
}

.whatsapp-link {
  display: inline-block;
  margin-top: 2px;
  font-size: 0.85rem;
  color: #25a35a;
}

.whatsapp-link:hover { color: #1d8148; }

/* Footer */
.site-footer {
  background: var(--navy-dark);
  padding: 40px 0;
  text-align: center;
}

.footer-logo {
  height: 40px;
  margin-bottom: 16px;
  opacity: 0.9;
  filter: brightness(0) invert(1);
}

.site-footer p {
  color: #8a97b5;
  margin: 0;
  font-size: 0.9rem;
}

/* Responsive */
@media (max-width: 640px) {
  .hero { padding: 56px 0 48px; }
  .hero-logo { height: 150px; margin-bottom: 20px; }
  .hero h1 { font-size: 2rem; }
  .nav { padding: 10px 16px; }
  .brand-logo { height: 72px; }
  .nav-right { gap: 12px; }
  .lang-toggle { padding-left: 10px; gap: 4px; font-size: 0.75rem; }
  .nav-links { gap: 12px; }
  .nav-links a { font-size: 0.8rem; }
  .services, .why-us, .contact { padding: 56px 0; }
}
