/**
 * E&S Solutions — main stylesheet
 * Built on Bootstrap 5.3. Bootstrap handles the grid, spacing utilities,
 * accordion, alerts and forms; this file holds the brand layer only.
 *
 * Brand
 *   Blue   Pantone 648 C  → #07244C (taken from logo artwork)
 *   Beige  Pantone 7499 C → #EEDEA4 (taken from logo artwork)
 *   White  #FFFFFF
 *   Green  #2F6B4F / #E2EDE4 (sustainability accent only)
 *   Headings: Montserrat · Body: Inter
 *
 * Contents
 *  1. Tokens & Bootstrap overrides
 *  2. Base typography
 *  3. Shared components (eyebrow, buttons, links, sections)
 *  4. Header & navigation
 *  5. Home: hero, stats, partner strip
 *  6. Solution finder
 *  7. Product categories
 *  8. Circular / sustainability art
 *  9. CTA band
 * 10. Inner pages: page hero, page title, values, leadership
 * 11. Solutions: service cards, average note
 * 12. Sustainability: 3R cards, recovery split, certification
 * 13. Contact: enquiry form, FAQ
 * 14. Footer
 * 15. Scroll top & preloader
 * 16. Responsive
 */

/* ==========================================================
   1. Tokens & Bootstrap overrides
   ========================================================== */
:root {
  /* Brand */
  --es-blue: #07244c;          /* Pantone 648 C */
  --es-blue-hover: #0d3468;
  --es-blue-70: #51657f;       /* secondary text / eyebrows on white */
  --es-blue-tint: #e8ecf2;     /* hairlines & subtle fills */
  --es-beige: #eedea4;         /* Pantone 7499 C */
  --es-beige-hover: #f5ead0;
  --es-beige-soft: #f7f5f0;    /* section backgrounds: warm stone, not yellow */
  --es-white: #ffffff;
  --es-green: #2f6b4f;         /* sustainability accent */
  --es-green-soft: #e2ede4;    /* sustainability panels */

  /* Neutrals */
  --es-text: #4a5566;
  --es-line: #e3e6ea;

  /* Type */
  --es-heading: "Montserrat", system-ui, -apple-system, "Segoe UI", sans-serif;
  --es-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;

  /* Shape */
  --es-radius: 16px;           /* panels & cards */
  --es-radius-sm: 10px;        /* images, inputs */
  --es-radius-pill: 999px;     /* buttons */

  --es-header-h: 92px;

  /* Bootstrap variables */
  --bs-body-bg: var(--es-white);
  --bs-body-color: var(--es-text);
  --bs-body-font-family: var(--es-body);
  --bs-body-font-size: 16px;
  --bs-body-line-height: 1.65;
  --bs-border-color: var(--es-line);
  --bs-link-color: var(--es-blue);
  --bs-link-color-rgb: 7, 36, 76;
  --bs-link-hover-color: var(--es-blue);
  --bs-focus-ring-color: rgba(7, 36, 76, .25);
}

@media (min-width: 1400px) {
  .container { max-width: 1312px; } /* 1280px content + gutters */
}

html { scroll-behavior: smooth; scroll-padding-top: calc(var(--es-header-h) + 16px); }
a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; }

:focus-visible { outline: 3px solid var(--es-blue); outline-offset: 3px; }

.skip-link {
  position: fixed; left: 16px; top: 12px; z-index: 2000;
  background: #fff; padding: 12px 16px; border-radius: var(--es-radius-sm);
}

/* ==========================================================
   2. Base typography
   ========================================================== */
h1, h2, h3, h4 {
  font-family: var(--es-heading);
  font-weight: 700;
  color: var(--es-blue);
  letter-spacing: -.02em;
  line-height: 1.1;
}
h1 { font-size: clamp(40px, 5vw, 70px); margin-bottom: 26px; }
h2 { font-size: clamp(30px, 3vw, 42px); margin-bottom: 22px; }
h3 { font-size: 22px; line-height: 1.25; letter-spacing: -.01em; font-weight: 600; }

/* Second line of a heading: lighter weight, softer blue */
h1 em, h2 em, h3 em { font-style: italic; font-weight: 400; color: var(--es-blue-70); }

p { color: var(--es-text); margin-bottom: 20px; }
.lead-text { font-size: 17px; line-height: 1.75; max-width: 440px; }

/* ==========================================================
   3. Shared components
   ========================================================== */
.section { padding: 96px 0; }
.section--soft { background: var(--es-beige-soft); }

.eyebrow {
  display: flex; align-items: center; gap: 10px;
  font-family: var(--es-body);
  font-size: 11px; font-weight: 500; line-height: 1.5;
  letter-spacing: .16em; text-transform: uppercase;
  color: var(--es-blue-70);
  margin-bottom: 16px;
}
.status-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--es-green); box-shadow: 0 0 0 3px rgba(47, 107, 79, .15);
  display: inline-block; flex-shrink: 0;
}
.fine-rule { display: inline-block; width: 36px; height: 2px; border-radius: 2px; background: var(--es-beige); }

.section-intro { margin-bottom: 44px; }
.section-intro h2 { margin-bottom: 0; }
.section-intro p { max-width: 460px; }
.section-intro p:last-child { margin-bottom: 0; }

/* Buttons */
.btn-brand {
  display: inline-flex; align-items: center; justify-content: center; gap: 12px;
  min-height: 52px; padding: 14px 28px;
  background: var(--es-blue); color: #fff;
  border: 1px solid var(--es-blue); border-radius: var(--es-radius-pill);
  font-family: var(--es-heading); font-size: 14px; font-weight: 600; line-height: 1.3;
  box-shadow: 0 6px 18px rgba(7, 36, 76, .14);
  transition: background-color .2s, transform .2s, box-shadow .2s, color .2s;
}
.btn-brand i { font-size: 17px; line-height: 1; transition: transform .2s; }
.btn-brand:hover,
.btn-brand:focus-visible {
  background: var(--es-blue-hover); border-color: var(--es-blue-hover); color: #fff;
  transform: translateY(-2px); box-shadow: 0 10px 24px rgba(7, 36, 76, .2);
}
.btn-brand:hover i { transform: translateX(3px); }
.btn-brand:disabled { opacity: .7; transform: none; }

.btn-brand--beige { background: var(--es-beige); border-color: var(--es-beige); color: var(--es-blue); box-shadow: none; flex-shrink: 0; }
.btn-brand--beige:hover,
.btn-brand--beige:focus-visible { background: var(--es-beige-hover); border-color: var(--es-beige-hover); color: var(--es-blue); }

.btn-brand--sm { min-height: 44px; padding: 10px 20px; font-size: 13px; box-shadow: none; }

.link-arrow {
  display: inline-flex; align-items: center; gap: 10px;
  min-height: 44px; padding: 8px 0;
  font-family: var(--es-heading); font-size: 14px; font-weight: 600; color: var(--es-blue);
  border-bottom: 2px solid var(--es-beige);
  transition: border-color .2s;
}
.link-arrow i { font-size: 17px; line-height: 1; transition: transform .2s; }
.link-arrow:hover { border-color: var(--es-blue); color: var(--es-blue); }
.link-arrow:hover i { transform: translateX(3px); }

.check-list { list-style: none; padding: 0; margin: 0; font-size: 15px; }
.check-list li { display: flex; gap: 12px; padding: 11px 0; border-bottom: 1px solid var(--es-line); }
.check-list li::before { content: "\F26E"; font-family: "bootstrap-icons"; color: var(--es-blue); }

.footnote { font-size: 12px; line-height: 1.7; margin: 22px 0 0; max-width: 850px; }

/* ==========================================================
   4. Header & navigation
   ========================================================== */
.header {
  height: var(--es-header-h);
  background: rgba(255, 255, 255, .96);
  border-bottom: 1px solid var(--es-line);
  backdrop-filter: blur(14px);
  z-index: 997;
  transition: box-shadow .3s;
}
.header.scrolled { box-shadow: 0 6px 24px rgba(7, 36, 76, .07); }
.header .logo img { width: 150px; height: auto; }
.header .btn-brand { margin-left: 32px; }

@media (min-width: 992px) {
  .navmenu ul { display: flex; align-items: center; gap: 30px; list-style: none; margin: 0; padding: 0; }
  .navmenu a {
    position: relative; display: block; padding: 10px 0;
    font-family: var(--es-heading); font-size: 14px; font-weight: 500; white-space: nowrap; color: var(--es-blue);
  }
  .navmenu a::after {
    content: ""; position: absolute; left: 0; right: 100%; bottom: 2px;
    height: 2px; border-radius: 2px; background: var(--es-beige); transition: right .2s;
  }
  .navmenu a:hover::after,
  .navmenu a.active::after { right: 0; }
  .mobile-nav-toggle { display: none; }
}

@media (max-width: 991.98px) {
  .testimonial-track { grid-auto-columns: calc((100% - 24px) / 2); }
  :root { --es-header-h: 76px; }
  .header .logo img { width: 124px; }
  .header .btn-brand { display: none; }

  .mobile-nav-toggle {
    font-size: 30px; line-height: 0; color: var(--es-blue);
    background: none; border: 0; padding: 8px; margin-left: 12px; cursor: pointer;
  }
  .navmenu ul {
    display: none; list-style: none; margin: 0;
    position: absolute; top: 100%; left: 0; right: 0;
    background: #fff;
    border-bottom: 1px solid var(--es-line);
    box-shadow: 0 16px 24px rgba(7, 36, 76, .08);
    padding: 12px 24px 20px;
  }
  .navmenu a { display: block; padding: 12px 0; font-family: var(--es-heading); font-weight: 500; font-size: 16px; color: var(--es-blue); }
  .navmenu a.active { font-weight: 700; }
  .mobile-nav-active .navmenu ul { display: block; }
}

/* ==========================================================
   5. Home: hero, stats, partner strip
   ========================================================== */
.home-hero { background: var(--es-beige-soft); }

.home-hero__copy {
  display: flex; flex-direction: column; align-items: flex-start;
  /* aligns the copy with the container edge while the image bleeds right */
  padding: 72px 48px 48px max(24px, calc((100vw - 1280px) / 2));
}
.home-hero__copy h1 { font-size: clamp(44px, 5.2vw, 76px); line-height: 1.04; }
.home-hero__copy .eyebrow { margin-bottom: 26px; }
.home-hero__copy .lead-text { margin-bottom: 32px; }

.hero-footnote {
  display: flex; align-items: center; gap: 14px;
  margin-top: 44px; font-family: var(--es-heading); font-size: 11px; font-weight: 600;
  letter-spacing: .18em; color: var(--es-blue-70);
}

.home-hero__image { position: relative; overflow: hidden; min-height: 650px; height: 100%; }
.home-hero__image > img {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; object-position: 55% 50%;
}
.home-hero__image::after {
  content: ""; position: absolute; inset: 60% 0 0;
  background: linear-gradient(transparent, rgba(7, 36, 76, .6));
  pointer-events: none;
}

.image-caption {
  position: absolute; left: 30px; bottom: 28px; z-index: 1;
  display: flex; align-items: center; gap: 10px;
  font-size: 13px; font-weight: 500; color: #fff;
}

.hero-seal {
  position: absolute; top: 30px; right: 30px; z-index: 1;
  width: 120px; height: 120px; border-radius: 50%;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  background: #fff; color: var(--es-blue);
  font-family: var(--es-heading); font-weight: 700; font-size: 14px; line-height: 1.3; text-align: center;
  transform: rotate(8deg);
  box-shadow: 0 10px 30px rgba(7, 36, 76, .25);
}
.hero-seal em { font-style: italic; font-weight: 400; }

/* Stats */
.stats { padding: 40px 0; border-bottom: 1px solid var(--es-line); }
.stats__item { padding-left: 40px; border-left: 1px solid var(--es-line); }
.stats__item:first-child { padding-left: 0; border-left: 0; }
.stats__item strong {
  display: block; font-family: var(--es-heading); font-weight: 700; color: var(--es-blue);
  font-size: 40px; line-height: 1.2; letter-spacing: -.03em;
}
.stats__item strong small { font-size: 14px; font-weight: 500; letter-spacing: 0; margin-left: 6px; color: var(--es-blue-70); }
.stats__item p { font-size: 14px; line-height: 1.4; margin: 6px 0 0; }

/* Partner strip */
.partner-strip { padding: 32px 0; border-bottom: 1px solid var(--es-line); gap: 60px; }
.partner-strip__label { font-size: 13px; line-height: 1.5; margin: 0; flex-shrink: 0; }
.partner-strip__names { flex: 1; gap: 20px; list-style: none; margin: 0; padding: 0 4px; justify-content: space-evenly !important; }
.partner-strip__names li { display: flex; align-items: center; }
/* Each logo sets its own --logo-h so boxed and wordmark logos look equal in size */
.partner-strip__names img {
  height: var(--logo-h, 44px); width: auto;
  transition: transform .3s;
}
.partner-strip__names li:hover img { transform: scale(1.05); }

/* Accreditation logos (home under the partner logos; About under the stats) */
.accreditation-strip { padding: 28px 0; border-bottom: 1px solid var(--es-line); gap: 60px; }
.accreditation-strip--about { border-bottom: 1px solid var(--es-line); }
.accreditation-strip__logos { flex: 1; gap: 20px 28px; list-style: none; margin: 0; padding: 0 4px; justify-content: space-evenly; }
.accreditation-strip__logos li { display: flex; align-items: center; }
.accreditation-strip__logos img { height: var(--logo-h, 52px); width: auto; }
@media (max-width: 767.98px) {
  .accreditation-strip { gap: 16px; }
  .accreditation-strip .partner-strip__label { text-align: center; }
  .accreditation-strip__logos { justify-content: center; gap: 18px 24px; padding: 0; }
  .accreditation-strip__logos img { height: calc(var(--logo-h, 52px) * .8); }
}

/* ==========================================================
   6. Solution finder
   ========================================================== */
/* Callout above the finder: question + chalk arrow pointing into step 1.
   Starts half drawn with its head on, and the line extends as you scroll (main.js section 7). */
.finder-callout { --callout-ink: #c9ad5b; display: flex; align-items: flex-start; gap: 12px; margin: 0 0 4px 28px; }
.finder-callout__arrow { width: 80px; height: 72px; flex-shrink: 0; color: var(--callout-ink); margin-top: 4px; overflow: visible; }
.finder-callout__text { display: flex; flex-direction: column; gap: 2px; margin: 0; }
.finder-callout__q { font-family: var(--es-heading); font-size: 22px; font-weight: 700; color: var(--es-blue); letter-spacing: -.01em; }
.finder-callout__sub { font-size: 15px; color: var(--es-text); }
/* No dash styles here: without JavaScript the arrow simply shows complete. */

.finder {
  border-radius: var(--es-radius); overflow: hidden;
  border: 1px solid var(--es-line);
  scroll-margin-top: calc(var(--es-header-h) + 24px);
}
.finder h2 { font-size: 34px; }

.finder__controls { background: var(--es-beige-soft); padding: 44px 48px 38px; height: 100%; }
.finder fieldset { border: 0; padding: 0; margin: 0; min-width: 0; }
.finder legend { float: none; width: auto; margin-bottom: 12px; }

/* Numbered step labels */
.finder__step {
  display: flex; align-items: center; gap: 10px;
  font-family: var(--es-heading); font-size: 16px; font-weight: 700; color: var(--es-blue);
}
.finder__step-num {
  width: 26px; height: 26px; border-radius: 50%; flex-shrink: 0;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--es-blue); color: #fff; font-size: 12px;
  transition: background-color .2s;
}
.finder__step-num.is-done { background: var(--es-green); }
.finder__step-num.is-done::before { content: "\F26E"; font-family: "bootstrap-icons"; font-size: 14px; }
.finder__step-num.is-done span { display: none; }

/* Animated "start here" nudge */
.finder__hint {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--es-heading); font-size: 13px; font-weight: 600; color: var(--es-green);
  animation: es-nudge-x 1.2s ease-in-out infinite;
}
.finder__hint i { font-size: 18px; line-height: 1; }
.finder__hint--down { animation-name: es-nudge-y; }
.finder__hint[hidden] { display: none; }
@keyframes es-nudge-x { 0%, 100% { transform: translateX(0); } 50% { transform: translateX(-7px); } }
@keyframes es-nudge-y { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(5px); } }
@keyframes es-shake { 0%, 100% { transform: translateX(0); } 25% { transform: translateX(-6px); } 75% { transform: translateX(6px); } }
.partner-switch.is-shaking { animation: es-shake .35s ease-in-out 2; box-shadow: 0 0 0 3px rgba(47, 107, 79, .25); }

/* Priorities are dimmed until step 1 is done */
.need-options.is-waiting button { opacity: .45; }
.need-options.is-waiting button:hover { opacity: .7; }

/* Segmented pill switch */
.partner-fieldset { margin-bottom: 30px !important; }
.partner-switch {
  display: inline-flex; flex-wrap: wrap; gap: 4px; padding: 4px;
  background: #fff; border: 1px solid var(--es-line); border-radius: var(--es-radius-pill);
}
.partner-switch button {
  min-height: 42px; padding: 8px 20px; border: 0; border-radius: var(--es-radius-pill);
  background: transparent; color: var(--es-blue-70);
  font-family: var(--es-heading); font-size: 13px; font-weight: 600;
  transition: background-color .2s, color .2s;
}
.partner-switch button[aria-pressed="true"] { background: var(--es-blue); color: #fff; }

.need-options button {
  width: 100%; min-height: 56px; display: flex; align-items: center; gap: 14px;
  padding: 16px 0; border: 0; border-bottom: 1px solid var(--es-line); background: none;
  font-size: 15px; font-weight: 500; text-align: left; color: var(--es-blue);
  transition: color .2s, padding .2s;
}
.need-options button i { margin-left: auto; font-size: 17px; opacity: .5; transition: opacity .2s, transform .2s; }
.need-options .option-number {
  width: 30px; height: 30px; flex-shrink: 0; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  font-family: var(--es-heading); font-size: 11px; font-weight: 600;
  background: #fff; color: var(--es-blue-70); border: 1px solid var(--es-line);
  transition: background-color .2s, color .2s;
}
.need-options button:hover i { opacity: 1; transform: translateX(3px); }
.need-options button[aria-pressed="true"] { font-weight: 700; }
.need-options button[aria-pressed="true"] i { opacity: 1; }
.need-options button[aria-pressed="true"] .option-number { background: var(--es-blue); border-color: var(--es-blue); color: #fff; }

.finder__result {
  background: var(--es-blue); color: #fff; padding: 44px 48px 38px; height: 100%;
  display: flex; flex-direction: column;
}
.finder__result-top { display: flex; justify-content: space-between; align-items: center; gap: 20px; margin-bottom: 34px; }
.finder__result-label { font-family: var(--es-heading); font-size: 12px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--es-beige); }
.finder__result-top i { font-size: 30px; color: var(--es-beige); line-height: 1; }

/* Intro state shown before a choice is made */
.finder__intro { display: flex; flex-direction: column; height: 100%; }
.finder__intro-steps { list-style: none; padding: 0; margin: 8px 0 0; }
.finder__intro-steps li {
  display: flex; align-items: center; gap: 14px; padding: 14px 0;
  border-top: 1px solid rgba(255, 255, 255, .14); color: rgba(255, 255, 255, .85); font-size: 15px;
}
.finder__result .finder__intro-steps li::before { content: none; }
.finder__intro-steps i { font-size: 20px; color: rgba(255, 255, 255, .35); transition: color .2s; }
.finder__intro-steps li.is-done i { color: var(--es-beige); }
.finder__intro-steps li.is-done { color: #fff; }
.finder__result [hidden] { display: none !important; }
.finder__body { display: flex; flex-direction: column; flex: 1; }
.finder__result h3 { font-size: 30px; font-weight: 700; color: #fff; max-width: 400px; margin-bottom: 16px; }
.finder__result p { font-size: 15px; line-height: 1.75; color: rgba(255, 255, 255, .78); }
.finder__result ul { list-style: none; padding: 0; margin: 0 0 26px; font-size: 15px; line-height: 1.5; }
.finder__result li { display: flex; gap: 12px; padding: 7px 0; color: #fff; }
.finder__result li::before { content: "\F26E"; font-family: "bootstrap-icons"; color: var(--es-beige); }

.finder__journey {
  display: flex; flex-wrap: wrap; align-items: center; gap: 12px;
  padding-top: 20px; margin-bottom: 28px;
  border-top: 1px solid rgba(255, 255, 255, .18);
  font-family: var(--es-heading); font-size: 13px; font-weight: 600; color: var(--es-beige);
}
.finder__journey b { font-weight: 400; opacity: .6; }
.finder__result .btn-brand { align-self: flex-start; margin-top: auto; box-shadow: none; }
.finder__result .finder__note { font-size: 13px; line-height: 1.6; margin: 14px 0 0; color: rgba(255, 255, 255, .6); }

/* ==========================================================
   7. Product categories
   ========================================================== */
.category-heading { margin: 60px 0 24px; }
.category-heading h3 { font-size: 26px; font-weight: 700; margin: 0; }
.category-heading p { font-size: 15px; margin: 0; }

.category-card { display: block; }
.category-card__image { aspect-ratio: 1.4; overflow: hidden; border-radius: var(--es-radius); background: var(--es-blue-tint); }
.category-card__image img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.category-card:hover img { transform: scale(1.05); }
/* Product shots on white: show the whole product on a soft stone panel */
.category-card__image--product { background: var(--es-beige-soft); }
.category-card__image--product img { object-fit: contain; padding: 10% 12%; mix-blend-mode: multiply; }
.category-card__label {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding: 16px 4px; font-family: var(--es-heading); font-size: 15px; font-weight: 600; color: var(--es-blue);
}
.category-card__label i { transition: transform .2s; }
.category-card:hover .category-card__label i { transform: translateX(3px); }

/* ==========================================================
   8. Circular / sustainability art
   ========================================================== */
.home-circular { background: var(--es-beige-soft); padding: 96px 0 32px; }
.home-circular p { max-width: 480px; }

.circular-art {
  position: relative; overflow: hidden; height: 400px; border-radius: var(--es-radius);
  display: flex; align-items: center; justify-content: center;
  background: var(--es-green-soft);
}
.circular-art .orbit {
  position: absolute; width: 310px; height: 310px; border-radius: 50%;
  border: 1.5px solid rgba(47, 107, 79, .28); transform: rotate(-25deg);
}
.circular-art .orbit--two { width: 390px; height: 220px; transform: rotate(-48deg); }
.circular-art__words {
  position: relative; z-index: 1; text-align: center;
  font-family: var(--es-heading); font-weight: 700; font-size: 40px; line-height: 1.25; letter-spacing: -.02em; color: var(--es-blue);
}
.circular-art__words span { display: block; font-weight: 400; font-style: italic; color: var(--es-green); }
.circular-art__tag, .home-circular .circular-art__tag {
  position: absolute; left: 26px; bottom: 20px; margin: 0;
  font-family: var(--es-heading); font-size: 11px; font-weight: 600; letter-spacing: .16em; line-height: 1.8; color: var(--es-green);
}
.circular-art__icon { position: absolute; top: 22px; right: 26px; font-size: 28px; color: var(--es-green); }

/* ==========================================================
   9. CTA band
   ========================================================== */
.cta-band {
  position: relative; overflow: hidden;
  background: var(--es-blue); color: #fff; padding: 48px 56px; gap: 45px;
  border-radius: var(--es-radius);
}
.cta-band::before {   /* soft beige ring echoing the logo gear */
  content: ""; position: absolute; right: -80px; top: -120px; width: 320px; height: 320px;
  border-radius: 50%; border: 40px solid rgba(238, 222, 164, .08); pointer-events: none;
}
.cta-band > * { position: relative; }
.cta-band h2 { color: #fff; font-size: 34px; max-width: 700px; margin-bottom: 12px; }
.cta-band p { color: rgba(255, 255, 255, .75); font-size: 16px; max-width: 550px; margin: 0; }
.cta-band .eyebrow { color: var(--es-beige); margin-bottom: 14px; }

/* ==========================================================
   10. Inner pages
   ========================================================== */
.page-hero { padding: 72px 0; }
.page-hero h1 { font-size: clamp(38px, 4.4vw, 60px); }
.page-hero p { max-width: 485px; }
.page-hero__image { position: relative; height: 490px; border-radius: var(--es-radius); overflow: hidden; }
.page-hero__image img { width: 100%; height: 100%; object-fit: cover; }
.photo-tag {
  position: absolute; left: 24px; bottom: 24px; z-index: 1;
  background: #fff; padding: 12px 20px; border-radius: var(--es-radius-pill);
  font-family: var(--es-heading); font-size: 13px; font-weight: 600; color: var(--es-blue);
  box-shadow: 0 8px 24px rgba(7, 36, 76, .15);
}
.page-hero + .section { border-top: 1px solid var(--es-line); padding-top: 72px; }

.page-title { padding: 72px 0 56px; background: var(--es-beige-soft); margin-bottom: 64px; }
.page-title h1 { font-size: clamp(44px, 5.4vw, 76px); }
.page-title p:not(.eyebrow) { max-width: 560px; font-size: 17px; margin: 0; }
.contact-dot { display: flex; align-items: center; gap: 10px; font-family: var(--es-heading); font-size: 12px; font-weight: 600; letter-spacing: .14em; white-space: nowrap; color: var(--es-blue); }

/* Values */
.values-grid { padding-top: 56px; }
.value-icon {
  width: 56px; height: 56px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--es-blue-tint); color: var(--es-blue); font-size: 24px; margin-bottom: 22px;
}
.values-grid h3 { margin-bottom: 14px; }
.values-grid p { font-size: 15px; }

/* Leadership */
.leadership { margin-bottom: 72px; }
.leadership p { max-width: 520px; }
.portrait { border-radius: var(--es-radius); overflow: hidden; aspect-ratio: 4 / 5; box-shadow: 0 20px 50px rgba(7, 36, 76, .12); }
.portrait img { width: 100%; height: 100%; object-fit: cover; object-position: center 30%; }
.person { display: flex; flex-direction: column; gap: 4px; margin: 28px 0 14px; line-height: 1.4; }
.person strong { font-family: var(--es-heading); font-weight: 700; font-size: 20px; color: var(--es-blue); }
.person span { font-size: 14px; color: var(--es-text); }

/* ==========================================================
   11. Solutions: service cards
   ========================================================== */
.service-intro { margin-top: 88px; }

.service-card {
  position: relative; height: 100%;
  display: flex; flex-direction: column;
  padding: 32px;
  background: #fff; border: 1px solid var(--es-line); border-radius: var(--es-radius);
  transition: border-color .2s, box-shadow .2s, transform .2s;
}
.service-card:hover { border-color: #cfd6df; box-shadow: 0 14px 36px rgba(7, 36, 76, .08); transform: translateY(-3px); }
.service-card .value-icon { margin-bottom: 24px; }
.service-card__number { position: absolute; top: 30px; right: 30px; font-family: var(--es-heading); font-size: 12px; font-weight: 600; color: #9aa5b3; }
.service-card h3 { max-width: 280px; margin-bottom: 14px; }
.service-card p { font-size: 15px; }
.service-card__meta { font-size: 13px; color: var(--es-blue-70); padding-bottom: 22px; }
.service-card .link-arrow { margin-top: auto; align-self: flex-start; font-size: 13px; }

.average-note {
  display: flex; gap: 20px; align-items: flex-start;
  padding: 26px 30px; margin-top: 28px;
  background: var(--es-beige-soft); border-radius: var(--es-radius);
}
.average-note .value-icon { width: 48px; height: 48px; font-size: 20px; margin: 0; flex-shrink: 0; }
.average-note strong { font-family: var(--es-heading); font-size: 16px; font-weight: 700; color: var(--es-blue); }
.average-note p { font-size: 14px; max-width: 850px; margin: 4px 0 0; }

/* ==========================================================
   12. Sustainability
   ========================================================== */
.sustain-art {
  position: relative; overflow: hidden; height: 480px; border-radius: var(--es-radius);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  background: var(--es-green-soft);
}
.sustain-art__ring { position: absolute; inset: 44px; border: 1.5px solid rgba(47, 107, 79, .28); border-radius: 50%; transform: rotate(-30deg); }
.sustain-art > i { position: relative; z-index: 1; font-size: 40px; color: var(--es-green); margin-bottom: 14px; line-height: 1; }
.sustain-art__word {
  position: relative; z-index: 1; text-align: center; color: var(--es-blue);
  font-family: var(--es-heading); font-weight: 700; font-size: 46px; line-height: 1.12; letter-spacing: -.03em;
}
.sustain-art__word em { font-style: italic; font-weight: 400; color: var(--es-green); }
.sustain-art__sub { position: relative; z-index: 1; margin-top: 34px; font-family: var(--es-heading); font-size: 11px; font-weight: 600; letter-spacing: .2em; color: var(--es-green); }

.r-card { background: #fff; border: 1px solid var(--es-line); padding: 36px; height: 100%; border-radius: var(--es-radius); }
.r-card__top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 34px; }
.r-card__top span { font-family: var(--es-heading); font-size: 12px; font-weight: 600; color: #9aa5b3; }
.r-card .value-icon { margin: 0; width: 88px; height: 88px; font-size: 40px; background: var(--es-green-soft); color: var(--es-green); }
.r-card h3 { font-size: 30px; font-weight: 700; margin-bottom: 14px; }
.r-card p { font-size: 15px; margin: 0; }

.recovery-image { height: 440px; border-radius: var(--es-radius); overflow: hidden; }
.recovery-image img { width: 100%; height: 100%; object-fit: cover; object-position: center 60%; }

.certification { margin-bottom: 76px; }
.certification p { max-width: 580px; }
.cert-mark {
  width: 280px; height: 280px; margin: auto; border-radius: 50%;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  background: var(--es-blue); color: #fff;
  box-shadow: 0 0 0 14px var(--es-green-soft);
}
.cert-mark i { font-size: 40px; color: var(--es-beige); margin-bottom: 6px; line-height: 1; }
.cert-mark strong { font-family: var(--es-heading); font-weight: 700; font-size: 52px; line-height: 1.3; letter-spacing: -.02em; }
.cert-mark span { font-family: var(--es-heading); font-size: 12px; font-weight: 600; letter-spacing: .25em; color: var(--es-beige); }

/* ==========================================================
   13. Contact
   ========================================================== */
.contact-layout { padding-bottom: 88px; }
.contact-info { padding-top: 20px; }
.contact-info > p { max-width: 420px; }

.contact-person { display: flex; align-items: center; gap: 18px; margin: 34px 0 28px; }
.contact-person img { width: 96px; height: 96px; box-shadow: 0 8px 20px rgba(7, 36, 76, .15); border-radius: 50%; object-fit: cover; background: var(--es-blue-tint); }
.contact-person strong { display: block; font-family: var(--es-heading); font-weight: 700; font-size: 20px; color: var(--es-blue); }
.contact-person span { font-size: 14px; color: var(--es-text); }

.contact-points { list-style: none; padding: 0; margin: 0; }
.contact-points li { display: flex; gap: 14px; align-items: flex-start; padding: 16px 0; border-top: 1px solid var(--es-line); font-size: 15px; }
.contact-points li:last-child { border-bottom: 1px solid var(--es-line); }
.contact-points i { color: var(--es-blue); font-size: 18px; line-height: 1.5; }

.support-note { margin-top: 30px; padding: 24px; background: var(--es-beige-soft); border-radius: var(--es-radius); }
.support-note strong { font-family: var(--es-heading); font-size: 15px; font-weight: 700; color: var(--es-blue); }
.support-note p { font-size: 14px; margin: 8px 0 0; }

.enquiry-panel {
  background: #fff; padding: 40px 44px 44px;
  border: 1px solid var(--es-line); border-radius: var(--es-radius);
  box-shadow: 0 20px 50px rgba(7, 36, 76, .07);
}
.enquiry-panel h2 { font-size: 32px; margin-bottom: 12px; }
.enquiry-panel .form-intro { font-size: 15px; margin-bottom: 26px; }

.enquiry-form .form-label { font-size: 14px; font-weight: 500; color: var(--es-blue); margin-bottom: 6px; }
.enquiry-form .form-label .optional { font-weight: 400; color: #8b96a5; }
.enquiry-form .form-control,
.enquiry-form .form-select {
  min-height: 50px; padding: 12px 14px;
  background-color: #fff; color: var(--es-blue);
  border: 1px solid #d4dae2; border-radius: var(--es-radius-sm);
  font-size: 15px; line-height: 1.5;
}
.enquiry-form .form-control:focus,
.enquiry-form .form-select:focus { border-color: var(--es-blue); box-shadow: 0 0 0 .2rem var(--bs-focus-ring-color); }
.enquiry-form textarea { min-height: 130px; resize: vertical; }
.route-guidance { font-size: 13px; color: var(--es-blue-70); margin: -4px 0 18px; min-height: 1em; }
.privacy-note { font-size: 13px; line-height: 1.6; margin: 6px 0 22px; }

/* Honeypot: hidden from people, visible to bots */
.form-hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }

.form-status { border-radius: var(--es-radius-sm); font-size: 15px; }

/* FAQ (Bootstrap accordion, restyled) */
.contact-faq { padding: 72px 0 96px; border-top: 1px solid var(--es-line); }
.faq .accordion-item { background: transparent; border: 0; border-bottom: 1px solid var(--es-line); }
.faq .accordion-button {
  background: transparent; color: var(--es-blue); box-shadow: none;
  padding: 22px 0; font-family: var(--es-heading); font-size: 16px; font-weight: 600;
}
.faq .accordion-button::after {
  content: "+"; background: var(--es-blue-tint); width: 30px; height: 30px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 18px; line-height: 1; color: var(--es-blue); transform: none;
}
.faq .accordion-button:not(.collapsed)::after { content: "−"; background: var(--es-blue); color: #fff; }
.faq .accordion-body { padding: 0 40px 18px 0; }
.faq .accordion-body p { font-size: 15px; max-width: 580px; margin: 0; }

/* ==========================================================
   14. Footer
   ========================================================== */
.footer { background: var(--es-blue); color: rgba(255, 255, 255, .8); padding-top: 64px; }
.footer-top { padding-bottom: 48px; }
.footer-logo img { width: 170px; height: auto; }
.footer p { color: rgba(255, 255, 255, .65); font-size: 14px; margin: 20px 0; }
.footer-motto { font-family: var(--es-heading); font-size: 11px; font-weight: 600; letter-spacing: .16em; color: var(--es-beige); }
.footer-motto i { font-style: normal; padding: 0 6px; }
.social-links { margin-top: 24px; }
.social-links a {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 14px; color: rgba(255, 255, 255, .85);
}
.social-links i {
  width: 38px; height: 38px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  background: rgba(255, 255, 255, .08); color: var(--es-beige); font-size: 17px;
  transition: background-color .2s, color .2s;
}
.social-links a:hover { color: #fff; }
.social-links a:hover i { background: var(--es-beige); color: var(--es-blue); }
.footer h4 {
  font-size: 12px; font-weight: 600;
  letter-spacing: .14em; text-transform: uppercase; color: var(--es-beige);
  margin: 4px 0 20px;
}
.footer-links ul { list-style: none; padding: 0; margin: 0; }
.footer-links a { display: inline-block; font-size: 14px; margin-bottom: 10px; color: rgba(255, 255, 255, .85); }
.footer-links a:hover { color: #fff; text-decoration: underline; text-underline-offset: 5px; }
.footer .btn-brand { margin-top: 4px; }

.footer .copyright {
  border-top: 1px solid rgba(255, 255, 255, .14); padding-top: 22px; padding-bottom: 22px;
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 20px;
  font-size: 13px; color: rgba(255, 255, 255, .55);
}

/* ==========================================================
   15. Scroll top & preloader
   ========================================================== */
.scroll-top {
  position: fixed; right: 16px; bottom: -16px; z-index: 99999;
  width: 46px; height: 46px; border-radius: 50%;
  background: var(--es-blue); color: #fff;
  box-shadow: 0 8px 20px rgba(7, 36, 76, .25);
  visibility: hidden; opacity: 0; transition: all .4s;
}
.scroll-top i { font-size: 24px; line-height: 0; }
.scroll-top:hover { background: var(--es-blue-hover); color: #fff; }
.scroll-top.active { visibility: visible; opacity: 1; bottom: 16px; }

#preloader { position: fixed; inset: 0; z-index: 999999; background: #fff; transition: opacity .4s; }
#preloader.is-hidden { opacity: 0; pointer-events: none; }

/* ==========================================================
   17. Testimonials (home page)
   A horizontal row of cards that scrolls and snaps; the arrows
   scroll it by one card (main.js, section 6).
   ========================================================== */
.testimonials { border-top: 1px solid var(--es-line); }
.testimonial-nav { display: flex; gap: 10px; }
.testimonial-nav-btn {
  width: 48px; height: 48px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  background: #fff; color: var(--es-blue); border: 1px solid var(--es-blue);
  font-size: 18px; transition: background-color .2s, color .2s, opacity .2s;
}
.testimonial-nav-btn:hover:not(:disabled) { background: var(--es-blue); color: #fff; }
.testimonial-nav-btn:disabled { opacity: .3; cursor: default; }

.testimonial-track {
  display: grid; grid-auto-flow: column;
  grid-auto-columns: calc((100% - 2 * 24px) / 3);
  gap: 24px;
  overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth;
  scrollbar-width: none; padding: 4px 2px 8px;
}
.testimonial-track::-webkit-scrollbar { display: none; }
.testimonial-track:focus-visible { outline-offset: 6px; }

.testimonial-card {
  scroll-snap-align: start;
  display: flex; flex-direction: column; gap: 22px;
  padding: 32px; min-width: 0;
  background: #fff; border: 1px solid var(--es-line); border-radius: var(--es-radius);
}
.testimonial-card .value-icon { margin: 0; width: 48px; height: 48px; font-size: 22px; }
.testimonial-card blockquote { margin: 0; }
.testimonial-card blockquote p { font-size: 15px; line-height: 1.75; color: var(--es-text); margin-bottom: 12px; }
.testimonial-card blockquote p:last-child { margin-bottom: 0; }
.testimonial-person { margin-top: auto; display: flex; align-items: center; gap: 14px; padding-top: 18px; border-top: 1px solid var(--es-line); }
.testimonial-person > span:last-child { display: flex; flex-direction: column; line-height: 1.4; min-width: 0; }
.testimonial-person strong { font-family: var(--es-heading); font-size: 15px; font-weight: 700; color: var(--es-blue); }
.testimonial-person > span:last-child > span { font-size: 13px; color: var(--es-text); }
.testimonial-avatar {
  width: 48px; height: 48px; border-radius: 50%; flex-shrink: 0; object-fit: cover;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--es-blue-tint); color: var(--es-blue); font-size: 20px;
}
/* Long quotes: first paragraph shows, "Read the full testimonial" opens the rest */
.testimonial-more { margin-top: 12px; }
/* While a quote is open, let only that card grow; the others keep their height */
.testimonial-track.has-open { align-items: start; }
.testimonial-toggle {
  align-self: flex-start; display: inline-flex; align-items: center; gap: 6px;
  margin-top: -8px; padding: 6px 0; min-height: 44px;
  background: none; border: 0; color: var(--es-blue);
  font-family: var(--es-heading); font-size: 13px; font-weight: 600;
}
.testimonial-toggle i { transition: transform .2s; }
.testimonial-toggle[aria-expanded="true"] i { transform: rotate(180deg); }
.testimonial-toggle:hover { text-decoration: underline; text-underline-offset: 4px; }
/* Placeholder cards are dashed so they can't be mistaken for real quotes */
.testimonial-card--placeholder { border-style: dashed; border-color: #c4ccd6; }
.testimonial-card--placeholder blockquote p { font-style: italic; color: #8b96a5; }

/* Light "partner with us" card: sits quietly beside the quotes rather than competing with them */
.testimonial-card--cta { background: var(--es-beige-soft); border-color: transparent; justify-content: center; }
.testimonial-card--cta h3 { font-size: 22px; font-weight: 700; margin: 0; }
.testimonial-card--cta p { font-size: 15px; margin: 0; }
.testimonial-card--cta .link-arrow { align-self: flex-start; }
/* Arrows hide when every card already fits (e.g. three cards on desktop) */
.testimonial-nav[hidden] { display: none !important; }

/* ==========================================================
   18. 404 page
   ========================================================== */
.not-found-link {
  display: flex; flex-direction: column; gap: 6px; height: 100%;
  padding: 28px; border: 1px solid var(--es-line); border-radius: var(--es-radius);
  transition: border-color .2s, box-shadow .2s, transform .2s;
}
.not-found-link:hover { border-color: #cfd6df; box-shadow: 0 14px 36px rgba(7, 36, 76, .08); transform: translateY(-3px); }
.not-found-link .value-icon { margin-bottom: 12px; }
.not-found-link strong { font-family: var(--es-heading); font-size: 18px; font-weight: 700; color: var(--es-blue); }
.not-found-link > span:last-child { font-size: 14px; color: var(--es-text); }

/* ==========================================================
   19. Legal pages (privacy & cookie policy) and footer legal links
   ========================================================== */
.legal { max-width: 760px; }
.legal h2 { font-size: 24px; margin: 44px 0 14px; }
.legal h2:first-child { margin-top: 0; }
.legal h3 { font-size: 17px; margin: 24px 0 8px; }
.legal p, .legal li { font-size: 16px; line-height: 1.75; }
.legal ul { padding-left: 1.2em; margin-bottom: 20px; }
.legal li { margin-bottom: 6px; color: var(--es-text); }
.legal li::marker { color: var(--es-blue); }
.legal a { color: var(--es-blue); text-decoration: underline; text-underline-offset: 3px; }
.legal strong { color: var(--es-blue); }
.legal .btn-brand { text-decoration: none; }
.legal-note { font-size: 14px !important; color: #8b96a5; }
/* CookieYes's generated cookie policy: our title band already says "Cookie policy",
   so hide CookieYes's own H1; its effective / last-updated dates stay visible. */
.cky-policy h1 { display: none; }
.cky-policy table { width: 100%; border-collapse: collapse; margin: 12px 0 28px; font-size: 14px; }
.cky-policy th, .cky-policy td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--es-line); vertical-align: top; }
.cky-policy th { font-family: var(--es-heading); font-weight: 600; color: var(--es-blue); background: var(--es-beige-soft); }
/* Highlighted text that E&S must confirm before launch */
.to-confirm { background: #fff1b8; color: #6b4e00; padding: 0 4px; border-radius: 4px; font-weight: 500; }

.footer-legal { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 20px; }
.footer-legal a, .footer-legal__btn { color: rgba(255, 255, 255, .7); font-size: 13px; }
.footer-legal__btn { background: none; border: 0; padding: 0; cursor: pointer; }
.footer-legal a:hover, .footer-legal__btn:hover { color: #fff; text-decoration: underline; text-underline-offset: 4px; }

/* ==========================================================
   16. Responsive
   ========================================================== */
@media (max-width: 1199.98px) {
  .home-hero__copy { padding: 56px 32px 36px; }
  .finder__controls, .finder__result { padding: 36px; }
  .cta-band { padding: 40px; gap: 35px; }
  .cta-band h2 { font-size: 30px; }
  .page-hero__image { height: 440px; }
  .service-card { padding: 28px; }
}

@media (max-width: 991.98px) {
  .section { padding: 72px 0; }
  .home-hero__copy { padding: 44px 24px 36px; }
  .home-hero__image { min-height: 420px; }
  .stats__item { padding-left: 24px; }
  .stats__item strong { font-size: 34px; }
  .stats__item:nth-child(odd) { padding-left: 0; border-left: 0; }
  .finder__result h3 { font-size: 26px; }
  .home-circular { padding: 64px 0 28px; }
  .home-circular p { max-width: none; }
  .circular-art { height: 340px; }
  .circular-art__words { font-size: 34px; }
  .page-hero { padding: 44px 0; }
  .page-hero__image { height: 400px; }
  .page-title { padding: 48px 0 40px; margin-bottom: 48px; }
  .service-intro { margin-top: 56px; }
  .sustain-art { height: 400px; }
  .sustain-art__word { font-size: 38px; }
  .recovery-image { height: 360px; }
  .contact-info { padding-top: 0; }
  .contact-faq { padding: 48px 0 60px; }
}

@media (max-width: 767.98px) {
  .finder-callout { margin-left: 8px; gap: 8px; }
  .finder-callout__arrow { width: 60px; height: 54px; }
  .finder-callout__q { font-size: 19px; }
  .finder-callout__sub { font-size: 14px; }
  .testimonial-track { grid-auto-columns: 86%; gap: 16px; }
  .testimonial-card { padding: 26px 22px; }
  .container { padding-left: 20px; padding-right: 20px; }
  h2 { font-size: 30px; }
  .finder h2 { font-size: 28px; }
  .section { padding: 56px 0; }
  .partner-strip { gap: 16px; }
  .partner-strip__names { gap: 20px 30px; justify-content: center !important; padding: 0; }
  .partner-strip__label { text-align: center; }
  .partner-strip__names img { height: calc(var(--logo-h, 44px) * .8); }
  .finder__controls, .finder__result { padding: 30px 24px; }
  .category-card__image { aspect-ratio: 1.15; }
  .category-card__label { font-size: 14px; }
  .cta-band { padding: 34px 26px; }
  .cta-band h2 { font-size: 27px; }
  .enquiry-panel { padding: 28px 22px; }
  .enquiry-form .form-control, .enquiry-form .form-select { font-size: 16px; } /* stops iOS zoom */
  .cert-mark { width: 230px; height: 230px; }
  .hero-seal { width: 100px; height: 100px; font-size: 12px; top: 20px; right: 20px; }
}

/* Accreditation logos on tablets: keep all seven on one row */
@media (min-width: 768px) and (max-width: 991.98px) {
  .accreditation-strip { gap: 28px; }
  .accreditation-strip__logos { flex-wrap: nowrap !important; gap: 12px; }
  .accreditation-strip__logos img { height: calc(var(--logo-h, 52px) * .72); }
}

/* Partner logos on tablets: the label sits beside the logos, so shrink them to keep all five on one row */
@media (min-width: 768px) and (max-width: 991.98px) {
  .partner-strip { gap: 32px; }
  .partner-strip__names { flex-wrap: nowrap !important; gap: 14px; }
  .partner-strip__names img { height: calc(var(--logo-h, 44px) * .78); }
}

@media (prefers-reduced-motion: reduce) {
  .testimonial-track { scroll-behavior: auto; }
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
