:root {
  color-scheme: light dark;
  --bg: #f4f7fc;
  --surface: #ffffff;
  --surface-alt: #edf3fa;
  --text: #0f172a;
  --muted: #4b5563;
  --brand: #0b5e95;
  --brand-strong: #08486f;
  --border: #d9e1eb;
  --shadow: 0 10px 25px rgba(15, 23, 42, 0.08);
}

[data-theme='dark'] {
  --bg: #0b1420;
  --surface: #142033;
  --surface-alt: #1a2a40;
  --text: #f5f8ff;
  --muted: #bcc6d4;
  --brand: #5eb2eb;
  --brand-strong: #3495d2;
  --border: #2d415c;
  --shadow: 0 10px 28px rgba(2, 6, 23, 0.45);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Ubuntu, 'Helvetica Neue', Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
}
a { color: var(--brand); }
a:hover { color: var(--brand-strong); }
img { max-width: 100%; height: auto; display: block; }

.container { width: min(1140px, 92%); margin-inline: auto; }
.section { padding: 4rem 0; }
.section-alt { background: var(--surface-alt); }

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  padding: .5rem .75rem;
  background: var(--text);
  color: var(--bg);
  border-radius: .5rem;
}
.skip-link:focus { left: .75rem; top: .75rem; z-index: 1100; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  border-bottom: 1px solid var(--border);
  background: color-mix(in srgb, var(--surface) 94%, transparent);
  backdrop-filter: blur(8px);
}
.nav-wrap {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 1rem;
  align-items: center;
  padding: .65rem 0;
}
.brand-link img { width: clamp(150px, 17vw, 210px); height: auto; }
.site-nav { justify-self: center; }
.nav-list { list-style: none; display: flex; gap: 1rem; margin: 0; padding: 0; }
.nav-list a {
  text-decoration: none;
  color: var(--text);
  font-weight: 700;
  padding: .35rem .5rem;
  border-radius: .5rem;
}
.nav-list a.active { background: var(--surface-alt); }

.header-actions {
  display: flex;
  align-items: center;
  gap: .45rem;
  justify-self: end;
}
.menu-toggle {
  display: none;
  width: 2.45rem;
  height: 2.45rem;
  border: 1px solid var(--border);
  border-radius: .6rem;
  background: var(--surface);
  cursor: pointer;
  padding: .45rem;
}
.menu-toggle span { display: block; height: 2px; background: var(--text); margin: .25rem 0; }

.btn {
  display: inline-block;
  text-decoration: none;
  border-radius: .65rem;
  border: 1px solid transparent;
  padding: .65rem 1rem;
  font-weight: 800;
}
.btn-call,
.btn-primary { background: var(--brand); color: #fff; }
.btn-call:hover,
.btn-primary:hover { background: var(--brand-strong); color: #fff; }
.btn-secondary {
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.45);
}
.btn-large { font-size: 1.1rem; }

.social-links { display: flex; gap: .2rem; }
.social-links a { width: 2rem; height: 2rem; display: grid; place-items: center; color: var(--text); }
.social-links svg { width: 1.1rem; height: 1.1rem; fill: currentColor; }
.theme-toggle,
.menu-toggle {
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.06);
}
.theme-toggle {
  width: 2.2rem;
  height: 2.2rem;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--surface);
  cursor: pointer;
}

h1, h2, h3 { margin-top: 0; line-height: 1.2; }
h1 { font-size: clamp(2rem, 4.2vw, 3rem); margin-bottom: .85rem; }
h2 { font-size: clamp(1.45rem, 3vw, 2.1rem); margin-bottom: 1rem; }
.eyebrow { color: #d4ebff; font-weight: 800; margin-bottom: .25rem; }

.hero { padding-top: 2rem; padding-bottom: 2.1rem; }
.hero-panel {
  position: relative;
  border-radius: 1rem;
  overflow: hidden;
  min-height: clamp(420px, 62vw, 580px);
  box-shadow: var(--shadow);
}
.hero-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 35%;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(0deg, rgba(5, 22, 45, 0.46), rgba(5, 22, 45, 0.46)),
    radial-gradient(circle at 20% 18%, rgba(56, 189, 248, 0.16) 0%, rgba(56, 189, 248, 0.04) 42%, rgba(56, 189, 248, 0.02) 100%),
    linear-gradient(108deg, rgba(3, 11, 24, 0.82) 0%, rgba(7, 20, 38, 0.68) 45%, rgba(7, 26, 49, 0.52) 100%);
}
.hero-content {
  position: absolute;
  inset: 0 auto 0 0;
  z-index: 1;
  color: #fff;
  width: min(64%, 860px);
  padding: clamp(1.1rem, 3vw, 2.2rem);
  border-radius: 0;
  background: transparent;
  border-right: 0;
  box-shadow: none;
  text-shadow: 0 1px 2px rgba(0, 0, 0, .32);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  gap: .45rem;
  backdrop-filter: blur(1px);
}
.hero-title {
  opacity: 0;
  animation: fadeInTitle .9s ease .1s forwards;
}
.hero-content p { max-width: 68ch; margin: 0 0 .78rem; animation: fadeUp .65s ease .18s both; }
.cta-row { display: flex; flex-wrap: wrap; gap: .65rem; margin: 1rem 0 .2rem; animation: fadeUp .65s ease .24s both; }
.quick-answer {
  background: var(--surface);
  border: 1px solid var(--border);
  border-left: 4px solid var(--brand);
  border-radius: .7rem;
  padding: .85rem 1rem;
  margin-top: 1.4rem;
}
.quick-answer strong {
  display: block;
  font-size: 1.02rem;
  margin-bottom: .35rem;
}
.quick-answer p { margin: 0; }
.trust-cards {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: .9rem;
  padding: 1rem;
  box-shadow: var(--shadow);
  margin-top: 1.5rem;
  max-width: 920px;
  margin-inline: auto;
  text-align: center;
}
.trust-cards h2 { margin-bottom: .75rem; }
.trust-bar {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  list-style: none;
  gap: .65rem;
  margin: 0;
  padding: 0;
  justify-items: center;
}
.trust-bar li {
  width: 100%;
  background: var(--surface-alt);
  border: 1px solid var(--border);
  border-radius: .7rem;
  padding: .75rem;
  text-align: center;
  font-weight: 700;
  display: grid;
  gap: .2rem;
  place-items: center;
}
.trust-icon {
  width: 2rem;
  height: 2rem;
  display: inline-grid;
  place-items: center;
  color: #0b5e95;
}
.trust-icon svg {
  width: 100%;
  height: 100%;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}
[data-theme='dark'] .trust-icon { color: #ffffff; }

.check-list { padding-left: 1.1rem; }
.how-grid { display: grid; gap: .8rem; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.how-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: .8rem;
  padding: .9rem;
}
.how-item p { margin: .35rem 0; }

.services-grid { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.service-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: .9rem;
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform .24s ease, box-shadow .24s ease;
  animation: fadeUp .5s ease both;
}
.service-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 14px 28px rgba(15, 23, 42, 0.16);
}
.service-trigger { border: 0; width: 100%; text-align: left; padding: 0; background: transparent; cursor: pointer; color: inherit; }
.service-trigger img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; transition: transform .35s ease; }
.service-card:hover .service-trigger img { transform: scale(1.04); }
.service-trigger span { display: block; padding: .8rem .9rem; font-weight: 800; }

.faq-list details {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: .7rem;
  padding: .8rem .9rem;
  margin-bottom: .65rem;
}
.faq-list summary { cursor: pointer; font-weight: 700; }

dialog {
  width: min(560px, 90vw);
  border: 1px solid var(--border);
  border-radius: .8rem;
  background: var(--surface);
  color: var(--text);
}
dialog::backdrop { background: rgba(2, 6, 23, 0.7); }
dialog button { border: 1px solid var(--border); background: var(--surface-alt); color: var(--text); border-radius: .6rem; padding: .5rem .8rem; cursor: pointer; }

.contact-grid { display: grid; grid-template-columns: minmax(280px, 760px); gap: 1rem; justify-content: center; }
.call-block, .emergency-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: .9rem;
  box-shadow: var(--shadow);
  padding: 1rem;
}
.service-area { color: var(--muted); }

.call-block {
  text-align: center;
  width: 100%;
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.site-footer {
  border-top: 1px solid var(--border);
  background: var(--surface);
  padding: 1.2rem 0 4.7rem;
}
.footer-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}
.footer-logo img { width: clamp(120px, 22vw, 146px); height: auto; }
.mobile-call {
  position: fixed;
  left: 50%;
  transform: translateX(-50%);
  bottom: .8rem;
  z-index: 999;
  background: var(--brand);
  color: #fff;
  text-decoration: none;
  border-radius: 999px;
  font-weight: 800;
  padding: .78rem 1.25rem;
  box-shadow: var(--shadow);
}

@media (max-width: 980px) {
  .nav-wrap { grid-template-columns: auto 1fr auto; }
  .menu-toggle { display: inline-block; }
  .site-nav {
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    background: var(--surface);
    border-bottom: 1px solid var(--border);
    display: none;
    padding: .5rem 4%;
  }
  .site-nav.open { display: block; }
  .nav-list { flex-direction: column; gap: .2rem; }
  .nav-list a { display: block; padding: .65rem; }
  .how-grid,
  .contact-grid { grid-template-columns: 1fr; }
  .trust-bar { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hero-content {
    width: min(74%, 100%);
    max-width: unset;
  }
  .hero-image { object-position: 62% center; }
  .hero-overlay {
    background:
      linear-gradient(0deg, rgba(5, 22, 45, 0.5), rgba(5, 22, 45, 0.5)),
      radial-gradient(circle at 22% 12%, rgba(56, 189, 248, 0.16) 0%, rgba(56, 189, 248, 0.05) 34%, rgba(56, 189, 248, 0.02) 100%),
      linear-gradient(110deg, rgba(4, 13, 26, 0.86) 0%, rgba(7, 20, 38, 0.76) 56%, rgba(7, 26, 49, 0.56) 100%);
  }
}

@media (max-width: 720px) {
  .section { padding: 3.6rem 0; }
  .btn-call,
  .social-links { display: none; }
  .header-actions { gap: .35rem; }
  .hero-panel { min-height: 500px; }
  .hero-image { object-position: 72% center; }
  .hero-content {
    width: 100%;
    inset: auto 0 0 0;
    min-height: 64%;
    padding: 1rem;
    justify-content: flex-end;
    background: transparent;
    border-right: 0;
  }
  .hero-content h1 { font-size: clamp(1.7rem, 7vw, 2.2rem); }
  .trust-bar { grid-template-columns: 1fr; }
  .footer-wrap {
    flex-direction: column;
    text-align: center;
    justify-content: center;
    gap: .45rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
    scroll-behavior: auto !important;
  }
}
