:root {
  --bg: #f2f9f6;
  --bg-deep: #16323a;
  --surface: rgba(255, 255, 255, 0.75);
  --line: rgba(22, 50, 58, 0.1);
  --text: #17303a;
  --muted: #5a7278;
  --accent: #2f8fd6;
  --accent-deep: #2372ac;
  --coral: #ff8a5c;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --font-display: "Baloo 2", sans-serif;
  --font-body: "Mulish", sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--text);
  background:
    radial-gradient(ellipse 60% 40% at 8% -10%, rgba(47, 143, 214, 0.12), transparent 55%),
    radial-gradient(ellipse 50% 40% at 100% 15%, rgba(255, 138, 92, 0.1), transparent 50%),
    var(--bg);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

body.is-nav-open {
  overflow: hidden;
}

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

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

h1,
h2,
h3 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1.08;
}

h2 {
  font-size: clamp(2rem, 4.8vw, 3.1rem);
}

h3 {
  font-size: 1.2rem;
}

p {
  margin: 0;
}

.eyebrow {
  margin: 0 0 0.7rem;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent-deep);
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.95rem clamp(1rem, 4vw, 2.5rem);
  background: rgba(242, 249, 246, 0.75);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s var(--ease), background 0.3s var(--ease);
}

.topbar.is-scrolled {
  background: rgba(242, 249, 246, 0.95);
  border-bottom-color: var(--line);
}

.logo {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 700;
}

.logo span {
  color: var(--accent);
}

.nav {
  display: none;
  gap: 1.5rem;
}

.nav a {
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--muted);
  transition: color 0.25s var(--ease);
}

.nav a:hover {
  color: var(--text);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.7rem;
  padding: 0.65rem 1.3rem;
  border-radius: 999px;
  font-size: 0.9rem;
  font-weight: 700;
  transition: transform 0.25s var(--ease), background 0.25s var(--ease), border-color 0.25s var(--ease), box-shadow 0.25s var(--ease);
}

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

.btn[aria-disabled="true"] {
  cursor: default;
  pointer-events: none;
}

.btn-lg {
  min-height: 3.15rem;
  padding: 0.85rem 1.6rem;
  font-size: 1rem;
}

.btn-primary {
  background: var(--accent);
  color: #f5fbff;
  box-shadow: 0 10px 26px rgba(47, 143, 214, 0.28);
}

.btn-primary:hover {
  background: var(--accent-deep);
}

.btn-ghost {
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.6);
  color: var(--text);
}

.btn-ghost:hover {
  border-color: rgba(47, 143, 214, 0.4);
}

.topbar .btn {
  display: none;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.nav-toggle {
  width: 2.6rem;
  height: 2.6rem;
  display: grid;
  place-content: center;
  gap: 5px;
  flex-shrink: 0;
  border-radius: 0.5rem;
}

.nav-toggle span {
  display: block;
  width: 1.3rem;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform 0.3s var(--ease);
}

.nav-toggle[aria-expanded="true"] span:first-child {
  transform: translateY(3.5px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] span:last-child {
  transform: translateY(-3.5px) rotate(-45deg);
}

.mobile-nav-backdrop {
  position: fixed;
  inset: 0;
  z-index: 15;
  background: rgba(23, 48, 58, 0.35);
  backdrop-filter: blur(2px);
  animation: fade-in 0.25s var(--ease);
}

.mobile-nav-backdrop[hidden] {
  display: none !important;
}

.mobile-nav {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  z-index: 16;
  display: grid;
  gap: 0.2rem;
  max-height: calc(100dvh - 100%);
  overflow-y: auto;
  padding: 0.75rem clamp(1rem, 4vw, 2.5rem) calc(1.25rem + env(safe-area-inset-bottom, 0px));
  background: rgba(242, 249, 246, 0.98);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 18px 40px rgba(22, 50, 58, 0.18);
  animation: drop 0.35s var(--ease);
}

.mobile-nav[hidden] {
  display: none !important;
}

.mobile-nav a:not(.btn) {
  padding: 0.95rem 0.1rem;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--muted);
  border-bottom: 1px solid var(--line);
}

.mobile-nav .btn {
  margin-top: 0.85rem;
  justify-self: stretch;
}

.hero {
  position: relative;
  min-height: min(90vh, 780px);
  display: grid;
  align-items: end;
  overflow: hidden;
}

.hero-media {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(105deg, rgba(242, 249, 246, 0.94) 0%, rgba(242, 249, 246, 0.7) 40%, rgba(22, 50, 58, 0.3) 100%),
    url("https://images.unsplash.com/photo-1628009368231-7bb7cfcb0def?auto=format&fit=crop&w=1600&q=80") center / cover no-repeat;
  animation: soft-pan 10s var(--ease) both;
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 640px;
  padding: clamp(4rem, 12vw, 7rem) clamp(1rem, 4vw, 2.5rem) clamp(3rem, 8vw, 4.5rem);
  animation: rise 0.85s var(--ease) 0.1s both;
}

.hero h1 {
  font-size: clamp(3.2rem, 10vw, 5.6rem);
  color: var(--bg-deep);
}

.hero-lead {
  margin-top: 1rem;
  max-width: 30ch;
  font-size: clamp(1.05rem, 2.3vw, 1.25rem);
  color: var(--muted);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.75rem;
}

.section {
  padding: clamp(3.5rem, 8vw, 5.5rem) clamp(1rem, 4vw, 2.5rem);
}

.section-head {
  max-width: 620px;
  margin-bottom: 2rem;
}

.service-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 1rem;
  max-width: 1080px;
}

.service-grid li {
  padding: 1.5rem 1.4rem;
  border: 1px solid var(--line);
  border-radius: 1.1rem;
  background: var(--surface);
  backdrop-filter: blur(8px);
  transition: transform 0.35s var(--ease), border-color 0.35s var(--ease);
}

.service-grid li:hover {
  transform: translateY(-3px);
  border-color: rgba(47, 143, 214, 0.35);
}

.service-icon {
  display: inline-flex;
  font-size: 1.6rem;
  margin-bottom: 0.6rem;
}

.service-grid h3 {
  margin-bottom: 0.4rem;
}

.service-grid p {
  color: var(--muted);
  font-size: 0.96rem;
}

.about {
  display: grid;
  gap: 1.75rem;
  align-items: center;
}

.about-copy {
  max-width: 34rem;
}

.about-copy > p {
  margin-top: 1rem;
  color: var(--muted);
  font-size: 1.02rem;
}

.about-media {
  min-height: 18rem;
  border-radius: 1.25rem;
  border: 1px solid var(--line);
  background:
    linear-gradient(160deg, rgba(242, 249, 246, 0.1), rgba(22, 50, 58, 0.2)),
    url("https://images.unsplash.com/photo-1584464491033-06628f3a6b7b?auto=format&fit=crop&w=1200&q=80") center / cover no-repeat;
  box-shadow: 0 18px 40px rgba(22, 50, 58, 0.12);
}

.stats {
  list-style: none;
  margin: 1.5rem 0 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem 2rem;
}

.stats li {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.stats strong {
  font-family: var(--font-display);
  font-size: 1.6rem;
  color: var(--accent-deep);
}

.stats span {
  font-size: 0.85rem;
  color: var(--muted);
}

.emergency {
  border-radius: 1.5rem;
  margin: 0 clamp(1rem, 4vw, 2.5rem);
  background:
    radial-gradient(ellipse 70% 100% at 0% 0%, rgba(255, 138, 92, 0.16), transparent 60%),
    var(--bg-deep);
  color: #eaf3f2;
}

.emergency-inner {
  display: grid;
  gap: 1.5rem;
  align-items: center;
}

.emergency .eyebrow {
  color: var(--coral);
}

.emergency h2 {
  color: #f5fbff;
  margin-bottom: 0.6rem;
}

.emergency p {
  color: rgba(234, 243, 242, 0.75);
  max-width: 34ch;
}

.emergency .btn-primary {
  background: var(--coral);
  color: #1e120a;
  box-shadow: 0 10px 26px rgba(255, 138, 92, 0.3);
  justify-self: start;
}

.emergency .btn-primary:hover {
  background: #ff733a;
}

.cta {
  text-align: center;
  border-radius: 1.5rem;
  margin: 0 clamp(1rem, 4vw, 2.5rem) clamp(3rem, 7vw, 4.5rem);
  padding: clamp(2.4rem, 6vw, 3.5rem) 1.25rem;
  background:
    radial-gradient(ellipse 60% 80% at 50% 0%, rgba(47, 143, 214, 0.14), transparent 65%),
    #e2f1fb;
  border: 1px solid rgba(47, 143, 214, 0.18);
}

.cta h2 {
  margin-bottom: 0.75rem;
}

.cta p {
  max-width: 36ch;
  margin: 0 auto 1.5rem;
  color: var(--muted);
}

.footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 0.5rem 1rem;
  padding: 1.5rem clamp(1rem, 4vw, 2.5rem);
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.88rem;
}

.footer-main {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 1.25rem;
  align-items: baseline;
}

.footer .logo {
  font-size: 1.1rem;
}

.disclaimer {
  width: 100%;
  font-size: 0.76rem;
  opacity: 0.7;
}

[data-reveal] {
  opacity: 0;
  transform: translateY(28px);
  transition:
    opacity 0.85s var(--ease) var(--reveal-delay, 0ms),
    transform 0.85s var(--ease) var(--reveal-delay, 0ms);
  will-change: opacity, transform;
}

[data-reveal].is-visible {
  opacity: 1;
  transform: none;
}

@keyframes soft-pan {
  from {
    transform: scale(1.08) translateX(1.5%);
  }
  to {
    transform: scale(1.02) translateX(0);
  }
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes drop {
  from {
    opacity: 0;
    transform: translateY(-8px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes fade-in {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }

  [data-reveal] {
    opacity: 1;
    transform: none;
  }
}

@media (min-width: 720px) {
  .nav,
  .topbar .btn {
    display: inline-flex;
  }

  .nav-toggle,
  .mobile-nav,
  .mobile-nav-backdrop {
    display: none !important;
  }

  .service-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .about {
    grid-template-columns: 1fr 1.1fr;
    gap: 2.5rem;
  }

  .about-media {
    min-height: 24rem;
  }

  .emergency-inner {
    grid-template-columns: 1fr auto;
  }

  .footer-main {
    flex-wrap: nowrap;
  }

  .disclaimer {
    width: auto;
  }
}

@media (min-width: 720px) and (max-width: 1023px) {
  .service-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
