/* =========================================================
   RecyclIT UK — global stylesheet
   Elementor-compatible build: flex layouts only, no CSS grid.
   Tokens mirror CLAUDE.md design system.
   ========================================================= */

/* ---------- Design tokens ---------- */
:root {
  --green: #22c55e;
  --green-dark: #16a34a;
  --green-darker: #15803d;
  --green-tint: #f0fdf4;
  --charcoal: #1f2937;
  --charcoal-900: #111827;
  --ink: #1f2937;            /* headings */
  --body: #4b5563;           /* paragraphs */
  --muted: #6b7280;
  --light: #f3f4f6;
  --line: #e5e7eb;
  --input: #d1d5db;
  --placeholder: #9ca3af;
  --blue: #3b82f6;
  --white: #ffffff;
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 8px 16px rgba(0, 0, 0, 0.1);
  --shadow-btn: 0 8px 20px rgba(34, 197, 94, 0.28);
  --shadow-btn-hover: 0 12px 26px rgba(34, 197, 94, 0.38);
  --radius: 16px;
  --radius-sm: 12px;
  --radius-lg: 22px;
  --font-head: "Poppins", "Inter", Arial, sans-serif;
  --font-body: "Inter", Arial, sans-serif;
  --trans: 300ms ease-in-out;
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--body);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

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

a { color: var(--green-dark); text-decoration: none; transition: color 200ms ease; }
a:hover { color: var(--green-darker); }

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-head);
  font-weight: 700;
  color: var(--ink);
  margin: 0 0 0.5em;
  line-height: 1.25;
  letter-spacing: -0.25px;
}

h1 { font-size: clamp(1.9rem, 4vw, 3rem); font-weight: 700; }
h2 { font-size: clamp(1.5rem, 2.6vw, 2.25rem); font-weight: 700; }
h3 { font-size: 1.25rem; font-weight: 600; }
h4 { font-size: 1rem; font-weight: 600; }

p { margin: 0 0 1em; }

/* ---------- Container / layout ---------- */
.wrap {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.section { padding: 80px 0; }
.section--charcoal { background: var(--white); }

/* ---------- Flex utilities (Elementor-friendly) ---------- */
.flex { display: flex; }
.flex-center { display: flex; align-items: center; justify-content: center; }
.flex-col { display: flex; flex-direction: column; }
.flex-between { display: flex; align-items: center; justify-content: space-between; }
.gap-sm { gap: 12px; }
.gap-md { gap: 24px; }
.gap-lg { gap: 40px; }
.fg, .fg-grow { flex: 1; }
.text-center { text-align: center; }
.text-white { color: var(--white); }
.text-green { color: var(--green); }
.mt-1 { margin-top: 8px; }
.mt-2 { margin-top: 16px; }
.mt-3 { margin-top: 30px; }
.mb-0 { margin-bottom: 0; }
.mx-auto { margin-left: auto; margin-right: auto; }
.max-w-3 { max-width: 640px; }
.max-w-4 { max-width: 760px; }
.max-w-5 { max-width: 900px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-head);
  font-size: 16px;
  font-weight: 600;
  padding: 14px 28px;
  min-height: 44px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  border: none;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.06);
  transition: background var(--trans), transform var(--trans),
              box-shadow var(--trans), border-color var(--trans), color var(--trans);
  text-align: center;
  will-change: transform;
}
.btn:focus-visible {
  outline: 3px solid var(--blue);
  outline-offset: 2px;
}
.btn--pill { border-radius: 999px; }
.btn--sm { padding: 10px 20px; min-height: 40px; font-size: 14px; }
.btn--primary {
  background: var(--green);
  color: #052e16;
  box-shadow: var(--shadow-btn);
}
.btn--primary:hover {
  background: var(--green-dark);
  color: #041f10;
  transform: translateY(-2px);
  box-shadow: var(--shadow-btn-hover);
}
.btn--primary:active {
  background: var(--green-darker);
  transform: translateY(0);
}
.btn--secondary {
  background: transparent;
  color: var(--green-darker);
  border: 2px solid var(--green);
  box-shadow: none;
}
.btn--secondary:hover {
  background: var(--green-tint);
  color: var(--green-dark);
  border-color: var(--green-dark);
  transform: translateY(-2px);
}
.btn--ghost {
  background: rgba(255, 255, 255, 0.1);
  color: var(--white);
  border: 1.5px solid rgba(255, 255, 255, 0.45);
  backdrop-filter: blur(6px);
  box-shadow: none;
}
.btn--ghost:hover {
  background: rgba(255, 255, 255, 0.18);
  color: var(--white);
  border-color: var(--white);
  transform: translateY(-2px);
}
.btn--outline-white {
  background: transparent;
  color: var(--white);
  border: 2px solid rgba(255, 255, 255, 0.45);
  box-shadow: none;
}
.btn--outline-white:hover {
  background: rgba(255, 255, 255, 0.1);
  color: var(--white);
  border-color: var(--white);
  transform: translateY(-2px);
}
.btn--lg { padding: 16px 34px; font-size: 17px; }

.text-link {
  font-family: var(--font-head);
  font-weight: 500;
  font-size: 14px;
  color: var(--green);
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.text-link:hover { color: var(--green-dark); }
.text-link::after {
  content: "";
  position: absolute;
  left: 0; bottom: -3px;
  width: 0; height: 2px;
  background: var(--green);
  transition: width var(--trans);
}
.text-link:hover::after { width: 100%; }

.text-link--white { color: var(--white); }
.text-link--white:hover { color: var(--green); }
.text-link--white::after { background: var(--green); }

/* ---------- Cards ---------- */
.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px 26px;
  box-shadow: var(--shadow-sm);
  transition: transform var(--trans), box-shadow var(--trans), border-color var(--trans);
  display: flex;
  flex-direction: column;
}
.card:hover {
  box-shadow: 0 16px 36px rgba(15, 23, 42, 0.12);
  transform: translateY(-6px);
  border-color: var(--green);
}
.card--center { align-items: center; text-align: center; }

.card__icon {
  width: 48px; height: 48px;
  color: var(--green);
  margin-bottom: 16px;
  flex: none;
}
.card__title { font-size: 1.15rem; margin-bottom: 8px; }
.card__text { font-size: 14px; color: var(--body); flex: 1; margin-bottom: 12px; }

/* ---------- Testimonials (Google Reviews) ---------- */
/* Testimonials = Swiper carousel, transparent section (no bg) */
.testimonials .swiper-wrapper { align-items: stretch; }
.testimonials .swiper-slide { height: auto; }
.testimonials .swiper-slide .card { height: 100%; margin: 0; display: flex; flex-direction: column; }
.testimonials .swiper-pagination { position: static; margin-top: 24px; }
.testimonials .swiper-pagination-bullet { width: 8px; height: 8px; background: var(--line); opacity: 1; }
.testimonials .swiper-pagination-bullet-active { background: var(--green); }
.testimonials__nav { display: flex; justify-content: center; gap: 12px; margin-top: 28px; }
.testimonials__nav .swiper-arrow {
  width: 44px; height: 44px; border-radius: 50%;
  border: 1px solid var(--line); background: var(--white);
  color: var(--ink); font-size: 18px; cursor: pointer;
  display: grid; place-items: center;
  transition: border-color var(--trans), color var(--trans), background var(--trans);
}
.testimonials__nav .swiper-arrow:hover { border-color: var(--green); color: var(--green); }
.testimonial { position: relative; }
.testimonial__stars { color: #fbbf24; font-size: 17px; letter-spacing: 2px; margin-bottom: 14px; }
.testimonial__quote {
  font-size: 15px; line-height: 1.6; color: var(--body);
  margin-bottom: 22px; font-style: italic;
}
.testimonial__meta {
  display: flex; align-items: center; gap: 12px; margin-top: auto;
  padding-top: 16px; border-top: 1px solid var(--line);
}
.testimonial__avatar {
  width: 42px; height: 42px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--green-tint); color: var(--green-darker);
  font-family: var(--font-head); font-weight: 700; font-size: 17px;
  flex: none;
}
.testimonial__who { display: flex; flex-direction: column; }
.testimonial__name { font-family: var(--font-head); font-weight: 600; font-size: 14px; color: var(--ink); }
.testimonial__source { font-size: 12px; color: var(--muted); display: flex; align-items: center; gap: 5px; }
.testimonial__google {
  display: inline-flex; align-items: center; gap: 4px;
  font-family: var(--font-head); font-weight: 700; font-size: 11px;
  color: #4285f4; letter-spacing: 0.3px;
}
.testimonials__badge {
  display: inline-flex; align-items: center; gap: 10px; margin-top: 36px;
  padding: 10px 18px; border-radius: 999px;
  background: var(--white); border: 1px solid var(--line);
}
.testimonials__badge svg { flex: none; }

/* ---------- Grids (flex, Elementor-friendly) ---------- */
.grid { display: flex; flex-wrap: wrap; margin: -12px; }
.grid > * { margin: 12px; }
.g-3 > * { flex: 1 1 280px; max-width: none; }
.g-2 > * { flex: 1 1 380px; max-width: none; }
.g-4 > * { flex: 1 1 220px; max-width: 300px; }

/* ---------- Section header ---------- */
.sec-head { max-width: 760px; margin: 0 auto 48px; }
.sec-head--center { text-align: center; }
.sec-kicker {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 14px;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: var(--green-darker);
  margin-bottom: 12px;
}

/* ---------- Header ---------- */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: var(--white);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.04);
  color: var(--ink);
}
/* Homepage only: transparent → solid on scroll */
[data-transparent] .site-header {
  transition: background var(--trans), box-shadow var(--trans), backdrop-filter var(--trans);
  background: transparent;
  border-bottom: 1px solid transparent;
  box-shadow: none;
  color: var(--white);
}
[data-transparent] .site-header.is-scrolled {
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.08);
}
.header-main {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 8px 28px;
}
.brand { display: flex; align-items: center; }
.brand img {
  height: 62px;
  width: auto;
}
/* Inner pages (light header): BLACK logo always */
.brand__logo--dark { display: none; }
.brand__logo--light { display: block; }
/* Homepage only (transparent hero over dark video): WHITE logo at top */
[data-transparent] .brand__logo--dark { display: block; }
[data-transparent] .brand__logo--light { display: none; }
/* Homepage scrolled (solid white): swap to BLACK */
[data-transparent] .site-header.is-scrolled .brand__logo--dark { display: none; }
[data-transparent] .site-header.is-scrolled .brand__logo--light { display: block; }
.header-actions { display: flex; align-items: center; gap: 14px; }

.main-nav { display: flex; align-items: center; gap: 30px; }
.main-nav a {
  font-family: var(--font-head);
  font-weight: 500;
  font-size: 15px;
  color: var(--ink);
  position: relative;
  padding: 4px 0;
  transition: color var(--trans);
}
[data-transparent] .main-nav a { color: var(--white); }
[data-transparent] .site-header.is-scrolled .main-nav a { color: var(--ink); }
.main-nav a:hover { color: var(--green); }
[data-transparent] .site-header.is-scrolled .main-nav a:hover,
.main-nav a.is-active { color: var(--green); }
.main-nav a.is-active {
  color: var(--green);
  font-weight: 600;
}
.main-nav a.is-active::after {
  content: "";
  position: absolute;
  left: 0; bottom: -4px;
  width: 100%; height: 3px;
  border-radius: 2px;
  background: var(--green);
}

/* Hamburger */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 10px;
}
.nav-toggle span {
  width: 26px; height: 3px;
  background: var(--ink);
  border-radius: 2px;
  transition: transform var(--trans), opacity var(--trans), background var(--trans);
}
[data-transparent] .nav-toggle span { background: var(--white); }
[data-transparent] .site-header.is-scrolled .nav-toggle span { background: var(--ink); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  align-items: center;
  color: var(--white);
}
.hero video {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
}
.hero__overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(100deg, rgba(11, 15, 24, 0.9) 0%, rgba(11, 15, 24, 0.72) 45%, rgba(11, 15, 24, 0.45) 75%, rgba(11, 15, 24, 0.7) 100%);
}
.hero__content {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 120px 24px;
  text-align: left;
}
.hero__content > .hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 14px;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  color: var(--green);
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(34, 197, 94, 0.45);
  padding: 10px 18px;
  border-radius: 999px;
  margin-bottom: 24px;
}
.hero h1 {
  color: var(--white);
  margin-bottom: 20px;
  letter-spacing: -0.03em;
  font-size: clamp(2.2rem, 5.2vw, 3.9rem);
  line-height: 1.1;
}
.hero__content > p {
  color: #d1d5db;
  font-size: 1.25rem;
  max-width: 560px;
  margin-bottom: 32px;
}
.hero__ctas { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }

/* Animated entrance (respect prefers-reduced-motion) */
@keyframes rise {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}
.hero__eyebrow { animation: rise 600ms ease-out both; }
.hero__title { animation: rise 600ms ease-out 120ms both; }
.hero__content > p { animation: rise 600ms ease-out 240ms both; }
.hero__ctas { animation: rise 600ms ease-out 360ms both; }

/* ---------- Trust badges ---------- */
.trust-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px 36px;
  max-width: 800px;
  margin: 0 auto;
}
.trust-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-head);
  font-weight: 500;
  font-size: 15px;
  color: var(--ink);
}
.trust-item svg { color: var(--green); flex: none; }

/* ---------- Process steps ---------- */
/* serpentine timeline */
.process {
  position: relative;
  margin-top: 60px;
}
.process::before {
  content: "";
  position: absolute;
  top: 0; bottom: 0;
  left: 50%;
  width: 2px;
  transform: translateX(-50%);
  background: rgba(34, 197, 94, 0.18);
  border-radius: 2px;
}
/* progressive fill — height driven by --progress (set from JS on scroll) */
.process__fill {
  position: absolute;
  top: 0; bottom: 0;
  left: 50%;
  width: 2px;
  transform: translateX(-50%) scaleY(var(--progress, 0));
  transform-origin: top;
  background: linear-gradient(to bottom, rgba(255,255,255,0.7), var(--green));
  border-radius: 2px;
  box-shadow: 0 0 10px rgba(34, 197, 94, 0.6);
  pointer-events: none;
}
.process__step {
  position: relative;
  width: calc(50% - 48px);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px 24px;
  text-align: left;
  transition: transform var(--trans), box-shadow var(--trans), border-color var(--trans);
  margin-bottom: 34px;
}
/* alternate sides */
.process__step:nth-child(odd) { margin-left: 0; }
.process__step:nth-child(even) { margin-left: calc(50% + 48px); }
/* nub + arrowhead joining card to spine */
.process__step::before {
  content: "";
  position: absolute;
  top: 44px;
  width: 48px; height: 2px;
  background: var(--green);
  opacity: 0.65;
}
.process__step:nth-child(odd)::before { right: -49px; }
.process__step:nth-child(even)::before { left: -49px; }
/* spine dot + down chevron on the spine at each step */
.process__step::after {
  content: "";
  position: absolute;
  top: 34px;
  width: 12px; height: 12px;
  transform: rotate(45deg);
  border-right: 2px solid var(--green);
  border-bottom: 2px solid var(--green);
  border-radius: 2px;
  opacity: 0.8;
  box-shadow: 0 0 8px rgba(34, 197, 94, 0.6);
}
/* diamond centered exactly on the spine: card edge is 48px short of spine, half a 12px diamond = 6px */
.process__step:nth-child(odd)::after { left: auto; right: -55px; }
.process__step:nth-child(even)::after { right: auto; left: -55px; }
.process__step.is-active {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--green);
}
.process__num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px; height: 36px;
  border-radius: 50%;
  background: var(--green-tint);
  color: var(--green);
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 14px;
  margin-bottom: 16px;
}
.process__step svg { width: 32px; height: 32px; color: var(--green); margin-bottom: 14px; }
.process__step h3 { font-size: 1rem; margin-bottom: 8px; }
.process__step p { font-size: 14px; margin-bottom: 4px; color: var(--body); }
.process__step small { color: var(--muted); font-size: 13px; }

/* ---------- What we collect ---------- */
.collect-grid { display: flex; flex-wrap: wrap; gap: 20px; margin: 28px 0; }
.collect-grid--3 .collect-card { flex: 0 1 calc(33.333% - 14px); }
.collect-card {
  flex: 1 1 0;
  min-width: 0;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
  transition: border-color var(--trans), box-shadow var(--trans), transform var(--trans);
}
.collect-card:hover {
  border-color: var(--green);
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
}
.collect-card__ico {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px; height: 46px;
  border-radius: var(--radius-sm);
  background: var(--green-tint);
  color: var(--green);
  margin-bottom: 14px;
}
.collect-card h4 { margin-bottom: 12px; font-size: 17px; }
.collect-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  font-size: 12.5px;
  font-family: var(--font-head);
  font-weight: 500;
  color: var(--ink);
  background: var(--white);
  border: 1px solid var(--line);
  padding: 6px 12px;
  border-radius: 999px;
  transition: border-color var(--trans), color var(--trans), background var(--trans);
}
.chip:hover { border-color: var(--green); color: var(--green); background: var(--green-tint); }

.collect-actions { margin-top: 8px; }
.collect-actions + .collect-actions,
.collect-actions .btn { margin: 0; }

.collect-media { margin: 8px 0 0; }
.collect-media img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
}
/* We Collect image doubles as a CTA on this page */
.collect-media__cta {
  position: relative;
  display: block;
  overflow: hidden;
  border-radius: var(--radius-lg);
}
.collect-media__cta img { transition: transform var(--trans); }
.collect-media__cta:hover img { transform: scale(1.03); }
.collect-media__cta::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 40%, rgba(31, 41, 55, 0.65) 100%);
  border-radius: var(--radius-lg);
}
.collect-media__label {
  position: absolute;
  left: 24px; bottom: 22px; z-index: 2;
  display: inline-flex;
  align-items: center;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 15px;
  color: var(--white);
  background: var(--green);
  padding: 12px 22px;
  border-radius: 999px;
  box-shadow: var(--shadow-btn);
  transition: background var(--trans), transform var(--trans);
}
.collect-media__cta:hover .collect-media__label {
  background: var(--green-dark);
  transform: translateY(-2px);
}

/* ---------- Sectors ---------- */
.sector-grid { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 20px; }
.sector-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 14px;
  color: var(--ink);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 10px 18px;
  transition: background var(--trans), border-color var(--trans), color var(--trans);
}
.sector-badge:hover { background: var(--green-tint); border-color: var(--green); color: var(--green-darker); }

/* ---------- Stats ---------- */
.stats { display: flex; flex-wrap: wrap; text-align: center; border-radius: var(--radius); overflow: hidden; }
.stats > * {
  flex: 1 1 180px;
  padding: 32px 16px;
  border-right: 1px solid var(--line);
  border-top: 1px solid var(--line);
}
.stats > *:first-child { border-top: none; }
.stats .stat-num {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  color: var(--green);
  line-height: 1.1;
}
.stats .stat-label { font-size: 14px; color: var(--body); margin-top: 6px; }

/* ---------- Certs ---------- */
.certs { display: flex; flex-wrap: wrap; justify-content: center; gap: 24px; }
.cert-badge {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 180px;
  padding: 18px 22px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 15px;
  color: var(--ink);
  text-align: center;
  transition: box-shadow var(--trans), transform var(--trans), border-color var(--trans);
}
.cert-badge:hover { box-shadow: var(--shadow-md); transform: translateY(-3px); border-color: var(--green); }
.cert-badge img { width: 96px; height: auto; margin-bottom: 8px; }

/* ---------- CTA band ---------- */
.cta-band {
  padding: 0 24px;
  max-width: 1200px;
  margin: 0 auto;
}
.cta-band > .wrap {
  background: var(--white);
  color: var(--ink);
  text-align: center;
  padding: 70px 48px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
}
.cta-band h2 { color: var(--ink); }
.cta-band p { color: var(--body); max-width: 560px; margin: 0 auto 30px; }
/* .cta-band sits on white — outline-white text must go dark, not invisible */
.cta-band .btn--outline-white {
  color: var(--ink);
  border-color: var(--line);
}
.cta-band .btn--outline-white:hover {
  background: var(--light);
  color: var(--ink);
  border-color: var(--ink);
}

/* ---------- Accordion ---------- */
.accordion { max-width: 760px; margin: 0 auto; }
.acc-item { border: 1px solid var(--line); border-radius: var(--radius); margin-bottom: 12px; overflow: hidden; }
.acc-item.is-open { border-color: var(--green); }
.acc-head {
  width: 100%;
  background: var(--white);
  border: none;
  cursor: pointer;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 16px;
  color: var(--ink);
  text-align: left;
  padding: 18px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  transition: color var(--trans);
}
.acc-head:hover { color: var(--green-darker); }
.acc-head .acc-icon {
  font-weight: 300;
  font-size: 1.4rem;
  color: var(--green);
  transition: transform var(--trans);
  flex: none;
}
.acc-item.is-open .acc-icon { transform: rotate(45deg); }
.acc-body {
  max-height: 0;
  overflow: hidden;
  transition: max-height var(--trans);
}
.acc-body-inner { padding: 0 20px 20px; font-size: 15px; }

/* ---------- Contact form ---------- */
.form-grid { display: flex; flex-wrap: wrap; gap: 20px; }
.form-grid > * { flex: 1 1 45%; min-width: 240px; }
.form-grid .field-full { flex: 1 1 100%; }
.field { display: flex; flex-direction: column; margin-bottom: 4px; }
.field label { font-family: var(--font-head); font-weight: 500; font-size: 14px; color: var(--ink); margin-bottom: 8px; }
.field label .req { color: #ef4444; }
.field input,
.field select,
.field textarea {
  font-family: var(--font-body);
  font-size: 16px;
  color: var(--ink);
  background: var(--white);
  border: 1px solid var(--input);
  border-radius: var(--radius-sm);
  padding: 12px 16px;
  transition: border-color var(--trans), box-shadow var(--trans);
}
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--green);
  box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.1);
}
.field input::placeholder,
.field textarea::placeholder { color: var(--placeholder); }
.checkbox { flex-direction: row; align-items: flex-start; gap: 10px; }
.checkbox input { width: 18px; height: 18px; margin-top: 3px; }
.checkbox label { margin: 0; font-weight: 400; }

.form-note { font-size: 13px; color: var(--muted); margin-top: 16px; }
.form-success {
  display: none;
  background: var(--green-tint);
  border: 1px solid var(--green);
  color: var(--green-darker);
  padding: 16px 20px;
  border-radius: var(--radius);
  margin-bottom: 24px;
  font-weight: 500;
}

/* ---------- Contact info cards ---------- */
.contact-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px;
  margin-bottom: 16px;
  display: flex;
  gap: 14px;
  align-items: flex-start;
}
.contact-card svg { color: var(--green); flex: none; margin-top: 2px; }
.contact-card h4 { margin-bottom: 4px; }
.contact-card p { margin: 0; font-size: 14px; }
.contact-card a { font-size: 14px; }

/* ---------- Page hero (inner pages) ---------- */
.page-hero {
  background: var(--white);
  padding: 126px 0 56px;
  border-bottom: 1px solid var(--line);
}
.page-hero h1 { margin-bottom: 10px; }
.page-hero p { color: var(--body); max-width: 640px; margin: 0; }
.breadcrumbs { font-size: 13px; color: var(--muted); margin-bottom: 12px; }
.breadcrumbs a { color: var(--muted); }
.breadcrumbs a:hover { color: var(--green); }
.breadcrumbs .sep { margin: 0 8px; }

/* ---------- Two-column split ---------- */
.split { display: flex; gap: 48px; align-items: center; flex-wrap: wrap; }
.split > * { flex: 1 1 420px; }
.split img { border-radius: var(--radius); box-shadow: var(--shadow-md); }

/* ---------- Footer (light) ---------- */
.site-footer {
  position: relative;
  background: var(--light);
  color: var(--body);
  padding: 0;
  border-top: 1px solid var(--line);
  margin-top: 40px;
}
/* top accent hairline */
.site-footer::before {
  content: "";
  position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: linear-gradient(90deg, transparent, var(--green-darker), transparent);
}
.site-footer .footer-cta, .site-footer .footer-grid, .site-footer .footer-bottom { position: relative; z-index: 1; }

/* Light footer */
.site-footer .footer-cta { border-bottom-color: var(--line); }
.site-footer .footer-cta__title { color: var(--ink); }
.site-footer .footer-brand p { color: var(--muted); }
.site-footer .footer-grid h4 { color: var(--green-darker); }
.site-footer .footer-links a,
.site-footer .footer-contact > *,
.site-footer .footer-contact a,
.site-footer .footer-bottom { color: var(--muted); }
.site-footer .footer-links a:hover { color: var(--ink); }
.site-footer .footer-contact a:hover { color: var(--green-dark); }
.site-footer .footer-social a {
  background: var(--white);
  border-color: var(--line);
  color: var(--ink);
}
.site-footer .footer-bottom { border-top-color: var(--line); }
.site-footer .footer-bottom .legal a {
  color: var(--muted);
  border-color: var(--line);
}
.site-footer .footer-bottom .legal a:hover { color: var(--green-dark); border-color: var(--green-dark); }

/* --- CTA band --- */
.footer-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  padding: 48px 0 44px;
  border-bottom: 1px solid var(--line);
}
.footer-cta .sec-kicker { margin-bottom: 8px; }
.footer-cta__title {
  margin: 0;
  color: var(--ink);
  font-size: clamp(1.4rem, 2.4vw, 1.9rem);
  line-height: 1.25;
  letter-spacing: -0.25px;
}
.footer-cta__actions { display: flex; gap: 14px; flex-wrap: wrap; }
.footer-cta__call {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: transparent;
  color: var(--green-darker);
  border: 1.5px solid var(--green-darker);
  padding: 14px 28px;
  border-radius: 999px;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 16px;
  transition: background var(--trans), color var(--trans), border-color var(--trans);
}
.footer-cta__call:hover {
  background: var(--green-tint);
  color: var(--green-dark);
  border-color: var(--green-dark);
}

/* --- Grid (4 columns, flex-based for Elementor) --- */
.footer-grid { display: flex; flex-wrap: wrap; gap: 48px; padding: 56px 0 48px; }
.footer-grid > * { flex: 1 1 200px; }
.footer-brand { flex-basis: 320px; max-width: 360px; }
.footer-brand img {
  height: 76px; width: auto;
  margin: 0 0 22px;
  padding: 0;
  display: block;
}
.footer-brand p { font-size: 14px; color: rgba(226, 232, 240, 0.7); max-width: 340px; line-height: 1.6; }
.footer-social { display: flex; gap: 10px; margin-top: 22px; }
.footer-social a {
  width: 42px; height: 42px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 50%;
  background: var(--light);
  border: 1px solid var(--line);
  color: var(--ink);
  transition: background var(--trans), border-color var(--trans), color var(--trans), transform var(--trans), box-shadow var(--trans);
}
.footer-social a:hover {
  background: var(--green);
  border-color: var(--green);
  color: var(--white);
  transform: translateY(-3px);
  box-shadow: 0 8px 18px rgba(34, 197, 94, 0.35);
}
.site-footer h4 {
  color: var(--green);
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-family: var(--font-head);
  margin-bottom: 20px;
  display: flex; align-items: center; gap: 10px;
}
.site-footer h4::after {
  content: ""; width: 24px; height: 2px;
  border-radius: 2px; background: var(--green);
}
.footer-links { display: flex; flex-direction: column; gap: 12px; }
.footer-links a {
  position: relative;
  color: var(--muted);
  font-size: 14px;
  padding-left: 16px;
  transition: color var(--trans), padding var(--trans);
}
.footer-links a::before {
  content: "";
  position: absolute; left: 0; top: 50%;
  transform: translateY(-50%);
  width: 7px; height: 7px; border-radius: 2px;
  background: var(--green);
  opacity: 0;
  transition: opacity var(--trans);
}
.footer-links a:hover { color: var(--ink); padding-left: 22px; }
.footer-links a:hover::before { opacity: 1; }
.footer-contact { display: flex; flex-direction: column; gap: 14px; font-size: 14px; }
.footer-contact > * { display: flex; align-items: center; gap: 11px; color: var(--muted); }
.footer-contact a { color: var(--muted); transition: color var(--trans); }
.footer-contact a:hover { color: var(--green); }

.footer-bottom {
  border-top: 1px solid var(--line);
  padding: 26px 0 30px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 13px;
  color: var(--muted);
}
.footer-bottom .legal { display: flex; gap: 6px; flex-wrap: wrap; }
.footer-bottom .legal a {
  color: var(--muted);
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid var(--line);
  transition: border-color var(--trans), color var(--trans);
}
.footer-bottom .legal a:hover { color: var(--green); border-color: var(--green); }

@media (max-width: 900px) {
  .footer-brand { flex-basis: 100%; max-width: none; }
  .footer-cta { padding: 40px 0 36px; }
}
@media (max-width: 600px) {
  .footer-grid { gap: 36px; padding: 40px 0 36px; }
  .footer-cta__actions { flex-direction: column; align-items: stretch; }
  .footer-cta__actions .btn { width: 100%; }
}

/* ---------- Service detail page ---------- */
.benefit { display: flex; gap: 16px; margin-bottom: 20px; }
.benefit svg { color: var(--green); flex: none; margin-top: 4px; }
.benefit h4 { margin-bottom: 4px; }
.benefit p { margin: 0; font-size: 14px; }

/* ---------- Related services ---------- */
.related { display: flex; flex-wrap: wrap; gap: 20px; }
.related .card { flex: 1 1 260px; }

/* ---------- reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
}

/* ---------- Nav close + WhatsApp float (base, all screens) ---------- */
.nav-close { display: none; }
.wa-float {
  position: fixed; bottom: 24px; right: 24px; z-index: 200;
  width: 56px; height: 56px; border-radius: 50%;
  background: #25d366; color: #fff; display: flex;
  align-items: center; justify-content: center;
  box-shadow: 0 4px 14px rgba(37, 211, 102, 0.4);
  text-decoration: none;
  opacity: 0; visibility: hidden; transform: translateY(20px);
  transition: opacity var(--trans), transform var(--trans), visibility var(--trans), box-shadow var(--trans);
}
.wa-float.is-visible { opacity: 1; visibility: visible; transform: translateY(0); }
.wa-float:hover { opacity: 1; visibility: visible; transform: scale(1.08); box-shadow: 0 6px 20px rgba(37, 211, 102, 0.5); }
.wa-float svg { width: 28px; height: 28px; fill: #fff; }

/* --- 404 --- */
.error-404 { min-height: 100vh; width: 100%; display: flex; align-items: center; justify-content: center; padding: 40px 24px; }
.error-404-body { margin: 0; }
.error-404__inner { text-align: center; max-width: 560px; margin: 0 auto; }
.error-404__code { font-family: var(--font-head); font-weight: 800; font-size: 96px; line-height: 1; color: var(--green); margin: 0 0 8px; }
.error-404__title { font-size: clamp(28px, 5vw, 40px); margin: 0 0 16px; }
.error-404__text { color: var(--muted); max-width: 440px; margin: 0 auto 28px; }
.error-404__actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .site-header { z-index: 300; }
  .main-nav {
    position: fixed;
    inset: 0;
    height: 100dvh;
    background: var(--white);
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    gap: 4px;
    padding: 92px 24px 36px;
    overflow-y: auto;
    box-shadow: var(--shadow-md);
    z-index: 250;
    transform: translateY(-104%);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: transform var(--trans) ease, opacity var(--trans) ease, visibility 0s linear 0.25s;
  }
  .main-nav.is-open {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transition: transform var(--trans) ease, opacity var(--trans) ease;
  }
  .main-nav a, [data-transparent] .main-nav a {
    color: var(--ink); width: 100%;
    padding: 15px 14px;
    font-size: 18px; font-weight: 600;
    border-radius: 10px;
    transition: background var(--trans), color var(--trans);
  }
  .main-nav a:hover, [data-transparent] .main-nav a:hover { background: var(--green-tint); color: var(--green-darker); }
  .main-nav a.is-active, [data-transparent] .main-nav a.is-active { color: var(--green); background: var(--green-tint); }
  .main-nav a.is-active::after, .main-nav a:hover::after { display: none; }
  .nav-toggle { display: flex; }
  .nav-scrim {
    position: fixed; inset: 0;
    background: rgba(15, 23, 42, 0.4);
    z-index: 140;
    opacity: 0; visibility: hidden;
    transition: opacity var(--trans) ease, visibility 0s linear 0.3s;
  }
  .nav-scrim.is-open { opacity: 1; visibility: visible; transition: opacity var(--trans) ease; }
  .header-actions .btn { display: inline-flex; font-size: 13px; padding: 8px 16px; }
  .nav-close { position: absolute; top: 14px; right: 16px; z-index: 260; background: none; border: none; width: 40px; height: 40px; display: none; align-items: center; justify-content: center; cursor: pointer; color: var(--ink); font-size: 28px; line-height: 1; border-radius: 50%; transition: background var(--trans), color var(--trans); }
  .nav-close:hover { background: var(--green-tint); color: var(--green); }
  body.nav-open .nav-close { display: flex; }
  .nav-close:focus-visible { outline: 2px solid var(--green); outline-offset: 2px; }
  .hero__content { padding: 132px 24px 72px; }
  body.nav-open .site-header,
  body.nav-open [data-transparent] .site-header,
  body.nav-open .site-header.is-scrolled { background: var(--white); }
  body.nav-open .brand__logo--dark { display: none; }
  body.nav-open .brand__logo--light { display: block; }
  body.nav-open .nav-toggle span { background: var(--ink); }
}

@media (max-width: 600px) {
  .section { padding: 48px 0; }
  .hero__content { padding: 120px 24px 60px; }
  .hero__ctas { flex-direction: column; align-items: stretch; }
  .hero__ctas .btn { width: 100%; }
  .site-header.is-scrolled { backdrop-filter: none; }
  .process { margin-top: 40px; }
  .process::before { left: 16px; }
  .process__fill { left: 16px; transform: translateX(-50%) scaleY(var(--progress, 0)); }
  .process__step { width: calc(100% - 48px); margin-left: 48px !important; }
  .process__step::before { left: -33px !important; right: auto !important; width: 33px; }
  .process__step::after { left: -39px !important; right: auto !important; margin-left: 0; }
  .trust-list { justify-content: flex-start; }
  .stats > * { border-top: 1px solid var(--line); }
  .stats > *:nth-child(1) { border-left: none; }
  .cta-band { padding: 0 16px; }
  .cta-band > .wrap { padding: 48px 24px; border-radius: var(--radius); }
  .hero__ctas .btn:not(:first-child),
  .cta-band .btn:not(:first-child) { display: none; }
}

/* Extra small: hide Start Free button when it wraps */
@media (max-width: 380px) {
  .header-actions .btn { display: none; }
}
/* -------------------------------------------------------------------------
 * Dropdown submenu (Services, etc.) — built from menu item children.
 * Flat <a> structure, so hover is bridged via :has() sibling selectors.
 * ---------------------------------------------------------------------- */
@media (min-width: 901px) {
  .main-nav { position: relative; }
}

.main-nav a.has-submenu {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
/* Dropdown chevron indicator — always visible (desktop + mobile),
   rotates 180deg when the dropdown is open. `order: 2` pins it to the
   RIGHT of the label (it's a ::before, but flex re-orders it after the text). */
.main-nav a.has-submenu::before {
  content: "";
  width: 8px;
  height: 8px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg);
  transition: transform var(--trans);
  flex: 0 0 auto;
  order: 2;
}
.main-nav a.has-submenu:hover::before,
.main-nav a.has-submenu:focus-visible::before { transform: rotate(225deg); }
/* Invisible hover bridge so the mouse can travel onto the dropdown. */
.main-nav a.has-submenu::after {
  content: "";
  position: absolute;
  left: 0; right: 0;
  bottom: -14px;
  height: 14px;
}

.main-nav .sub-menu {
  display: none;
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  flex-direction: column;
  min-width: 240px;
  padding: 8px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 8px 24px rgba(31, 41, 55, 0.12);
  z-index: 60;
}
.main-nav .sub-menu a {
  display: block;
  padding: 9px 12px;
  font-size: 14px;
  font-weight: 500;
  color: var(--ink); /* never inherit the transparent-hero white */
  border-radius: 6px;
  white-space: nowrap;
}
.main-nav .sub-menu a:hover { background: var(--green-tint); color: var(--green-darker); }

/* Open on hover of the parent and on keyboard focus (a11y). */
.main-nav a.has-submenu:hover + .sub-menu,
.main-nav a.has-submenu:focus-visible + .sub-menu,
.main-nav a.has-submenu:focus-within + .sub-menu { display: flex; }
/* Keep it open while the mouse is over the dropdown itself, so items are clickable. */
.main-nav .sub-menu:hover { display: flex; }

/* Nested level indented inline — rarely used, kept simple. */
.main-nav .sub-menu--nested {
  position: static;
  box-shadow: none;
  border: 0;
  padding: 4px 0 4px 14px;
  min-width: 0;
}

/* -------------------------------------------------------------------------
 * Mobile dropdown override — the base .sub-menu is `display:none` + absolute
 * (hover-driven). On touch there is no hover, so expand it inline inside the
 * full-screen panel. Placed AFTER the base rules so it wins the cascade.
 * ---------------------------------------------------------------------- */
@media (max-width: 900px) {
  /* Open/close is animated via max-height (display flips can't transition).
     `display: flex !important` always — the desktop hover/:focus-within rules
     must not matter on touch, and only .is-open changes max-height. */
  .main-nav .sub-menu {
    position: static;
    display: flex !important;
    flex-direction: column;
    max-height: 0;
    overflow: hidden;
    padding: 0 0 0 16px;
    min-width: 0;
    border: 0;
    border-radius: 0;
    box-shadow: none;
    background: transparent;
    transition: max-height 0.32s ease;
  }
  .main-nav .sub-menu.is-open {
    max-height: 520px; /* tall enough for all 8 sub-links */
    display: flex !important;
  }
  .main-nav .sub-menu a {
    white-space: normal;
    font-size: 16px;
    font-weight: 500;
    padding: 12px 14px;
    border-radius: 10px;
  }
  .main-nav a.has-submenu {
    font-weight: 700;
    display: flex;
    align-items: center;
    /* text on the left, chevron pinned right via ::before order:2 */
  }
}

/* -------------------------------------------------------------------------
 * Custom select (contact form "Services interested in" dropdown).
 * Native <select> with a styled chevron + green focus, no plugin needed.
 * ---------------------------------------------------------------------- */
.field select {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  padding-right: 40px;
  background-image: url("data:image/svg+xml;charset=UTF-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%236b7280' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  background-size: 16px;
  cursor: pointer;
}
.field select:hover:not(:focus) { border-color: var(--green); }
.field select:focus { border-color: var(--green); box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.15); }

/* Mobile: dropdown becomes an inline section inside the menu panel. */
@media (max-width: 900px) {
  /* Kill the desktop hover-bridge ::after on touch — it is invisible but
     its absolute positioning would otherwise hide/misplace the chevron. */
  .main-nav a.has-submenu::after { display: none; }
  /* Chevron rotation state comes from the JS toggle (.is-open), not hover. */
  .main-nav a.has-submenu.is-open::before { transform: rotate(225deg); }
}

/* What We Collect cards reuse the styles defined on the What We Collect page (.collect-grid/.collect-card/.collect-card__ico/.collect-chips/.chip). The page grid is flex `1 1 300px`, so two cards sit side by side in one row.
