:root {
  --blue-900: #0d47a1;
  --blue-700: #1d6fe0;
  --blue-500: #4fc3f7;
  --blue-100: #e3f4ff;
  --steel: #6d7b8d;
  --ink: #0b1b2b;
  --muted: #566679;
  --white: #ffffff;
  --bg: #f7fbff;
  --line: rgba(13, 71, 161, 0.18);
  --shadow: 0 20px 45px rgba(13, 71, 161, 0.16);
  --radius-lg: 24px;
  --radius-md: 16px;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Manrope", "Segoe UI", sans-serif;
  color: var(--ink);
  background: radial-gradient(circle at 20% 20%, rgba(79, 195, 247, 0.2), transparent 55%),
    radial-gradient(circle at 80% 0%, rgba(13, 71, 161, 0.15), transparent 45%),
    var(--bg);
  min-height: 100vh;
  overflow-x: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  display: block;
}

h1,
h2,
h3 {
  font-family: "Sora", "Trebuchet MS", sans-serif;
  letter-spacing: -0.5px;
  margin: 0 0 12px;
}

p {
  margin: 0 0 16px;
  color: var(--muted);
  line-height: 1.7;
}

code {
  background: rgba(13, 71, 161, 0.08);
  padding: 2px 6px;
  border-radius: 6px;
  font-family: "JetBrains Mono", "Consolas", monospace;
  font-size: 0.85rem;
}

.container {
  width: min(1180px, 92vw);
  margin: 0 auto;
}

.bg-grid {
  position: fixed;
  inset: 0;
  background-image: linear-gradient(rgba(13, 71, 161, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(13, 71, 161, 0.06) 1px, transparent 1px);
  background-size: 36px 36px;
  opacity: 0.35;
  z-index: 0;
  pointer-events: none;
}

.site-header {
  position: sticky;
  top: 0;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
  z-index: 10;
}

.nav-wrapper {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 14px;
}

.brand-logo {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  background: var(--white);
  border: 1px solid var(--line);
  padding: 6px;
}

.brand-text {
  display: flex;
  flex-direction: column;
}

.brand-name {
  font-weight: 700;
  font-size: 1.1rem;
}

.brand-tagline {
  font-size: 0.9rem;
  color: var(--muted);
}

.main-nav {
  display: flex;
  gap: 20px;
  font-weight: 600;
}

.main-nav a {
  position: relative;
  padding-bottom: 4px;
}

.main-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 2px;
  background: var(--blue-500);
  transition: width 0.3s ease;
}

.main-nav a:hover::after {
  width: 100%;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.lang-switch {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--white);
}

.lang-btn {
  border: none;
  background: transparent;
  color: var(--blue-900);
  padding: 6px 10px;
  border-radius: 999px;
  font-weight: 600;
  cursor: pointer;
}

.lang-btn.active {
  background: var(--blue-900);
  color: var(--white);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 4px;
  background: transparent;
  border: none;
  cursor: pointer;
}

.nav-toggle span {
  width: 24px;
  height: 2px;
  background: var(--blue-900);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 20px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

.btn.primary {
  background: linear-gradient(135deg, var(--blue-900), var(--blue-500));
  color: var(--white);
}

.btn.secondary {
  background: var(--white);
  color: var(--blue-900);
  border: 1px solid rgba(13, 71, 161, 0.3);
}

.btn.ghost {
  background: transparent;
  color: var(--blue-900);
  border: 1px solid var(--line);
}

.btn.tertiary {
  background: var(--blue-100);
  color: var(--blue-900);
}

.btn.small {
  padding: 8px 14px;
  font-size: 0.9rem;
}

.hero {
  position: relative;
  padding: 70px 0 80px;
  z-index: 1;
}

.hero-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 40px;
  align-items: center;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(79, 195, 247, 0.2);
  color: var(--blue-900);
  padding: 6px 14px;
  border-radius: 999px;
  font-weight: 600;
  margin-bottom: 18px;
}

.hero-copy h1 {
  font-size: clamp(2.4rem, 3.5vw, 3.6rem);
}

.lead {
  font-size: 1.1rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 24px 0;
}

.hero-metrics {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 14px;
}

.hero-metrics div {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 14px 16px;
  box-shadow: var(--shadow);
}

.hero-metrics strong {
  font-size: 1.4rem;
  display: block;
}

.hero-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.hero-card-media {
  background: linear-gradient(135deg, rgba(79, 195, 247, 0.3), rgba(13, 71, 161, 0.1));
  padding: 20px;
}

.hero-card-media img {
  border-radius: 18px;
}

.hero-card-body {
  padding: 24px;
}

.hero-card-body ul {
  padding-left: 20px;
  margin: 12px 0 20px;
}

.hero-card-body li {
  margin-bottom: 8px;
  color: var(--muted);
}

.hero-card-cta {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.section {
  padding: 70px 0;
  position: relative;
  z-index: 1;
}

.section-header {
  margin-bottom: 32px;
  max-width: 640px;
}

.services {
  background: var(--white);
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 18px;
}

.service-card {
  background: var(--white);
  border-radius: var(--radius-md);
  border: 1px solid var(--line);
  padding: 20px;
  box-shadow: 0 12px 28px rgba(13, 71, 161, 0.1);
}

.service-icon {
  font-size: 1.6rem;
  margin-bottom: 10px;
}

.process {
  background: linear-gradient(135deg, rgba(79, 195, 247, 0.12), rgba(13, 71, 161, 0.08));
}

.process-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
}

.process-step {
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 22px;
  border: 1px solid var(--line);
  box-shadow: 0 16px 32px rgba(13, 71, 161, 0.12);
}

.process-step span {
  display: inline-flex;
  font-weight: 700;
  color: var(--blue-900);
  font-size: 1.2rem;
  margin-bottom: 10px;
}

.interactive {
  background: var(--white);
}

.interactive-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}

.form-card,
.calc-card {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: var(--shadow);
}

.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 14px;
}

input,
select,
textarea {
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid rgba(13, 71, 161, 0.2);
  font: inherit;
  background: var(--white);
}

input:focus,
select:focus,
textarea:focus {
  outline: 2px solid rgba(79, 195, 247, 0.6);
}

.form-result {
  margin-top: 14px;
  font-weight: 600;
  color: var(--blue-900);
}

.calc-result {
  background: var(--white);
  border: 1px dashed rgba(13, 71, 161, 0.3);
  border-radius: 14px;
  padding: 16px;
  font-weight: 600;
  color: var(--blue-900);
}

.calc-note {
  font-size: 0.9rem;
  color: var(--muted);
}

.emergency {
  background: linear-gradient(135deg, var(--blue-900), var(--blue-700));
  color: var(--white);
}

.emergency p {
  color: rgba(255, 255, 255, 0.8);
}

.emergency-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
  align-items: center;
}

.emergency-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.emergency .btn.secondary {
  background: var(--white);
  color: var(--blue-900);
  border-color: transparent;
}

.emergency .btn.ghost {
  border-color: rgba(255, 255, 255, 0.4);
  color: var(--white);
}

.map {
  background: var(--white);
}

.map-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
  align-items: center;
}

.map-card {
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  min-height: 300px;
}

.map-card iframe {
  width: 100%;
  height: 100%;
  border: 0;
  min-height: 320px;
}

.city-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 18px 0;
}

.city-list span {
  background: var(--blue-100);
  color: var(--blue-900);
  padding: 6px 12px;
  border-radius: 999px;
  font-weight: 600;
}

.contact-box {
  background: var(--bg);
  border-radius: var(--radius-md);
  padding: 16px;
  border: 1px solid var(--line);
}

.assistant {
  background: linear-gradient(135deg, rgba(79, 195, 247, 0.12), rgba(13, 71, 161, 0.05));
}

.assistant-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
  align-items: center;
}

.assistant-grid img {
  border-radius: var(--radius-lg);
  background: var(--white);
  padding: 18px;
  border: 1px solid var(--line);
}

.site-footer {
  padding: 40px 0 60px;
  background: var(--white);
  border-top: 1px solid var(--line);
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
}

.chat-widget {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 20;
}

.chat-toggle {
  background: var(--blue-900);
  color: var(--white);
  border: none;
  padding: 12px 18px;
  border-radius: 999px;
  font-weight: 600;
  cursor: pointer;
  box-shadow: var(--shadow);
}

.chat-panel {
  margin-top: 12px;
  width: min(340px, 90vw);
  background: var(--white);
  border-radius: 16px;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.chat-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 14px;
  background: rgba(79, 195, 247, 0.2);
}

.chat-close {
  border: none;
  background: none;
  font-size: 1.2rem;
  cursor: pointer;
}

.chat-body {
  max-height: 240px;
  overflow-y: auto;
  padding: 12px;
  display: grid;
  gap: 10px;
}

.chat-message {
  padding: 10px 12px;
  border-radius: 12px;
  font-size: 0.9rem;
}

.chat-message.bot {
  background: rgba(13, 71, 161, 0.08);
}

.chat-message.user {
  background: var(--blue-900);
  color: var(--white);
  justify-self: end;
}

.chat-input {
  display: flex;
  gap: 8px;
  padding: 12px;
  border-top: 1px solid var(--line);
}

.chat-input input {
  flex: 1;
}

.chat-actions {
  display: flex;
  justify-content: flex-end;
  padding: 0 12px 12px;
}

.fineprint {
  font-size: 0.85rem;
  color: var(--muted);
  padding: 0 12px 12px;
}

.emergency-fab {
  position: fixed;
  bottom: 24px;
  left: 24px;
  background: var(--blue-900);
  color: var(--white);
  padding: 12px 18px;
  border-radius: 999px;
  font-weight: 600;
  box-shadow: var(--shadow);
  z-index: 20;
}

.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 960px) {
  .main-nav {
    position: absolute;
    top: 72px;
    right: 4vw;
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: 16px;
    padding: 16px;
    flex-direction: column;
    gap: 12px;
    display: none;
    box-shadow: var(--shadow);
  }

  .main-nav.open {
    display: flex;
  }

  .nav-actions {
    display: none;
  }

  .nav-toggle {
    display: flex;
  }
}

@media (max-width: 720px) {
  .hero {
    padding-top: 50px;
  }

  .chat-widget {
    right: 12px;
    bottom: 12px;
  }

  .emergency-fab {
    left: 12px;
    bottom: 12px;
  }
}
