/* ==========================================================================
   NEXT Drilling Services - style.css
   Premium dark industrial design system.
   Structure:
     1.  Design tokens (:root)
     2.  Reset & base
     3.  Typography & helpers
     4.  Buttons
     5.  Layout utilities
     6.  Header & navigation
     7.  Hero
     8.  Stats / counters
     9.  About
     10. Services
     11. Capabilities
     12. Safety & Quality
     13. Process
     14. Industries
     15. CTA banner
     16. Contact & form
     17. Footer
     18. Back-to-top
     19. Reveal animations
     20. Responsive
     21. Accessibility / reduced motion
     22. Contact Form 7 integration
   ========================================================================== */

/* 0. SELF-HOSTED FONTS ----------------------------------------------------
   Both are variable fonts shipped as a single woff2 per family that covers
   every weight the design uses - no Google Fonts request, no third-party
   origin, one render-blocking request fewer than the static site had. */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('../fonts/inter-latin.woff2') format('woff2');
}
@font-face {
  font-family: 'Space Grotesk';
  font-style: normal;
  font-weight: 500 700;
  font-display: swap;
  src: url('../fonts/space-grotesk-latin.woff2') format('woff2');
}

/* 1. DESIGN TOKENS -------------------------------------------------------- */
:root {
  /* Brand palette */
  --c-bg:        #070b14; /* near-black navy */
  --c-bg-2:      #0a1120; /* deep navy */
  --c-panel:     #0e1728; /* raised panel */
  --c-panel-2:   #12203a; /* lighter panel */
  --c-line:      rgba(255, 255, 255, 0.08);
  --c-line-2:    rgba(255, 255, 255, 0.16);

  --c-text:      #d7e0ee; /* body text on dark (AA on --c-bg) */
  --c-heading:   #ffffff;
  --c-muted:     #9aa9c0; /* steel grey - AA on dark backgrounds */
  --c-steel:     #7c8ba3;

  --c-accent:    #ff7a1a; /* signature orange */
  --c-accent-2:  #ffb457; /* light amber/gold */
  --c-accent-ink:#1a0d02; /* text on accent buttons */
  --c-gold:      #d9a441;

  --grad-accent: linear-gradient(135deg, #ff7a1a 0%, #ff9d3c 100%);
  --grad-panel:  linear-gradient(160deg, rgba(255,255,255,0.05), rgba(255,255,255,0.01));

  /* Type */
  --font-body: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --font-display: 'Space Grotesk', 'Inter', system-ui, sans-serif;

  /* Spacing / layout */
  --container: 1200px;
  --gutter: clamp(1.25rem, 4vw, 2.5rem);
  --section-y: clamp(4.5rem, 9vw, 8rem);
  --radius: 12px;
  --radius-sm: 8px;
  --radius-btn: 5px;

  --shadow-lg: 0 30px 60px -25px rgba(0, 0, 0, 0.75);
  --shadow-accent: 0 18px 40px -18px rgba(255, 122, 26, 0.55);

  --header-h: 76px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* 2. RESET & BASE --------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }

* { margin: 0; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 12px);
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  color: var(--c-text);
  background-color: var(--c-bg);
  line-height: 1.65;
  font-size: 1rem;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

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

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

ul, ol { list-style: none; padding: 0; }

button { font-family: inherit; cursor: pointer; }

:focus-visible {
  outline: 3px solid var(--c-accent-2);
  outline-offset: 3px;
  border-radius: 4px;
}

/* Skip link - WCAG 2.4.1 */
.skip-link {
  position: absolute;
  left: 12px;
  top: -80px;
  z-index: 200;
  background: var(--c-accent);
  color: var(--c-accent-ink);
  padding: 12px 18px;
  border-radius: 8px;
  font-weight: 600;
  transition: top 0.2s var(--ease);
}
.skip-link:focus { top: 12px; }

/* 3. TYPOGRAPHY & HELPERS ------------------------------------------------- */
h1, h2, h3 {
  font-family: var(--font-display);
  color: var(--c-heading);
  line-height: 1.12;
  font-weight: 700;
  letter-spacing: -0.02em;
}

p { color: var(--c-text); }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-display);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--c-accent-2);
  margin-bottom: 1.1rem;
}
.eyebrow::before {
  content: "";
  width: 30px;
  height: 2px;
  background: var(--grad-accent);
  border-radius: 2px;
}
.eyebrow--hero { color: var(--c-accent-2); }

.section-title {
  font-size: clamp(1.85rem, 3.8vw, 2.85rem);
  color: var(--c-heading);
  max-width: 20ch;
}
.section-head--center .section-title,
.section-head--center { margin-inline: auto; }
.section-head--center { text-align: center; max-width: 760px; }
.section-head--center .section-title { max-width: none; }

.section-intro, .lead {
  color: var(--c-muted);
  font-size: 1.075rem;
  max-width: 62ch;
  margin-top: 1.1rem;
}
.lead { color: #c3cee0; }

.text-accent {
  color: var(--c-accent);
  background: var(--grad-accent);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

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

/* 4. BUTTONS -------------------------------------------------------------- */
.btn {
  --btn-py: 0.95rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 48px; /* WCAG 2.5.8 target size */
  padding: var(--btn-py) 1.6rem;
  border: 1px solid transparent;
  border-radius: var(--radius-btn);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.01em;
  line-height: 1;
  transition: transform 0.25s var(--ease), background 0.25s var(--ease),
              box-shadow 0.25s var(--ease), border-color 0.25s var(--ease), color 0.25s var(--ease);
  will-change: transform;
}
.btn--sm { min-height: 42px; padding: 0.7rem 1.25rem; font-size: 0.88rem; }
.btn--block { width: 100%; }

.btn--accent {
  background: var(--grad-accent);
  color: var(--c-accent-ink);
  box-shadow: var(--shadow-accent);
}
.btn--accent:hover { transform: translateY(-3px); box-shadow: 0 24px 48px -18px rgba(255, 122, 26, 0.7); }

.btn--ghost {
  background: rgba(255, 255, 255, 0.04);
  border-color: var(--c-line-2);
  color: var(--c-heading);
  backdrop-filter: blur(6px);
}
.btn--ghost:hover { background: rgba(255, 255, 255, 0.1); transform: translateY(-3px); border-color: var(--c-accent-2); }

.btn--outline {
  background: transparent;
  border-color: var(--c-accent);
  color: var(--c-accent-2);
}
.btn--outline:hover { background: rgba(255, 122, 26, 0.12); transform: translateY(-3px); }

/* 5. LAYOUT UTILITIES ----------------------------------------------------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.section { padding-block: var(--section-y); position: relative; }

.panel {
  background: var(--c-panel);
  background-image: var(--grad-panel);
  border: 1px solid var(--c-line);
  border-radius: var(--radius);
  padding: clamp(1.5rem, 3vw, 2.25rem);
}

/* 6. HEADER & NAVIGATION -------------------------------------------------- */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  height: var(--header-h);
  display: flex;
  align-items: center;
  transition: background 0.3s var(--ease), box-shadow 0.3s var(--ease),
              backdrop-filter 0.3s var(--ease), border-color 0.3s var(--ease);
  border-bottom: 1px solid transparent;
}
.site-header.is-scrolled {
  background: rgba(7, 11, 20, 0.82);
  backdrop-filter: blur(14px) saturate(140%);
  border-bottom-color: var(--c-line);
  box-shadow: 0 10px 30px -18px rgba(0, 0, 0, 0.8);
}
.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  gap: 1.5rem;
}
.header__logo { width: auto; height: 50px; }

.nav { display: flex; align-items: center; }

.nav__menu {
  display: flex;
  align-items: center;
  gap: 0.35rem;
}
.nav__link {
  position: relative;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 0.9rem;
  font-size: 0.94rem;
  font-weight: 500;
  color: var(--c-text);
  transition: color 0.2s var(--ease);
}
.nav__link::after {
  content: "";
  position: absolute;
  left: 0.9rem;
  right: 0.9rem;
  bottom: 14px;
  height: 2px;
  background: var(--grad-accent);
  border-radius: 2px;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.28s var(--ease);
}
.nav__link:hover { color: var(--c-heading); }
.nav__link:hover::after,
.nav__link.is-active::after { transform: scaleX(1); }
.nav__link.is-active { color: var(--c-heading); }

.nav__cta-item { margin-left: 0.75rem; }

.nav__toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 46px;
  height: 46px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--c-line);
  border-radius: 12px;
  padding: 0 11px;
}
.nav__toggle-bar {
  display: block;
  height: 2px;
  width: 100%;
  background: var(--c-heading);
  border-radius: 2px;
  transition: transform 0.3s var(--ease), opacity 0.2s var(--ease);
}
.nav__toggle[aria-expanded="true"] .nav__toggle-bar:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav__toggle[aria-expanded="true"] .nav__toggle-bar:nth-child(2) { opacity: 0; }
.nav__toggle[aria-expanded="true"] .nav__toggle-bar:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* 7. HERO ----------------------------------------------------------------- */
.hero {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 100svh;
  padding-top: calc(var(--header-h) + 3rem);
  padding-bottom: 5rem;
  overflow: hidden;
  isolation: isolate;
}
.hero__bg { position: absolute; inset: 0; z-index: -1; }

.hero__bg {
  background:
    radial-gradient(1100px 600px at 78% 8%, rgba(255, 122, 26, 0.14), transparent 60%),
    radial-gradient(900px 700px at 12% 90%, rgba(30, 90, 180, 0.20), transparent 60%),
    linear-gradient(180deg, #060a12 0%, #0a1224 55%, #070b14 100%);
}
.hero__trajectory {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0.9;
}
.hero__path {
  stroke-dasharray: 2000;
  stroke-dashoffset: 2000;
  animation: draw-path 3.2s var(--ease) 0.3s forwards;
  filter: drop-shadow(0 0 10px rgba(255, 122, 26, 0.4));
}
.hero__target { animation: pulse-target 2.4s ease-in-out 3s infinite; }
@keyframes draw-path { to { stroke-dashoffset: 0; } }
@keyframes pulse-target {
  0%, 100% { r: 7; opacity: 1; }
  50% { r: 11; opacity: 0.7; }
}

.hero__glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  z-index: -1;
}
.hero__glow--1 { width: 380px; height: 380px; top: -60px; right: 6%; background: rgba(255, 122, 26, 0.16); }
.hero__glow--2 { width: 440px; height: 440px; bottom: -120px; left: -60px; background: rgba(24, 78, 158, 0.22); }
.hero__scrim {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 40%, rgba(6, 10, 18, 0.7) 100%);
}

.hero__inner { position: relative; max-width: 900px; }
.hero__title {
  font-size: clamp(2.6rem, 7vw, 5rem);
  line-height: 1.04;
  margin-bottom: 1.5rem;
}
.hero__lead {
  font-size: clamp(1.05rem, 1.9vw, 1.3rem);
  color: #c7d2e4;
  max-width: 60ch;
  margin-bottom: 2.25rem;
}
.hero__actions { display: flex; flex-wrap: wrap; gap: 1rem; margin-bottom: 3rem; }

.usp-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 2rem;
  padding-top: 1.75rem;
  border-top: 1px solid var(--c-line);
}
.usp-bar__item {
  position: relative;
  padding-left: 1.4rem;
  font-size: 0.92rem;
  color: var(--c-muted);
  font-weight: 500;
}
.usp-bar__item::before {
  content: "";
  position: absolute;
  left: 0; top: 0.55em;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--c-accent);
  box-shadow: 0 0 0 4px rgba(255, 122, 26, 0.15);
}

.hero__scroll {
  position: absolute;
  left: 50%;
  bottom: 26px;
  transform: translateX(-50%);
  width: 26px;
  height: 44px;
  border: 2px solid var(--c-line-2);
  border-radius: 14px;
  display: flex;
  justify-content: center;
  padding-top: 8px;
}
.hero__scroll-dot {
  width: 4px; height: 8px;
  border-radius: 4px;
  background: var(--c-accent-2);
  animation: scroll-hint 1.8s ease-in-out infinite;
}
@keyframes scroll-hint {
  0% { transform: translateY(0); opacity: 1; }
  70% { transform: translateY(12px); opacity: 0; }
  100% { transform: translateY(0); opacity: 0; }
}

/* 8. STATS / COUNTERS ----------------------------------------------------- */
.stats {
  border-block: 1px solid var(--c-line);
  background: linear-gradient(180deg, rgba(255,255,255,0.02), transparent);
}
.stats__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--c-line);
  border-inline: 1px solid var(--c-line);
}
.stat {
  background: var(--c-bg);
  padding: clamp(2rem, 4vw, 2.75rem) clamp(1rem, 3vw, 2rem);
  text-align: center;
}
.stat__num {
  display: block;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2.4rem, 5vw, 3.4rem);
  line-height: 1;
  color: var(--c-heading);
  background: var(--grad-accent);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.stat__label {
  display: block;
  margin-top: 0.85rem;
  font-size: 0.9rem;
  color: var(--c-muted);
}

/* 9. ABOUT ---------------------------------------------------------------- */
.about__grid {
  display: grid;
  grid-template-columns: 1.35fr 1fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
}
.about__content p + p { margin-top: 1.1rem; }
.about__content .lead { margin-bottom: 0.4rem; }

.about__points {
  display: grid;
  gap: 0.85rem;
  margin-top: 2rem;
}
.about__points li {
  position: relative;
  padding-left: 2rem;
  color: var(--c-text);
  font-weight: 500;
}
.about__points li::before {
  content: "";
  position: absolute;
  left: 0; top: 0.15em;
  width: 20px; height: 20px;
  border-radius: 6px;
  background: rgba(255, 122, 26, 0.14);
  border: 1px solid rgba(255, 122, 26, 0.4);
}
.about__points li::after {
  content: "";
  position: absolute;
  left: 6px; top: 0.5em;
  width: 8px; height: 5px;
  border-left: 2px solid var(--c-accent);
  border-bottom: 2px solid var(--c-accent);
  transform: rotate(-45deg);
}

.about__aside { position: sticky; top: calc(var(--header-h) + 24px); }
.about__mission {
  position: relative;
  background:
    radial-gradient(400px 200px at 100% 0%, rgba(255, 122, 26, 0.12), transparent 70%),
    var(--c-panel);
  overflow: hidden;
}
.panel__tag {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--c-accent-2);
  margin-bottom: 1.25rem;
}
.about__quote {
  font-family: var(--font-display);
  font-size: clamp(1.25rem, 2.2vw, 1.55rem);
  line-height: 1.4;
  color: var(--c-heading);
  font-weight: 500;
}
.about__signoff { margin-top: 1.25rem; color: var(--c-accent-2); font-weight: 600; }
.about__sectors {
  display: flex;
  gap: 0.75rem;
  margin-top: 2rem;
  padding-top: 1.75rem;
  border-top: 1px solid var(--c-line);
}
.about__sector {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.6rem 1rem;
  border: 1px solid var(--c-line-2);
  border-radius: var(--radius-btn);
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--c-text);
}
.about__sector svg { color: var(--c-accent); }

/* 10. SERVICES (open catalogue layout, no filled boxes) ------------------- */
.services__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  column-gap: clamp(2rem, 4vw, 4.5rem);
  counter-reset: svc;
}
.service-card {
  position: relative;
  padding: clamp(1.6rem, 3vw, 2.25rem) 0 clamp(1.4rem, 2.5vw, 1.9rem);
  border-top: 1px solid var(--c-line);
}
.service-card::before {
  content: "";
  position: absolute;
  top: -1px; left: 0;
  width: 44px; height: 2px;
  background: var(--grad-accent);
  transition: width 0.45s var(--ease);
}
.service-card:hover::before { width: 100%; }
.service-card::after {
  counter-increment: svc;
  content: counter(svc, decimal-leading-zero);
  position: absolute;
  top: clamp(1.6rem, 3vw, 2.25rem);
  right: 0;
  font-family: var(--font-display);
  font-size: 0.82rem;
  letter-spacing: 0.06em;
  color: var(--c-steel);
}
.card__icon {
  display: inline-flex;
  color: var(--c-accent);
  margin-bottom: 1.15rem;
  transition: transform 0.35s var(--ease);
}
.card__icon svg { width: 30px; height: 30px; }
.service-card:hover .card__icon { transform: translateY(-4px); }
.card__title {
  font-size: 1.2rem;
  margin-bottom: 0.55rem;
  padding-right: 2.5rem;
}
.card__text { color: var(--c-muted); font-size: 0.96rem; max-width: 36ch; }

/* 11. CAPABILITIES -------------------------------------------------------- */
.capabilities {
  background:
    radial-gradient(700px 500px at 90% 0%, rgba(24, 78, 158, 0.12), transparent 60%),
    var(--c-bg-2);
}
.capabilities__grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
}
.capabilities__intro { position: sticky; top: calc(var(--header-h) + 24px); }
.capabilities__intro .btn { margin-top: 2rem; }

.capabilities__list {
  display: grid;
  gap: 1px;
  background: var(--c-line);
  border: 1px solid var(--c-line);
  border-radius: var(--radius);
  overflow: hidden;
}
.capability {
  display: flex;
  gap: 1.25rem;
  padding: clamp(1.35rem, 2.5vw, 1.75rem);
  background: var(--c-bg-2);
  transition: background 0.3s var(--ease);
}
.capability:hover { background: var(--c-panel); }
.capability__num {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--c-accent);
  flex-shrink: 0;
  padding-top: 0.1rem;
  min-width: 2.2rem;
}
.capability__title { font-size: 1.12rem; margin-bottom: 0.35rem; }
.capability__text { color: var(--c-muted); font-size: 0.95rem; }

/* 12. SAFETY & QUALITY ---------------------------------------------------- */
.safety__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: clamp(1rem, 2vw, 1.5rem);
}
.feature { text-align: left; transition: transform 0.35s var(--ease), border-color 0.35s var(--ease); }
.feature:hover { transform: translateY(-5px); border-color: var(--c-line-2); }
.feature__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px; height: 52px;
  border-radius: 50%;
  color: var(--c-accent-2);
  background: rgba(255, 180, 87, 0.1);
  border: 1px solid rgba(255, 180, 87, 0.25);
  margin-bottom: 1.3rem;
}
.feature__title { font-size: 1.15rem; margin-bottom: 0.55rem; }
.feature__text { color: var(--c-muted); font-size: 0.95rem; }

/* 13. PROCESS ------------------------------------------------------------- */
.process__steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(1.25rem, 2.5vw, 2rem);
  counter-reset: step;
}
.process__step {
  position: relative;
  padding: 2rem 1.5rem 1.75rem;
  border-top: 2px solid var(--c-line);
  transition: border-color 0.3s var(--ease);
}
.process__step:hover { border-top-color: var(--c-accent); }
.process__num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px; height: 44px;
  border-radius: 12px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--c-accent-ink);
  background: var(--grad-accent);
  margin-bottom: 1.2rem;
  box-shadow: var(--shadow-accent);
}
.process__title { font-size: 1.18rem; margin-bottom: 0.5rem; }
.process__text { color: var(--c-muted); font-size: 0.96rem; }

/* 14. INDUSTRIES ---------------------------------------------------------- */
.industries { background: var(--c-bg-2); }
.industries__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: clamp(1rem, 2vw, 1.5rem);
}
.industry-card {
  position: relative;
  padding: clamp(1.75rem, 3vw, 2.5rem);
  border: 1px solid var(--c-line);
  border-radius: var(--radius);
  background:
    linear-gradient(160deg, rgba(255,255,255,0.04), transparent),
    var(--c-panel);
  overflow: hidden;
  transition: transform 0.35s var(--ease), border-color 0.35s var(--ease);
}
.industry-card::after {
  content: "";
  position: absolute;
  right: -40px; bottom: -40px;
  width: 140px; height: 140px;
  border-radius: 50%;
  border: 1px solid rgba(255, 122, 26, 0.25);
  opacity: 0.6;
}
.industry-card:hover { transform: translateY(-5px); border-color: var(--c-line-2); }
.industry-card__title {
  font-size: 1.35rem;
  margin-bottom: 0.75rem;
  color: var(--c-heading);
}
.industry-card__text { color: var(--c-muted); }

/* 15. CTA BANNER ---------------------------------------------------------- */
.cta-banner {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(600px 300px at 20% 20%, rgba(255, 122, 26, 0.18), transparent 60%),
    radial-gradient(700px 400px at 90% 90%, rgba(24, 78, 158, 0.22), transparent 60%),
    linear-gradient(135deg, #0a1326, #0d1a34);
  border-block: 1px solid var(--c-line);
}
.cta-banner__inner {
  text-align: center;
  padding-block: clamp(3.5rem, 7vw, 6rem);
}
.cta-banner__title {
  font-size: clamp(1.8rem, 4vw, 3rem);
  color: var(--c-heading);
  margin-bottom: 1rem;
}
.cta-banner__text {
  color: var(--c-muted);
  font-size: 1.1rem;
  max-width: 55ch;
  margin: 0 auto 2.25rem;
}

/* 16. CONTACT & FORM ------------------------------------------------------ */
.contact__grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: start;
}
.contact__details { display: grid; gap: 1.5rem; margin-top: 2.5rem; }
.contact__detail { display: flex; gap: 1rem; align-items: flex-start; }
.contact__detail-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px; height: 44px;
  flex-shrink: 0;
  border-radius: 12px;
  color: var(--c-accent);
  background: rgba(255, 122, 26, 0.1);
  border: 1px solid rgba(255, 122, 26, 0.22);
}
.contact__detail-text { color: var(--c-text); line-height: 1.6; }
.contact__detail-text a { color: var(--c-text); transition: color 0.2s var(--ease); }
.contact__detail-text a:hover { color: var(--c-accent-2); }

.contact__form-wrap {
  background: var(--c-panel);
  background-image: var(--grad-panel);
  border: 1px solid var(--c-line);
  border-radius: var(--radius);
  padding: clamp(1.5rem, 3vw, 2.5rem);
  box-shadow: var(--shadow-lg);
}
.contact-form__intro {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--c-heading);
  margin-bottom: 1.5rem;
}
.field { display: flex; flex-direction: column; margin-bottom: 1.25rem; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.field__label { font-size: 0.88rem; font-weight: 600; color: var(--c-text); margin-bottom: 0.5rem; }
.field__req { color: var(--c-accent); }
.field__input {
  width: 100%;
  padding: 0.85rem 1rem;
  min-height: 48px;
  background: rgba(7, 11, 20, 0.6);
  border: 1px solid var(--c-line-2);
  border-radius: var(--radius-sm);
  color: var(--c-heading);
  font-family: inherit;
  font-size: 0.98rem;
  transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease), background 0.2s var(--ease);
}
.field__input::placeholder { color: var(--c-steel); }
.field__input:focus {
  outline: none;
  border-color: var(--c-accent);
  box-shadow: 0 0 0 3px rgba(255, 122, 26, 0.2);
  background: rgba(7, 11, 20, 0.85);
}
.field__input--area { resize: vertical; min-height: 130px; }
.field__input.is-invalid { border-color: #ff5a5a; box-shadow: 0 0 0 3px rgba(255, 90, 90, 0.15); }
.field__error {
  min-height: 1.1em;
  margin-top: 0.4rem;
  font-size: 0.82rem;
  color: #ff8a8a;
}
.contact-form__status {
  margin-top: 1.25rem;
  padding: 0.9rem 1.1rem;
  border-radius: var(--radius-sm);
  font-weight: 500;
  font-size: 0.95rem;
}
.contact-form__status.is-success {
  background: rgba(46, 204, 113, 0.12);
  border: 1px solid rgba(46, 204, 113, 0.4);
  color: #7ee2a8;
}
.contact-form__status.is-error {
  background: rgba(255, 90, 90, 0.1);
  border: 1px solid rgba(255, 90, 90, 0.35);
  color: #ff9a9a;
}

/* 17. FOOTER -------------------------------------------------------------- */
.site-footer {
  background: var(--c-bg);
  border-top: 1px solid var(--c-line);
  padding-top: clamp(3rem, 6vw, 5rem);
}
.footer__grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1.1fr 1fr;
  gap: clamp(2rem, 4vw, 3rem);
  padding-bottom: 3rem;
}
.footer__logo { height: 56px; width: auto; margin-bottom: 1.25rem; }
.footer__desc { color: var(--c-muted); max-width: 40ch; font-size: 0.95rem; }
.footer__heading {
  font-family: var(--font-display);
  font-size: 0.8rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--c-accent-2);
  margin-bottom: 1.25rem;
}
.footer__links { display: grid; gap: 0.7rem; }
.footer__links a,
.footer__contact a { color: var(--c-muted); transition: color 0.2s var(--ease); }
.footer__links a:hover,
.footer__contact a:hover { color: var(--c-heading); }
.footer__contact { font-style: normal; color: var(--c-muted); line-height: 1.9; font-size: 0.95rem; }
.footer__legal { display: grid; gap: 0.6rem; color: var(--c-muted); font-size: 0.92rem; }

.footer__bottom { border-top: 1px solid var(--c-line); padding-block: 1.6rem; }
.footer__bottom-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}
.footer__bottom p { color: var(--c-steel); font-size: 0.88rem; }
.footer__tagline { font-family: var(--font-display); color: var(--c-accent-2) !important; letter-spacing: 0.02em; }

/* 18. BACK TO TOP --------------------------------------------------------- */
.back-to-top {
  position: fixed;
  right: clamp(1rem, 3vw, 2rem);
  bottom: clamp(1rem, 3vw, 2rem);
  z-index: 90;
  width: 48px; height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--c-accent-ink);
  background: var(--grad-accent);
  border: none;
  border-radius: var(--radius-btn);
  box-shadow: var(--shadow-accent);
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: opacity 0.3s var(--ease), transform 0.3s var(--ease), visibility 0.3s;
}
.back-to-top.is-visible { opacity: 1; visibility: visible; transform: translateY(0); }
.back-to-top:hover { transform: translateY(-3px); }

/* 19. REVEAL ANIMATIONS --------------------------------------------------- */
.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
  will-change: opacity, transform;
}
.reveal.is-visible { opacity: 1; transform: none; }
.services__grid .reveal.is-visible,
.safety__grid .reveal.is-visible,
.process__steps .reveal.is-visible { transition-delay: var(--reveal-delay, 0s); }

/* 20. RESPONSIVE ---------------------------------------------------------- */
@media (max-width: 1024px) {
  .about__grid,
  .capabilities__grid,
  .contact__grid { grid-template-columns: 1fr; }
  .about__aside,
  .capabilities__intro { position: static; }
  .about__aside { max-width: 560px; }
  .process__steps { grid-template-columns: repeat(2, 1fr); }
  .services__grid { grid-template-columns: repeat(2, 1fr); column-gap: clamp(2rem, 5vw, 3.5rem); }
}

@media (max-width: 860px) {
  :root { --header-h: 68px; }

  .header__logo { height: 44px; }

  .nav__toggle { display: flex; }

  .nav__menu {
    position: fixed;
    inset: var(--header-h) 0 auto 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 1rem var(--gutter) 1.75rem;
    background: rgba(8, 12, 22, 0.98);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--c-line);
    box-shadow: var(--shadow-lg);
    transform: translateY(-140%);
    transition: transform 0.4s var(--ease);
    max-height: calc(100dvh - var(--header-h));
    overflow-y: auto;
  }
  .nav__menu.is-open { transform: translateY(0); }
  .nav__link {
    min-height: 52px;
    padding: 0 0.25rem;
    font-size: 1.05rem;
    border-bottom: 1px solid var(--c-line);
  }
  .nav__link::after { display: none; }
  .nav__cta-item { margin: 1.25rem 0 0; }
  .nav__cta-item .btn { width: 100%; }

  .stats__grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 620px) {
  .process__steps { grid-template-columns: 1fr; }
  .services__grid { grid-template-columns: 1fr; }
  .field-row { grid-template-columns: 1fr; gap: 0; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .footer__brand { grid-column: 1 / -1; }
  .hero__actions .btn { flex: 1 1 auto; }
}

@media (max-width: 420px) {
  .stats__grid { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: 1fr; }
}

/* 21. ACCESSIBILITY / REDUCED MOTION -------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
  .reveal { opacity: 1; transform: none; }
  .hero__path { stroke-dashoffset: 0; }
}

/* High-contrast / forced colors support */
@media (forced-colors: active) {
  .btn, .card, .panel, .field__input { border: 1px solid currentColor; }
}

/* 22. CONTACT FORM 7 INTEGRATION ------------------------------------------ */
.wpcf7-form-control-wrap { display: block; width: 100%; }

textarea.field__input {
  resize: vertical;
  min-height: 130px;
}

input.wpcf7-submit {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 48px;
  padding: 0.95rem 1.6rem;
  border: 1px solid transparent;
  border-radius: var(--radius-btn);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.01em;
  line-height: 1;
  background: var(--grad-accent);
  color: var(--c-accent-ink);
  box-shadow: var(--shadow-accent);
  cursor: pointer;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease);
}
input.wpcf7-submit:hover {
  transform: translateY(-3px);
  box-shadow: 0 24px 48px -18px rgba(255, 122, 26, 0.7);
}

.wpcf7-form-control.field__input.wpcf7-not-valid {
  border-color: #ff5a5a;
  box-shadow: 0 0 0 3px rgba(255, 90, 90, 0.15);
}
.wpcf7-not-valid-tip {
  display: block;
  margin-top: 0.4rem;
  font-size: 0.82rem;
  color: #ff8a8a;
}

.wpcf7-response-output {
  margin: 1.25rem 0 0;
  padding: 0.9rem 1.1rem;
  border-radius: var(--radius-sm);
  font-weight: 500;
  font-size: 0.95rem;
  border: 1px solid var(--c-line-2);
  color: var(--c-text);
}
.wpcf7-mail-sent-ok {
  background: rgba(46, 204, 113, 0.12);
  border-color: rgba(46, 204, 113, 0.4);
  color: #7ee2a8;
}
.wpcf7-validation-errors,
.wpcf7-mail-sent-ng,
.wpcf7-spam-blocked,
.wpcf7-aborted {
  background: rgba(255, 90, 90, 0.1);
  border-color: rgba(255, 90, 90, 0.35);
  color: #ff9a9a;
}

.wpcf7 form.sending .wpcf7-response-output { opacity: 0.7; }

.nds-hp {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* 18. RECAPTCHA ------------------------------------------------------------
   The floating badge is hidden per Google's reCAPTCHA branding requirements,
   which require the notice text below to stay visible in its place. */
.grecaptcha-badge { visibility: hidden !important; }

.recaptcha-notice {
  margin-top: 1rem;
  font-size: 0.8rem;
  line-height: 1.5;
  color: var(--c-muted);
}
.recaptcha-notice a { color: var(--c-muted); text-decoration: underline; }
.recaptcha-notice a:hover { color: var(--c-heading); }
