/*
Theme Name: Automation Consulting
Theme URI: https://automationconsulting.com
Description: Custom homepage theme for Automation Consulting — built on Twenty Twenty-Five.
Author: Automation Consulting
Author URI: https://automationconsulting.com
Template: twentytwentyfive
Version: 3.7.8
Requires at least: 6.7
Tested up to: 6.9
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: ac-theme
*/

/* ==========================================================================
   TYPOGRAPHY SYSTEM — Figma Brand Guidelines
   Inter (headlines, buttons, badges) + Source Sans 3 (body text)
   ========================================================================== */
:root {
  /* Fonts */
  --font-primary: 'Inter', sans-serif;
  --font-secondary: 'Source Sans 3', sans-serif;

  /* Headlines — Desktop */
  --h1-size: 72px;   --h1-line: 80px;   --h1-weight: 600;
  --h2-size: 64px;   --h2-line: 84px;   --h2-weight: 600;
  --h3-size: 40px;   --h3-line: 48px;   --h3-weight: 600;
  --h4-size: 32px;   --h4-line: 48px;   --h4-weight: 600;
  --h5-size: 24px;   --h5-line: 32px;   --h5-weight: 600;

  /* Body — Desktop (increased for readability) */
  --body-1-size: 24px;  --body-1-line: 36px;  --body-1-weight: 400;
  --body-2-size: 22px;  --body-2-line: 34px;  --body-2-weight: 400;
  --body-3-size: 20px;  --body-3-line: 32px;  --body-3-weight: 400;
  --body-4-size: 18px;  --body-4-line: 28px;  --body-4-weight: 400;
  --body-5-size: 16px;  --body-5-line: 26px;  --body-5-weight: 400;

  /* Subtitles — Desktop */
  --hero-subtitle-size: 22px;   --hero-subtitle-line: 34px;   --hero-subtitle-weight: 400;
  --section-subtitle-size: 20px; --section-subtitle-line: 32px; --section-subtitle-weight: 400;
  --cta-subtitle-size: 20px;    --cta-subtitle-line: 32px;    --cta-subtitle-weight: 400;

  /* Buttons — Desktop */
  --btn-normal-size: 20px;  --btn-normal-line: 32px;  --btn-normal-weight: 600;
  --btn-medium-size: 18px;  --btn-medium-line: 28px;  --btn-medium-weight: 600;
  --btn-small-size: 14px;   --btn-small-line: 16px;   --btn-small-weight: 400;
}

@media (max-width: 768px) {
  :root {
    /* Headlines — Mobile */
    --h1-size: 28px;  --h1-line: 36px;
    --h2-size: 20px;  --h2-line: 28px;
    --h3-size: 18px;  --h3-line: 24px;
    --h4-size: 16px;  --h4-line: 20px;
    --h5-size: 16px;  --h5-line: 20px;

    /* Body — Mobile (increased for readability) */
    --body-1-size: 18px;  --body-1-line: 28px;
    --body-2-size: 16px;  --body-2-line: 24px;
    --body-3-size: 15px;  --body-3-line: 22px;
    --body-4-size: 15px;  --body-4-line: 22px;
    --body-5-size: 14px;  --body-5-line: 20px;

    /* Subtitles — Mobile */
    --hero-subtitle-size: 18px;    --hero-subtitle-line: 28px;
    --section-subtitle-size: 17px; --section-subtitle-line: 26px;
    --cta-subtitle-size: 17px;     --cta-subtitle-line: 26px;

    /* Buttons — Mobile */
    --btn-normal-size: 18px;  --btn-normal-line: 24px;  --btn-normal-weight: 400;
    --btn-medium-size: 16px;  --btn-medium-line: 20px;  --btn-medium-weight: 400;
    --btn-small-size: 14px;   --btn-small-line: 16px;   --btn-small-weight: 400;
  }
}

/* Headlines */
h1, .hero-title, .page-title {
  font-family: var(--font-primary);
  font-size: var(--h1-size);
  line-height: var(--h1-line);
  font-weight: var(--h1-weight);
}
h2, .section-title {
  font-family: var(--font-primary);
  font-size: var(--h2-size);
  line-height: var(--h2-line);
  font-weight: var(--h2-weight);
}
h3, .card-title {
  font-family: var(--font-primary);
  font-size: var(--h4-size);
  line-height: var(--h4-line);
  font-weight: var(--h4-weight);
}
h4 {
  font-family: var(--font-primary);
  font-size: var(--h5-size);
  line-height: var(--h5-line);
  font-weight: var(--h5-weight);
}

/* Body */
p, li, .body-text {
  font-family: var(--font-secondary);
  font-size: var(--body-4-size);
  line-height: var(--body-4-line);
  font-weight: var(--body-4-weight);
}

/* Spans inside headlines must inherit — never override */
h1 span, h2 span, h3 span, h4 span,
.hero-title span, .section-title span,
.ac-text-accent, .garage-highlight,
.ac-gradient-text {
  font-size: inherit;
  font-weight: inherit;
  line-height: inherit;
  font-family: inherit;
  display: inline;
}
.body-large {
  font-size: var(--body-2-size);
  line-height: var(--body-2-line);
}
.body-small {
  font-size: var(--body-5-size);
  line-height: var(--body-5-line);
}

/* Card descriptions */
.toolkit-card p,
.capability-description,
.card-body,
.panel-description,
.ac-capp-detail__item-desc,
.ac-capp-challenge__problem-desc,
.ac-capp-method__step-desc,
.ac-capp-scenarios__card-desc,
.ac-capp-case-card__desc,
.ac-capp-related-card__desc,
.ac-cap-core__panel-desc,
.ac-cap-other__desc {
  font-size: var(--body-4-size);
  line-height: var(--body-4-line);
}

/* Hero subtitles — largest subtitle tier */
.ac-hero__subtitle,
.ac-cap-hero__body,
.ac-capp-hero p,
.ac-ind-hero__body,
.ac-indp-hero__body,
.ac-sec-hero__body,
.ac-firm-diff__sub,
.ac-proj-hero__body,
.ac-proj-cc-hero__body,
.ac-insights-hero__body,
.hero-sub,
.hero-subtitle,
.hero-description {
  font-size: var(--hero-subtitle-size);
  line-height: var(--hero-subtitle-line);
  font-weight: var(--hero-subtitle-weight);
  font-family: var(--font-secondary);
}

/* Section subtitles */
.section-subtitle,
.section-description,
.capabilities-subtitle,
.ac-cap-core__desc,
.ac-capp-bigquote__text,
.ac-capp-challenge__desc,
.ac-capp-detail__sidebar-desc,
.ac-capp-method__subtitle,
.ac-capp-scenarios__subtitle,
.ac-capp-solution__subtitle,
.ac-approach__subtext,
.ac-what-we-do__subtext,
.ac-garage-slide__desc {
  font-size: var(--section-subtitle-size);
  line-height: var(--section-subtitle-line);
  font-weight: var(--section-subtitle-weight);
  font-family: var(--font-secondary);
}

/* CTA subtitles */
.ac-cta__subtitle,
.ac-cap-cta__subtitle,
.cta-description,
.cta-body,
.cta-subtitle,
.cta-sub {
  font-size: var(--cta-subtitle-size);
  line-height: var(--cta-subtitle-line);
  font-weight: var(--cta-subtitle-weight);
  font-family: var(--font-secondary);
}

/* Buttons */
button, .btn, .ac-btn, .hero-btn-primary, .hero-btn-secondary, a.btn {
  text-decoration: none !important;
  font-family: var(--font-primary);
  font-size: var(--btn-medium-size);
  line-height: var(--btn-medium-line);
  font-weight: var(--btn-medium-weight);
}

/* Nav links */
nav a, .nav-link, .ac-nav a {
  font-family: var(--font-primary);
  font-size: var(--body-4-size);
  font-weight: var(--h5-weight);
}

/* Pills / badges / tags */
.pill, .tag, .badge, .chip, .ac-badge, .ac-section-label, .racetrack-badge {
  font-family: var(--font-primary);
  font-size: var(--body-5-size);
  line-height: var(--body-5-line);
  font-weight: 600;
}

/* ==========================================================================
   END TYPOGRAPHY SYSTEM
   ========================================================================== */

/* === UNIFIED SECTION TAG === */
.ac-section-tag {
  display: inline-block;
  font-family: 'Inter', sans-serif;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: #07A9D1;
  border: 1px solid rgba(7, 169, 209, 0.5);
  border-radius: 100px;
  padding: 8px 20px;
  background: transparent;
  margin-bottom: 20px;
}

/* === FRICTION SECTION START === */

.friction-scroll {
  position: relative;
  height: 125vh;
}

.friction-sticky {
  position: sticky;
  top: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  background: var(--ac-bg);
  overflow: hidden;
  padding: 2rem;
  box-sizing: border-box;
}

.friction-body {
  position: relative;
}

.friction-header {
  text-align: center;
  margin-bottom: 3rem;
}

.friction-title {
  font-family: 'Inter', sans-serif;
  font-weight: 800;
  font-size: 48px;
  line-height: 1.2;
  color: #ffffff;
  margin: 0;
}

.friction-title--gradient {
  background: linear-gradient(135deg, #07A9D1, #06CFC3);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.friction-body {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 60px;
  max-width: 1100px;
  width: 100%;
  margin: 0 auto;
}

.friction-col-left {
  flex: 0 0 48%;
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
}

.friction-diagram {
  position: relative;
  width: 460px;
  height: 460px;
  max-width: 100%;
}

.friction-circle-large {
  position: absolute;
  top: 58%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 360px;
  height: 360px;
  border-radius: 50%;
  background-color: var(--ac-bg-alt);
  border: none;
  box-shadow: 0 0 60px 10px rgba(0, 200, 180, 0.15),
              0 0 120px 40px rgba(0, 200, 180, 0.08);
}

/* Venn outline circles — stroke only, no fill */
.friction-venn {
  position: absolute;
  width: 130px;
  height: 130px;
  border-radius: 50%;
  background: transparent;
  border: 1.5px solid rgba(0, 200, 200, 0.5);
  top: 50%;
  z-index: 1;
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

.friction-venn--left {
  left: 50%;
  transform: translate(calc(-50% - 26px), -50%);
}

.friction-venn--right {
  left: 50%;
  transform: translate(calc(-50% + 26px), -50%);
}

/* Teal filled circles */
.friction-teal-circle {
  position: absolute;
  border-radius: 50%;
  background: #07A9D1;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: center;
  will-change: top, left, width, height;
  transition: none;
}

.friction-teal-circle--top {
  width: 90px;
  height: 90px;
}

.friction-teal-circle--bottom {
  width: 70px;
  height: 70px;
}

.friction-logo {
  display: block;
}

.friction-pitcrew-label {
  color: #ffffff;
  font-family: 'Inter', sans-serif;
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
}

/* Friction labels */
.friction-label-item {
  position: absolute;
  z-index: 5;
  transition: opacity 0.5s ease-in-out;
}

.friction-label {
  color: #ffffff;
  font-family: 'Inter', sans-serif;
  font-size: 16px;
  font-weight: 500;
  white-space: nowrap;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 20px;
  padding: 8px 16px;
}

.friction-label--pill {
  /* Already styled above — no extra needed */
}

/* Label positions — relative to diagram container */
/* "Adoption Stalls" — upper-left, 10 o'clock position */
.friction-label-item--left {
  top: 18%;
  left: 8%;
  transform: none;
}

/* "Timelines Blow Out" — right side, 2-3 o'clock */
.friction-label-item--right {
  top: 38%;
  right: 0;
  left: auto;
  transform: none;
}

/* "Systems Don't Integrate" — far left, 9 o'clock */
.friction-label-item--far-left {
  top: 55%;
  left: 0;
  transform: none;
}

/* "Teams Stretch Too Thin" — bottom-right, 4-5 o'clock, touching circle edge */
.friction-label-item--bottom {
  bottom: 14%;
  left: auto;
  right: 2%;
  transform: none;
}

/* Right column — paragraphs */
.friction-text-column {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  padding: 0;
  position: relative;
  text-align: left;
  min-height: 460px;
}

.friction-text-wrap {
  position: relative;
  max-width: 460px;
  width: 100%;
  min-height: 460px;
}

.friction-paragraph {
  font-size: 1.35rem;
  line-height: 1.4;
  font-weight: 700;
  font-style: normal;
  color: #ffffff;
  max-width: 460px;
  width: 100%;
  white-space: normal;
  word-break: normal;
  overflow-wrap: break-word;
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  transform: translateY(-50%);
  margin: 0;
  opacity: 0;
  transition: opacity 0.5s ease-in-out;
  pointer-events: none;
  text-align: left;
}

.friction-paragraph.active {
  opacity: 1;
  pointer-events: auto;
}

.friction-paragraph--teal {
  color: #07A9D1;
}

/* Mobile — under 768px */
@media (max-width: 768px) {
  .friction-scroll {
    height: 125vh;
  }

  .friction-title {
    font-size: 28px;
  }

  .friction-body {
    flex-direction: column;
    gap: 2rem;
  }

  .friction-col-left {
    flex: none;
    width: 100%;
  }

  .friction-diagram {
    width: 300px;
    height: 300px;
    margin: 0 auto;
  }

  .friction-circle-large {
    width: 250px;
    height: 250px;
  }

  .friction-teal-circle--top {
    width: 60px;
    height: 60px;
  }

  .friction-teal-circle--bottom {
    width: 55px;
    height: 55px;
  }

  .friction-venn {
    width: 80px;
    height: 80px;
  }

  .friction-label-item {
    display: none;
  }

  .friction-text-column {
    width: 100%;
    padding: 20px;
    min-height: 200px;
  }

  .friction-paragraph {
    font-size: 20px;
    line-height: 1.65;
  }
}

/* === FRICTION SECTION END === */

/* === TRUSTED CERTIFIED SECTION START === */

/* === SECURITY / TRUSTED & CERTIFIED === */
/* === TRUSTED & CERTIFIED === */
.ac-security-wrap {
  background: #ffffff;
}
.ac-security {
  background: linear-gradient(180deg, #093E4C 0%, #042028 40%, #010D12 100%);
  border-radius: 56px;
  padding: 72px 40px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.ac-security__blur {
  position: absolute;
  width: 1535px;
  height: 507px;
  left: 50%;
  top: 60%;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle at 50% 10%, transparent 37%, rgba(7,169,209,1) 69%, rgba(255,255,255,1) 100%);
  filter: blur(90px);
  opacity: 0.08;
  pointer-events: none;
}

.ac-security__inner {
  position: relative;
  z-index: 1;
  max-width: 1200px;
  margin: 0 auto;
}

.ac-security__header {
  text-align: center;
  margin-bottom: 60px;
}

.ac-security__header .racetrack-badge {
  margin-bottom: 20px;
}

.ac-security__title {
  font-family: 'Inter', sans-serif;
  font-size: clamp(2rem, 5vw, 4rem);
  font-weight: 800;
  color: #ffffff;
  line-height: 1.2;
  margin: 0;
  letter-spacing: -0.02em;
  text-transform: capitalize;
}

.ac-security__grid {
  display: flex;
  gap: 32px;
  justify-content: center;
  flex-wrap: wrap;
  max-width: 1160px;
  margin: 0 auto;
}

.ac-security__card {
  flex: 1;
  max-width: 560px;
  background: linear-gradient(180deg, rgba(9,62,76,1) 0%, rgba(4,32,40,1) 42%);
  border-radius: 24px;
  padding: 48px 32px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 32px;
  text-align: center;
  transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.4s ease;
}

.ac-security__card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 48px rgba(7,169,209,0.2);
}

.ac-security__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 110px;
  height: 110px;
}

.ac-security__text {
  font-family: 'Inter', sans-serif;
  font-weight: 500;
  font-size: clamp(1rem, 1.5vw, 24px);
  line-height: 1.33;
  color: #ffffff;
  margin: 0;
  max-width: 420px;
  text-transform: capitalize;
}

@media (max-width: 768px) {
  .ac-security {
    padding: 80px 24px;
    border-radius: 32px;
  }
  .ac-security__title {
    font-size: 32px;
  }
  .ac-security__grid {
    flex-direction: column;
    align-items: center;
  }
  .ac-security__card {
    padding: 36px 24px;
    max-width: 100%;
  }
  .ac-security__text {
    font-size: 16px;
  }
}
/* === TRUSTED CERTIFIED SECTION END === */


/* === RACETRACK SECTION START === */

.racetrack-section {
  background: #ffffff;
  padding: 120px 0;
  position: relative;
  overflow: hidden;
}

.racetrack-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 2rem;
}

/* ── Header ── */
.racetrack-header {
  text-align: center;
  margin-bottom: 80px;
}

.racetrack-badge {
  display: inline-block;
  font-family: 'Inter', sans-serif;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: #07A9D1;
  border: 1px solid rgba(7, 169, 209, 0.5);
  border-radius: 100px;
  padding: 8px 20px;
  background: transparent;
  margin-bottom: 20px;
}

.racetrack-headline {
  font-family: 'Inter', sans-serif;
  font-size: 48px;
  font-weight: 800;
  color: var(--ac-text-dark);
  line-height: 1.2;
  max-width: 700px;
  margin: 0 auto 20px;
}

.racetrack-subheadline {
  font-family: 'Inter', sans-serif;
  font-size: 18px;
  font-weight: 400;
  color: var(--ac-grey-text);
  line-height: 1.65;
  max-width: 600px;
  margin: 0 auto;
}

/* ── Track container ── */
.racetrack-track {
  position: relative;
  min-height: 1600px;
}

/* ── SVG path ── */
.racetrack-svg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
}

.racetrack-path-glow {
  stroke-dasharray: var(--racetrack-total-length, 2000);
  stroke-dashoffset: var(--racetrack-total-length, 2000);
}

/* ── Mobile vertical line ── */
.racetrack-mobile-line {
  display: none;
}

/* ── Step rows ── */
.racetrack-step {
  position: relative;
  display: flex;
  align-items: center;
  gap: 40px;
  z-index: 1;
  padding: 30px 0;
}

.racetrack-step--left {
  justify-content: flex-start;
  padding-right: 45%;
}

.racetrack-step--right {
  justify-content: flex-end;
  padding-left: 45%;
}

/* ── Pit stop marker ── */
.racetrack-marker {
  position: relative;
  flex-shrink: 0;
  width: 60px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.racetrack-marker-outer {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  border: 2px solid #07A9D1;
  box-shadow: 0 0 20px rgba(7, 169, 209, 0.4);
  background: transparent;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: box-shadow 0.4s ease, transform 0.4s ease;
}

.racetrack-marker-inner {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #07A9D1;
  box-shadow: 0 0 10px #07A9D1;
}

/* Background step number */
.racetrack-step-bg-num {
  position: absolute;
  font-family: 'Inter', sans-serif;
  font-size: 180px;
  font-weight: 900;
  color: rgba(0, 0, 0, 0.04);
  line-height: 1;
  top: 58%;
  left: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
  user-select: none;
  z-index: -1;
}

/* ── Cards ── */
.racetrack-card {
  background: #FAFFFF;
  border: 1px solid rgba(7, 169, 209, 0.25);
  border-radius: 16px;
  padding: 32px;
  max-width: 380px;
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.racetrack-card.racetrack-visible {
  opacity: 1;
  transform: translateY(0);
}

.racetrack-card-tag {
  display: inline-block;
  font-family: 'Inter', sans-serif;
  font-size: 11px;
  font-weight: 600;
  color: #07A9D1;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  margin-bottom: 12px;
}

.racetrack-card-title {
  font-family: 'Inter', sans-serif;
  font-size: 24px;
  font-weight: 600;
  color: var(--ac-text-dark);
  margin: 0 0 10px;
}

.racetrack-card-body {
  font-family: 'Inter', sans-serif;
  font-size: 16px;
  line-height: 1.7;
  color: var(--ac-grey-text);
  margin: 0;
}

/* ── Pit pulse animation ── */
@keyframes racetrackPitPulse {
  0% { transform: scale(1); box-shadow: 0 0 20px rgba(7, 169, 209, 0.4); }
  50% { transform: scale(1.3); box-shadow: 0 0 40px rgba(7, 169, 209, 0.8); }
  100% { transform: scale(1); box-shadow: 0 0 20px rgba(7, 169, 209, 0.4); }
}

.racetrack-marker-outer.racetrack-pulse {
  animation: racetrackPitPulse 1s ease-out 1;
}

/* === RACETRACK — MOBILE (below 768px) === */
@media (max-width: 768px) {
  .racetrack-section {
    padding: 60px 0;
  }

  .racetrack-headline {
    font-size: 32px;
  }

  .racetrack-subheadline {
    font-size: 16px;
  }

  .racetrack-header {
    margin-bottom: 40px;
  }

  .racetrack-svg {
    display: none;
  }

  .racetrack-mobile-line {
    display: block;
    position: absolute;
    left: 30px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: rgba(7, 169, 209, 0.25);
    z-index: 0;
  }

  .racetrack-track {
    min-height: auto;
    padding-left: 20px;
  }

  .racetrack-step,
  .racetrack-step--left,
  .racetrack-step--right {
    flex-direction: row;
    justify-content: flex-start;
    padding-left: 0;
    padding-right: 0;
    gap: 20px;
  }

  .racetrack-step--right {
    flex-direction: row-reverse;
  }

  .racetrack-step--right .racetrack-marker {
    order: -1;
  }

  .racetrack-step--right .racetrack-card {
    order: 1;
  }

  .racetrack-marker {
    width: 40px;
    height: 40px;
  }

  .racetrack-marker-outer {
    width: 40px;
    height: 40px;
  }

  .racetrack-marker-inner {
    width: 14px;
    height: 14px;
  }

  .racetrack-step-bg-num {
    display: none;
  }

  .racetrack-card {
    max-width: 100%;
    opacity: 1;
    transform: none;
    padding: 20px;
  }

  .racetrack-card-title {
    font-size: 20px;
  }

  .racetrack-card-body {
    font-size: 16px;
  }
}

/* === RACETRACK SECTION END === */


/* === PROOF SECTION START === */

.proof-scroll-section {
  position: relative;
  height: 500vh;
  width: 100%;
}

.proof-scroll-spacer {
  height: 100%;
  pointer-events: none;
}

.proof-sticky-display {
  position: sticky;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #eef4f5;
  overflow: hidden;
  z-index: 1;
}

.proof-sticky-display::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(
    ellipse 60% 60% at 60% 50%,
    rgba(7, 169, 209, 0.04) 0%,
    transparent 70%
  );
  pointer-events: none;
}

.proof-stat-display {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 0 40px;
  position: relative;
  z-index: 2;
}

.proof-stat-number {
  font-family: 'Inter', Arial, sans-serif;
  font-size: clamp(80px, 14vw, 180px);
  font-weight: 900;
  color: var(--ac-text-dark);
  line-height: 1;
  letter-spacing: -0.04em;
  margin-bottom: 24px;
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.proof-stat-label {
  background: linear-gradient(135deg, #07A9D1, #06CFC3);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-family: 'Inter', Arial, sans-serif;
  font-size: clamp(24px, 3.5vw, 52px);
  font-weight: 600;
  color: #07A9D1;
  line-height: 1.2;
  letter-spacing: -0.01em;
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.proof-stat-display.proof-transitioning .proof-stat-number,
.proof-stat-display.proof-transitioning .proof-stat-label {
  background: linear-gradient(135deg, #07A9D1, #06CFC3);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  opacity: 0;
  transform: translateY(-30px);
}

.proof-stat-display.proof-entering .proof-stat-number,
.proof-stat-display.proof-entering .proof-stat-label {
  background: linear-gradient(135deg, #07A9D1, #06CFC3);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  opacity: 0;
  transform: translateY(30px);
}

@media (max-width: 768px) {
  .proof-scroll-section {
    height: 600vh;
  }

  .proof-stat-number {
    font-size: clamp(64px, 18vw, 120px);
  }

  .proof-stat-label {
  background: linear-gradient(135deg, #07A9D1, #06CFC3);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
    font-size: clamp(20px, 5vw, 32px);
  }
}

/* === PROOF SECTION END === */


/* === INDUSTRIES LOGO CAROUSEL START === */

.industries-logos {
  margin-top: 3rem;
  overflow: hidden;
  position: relative;
}

.industries-logos__track {
  display: flex;
  align-items: center;
  gap: 60px;
  animation: industries-logo-scroll 20s linear infinite;
  width: max-content;
}

.industries-logos__track:hover {
  animation-play-state: paused;
}

.industries-logos__img {
  height: 32px;
  width: auto;
  flex-shrink: 0;
  object-fit: contain;
  transition: opacity 0.3s ease;
}

.industries-logos__img:hover {
  opacity: 0.7;
}

@keyframes industries-logo-scroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* Fade edges */
.industries-logos::before,
.industries-logos::after {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  width: 80px;
  z-index: 2;
  pointer-events: none;
}

.industries-logos::before {
  left: 0;
  background: linear-gradient(to right, #FAFFFF, transparent);
}

.industries-logos::after {
  right: 0;
  background: linear-gradient(to left, #FAFFFF, transparent);
}

@media (max-width: 768px) {
  .industries-logos__track {
    gap: 40px;
  }

  .industries-logos__img {
    height: 24px;
  }
}

/* === INDUSTRIES LOGO CAROUSEL END === */


/* === LOGO CAROUSEL (between case studies & testimonials) === */

.ac-logo-carousel {
  overflow: hidden;
  position: relative;
  padding: 3rem 0;
  background: #010D12;
}

.ac-logo-carousel__track {
  display: flex;
  align-items: center;
  gap: 60px;
  animation: industries-logo-scroll 20s linear infinite;
  width: max-content;
}

.ac-logo-carousel__track:hover {
  animation-play-state: paused;
}

.ac-logo-carousel__img {
  height: 32px;
  width: auto;
  flex-shrink: 0;
  object-fit: contain;
  opacity: 0.7;
  transition: opacity 0.3s ease;
}

.ac-logo-carousel__img:hover {
  opacity: 1;
}

/* Fade edges */
.ac-logo-carousel::before,
.ac-logo-carousel::after {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  width: 80px;
  z-index: 2;
  pointer-events: none;
}

.ac-logo-carousel::before {
  left: 0;
  background: linear-gradient(to right, #010D12, transparent);
}

.ac-logo-carousel::after {
  right: 0;
  background: linear-gradient(to left, #010D12, transparent);
}

@media (max-width: 768px) {
  .ac-logo-carousel__track {
    gap: 40px;
  }

  .ac-logo-carousel__img {
    height: 24px;
  }
}

/* === LOGO CAROUSEL END === */


/* === GARAGE SECTION START === */

.garage-section {
  background: #010D12;
  background-image: radial-gradient(ellipse 800px 600px at center, rgba(6, 207, 195, 0.08) 0%, transparent 70%);
  padding: 120px 0;
  position: relative;
  overflow: visible;
  min-height: 100vh;
  display: flex;
  align-items: center;
}

.garage-container {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 2rem;
  width: 100%;
  text-align: center;
}

/* ── Heading ── */
.garage-heading {
  font-family: 'Inter', sans-serif;
  font-size: 48px;
  font-weight: 800;
  color: #ffffff;
  margin: 0 0 80px;
  line-height: 1.2;
}

.garage-highlight {
  background: linear-gradient(135deg, #07A9D1, #06CFC3);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ── Diagram container ── */
.garage-diagram {
  position: relative;
  width: 100%;
  max-width: 1200px;
  height: 700px;
  margin: 0 auto;
  transition: height 0.5s ease-out;
  overflow: visible;
}

.garage-section.garage-expanded .garage-diagram {
  height: 1000px;
}

/* ── Background grid ── */
.garage-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(7, 169, 209, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(7, 169, 209, 0.06) 1px, transparent 1px);
  background-size: 40px 40px;
  -webkit-mask: radial-gradient(ellipse 600px 500px at center, black 40%, transparent 80%);
  mask: radial-gradient(ellipse 600px 500px at center, black 40%, transparent 80%);
}

/* ── SVG connectors ── */
.garage-svg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
  z-index: 1;
  pointer-events: none;
}

/* ── Centre circle ── */
.garage-centre {
  position: absolute;
  width: 140px;
  height: 140px;
  top: 350px;
  left: 50%;
  transform: translate(-50%, -50%);
  background: linear-gradient(135deg, #07A9D1, #06CFC3);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 3;
  box-shadow:
    0 0 60px rgba(7, 169, 209, 0.6),
    0 0 120px rgba(7, 169, 209, 0.3);
  animation: garagePulse 3s ease-in-out infinite;
}

@keyframes garagePulse {
  0%, 100% {
    box-shadow:
      0 0 60px rgba(7, 169, 209, 0.6),
      0 0 120px rgba(7, 169, 209, 0.3);
  }
  50% {
    box-shadow:
      0 0 80px rgba(7, 169, 209, 0.9),
      0 0 160px rgba(7, 169, 209, 0.5);
  }
}

.garage-centre-logo {
  width: 65%;
  height: auto;
  filter: brightness(0) invert(1);
  object-fit: contain;
}

/* ── Tool circles (shared) ── */
.garage-tool {
  position: absolute;
  width: 90px;
  height: 90px;
  border-radius: 50%;
  background: var(--ac-bg);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
  cursor: pointer;
  opacity: 0;
  transform: translate(-50%, -50%) scale(0);
  transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1),
              opacity 0.4s ease,
              box-shadow 0.3s ease;
}

.garage-tool--visible {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

.garage-tool:hover {
  transform: translate(-50%, -50%) scale(1.1);
}

.garage-tool-logo {
  width: 65%;
  height: auto;
  object-fit: contain;
}

.garage-tool-logo--inverted {
  width: 60%;
}

.garage-tool-text {
  font-family: 'Inter', sans-serif;
  font-size: 10px;
  font-weight: 600;
  color: #ffffff;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  text-align: center;
  line-height: 1.2;
  padding: 0 6px;
}

/* ── Inner ring tool positions + brand-coloured glows ── */
.garage-tool--odoo {
  left: 5%;
  top: 350px;
  box-shadow: 0 0 30px rgba(113, 75, 160, 0.4);
}
.garage-tool--odoo:hover {
  box-shadow: 0 0 60px rgba(113, 75, 160, 0.8);
}

.garage-tool--wordpress {
  left: 22%;
  top: 175px;
  box-shadow: 0 0 30px rgba(0, 120, 215, 0.4);
}
.garage-tool--wordpress:hover {
  box-shadow: 0 0 60px rgba(0, 120, 215, 0.8);
}

.garage-tool--n8n {
  left: 50%;
  top: 56px;
  box-shadow: 0 0 30px rgba(234, 76, 137, 0.4);
}
.garage-tool--n8n:hover {
  box-shadow: 0 0 60px rgba(234, 76, 137, 0.8);
}

.garage-tool--magento {
  left: 78%;
  top: 175px;
  box-shadow: 0 0 30px rgba(235, 110, 38, 0.4);
}
.garage-tool--magento:hover {
  box-shadow: 0 0 60px rgba(235, 110, 38, 0.8);
}

.garage-tool--salesforce {
  left: 95%;
  top: 350px;
  box-shadow: 0 0 30px rgba(0, 161, 224, 0.4);
}
.garage-tool--salesforce:hover {
  box-shadow: 0 0 60px rgba(0, 161, 224, 0.8);
}

/* ── Fallback for broken/missing logos ── */
.garage-tool-fallback {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
}

.garage-tool-fallback span {
  font-family: 'Inter', sans-serif;
  font-size: 9px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: rgba(255, 255, 255, 0.7);
  text-align: center;
  padding: 0 8px;
  line-height: 1.2;
}

.garage-tool--no-logo {
  position: relative;
}

.garage-tool--no-logo::after {
  content: attr(data-tool-name);
  font-family: 'Inter', sans-serif;
  font-size: 9px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: rgba(255, 255, 255, 0.6);
  text-align: center;
  line-height: 1.2;
}

/* ── Outer ring (extra) tools ── */
.garage-tool--extra {
  display: none;
}

.garage-section.garage-expanded .garage-tool--extra {
  display: flex;
}

.garage-tool--outer {
  width: 75px;
  height: 75px;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

/* ── CTA ── */
.garage-cta {
  margin-top: 60px;
}

/* ── Mobile carousel (hidden on desktop, shown via media query below) ── */
.garage-mobile-carousel {
  display: none;
}

/* ── Mobile grid ── */
.garage-mobile-grid {
  display: none;
}

.garage-mobile-centre {
  width: 100px;
  height: 100px;
  background: linear-gradient(135deg, #07A9D1, #06CFC3);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 30px;
  box-shadow:
    0 0 40px rgba(7, 169, 209, 0.5),
    0 0 80px rgba(7, 169, 209, 0.25);
}

.garage-mobile-tools {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  justify-items: center;
  max-width: 320px;
  margin: 0 auto;
}

.garage-mobile-tool {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: var(--ac-bg);
  display: flex;
  align-items: center;
  justify-content: center;
}

.garage-mobile-tool .garage-tool-logo {
  width: 60%;
}

.garage-mobile-tool .garage-tool-logo--inverted {
  width: 55%;
}

.garage-mobile-tool .garage-tool-text {
  font-size: 10px;
}

.garage-mobile-tool--wordpress { box-shadow: 0 0 20px rgba(0, 120, 215, 0.4); }
.garage-mobile-tool--n8n { box-shadow: 0 0 20px rgba(234, 76, 137, 0.4); }
.garage-mobile-tool--magento { box-shadow: 0 0 20px rgba(235, 110, 38, 0.4); }
.garage-mobile-tool--odoo { box-shadow: 0 0 20px rgba(113, 75, 160, 0.4); }
.garage-mobile-tool--salesforce { box-shadow: 0 0 20px rgba(0, 161, 224, 0.4); }

/* ── Tablet (768–1024px) ── */
@media (min-width: 768px) and (max-width: 1024px) {
  .garage-diagram {
    transform: scale(0.75);
    transform-origin: top center;
    margin-bottom: -100px;
  }
}

/* ── Mobile (below 768px) ── */
@media (max-width: 768px) {
  .garage-section {
    min-height: auto;
    padding: 80px 0;
  }

  .garage-heading {
    font-size: 32px;
    margin-bottom: 40px;
  }

  .garage-diagram {
    display: none;
  }

  .garage-cta .garage-toggle-desktop {
    display: none;
  }

  /* Mobile carousel */
  .garage-mobile-carousel {
    display: flex;
    align-items: center;
    padding: 0 16px;
    margin-bottom: 40px;
  }

  .garage-mob-btn {
    display: none;
  }

  .garage-mob-wrap {
    flex: 1;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }

  .garage-mob-wrap::-webkit-scrollbar {
    display: none;
  }

  .garage-mob-track {
    display: flex;
  }

  .garage-mob-item {
    flex: 0 0 20%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    padding: 4px 2px;
  }

  .garage-mob-circle {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: #0a1622;
    border: 1px solid rgba(255, 255, 255, 0.12);
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .garage-mob-circle img {
    width: 60%;
    height: auto;
    object-fit: contain;
  }

  .garage-mob-circle img.garage-tool-logo--inverted {
    width: 55%;
  }

  .garage-mob-label {
    font-family: 'Inter', sans-serif;
    font-size: 9px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.55);
    letter-spacing: 0.04em;
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
  }

  .garage-mob-btn {
    flex-shrink: 0;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: #ffffff;
    font-size: 22px;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    transition: background 0.2s, border-color 0.2s;
  }

  .garage-mob-btn:hover {
    background: rgba(7, 169, 209, 0.2);
    border-color: rgba(7, 169, 209, 0.5);
  }

  .garage-mob-btn:disabled {
    opacity: 0.25;
    cursor: default;
    pointer-events: none;
  }

  .garage-mob-circle--wordpress  { box-shadow: 0 0 12px rgba(0,   120, 215, 0.4); }
  .garage-mob-circle--n8n        { box-shadow: 0 0 12px rgba(234,  76, 137, 0.4); }
  .garage-mob-circle--magento    { box-shadow: 0 0 12px rgba(235, 110,  38, 0.4); }
  .garage-mob-circle--odoo       { box-shadow: 0 0 12px rgba(113,  75, 160, 0.4); }
  .garage-mob-circle--salesforce { box-shadow: 0 0 12px rgba(0,   161, 224, 0.4); }
  .garage-mob-circle--zapier     { box-shadow: 0 0 12px rgba(255,  74,   0, 0.4); }
  .garage-mob-circle--make       { box-shadow: 0 0 12px rgba(111, 112, 255, 0.4); }
  .garage-mob-circle--shopify    { box-shadow: 0 0 12px rgba(150, 191,  71, 0.4); }
  .garage-mob-circle--hubspot    { box-shadow: 0 0 12px rgba(255, 122,  89, 0.4); }
  .garage-mob-circle--xero       { box-shadow: 0 0 12px rgba(19,  183, 218, 0.4); }
  .garage-mob-circle--aws        { box-shadow: 0 0 12px rgba(255, 153,   0, 0.4); }
  .garage-mob-circle--azure      { box-shadow: 0 0 12px rgba(0,   114, 198, 0.4); }
  .garage-mob-circle--stripe     { box-shadow: 0 0 12px rgba(99,   91, 255, 0.4); }
  .garage-mob-circle--python     { box-shadow: 0 0 12px rgba(55,  118, 171, 0.4); }
  .garage-mob-circle--react      { box-shadow: 0 0 12px rgba(97,  218, 251, 0.4); }
}

/* === GARAGE SECTION END === */

/* === CASES SCROLL SECTION START === */

.ac-cases-scroll {
  position: relative;
  width: 100%;
  background: #ffffff;
}

.ac-cases-sticky {
  position: sticky;
  top: 0;
  width: 100%;
  height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: #ffffff;
  overflow: hidden;
  padding: 0 40px;
  box-sizing: border-box;
}

.ac-cases-header {
  text-align: center;
  margin-bottom: 28px;
}

.ac-cases-header .racetrack-badge {
  margin-bottom: 16px;
}

.ac-cases-heading {
  font-family: 'Inter', sans-serif;
  font-size: 48px;
  font-weight: 800;
  color: #1a1a2e;
  line-height: 1.2;
  margin: 0;
}

/* Progress dots */
.ac-cases-progress {
  display: flex;
  gap: 8px;
  margin-bottom: 28px;
  align-items: center;
  justify-content: center;
}

.ac-cases-dot {
  width: 8px;
  height: 8px;
  border-radius: 100px;
  background: rgba(7, 169, 209, 0.2);
  transition: all 0.3s ease;
}

.ac-cases-dot.active {
  width: 24px;
  background: #07A9D1;
}

/* Card stack */
.ac-cases-card-stack {
  width: 100%;
  max-width: 1060px;
  position: relative;
  height: 420px;
}

/* Individual card */
.ac-cases-card {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  border-radius: 20px;
  background: #ffffff;
  border: 1px solid rgba(0, 0, 0, 0.08);
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.08);
  overflow: hidden;
  transition: transform 0.4s ease, opacity 0.4s ease;
  will-change: transform, opacity;
}

/* Left content */
.ac-cases-card__left {
  flex: 1;
  padding: 44px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  max-width: 50%;
}

.ac-cases-card__logo {
  height: 32px;
  width: auto;
  max-width: 140px;
  object-fit: contain;
  margin-bottom: 16px;
}

.ac-cases-card__name {
  font-family: 'Inter', sans-serif;
  font-size: 28px;
  font-weight: 800;
  color: #1a1a2e;
  margin: 0 0 10px;
}

.ac-cases-card__tag {
  display: inline-block;
  border: 1px solid rgba(0, 0, 0, 0.15);
  border-radius: 100px;
  padding: 5px 16px;
  font-family: 'Inter', sans-serif;
  font-size: 12px;
  font-weight: 500;
  color: #666;
  margin-bottom: 16px;
  width: fit-content;
}

.ac-cases-card__desc {
  font-family: 'Inter', sans-serif;
  font-size: 16px;
  line-height: 1.65;
  color: var(--ac-grey-text);
  margin: 0 0 20px;
}

.ac-cases-card__btn {
  width: fit-content;
  font-size: var(--ac-btn-font-size);
  padding: var(--ac-btn-padding);
}

/* Right image */
.ac-cases-card__right {
  width: 50%;
  flex-shrink: 0;
  overflow: hidden;
}

.ac-cases-card__right img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Counter */
.ac-cases-counter {
  text-align: center;
  margin-top: 20px;
  font-family: 'Inter', sans-serif;
  font-size: 16px;
  font-weight: 600;
  color: #999;
}

/* Spacer */
.ac-cases-spacer {
  pointer-events: none;
}

/* Mobile */
@media (max-width: 768px) {
  .ac-cases-scroll {
    padding-top: 2rem !important;
  }
  .ac-cases-sticky {
    position: static;
    height: auto;
    padding: 2rem 1.25rem 0.5rem;
  }
  .ac-cases-heading {
    font-size: 28px;
  }
  .ac-cases-card-stack {
    height: 460px;
    overflow: hidden;
  }
  .ac-cases-card {
    flex-direction: column;
    transition: transform 0.35s ease, opacity 0.35s ease;
  }
  .ac-cases-card__left {
    max-width: 100%;
    padding: 20px 20px 12px;
    flex: 1;
    min-height: 0;
    overflow: hidden;
  }
  .ac-cases-card__right {
    width: 100%;
    height: 140px;
    flex-shrink: 0;
  }
  .ac-cases-card__name {
    font-size: 20px;
  }
  .ac-cases-card__desc {
    font-size: 14px;
    margin-bottom: 12px;
  }
  .ac-cases-counter {
    margin-top: 12px;
    font-size: 14px;
  }
}

/* === CASE STUDIES SECTION END === */

.ac-cases-counter span {
  color: #07A9D1;
  font-weight: 600;
}

/* Tablet */
@media (max-width: 1024px) {
  .ac-cases-card {
    max-height: none;
    aspect-ratio: auto;
  }
  .ac-cases-card__left {
    padding: 36px;
  }
}

/* Mobile */
@media (max-width: 768px) {
  .ac-cases-sticky {
    padding: 1.5rem 1.25rem 0.5rem;
    justify-content: flex-start;
    height: auto;
    min-height: 0;
  }

  .ac-cases-card {
    flex-direction: column;
    max-height: none;
    aspect-ratio: auto;
  }

  .ac-cases-card__left {
    max-width: 100%;
    padding: 20px 20px 12px;
  }

  .ac-cases-card__right {
    width: 100%;
    height: 140px;
    order: -1;
  }
}

/* === CASES SCROLL SECTION END === */


/* === TESTIMONIALS SECTION START === */

.ac-testimonials {
  padding: 100px 0 80px;
  background: #ffffff;
  overflow: hidden;
}

/* ===== TESTIMONIALS ===== */
.ac-testimonials__inner {
  max-width: 1260px;
  margin: 0 auto;
  padding: 0 60px;
}

.ac-testimonials__header {
  text-align: center;
  margin-bottom: 56px;
}

.ac-testimonials__header .racetrack-badge {
  margin-bottom: 20px;
}

.ac-testimonials__heading {
  font-family: 'Inter', sans-serif;
  font-size: 48px;
  font-weight: 800;
  color: #1a1a2e;
  line-height: 1.2;
  margin: 0 auto;
  letter-spacing: -0.02em;
  max-width: 900px;
}

/* Slider — scroll-snap horizontal swipe */
.ac-testimonials__cards {
  display: flex;
  gap: 32px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scroll-behavior: smooth;
  padding-bottom: 20px;
  -ms-overflow-style: none;
  scrollbar-width: none;
  cursor: grab;
}
.ac-testimonials__cards:active { cursor: grabbing; }
.ac-testimonials__cards::-webkit-scrollbar { display: none; }

/* Card — light background, text left, photo right */
.ac-testimonials__card {
  flex-shrink: 0;
  width: min(90vw, 700px);
  min-height: 500px;
  border-radius: 24px;
  position: relative;
  overflow: hidden;
  display: flex;
  scroll-snap-align: start;
  transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.4s ease;
}
.ac-testimonials__card:hover {
  transform: scale(1.02);
  box-shadow: 0 16px 48px rgba(0,0,0,0.08);
}

.ac-testimonials__card--light { background: #F7F7F7; }

/* Content — left side */
.ac-testimonials__card-content {
  padding: 49px 40px;
  display: flex;
  flex-direction: column;
  gap: 35px;
  flex: 1;
  max-width: 100%;
}

.ac-testimonials__quote-icon {
  width: 80px;
  height: 80px;
  opacity: 1;
  flex-shrink: 0;
}

.ac-testimonials__text {
  font-family: 'Source Sans 3', 'Source Sans Pro', 'Inter', sans-serif;
  font-weight: 600;
  font-size: clamp(1rem, 2vw, 24px);
  line-height: 1.625;
  color: var(--ac-grey-text);
  margin: 0;
}

.ac-testimonials__author {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.ac-testimonials__name {
  font-weight: 600;
  font-size: 24px;
  line-height: 1.25;
  color: #0E0E0E;
}

.ac-testimonials__role {
  font-weight: 400;
  font-size: 20px;
  line-height: 1.67;
  color: #535353;
}

/* Photo — right side */
.ac-testimonials__card-photo {
  position: absolute;
  right: 0;
  top: 80px;
  bottom: 0;
  width: 40%;
  overflow: hidden;
}

.ac-testimonials__card-photo img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: top center;
}

/* Dots */
.ac-testimonials__dots {
  display: flex;
  justify-content: center;
  gap: 7px;
  margin-top: 40px;
}

.ac-testimonials__dot {
  height: 10px;
  border-radius: 5px;
  border: none;
  cursor: pointer;
  transition: all 0.3s;
  padding: 0;
}

.ac-testimonials__dot.active {
  width: 57px;
  background: linear-gradient(135deg, #07A9D1, #06CFC3);
}

.ac-testimonials__dot:not(.active) {
  width: 23px;
  background: #DADADA;
}

/* Responsive */
@media (max-width: 768px) {
  .ac-testimonials { padding: 1.5rem 0 2rem; }
  .ac-testimonials__inner { padding: 0 24px; }
  .ac-testimonials__heading { font-size: 28px; }
  .ac-testimonials__card {
    width: 90vw;
    min-height: 400px;
    flex-direction: column;
  }
  .ac-testimonials__card-content {
    max-width: 100%;
    padding: 30px 24px;
  }
  .ac-testimonials__card-photo {
    position: relative;
    width: 100%;
    height: 250px;
    right: auto;
    top: auto;
  }
}
/* === TESTIMONIALS SECTION END === */


/* === BOTTOM CTA SECTION START === */
.ac-bottom-cta-wrap {
  background: #ffffff;
}

/* SECTION */
.ac-bottom-cta {
  width: 100% !important;
  padding: 100px 40px !important;
  margin: 0 !important;
  box-sizing: border-box !important;
  position: relative !important;
  overflow: hidden !important;
  background: linear-gradient(180deg, rgba(9, 62, 76, 1) 0%, rgba(4, 32, 40, 1) 42%, rgba(1, 13, 18, 1) 85%) !important;
  border-radius: 56px !important;
}

/* Teal radial glow at bottom of section */
.ac-bottom-cta::after {
  content: '';
  position: absolute;
  bottom: -60px;
  left: 50%;
  transform: translateX(-50%);
  width: 800px;
  height: 300px;
  background: radial-gradient(
    ellipse at center,
    rgba(6, 207, 195, 0.15) 0%,
    rgba(7, 169, 209, 0.08) 40%,
    transparent 70%
  );
  pointer-events: none;
  z-index: 0;
}

/* INNER CONTENT WRAPPER */
.ac-bottom-cta__card {
  background: none;
  border-radius: 0;
  padding: 0;
  max-width: 700px;
  width: 100%;
  margin: 0 auto;
  text-align: center;
  position: relative;
  z-index: 1;
  box-shadow: none;
  overflow: visible;
}

/* HEADLINE */
.ac-bottom-cta__heading {
  font-family: Inter, Arial, sans-serif;
  font-size: clamp(32px, 3.5vw, 52px);
  font-weight: 800;
  line-height: 1.15;
  color: #ffffff;
  margin: 0 auto 20px auto;
  max-width: 640px;
  text-transform: none;
  letter-spacing: -0.02em;
}

/* SUBTEXT */
.ac-bottom-cta__subtext {
  font-family: Inter, Arial, sans-serif;
  font-size: clamp(15px, 1.1vw, 17px);
  font-weight: 400;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.6);
  margin: 0 auto 40px auto;
  max-width: 520px;
  text-transform: none;
}

/* BUTTON ROW */
.ac-bottom-cta__buttons {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}

/* PRIMARY BUTTON — override for this section */
.ac-bottom-cta__btn-primary {
  text-transform: none !important;
  letter-spacing: 0 !important;
  font-size: var(--ac-btn-font-size);
  font-weight: 600 !important;
  padding: var(--ac-btn-padding);
  text-decoration: none !important;
}

/* SECONDARY BUTTON — override for this section */
.ac-bottom-cta__btn-secondary {
  text-transform: none !important;
  letter-spacing: 0 !important;
  font-size: var(--ac-btn-font-size);
  font-weight: 600 !important;
  padding: var(--ac-btn-padding);
  text-decoration: none !important;
}

/* TRUST LINE */
.ac-bottom-cta__trust {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: Inter, Arial, sans-serif;
  font-size: 16px;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.35);
}

.ac-bottom-cta__trust-icon {
  color: rgba(255, 255, 255, 0.35);
  flex-shrink: 0;
}

/* MOBILE */
@media (max-width: 768px) {
  .ac-bottom-cta {
    padding: 60px 20px !important;
  }

  .ac-bottom-cta__buttons {
    flex-direction: column;
    width: 100%;
  }

  .ac-bottom-cta__btn-primary,
  .ac-bottom-cta__btn-secondary {
    width: 100% !important;
    text-align: center !important;
    justify-content: center !important;
  }

  .ac-bottom-cta__trust {
    font-size: 12px;
    text-align: center;
    flex-wrap: wrap;
  }
}

.ac-cta__heading {
  text-transform: none;
}

/* === BOTTOM CTA SECTION END === */

/* === GLOBAL HERO STANDARDS === */

/* Badge/tag above headline */
.ac-badge {
  display: inline-block;
  font-family: 'Inter', sans-serif;
  font-size: 20px;
  font-weight: 600;
  letter-spacing: normal;
  text-transform: none;
  color: rgba(255, 255, 255, 0.85);
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 100px;
  padding: 8px 24px;
  margin-bottom: 1.25rem;
  line-height: 1;
}

/* Headline teal gradient accent — uses color fallback; gradient applied on direct-text contexts only */
.ac-text-accent {
  color: #07A9D1;
}

/* Hero bottom bar (Google reviews + address badge) */
.ac-hero__bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  max-width: var(--ac-max-width, 1340px);
  padding: 0 var(--wp--preset--spacing--50, 2rem);
  box-sizing: border-box;
}

/* Google Reviews badge */
.ac-google-review {
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 100px;
  padding: 10px 18px;
  text-decoration: none;
  transition: all 0.3s ease;
}
.ac-google-review:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.25);
}
.ac-google-review__text {
  font-family: 'Inter', Arial, sans-serif;
  font-size: 16px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.8);
}

/* Address badge */
.ac-hero__address-badge {
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 100px;
  padding: 10px 18px;
  text-decoration: none;
  transition: all 0.3s ease;
}
.ac-hero__address-badge:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.25);
}
.ac-hero__address-text {
  display: flex;
  flex-direction: column;
}
.ac-hero__address-line1,
.ac-hero__address-line2 {
  font-family: 'Inter', Arial, sans-serif;
  font-size: 16px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.8);
  line-height: 1.3;
}
.ac-hero__address-line2 {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.5);
}
.ac-hero__address-arrow {
  color: rgba(255, 255, 255, 0.4);
}

/* Trusted by carousel label */
.ac-trust-carousel__label {
  font-family: 'Inter', Arial, sans-serif;
  font-size: 11px;
  font-weight: 500;
  color: rgba(255, 255, 255, 1);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  text-align: center;
  display: block;
  margin-bottom: 20px;
  font-size: 20px;
}

/* Scroll indicator */
.ac-hero-scroll-indicator {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  font-family: 'Inter', Arial, sans-serif;
  font-size: 11px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.3);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.ac-hero-scroll-arrow {
  animation: ac-bounce 2s ease-in-out infinite;
}
@keyframes ac-bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(5px); }
}

/* Mobile: show address badge, tighten layout */
@media (max-width: 768px) {
  .ac-hero__bottom {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    padding: 0 16px;
  }
}

/* === GLOBAL HERO STANDARDS END === */

/* ==========================================================================
   INDUSTRY FRICTION MAPS
   ========================================================================== */
.ac-friction-section {
  background: #050e14;
  padding: 6rem max(24px, var(--wp--preset--spacing--50));
  overflow-x: auto;
  overflow-y: hidden;
}

.ac-friction-shell {
  position: relative;
  min-width: 1200px;
  width: 100%;
  max-width: 1440px;
  height: 840px;
  margin: 0 auto;
  color: #fff;
  font-family: var(--font-primary);
}

.ac-friction-header {
  position: absolute;
  top: 2.5rem;
  left: 50%;
  z-index: 20;
  width: 100%;
  padding: 0 24px;
  text-align: center;
  transform: translateX(-50%);
}

.ac-friction-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
  padding: 0.5rem 1.25rem;
  border: 1px solid rgba(148, 163, 184, 0.45);
  border-radius: 999px;
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  font-weight: 500;
  line-height: 1;
  letter-spacing: 0.03em;
  color: rgba(241, 245, 249, 0.98);
}

.ac-friction-title {
  margin: 0;
  color: #fff;
  font-family: 'Inter', sans-serif;
  font-size: clamp(2.35rem, 4vw, 3.4rem);
  line-height: 1.05;
  font-weight: 700;
  letter-spacing: -0.03em;
}

.ac-friction-title span {
  color: #00b8ff;
}

.ac-friction-wave {
  position: absolute;
  inset: 0;
  z-index: 0;
  opacity: 0.8;
  pointer-events: none;
}

.ac-friction-wave svg {
  width: 100%;
  height: 100%;
}

@keyframes ac-friction-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

.ac-friction-float-1 { animation: ac-friction-float 5s ease-in-out infinite; }
.ac-friction-float-2 { animation: ac-friction-float 6s ease-in-out infinite 1s; }
.ac-friction-float-3 { animation: ac-friction-float 5.5s ease-in-out infinite 2s; }
.ac-friction-float-4 { animation: ac-friction-float 6.5s ease-in-out infinite 0.5s; }
.ac-friction-float-5 { animation: ac-friction-float 5s ease-in-out infinite 1.5s; }
.ac-friction-float-6 { animation: ac-friction-float 7s ease-in-out infinite 2.5s; }

.ac-friction-node {
  position: absolute;
  z-index: 10;
}

.ac-friction-node:hover {
  z-index: 50;
}

.ac-friction-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 54px;
  max-width: 290px;
  padding: 0.8rem 1.75rem;
  border: 1px solid rgba(71, 85, 105, 0.7);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.03);
  color: #e2e8f0;
  backdrop-filter: blur(8px);
  box-shadow: none;
  cursor: pointer;
  transition: all 0.3s ease;
}

.ac-friction-pill span {
  color: inherit;
  font-family: 'Inter', sans-serif;
  font-size: 17px;
  font-weight: 500;
  line-height: 1.3;
  text-align: center;
}

.ac-friction-node:hover .ac-friction-pill {
  background: rgba(0, 184, 255, 0.1);
  border-color: rgba(0, 184, 255, 0.6);
  box-shadow: 0 0 20px rgba(0, 184, 255, 0.15);
}

.ac-friction-card {
  position: absolute;
  width: 288px;
  padding: 1.25rem;
  border: 1px solid rgba(51, 65, 85, 0.7);
  border-radius: 1rem;
  background: #0a151c;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.ac-friction-card--down-left {
  top: calc(100% + 1rem);
  left: 0;
  transform: translateY(16px);
}

.ac-friction-card--down-center {
  top: calc(100% + 1rem);
  left: 50%;
  transform: translate(-50%, 16px);
}

.ac-friction-card--down-right {
  top: calc(100% + 1rem);
  right: 0;
  transform: translateY(16px);
}

.ac-friction-card--up-center {
  bottom: calc(100% + 1rem);
  left: 50%;
  transform: translate(-50%, 16px);
}

.ac-friction-node:hover .ac-friction-card {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.ac-friction-node:hover .ac-friction-card--down-left,
.ac-friction-node:hover .ac-friction-card--down-right {
  transform: translateY(0);
}

.ac-friction-node:hover .ac-friction-card--down-center,
.ac-friction-node:hover .ac-friction-card--up-center {
  transform: translate(-50%, 0);
}

.ac-friction-card__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  margin-bottom: 1rem;
  border: 1px solid rgba(51, 65, 85, 0.7);
  border-radius: 12px;
  background: #0d222e;
  color: #00b8ff;
}

.ac-friction-card__icon svg {
  width: 20px;
  height: 20px;
}

.ac-friction-card__body {
  margin: 0;
  color: #cbd5e1;
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  line-height: 1.6;
}

@media (max-width: 1023px) {
  .ac-friction-section {
    overflow: hidden;
    padding: 5.5rem 24px 3rem;
  }

  .ac-friction-shell {
    min-width: 100%;
    height: auto;
    padding-top: 5rem;
  }

  .ac-friction-header {
    position: relative;
    top: 0;
    left: 0;
    transform: none;
    margin-bottom: 2rem;
    padding: 0;
  }

  .ac-friction-wave {
    opacity: 0.38;
  }

  .ac-friction-node {
    position: relative;
    top: auto !important;
    right: auto !important;
    bottom: auto !important;
    left: auto !important;
    width: min(100%, 384px);
    margin: 0 auto 1rem;
    animation: none !important;
  }

  .ac-friction-pill {
    width: 100%;
    max-width: none;
  }

  .ac-friction-card {
    position: relative;
    top: auto;
    right: auto;
    bottom: auto;
    left: auto;
    width: 100%;
    margin-top: 0.9rem;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: none;
  }
}

/* Global reach trust line — hero (homepage) */
.hero-global-line {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.45);
  letter-spacing: 0.05em;
  margin-top: 14px;
  margin-bottom: 22px;
  text-align: center;
  line-height: 1.6;
}
@media (max-width: 480px) {
  .hero-global-line {
    font-size: 12px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
  }
  .hero-global-line .sep {
    display: none;
  }
}

/* Global reach line — below Our Structure badge */
.ac-structure__tagline {
  text-align: center;
  font-size: 17px;
  color: rgba(255, 255, 255, 0.55);
  margin: 12px auto 32px;
  max-width: 620px;
  line-height: 1.6;
}

/* Global CTA supporting note */
.ac-cta-note {
  font-size: 18px;
  color: rgba(255, 255, 255, 0.45);
  margin: 0.75rem 0 0;
  text-align: center;
  letter-spacing: 0.01em;
}

/* Dark text on light-background CTA sections */
.racetrack-cta .ac-cta-note {
  color: rgba(0, 0, 0, 0.4);
}

/* ==========================================================================
   SINGLE BLOG POST TEMPLATE
   ========================================================================== */

/* Ensure page body background matches on single posts */
.single-post body,
body.single {
  background-color: #FFFFFF;
}

/* Hero feature image — contained, rounded corners */
.ac-post-hero-image.wp-block-post-featured-image {
  width: 100%;
  border-radius: 12px;
  overflow: hidden;
  margin-top: 0;
  margin-bottom: 4rem;
}

.ac-post-hero-image.wp-block-post-featured-image img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 12px;
}

/* Standfirst / article summary */
.ac-post-lede .wp-block-post-excerpt__excerpt {
  font-family: var(--font-secondary);
  font-size: 1.5rem;
  font-weight: 400;
  font-style: italic;
  line-height: 1.65;
  color: #3A4A52;
  margin: 0;
}
.ac-post-lede-sep.wp-block-separator {
  background-color: #E0E8EC !important;
  border-color: #E0E8EC !important;
  height: 1px;
  opacity: 1;
}

/* Author + date byline */
.ac-post-byline {
  gap: 0.5rem;
  align-items: center;
}

.ac-post-author {
  color: #2A3A42;
  font-size: 0.9rem;
  font-weight: 600;
}

.ac-post-author::before {
  content: 'By ';
  font-weight: 400;
  color: #8899A4;
}

.ac-post-category a {
  display: inline-block;
  background: #07A9D1;
  color: #FFFFFF !important;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 3px 10px;
  border-radius: 4px;
  text-decoration: none;
}

.ac-post-date {
  color: #5A7080;
  font-size: 0.9rem;
}

/* Post title */
.ac-post-title.wp-block-post-title {
  color: #010D12;
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.2;
  font-weight: 700;
  margin-bottom: 2rem;
}

/* Post body content — readable dark text */
.ac-post-body,
.ac-post-body p,
.ac-post-body li {
  color: #2A3A42;
  font-size: 22px;
  line-height: 1.85;
  font-family: var(--font-secondary);
}

.ac-post-title.wp-block-post-title,
.ac-post-body h2,
.ac-post-body h2.wp-block-heading,
.ac-post-body h3,
.ac-post-body h3.wp-block-heading,
.ac-post-body h4,
.ac-post-body h4.wp-block-heading {
  font-family: var(--font-primary);
}

.ac-post-body h2,
.ac-post-body h2.wp-block-heading {
  color: #010D12;
  font-size: 32px;
  line-height: 1.3;
  font-weight: 700;
  margin-top: 2.5rem;
  margin-bottom: 0.75rem;
}

.ac-post-body h3,
.ac-post-body h3.wp-block-heading {
  color: #010D12;
  font-size: 1.35rem;
  line-height: 1.35;
  font-weight: 600;
  margin-top: 2rem;
  margin-bottom: 0.5rem;
}

.ac-post-body h4,
.ac-post-body h4.wp-block-heading {
  color: #010D12;
  font-size: 1.15rem;
  line-height: 1.4;
  font-weight: 600;
  margin-top: 1.5rem;
  margin-bottom: 0.5rem;
}

.ac-post-body .schema-faq-question {
  font-weight: 700;
  font-size: 1.05em;
  display: block;
  margin-bottom: 0.4rem;
}

.ac-post-body a {
  color: #07A9D1;
}

.ac-post-body a:hover {
  color: #0A576B;
}

.ac-post-body blockquote {
  border-left: 4px solid #07A9D1;
  padding-left: 1.25rem;
  margin-left: 0;
  color: #4A6070;
  font-style: italic;
}

.ac-post-body img {
  max-width: 100%;
  height: auto;
  border-radius: 6px;
}

.ac-post-body code {
  background: #F0F5F7;
  color: #0A576B;
  padding: 0.15em 0.4em;
  border-radius: 3px;
  font-size: 0.9em;
}

.ac-post-body pre {
  background: #F0F5F7;
  padding: 1rem 1.25rem;
  border-radius: 6px;
  overflow-x: auto;
}

/* Post tags */
.ac-post-tags a {
  color: #07A9D1;
  font-size: 0.85rem;
  text-decoration: none;
  margin-right: 0.5rem;
}

.ac-post-tags a::before {
  content: '#';
}

/* Post navigation links */
.ac-post-nav a {
  color: #07A9D1;
  text-decoration: none;
  font-size: 1.1rem;
  font-weight: 500;
  font-family: var(--font-secondary);
}

.ac-post-nav a:hover {
  color: #0A576B;
}

/* ==========================================================================
   BLOG POST INLINE CTA BLOCK
   ========================================================================== */

.ac-post-cta-block {
  background: linear-gradient(135deg, #06212C 0%, #0A576B 100%);
  border-radius: 12px;
  margin-top: 3rem;
  margin-bottom: 1rem;
}

.ac-post-cta-heading {
  color: #FFFFFF !important;
  font-size: 1.6rem !important;
  font-weight: 700 !important;
  margin-bottom: 1rem !important;
  margin-top: 0 !important;
}

.ac-post-cta-text {
  color: rgba(255, 255, 255, 0.82) !important;
  font-size: 1.1rem !important;
  line-height: 1.7 !important;
  margin-bottom: 0 !important;
}

.ac-post-cta-btn .wp-block-button__link {
  background: #07A9D1;
  color: #FFFFFF !important;
  font-weight: 600;
  font-size: 1rem;
  padding: 0.85rem 2rem;
  border-radius: 8px;
  text-decoration: none !important;
  transition: background 0.2s, transform 0.15s, box-shadow 0.2s;
  display: inline-block;
}

.ac-post-cta-btn .wp-block-button__link:hover {
  background: #FFFFFF;
  color: #06212C !important;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(7, 169, 209, 0.35);
}

/* CTA service cards (3-up below the button) */
.ac-post-cta-services {
  display: flex;
  gap: 0.75rem;
  margin-top: 2rem;
  flex-wrap: wrap;
}
.ac-post-cta-service-card {
  flex: 1 1 0;
  min-width: 160px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 10px;
  padding: 0.9rem 1.1rem;
  text-decoration: none !important;
  color: #FFFFFF;
  font-family: var(--font-primary);
  font-size: 0.9rem;
  font-weight: 600;
  transition: background 0.2s, border-color 0.2s, transform 0.15s;
}
.ac-post-cta-service-card:hover {
  background: #FFFFFF;
  border-color: #FFFFFF;
  color: #06212C;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(7, 169, 209, 0.35);
}
.ac-post-cta-service-card svg {
  opacity: 0.5;
  flex-shrink: 0;
  transition: opacity 0.2s, transform 0.2s;
}
.ac-post-cta-service-card:hover svg {
  opacity: 1;
  transform: translateX(3px);
  color: #06212C;
}

/* ── Sidebar layout states ────────────────────────────────────────────────
   < 900px          : hidden (mobile, single-column)
   900px – 1739px   : inline 65/35 split inside the content container
   ≥ 1740px         : content full-width; sidebar fixed in the right margin
                      (1740px is the minimum where 280px sidebar + 20px gap
                       clears the right edge of the 1200px content box)
   ──────────────────────────────────────────────────────────────────────── */

/* Default (900–1739px): inline alongside content */
.ac-post-content-col.wp-block-column {
  flex: 1 1 0% !important;
  min-width: 0;
}

.ac-post-sidebar-col.wp-block-column {
  flex: 0 0 280px !important;
  width: 280px;
}

/* Wide screens (≥ 1740px): content full-width, sidebar in right margin */
@media (min-width: 1740px) {
  .ac-post-content-col.wp-block-column {
    flex: 1 1 100% !important;
    max-width: 100% !important;
  }

  .ac-post-sidebar-col.wp-block-column {
    position: fixed !important;
    right: 24px;
    top: 120px;
    width: 280px;
    flex: none !important;
    /* Don't let it affect the content column width */
    pointer-events: auto;
    z-index: 100;
  }
}

/* Mobile (< 900px): hide sidebar */
/* Mobile single-post overrides */
.ac-mobile-engagement,
.ac-mobile-subscribe {
  display: none;
}

@media (max-width: 899px) {
  .ac-post-sidebar-col.wp-block-column {
    display: none !important;
  }

  /* Show mobile engagement row + subscribe block */
  .ac-mobile-engagement {
    display: block;
    margin-bottom: 1.5rem;
  }
  .ac-mobile-subscribe {
    display: block;
    background: #F8FAFB;
    border: 1px solid #E0E8EC;
    border-radius: 12px;
    padding: 1.5rem;
    margin-top: 2rem;
  }

  /* Larger body text on mobile */
  .ac-post-body,
  .ac-post-body p,
  .ac-post-body li {
    font-size: 18px;
    line-height: 1.8;
  }

  /* Mobile share row */
  .ac-mobile-share-row {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: nowrap;
  }
}

.ac-sidebar-card {
  position: sticky;
  top: 100px;
  background: #F8FAFB;
  border: 1px solid #E0E8EC;
  border-radius: 12px;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.ac-sidebar-divider {
  height: 1px;
  background: #E0E8EC;
  margin: 1.25rem 0;
}

.ac-sidebar-section {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.ac-sidebar-label {
  font-family: var(--font-primary);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #8899A4;
  margin: 0;
}

.ac-sidebar-sub {
  font-size: 0.9rem;
  color: #4A5A65;
  line-height: 1.5;
  margin: 0;
  font-family: var(--font-secondary);
}

/* Bookmark nudge */
.ac-bookmark-nudge {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  font-family: var(--font-primary);
  font-size: 0.85rem;
  color: #5A7080;
  margin: 0;
  line-height: 1.5;
}

.ac-bookmark-nudge svg {
  flex-shrink: 0;
  color: #07A9D1;
}

.ac-bookmark-nudge kbd {
  display: inline-block;
  background: #FFFFFF;
  border: 1px solid #D0DCE3;
  border-radius: 4px;
  padding: 0 5px;
  font-size: 0.78rem;
  font-family: var(--font-primary);
  color: #2A3A42;
  box-shadow: 0 1px 0 #C0CDD4;
  white-space: nowrap;
}

/* Share icons row */
.ac-share-row {
  display: flex;
  gap: 0.5rem;
  flex-wrap: nowrap;
}

.ac-share-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 8px;
  background: #FFFFFF;
  border: 1.5px solid #E0E8EC;
  color: #4A5A65;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.2s;
  flex-shrink: 0;
}

.ac-share-icon:hover {
  background: #07A9D1;
  border-color: #07A9D1;
  color: #FFFFFF;
}

.ac-copy-toast {
  font-size: 0.8rem;
  color: #07A9D1;
  font-family: var(--font-primary);
  height: 0;
  overflow: hidden;
  opacity: 0;
  transition: opacity 0.2s;
}

.ac-copy-toast.show {
  height: auto;
  opacity: 1;
}

/* Like button */
.ac-like-row {
  margin-top: 0.9rem;
}
.ac-like-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: none;
  border: 1px solid #D0DCE3;
  border-radius: 20px;
  padding: 5px 12px;
  cursor: pointer;
  color: #5A7080;
  font-family: var(--font-primary);
  font-size: 0.85rem;
  font-weight: 600;
  transition: color 0.2s, border-color 0.2s, background 0.2s;
}
.ac-like-btn svg {
  transition: fill 0.2s, color 0.2s, transform 0.15s;
}
.ac-like-btn:hover {
  border-color: #E85555;
  color: #E85555;
}
.ac-like-btn:hover svg {
  transform: scale(1.15);
}
.ac-like-btn.is-liked {
  border-color: #E85555;
  color: #E85555;
  background: #FFF5F5;
}
.ac-like-btn.is-liked svg {
  fill: #E85555;
  color: #E85555;
}

/* Views in byline */
.ac-post-views-wrap {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: #8899A4;
  font-size: 0.9rem;
  font-family: var(--font-primary);
  vertical-align: middle;
}
.ac-post-views-wrap svg {
  flex-shrink: 0;
  color: #8899A4;
}

/* Subscribe form */
.ac-subscribe-form {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.ac-subscribe-input {
  width: 100%;
  padding: 0.65rem 0.9rem;
  border: 1.5px solid #E0E8EC;
  border-radius: 8px;
  font-size: 0.9rem;
  font-family: var(--font-secondary);
  color: #2A3A42;
  background: #FFFFFF;
  outline: none;
  box-sizing: border-box;
  transition: border-color 0.2s;
}

.ac-subscribe-input:focus {
  border-color: #07A9D1;
}

.ac-subscribe-btn {
  width: 100%;
  padding: 0.65rem;
  background: #07A9D1;
  color: #FFFFFF;
  border: none;
  border-radius: 8px;
  font-size: 0.9rem;
  font-weight: 600;
  font-family: var(--font-primary);
  cursor: pointer;
  transition: background 0.2s;
}

.ac-subscribe-btn:hover {
  background: #0A576B;
}

.ac-subscribe-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.ac-subscribe-msg {
  font-size: 0.85rem;
  font-family: var(--font-secondary);
  margin: 0;
}

.ac-subscribe-msg--ok { color: #07A9D1; }
.ac-subscribe-msg--err { color: #c0392b; }

/* On wide screens the sidebar col is fixed, card doesn't need its own sticky */
@media (min-width: 1740px) {
  .ac-sidebar-card {
    position: static;
  }
}

/* ==========================================================================
   COMMENTS SECTION
   ========================================================================== */

/* Separator above comments */
.ac-post-comments {
  border-top: 2px solid #E0E8EC;
  padding-top: 3rem;
  margin-top: 1rem;
}

/* "2 Comments" heading */
.ac-post-comments .wp-block-comments-title {
  font-family: var(--font-primary);
  font-size: 1.3rem;
  font-weight: 700;
  color: #010D12;
  margin-bottom: 1.75rem;
}

/* Each comment — card treatment */
.ac-post-comments .wp-block-comment-template li {
  background: #F8FAFB;
  border: 1px solid #E0E8EC;
  border-radius: 10px;
  padding: 1.25rem 1.5rem;
  margin-bottom: 1rem;
  list-style: none;
}

/* Author name */
.ac-post-comments .wp-block-comment-author-name,
.ac-post-comments .wp-block-comment-author-name a {
  color: #010D12 !important;
  font-family: var(--font-primary);
  font-size: 0.95rem;
  font-weight: 700;
  text-decoration: none !important;
}

/* Date */
.ac-post-comments .wp-block-comment-date,
.ac-post-comments .wp-block-comment-date a {
  color: #8899A4 !important;
  font-family: var(--font-primary);
  font-size: 0.8rem;
}

/* Comment body */
.ac-post-comments .wp-block-comment-content,
.ac-post-comments .wp-block-comment-content p {
  color: #2A3A42 !important;
  font-family: var(--font-secondary);
  font-size: 1rem;
  line-height: 1.7;
  margin-top: 0.6rem !important;
  margin-bottom: 0 !important;
}

/* Reply link */
.ac-post-comments .wp-block-comment-reply-link a {
  color: #07A9D1;
  font-size: 0.85rem;
  font-family: var(--font-primary);
  font-weight: 600;
  text-decoration: none;
}
.ac-post-comments .wp-block-comment-reply-link a:hover {
  color: #0A576B;
}

/* Avatar */
.ac-post-comments .wp-block-avatar img {
  border-radius: 50%;
  border: 2px solid #E0E8EC;
}

/* "Leave a Reply" form heading */
.ac-post-comments .wp-block-post-comments-form .comment-reply-title {
  font-family: var(--font-primary);
  font-size: 1.2rem;
  font-weight: 700;
  color: #010D12;
  margin-top: 2rem;
  margin-bottom: 1rem;
  display: block;
}

/* Form fields */
.ac-post-comments .wp-block-post-comments-form input:not([type=submit]):not([type=checkbox]),
.ac-post-comments .wp-block-post-comments-form textarea {
  border: 1px solid #D0DCE3 !important;
  border-radius: 8px;
  font-family: var(--font-secondary);
  font-size: 1rem;
  color: #2A3A42;
  background: #FFFFFF;
  transition: border-color 0.2s;
}
.ac-post-comments .wp-block-post-comments-form input:not([type=submit]):focus,
.ac-post-comments .wp-block-post-comments-form textarea:focus {
  border-color: #07A9D1 !important;
  outline: none;
  box-shadow: 0 0 0 3px rgba(7,169,209,0.12);
}

/* Submit button */
.ac-post-comments .wp-block-post-comments-form input[type=submit] {
  background: #07A9D1 !important;
  color: #FFFFFF !important;
  border: none !important;
  border-radius: 8px;
  padding: 0.75rem 1.75rem;
  font-family: var(--font-primary);
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  transition: background 0.2s, transform 0.15s;
}
.ac-post-comments .wp-block-post-comments-form input[type=submit]:hover {
  background: #0A576B !important;
  transform: translateY(-1px);
}

/* Labels */
.ac-post-comments .wp-block-post-comments-form label {
  font-family: var(--font-primary);
  font-size: 0.85rem;
  font-weight: 600;
  color: #2A3A42;
}

/* Comment edit link (visible for admins/editors) */
.ac-post-comments .wp-block-comment-edit-link,
.ac-post-comments .wp-block-comment-edit-link a {
  color: #8899A4 !important;
  font-size: 0.8rem;
  font-family: var(--font-primary);
  text-decoration: none !important;
}
.ac-post-comments .wp-block-comment-edit-link a:hover {
  color: #07A9D1 !important;
}

/* "Logged in as … | Log out" — own line, subtle */
.ac-logged-in-as,
.ac-post-comments .logged-in-as {
  display: block;
  font-family: var(--font-primary);
  font-size: 0.85rem;
  color: #8899A4;
  margin-top: 0.5rem;
  margin-bottom: 1.25rem;
}
.ac-logged-in-as a,
.ac-post-comments .logged-in-as a {
  color: #07A9D1 !important;
  text-decoration: none;
}
.ac-logged-in-as a:hover,
.ac-post-comments .logged-in-as a:hover {
  text-decoration: underline;
}

/* Hide "* required fields" note (also removed via PHP but belt-and-suspenders) */
.ac-post-comments .comment-notes,
.ac-post-comments p.comment-notes {
  display: none !important;
}

/* Guest name/email fields — style to match site */
.ac-post-comments .comment-form-author,
.ac-post-comments .comment-form-email,
.ac-post-comments .comment-form-url {
  margin-bottom: 1rem;
}
.ac-post-comments .comment-form-author label,
.ac-post-comments .comment-form-email label,
.ac-post-comments .comment-form-url label {
  font-family: var(--font-primary);
  font-size: 0.85rem;
  font-weight: 600;
  color: #2A3A42;
  display: block;
  margin-bottom: 0.35rem;
}

/* Comment field label hints */
.ac-field-required {
  color: #07A9D1;
  font-weight: 700;
}
.ac-field-optional {
  font-weight: 400;
  font-size: 0.78rem;
  color: #8899A4;
  margin-left: 0.3rem;
}
