/* ===== Fonts (self-hosted Inter variable font) ===== */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('/fonts/inter-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('/fonts/inter-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ===== Custom Properties ===== */
:root {
  --navy: #0B1D3A;
  --blue: #2B7DE9;
  --blue-light: #E8F1FC;
  --white: #FFFFFF;
  --off-white: #F7F8FA;
  --gray-100: #F0F1F3;
  --gray-200: #E1E3E8;
  --gray-500: #6B7280;
  --gray-700: #374151;
  --gray-900: #111827;
  --font: 'Inter', system-ui, -apple-system, sans-serif;
  --max-width: 1200px;
  --nav-height: 72px;
  --radius: 12px;
  --shadow: 0 1px 3px rgba(11, 29, 58, 0.08), 0 4px 12px rgba(11, 29, 58, 0.04);
  --shadow-lg: 0 4px 12px rgba(11, 29, 58, 0.1), 0 12px 32px rgba(11, 29, 58, 0.06);
  --transition: 0.2s ease;
}

/* ===== Reset ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  color: var(--gray-900);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
button { font: inherit; cursor: pointer; border: none; background: none; }

/* ===== Utilities ===== */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}
.section { padding: 80px 0; }
.section--gray { background: var(--off-white); }

/* ===== Typography ===== */
h1, h2, h3, h4 { line-height: 1.2; color: var(--navy); font-weight: 700; }
h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.25rem; }
.subtitle { font-size: 1.125rem; color: var(--gray-500); line-height: 1.6; max-width: 640px; }
.section-label {
  font-size: 0.8125rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--blue);
  margin-bottom: 8px;
}
.section-header { margin-bottom: 48px; }

/* ===== Buttons ===== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  font-size: 0.9375rem;
  font-weight: 600;
  border-radius: 8px;
  transition: background var(--transition), transform var(--transition);
}
.btn:hover { transform: translateY(-1px); }
.btn--primary { background: var(--blue); color: var(--white); }
.btn--primary:hover { background: #1F6FD9; }
.btn--outline { border: 1.5px solid var(--gray-200); color: var(--navy); background: var(--white); }
.btn--outline:hover { border-color: var(--blue); color: var(--blue); }
.btn--white { background: var(--white); color: var(--navy); }
.btn--white:hover { background: var(--off-white); }
.btn svg { width: 18px; height: 18px; }

/* ===== Navigation ===== */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--gray-100);
  height: var(--nav-height);
}
.nav .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}
/* ===== 3D Orbit Logo ===== */
.nav-logo {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.375rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  color: var(--navy);
  line-height: 1;
  padding: 14px 6px;
}
.nav-logo .two { color: var(--blue); }
.nav-logo .logo-text { position: relative; z-index: 1; }
.nav-logo .orbit-back,
.nav-logo .orbit-front {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.nav-logo .orbit-back { z-index: 0; }
.nav-logo .orbit-front { z-index: 2; }

/* Footer logo variant (on dark bg) */
.footer .nav-logo { color: var(--white); }
.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
}
.nav-links a {
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--gray-700);
  transition: color var(--transition);
  position: relative;
}
.nav-links a:hover,
.nav-links a.active { color: var(--navy); }
.nav-links a.active::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--blue);
  border-radius: 1px;
}
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 4px;
}
.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--navy);
  border-radius: 2px;
  transition: transform var(--transition), opacity var(--transition);
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ===== Hero ===== */
.hero {
  padding: 96px 0 80px;
  text-align: center;
}
.hero h1 { max-width: 720px; margin: 0 auto 20px; }
.hero .subtitle { margin: 0 auto 36px; }
.hero-buttons { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* Hero with image (split layout) */
.hero--with-image { text-align: left; }
.hero--with-image .hero .subtitle { margin: 0 0 36px; }
.hero-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}
.hero--with-image .hero-buttons { justify-content: flex-start; }
.hero-image {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}
.hero-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* ===== Page Hero ===== */
.page-hero {
  padding: 64px 0;
  text-align: center;
  background: var(--off-white);
  border-bottom: 1px solid var(--gray-100);
}
.page-hero h1 { margin-bottom: 12px; }
.page-hero .subtitle { margin: 0 auto; }

/* ===== Trust Bar ===== */
.trust-bar {
  padding: 48px 0;
  border-top: 1px solid var(--gray-100);
  border-bottom: 1px solid var(--gray-100);
  background: var(--off-white);
}
.trust-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  text-align: center;
}
.trust-item svg {
  width: 32px;
  height: 32px;
  color: var(--blue);
  margin: 0 auto 12px;
}
.trust-item h3 { font-size: 1rem; margin-bottom: 4px; }
.trust-item p { font-size: 0.875rem; color: var(--gray-500); }

/* ===== Cards Grid ===== */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.card {
  background: var(--white);
  border: 1px solid var(--gray-100);
  border-radius: var(--radius);
  padding: 32px;
  transition: box-shadow var(--transition), transform var(--transition);
}
.card:hover { box-shadow: var(--shadow-lg); transform: translateY(-2px); }
.card-image {
  margin: -32px -32px 20px;
  border-radius: var(--radius) var(--radius) 0 0;
  overflow: hidden;
  height: 200px;
}
.card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}
.card:hover .card-image img { transform: scale(1.03); }
.card-body { padding: 0; }
.card-icon {
  width: 48px;
  height: 48px;
  border-radius: 10px;
  background: var(--blue-light);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}
.card-icon svg { width: 24px; height: 24px; color: var(--blue); }
.card h3 { margin-bottom: 12px; }
.card p { font-size: 0.9375rem; color: var(--gray-500); margin-bottom: 16px; }
.card-link {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--blue);
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: gap var(--transition);
}
.card-link:hover { gap: 8px; }
.card-link svg { width: 16px; height: 16px; }

/* ===== Why Section ===== */
.why-intro {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
  margin-bottom: 48px;
}
.why-image {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}
.why-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.why-intro .section-header { margin-bottom: 0; }
.why-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}
.why-item { padding: 24px 0; }
.why-item h3 { margin-bottom: 8px; }
.why-item p { font-size: 0.9375rem; color: var(--gray-500); }
.why-number {
  font-size: 0.8125rem;
  font-weight: 700;
  color: var(--blue);
  margin-bottom: 12px;
}

/* ===== CTA Banner ===== */
.cta-banner {
  background: var(--navy);
  padding: 64px 0;
  text-align: center;
}
.cta-banner h2 { color: var(--white); margin-bottom: 12px; }
.cta-banner p { color: rgba(255, 255, 255, 0.7); margin-bottom: 28px; font-size: 1.0625rem; }

/* ===== Footer ===== */
.footer {
  background: var(--navy);
  color: rgba(255, 255, 255, 0.6);
  padding: 48px 0 32px;
  font-size: 0.875rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 40px;
}
.footer-brand p { margin-top: 12px; max-width: 300px; line-height: 1.6; }
.footer h4 {
  color: var(--white);
  font-size: 0.8125rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 16px;
}
.footer-links a {
  display: block;
  padding: 4px 0;
  color: rgba(255, 255, 255, 0.6);
  transition: color var(--transition);
}
.footer-links a:hover { color: var(--white); }
.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 24px;
  font-size: 0.8125rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}
.footer-legal {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}
.footer-legal a,
.footer-legal button {
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.8125rem;
  transition: color var(--transition);
  padding: 0;
}
.footer-legal a:hover,
.footer-legal button:hover { color: var(--white); }
@media (max-width: 560px) {
  .footer-bottom { flex-direction: column; text-align: center; gap: 12px; }
}

/* ===== Services Page ===== */
.service-image-banner {
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: 48px;
  max-height: 320px;
  box-shadow: var(--shadow);
}
.service-image-banner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.service-block { padding: 80px 0; }
.service-block:nth-child(even) { background: var(--off-white); }
.service-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: start;
}
.service-content--reverse .service-text { order: 2; }
.service-content--reverse .service-list { order: 1; }
.service-text h2 { margin-bottom: 16px; }
.service-text p { color: var(--gray-500); font-size: 0.9375rem; }
.service-list { padding-top: 8px; }
.service-list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--gray-100);
  font-size: 0.9375rem;
  color: var(--gray-700);
}
.service-list li:last-child { border-bottom: none; }
.service-list li svg {
  width: 20px;
  height: 20px;
  color: var(--blue);
  flex-shrink: 0;
  margin-top: 2px;
}

/* ===== Process Steps ===== */
.process-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.process-step {
  text-align: center;
  padding: 32px 20px;
  position: relative;
}
.process-number {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--blue);
  color: var(--white);
  font-size: 1.125rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
}
.process-step h3 { margin-bottom: 8px; }
.process-step p { font-size: 0.875rem; color: var(--gray-500); }

/* ===== Contact Page ===== */
.contact-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-bottom: 64px;
}
.contact-card {
  background: var(--white);
  border: 1px solid var(--gray-100);
  border-radius: var(--radius);
  padding: 32px;
  text-align: center;
}
.contact-card-image {
  margin: -32px -32px 20px;
  border-radius: var(--radius) var(--radius) 0 0;
  overflow: hidden;
  height: 160px;
}
.contact-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.contact-card svg {
  width: 32px;
  height: 32px;
  color: var(--blue);
  margin: 0 auto 16px;
}
.contact-card h3 { margin-bottom: 8px; }
.contact-card p { font-size: 0.9375rem; color: var(--gray-500); margin-bottom: 12px; }
.contact-card a {
  color: var(--blue);
  font-weight: 500;
  font-size: 0.9375rem;
}
.contact-card a:hover { text-decoration: underline; }

.contact-cta {
  text-align: center;
  padding: 48px;
  background: var(--off-white);
  border-radius: var(--radius);
}
.contact-cta h2 { margin-bottom: 12px; }
.contact-cta p { color: var(--gray-500); margin-bottom: 24px; max-width: 480px; margin-left: auto; margin-right: auto; }

/* ===== Responsive ===== */
@media (max-width: 1024px) {
  h1 { font-size: 2rem; }
  h2 { font-size: 1.75rem; }
  .hero-split { grid-template-columns: 1fr; gap: 32px; }
  .hero--with-image { text-align: center; }
  .hero--with-image .hero-buttons { justify-content: center; }
  .hero-image { max-height: 360px; }
  .why-intro { grid-template-columns: 1fr; gap: 24px; }
  .cards-grid,
  .why-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
}

@media (max-width: 768px) {
  .section { padding: 56px 0; }
  h1 { font-size: 1.75rem; }
  h2 { font-size: 1.5rem; }
  .container { padding: 0 16px; }

  /* Nav */
  .nav-toggle { display: flex; }
  .nav-links {
    display: none;
    position: absolute;
    top: var(--nav-height);
    left: 0;
    right: 0;
    background: var(--white);
    flex-direction: column;
    padding: 16px 24px;
    gap: 0;
    border-bottom: 1px solid var(--gray-100);
    box-shadow: var(--shadow);
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 12px 0; width: 100%; }
  .nav-links a.active::after { bottom: 4px; }

  /* Grids */
  .trust-grid { grid-template-columns: repeat(2, 1fr); gap: 24px; }
  .cards-grid { grid-template-columns: 1fr; }
  .why-grid { grid-template-columns: 1fr; }
  .process-grid { grid-template-columns: repeat(2, 1fr); }
  .contact-cards { grid-template-columns: 1fr; }

  /* Services */
  .service-content { grid-template-columns: 1fr; gap: 32px; }
  .service-content--reverse .service-text { order: 1; }
  .service-content--reverse .service-list { order: 2; }

  /* Footer */
  .footer-grid { grid-template-columns: 1fr; gap: 24px; }

  /* Hero */
  .hero { padding: 64px 0 56px; }
  .hero-buttons { flex-direction: column; align-items: center; }
}

@media (max-width: 480px) {
  .trust-grid { grid-template-columns: 1fr; }
  .process-grid { grid-template-columns: 1fr; }
}

/* ===== Legal page (privacy / cookies) ===== */
.legal {
  max-width: 760px;
  margin: 0 auto;
  padding: 56px 24px 80px;
  font-size: 1rem;
  color: var(--gray-700);
  line-height: 1.7;
}
.legal h1 { font-size: 2.25rem; margin-bottom: 8px; }
.legal .updated { color: var(--gray-500); font-size: 0.875rem; margin-bottom: 40px; }
.legal h2 { font-size: 1.375rem; margin: 40px 0 12px; }
.legal h3 { font-size: 1.0625rem; margin: 24px 0 8px; }
.legal p, .legal ul { margin-bottom: 16px; }
.legal ul { list-style: disc; padding-left: 24px; }
.legal ul li { margin-bottom: 6px; }
.legal a { color: var(--blue); text-decoration: underline; }
.legal a:hover { color: #1F6FD9; }
.legal table {
  width: 100%;
  border-collapse: collapse;
  margin: 16px 0 24px;
  font-size: 0.9375rem;
}
.legal th, .legal td {
  text-align: left;
  padding: 12px;
  border-bottom: 1px solid var(--gray-100);
  vertical-align: top;
}
.legal th { background: var(--off-white); font-weight: 600; color: var(--navy); }
.legal code {
  background: var(--gray-100);
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 0.875em;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
}

/* ===== Cookie consent banner ===== */
.consent-overlay {
  position: fixed;
  inset: 0;
  background: rgba(11, 29, 58, 0.4);
  backdrop-filter: blur(2px);
  z-index: 999;
  display: none;
  align-items: flex-end;
  justify-content: center;
  padding: 16px;
}
.consent-overlay[data-open="true"] { display: flex; }
.consent {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  max-width: 560px;
  width: 100%;
  padding: 28px;
  color: var(--gray-700);
  font-size: 0.9375rem;
  line-height: 1.6;
  animation: consentSlideUp 0.2s ease;
}
@keyframes consentSlideUp {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}
.consent h2 { font-size: 1.125rem; margin-bottom: 8px; }
.consent p { margin-bottom: 16px; }
.consent a { color: var(--blue); text-decoration: underline; }
.consent-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 4px;
}
.consent-actions .btn {
  flex: 1 1 auto;
  justify-content: center;
  padding: 10px 16px;
  font-size: 0.875rem;
}
.consent-prefs {
  display: none;
  margin: 8px 0 16px;
  padding: 16px;
  background: var(--off-white);
  border-radius: 8px;
}
.consent-prefs[data-open="true"] { display: block; }
.consent-pref {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 8px 0;
}
.consent-pref + .consent-pref { border-top: 1px solid var(--gray-100); margin-top: 8px; padding-top: 16px; }
.consent-pref input[type="checkbox"] {
  flex-shrink: 0;
  margin-top: 3px;
  width: 16px;
  height: 16px;
  accent-color: var(--blue);
  cursor: pointer;
}
.consent-pref input[type="checkbox"]:disabled { cursor: not-allowed; opacity: 0.6; }
.consent-pref-label { flex: 1; }
.consent-pref-label strong { display: block; color: var(--navy); font-size: 0.9375rem; margin-bottom: 2px; }
.consent-pref-label span { font-size: 0.8125rem; color: var(--gray-500); }
.consent-manage-btn {
  background: none;
  border: none;
  color: var(--blue);
  font-size: 0.875rem;
  font-weight: 500;
  padding: 8px 0;
  text-decoration: underline;
  cursor: pointer;
}

@media (max-width: 480px) {
  .consent { padding: 20px; }
  .consent-actions .btn { flex: 1 1 100%; }
}
