/* Acme service page template. Source: acme-service-template.html (Fifteen). */

/* ===== css/acme-tokens.css ===== */
/* ==========================================================================
   Acme service page template: design tokens
   Source: Acme Brand Guidelines v1.0 (Fifteen, September 2026).
   All values are measured from the live acmefg.com stylesheet unless marked.
   ========================================================================== */

:root {
  /* ---- Brand colour ---------------------------------------------------- */
  --acme-blue:        #003882;  /* Parent colour: structure, headings, buttons, footer */
  --acme-red:         #DB001B;  /* Commercial Kitchens pillar + urgent (24/7 call-out) button only */
  --acme-green:       #7DB01D;  /* Air Conditioning & Ventilation pillar */
  --acme-yellow:      #FEDC00;  /* Service & Maintenance pillar */
  --acme-cyan:        #03A0D9;  /* Refrigeration & Cooling pillar */

  /* ---- Neutrals -------------------------------------------------------- */
  --acme-white:       #FFFFFF;
  --acme-panel:       #F3F3F3;  /* Dominant section background */
  --acme-panel-dark:  #EBEBEB;  /* Hairline dividers inside white panels */
  --acme-rule:        #C1C1C1;  /* Borders, card outlines, form fields */
  --acme-ink:         #222222;  /* Body text */
  --acme-ink-muted:   #555555;  /* Captions, eyebrows on light grounds (7.5:1 on white) */

  /* ---- Pillar accent ---------------------------------------------------
     Set once per page via a body/wrapper class (see .acm-pillar-* below).
     The accent is an IDENTIFIER, never an interactive colour:
     use it for rules, markers, active tabs and borders only.
     Never put white text on it and never use it for buttons or links.   */
  --pillar: var(--acme-red);

  /* ---- Typography ------------------------------------------------------ */
  --font-display: "Patua One", Georgia, serif;          /* ONE weight only: always font-weight: 400 */
  --font-body:    "Open Sans", "Segoe UI", Arial, sans-serif;

  --fs-hero:      clamp(44px, 5vw, 72px);
  --fs-h2:        clamp(30px, 3.2vw, 46px);
  --fs-h2-panel:  clamp(26px, 2.6vw, 38px);
  --fs-h3:        clamp(20px, 1.7vw, 24px);
  --fs-stat:      clamp(22px, 2.1vw, 30px);
  --fs-lead:      clamp(16px, 1.25vw, 18px);
  --fs-body:      16px;
  --fs-small:     14px;
  --fs-label:     13px;   /* Uppercase eyebrows, button labels, card links */
  --fs-micro:     12px;

  --lh-display:   1.05;
  --lh-heading:   1.12;
  --lh-body:      1.55;   /* PROPOSED in guidelines: replaces line-height: normal */
  --tracking-label: 1.2px;

  /* ---- Layout ---------------------------------------------------------- */
  --container:    1280px;   /* Content width inside 80px gutters at 1440 */
  --gutter:       80px;
  --section-pad:  100px;
  --section-pad-tight: 70px;
  --gap-xl:       80px;
  --gap-l:        44px;
  --gap-m:        24px;
  --gap-s:        16px;
  --gap-xs:       10px;

  /* ---- Components ------------------------------------------------------ */
  --radius:       0;        /* Square corners everywhere: brand rule */
  --btn-pad:      22px 44px;
  --btn-pad-sm:   16px 28px;
  --rule-accent:  4px;      /* Eyebrow bars and card top rules */
  --focus-ring:   2px solid var(--acme-blue);

  /* Photography overlay (PROPOSED standard in guidelines): blue 90% → 0% */
  --overlay-hero: linear-gradient(90deg, rgba(0,56,130,0.9) 0%, rgba(0,56,130,0.35) 45%, rgba(0,56,130,0) 100%);
}

@media (max-width: 900px) {
  :root {
    --gutter: 32px;
    --section-pad: 64px;
    --section-pad-tight: 48px;
    --gap-xl: 40px;
    --gap-l: 28px;
  }
}

@media (max-width: 600px) {
  :root {
    --gutter: 16px;
    --section-pad: 44px;
    --section-pad-tight: 36px;
    --gap-xl: 28px;
    --gap-l: 20px;
    --btn-pad: 18px 24px;
  }
}

/* ---- Pillar switch -----------------------------------------------------
   Driven by one ACF page setting ("Pillar"). Output the class on <body>
   or on the template wrapper.                                            */
.acm-pillar-kitchens      { --pillar: var(--acme-red); }
.acm-pillar-air           { --pillar: var(--acme-green); }
.acm-pillar-service       { --pillar: var(--acme-yellow); }
.acm-pillar-refrigeration { --pillar: var(--acme-cyan); }
.acm-pillar-none          { --pillar: var(--acme-blue); }   /* Fit-out, bar design, rental, finance (guidelines option A) */



/* ===== css/acme-modules.css ===== */
/* ==========================================================================
   Acme service page template: module styles
   Requires acme-tokens.css first.
   Naming: .acm-{module}__{element}--{modifier}. Every module is a full-bleed
   <section class="acm-module acm-{module}"> wrapping .acm-container.
   Breakpoints: 1200 (large tablet / small laptop), 900 (tablet), 600 (phone).
   ========================================================================== */

/* ---- Base (scoped so it won't fight the existing theme) ---------------- */
.acm-page { font-family: var(--font-body); font-size: var(--fs-body); line-height: var(--lh-body); color: var(--acme-ink); background: var(--acme-white); }
.acm-page *, .acm-page *::before, .acm-page *::after { box-sizing: border-box; }
.acm-page :where(img) { max-width: 100%; height: auto; display: block; }
/* :where() keeps these resets at low specificity so module classes always win */
.acm-page :where(h1, h2, h3, p, ul, ol, figure, blockquote, address) { margin: 0; }
.acm-page :where(a) { color: var(--acme-blue); text-decoration: underline; text-underline-offset: 2px; }
.acm-page :where(a):hover { color: var(--acme-red); }
.acm-page :is(a, button, input, select, textarea, summary):focus-visible { outline: var(--focus-ring); outline-offset: 2px; }
/* Theme sets its own colours on p/li/span: let modules control them */
.acm-page :where(p, li, span, address, figcaption, blockquote, strong, small) { color: inherit; font-family: inherit; }

.acm-container { width: 100%; max-width: calc(var(--container) + 2 * var(--gutter)); margin: 0 auto; padding: 0 var(--gutter); }
.acm-module { padding: var(--section-pad) 0; }
.acm-module--panel { background: var(--acme-panel); }
.acm-module--flush { padding: 0; }

/* ---- Type helpers ------------------------------------------------------ */
.acm-h1, .acm-h2, .acm-h3, .acm-display { font-family: var(--font-display); font-weight: 400; color: var(--acme-blue); }
.acm-h2 { font-size: var(--fs-h2); line-height: 1.1; }
.acm-h2--panel { font-size: var(--fs-h2-panel); line-height: var(--lh-heading); }
.acm-h3 { font-size: var(--fs-h3); line-height: 1.2; }
.acm-lead { font-size: var(--fs-lead); }
.acm-muted { color: #444444; }
.acm-on-dark, .acm-on-dark .acm-h1, .acm-on-dark .acm-h2, .acm-on-dark .acm-h3 { color: var(--acme-white); }
.acm-on-dark a:not(.acm-btn) { color: var(--acme-white); }
.acm-on-dark a:not(.acm-btn):hover { color: var(--acme-white); text-decoration-thickness: 2px; }
.acm-on-dark :is(a, button):focus-visible { outline-color: var(--acme-white); }

/* Eyebrow: optional on every module. Bar uses the pillar colour. */
.acm-page .acm-eyebrow { display: flex; align-items: center; gap: 12px; font-size: var(--fs-label); letter-spacing: var(--tracking-label); text-transform: uppercase; color: var(--acme-blue); }
.acm-page .acm-eyebrow::before { content: ""; width: 40px; height: var(--rule-accent); background: var(--pillar); flex-shrink: 0; }
.acm-eyebrow--blue::before { background: var(--acme-blue); }
.acm-on-dark .acm-eyebrow { color: var(--acme-white); }

/* Section head: heading (+ eyebrow) left, optional intro right */
.acm-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 40px; margin-bottom: var(--gap-l); }
.acm-head__main { display: flex; flex-direction: column; gap: 16px; max-width: 760px; }
.acm-head__aside { max-width: 420px; color: #444444; }
.acm-head--stack { flex-direction: column; align-items: flex-start; gap: 16px; }

/* ---- Buttons ------------------------------------------------------------
   Square, uppercase. Variants map to the ACF "style" select:
   primary (blue) · secondary (blue outline) · light (white, on blue only)
   · light-outline (white outline, on blue only) · urgent (red: 24/7 call-out ONLY) */
.acm-btn { display: inline-flex; align-items: center; justify-content: center; text-align: center; gap: 10px; border: 2px solid transparent; border-radius: var(--radius); padding: var(--btn-pad); font-family: var(--font-body); font-size: 15px; font-weight: 600; letter-spacing: 1px; text-transform: uppercase; text-decoration: none !important; line-height: 1.2; cursor: pointer; transition: background-color .15s, color .15s, border-color .15s; }
.acm-btn--sm { padding: var(--btn-pad-sm); font-size: 14px; }
.acm-btn--primary { background: var(--acme-blue); color: var(--acme-white) !important; border-color: var(--acme-blue); }
.acm-btn--primary:hover { background: #002a63; border-color: #002a63; }
.acm-btn--secondary { background: transparent; color: var(--acme-blue) !important; border-color: var(--acme-blue); }
.acm-btn--secondary:hover { background: var(--acme-blue); color: var(--acme-white) !important; }
.acm-btn--light { background: var(--acme-white); color: var(--acme-blue) !important; border-color: var(--acme-white); }
.acm-btn--light:hover { background: var(--acme-panel); }
.acm-btn--light-outline { background: transparent; color: var(--acme-white) !important; border-color: var(--acme-white); }
.acm-btn--light-outline:hover { background: var(--acme-white); color: var(--acme-blue) !important; }
.acm-btn--urgent { background: var(--acme-red); color: var(--acme-white) !important; border-color: var(--acme-red); }
.acm-btn--urgent:hover { background: #b30016; border-color: #b30016; }
.acm-btns { display: flex; flex-wrap: wrap; gap: 16px; }
.acm-textlink { font-size: var(--fs-label); font-weight: 600; letter-spacing: 1px; text-transform: uppercase; color: var(--acme-blue); }
.acm-textlink::after { content: " \2192"; }

/* Marker square used in checklists */
.acm-marker { width: 10px; height: 10px; margin-top: 8px; background: var(--pillar); flex-shrink: 0; }

/* ==========================================================================
   GLOBAL: utility bar + four-colour strip (sit directly under existing header)
   ========================================================================== */
.acm-utility { background: var(--acme-blue); color: var(--acme-white); font-size: var(--fs-label); }
.acm-utility__inner { min-height: 40px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.acm-utility__tagline { letter-spacing: 1px; text-transform: uppercase; }
.acm-utility__links { display: flex; align-items: center; gap: 28px; }
.acm-utility a { color: var(--acme-white); text-decoration: none; }
.acm-utility a:hover { color: var(--acme-white); text-decoration: underline; }
.acm-utility__phone { font-weight: 700; }

.acm-strip { display: flex; height: 6px; }
.acm-strip > span { flex: 1 1 0; }
.acm-strip > span:nth-child(1) { background: var(--acme-red); }
.acm-strip > span:nth-child(2) { background: var(--acme-green); }
.acm-strip > span:nth-child(3) { background: var(--acme-yellow); }
.acm-strip > span:nth-child(4) { background: var(--acme-cyan); }

/* ---- Breadcrumb (Yoast output, restyled) ------------------------------- */
.acm-breadcrumb { background: var(--acme-panel); font-size: var(--fs-label); color: var(--acme-ink-muted); }
.acm-breadcrumb .acm-container { min-height: 44px; display: flex; align-items: center; }
.acm-breadcrumb ol { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.acm-breadcrumb li + li::before { content: "/"; margin-right: 10px; }
.acm-breadcrumb [aria-current] { color: var(--acme-ink); }
/* Yoast default output (spans + separator set to "/" in Yoast settings) */
.acm-breadcrumb .acm-container > span { display: flex; flex-wrap: wrap; gap: 10px; }
.acm-breadcrumb .breadcrumb_last { color: var(--acme-ink); }

/* ==========================================================================
   hero
   ========================================================================== */
.acm-hero { position: relative; background: var(--acme-blue); color: var(--acme-white); overflow: hidden; padding: 0; }
.acm-hero__media { position: absolute; inset: 0 0 0 auto; width: 62.5%; }
.acm-hero__media img { width: 100%; height: 100%; object-fit: cover; }
.acm-hero__media::after { content: ""; position: absolute; inset: 0; background: var(--overlay-hero); }
/* Device 2 of 2: the diagonal cut */
.acm-hero__panel { position: absolute; inset: 0 auto 0 0; width: 50%; background: var(--acme-blue); clip-path: polygon(0 0, 100% 0, 84% 100%, 0 100%); }
.acm-hero .acm-container { position: relative; min-height: 600px; display: flex; align-items: flex-start; }
.acm-hero__content { width: min(560px, 100%); padding: 88px 0 72px; display: flex; flex-direction: column; gap: 22px; }
.acm-hero__title { font-family: var(--font-display); font-weight: 400; font-size: var(--fs-hero); line-height: 1.02; letter-spacing: -0.5px; color: var(--acme-white); }
.acm-hero__strap { font-size: clamp(18px, 1.6vw, 22px); font-weight: 600; line-height: 1.3; }
.acm-hero__body { font-size: 17px; font-weight: 300; max-width: 500px; }
.acm-hero .acm-btns { margin-top: 10px; }
.acm-hero__note { font-size: var(--fs-label); opacity: .85; }

/* ==========================================================================
   proof_strip (3–5 items)
   ========================================================================== */
.acm-proof { padding: 0; border-bottom: 1px solid var(--acme-rule); }
.acm-proof__list { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(var(--cols, 5), minmax(0, 1fr)); }
.acm-proof__item { padding: 30px 24px; display: flex; flex-direction: column; gap: 4px; border-left: 1px solid var(--acme-panel-dark); }
.acm-proof__item:first-child { padding-left: 0; border-left: 0; }
.acm-proof__item:last-child { padding-right: 0; }
.acm-proof__stat { font-family: var(--font-display); font-size: var(--fs-stat); line-height: 1.15; color: var(--acme-blue); }
.acm-proof__label { font-size: var(--fs-small); color: #444444; }

/* ==========================================================================
   jump_nav (optional; auto-built from modules flagged "show in jump nav")
   ========================================================================== */
.acm-jumpnav { padding: 14px 0; background: var(--acme-panel); position: sticky; top: 0; z-index: 20; }
.acm-jumpnav ul { list-style: none; padding: 0; display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; white-space: nowrap; }
.acm-jumpnav ul::-webkit-scrollbar { display: none; }
.acm-jumpnav a { display: inline-block; padding: 10px 14px; font-size: var(--fs-label); border: 1px solid var(--acme-rule); background: var(--acme-white); color: var(--acme-blue); text-decoration: none; }
.acm-jumpnav a[aria-current="true"], .acm-jumpnav a:hover { background: var(--acme-blue); border-color: var(--acme-blue); color: var(--acme-white); }

/* ==========================================================================
   text_checklist
   ========================================================================== */
.acm-textcheck__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--gap-xl); align-items: start; }
.acm-textcheck__text { display: flex; flex-direction: column; gap: 20px; }
.acm-textcheck__body p { font-size: var(--fs-lead); }
.acm-textcheck__body > * + * { margin-top: 16px; }
.acm-textcheck__panel { background: var(--acme-panel); padding: var(--gap-l); display: flex; flex-direction: column; gap: 18px; }
.acm-checklist { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(var(--cols, 2), minmax(0, 1fr)); gap: 16px 28px; }
.acm-checklist li { display: flex; gap: 12px; align-items: flex-start; }
.acm-checklist li::before { content: ""; width: 10px; height: 10px; margin-top: 8px; background: var(--pillar); flex-shrink: 0; }

/* ==========================================================================
   process_steps (3–6 steps; columns follow the count)
   ========================================================================== */
.acm-steps { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(var(--cols, 6), minmax(0, 1fr)); gap: 20px; counter-reset: acm-step; }
.acm-steps__item { background: var(--acme-white); padding: 28px 24px; border-top: var(--rule-accent) solid var(--pillar); display: flex; flex-direction: column; gap: 10px; counter-increment: acm-step; }
.acm-steps__item::before { content: counter(acm-step, decimal-leading-zero); font-family: var(--font-display); font-size: 34px; line-height: 1.1; color: var(--acme-blue); }
.acm-steps__title { font-size: 17px; font-weight: 700; color: var(--acme-blue); }
.acm-steps__text { font-size: var(--fs-small); }
.acm-steps__link { font-size: var(--fs-small); margin-top: auto; }
.acm-module--white .acm-steps__item { background: var(--acme-panel); }

/* ==========================================================================
   card_grid (sub-service hub links)
   ========================================================================== */
.acm-cards { display: grid; grid-template-columns: repeat(var(--cols, 3), minmax(0, 1fr)); gap: 24px; list-style: none; padding: 0; }
.acm-card { position: relative; min-height: 180px; border: 1px solid var(--acme-rule); padding: 32px; display: flex; flex-direction: column; gap: 12px; color: var(--acme-ink); background: var(--acme-white); transition: border-color .15s, box-shadow .15s; }
.acm-card::before { content: ""; width: 32px; height: var(--rule-accent); background: var(--pillar); }
.acm-card--parent::before { background: var(--acme-blue); }      /* Cross-pillar card (fit-out, rental…) */
.acm-card:hover { border-color: var(--acme-blue); box-shadow: inset 0 0 0 1px var(--acme-blue); }
.acm-card__title { font-family: var(--font-display); font-size: var(--fs-h3); line-height: 1.2; color: var(--acme-blue); }
.acm-card__title a { color: inherit; text-decoration: none; }
.acm-card__title a::after { content: ""; position: absolute; inset: 0; }   /* Whole card clickable, one link */
.acm-card__text { font-size: 15px; }
.acm-card__more { margin-top: auto; }

/* ==========================================================================
   audience_split (two panels: blue + grey)
   ========================================================================== */
.acm-split { padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.acm-split__panel { padding: 90px 72px 90px max(var(--gutter), calc((100vw - var(--container)) / 2)); display: flex; flex-direction: column; gap: 22px; }
.acm-split__panel + .acm-split__panel { padding: 90px max(var(--gutter), calc((100vw - var(--container)) / 2)) 90px 72px; }
.acm-split__panel--blue { background: var(--acme-blue); color: var(--acme-white); }
.acm-split__panel--grey { background: var(--acme-panel); }
.acm-split__intro { font-size: 17px; }
.acm-split__panel--blue .acm-split__intro { font-weight: 300; }
.acm-ticks { list-style: none; padding: 0; display: flex; flex-direction: column; gap: 14px; }
.acm-ticks li { position: relative; padding-left: 32px; }
.acm-ticks li::before { content: ""; position: absolute; left: 0; top: 3px; width: 20px; height: 20px; background: currentColor; -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='none' stroke='%23000' stroke-width='2'%3E%3Cpath d='M4 10.5l4 4 8-9'/%3E%3C/svg%3E") center/contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='none' stroke='%23000' stroke-width='2'%3E%3Cpath d='M4 10.5l4 4 8-9'/%3E%3C/svg%3E") center/contain no-repeat; }
.acm-split__panel--grey .acm-ticks li::before { background: var(--acme-blue); }
.acm-callout { border-left: var(--rule-accent) solid currentColor; padding: 4px 0 4px 20px; font-size: 15px; margin-top: 8px; }
.acm-split__panel--grey .acm-callout { border-color: var(--acme-blue); }
.acm-split__img { width: 100%; aspect-ratio: 5 / 2; object-fit: cover; margin-top: 8px; }

/* ==========================================================================
   image_cards (three-up) + sector chips
   ========================================================================== */
.acm-chips { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: var(--gap-l); }
.acm-chip { display: inline-block; border: 1px solid var(--acme-rule); padding: 10px 16px; font-size: var(--fs-small); color: var(--acme-blue); text-decoration: none !important; background: var(--acme-white); }
a.acm-chip:hover { border-color: var(--acme-blue); background: var(--acme-blue); color: var(--acme-white); }
.acm-imgcards { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(var(--cols, 3), minmax(0, 1fr)); gap: 28px; }
.acm-imgcard { display: flex; flex-direction: column; gap: 14px; }
.acm-imgcard img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.acm-imgcard p { font-size: 15px; }

/* ==========================================================================
   case_studies: quote + client logo carousel + case cards + button
   ========================================================================== */
.acm-cases { display: flex; flex-direction: column; gap: 48px; }
.acm-quote { display: grid; grid-template-columns: 80px minmax(0, 1fr); gap: 24px; align-items: start; }
.acm-quote__mark { font-family: var(--font-display); font-size: 120px; line-height: .8; color: var(--pillar); }
.acm-quote__body { display: flex; flex-direction: column; gap: 18px; }
.acm-quote blockquote { font-family: var(--font-display); font-size: clamp(22px, 2.5vw, 36px); line-height: 1.25; color: var(--acme-blue); max-width: 1000px; }
.acm-quote figcaption { font-size: 15px; }

.acm-logos { border-top: 1px solid var(--acme-rule); padding-top: 32px; display: flex; flex-direction: column; gap: 20px; }
.acm-logos__head { display: flex; justify-content: space-between; align-items: center; gap: 24px; }
.acm-logos__title { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 16px; }
.acm-logos__range { font-size: var(--fs-small); color: var(--acme-ink-muted); }
.acm-logos__controls { display: flex; gap: 8px; }
.acm-iconbtn { width: 48px; height: 48px; display: inline-flex; align-items: center; justify-content: center; border: 2px solid var(--acme-blue); border-radius: 0; background: var(--acme-white); color: var(--acme-blue); cursor: pointer; padding: 0; }
.acm-iconbtn--fill { background: var(--acme-blue); color: var(--acme-white); }
.acm-iconbtn[disabled] { opacity: .35; cursor: default; }
.acm-iconbtn svg { width: 18px; height: 18px; }
.acm-logos__viewport { overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth; scrollbar-width: none; overscroll-behavior-x: contain; }
.acm-logos__viewport::-webkit-scrollbar { display: none; }
.acm-logos__track { --per-view: 7; list-style: none; padding: 0; display: grid; grid-auto-flow: column; grid-auto-columns: calc((100% - (var(--per-view) - 1) * 16px) / var(--per-view)); gap: 16px; }
.acm-logos__tile { scroll-snap-align: start; aspect-ratio: 168 / 124; background: var(--acme-white); display: flex; align-items: center; justify-content: center; padding: 18px; }
.acm-module--white .acm-logos__tile { background: var(--acme-panel); }
.acm-logos__tile img { max-width: 80%; max-height: 58%; width: auto; height: auto; object-fit: contain; }
.acm-logos__dots { display: flex; gap: 8px; align-items: center; }
.acm-logos__dots { gap: 4px; margin-left: -2px; }
.acm-logos__dot { position: relative; width: 24px; height: 24px; padding: 0; border: 0; background: none; cursor: pointer; transition: width .2s; }   /* 24px hit area (WCAG 2.2 target size) */
.acm-logos__dot::before { content: ""; position: absolute; left: 2px; right: 2px; top: 10px; height: 4px; background: var(--acme-rule); transition: background-color .2s; }
.acm-logos__dot[aria-current="true"] { width: 44px; }
.acm-logos__dot[aria-current="true"]::before { background: var(--pillar); }

.acm-casecards { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; }
.acm-casecard { position: relative; background: var(--acme-white); display: flex; flex-direction: column; }
.acm-module--white .acm-casecard { background: var(--acme-panel); }
.acm-casecard img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.acm-casecard__body { padding: 26px; display: flex; flex-direction: column; gap: 10px; flex-grow: 1; }
.acm-casecard__meta { font-size: var(--fs-micro); letter-spacing: var(--tracking-label); text-transform: uppercase; color: var(--acme-ink-muted); }
.acm-casecard__title { font-family: var(--font-display); font-size: var(--fs-h3); line-height: 1.2; color: var(--acme-blue); }
.acm-casecard__title a { color: inherit; text-decoration: none; }
.acm-casecard__title a::after { content: ""; position: absolute; inset: 0; }
.acm-casecard__text { font-size: 15px; }
.acm-casecard__more { margin-top: auto; }
.acm-casecard:hover .acm-casecard__title { text-decoration: underline; }
.acm-cases > .acm-btn { align-self: flex-start; }

/* ==========================================================================
   comparison (2–3 options; one may be featured)
   ========================================================================== */
.acm-compare { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(var(--cols, 3), minmax(0, 1fr)); gap: 24px; }
.acm-compare__col { position: relative; border: 1px solid var(--acme-rule); padding: 36px; display: flex; flex-direction: column; gap: 16px; background: var(--acme-white); }
.acm-compare__col--featured { border: 2px solid var(--acme-blue); }
.acm-compare__badge { position: absolute; top: -14px; left: 32px; background: var(--acme-blue); color: var(--acme-white); font-size: var(--fs-micro); letter-spacing: var(--tracking-label); text-transform: uppercase; padding: 4px 12px; }
.acm-compare__title { font-family: var(--font-display); font-weight: 400; font-size: var(--fs-stat); color: var(--acme-blue); }
.acm-compare__text, .acm-compare__list { font-size: 15px; }
.acm-compare__list { padding-left: 18px; display: flex; flex-direction: column; gap: 6px; }
.acm-compare__col .acm-btn { margin-top: auto; }

/* ==========================================================================
   aftercare_band (image + blue panel)
   ========================================================================== */
.acm-band { padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); background: var(--acme-blue); color: var(--acme-white); }
.acm-band__media { position: relative; min-height: 440px; }
.acm-band__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.acm-band__content { padding: 70px max(var(--gutter), calc((100vw - var(--container)) / 2)) 70px 72px; display: flex; flex-direction: column; justify-content: center; gap: 20px; }
.acm-band--reverse .acm-band__media { order: 2; }
.acm-band--reverse .acm-band__content { padding: 70px 72px 70px max(var(--gutter), calc((100vw - var(--container)) / 2)); }
.acm-band__body { font-size: 17px; font-weight: 300; }
.acm-band .acm-btns { margin-top: 6px; }

/* ==========================================================================
   faqs (accordion; outputs FAQPage JSON-LD server-side)
   ========================================================================== */
.acm-faqs__grid { display: grid; grid-template-columns: 380px minmax(0, 1fr); gap: var(--gap-xl); align-items: start; }
.acm-faqs__intro { display: flex; flex-direction: column; gap: 16px; position: sticky; top: 100px; }
.acm-faq { border-top: 1px solid var(--acme-rule); }
.acm-faq__item { border-bottom: 1px solid var(--acme-rule); }
.acm-faq__q { margin: 0; font: inherit; }
.acm-faq__btn { all: unset; box-sizing: border-box; width: 100%; padding: 24px 0; display: flex; justify-content: space-between; align-items: center; gap: 20px; font-size: 19px; font-weight: 600; line-height: 1.35; color: var(--acme-blue); cursor: pointer; }
.acm-faq__btn:focus-visible { outline: var(--focus-ring); outline-offset: 2px; }
.acm-faq__icon { position: relative; width: 18px; height: 18px; flex-shrink: 0; }
.acm-faq__icon::before, .acm-faq__icon::after { content: ""; position: absolute; left: 0; top: 8px; width: 18px; height: 2px; background: currentColor; transition: transform .2s; }
.acm-faq__icon::after { transform: rotate(90deg); }
.acm-faq__btn[aria-expanded="true"] .acm-faq__icon::after { transform: rotate(0deg); }
.acm-faq__a { padding: 0 0 24px; max-width: 780px; }
.acm-faq__a[hidden] { display: none; }
.acm-faq__a > * + * { margin-top: 12px; }

/* ==========================================================================
   cta_band
   ========================================================================== */
.acm-cta { background: var(--acme-panel); border-top: 6px solid var(--pillar); padding: 80px 0; }
.acm-cta__inner { display: flex; justify-content: space-between; align-items: center; gap: 60px; }
.acm-cta__text { display: flex; flex-direction: column; gap: 14px; max-width: 760px; }
.acm-cta__body { font-size: var(--fs-lead); }
.acm-cta .acm-btns { flex-direction: column; flex-shrink: 0; }

/* ==========================================================================
   contact (text + form). Form markup comes from the form plugin;
   .acm-form styles target plain inputs so they work with most plugins.
   ========================================================================== */
.acm-contact__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--gap-xl); align-items: start; }
.acm-contact__text { display: flex; flex-direction: column; gap: 18px; }
.acm-contact__body { font-size: 17px; }
.acm-contact__details { display: flex; flex-direction: column; gap: 6px; margin-top: 10px; font-style: normal; }
.acm-contact__phone { font-weight: 700; color: var(--acme-blue); }
.acm-form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.acm-form__field { display: flex; flex-direction: column; gap: 6px; }
.acm-form__field--full { grid-column: 1 / -1; }
.acm-form label { font-size: var(--fs-small); font-weight: 600; }
.acm-form :is(input, select, textarea) { width: 100%; min-height: 50px; border: 1px solid var(--acme-rule); border-radius: 0; padding: 0 14px; font: inherit; color: var(--acme-ink); background: var(--acme-white); }
.acm-form textarea { padding: 12px 14px; min-height: 130px; resize: vertical; }
.acm-form :is(input, select, textarea):focus { border-color: var(--acme-blue); }
.acm-form [aria-invalid="true"] { border-color: var(--acme-red); }
.acm-form__error { font-size: var(--fs-small); color: var(--acme-red); }
.acm-form__privacy { grid-column: 1 / -1; font-size: var(--fs-small); color: var(--acme-ink-muted); }
.acm-form button[type="submit"], .acm-form input[type="submit"] { grid-column: 1 / -1; justify-self: start; }

/* ==========================================================================
   GLOBAL: footer (options page + menus)
   ========================================================================== */
.acm-footer { background: var(--acme-blue); color: var(--acme-white); font-size: var(--fs-small); }
.acm-footer a { color: var(--acme-white); text-decoration: none; }
.acm-footer a:hover { color: var(--acme-white); text-decoration: underline; }
.acm-footer :is(a, button):focus-visible { outline: 2px solid var(--acme-white); outline-offset: 2px; }
.acm-footer__cols { padding: 70px 0 40px; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 40px; }
.acm-footer__brand { display: flex; flex-direction: column; gap: 12px; }
.acm-footer__brand img { max-width: 140px; }
.acm-footer__brand address { font-style: normal; opacity: .85; }
.acm-footer__col { display: flex; flex-direction: column; gap: 10px; }
.acm-footer__col ul { list-style: none; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.acm-footer__heading { font-weight: 700; padding-bottom: 8px; border-bottom: 3px solid var(--col-accent, var(--acme-white)); }
.acm-footer__col--kitchens      { --col-accent: var(--acme-red); }
.acm-footer__col--air           { --col-accent: var(--acme-green); }
.acm-footer__col--service       { --col-accent: var(--acme-yellow); }
.acm-footer__col--refrigeration { --col-accent: var(--acme-cyan); }
.acm-footer__base { padding: 28px 0; border-top: 1px solid rgba(255,255,255,.25); display: flex; justify-content: space-between; gap: 20px; font-size: var(--fs-label); opacity: .85; }

/* ==========================================================================
   GLOBAL: mobile sticky action bar (phones only)
   ========================================================================== */
.acm-actionbar { display: none; }

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1200px) {
  .acm-steps { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .acm-logos__track { --per-view: 5; }
  .acm-faqs__grid { grid-template-columns: 300px minmax(0, 1fr); }
  .acm-footer__cols { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .acm-footer__brand { grid-column: 1 / -1; }
  .acm-hero__content { width: min(500px, 100%); }
}

@media (max-width: 900px) {
  .acm-head { flex-direction: column; align-items: flex-start; gap: 16px; }
  .acm-proof__list { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .acm-proof__item:nth-child(4) { padding-left: 0; border-left: 0; }
  .acm-proof__item:nth-child(n+4) { border-top: 1px solid var(--acme-panel-dark); }
  .acm-textcheck__grid, .acm-contact__grid, .acm-faqs__grid { grid-template-columns: minmax(0, 1fr); }
  .acm-faqs__intro { position: static; }
  .acm-cards, .acm-imgcards, .acm-casecards, .acm-compare { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .acm-split { grid-template-columns: minmax(0, 1fr); }
  .acm-split__panel, .acm-split__panel + .acm-split__panel { padding: var(--section-pad) var(--gutter); }
  .acm-band { grid-template-columns: minmax(0, 1fr); }
  .acm-band__media { min-height: 0; aspect-ratio: 16 / 9; }
  .acm-band__content, .acm-band--reverse .acm-band__content { padding: var(--section-pad) var(--gutter); }
  .acm-band--reverse .acm-band__media { order: 0; }
  .acm-cta__inner { flex-direction: column; align-items: flex-start; gap: 28px; }
  .acm-cta .acm-btns { flex-direction: row; }
  .acm-logos__track { --per-view: 4; }
  .acm-utility__tagline { display: none; }
  .acm-utility__inner { justify-content: flex-end; }

  /* Hero: photo on top, blue panel below, no diagonal */
  .acm-hero__media { position: relative; width: 100%; aspect-ratio: 16 / 9; }
  .acm-hero__media::after { display: none; }
  .acm-hero__panel { display: none; }
  .acm-hero .acm-container { min-height: 0; }
  .acm-hero__content { width: 100%; padding: 40px 0 48px; }
}

/* Tablet only: 3-item rows become horizontal cards instead of a 2 + 1 grid */
@media (min-width: 601px) and (max-width: 900px) {
  .acm-imgcards, .acm-casecards, .acm-compare { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .acm-imgcard { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); grid-template-rows: auto 1fr; gap: 10px 24px; align-items: start; }
  .acm-imgcard img { grid-row: 1 / span 2; }
  .acm-casecard { flex-direction: row; }
  .acm-casecard img { flex: 0 0 42%; width: 42%; aspect-ratio: 4 / 3; }
}

@media (max-width: 600px) {
  .acm-page .acm-eyebrow { font-size: var(--fs-micro); gap: 10px; }
  .acm-page .acm-eyebrow::before { width: 32px; }
  .acm-h2 { font-size: 32px; line-height: 1.12; }
  .acm-h2--panel { font-size: 28px; line-height: 1.15; }
  .acm-head { margin-bottom: 20px; }
  .acm-btns { flex-direction: column; align-items: stretch; gap: 12px; }
  .acm-cta .acm-btns { flex-direction: column; align-self: stretch; }

  .acm-utility__links > :not(.acm-utility__phone) { display: none; }
  .acm-utility__inner { justify-content: center; }
  .acm-strip { height: 5px; }

  .acm-hero__media { aspect-ratio: 390 / 220; }
  .acm-hero__content { padding: 28px 0 32px; gap: 14px; }
  .acm-hero__body { font-size: 15px; }
  .acm-hero__strap { font-size: 18px; }

  .acm-proof__list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .acm-proof__item, .acm-proof__item:first-child, .acm-proof__item:last-child { padding: 18px 16px; border-left: 0; border-top: 0; border-bottom: 1px solid var(--acme-panel-dark); }
  .acm-proof__item:nth-child(odd) { border-right: 1px solid var(--acme-panel-dark); padding-left: 0; }
  .acm-proof__item:nth-child(n+5) { display: none; }           /* Phones show the first 4 facts */
  .acm-proof .acm-container { padding-right: 0; }
  .acm-proof__stat { font-size: 22px; }
  .acm-proof__label { font-size: var(--fs-label); }

  .acm-textcheck__panel { padding: 22px 18px; }
  .acm-checklist { grid-template-columns: minmax(0, 1fr); gap: 12px; font-size: 15px; }

  /* Process: vertical list with left rule */
  .acm-steps { grid-template-columns: minmax(0, 1fr); gap: 10px; }
  .acm-steps__item { display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 4px 12px; padding: 16px; border-top: 0; border-left: var(--rule-accent) solid var(--pillar); }
  .acm-steps__item::before { grid-row: span 3; font-size: 24px; }
  .acm-steps__title { font-size: 15px; }

  /* Card grid collapses to a link list */
  .acm-cards { grid-template-columns: minmax(0, 1fr); gap: 0; border-top: 1px solid var(--acme-rule); }
  .acm-card { min-height: 56px; padding: 14px 32px 14px 0; border: 0; border-bottom: 1px solid var(--acme-rule); gap: 0; justify-content: center; }
  .acm-card:hover { box-shadow: none; }
  .acm-card::before { display: none; }
  .acm-card::after { content: "\2192"; position: absolute; right: 4px; top: 50%; transform: translateY(-50%); color: var(--acme-blue); }
  .acm-card__title { font-family: var(--font-body); font-size: 16px; font-weight: 600; }
  .acm-card__text, .acm-card__more { display: none; }

  .acm-split__img { display: none; }
  .acm-ticks { gap: 10px; font-size: 15px; }

  .acm-imgcards, .acm-casecards, .acm-compare { grid-template-columns: minmax(0, 1fr); gap: 20px; }
  .acm-compare { gap: 28px; }
  .acm-compare__col { padding: 24px 18px; }
  .acm-chips { flex-wrap: nowrap; overflow-x: auto; margin-right: calc(-1 * var(--gutter)); padding-right: var(--gutter); scrollbar-width: none; }
  .acm-chip { white-space: nowrap; }

  .acm-quote { grid-template-columns: minmax(0, 1fr); gap: 0; border-top: var(--rule-accent) solid var(--pillar); padding-top: 18px; }
  .acm-quote__mark { display: none; }
  .acm-logos__head { align-items: flex-start; }
  .acm-logos__controls { display: none; }                      /* Swipe on phones */
  .acm-logos__track { --per-view: 2.4; gap: 12px; grid-auto-columns: calc((100% - 2 * 12px) / 2.4); }
  .acm-casecard__body { padding: 18px; }

  .acm-faq__btn { font-size: 16px; padding: 18px 0; gap: 12px; }
  .acm-faq__a { font-size: 15px; padding-bottom: 18px; }

  .acm-cta { padding: 40px 0; border-top-width: 5px; }

  .acm-form { grid-template-columns: minmax(0, 1fr); gap: 14px; }
  .acm-form :is(input, select) { min-height: 48px; }
  .acm-form button[type="submit"], .acm-form input[type="submit"] { justify-self: stretch; }

  .acm-footer__cols { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px 16px; padding: 36px 0 26px; }
  .acm-footer__base { flex-direction: column; gap: 8px; font-size: var(--fs-micro); padding-bottom: 100px; }  /* Clears the action bar */

  .acm-actionbar { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; position: fixed; left: 0; right: 0; bottom: 0; z-index: 50; padding: 12px 16px calc(12px + env(safe-area-inset-bottom)); background: var(--acme-white); border-top: 1px solid var(--acme-rule); transform: translateY(100%); transition: transform .25s ease; }
  .acm-actionbar.is-visible { transform: none; }
  .acm-actionbar .acm-btn { padding: 14px 10px; font-size: var(--fs-label); }
}

@media (prefers-reduced-motion: reduce) {
  .acm-page *, .acm-actionbar { transition: none !important; scroll-behavior: auto !important; }
}

@media print {
  .acm-actionbar, .acm-logos__controls, .acm-jumpnav { display: none !important; }
  .acm-faq__a[hidden] { display: block; }
}


/* ==========================================================================
   WordPress integration (Fifteen): additions for the live theme
   ========================================================================== */
/* Keep theme element styles out of the modules */
.acm-page :where(li) { margin: 0; }
.acm-page :where(h1, h2, h3) { text-transform: none; letter-spacing: normal; }
.acm-page :where(strong) { font-weight: 700; }
.acm-page { overflow-x: clip; }

/* Text-only service cards (no link yet) */
.acm-card--static:hover { border-color: var(--acme-rule); box-shadow: none; }

/* Text + checklist without a checklist */
.acm-textcheck__grid--single { grid-template-columns: minmax(0, 1fr); max-width: 860px; }

.acm-callout p + p, .acm-faqs__introtext p + p { margin-top: 8px; }
.acm-module--white { background: var(--acme-white); }

/* Contact Form 7 inside the contact module.
   The theme styles #contact-form for its red band (white text, table cells),
   so these rules are scoped with #acm-page to win without !important. */
#acm-page .acm-contact__form .wpcf7 { margin: 0; }
#acm-page .acm-contact__form #contact-form { display: block; width: 100%; margin: 0; padding: 0; text-align: left; background: none; }
#acm-page .acm-contact__form #contact-form p { display: block; width: auto; margin: 0 0 16px; text-align: left; }
#acm-page .acm-contact__form #contact-form br { display: none; }
#acm-page .acm-contact__form #contact-form :is(label, .cformtext2) { display: block; width: auto; margin: 0 0 6px; padding: 0; white-space: normal; font-size: var(--fs-small); font-weight: 600; color: var(--acme-ink); }
#acm-page .acm-contact__form #contact-form .cformtext2::first-letter { text-transform: uppercase; }
/* The site form is written as a sentence ("Hi my name is … and my email address is …").
   Here each part becomes a stacked field: hide the joining words and full stops. */
#acm-page .acm-contact__form #contact-form p > span:not(.wpcf7-form-control-wrap):not(.cformtext2) { display: none; }
#acm-page .acm-contact__form #contact-form .wpcf7-form-control-wrap { display: block; width: auto; padding: 0; white-space: normal; position: relative; }
#acm-page .acm-contact__form #contact-form :is(input[type="text"], input[type="email"], input[type="tel"], select, textarea) { display: block; width: 100%; height: auto; min-height: 50px; margin: 0; border: 1px solid var(--acme-rule); border-radius: 0; padding: 0 14px; font: inherit; font-size: 16px; color: var(--acme-ink); background-color: var(--acme-white); box-shadow: none; text-align: left; }
#acm-page .acm-contact__form #contact-form select { padding-right: 36px; background-position: calc(100% - 14px) center; -webkit-appearance: none; appearance: none; }
#acm-page .acm-contact__form #contact-form textarea { padding: 12px 14px; min-height: 130px; }
#acm-page .acm-contact__form #contact-form ::placeholder { color: #767676; opacity: 1; }
#acm-page .acm-contact__form #contact-form :is(input, select, textarea):focus { border-color: var(--acme-blue); outline: var(--focus-ring); outline-offset: 0; }
#acm-page .acm-contact__form #contact-form input[type="submit"] { display: inline-flex; width: auto; min-height: 0; margin: 8px 0 0; border: 2px solid var(--acme-blue); border-radius: 0; padding: var(--btn-pad); background: var(--acme-blue); color: var(--acme-white); font-family: var(--font-body); font-size: 15px; font-weight: 600; letter-spacing: 1px; text-transform: uppercase; cursor: pointer; }
#acm-page .acm-contact__form #contact-form input[type="submit"]:hover { background: #002a63; border-color: #002a63; color: var(--acme-white); }
#acm-page .acm-contact__form #contact-form .wpcf7-not-valid { border-color: var(--acme-red) !important; border-bottom-style: solid !important; border-bottom-width: 1px !important; }
#acm-page .acm-contact__form #contact-form .wpcf7-not-valid-tip { position: static; width: auto; height: auto; margin-top: 4px; padding: 0; text-indent: 0; font-size: var(--fs-small); color: var(--acme-red); }
#acm-page .acm-contact__form #contact-form .wpcf7-response-output { margin: 16px 0 0; border: 1px solid var(--acme-rule) !important; font-size: var(--fs-small); font-weight: 600; color: var(--acme-ink); }
#acm-page .acm-contact__form #contact-form .wpcf7-spinner { margin: 0 0 0 12px; vertical-align: middle; }

/* Clear the theme's fixed header (65px desktop, 55px small screens) */
.acm-template #acm-page { padding-top: 65px; }
@media (max-width: 1024px) { .acm-template #acm-page { padding-top: 55px; } }

@media (max-width: 600px) {
  .acm-card--static { padding-right: 0; gap: 4px; }
  .acm-card--static::after { display: none; }
  .acm-card--static .acm-card__text { display: block; font-size: 14px; }
  #acm-page .acm-contact__form #contact-form input[type="submit"] { width: 100%; justify-content: center; }
}
