/*
Theme Name: LWS Waste
Theme URI: https://lwswaste.fertile.build/
Author: fertile.digital
Description: Custom theme for Lancashire Waste Services — repair and maintenance specialists in waste vehicles, HGVs and plant.
Version: 0.1.0
Requires at least: 6.0
Tested up to: 6.9
Requires PHP: 7.4
License: Proprietary
Text Domain: lwswaste
*/

/* ============ Lenis smooth scroll hooks ============ */
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-smooth [data-lenis-prevent] { overscroll-behavior: contain; }
.lenis.lenis-stopped { overflow: hidden; }
.lenis.lenis-smooth iframe { pointer-events: none; }

/* ============ LWS Homepage Styles ============ */

@font-face {
  font-family: 'Avenir';
  src: local('Avenir Next'), local('AvenirNext-Regular'), local('Avenir'), local('Avenir-Book');
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: 'Avenir';
  src: local('Avenir Next Medium'), local('AvenirNext-Medium'), local('Avenir-Medium'), local('Avenir Medium'),
       url('assets/fonts/Avenir-Medium.woff2') format('woff2'),
       url('assets/fonts/Avenir-Medium.woff')  format('woff');
  font-weight: 500;
  font-display: swap;
}
@font-face {
  font-family: 'Avenir';
  src: local('Avenir Next Bold'), local('AvenirNext-Bold'), local('Avenir-Heavy'), local('Avenir Heavy');
  font-weight: 700;
  font-display: swap;
}
@font-face {
  font-family: 'Avenir';
  src: local('Avenir Next Heavy'), local('AvenirNext-Heavy'), local('Avenir-Black'), local('Avenir Black'),
       url('assets/fonts/Avenir-Black.woff2') format('woff2'),
       url('assets/fonts/Avenir-Black.woff')  format('woff');
  font-weight: 900;
  font-display: swap;
}

:root {
  --green: #36af43;
  --green-dark: #2a9836;
  --ink: #213222;
  --ink-2: #1a2a1c;
  --ink-3: #0f1a11;
  --paper: #f3f7f3;
  --paper-2: #eaf1ea;
  --line: rgba(33, 50, 34, 0.12);
  --shadow: 0 18px 40px rgba(15, 26, 17, 0.10), 0 4px 10px rgba(15, 26, 17, 0.06);
  --shadow-soft: 0 10px 30px rgba(15, 26, 17, 0.08);
  --container: 1240px;
  --radius-pill: 999px;
  --font: 'Avenir', 'Nunito', -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }

body {
  font-family: var(--font);
  font-weight: 500;
  color: var(--ink);
  background: #fff;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  line-height: 1.55;
  font-size: 16px;
}

img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }

h1, h2, h3, h4, h5, h6 {
  font-weight: 900;
  letter-spacing: 0;
  line-height: 1.1;
  margin: 0;
  color: var(--ink);
  text-wrap: balance;
}

p { margin: 0; font-weight: 500; }

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 32px;
}

/* ============ Buttons ============ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 3px 42px;
  border-radius: var(--radius-pill);
  font-family: var(--font);
  font-weight: 700;
  font-size: 15px;
  letter-spacing: 0;
  cursor: pointer;
  border: 2px solid var(--green);
  background: var(--green);
  color: #fff;
  transition: transform .15s ease, background .15s ease, color .15s ease, box-shadow .15s ease;
  white-space: nowrap;
}
.btn:hover { background: var(--green-dark); border-color: var(--green-dark); transform: translateY(-1px); }
.btn--ghost { background: transparent; color: var(--green); }
.btn--ghost:hover { background: var(--green); color: #fff; }
.btn--ghost-light { background: transparent; color: #fff; border-color: var(--green); }
.btn--ghost-light:hover { background: var(--green); color: #fff; }
.btn--small { padding: 10px 22px; font-size: 13px; }

/* ============ Top Nav ============ */
/* Fixed so it stays visible while scrolling. Transparent at the top of the
   page (so the hero artwork shows through) — JS adds .nav--scrolled past
   ~40px scroll, which paints a dark glass background + hairline border so
   the nav reads as a UI layer over white content. */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 50;
  padding: 22px 0;
  background: transparent;
  border-bottom: 1px solid transparent;
  transition: background-color .25s ease, padding .25s ease, border-color .25s ease, box-shadow .25s ease;
}
.nav--scrolled {
  background: rgba(10, 22, 16, 0.92);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  border-bottom-color: rgba(255, 255, 255, 0.08);
  padding: 12px 0;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.18);
}
/* The hero brand logo is sized for a transparent overlay; shrink it slightly
   when the nav compacts so it doesn't dominate the smaller bar. */
.nav--scrolled .brand__logo { width: 160px; }
.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
}
.brand__logo {
  width: 216px;
  height: auto;
  display: block;
  transition: width .35s cubic-bezier(.2,.6,.2,1);
  will-change: width;
}
.brand__tag {
  display: flex;
  flex-direction: column;
  line-height: 1;
  color: #fff;
  font-weight: 900;
  font-size: 9px;
  letter-spacing: 0;
  margin-top: 6px;
}
.brand__tag span:last-child { font-weight: 500; font-size: 8px; letter-spacing: 0; opacity: 0.9; }

.nav__links {
  display: flex;
  align-items: center;
  gap: 36px;
}
.nav__link {
  color: #fff;
  font-weight: 700;
  font-size: 15px;
  letter-spacing: 0;
  position: relative;
  padding: 6px 0;
  transition: color .15s ease;
}
.nav__link:hover, .nav__link--active { color: var(--green); }
/* Match .btn .btn--ghost so the nav CTA looks identical to the site's
   ghost-pill buttons. */
.nav__cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 3px 14px;
  border-radius: var(--radius-pill);
  font-family: var(--font);
  font-weight: 700;
  font-size: 15px;
  letter-spacing: 0;
  cursor: pointer;
  border: 2px solid var(--green);
  background: transparent;
  color: var(--green);
  transition: transform .15s ease, background .15s ease, color .15s ease, box-shadow .15s ease;
  white-space: nowrap;
}
.nav__cta:hover { background: var(--green); color: #fff; transform: translateY(-1px); }

/* ============ Fade-in-right entrance animation ============
 * Applied via JS to right-side images (.split:not(.split--reverse) .media,
 * .collage) when they enter the viewport. Respects prefers-reduced-motion. */
/* Hidden state applied directly to the targets so it's painted on first
   render — avoids a flash before the JS hides them. JS toggles .is-visible
   to trigger the transition (fires immediately for above-the-fold elements
   via IntersectionObserver). */
.split:not(.split--reverse) .media,
.split--reverse .media,
.collage {
  opacity: 0;
  transition: opacity 1.3s cubic-bezier(.2,.6,.2,1), transform 1.3s cubic-bezier(.2,.6,.2,1);
  will-change: opacity, transform;
}
.split:not(.split--reverse) .media,
.collage { transform: translateX(60px); }
.split--reverse .media { transform: translateX(-60px); }

.split:not(.split--reverse) .media.is-visible,
.split--reverse .media.is-visible,
.collage.is-visible {
  opacity: 1;
  transform: translate(0, 0);
}

@media (prefers-reduced-motion: reduce) {
  .split:not(.split--reverse) .media,
  .split--reverse .media,
  .collage {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* ============ Fade-up entrance animation for H1 / H2 ============
 * Every headline on the site (.hero h1, .page-hero h1, every .section__head h2,
 * .split__copy h2, .help__head h2, .fleet__head h2, .trusted h2, .form-card h2,
 * etc.) fades up from 30px on first paint OR when scrolled into view.
 *
 * Hidden state is in CSS so it paints on first render — JS just adds
 * .is-visible via the IntersectionObserver in functions.php (which already
 * fires immediately for above-the-fold elements, so the hero/page-hero h1
 * animates on page load too). Normal speed: 0.7s. */
h1, h2 {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity .7s cubic-bezier(.2,.6,.2,1), transform .7s cubic-bezier(.2,.6,.2,1);
  will-change: opacity, transform;
}
h1.is-visible, h2.is-visible {
  opacity: 1;
  transform: translateY(0);
}
@media (prefers-reduced-motion: reduce) {
  h1, h2 {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* ============ Mobile menu toggle (hidden on desktop) ============ */
.nav__toggle {
  display: none; /* shown via media query below */
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 6px;
  width: 44px;
  height: 44px;
  padding: 10px;
  margin: 0;
  background: transparent;
  border: 0;
  cursor: pointer;
  -webkit-appearance: none;
  appearance: none;
  z-index: 60;
}
.nav__toggle-bar {
  display: block;
  width: 22px;
  height: 2px;
  background: #fff;
  border-radius: 2px;
  transition: transform .25s ease, opacity .2s ease;
  transform-origin: center;
}
/* Hamburger → X when nav--open */
.nav--open .nav__toggle-bar:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.nav--open .nav__toggle-bar:nth-child(2) { opacity: 0; }
.nav--open .nav__toggle-bar:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* ============ Hero ============ */
.hero {
  position: relative;
  min-height: 720px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: #fff;
  overflow: hidden;
  padding: 240px 0 120px;
}
.hero__bg {
  position: absolute; inset: 0;
  background: url("assets/images/img-007.jpg") center/cover no-repeat;
  filter: brightness(0.75) saturate(1);
}
.hero__overlay {
  position: absolute; inset: 0;
  /* Soft top-to-bottom dim — strong enough to keep the headline legible
     without flattening the truck imagery underneath. */
  background:
    linear-gradient(180deg, rgba(15,26,17,0.45) 0%, rgba(15,26,17,0.20) 50%, rgba(15,26,17,0.55) 100%);
}
.hero__content {
  position: relative;
  z-index: 2;
  max-width: 880px;
  padding: 0 32px;
}
.hero h1 {
  color: #fff;
  font-size: 60px;
  font-weight: 900;
  line-height: 1.2;
  letter-spacing: 0;
  margin-bottom: 80px;
}
.hero__sub {
  font-size: 19px;
  font-weight: 500;
  max-width: 640px;
  margin: 0 auto 38px;
  line-height: 1.55;
  color: rgba(255,255,255,0.95);
}
.hero__ctas {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}
.hero__ctas .btn { background: transparent; color: #fff; }
.hero__ctas .btn:hover { background: var(--green); border-color: var(--green); color: #fff; }
.hero__ctas .btn--solid { background: var(--green); }
/* Ghost CTAs keep their green text on the hero (overrides the white default
   inherited from .hero__ctas .btn above). */
.hero__ctas .btn--ghost { color: var(--green); }
.hero__ctas .btn--ghost:hover { color: #fff; }

/* Light section background — subtle wavy off-white texture */
.wavy-bg {
  position: relative;
  background: #f3f7f3 url("assets/images/years-bg.jpg") center/cover no-repeat;
  overflow: hidden;
}
/* Parallax on the Help + Fleet + Contact sections (Years section stays scroll). */
.help.wavy-bg,
.fleet.wavy-bg,
.contact.wavy-bg {
  background-attachment: fixed;
}

/* ============ 20 Years section ============ */
.years {
  padding: 100px 0 110px;
  position: relative;
}
.years__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}
.years h2 {
  font-size: 48px;
  font-weight: 900;
  line-height: 1.08;
  margin-bottom: 28px;
  letter-spacing: 0;
  color: var(--ink);
}
.years p {
  font-size: 16px;
  font-weight: 500;
  line-height: 1.7;
  color: #2b3a2c;
  margin-bottom: 18px;
  max-width: 500px;
}
.years .btn { margin-top: 18px; }

.collage {
  position: relative;
  width: 100%;
  aspect-ratio: 1642 / 1747;
  max-width: 540px;
  margin-left: auto;
}
.collage__img,
.collage__pills {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  pointer-events: none;
}
.collage__pills {
  z-index: 2;
  filter: drop-shadow(0 6px 16px rgba(15, 26, 17, 0.10));
}

/* ============ Dark stats strip ============ */
.stats {
  position: relative;
  color: #fff;
  padding: 90px 0 100px;
  overflow: hidden;
  isolation: isolate;
}
.stats__bg {
  position: absolute;
  inset: 0;
  background-image: url("assets/images/img-008.jpg");
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  background-attachment: fixed;
  z-index: -2;
}
.stats__overlay {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 40% at 15% 20%, rgba(54,175,67,0.10), transparent 60%),
    radial-gradient(ellipse 50% 35% at 90% 80%, rgba(54,175,67,0.06), transparent 60%),
    linear-gradient(180deg, rgba(10,22,16,0.55) 0%, rgba(10,22,16,0.65) 100%);
  z-index: -1;
}
.stats__grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px 56px;
}
.stat {
  display: flex;
  gap: 18px;
  align-items: flex-start;
}
.stat__icon {
  flex-shrink: 0;
  width: 64px; height: 64px;
  display: grid; place-items: center;
  color: #fff;
}
.stat__icon svg { width: 48px; height: 48px; stroke: currentColor; stroke-width: 1.5; fill: none; }
.stat__icon img { width: 56px; height: 56px; object-fit: contain; display: block; }
.stat__title {
  font-size: 22px;
  font-weight: 700;
  font-style: italic;
  color: #fff;
  margin-bottom: 6px;
  letter-spacing: 0;
}
.stat__desc {
  font-size: 13.5px;
  font-weight: 500;
  color: rgba(255,255,255,0.78);
  line-height: 1.5;
  max-width: 260px;
}

/* ============ How We Can Help ============ */
.help {
  padding: 100px 0 110px;
  position: relative;
}
.help__head {
  text-align: center;
  max-width: 760px;
  margin: 0 auto 56px;
}
.help__head h2 {
  font-size: 48px;
  font-weight: 900;
  margin-bottom: 18px;
  letter-spacing: 0;
  color: var(--ink);
}
.help__head p {
  font-size: 16px;
  font-weight: 500;
  color: #2b3a2c;
  line-height: 1.7;
}
.help__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  max-width: 1080px;
  margin: 0 auto;
}
.card {
  background: #fff;
  border-radius: 18px;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  overflow: hidden; /* clips the image's rounded corners to the card edge */
}
.card__img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  display: block;
}
/* Padded wrapper around the text + button — keeps content inset while the
   image above sits flush to the card's left/right edges. */
.card__body {
  padding: 22px 22px 32px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  flex: 1; /* makes the body fill remaining height so the button can stick to the bottom via margin-top:auto */
}
.card h3 {
  font-size: 24px;
  font-weight: 900;
  font-style: italic;
  color: var(--ink);
  margin-bottom: 18px;
  line-height: 1.2;
}
.card p {
  font-size: 16px;
  font-weight: 500;
  color: #2b3a2c;
  line-height: 1.6;
  margin-bottom: 24px;
  max-width: 260px;
}
.card .btn { margin-top: auto; }

/* ============ Comprehensive Fleet Maintenance ============ */
.fleet {
  padding: 80px 0 110px;
  border-top: 1px solid var(--line);
  position: relative;
}
.fleet__head {
  text-align: center;
  max-width: 1080px;
  margin: 0 auto 64px;
}
.fleet__head h2 {
  font-size: 56px;
  font-weight: 900;
  margin-bottom: 22px;
  letter-spacing: 0;
  color: var(--ink);
}
.fleet__head p {
  font-size: 16px;
  font-weight: 500;
  color: #2b3a2c;
  line-height: 1.7;
}
.fleet__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  max-width: 1080px;
  margin: 0 auto;
}
.fleet-cat {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.fleet-cat__icon {
  width: 96px; height: 78px;
  display: grid; place-items: center;
  color: var(--green);
  margin-bottom: 18px;
}
.fleet-cat__icon svg { width: 100%; height: 100%; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.fleet-cat__icon img { width: 100%; height: 100%; object-fit: contain; display: block; }
.fleet-cat h3 {
  font-size: 22px;
  font-weight: 900;
  font-style: italic;
  color: var(--ink);
  margin-bottom: 14px;
  line-height: 1.25;
}
.fleet-cat p {
  font-size: 16px;
  font-weight: 500;
  color: #2b3a2c;
  line-height: 1.55;
  max-width: 200px;
}

/* ============ Trusted Section ============ */
.trusted {
  position: relative;
  color: #fff;
  text-align: center;
  padding: 100px 0 110px;
  overflow: hidden;
  background: #0a1610;
}
.trusted__bg {
  position: absolute; inset: 0;
  background: url("assets/images/img-009.jpg") center/cover no-repeat;
  opacity: 0.85;
}
.trusted__overlay {
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 60% 50% at 50% 30%, rgba(54,175,67,0.10), transparent 60%),
    linear-gradient(180deg, rgba(10,22,16,0.35) 0%, rgba(10,22,16,0.50) 100%);
}
.trusted__content {
  position: relative;
  z-index: 2;
  max-width: 800px;
  margin: 0 auto;
  padding: 0 32px;
}
.trusted__icon {
  margin: 0 auto 22px;
  width: 64px; height: 64px;
  display: grid; place-items: center;
  color: #fff;
}
.trusted__icon svg { width: 100%; height: 100%; fill: none; stroke: currentColor; stroke-width: 1.6; }
.trusted__icon img { width: 100%; height: 100%; object-fit: contain; display: block; }
.trusted h2 {
  color: #fff;
  font-size: 50px;
  font-weight: 900;
  line-height: 1.1;
  margin-bottom: 28px;
  letter-spacing: 0;
}
.trusted h2 em {
  font-style: italic;
  font-weight: 900;
}
.trusted h2 em.trusted__accent {
  color: var(--green);
  display: inline-block;
}
.trusted p {
  font-size: 16px;
  font-weight: 500;
  line-height: 1.65;
  color: rgba(255,255,255,0.92);
  margin: 0 auto 36px;
  max-width: 720px;
}
.trusted .btn {
  background: transparent;
  color: var(--green);
  padding: 3px 55px;
  font-size: 24px;
}
.trusted .btn:hover { background: var(--green); color: #fff; }

/* ============ Contact section ============ */
.contact {
  position: relative;
  padding: 110px 0;
  overflow: hidden;
  /* background comes from .wavy-bg (years-bg.jpg with parallax) */
}
.contact__grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 80px;
  align-items: center;
}
.contact__head h2 {
  font-size: 50px;
  font-weight: 900;
  line-height: 1.08;
  margin-bottom: 8px;
  letter-spacing: 0;
  color: var(--ink);
}
.contact__call {
  font-size: 50px;
  font-weight: 900;
  font-style: italic;
  color: var(--green);
  margin: 14px 0 4px;
  line-height: 1.1;
}
.contact__call span {
  display: block;
  font-style: italic;
  font-weight: 700;
}
.contact__phone {
  font-size: 55px;
  font-weight: 900;
  font-style: italic;
  color: var(--green);
  letter-spacing: 0;
}
.contact__note {
  font-size: 16px;
  font-weight: 500;
  color: #2b3a2c;
  margin-top: 0;
  max-width: 380px;
  line-height: 1.6;
}

.form {
  background: transparent;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}
.form input,
.form textarea {
  font-family: var(--font);
  font-weight: 500;
  font-size: 15px;
  color: var(--ink);
  background: #fff;
  border: none;
  border-radius: 28px;
  padding: 16px 24px;
  outline: none;
  box-shadow: var(--shadow-soft);
  width: 100%;
  transition: box-shadow .15s ease;
}
.form input::placeholder, .form textarea::placeholder { color: rgba(33,50,34,0.5); font-weight: 500; }
.form input:focus, .form textarea:focus { box-shadow: 0 0 0 2px var(--green), var(--shadow-soft); }
.form textarea {
  grid-column: 1 / -1;
  border-radius: 22px;
  min-height: 140px;
  resize: vertical;
  padding-top: 18px;
}
.form__row {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 14px;
  font-weight: 500;
  color: #2b3a2c;
}
.form__row a { color: var(--green); font-weight: 700; }
.form__check {
  width: 18px; height: 18px;
  border: 1.5px solid var(--green);
  border-radius: 50%;
  flex-shrink: 0;
  background: #fff;
}
.form__submit { grid-column: 1 / -1; margin-top: 4px; }
.form__submit .btn { padding: 12px 38px; font-size: 14px; }

/* ============ Gravity Forms — pill-style override for the contact form ============ */
/* GF emits .gform_wrapper > form > .gform_body > .gform_fields > .gfield (div)
   plus .gform_footer for the submit. Consent is a <fieldset> with <legend>. */

.contact .lws-gf-wrap .gform_wrapper { margin: 0; }
.contact .lws-gf-wrap form { margin: 0; }
.contact .lws-gf-wrap .gform-body,
.contact .lws-gf-wrap .gform_body { display: block; }
.contact .lws-gf-wrap .gform_required_legend { display: none; }

.contact .lws-gf-wrap .gform_fields {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  list-style: none;
  padding: 0;
  margin: 0;
}

.contact .lws-gf-wrap .gfield {
  margin: 0;
  padding: 0;
  border: 0;
  min-width: 0; /* let grid items shrink */
}

/* Explicit column placement via classes we set on the GF form spec */
.contact .lws-gf-wrap .gfield.lws-col-1     { grid-column: 1; }
.contact .lws-gf-wrap .gfield.lws-col-2     { grid-column: 2; }
.contact .lws-gf-wrap .gfield.lws-col-full  { grid-column: 1 / -1; }

/* Hide field labels visually (kept in DOM for screen readers). Include
   <legend> for the consent fieldset since legends ignore some hiding rules. */
.contact .lws-gf-wrap .gfield_label,
.contact .lws-gf-wrap legend.gfield_label,
.contact .lws-gf-wrap .gform-field-label:not(.gfield_consent_label),
.contact .lws-gf-wrap .gfield_description:not(.validation_message) {
  position: absolute !important;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.contact .lws-gf-wrap .ginput_container { width: 100%; }

/* Pill inputs */
.contact .lws-gf-wrap input[type="text"],
.contact .lws-gf-wrap input[type="email"],
.contact .lws-gf-wrap input[type="tel"],
.contact .lws-gf-wrap input[type="url"],
.contact .lws-gf-wrap input[type="number"],
.contact .lws-gf-wrap textarea {
  font-family: var(--font);
  font-weight: 500;
  font-size: 15px;
  color: var(--ink);
  background: #fff;
  border: none;
  border-radius: 28px;
  padding: 16px 24px;
  outline: none;
  box-shadow: var(--shadow-soft);
  width: 100%;
  transition: box-shadow .15s ease;
}
.contact .lws-gf-wrap input::placeholder,
.contact .lws-gf-wrap textarea::placeholder { color: rgba(33,50,34,0.5); font-weight: 500; }
.contact .lws-gf-wrap input:focus,
.contact .lws-gf-wrap textarea:focus { box-shadow: 0 0 0 2px var(--green), var(--shadow-soft); }
.contact .lws-gf-wrap textarea {
  border-radius: 22px;
  min-height: 140px;
  resize: vertical;
  padding-top: 18px;
}

/* Consent fieldset — drop the default browser border and legend space */
.contact .lws-gf-wrap fieldset.gfield {
  border: 0;
  padding: 0;
  margin: 0;
  min-width: 0;
}
.contact .lws-gf-wrap .gfield--type-consent .ginput_container_consent {
  display: flex;
  align-items: center;
  gap: 12px;
}
.contact .lws-gf-wrap .gfield--type-consent input[type="checkbox"] {
  appearance: none;
  -webkit-appearance: none;
  width: 18px;
  height: 18px;
  border: 1.5px solid var(--green);
  border-radius: 50%;
  background: #fff;
  cursor: pointer;
  flex-shrink: 0;
  margin: 0;
  padding: 0;
  position: relative;
}
.contact .lws-gf-wrap .gfield--type-consent input[type="checkbox"]:checked {
  background: var(--green);
  border-color: var(--green);
}
.contact .lws-gf-wrap .gfield--type-consent input[type="checkbox"]:checked::after {
  content: '';
  position: absolute;
  inset: 4px;
  border-radius: 50%;
  background: #fff;
}
.contact .lws-gf-wrap .gfield_consent_label {
  position: static !important;
  width: auto; height: auto;
  margin: 0; padding: 0;
  overflow: visible;
  clip: auto;
  white-space: normal;
  font-size: 14px;
  font-weight: 500;
  color: #2b3a2c;
  cursor: pointer;
  line-height: 1.4;
}
.contact .lws-gf-wrap .gfield_consent_label a { color: var(--green); font-weight: 700; }

/* Submit row — pill ghost button, left-aligned, not full width */
.contact .lws-gf-wrap .gform_footer,
.contact .lws-gf-wrap .gform-footer {
  margin: 18px 0 0;
  padding: 0;
  display: block;
  text-align: left;
}
/* Ghost-style GF submit: transparent + green text/border by default,
   fills with brand green on hover. */
.contact .lws-gf-wrap .gform_button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: auto;
  padding: 3px 42px;
  border-radius: var(--radius-pill);
  font-family: var(--font);
  font-weight: 700;
  font-size: 15px;
  letter-spacing: 0;
  cursor: pointer;
  border: 2px solid var(--green);
  background: transparent;
  color: var(--green);
  transition: transform .15s ease, background .15s ease, color .15s ease, box-shadow .15s ease;
  white-space: nowrap;
  -webkit-appearance: none;
  appearance: none;
}
.contact .lws-gf-wrap .gform_button:hover {
  background: var(--green);
  color: #fff;
  transform: translateY(-1px);
}

/* Validation + confirmation states */
.contact .lws-gf-wrap .gfield_validation_message,
.contact .lws-gf-wrap .validation_message {
  font-size: 13px;
  color: #b94a48;
  margin-top: 6px;
  padding-left: 24px;
}
.contact .lws-gf-wrap .gform_validation_errors {
  background: #fff;
  border: 1px solid #b94a48;
  border-radius: 12px;
  padding: 12px 18px;
  color: #b94a48;
  margin-bottom: 18px;
}
.contact .lws-gf-wrap .gform_confirmation_message {
  background: #fff;
  border-radius: 22px;
  padding: 22px 28px;
  box-shadow: var(--shadow-soft);
  font-size: 15px;
  color: var(--ink);
}

@media (max-width: 720px) {
  .contact .lws-gf-wrap .gform_fields { grid-template-columns: 1fr; }
  .contact .lws-gf-wrap .gfield.lws-col-1,
  .contact .lws-gf-wrap .gfield.lws-col-2,
  .contact .lws-gf-wrap .gfield.lws-col-full { grid-column: 1; }
}

/* ============ Footer ============ */
.footer {
  background: url("assets/images/img-009.jpg") center/cover no-repeat;
  color: rgba(255,255,255,0.85);
  padding: 70px 0 0;
  position: relative;
  overflow: hidden;
  font-size: 16px;
}
.footer__grid {
  position: relative;
  display: grid;
  grid-template-columns: 1.4fr 1.3fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 50px;
}
.footer__brand-logo {
  width: 207px;
  height: auto;
  margin-bottom: 18px;
  display: block;
}
.footer__brand p {
  font-size: 16px;
  line-height: 1.6;
  max-width: 250px;
  color: #fff;
  font-weight: 500;
}
.footer__contact {
  display: flex; flex-direction: column;
  gap: 14px;
  padding-top: 4px;
}
.footer__contact-item {
  display: flex; align-items: flex-start; gap: 12px;
  color: rgba(255,255,255,0.92);
  font-weight: 500;
}
.footer__contact-item svg {
  flex-shrink: 0;
  width: 32px; height: 32px;
  padding: 7px;
  background: var(--green);
  border-radius: 50%;
  stroke: #0c202d;
  fill: none;
  stroke-width: 2;
  box-sizing: border-box;
  margin-top: 1px;
}
.footer__social {
  display: flex; gap: 12px; margin-top: 10px;
}
.footer__social a {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: var(--green);
  border: none;
  display: grid; place-items: center;
  color: #0c202d;
}
.footer__social a svg { width: 22px; height: 22px; fill: currentColor; }

.footer__col {
  border-left: 2px solid var(--green);
  padding-left: 22px;
  align-self: start; /* shrink to content height so the border doesn't stretch past the last link */
}
.footer__col h4 {
  color: var(--green);
  font-size: 16px;
  font-weight: 900;
  margin-bottom: 16px;
  letter-spacing: 0;
}
.footer__col ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; }
.footer__col a {
  color: #fff;
  font-weight: 700;
  font-size: 16px;
  transition: color .15s ease;
}
.footer__col a:hover { color: var(--green); }

.footer__bottom {
  position: relative;
  padding: 15px 0 15px;
  background: #213222;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  flex-wrap: wrap;
  font-size: 16px;
  color: rgba(255,255,255,0.70);
  font-weight: 500;
}
.footer__bottom .sep {
  width: 1px; height: 14px;
  background: rgba(255,255,255,0.25);
}

/* ============ Responsive (modest) ============ */
@media (max-width: 1080px) {
  .nav__links { gap: 24px; }
  .hero h1 { font-size: 48px; }
  .years__grid, .contact__grid { grid-template-columns: 1fr; gap: 48px; }
  .collage { margin: 0 auto; }
  .stats__grid { grid-template-columns: repeat(2, 1fr); }
  .help__grid { grid-template-columns: 1fr 1fr; }
  .fleet__grid { grid-template-columns: 1fr 1fr; gap: 40px; }
  .footer__grid { grid-template-columns: 1fr 1fr; gap: 36px; }
}
/* ============ Mobile menu — slide-down panel at ≤960px ============ */
@media (max-width: 960px) {
  .nav__toggle { display: inline-flex; }
  .nav__links {
    position: absolute;
    top: 100%;
    left: 0; right: 0;
    flex-direction: column;
    gap: 0;
    padding: 16px 32px 24px;
    background: rgba(10, 22, 16, 0.96);
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    /* Hidden by default; revealed when .nav has nav--open */
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    pointer-events: none;
    transition: max-height .35s ease, opacity .25s ease;
  }
  .nav--open .nav__links {
    max-height: 80vh;
    opacity: 1;
    pointer-events: auto;
    overflow-y: auto;
  }
  .nav__links .nav__link,
  .nav__links .nav__cta {
    width: 100%;
    text-align: center;
    padding: 14px 0;
    font-size: 18px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  }
  .nav__links .nav__cta {
    margin-top: 12px;
    border-radius: var(--radius-pill);
    border: 2px solid var(--green);
    padding: 12px 14px;
  }
  .nav__links .nav__cta:hover { transform: none; }
}

@media (max-width: 720px) {
  .hero { min-height: 580px; padding: 130px 0 90px; }
  .hero h1 { font-size: 36px; margin-bottom: 30px; }
  /* 20 Years section — tighter padding + centered text block. */
  .years { padding: 50px 0; }
  .years__grid > div:first-child { text-align: center; }
  .years p { margin-left: auto; margin-right: auto; }
  /* How We Can Help — tighter padding on phones. */
  .help { padding: 50px 0; }
  /* Comprehensive Fleet Maintenance — tighter padding on phones. */
  .fleet { padding: 50px 0; }
  /* Trusted Across the North West — tighter padding on phones. */
  .trusted { padding: 50px 0; }
  /* Contact section — tighter padding + centered contact head on phones. */
  .contact { padding: 50px 0; }
  .contact__head { text-align: center; }
  .contact__note { margin-left: auto; margin-right: auto; }
  /* Stats strip — tighter padding on phones. */
  .stats { padding: 50px 0; }
  /* GF submit (homepage .contact only) — center on phones. */
  .contact .lws-gf-wrap .gform_footer,
  .contact .lws-gf-wrap .gform-footer { text-align: center; }
  /* Tick list — stack the green tick circle above the text on phones, with
     each li centered within its grid track and contents centered. */
  .ticks { justify-items: center; gap: 18px; }
  .ticks li {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    text-align: center;
    justify-self: center;
    margin: 0 auto;
    width: 100%;
    max-width: 280px;
    font-weight: 700;
  }
  .ticks li::before {
    margin: 0 auto; /* override the base 1px top margin so the circle sits flush at the top */
  }
  .hero__sub { font-size: 16px; }
  .years h2, .help__head h2, .fleet__head h2, .trusted h2, .contact__head h2 { font-size: 34px; }
  .help__grid { grid-template-columns: 1fr; }
  .fleet__grid { grid-template-columns: 1fr; }
  .stats__grid { grid-template-columns: 1fr; gap: 24px; }
  .form { grid-template-columns: 1fr; }
  .contact__call, .contact__phone { font-size: 34px; }
  .footer__grid { grid-template-columns: 1fr; }
}

/* ===========================================================================
 * About page styles
 * Used by page-templates/template-about.php. Adds page-hero, generic content
 * sections, feature grid, accreditation chips, tick list, vehicle chips and
 * the CTA banner. Reuses the shared .nav/.footer/.btn/.container from above.
 * =========================================================================== */

.page-hero {
  position: relative;
  min-height: 460px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: #fff;
  overflow: hidden;
  padding: 170px 0 90px;
}
.page-hero__bg {
  position: absolute; inset: 0;
  background: linear-gradient(135deg, #1a2a1c 0%, #213222 55%, #2a4630 100%);
}
.page-hero__bg::after {
  content:'';
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 50% 50% at 20% 30%, rgba(54,175,67,0.18), transparent 60%),
    radial-gradient(ellipse 60% 40% at 80% 80%, rgba(54,175,67,0.10), transparent 60%);
}
.page-hero__overlay { position: absolute; inset: 0; background: rgba(15,26,17,0.20); }
.page-hero__content { position: relative; z-index: 2; max-width: 880px; padding: 0 32px; }
.page-hero__eyebrow {
  display: inline-block;
  font-size: 12px;
  letter-spacing: 0.22em;
  font-weight: 700;
  color: var(--green);
  margin-bottom: 16px;
  text-transform: uppercase;
}
.page-hero h1 {
  color: #fff;
  font-size: 56px;
  font-weight: 900;
  line-height: 1.05;
  letter-spacing: 0;
  margin-bottom: 22px;
}
.page-hero__sub {
  font-size: 18px;
  font-weight: 500;
  max-width: 680px;
  margin: 0 auto;
  line-height: 1.55;
  color: rgba(255,255,255,0.92);
}

/* ============ Generic content section ============ */
.section {
  padding: 100px 0;
  position: relative;
}
.section--tight { padding: 80px 0; }
.section--alt { background: #f5f8f5; }
.section--dark { background: #0e1a13; color: #fff; }
.section--dark h2,
.section--dark .section__head h2 { color: #fff; }

.section__head {
  max-width: 760px;
  margin: 0 auto 56px;
  text-align: center;
}
.section__head--left {
  margin: 0 0 40px;
  text-align: left;
}
.section__head h2 {
  font-size: 44px;
  font-weight: 900;
  letter-spacing: 0;
  margin-bottom: 18px;
  color: var(--ink);
}
.section__head p {
  font-size: 16px;
  font-weight: 500;
  color: #2b3a2c;
  line-height: 1.7;
}
.section--dark .section__head p { color: rgba(255,255,255,0.85); }

/* ============ Feature grid (icon + title + body) ============ */
.features {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px 36px;
  max-width: 1080px;
  margin: 0 auto;
}
.feature {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.feature__icon {
  width: 64px; height: 64px;
  border-radius: 50%;
  background: rgba(54,175,67,0.12);
  display: grid; place-items: center;
  color: var(--green);
  margin-bottom: 18px;
  transition: transform .25s ease, background .25s ease;
}
.feature:hover .feature__icon {
  transform: scale(1.15);
  background: rgba(54,175,67,0.22);
}
.feature__icon svg { width: 30px; height: 30px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.feature__icon img { width: 30px; height: 30px; object-fit: contain; display: block; }
.feature h3 {
  font-size: 16px;
  font-weight: 900;
  color: var(--ink);
  margin-bottom: 10px;
  line-height: 1.25;
  letter-spacing: 0;
}
.feature p {
  font-size: 16px;
  font-weight: 500;
  color: #3a4c3b;
  line-height: 1.6;
  max-width: 220px;
}

/* ============ Two-column story (image + copy) ============ */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 72px;
  align-items: center;
}
.split--reverse > :first-child { order: 2; }
.split__copy h2 {
  font-size: 44px;
  font-weight: 900;
  margin-bottom: 24px;
  letter-spacing: 0;
  color: var(--ink);
}
.split__copy p {
  font-size: 16px;
  font-weight: 500;
  line-height: 1.7;
  color: #2b3a2c;
  margin-bottom: 18px;
  max-width: 520px;
}
.split__copy .btn { margin-top: 14px; }

.media {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 5;
  max-width: 480px;
  background: linear-gradient(135deg, #e8efe8 0%, #d5e3d5 100%);
  border-radius: 18px;
  overflow: hidden;
  box-shadow: var(--shadow);
  display: grid;
  place-items: center;
  color: rgba(33,50,34,0.45);
}
.media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.media--landscape { aspect-ratio: 4 / 3; }
.media--portrait { aspect-ratio: 3 / 4; }
.media--square { aspect-ratio: 1 / 1; max-width: 360px; }
.media__placeholder {
  display: flex; flex-direction: column; align-items: center; gap: 10px;
  font-size: 13px; font-weight: 700; letter-spacing: 0; text-transform: uppercase;
}
.media__placeholder svg { width: 56px; height: 56px; stroke: currentColor; stroke-width: 1.4; fill: none; }
.media__hint {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0;
  text-transform: none;
  text-align: center;
  max-width: 220px;
  margin-top: 4px;
}

/* ============ Tick list ============ */
.ticks {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 14px;
}
.ticks--cols-2 { grid-template-columns: repeat(2, 1fr); gap: 14px 36px; }
.ticks li {
  display: flex; gap: 14px; align-items: flex-start;
  font-size: 15.5px; font-weight: 500;
  color: #2b3a2c; line-height: 1.55;
}
.ticks li strong { font-weight: 700; color: var(--ink); }
.ticks li::before {
  content: '';
  flex-shrink: 0;
  width: 24px; height: 24px;
  border-radius: 50%;
  background: var(--green) url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'><polyline points='5 12.5 10 17 19 7'/></svg>") center/14px no-repeat;
  margin-top: 1px;
}
.section--dark .ticks li { color: rgba(255,255,255,0.92); }
.section--dark .ticks li strong { color: #fff; }

/* ============ Accreditations strip ============ */
.accred {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
  max-width: 1080px;
  margin: 0 auto;
}
.accred__chip {
  background: #fff;
  border-radius: 14px;
  box-shadow: var(--shadow-soft);
  padding: 26px 22px;
  display: flex; flex-direction: column; align-items: center; text-align: center;
  gap: 14px;
  transition: transform .25s ease, box-shadow .25s ease;
}
.accred__chip:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow);
}
.accred__badge {
  width: 64px; height: 64px;
  border-radius: 50%;
  background: rgba(54,175,67,0.10);
  display: grid; place-items: center;
  color: var(--green);
}
.accred__badge svg { width: 30px; height: 30px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.accred__badge img { width: 30px; height: 30px; object-fit: contain; display: block; }
.accred__title {
  font-weight: 700; font-size: 15px;
  color: var(--ink);
}
.accred__desc { font-size: 13px; color: #3a4c3b; font-weight: 500; line-height: 1.5; }

/* ============ Vehicle chips ============ */
.chips {
  display: flex; flex-wrap: wrap; gap: 12px;
  max-width: 1080px; margin: 0 auto;
}
.chip {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 12px 22px;
  border-radius: var(--radius-pill);
  background: #fff;
  border: 1.5px solid var(--green);
  color: var(--ink);
  font-weight: 700;
  font-size: 14.5px;
}
.chip svg { width: 18px; height: 18px; color: var(--green); fill: none; stroke: currentColor; stroke-width: 2; }

/* ============ Steps grid (Vehicle Hire — How to Hire) ============ */
.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px;
  max-width: 1080px;
  margin: 0 auto;
}
.step {
  position: relative;
  background: #fff;
  border-radius: 18px;
  padding: 32px 26px 30px;
  box-shadow: var(--shadow-soft);
  text-align: left;
  transition: transform .25s ease, box-shadow .25s ease;
}
.step:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow);
}
.step__num {
  display: inline-grid; place-items: center;
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--green);
  color: #fff;
  font-weight: 700;
  font-size: 18px;
  font-style: italic;
  margin-bottom: 18px;
}
.step h3 {
  font-size: 17px;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 8px;
  line-height: 1.3;
  letter-spacing: 0;
}
.step p {
  font-size: 14px;
  font-weight: 500;
  color: #3a4c3b;
  line-height: 1.6;
}
@media (max-width: 1080px) {
  .steps { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 720px) {
  .steps { grid-template-columns: 1fr; }
  /* Vehicle Hire "04 How to Hire" — center the step contents on phones.
     The num circle is inline-grid so it picks up text-align centering; h3/p
     inherit it. Keeps the desktop left-aligned look untouched. */
  .step { text-align: center; }
}

/* ============ CTA banner ============ */
.cta-banner {
  background: linear-gradient(135deg, #1a2a1c 0%, #213222 60%, #2a4630 100%);
  color: #fff;
  padding: 60px 0;
  text-align: center;
}
.cta-banner__inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 36px;
  flex-wrap: wrap;
}
.cta-banner h3 {
  color: #fff;
  font-weight: 900;
  font-size: 28px;
  letter-spacing: 0;
  margin: 0;
}

/* ============ About page responsive ============ */
@media (max-width: 1080px) {
  .features { grid-template-columns: repeat(2, 1fr); }
  .accred   { grid-template-columns: repeat(2, 1fr); }
  .split    { grid-template-columns: 1fr; gap: 48px; }
  /* When stacked, always show the image first regardless of markup order
     (.split has <copy><media>, .split--reverse has <media><copy>). */
  .split .media       { order: 0; }
  .split .split__copy { order: 1; }
  .split--reverse > :first-child { order: 0; } /* cancel the desktop reverse-flip */
  .media    { margin: 0 auto; }
  /* Center copy in service-row / story-row splits when stacked. */
  .split__copy { text-align: center; }
  .split__copy p { margin-left: auto; margin-right: auto; }
}
@media (max-width: 720px) {
  .page-hero h1 { font-size: 36px; }
  .features { grid-template-columns: 1fr 1fr; }
  .ticks--cols-2 { grid-template-columns: 1fr; }
  /* Vehicles chip strip — stack each chip on its own row on mobile,
     all the same width so they form a tidy column. */
  .chips { flex-direction: column; align-items: center; }
  .chips .chip { width: 240px; justify-content: center; }
}

/* About — Team photos grid. 4 cols desktop, 2 on tablet, 1 on phone. */
.team-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  max-width: 1080px;
  margin: 0 auto;
}
@media (max-width: 1080px) {
  .team-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 720px) {
  .team-grid { grid-template-columns: 1fr; max-width: 360px; }
}

/* About — Vehicles & Makes 2-column wrapper. Stacks to 1 column on phones. */
.vehicles-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  max-width: 1080px;
  margin: 0 auto;
}
@media (max-width: 720px) {
  .vehicles-grid {
    grid-template-columns: 1fr;
    gap: 40px;
    text-align: center;
  }
  /* Tick list — center each row's tick+text group (li is display:flex) */
  .vehicles-grid .ticks li { justify-content: center; align-items: center; }
  /* Footer columns — drop the green left border on phones. */
  .footer__col { border-left: 0; padding-left: 0; }
  /* h3 column titles use inline styles without text-align, so this wins */
  .vehicles-grid h3 { text-align: center; }
  /* The optional note paragraphs below each column */
  .vehicles-grid p { text-align: center; }
}

/* ============ Mobile section padding + heading sizes ============
 * Placed at the end of the file so these rules beat the base declarations
 * that come later in source order than the earlier @media blocks. */
@media (max-width: 720px) {
  .section, .section--tight { padding: 50px 0; }
  /* Shrink every section heading on phones — catches the homepage section
     heads (years/help/fleet/trusted/contact), About sections (section__head,
     split__copy), and Services rows (split__copy in service items). */
  .years h2,
  .help__head h2,
  .fleet__head h2,
  .trusted h2,
  .contact__head h2,
  .section__head h2,
  .split__copy h2 {
    font-size: 30px;
  }
}

/* ============ Contact Us page ============
 * Layout-only — base typography / colours come from the shared chrome above.
 * Two-column grid: contact-info cards on the left, enquiry form on the right.
 * Stacks below 1080px.
 */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 64px;
  align-items: start;
}
.contact-info {
  display: flex;
  flex-direction: column;
  gap: 28px;
}
.contact-card {
  background: #fff;
  border-radius: 16px;
  box-shadow: var(--shadow-soft);
  padding: 24px 24px;
  display: flex;
  gap: 18px;
  align-items: flex-start;
}
.contact-card__icon {
  flex-shrink: 0;
  width: 48px; height: 48px;
  border-radius: 50%;
  background: rgba(54, 175, 67, 0.12);
  display: grid; place-items: center;
  color: var(--green);
}
.contact-card__icon svg {
  width: 22px; height: 22px;
  fill: none; stroke: currentColor;
  stroke-width: 2; stroke-linecap: round; stroke-linejoin: round;
}
.contact-card__label {
  font-size: 12px;
  font-weight: 700;
  color: var(--green);
  text-transform: uppercase;
  letter-spacing: 0.16em;
  margin-bottom: 6px;
}
.contact-card__value {
  font-size: 17px;
  font-weight: 700;
  color: var(--ink);
  line-height: 1.4;
}
.contact-card__value a { color: var(--ink); }
.contact-card__value a:hover { color: var(--green); }
.contact-card__meta {
  font-size: 13px;
  font-weight: 500;
  color: #4b5d4c;
  margin-top: 6px;
  line-height: 1.5;
}

/* QR block (optional per card — rendered when contactus_card.qr_image is set).
   Matches the reference: small green caps label, then the QR image stacked
   below at ~180px square. */
.contact-card__qr {
  margin-top: 14px;
}
.contact-card__qr-label {
  font-size: 12px;
  font-weight: 700;
  color: var(--green);
  text-transform: uppercase;
  letter-spacing: 0.16em;
  margin-bottom: 10px;
}
.contact-card__qr-img {
  display: block;
  width: 180px;
  height: 180px;
  max-width: 100%;
  background: #fff;
  border-radius: 8px;
  padding: 6px;
  box-shadow: 0 2px 10px rgba(15, 26, 17, 0.06);
}

/* Enquiry form card (right column) */
.form-card {
  background: #fff;
  border-radius: 20px;
  padding: 36px;
  box-shadow: var(--shadow);
}
.form-card h2 {
  font-size: 28px;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--ink);
  letter-spacing: -0.01em;
}
.form-card > p {
  font-size: 14.5px;
  color: #3a4c3b;
  margin-bottom: 26px;
  font-weight: 500;
}

/* Custom form-grid is used for the standalone preview; the Gravity Form
   inserted at runtime gets the same look via .lws-gf-wrap rules below. */
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.form-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.form-field--full { grid-column: 1 / -1; }
.form-field label {
  font-size: 13px;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: 0.005em;
}
.form-field label .req { color: var(--green); margin-left: 2px; }
.form-field input,
.form-field select,
.form-field textarea {
  font-family: var(--font);
  font-weight: 500;
  font-size: 15px;
  color: var(--ink);
  background: #f3f7f3;
  border: 1.5px solid transparent;
  border-radius: 10px;
  padding: 12px 16px;
  outline: none;
  transition: border-color .15s ease, background .15s ease;
  width: 100%;
}
.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  border-color: var(--green);
  background: #fff;
}
.form-field textarea { min-height: 140px; resize: vertical; }
.form-field select {
  appearance: none;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23213222' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><polyline points='6 9 12 15 18 9'/></svg>");
  background-repeat: no-repeat;
  background-position: right 14px center;
  background-size: 18px;
  padding-right: 44px;
}
.form-submit {
  grid-column: 1 / -1;
  margin-top: 8px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
}
.form-consent {
  font-size: 13px;
  color: #4b5d4c;
  font-weight: 500;
  max-width: 320px;
  line-height: 1.5;
}
.form-consent a { color: var(--green); font-weight: 700; }

/* Apply the same flat / pill form look to a Gravity Form rendered inside
   .form-card. GF 2.5+ uses <div class="gfield gfield--type-X gfield--width-Y">
   wrappers in a flex/grid parent. We disable GF-bundled CSS in functions.php
   (gform_disable_css) and provide our own scoped rules here. */
.form-card .lws-gf-wrap .gform_wrapper { margin: 0; }
.form-card .lws-gf-wrap .gform_body { margin: 0; }
.form-card .lws-gf-wrap .gform_fields {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  list-style: none;
  padding: 0;
  margin: 0;
}
.form-card .lws-gf-wrap .gfield {
  margin: 0 !important;
  padding: 0 !important;
  border: 0;
  min-width: 0;
}
/* Half-width = 1 grid col (default). Full-width + textareas + consent +
   footer span both cols. */
.form-card .lws-gf-wrap .gfield--width-half { grid-column: span 1; }
.form-card .lws-gf-wrap .gfield--width-full,
.form-card .lws-gf-wrap .gfield.gfield--type-textarea,
.form-card .lws-gf-wrap .gfield.gfield--type-consent,
.form-card .lws-gf-wrap .gform-footer,
.form-card .lws-gf-wrap .gform_footer { grid-column: 1 / -1; }

.form-card .lws-gf-wrap .gfield_label,
.form-card .lws-gf-wrap legend.gfield_label {
  display: block;
  font-size: 13px;
  font-weight: 700;
  color: var(--ink);
  margin: 0 0 6px;
  padding: 0;
  letter-spacing: 0.005em;
  line-height: 1.3;
}
/* Required marker — modern GF emits <span class="gfield_required_asterisk">*</span>
   already, so we just colour it green. Older GF versions used the text
   "(Required)" inside .gfield_required_text — hide that variant if it appears
   so we don't end up with both a star and parenthesised text. */
.form-card .lws-gf-wrap .gfield_required {
  display: inline-block;
  margin-left: 2px;
  font-weight: 700;
  color: var(--green);
}
.form-card .lws-gf-wrap .gfield_required_asterisk { color: var(--green); }
.form-card .lws-gf-wrap .gfield_required_text {
  position: absolute;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.form-card .lws-gf-wrap input[type="text"],
.form-card .lws-gf-wrap input[type="email"],
.form-card .lws-gf-wrap input[type="tel"],
.form-card .lws-gf-wrap input[type="number"],
.form-card .lws-gf-wrap input[type="url"],
.form-card .lws-gf-wrap select,
.form-card .lws-gf-wrap .gfield_select,
.form-card .lws-gf-wrap textarea,
.form-card .lws-gf-wrap textarea.textarea {
  font-family: var(--font);
  font-weight: 500;
  font-size: 15px;
  color: var(--ink);
  background: #f3f7f3;
  border: 1.5px solid transparent;
  border-radius: 10px;
  padding: 12px 16px;
  outline: none;
  transition: border-color .15s ease, background .15s ease;
  width: 100%;
  box-shadow: none;
  line-height: 1.4;
  max-width: 100%;
  display: block;
}
.form-card .lws-gf-wrap input:focus,
.form-card .lws-gf-wrap select:focus,
.form-card .lws-gf-wrap textarea:focus {
  border-color: var(--green);
  background: #fff;
}
.form-card .lws-gf-wrap textarea,
.form-card .lws-gf-wrap textarea.textarea { min-height: 140px; resize: vertical; }
.form-card .lws-gf-wrap select,
.form-card .lws-gf-wrap .gfield_select {
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23213222' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><polyline points='6 9 12 15 18 9'/></svg>");
  background-repeat: no-repeat;
  background-position: right 14px center;
  background-size: 18px;
  padding-right: 44px;
}

/* Consent — checkbox + inline label */
.form-card .lws-gf-wrap .gfield--type-consent,
.form-card .lws-gf-wrap fieldset.gfield--type-consent {
  margin: 0;
  padding: 0;
  border: 0;
}
.form-card .lws-gf-wrap .gfield--type-consent legend.gfield_label {
  position: absolute;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}
.form-card .lws-gf-wrap .ginput_container_consent {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 13px;
  color: #4b5d4c;
  font-weight: 500;
  line-height: 1.5;
}
.form-card .lws-gf-wrap .ginput_container_consent input[type="checkbox"] {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  margin: 2px 0 0;
  accent-color: var(--green);
  cursor: pointer;
}
.form-card .lws-gf-wrap .gfield_consent_label,
.form-card .lws-gf-wrap .gform-field-label--type-inline {
  font-size: 13px;
  font-weight: 500;
  color: #4b5d4c;
  line-height: 1.5;
  cursor: pointer;
}
.form-card .lws-gf-wrap .gfield_consent_label a,
.form-card .lws-gf-wrap .ginput_container_consent a { color: var(--green); font-weight: 700; }

/* Submit button — pill style matching site .btn. The footer hosts our
   .form-submit wrapper (injected via the gform_submit_button_2 filter in
   functions.php), which provides the consent-text-left / button-right
   layout — so the footer itself just acts as a block container. */
.form-card .lws-gf-wrap .gform-footer,
.form-card .lws-gf-wrap .gform_footer {
  margin: 12px 0 0;
  padding: 0;
  display: block !important;
  text-align: left;
}
/* Force the consent-text + Send-Enquiry-button row to lay out side-by-side.
   - flex-wrap: nowrap so the button never drops to a new line on desktop
   - .form-consent flex: 1 1 auto + min-width: 0 so its text wraps as needed
     instead of pushing the row taller than the card
   - .gform_button flex-shrink: 0 so the button keeps its natural size */
.form-card .lws-gf-wrap .form-submit {
  display: flex !important;
  flex-direction: row !important;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: nowrap;
  width: 100%;
}
.form-card .lws-gf-wrap .form-submit .form-consent {
  font-size: 13px;
  color: #4b5d4c;
  font-weight: 500;
  max-width: 380px;
  line-height: 1.5;
  flex: 1 1 auto;
  min-width: 0;
  margin: 0;
}
.form-card .lws-gf-wrap .form-submit .form-consent a {
  color: var(--green);
  font-weight: 700;
}
.form-card .lws-gf-wrap .form-submit .gform_button,
.form-card .lws-gf-wrap .form-submit input[type="submit"].gform_button {
  flex: 0 0 auto;
  flex-shrink: 0;
  width: auto;
  margin: 0;
}
.form-card .lws-gf-wrap .gform_button,
.form-card .lws-gf-wrap input[type="submit"].gform_button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 32px;
  border-radius: var(--radius-pill);
  font-family: var(--font);
  font-weight: 700;
  font-size: 15px;
  letter-spacing: 0.01em;
  cursor: pointer;
  border: 2px solid var(--green);
  background: var(--green);
  color: #fff;
  transition: transform .15s ease, background .15s ease, box-shadow .15s ease;
  text-shadow: none;
  -webkit-appearance: none;
  appearance: none;
}
.form-card .lws-gf-wrap .gform_button:hover,
.form-card .lws-gf-wrap input[type="submit"].gform_button:hover {
  background: var(--green-dark);
  border-color: var(--green-dark);
  transform: translateY(-1px);
}

/* Validation messages — keep them readable without GF's stylesheet */
.form-card .lws-gf-wrap .gfield_validation_message,
.form-card .lws-gf-wrap .validation_message {
  color: #c0392b;
  font-size: 13px;
  font-weight: 500;
  margin-top: 6px;
}
.form-card .lws-gf-wrap .gform_validation_errors {
  background: #fdecea;
  color: #6e2a23;
  border-radius: 10px;
  padding: 12px 16px;
  margin: 0 0 16px;
  font-size: 14px;
  border: 1px solid rgba(192, 57, 43, 0.18);
}
.form-card .lws-gf-wrap .gform_validation_errors h2 {
  font-size: 15px;
  margin: 0 0 6px;
  color: #6e2a23;
}
.form-card .lws-gf-wrap .gform_confirmation_message {
  background: #eaf6ec;
  color: #1f5a25;
  border-radius: 10px;
  padding: 16px 18px;
  font-size: 14.5px;
  font-weight: 500;
  border: 1px solid rgba(54, 175, 67, 0.25);
}

/* Company info strip — 3 mini cards (label + value). */
.company-info-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  max-width: 880px;
  margin: 0 auto;
}
.company-info-card {
  background: #fff;
  border-radius: 14px;
  padding: 22px 24px;
  box-shadow: var(--shadow-soft);
  text-align: center;
}
.company-info-card__label {
  font-size: 12px;
  font-weight: 700;
  color: var(--green);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  margin-bottom: 8px;
}
.company-info-card__value {
  font-weight: 700;
  font-size: 15px;
  color: var(--ink);
  line-height: 1.4;
}

@media (max-width: 1080px) {
  .contact-grid { grid-template-columns: 1fr; gap: 48px; }
}
@media (max-width: 720px) {
  .form-grid { grid-template-columns: 1fr; }
  .form-card { padding: 26px 22px; }
  .form-card .lws-gf-wrap .gform_fields { grid-template-columns: 1fr; }
  .company-info-grid { grid-template-columns: 1fr; max-width: 360px; gap: 16px; }
}
