@import url("https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@400;500;600;700&family=Spectral:wght@400;500;600&display=swap");

:root {
  --brand-navy: #0b1b2b;
  --brand-deep: #0f2a44;
  --brand-blue: #1c4b7a;
  --brand-cyan: #37c0c9;
  --brand-orange: #f37021;
  --brand-sand: #f4efe9;
  --brand-ink: #0a0f14;
  --text: #15202b;
  --muted: #5b6b7b;
  --white: #ffffff;
  --shadow: 0 20px 60px rgba(12, 24, 38, 0.18);
  --surface: #f8fafc;
  --surface-contrast: #e8eef5;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Spectral", "Times New Roman", serif;
  color: var(--text);
  background: radial-gradient(circle at top left, #f9f2e9 0%, #f2f6fb 40%, #e6edf5 100%);
  min-height: 100vh;
}

a {
  color: inherit;
  text-decoration: none;
}

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

.container {
  width: min(1160px, 92vw);
  margin: 0 auto;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: -999px;
  background: var(--brand-orange);
  color: var(--white);
  padding: 8px 12px;
  border-radius: 999px;
  z-index: 999;
}

.skip-link:focus {
  left: 16px;
  top: 16px;
}

.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(15, 42, 68, 0.08);
  box-shadow: 0 10px 30px rgba(12, 24, 38, 0.06);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 16px 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 14px;
  font-family: "Space Grotesk", sans-serif;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--brand-navy);
  min-width: 260px;
}

.brand-mark {
  width: 64px;
  height: 44px;
  border-radius: 12px;
  background: transparent;
  display: grid;
  place-items: center;
  border: none;
}

.brand-mark img,
.brand-mark svg {
  width: 64px;
  height: auto;
}

.brand span {
  display: block;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--muted);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 14px;
  font-family: "Space Grotesk", sans-serif;
  font-size: 0.93rem;
  font-weight: 600;
  color: var(--brand-deep);
  flex-wrap: wrap;
  justify-content: center;
}

.nav-links a {
  padding: 8px 14px;
  border-radius: 12px;
  transition: all 0.2s ease;
  position: relative;
  line-height: 1.2;
}

.nav-links a:hover,
.nav-links a.active {
  background: rgba(28, 75, 122, 0.12);
  color: var(--brand-navy);
}

.nav-links a.active::after {
  content: "";
  position: absolute;
  left: 16px;
  right: 16px;
  bottom: -6px;
  height: 3px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--brand-orange), var(--brand-cyan));
}

.nav-dropdown {
  position: relative;
}

.nav-dropdown-toggle {
  padding: 8px 14px;
  border-radius: 12px;
  border: none;
  background: transparent;
  color: var(--brand-deep);
  font-family: "Space Grotesk", sans-serif;
  font-size: 0.93rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  position: relative;
}

.nav-dropdown-toggle:hover,
.nav-dropdown-toggle.active {
  background: rgba(28, 75, 122, 0.12);
  color: var(--brand-navy);
}

.nav-dropdown-toggle.active::after {
  content: "";
  position: absolute;
  left: 16px;
  right: 16px;
  bottom: -6px;
  height: 3px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--brand-orange), var(--brand-cyan));
}

.nav-dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 240px;
  background: var(--white);
  border-radius: 16px;
  padding: 14px 10px 10px;
  box-shadow: var(--shadow);
  border: 1px solid rgba(15, 42, 68, 0.08);
  display: none;
  z-index: 200;
}

.nav-dropdown-menu::before {
  content: "";
  position: absolute;
  top: -12px;
  left: 0;
  right: 0;
  height: 12px;
}

.nav-dropdown-menu a {
  display: block;
  padding: 10px 12px;
  border-radius: 12px;
  font-weight: 600;
  color: var(--brand-deep);
}

.nav-dropdown-menu a:hover {
  background: rgba(28, 75, 122, 0.08);
  color: var(--brand-navy);
}

.nav-dropdown.open .nav-dropdown-menu {
  display: block;
}

.nav-dropdown:hover .nav-dropdown-menu,
.nav-dropdown:focus-within .nav-dropdown-menu {
  display: block;
}

.nav-toggle {
  display: none;
  border: none;
  background: var(--brand-deep);
  color: var(--white);
  padding: 8px 12px;
  border-radius: 10px;
  font-family: "Space Grotesk", sans-serif;
}

.lang-switch {
  display: flex;
  gap: 8px;
  font-family: "Space Grotesk", sans-serif;
  font-size: 0.85rem;
}

.lang-switch a {
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(15, 42, 68, 0.08);
  font-weight: 600;
  color: var(--brand-deep);
}

.hero {
  position: relative;
  padding: 96px 0 80px;
  overflow: hidden;
}

.hero::before,
.hero::after {
  content: "";
  position: absolute;
  width: 280px;
  height: 280px;
  border-radius: 40% 60% 70% 30%;
  filter: blur(0.5px);
  opacity: 0.65;
  z-index: 0;
}

.hero::before {
  background: linear-gradient(135deg, #ffd6b0, #ff8f3b);
  top: -120px;
  right: -60px;
}

.hero::after {
  background: linear-gradient(135deg, #b2e9f0, #4ab1e6);
  bottom: -140px;
  left: -80px;
}

.hero-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 36px;
  align-items: center;
}

.hero h1 {
  font-family: "Space Grotesk", sans-serif;
  font-size: clamp(2.4rem, 4vw, 3.5rem);
  margin: 0 0 16px;
  color: var(--brand-navy);
}

.hero p {
  font-size: 1.05rem;
  color: var(--muted);
  line-height: 1.7;
}

.hero-card {
  background: var(--white);
  padding: 28px;
  border-radius: 24px;
  box-shadow: var(--shadow);
  color: var(--brand-ink);
}

.hero-meta {
  display: grid;
  gap: 12px;
  margin-top: 20px;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(15, 42, 68, 0.08);
  font-family: "Space Grotesk", sans-serif;
  font-size: 0.85rem;
  color: var(--brand-deep);
}

.button-group {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}

.btn {
  padding: 12px 20px;
  border-radius: 999px;
  font-family: "Space Grotesk", sans-serif;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn-primary {
  background: var(--brand-orange);
  color: var(--white);
  box-shadow: 0 12px 30px rgba(243, 112, 33, 0.25);
}

.btn-secondary {
  background: transparent;
  color: var(--brand-deep);
  border: 1px solid rgba(15, 42, 68, 0.2);
}

.btn:hover {
  transform: translateY(-2px);
}

.section {
  padding: 70px 0;
}

.section-title {
  font-family: "Space Grotesk", sans-serif;
  font-size: clamp(1.6rem, 2.5vw, 2.2rem);
  margin-bottom: 20px;
  color: var(--brand-navy);
}

.section-subtitle {
  color: var(--muted);
  max-width: 680px;
  line-height: 1.7;
}

.grid {
  display: grid;
  gap: 24px;
}

.grid-3 {
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.grid-2 {
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.card {
  background: var(--white);
  padding: 24px;
  border-radius: 20px;
  border: 1px solid rgba(15, 42, 68, 0.08);
  box-shadow: 0 12px 30px rgba(12, 24, 38, 0.08);
  color: var(--brand-ink);
}

.card h3 {
  font-family: "Space Grotesk", sans-serif;
  margin-top: 0;
  color: var(--brand-deep);
}

.card p {
  color: var(--muted);
  line-height: 1.6;
}

.highlight {
  background: linear-gradient(135deg, #0b1b2b, #1f3a5a);
  color: var(--white);
  border-radius: 28px;
  padding: 40px;
}

.highlight p {
  color: rgba(255, 255, 255, 0.8);
}

.highlight .section-title {
  color: var(--white);
}

.highlight .btn-secondary {
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.5);
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
}

.tag {
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
  font-size: 0.85rem;
}

.service-hero {
  background: linear-gradient(135deg, rgba(243, 112, 33, 0.12), rgba(55, 192, 201, 0.15));
  border-radius: 28px;
  padding: 36px;
  color: var(--brand-ink);
}

.list {
  margin: 0;
  padding-left: 20px;
  color: var(--muted);
  line-height: 1.7;
}

.legal {
  background: var(--white);
  border-radius: 24px;
  padding: 32px;
  border: 1px solid rgba(15, 42, 68, 0.08);
  box-shadow: var(--shadow);
  color: var(--brand-ink);
}

.legal h3,
.legal h4 {
  font-family: "Space Grotesk", sans-serif;
  color: var(--brand-deep);
}

.contact-grid {
  display: grid;
  gap: 20px;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.form {
  display: grid;
  gap: 12px;
}

.form label {
  font-family: "Space Grotesk", sans-serif;
  font-size: 0.9rem;
}

.form input,
.form textarea,
.form select {
  width: 100%;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid rgba(15, 42, 68, 0.2);
  font-family: "Spectral", serif;
}

.footer {
  margin-top: 40px;
  padding: 50px 0 30px;
  background: var(--brand-navy);
  color: var(--white);
}

.footer a {
  color: inherit;
}

.footer-grid {
  display: grid;
  gap: 30px;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.footer h4 {
  font-family: "Space Grotesk", sans-serif;
  margin-top: 0;
}

.footer p,
.footer li {
  color: rgba(255, 255, 255, 0.75);
  line-height: 1.6;
}

.diagram-block {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
  align-items: center;
  background: var(--surface);
  border-radius: 24px;
  padding: 28px;
  border: 1px solid rgba(15, 42, 68, 0.08);
}

.diagram-subtitle {
  color: var(--muted);
  margin-top: 0;
  line-height: 1.7;
}

.diagram-placeholder {
  background: linear-gradient(135deg, var(--surface-contrast), #ffffff);
  border-radius: 20px;
  padding: 18px;
  min-height: 200px;
  border: 1px dashed rgba(15, 42, 68, 0.2);
  color: var(--brand-deep);
  display: grid;
  place-items: center;
  text-align: center;
  font-family: "Space Grotesk", sans-serif;
}

.diagram-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(100px, 1fr));
  gap: 12px;
  width: 100%;
}

.diagram-grid span {
  padding: 10px;
  border-radius: 12px;
  background: rgba(15, 42, 68, 0.08);
  color: var(--brand-ink);
  font-size: 0.9rem;
}

.diagram-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 22px;
}

.diagram-item {
  background: var(--white);
  border-radius: 18px;
  padding: 18px;
  border: 1px solid rgba(15, 42, 68, 0.08);
  box-shadow: 0 12px 30px rgba(12, 24, 38, 0.08);
  text-align: center;
  color: var(--brand-ink);
}

.diagram-item img {
  border-radius: 14px;
  background: var(--surface);
  border: 1px solid rgba(15, 42, 68, 0.1);
  cursor: zoom-in;
}

.diagram-item figcaption {
  margin-top: 12px;
  font-family: "Space Grotesk", sans-serif;
  color: var(--brand-deep);
}

.diagram-hint {
  margin-top: 16px;
  color: var(--muted);
}

.zoom-overlay {
  position: fixed;
  inset: 0;
  background: rgba(8, 18, 28, 0.7);
  display: grid;
  place-items: center;
  padding: 30px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
  z-index: 300;
}

.zoom-overlay.is-open {
  opacity: 1;
  pointer-events: all;
}

.zoom-overlay img {
  max-width: min(1200px, 92vw);
  max-height: 80vh;
  border-radius: 18px;
  background: var(--white);
  box-shadow: var(--shadow);
}

.zoom-close {
  position: absolute;
  top: 24px;
  right: 24px;
  background: var(--white);
  border: none;
  border-radius: 999px;
  padding: 8px 14px;
  font-family: "Space Grotesk", sans-serif;
  cursor: pointer;
}

.reveal {
  opacity: 1;
  transform: none;
}

.js .reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: all 0.6s ease;
}

.js .reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 900px) {
  .nav-links {
    position: absolute;
    top: 72px;
    right: 16px;
    flex-direction: column;
    background: var(--white);
    border-radius: 16px;
    padding: 16px;
    box-shadow: var(--shadow);
    display: none;
    align-items: stretch;
  }

  .nav-links.open {
    display: flex;
  }

  .nav-toggle {
    display: inline-flex;
  }

  .nav-dropdown {
    width: 100%;
  }

  .nav-dropdown-toggle {
    width: 100%;
    text-align: left;
  }

  .nav-dropdown-menu {
    position: static;
    box-shadow: none;
    border: none;
    padding: 8px 0 0;
    background: transparent;
  }
}
