/* Enviro-Safey marketing site */

:root {
  --blue: #1a52c4;
  --blue-dark: #0f3a8c;
  --cyan: #38bdf8;
  --magenta: #e91e96;
  --magenta-dark: #be1578;
  --gold: #d4af37;
  --violet: #7c3aed;
  --ink: #1c1654;
  --muted: #4a4578;
  --soft: #7b76a8;
  --bg: #f4f2fa;
  --bg-2: #ebe8f6;
  --surface: #ffffff;
  --line: rgba(26, 82, 196, 0.18);
  --font-display: "Syne", system-ui, sans-serif;
  --font-body: "Outfit", system-ui, sans-serif;
  --shell: min(1120px, calc(100% - 2.5rem));
  --header-h: 4.4rem;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.02rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

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

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

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

p {
  margin: 0 0 1rem;
}

.shell {
  width: var(--shell);
  margin-inline: auto;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 100;
  background: var(--magenta);
  color: #fff;
  padding: 0.6rem 1rem;
  border-radius: 999px;
  font-weight: 600;
}

.skip-link:focus {
  top: 1rem;
}

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 50;
  height: var(--header-h);
  transition: background 0.35s var(--ease), border-color 0.35s var(--ease);
  border-bottom: 1px solid transparent;
}

.site-header.is-scrolled {
  background: rgba(15, 58, 140, 0.92);
  backdrop-filter: blur(14px);
  border-bottom-color: rgba(255, 255, 255, 0.12);
}

.header-inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand-logo {
  height: 48px;
  width: auto;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 1.4rem;
}

.site-nav a {
  color: rgba(255, 255, 255, 0.88);
  font-size: 0.94rem;
  font-weight: 500;
}

.site-nav a:hover {
  color: #fff;
}

.nav-cta {
  padding: 0.55rem 1.05rem;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--magenta), var(--magenta-dark));
  color: #fff !important;
  font-weight: 600;
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 10px;
  background: transparent;
  padding: 0;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 6px;
}

.nav-toggle span:not(.sr-only) {
  display: block;
  width: 18px;
  height: 2px;
  background: #fff;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3rem;
  padding: 0.75rem 1.35rem;
  border-radius: 999px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.95rem;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.25s var(--ease), background 0.25s ease,
    border-color 0.25s ease;
}

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

.btn-primary {
  background: linear-gradient(135deg, var(--magenta), #9d1470);
  color: #fff;
}

.btn-ghost {
  border-color: rgba(255, 255, 255, 0.4);
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
}

.btn-ghost:hover {
  border-color: var(--gold);
}

.eyebrow {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--magenta);
  margin-bottom: 0.85rem;
}

.section {
  padding: clamp(4.5rem, 10vw, 7.5rem) 0;
}

.section-head {
  max-width: 38rem;
  margin-bottom: clamp(2.5rem, 5vw, 3.5rem);
}

.section-lead {
  color: var(--muted);
  font-size: 1.05rem;
}

.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  display: grid;
  align-items: end;
  padding: calc(var(--header-h) + 2rem) 0 4.5rem;
  color: #fff;
  overflow: hidden;
  background: var(--blue-dark);
}

.hero-media {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 70% 55% at 85% 15%, rgba(233, 30, 150, 0.28), transparent 55%),
    radial-gradient(ellipse 55% 45% at 10% 75%, rgba(56, 189, 248, 0.3), transparent 50%),
    linear-gradient(155deg, #0f3a8c 0%, #1a52c4 45%, #172554 100%);
}

.hero-wash {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(15, 58, 140, 0.5) 0%, transparent 60%),
    linear-gradient(0deg, rgba(15, 58, 140, 0.72) 0%, transparent 45%);
}

.hero-grain {
  position: absolute;
  inset: 0;
  opacity: 0.16;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  mix-blend-mode: soft-light;
  pointer-events: none;
}

.hero-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(42px);
  animation: drift 14s ease-in-out infinite alternate;
}

.hero-orb-a {
  width: 30vw;
  height: 30vw;
  right: 6%;
  top: 12%;
  background: rgba(233, 30, 150, 0.28);
}

.hero-orb-b {
  width: 22vw;
  height: 22vw;
  left: 4%;
  bottom: 12%;
  background: rgba(56, 189, 248, 0.3);
  animation-delay: -5s;
}

.hero-orb-c {
  width: 16vw;
  height: 16vw;
  right: 28%;
  bottom: 28%;
  background: rgba(212, 175, 55, 0.18);
  animation-delay: -2s;
}

@keyframes drift {
  from {
    transform: translate3d(0, 0, 0) scale(1);
  }
  to {
    transform: translate3d(2%, -3%, 0) scale(1.08);
  }
}

.hero-bug {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 3;
  width: 48px;
  height: 48px;
  pointer-events: none;
  will-change: transform;
  background: transparent;
  filter: drop-shadow(0 6px 10px rgba(0, 0, 0, 0.28));
}

.hero-bug img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: transparent;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 42rem;
}

.hero-logo {
  width: min(320px, 78vw);
  height: auto;
  margin-bottom: 1.4rem;
  filter: drop-shadow(0 16px 30px rgba(0, 0, 0, 0.25));
}

.hero h1 {
  font-size: clamp(2.6rem, 7vw, 4.5rem);
  margin-bottom: 1.1rem;
}

.hero-lead {
  font-size: clamp(1.02rem, 2vw, 1.18rem);
  color: rgba(255, 255, 255, 0.82);
  max-width: 34rem;
  margin-bottom: 1.75rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
}

.section-about {
  background: linear-gradient(180deg, #ebe8f6 0%, var(--bg) 100%);
}

.section-split {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: end;
}

.section-copy h2 {
  font-size: clamp(2rem, 4vw, 2.8rem);
  color: var(--ink);
}

.section-copy p {
  color: var(--muted);
}

.powered {
  color: var(--blue) !important;
  font-weight: 600;
  margin-bottom: 0 !important;
}

.stat-rail {
  list-style: none;
  margin: 0;
  padding: 0 0 0 1.5rem;
  border-left: 2px solid rgba(233, 30, 150, 0.35);
  display: grid;
  gap: 1.4rem;
}

.stat-rail strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.2rem;
  color: var(--ink);
  margin-bottom: 0.25rem;
}

.stat-rail span {
  color: var(--soft);
  font-size: 0.95rem;
}

.section-services {
  background: linear-gradient(160deg, #0f3a8c, #1a52c4 50%, #172554);
  color: #fff;
}

.section-services .eyebrow {
  color: var(--gold);
}

.section-services h2 {
  color: #fff;
}

.section-services .section-lead {
  color: rgba(255, 255, 255, 0.78);
}

.service-mosaic {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 1px;
  background: rgba(255, 255, 255, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.18);
}

.service-block {
  background: rgba(15, 58, 140, 0.55);
  padding: clamp(1.5rem, 3vw, 2.25rem);
  backdrop-filter: blur(6px);
}

.service-block-lg {
  grid-row: span 2;
  min-height: 22rem;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  background:
    radial-gradient(circle at 20% 20%, rgba(233, 30, 150, 0.28), transparent 50%),
    rgba(15, 58, 140, 0.72);
}

.service-block h3 {
  font-size: 1.4rem;
  color: var(--cyan);
}

.service-block p {
  color: rgba(255, 255, 255, 0.78);
  margin: 0;
}

.section-audiences {
  background: var(--bg);
}

.audience-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(1.5rem, 4vw, 2.5rem);
}

.audience-index {
  display: block;
  font-family: var(--font-display);
  font-size: 2rem;
  color: var(--magenta);
  margin-bottom: 0.75rem;
}

.audience h3 {
  font-size: 1.5rem;
}

.audience p {
  color: var(--muted);
  margin: 0;
}

.section-process {
  background: linear-gradient(180deg, #ebe8f6 0%, #e3dff2 100%);
}

.process-list {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 1px solid rgba(28, 22, 84, 0.12);
}

.process-list li {
  display: grid;
  grid-template-columns: 5rem 1fr;
  gap: 1.25rem;
  padding: 1.6rem 0;
  border-bottom: 1px solid rgba(28, 22, 84, 0.12);
}

.step-num {
  font-family: var(--font-display);
  font-size: 1.5rem;
  color: var(--blue);
}

.process-list h3 {
  font-size: 1.3rem;
  margin-bottom: 0.35rem;
}

.process-list p {
  color: var(--muted);
  margin: 0;
  max-width: 40rem;
}

.section-contact {
  background: var(--bg);
}

.contact-wrap {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 4rem);
}

.contact-wrap h2 {
  font-size: clamp(2rem, 4vw, 2.8rem);
}

.contact-details {
  display: grid;
  gap: 0.55rem;
  margin-top: 1.5rem;
}

.contact-details a {
  color: var(--blue);
  font-weight: 600;
}

.contact-details a:hover {
  color: var(--magenta);
}

.contact-details p {
  color: var(--muted);
  margin: 0.5rem 0 0;
}

.contact-form {
  display: grid;
  gap: 1rem;
  padding: 1.5rem;
  background: var(--surface);
  border: 1px solid rgba(28, 22, 84, 0.08);
  border-radius: 1.25rem;
  box-shadow: 0 20px 50px rgba(26, 82, 196, 0.08);
}

.contact-form label {
  display: grid;
  gap: 0.4rem;
}

.contact-form span {
  font-size: 0.85rem;
  font-weight: 600;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
  font: inherit;
  color: var(--ink);
  background: var(--bg);
  border: 1px solid rgba(28, 22, 84, 0.12);
  border-radius: 0.75rem;
  padding: 0.8rem 0.95rem;
  outline: none;
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(26, 82, 196, 0.16);
}

.contact-form .btn {
  width: 100%;
}

.form-honeypot {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.form-note {
  margin: 0;
  font-size: 0.92rem;
}

.form-note.is-success {
  color: #2d8b4e;
}

.form-note.is-error {
  color: #c62828;
}

.form-note.is-info {
  color: var(--magenta-dark);
}

.contact-form .btn[disabled] {
  opacity: 0.7;
  cursor: wait;
  transform: none;
}

.site-footer {
  background: #0f3a8c;
  color: rgba(255, 255, 255, 0.78);
  padding: 2.5rem 0;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
}

.footer-brand {
  display: flex;
  gap: 0.9rem;
  max-width: 30rem;
  align-items: flex-start;
}

.footer-logo {
  height: 52px;
  width: auto;
}

.footer-brand strong {
  display: block;
  color: #fff;
  font-family: var(--font-display);
  font-size: 1.15rem;
  margin-bottom: 0.35rem;
}

.footer-brand p,
.footer-meta p {
  margin: 0;
  font-size: 0.9rem;
}

.footer-meta {
  text-align: right;
}

.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}

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

@media (max-width: 960px) {
  .section-split,
  .audience-grid,
  .contact-wrap {
    grid-template-columns: 1fr;
  }

  .service-mosaic {
    grid-template-columns: 1fr;
  }

  .service-block-lg {
    grid-row: auto;
    min-height: 14rem;
  }

  .footer-meta {
    text-align: left;
  }
}

@media (max-width: 780px) {
  .nav-toggle {
    display: inline-flex;
  }

  .site-nav {
    position: fixed;
    inset: 0;
    background: rgba(15, 58, 140, 0.97);
    flex-direction: column;
    justify-content: center;
    gap: 1.5rem;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
  }

  .site-nav.is-open {
    opacity: 1;
    pointer-events: auto;
  }

  .site-nav a {
    font-size: 1.25rem;
  }

  .hero {
    align-items: center;
    padding-top: calc(var(--header-h) + 3rem);
  }

  .brand-logo {
    height: 40px;
  }

  .process-list li {
    grid-template-columns: 3.5rem 1fr;
  }
}

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

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

  .hero-orb {
    animation: none;
  }

  .hero-bug {
    display: none;
  }
}
