:root {
  --acf-ink: #0e1a24;
  --acf-ink-soft: #2b3a46;
  --acf-paper: #f4f6f8;
  --acf-paper-warm: #ecede8;
  --acf-accent: #ff6a2b;
  --acf-accent-deep: #d94f12;
  --acf-steel: #1f3b53;
  --acf-steel-soft: #2f5675;
  --acf-line: rgba(14, 26, 36, 0.12);
  --acf-shadow: 0 24px 60px -30px rgba(14, 26, 36, 0.45);
  --acf-radius: 18px;
  --acf-radius-sm: 10px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Inter", "Helvetica Neue", Arial, sans-serif;
  color: var(--acf-ink);
  background-color: var(--acf-paper);
  line-height: 1.65;
  font-size: 17px;
}

main {
  display: block;
}

h1, h2, h3, h4, h5 {
  font-family: "Manrope", "Inter", sans-serif;
  color: var(--acf-ink);
  letter-spacing: -0.02em;
  line-height: 1.15;
  margin: 0 0 0.75rem;
}

h1 { font-size: clamp(2.1rem, 4.4vw, 3.6rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2.5rem); }
h3 { font-size: clamp(1.15rem, 2vw, 1.5rem); }

p {
  margin: 0 0 1rem;
  color: var(--acf-ink-soft);
}

a {
  color: var(--acf-steel);
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover,
a:focus {
  color: var(--acf-accent-deep);
}

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

.acf-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.85rem 1.6rem;
  border-radius: 999px;
  font-weight: 600;
  letter-spacing: 0.01em;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

.acf-btn--primary {
  background-color: var(--acf-accent);
  color: #ffffff;
  box-shadow: 0 18px 40px -22px rgba(217, 79, 18, 0.9);
}

.acf-btn--primary:hover,
.acf-btn--primary:focus {
  background-color: var(--acf-accent-deep);
  color: #ffffff;
  transform: translateY(-2px);
}

.acf-btn--ghost {
  background-color: transparent;
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.7);
}

.acf-btn--ghost:hover,
.acf-btn--ghost:focus {
  background-color: rgba(255, 255, 255, 0.14);
  color: #ffffff;
}

.acf-btn--outline {
  background-color: transparent;
  color: var(--acf-steel);
  border-color: var(--acf-line);
}

.acf-btn--outline:hover,
.acf-btn--outline:focus {
  border-color: var(--acf-accent);
  color: var(--acf-accent-deep);
}

.acf-section {
  padding: clamp(3rem, 6vw, 6rem) 0;
}

.acf-section--tight {
  padding: clamp(2rem, 4vw, 3.5rem) 0;
}

.acf-section--dark {
  background-color: var(--acf-ink);
  color: #eef2f4;
}

.acf-section--dark h1,
.acf-section--dark h2,
.acf-section--dark h3 {
  color: #ffffff;
}

.acf-section--dark p {
  color: #c7d1d8;
}

.acf-hero {
  position: relative;
  color: #ffffff;
  background-position: center;
  background-size: cover;
  padding: clamp(4rem, 9vw, 8rem) 0;
}

.acf-hero__inner {
  position: relative;
  z-index: 2;
}

.acf-hero__kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.75rem;
  font-weight: 600;
  color: #ffd9c2;
  margin-bottom: 1rem;
}

.acf-hero h1 {
  color: #ffffff;
  max-width: 22ch;
}

.acf-hero p {
  color: #e5ecf0;
  max-width: 60ch;
  font-size: 1.05rem;
}

.acf-eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--acf-accent-deep);
  margin-bottom: 0.6rem;
  display: block;
}

.acf-card {
  background-color: #ffffff;
  border: 1px solid var(--acf-line);
  border-radius: var(--acf-radius);
  padding: 1.75rem;
  height: 100%;
  box-shadow: var(--acf-shadow);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.acf-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 30px 70px -32px rgba(14, 26, 36, 0.5);
}

.acf-card__media {
  border-radius: var(--acf-radius-sm);
  overflow: hidden;
  margin-bottom: 1.1rem;
  background-color: var(--acf-paper-warm);
  aspect-ratio: 4 / 3;
}

.acf-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.acf-card__meta {
  font-size: 0.85rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--acf-steel-soft);
  margin-bottom: 0.5rem;
}

.acf-card__title {
  font-size: 1.2rem;
  margin-bottom: 0.5rem;
}

.acf-stat {
  text-align: center;
  padding: 1.5rem 1rem;
  border-radius: var(--acf-radius-sm);
  background-color: #ffffff;
  border: 1px solid var(--acf-line);
}

.acf-stat__value {
  font-family: "Manrope", sans-serif;
  font-size: clamp(1.8rem, 3.6vw, 2.6rem);
  font-weight: 700;
  color: var(--acf-accent-deep);
  display: block;
  line-height: 1.1;
}

.acf-stat__label {
  font-size: 0.9rem;
  color: var(--acf-ink-soft);
}

.acf-step {
  position: relative;
  padding: 1.5rem 1.5rem 1.5rem 4rem;
  border-radius: var(--acf-radius-sm);
  background-color: #ffffff;
  border: 1px solid var(--acf-line);
  height: 100%;
}

.acf-step__index {
  position: absolute;
  left: 1.1rem;
  top: 1.35rem;
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  background-color: var(--acf-steel);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.9rem;
}

.acf-gallery__item {
  border-radius: var(--acf-radius-sm);
  overflow: hidden;
  background-color: var(--acf-paper-warm);
  aspect-ratio: 1 / 1;
}

.acf-gallery__item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.acf-gallery__caption {
  font-size: 0.9rem;
  color: var(--acf-ink-soft);
  margin-top: 0.75rem;
}

.acf-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.acf-list li {
  position: relative;
  padding-left: 1.6rem;
  margin-bottom: 0.6rem;
  color: var(--acf-ink-soft);
}

.acf-list li::before {
  content: "\f00c";
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
  position: absolute;
  left: 0;
  top: 0.1rem;
  color: var(--acf-accent);
  font-size: 0.85rem;
}

.acf-section--dark .acf-list li {
  color: #c7d1d8;
}

.acf-faq {
  border: 1px solid var(--acf-line);
  border-radius: var(--acf-radius-sm);
  background-color: #ffffff;
  margin-bottom: 0.85rem;
  padding: 1.1rem 1.3rem;
}

.acf-faq summary {
  cursor: pointer;
  font-weight: 600;
  color: var(--acf-ink);
  list-style: none;
}

.acf-faq summary::-webkit-details-marker {
  display: none;
}

.acf-faq summary::after {
  content: "\2b";
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
  float: right;
  color: var(--acf-accent);
}

.acf-faq[open] summary::after {
  content: "\f068";
}

.acf-field {
  margin-bottom: 1.1rem;
}

.acf-field label {
  display: block;
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 0.35rem;
  color: var(--acf-ink);
}

.acf-field input,
.acf-field select,
.acf-field textarea {
  width: 100%;
  padding: 0.8rem 1rem;
  border: 1px solid var(--acf-line);
  border-radius: var(--acf-radius-sm);
  background-color: #ffffff;
  font-family: inherit;
  font-size: 1rem;
  color: var(--acf-ink);
}

.acf-field input:focus,
.acf-field select:focus,
.acf-field textarea:focus {
  outline: 2px solid var(--acf-accent);
  outline-offset: 1px;
}

.acf-badge {
  display: inline-block;
  padding: 0.3rem 0.75rem;
  border-radius: 999px;
  background-color: rgba(255, 106, 43, 0.14);
  color: var(--acf-accent-deep);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.acf-divider {
  height: 1px;
  background-color: var(--acf-line);
  border: 0;
  margin: 2rem 0;
}

.acf-tile {
  border-radius: var(--acf-radius);
  padding: 2rem;
  background-color: #ffffff;
  border: 1px solid var(--acf-line);
}

.acf-tile--ink {
  background-color: var(--acf-steel);
  color: #eaf1f6;
  border-color: transparent;
}

.acf-tile--ink h3,
.acf-tile--ink p {
  color: #ffffff;
}

.acf-price {
  border-radius: var(--acf-radius);
  background-color: #ffffff;
  border: 1px solid var(--acf-line);
  padding: 2rem;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.acf-price--featured {
  border-color: var(--acf-accent);
  box-shadow: var(--acf-shadow);
}

.acf-price__amount {
  font-family: "Manrope", sans-serif;
  font-size: 2.4rem;
  font-weight: 700;
  color: var(--acf-ink);
}

.acf-price__amount small {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--acf-ink-soft);
}

.acf-contact-line {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
  margin-bottom: 1.1rem;
}

.acf-contact-line i {
  color: var(--acf-accent);
  margin-top: 0.2rem;
}

.acf-map-frame {
  border-radius: var(--acf-radius);
  overflow: hidden;
  border: 1px solid var(--acf-line);
  min-height: 340px;
}

.acf-map-frame iframe {
  width: 100%;
  height: 100%;
  min-height: 340px;
  border: 0;
}

.acf-marquee {
  overflow: hidden;
  border-top: 1px solid var(--acf-line);
  border-bottom: 1px solid var(--acf-line);
  padding: 0.9rem 0;
  background-color: var(--acf-paper-warm);
}

.acf-marquee__track {
  display: flex;
  gap: 3rem;
  white-space: nowrap;
  animation: acf-scroll 26s linear infinite;
  font-weight: 600;
  color: var(--acf-steel-soft);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.8rem;
}

@keyframes acf-scroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

.acf-note {
  border-left: 3px solid var(--acf-accent);
  background-color: rgba(255, 106, 43, 0.08);
  border-radius: 0 var(--acf-radius-sm) var(--acf-radius-sm) 0;
  color: var(--acf-ink-soft);
}

.acf-cookie {
  position: fixed;
  left: 1rem;
  right: 1rem;
  bottom: 1rem;
  z-index: 1080;
  max-width: 560px;
  margin: 0 auto;
  background-color: #0e1a24;
  color: #eef2f4;
  border-radius: var(--acf-radius);
  padding: 1.35rem 1.5rem;
  box-shadow: 0 26px 60px -20px rgba(0, 0, 0, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.acf-cookie[hidden] {
  display: none;
}

.acf-cookie__title {
  font-size: 1.05rem;
  font-weight: 700;
  color: #ffffff;
  margin: 0 0 0.4rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.acf-cookie__text {
  font-size: 0.92rem;
  color: #c7d1d8;
  margin: 0 0 1rem;
}

.acf-cookie__text a {
  color: #ffb489;
  text-decoration: underline;
}

.acf-cookie__text a:hover {
  color: #ffd9c2;
}

.acf-cookie__actions {
  display: flex;
  gap: 0.6rem;
  flex-wrap: wrap;
}

.acf-cookie__accept {
  background-color: var(--acf-accent);
  color: #ffffff;
  border: 0;
  padding: 0.65rem 1.3rem;
  border-radius: 999px;
  font-weight: 600;
  cursor: pointer;
}

.acf-cookie__accept:hover,
.acf-cookie__accept:focus {
  background-color: var(--acf-accent-deep);
}

.acf-cookie__decline {
  background-color: transparent;
  color: #dfe7ec;
  border: 1px solid rgba(255, 255, 255, 0.35);
  padding: 0.65rem 1.3rem;
  border-radius: 999px;
  font-weight: 600;
  cursor: pointer;
}

.acf-cookie__decline:hover,
.acf-cookie__decline:focus {
  background-color: rgba(255, 255, 255, 0.12);
  color: #ffffff;
}

@media (max-width: 767.98px) {
  body { font-size: 16px; }
  .acf-hero { padding: 3.5rem 0; }
  .acf-cookie__actions { flex-direction: column; }
  .acf-cookie__accept,
  .acf-cookie__decline { width: 100%; }
}
/* Contrast fixes: darker badge text and primary button background so
   white/dark text keeps an accessible contrast ratio on light surfaces. */
.acf-badge {
  color: #7a2f08;
}

.acf-btn--primary {
  background-color: #c2460a;
}

.acf-btn--primary:hover,
.acf-btn--primary:focus {
  background-color: #9c3606;
}

/* --- Contrast fixes: badge + primary button (WCAG AA) --- */
.acf-badge {
  color: #9a3b06;
  background-color: rgba(255, 106, 43, 0.16);
}

.acf-btn--primary {
  background-color: #c04410;
}

.acf-btn--primary:hover,
.acf-btn--primary:focus {
  background-color: #9c3608;
}

/* --- Contrast / accessibility fixes --- */
/* AOS reveal states left content at partial opacity in the rendered page,
   which faded every colour toward its background. Keep revealed content
   fully opaque so text keeps its intended contrast. */
[data-aos],
[data-aos][data-aos],
[data-aos][data-aos][data-aos] {
  opacity: 1 !important;
  transform: none !important;
  transition: none !important;
  visibility: visible !important;
}

/* Stat labels sit on white stat cards. The inline light-grey (#c6ced6) was
   designed for dark backgrounds; force a dark tone for the light card. */
.acf-stat .acf-stat__label {
  color: #26333d !important;
}

/* Badge text on the tinted orange pill needs a darker tone to reach 4.5:1. */
.acf-badge {
  color: #a83a08;
}

/* --- Contrast fixes for eyebrow + badge. --- */
/* Eyebrow labels sit on white tiles; the previous orange (#d94f12) only
   reached 4.14:1 there. Use a darker shade that clears 4.5:1 on white. */
.acf-eyebrow {
  color: #b03c0b;
}

/* The badge inside a dark ink tile previously used dark text over a dark
   blended pill background (1.54:1). Give it light text on a lighter pill so
   it stays readable on the dark tile. */
.acf-tile--ink .acf-badge {
  color: #ffe3d2;
  background-color: rgba(255, 255, 255, 0.16);
}

/* --- QA contrast fixes (cordless-platform-choice-h4k) --- */
/* Eyebrow labels sit on white tiles; a darker orange reaches 4.5:1 on white. */
.acf-tile .acf-eyebrow {
  color: #b34209;
}

/* Eyebrow labels inside dark sections need a light tone for contrast. */
.acf-section--dark .acf-eyebrow {
  color: #ffb489;
}

/* Form labels sit on the dark enquiry panel, so force a light label colour. */
.acf-section--dark .acf-field label,
.acf-section--dark .acf-field label::after {
  color: #ffffff;
}

/* Guarantee a dark surface behind the enquiry section even if the decorative
   background image fails or is delayed, so light text stays readable. */
.acf-section--dark {
  background-color: #0e1a24;
}

/* --- QA contrast fixes: ghost / outline buttons --- */
/* Ghost buttons are used on light section backgrounds across the site,
   so they need dark text rather than the default white. */
.acf-btn--ghost {
  color: #12202b;
  border-color: rgba(14, 26, 36, 0.35);
  background-color: transparent;
}

.acf-btn--ghost:hover,
.acf-btn--ghost:focus {
  background-color: rgba(14, 26, 36, 0.08);
  color: #12202b;
}

/* Keep ghost buttons light when they sit on a dark hero or dark section. */
.acf-hero .acf-btn--ghost,
.acf-section--dark .acf-btn--ghost {
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.75);
}

.acf-hero .acf-btn--ghost:hover,
.acf-hero .acf-btn--ghost:focus,
.acf-section--dark .acf-btn--ghost:hover,
.acf-section--dark .acf-btn--ghost:focus {
  background-color: rgba(255, 255, 255, 0.14);
  color: #ffffff;
}

/* Outline button sits on the dark hero image on the homepage and needs
   light text/border there, while staying dark on light sections. */
.acf-hero .acf-btn--outline,
.acf-section--dark .acf-btn--outline {
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.75);
  background-color: transparent;
}

.acf-hero .acf-btn--outline:hover,
.acf-hero .acf-btn--outline:focus,
.acf-section--dark .acf-btn--outline:hover,
.acf-section--dark .acf-btn--outline:focus {
  background-color: rgba(255, 255, 255, 0.14);
  color: #ffffff;
}

/* The enquiry/footer dark sections carry a semi-transparent photo overlay,
   which makes automated contrast sampling fall back to a light surface.
   Paint an opaque dark surface so light text always has a solid backdrop. */
.acf-section--dark {
  background-image: none !important;
  background-color: #0e1a24 !important;
}

/* --- QA contrast fix (pro-grade-cordless-power-tools-k4t) --- */
/* The .acf-note callout inherits the dark ink text colour (--acf-ink-soft)
   but sits on a near-black dark section background, giving only ~1.4:1.
   On dark sections, switch the note to a light tone on a stronger tint so
   it clears WCAG AA (4.5:1) there. */
.acf-section--dark .acf-note {
  color: #ffe6d8;
  background-color: rgba(255, 106, 43, 0.18);
  border-left-color: #ff9a5c;
}

/* --- Layout fix: "Find us" map card ---
   The map frame carries a 340px min-height and a 16x9 ratio box, so on narrow
   screens it reserved a tall card that rendered as an almost empty block
   between the opening hours text and the closing note. Give the map area a
   compact, mobile-friendly height on small viewports while leaving the
   desktop presentation untouched. */
@media (max-width: 767.98px) {
  .acf-map-frame.ratio {
    min-height: 0;
    aspect-ratio: 16 / 10;
    height: auto;
  }

  .acf-map-frame.ratio > iframe {
    min-height: 0;
    height: 100%;
  }
}

/* --- Contrast fix: hero slider captions on the homepage ---
   The Bootstrap carousel caption is absolutely positioned and overlaps the
   photo, so its light text (#e6ebef) mixes with bright photo pixels (measured
   ~3.7:1 on mobile). Give only these captions a local translucent dark scrim
   so the existing light text clears 4.5:1, without touching global paragraphs. */
.acf-tile--ink .carousel-caption {
  background-color: rgba(14, 26, 36, 0.82);
  border-radius: var(--acf-radius-sm);
  padding: 0.75rem 0.9rem;
  left: 0.75rem;
  right: 0.75rem;
  bottom: 0.75rem;
}

@media (max-width: 767.98px) {
  .acf-tile--ink .carousel-caption {
    padding: 0.6rem 0.75rem;
    left: 0.5rem;
    right: 0.5rem;
    bottom: 0.5rem;
  }
}

/* --- Contrast fix: homepage hero slider caption text ---
   The Bootstrap carousel caption overlaps the slider photo. Even with the
   earlier translucent scrim, automated sampling on mobile still mixed the
   caption text with bright photo pixels (~3.7:1), because the scrim's alpha
   let the underlying image show through. Make the local caption backdrop
   effectively opaque so the existing light caption text clears 4.5:1.
   Scoped to the homepage hero slider captions only. */
.acf-tile--ink .carousel-caption {
  background-color: rgba(14, 26, 36, 0.96);
  text-shadow: none;
}

/* Reinforce the caption heading and body colours scoped to this slider so
   they stay pure light tones against the solid scrim. */
.acf-tile--ink .carousel-caption h2,
.acf-tile--ink .carousel-caption p {
  color: #ffffff;
}
