/* ============================================================
 * marathon-home.css — L3 skin for Marathon Restorations (home + header/footer).
 * Marathon-specific. Composes the .section/.section--inverse/.media core.
 * Class names are ac-/u- prefixed and function-named (no Bootstrap collisions).
 * Loads after custom.css + anchor-footer.css.
 * ============================================================ */

/* --- Page base --- */
body{ background: var(--secondary-color); color: var(--ink); -webkit-font-smoothing: antialiased; }
::selection{ background: var(--accent-color); color: #fff; }

/* --- Container --- */
.ac-container{ max-width: 1320px; margin: 0 auto; padding: 0 36px; }

/* --- Eyebrow: accent dash + Space Mono label (used in every section) --- */
.ac-eyebrow{ display: flex; align-items: center; gap: 14px; margin-bottom: 20px; }
.ac-eyebrow::before{ content: ""; flex: none; width: 42px; height: 3px; background: var(--accent-color); }
.ac-eyebrow__label{ font-family: var(--mono-font); font-size: var(--fs-eyebrow); font-weight: 400; letter-spacing: 4px; text-transform: uppercase; color: var(--accent-color); }
.ac-eyebrow--on-dark  .ac-eyebrow__label{ color: var(--on-dark-accent); }   /* navy sections */
.ac-eyebrow--on-photo .ac-eyebrow__label{ color: #cfe0f2; }                  /* hero / CTA photos */

/* --- Buttons (square, uppercase) --- */
.ac-btn{ display: inline-flex; align-items: center; gap: 10px; font-family: var(--default-font); font-size: 14px; font-weight: 700; letter-spacing: .6px; text-transform: uppercase; padding: 17px 30px; text-decoration: none; border: 0; border-radius: var(--radius-md); cursor: pointer; transition: background .2s ease, border-color .2s ease; }
.ac-btn--solid{ background: var(--accent-color); color: #fff; }
.ac-btn--solid:hover{ background: #2a86e0; }
.ac-btn--ghost{ background: transparent; color: #fff; border: 1px solid rgba(255,255,255,.45); }
.ac-btn--ghost:hover{ border-color: #fff; background: rgba(255,255,255,.08); }

/* --- Vertical grid-line overlay (4 cols, aligned to container) --- */
.ac-grid-lines{ position: absolute; inset: 0; z-index: 1; pointer-events: none; }
.ac-grid-lines__inner{ max-width: 1320px; height: 100%; margin: 0 auto; padding: 0 36px; display: grid; grid-template-columns: repeat(4, 1fr); }
.ac-grid-lines__inner > span{ border-right: 1px solid rgba(255,255,255,.08); }
.ac-grid-lines__inner > span:last-child{ border-right: 0; }
.ac-grid-lines--faint .ac-grid-lines__inner > span{ border-color: rgba(255,255,255,.05); }

/* --- Seam grid: each cell paints all 4 edges; negative margins keep coincident seams 1px --- */
.ac-seam-grid > *{ border: 1px solid var(--divider-strong); margin: 0 -1px -1px 0; }
.ac-seam-grid--on-dark > *{ border-color: rgba(255,255,255,.22); }

/* --- Mobile container gutter --- */
@media (max-width: 980px){ .ac-container{ padding: 0 20px; } }

/* =================== HEADER — floating glass nav (sticky) =================== */
.ac-header{ position: fixed; top: 0; left: 0; right: 0; z-index: 40; transition: background .3s ease, box-shadow .3s ease; }
/* Solidify once scrolled past the hero so the white nav stays legible over content. */
.ac-header.is-stuck{ background: rgba(16,47,80,.94); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); box-shadow: 0 10px 30px rgba(8,20,36,.28); }
.ac-header.is-stuck .ac-header__inner{ padding-top: 12px; padding-bottom: 12px; transition: padding .3s ease; }
.ac-header__inner{ max-width: 1320px; margin: 0 auto; padding: 24px 36px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.ac-header__logo{ display: flex; align-items: center; flex: none; text-decoration: none; }
.ac-header__logo-img{ height: 96px; width: auto; display: block; transition: height .35s cubic-bezier(.2,.7,.2,1); }
.ac-glass-nav{ display: flex; align-items: center; gap: 4px; padding: 8px 10px; border-radius: var(--radius-pill); background: rgba(255,255,255,.10); border: 1px solid rgba(255,255,255,.22); -webkit-backdrop-filter: blur(12px) saturate(1.3); backdrop-filter: blur(12px) saturate(1.3); }
.ac-glass-nav > a, .ac-nav-item__top{ font-size: 14px; font-weight: 600; color: #fff; text-decoration: none; padding: 9px 18px; border-radius: var(--radius-pill); transition: background .2s ease; display: inline-flex; align-items: center; gap: 6px; cursor: pointer; }
.ac-glass-nav > a:hover, .ac-nav-item:hover .ac-nav-item__top{ background: rgba(255,255,255,.18); }
.ac-nav-caret{ font-size: 9px; opacity: .85; }

/* Desktop dropdown (Services, About Us) */
.ac-nav-item{ position: relative; }
.ac-nav-drop{ position: absolute; top: calc(100% + 12px); left: 50%; transform: translateX(-50%) translateY(6px); min-width: 210px; display: flex; flex-direction: column; padding: 8px; background: rgba(16,47,80,.97); border: 1px solid rgba(255,255,255,.14); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); border-radius: 16px; opacity: 0; visibility: hidden; transition: opacity .2s ease, transform .2s ease; }
.ac-nav-drop::before{ content: ""; position: absolute; left: 0; right: 0; bottom: 100%; height: 14px; } /* hover bridge */
.ac-nav-item:hover .ac-nav-drop{ opacity: 1; visibility: visible; transform: translateX(-50%) translateY(0); }
.ac-nav-drop a{ font-size: 14px; font-weight: 600; color: #fff; text-decoration: none; padding: 11px 16px; border-radius: 10px; transition: background .2s ease; }
.ac-nav-drop a:hover{ background: rgba(255,255,255,.14); }

.ac-header__cta{ flex: none; font-size: 13px; font-weight: 700; letter-spacing: .8px; text-transform: uppercase; color: #fff; text-decoration: none; padding-bottom: 5px; border-bottom: 1px solid rgba(255,255,255,.55); transition: border-color .2s ease; }
.ac-header__cta:hover{ border-color: #fff; }

.ac-burger{ display: none; }
.ac-menu{ display: none; }

@media (max-width: 980px){
	/* Lift the whole header (and its fixed burger child) above the overlay.
	   The burger's own z-index is trapped inside this header's stacking context,
	   so the HEADER must out-rank .ac-menu (z-index 1000) for the burger to show
	   and stay clickable while the overlay is open. */
	/* One knob drives the mobile logo size, the burger's vertical centering, and
	   the menu's top offset, so they always agree (burger stays centered on the
	   logo whatever its height; menu content always clears the header). */
	:root{ --ac-logo-mobile: 42px; --ac-header-pad-y: 16px; }
	.ac-header{ z-index: 1002; }
	.ac-header__inner{ padding: var(--ac-header-pad-y) 20px; }
	.ac-header__logo-img{ height: var(--ac-logo-mobile); }
	.ac-header__cta{ display: none; }
	.ac-glass-nav{ display: none; }

	/* Hamburger — fixed, vertically centered on the logo; never shifts; morphs to X in place. */
	/* The burger sits in the header's flex row, NOT position:fixed.
	   It used to be fixed and offset by hand, which broke on scroll: .is-stuck adds
	   backdrop-filter to .ac-header, and backdrop-filter makes an element a containing
	   block for its position:fixed descendants. So past 40px the burger stopped being
	   positioned against the viewport, re-anchored to the header box, and dropped out
	   of the bar. In normal flow it inherits align-items:center from .ac-header__inner,
	   so it stays centred on the logo and follows the .is-stuck padding change for free. */
	.ac-burger{ position: relative; z-index: 1001; flex: none; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 5px; width: 48px; height: 48px; padding: 0; background: var(--primary-color); border: 1px solid rgba(255,255,255,.28); border-radius: 12px; cursor: pointer; }
	.ac-burger span{ display: block; width: 20px; height: 2px; background: #fff; border-radius: 2px; transition: transform .3s cubic-bezier(.4,0,.2,1), opacity .2s ease; }
	.ac-burger.is-open span:nth-child(1){ transform: translateY(7px) rotate(45deg); }
	.ac-burger.is-open span:nth-child(2){ opacity: 0; }
	.ac-burger.is-open span:nth-child(3){ transform: translateY(-7px) rotate(-45deg); }

	/* Full-screen overlay. */
	.ac-menu{ display: flex; flex-direction: column; position: fixed; inset: 0; z-index: 1000; background: var(--primary-color); transform: translateX(100%); transition: transform .35s cubic-bezier(.4,0,.2,1); }
	.ac-menu.is-open{ transform: translateX(0); }
	.ac-menu__viewport{ position: relative; flex: 1; overflow: hidden; }
	.ac-menu__panel{ position: absolute; inset: 0; padding: calc(var(--ac-topbar-h) + var(--ac-header-pad-y) * 2 + var(--ac-logo-mobile) + 22px) 28px 28px; overflow-y: auto; background: var(--primary-color); }
	.ac-menu__panel--sub{ transform: translateX(100%); transition: transform .3s cubic-bezier(.4,0,.2,1); z-index: 2; }
	.ac-menu__panel--sub.is-active{ transform: translateX(0); }
	.ac-menu__list{ list-style: none; margin: 0; padding: 0; }
	.ac-menu__list li + li{ border-top: 1px solid rgba(255,255,255,.10); }
	.ac-menu__list a, .ac-menu__into{ display: flex; align-items: center; justify-content: flex-end; gap: 14px; width: 100%; text-align: right; background: none; border: 0; cursor: pointer; font-family: var(--heading-font); font-weight: 700; font-size: 26px; line-height: 1.1; color: #fff; text-decoration: none; padding: 20px 0; }
	.ac-menu__into::after{ content: "\203A"; font-size: 30px; line-height: 1; color: var(--on-dark-accent); }
	/* Back button mirrors the forward arrow: chevron sectioned off in its own box with a full-height divider. */
	.ac-menu__back{ display: flex; align-items: stretch; width: 100%; background: none; border: 0; border-bottom: 1px solid rgba(255,255,255,.16); cursor: pointer; padding: 0; margin-bottom: 14px; font-family: var(--heading-font); color: #fff; }
	.ac-menu__back-icon{ flex: 0 0 auto; width: 64px; display: flex; align-items: center; justify-content: center; border-right: 1px solid rgba(255,255,255,.16); }
	.ac-menu__back-icon::before{ content: "\2039"; font-size: 30px; line-height: 1; color: var(--on-dark-accent); }
	.ac-menu__back-label{ flex: 1 1 auto; display: flex; align-items: center; padding: 16px 0 16px 22px; font-weight: 700; font-size: 26px; line-height: 1.1; text-align: left; }
	/* Parent item = clickable label link + a sectioned-off arrow button (opens the sub-panel). */
	.ac-menu__row{ display: flex; align-items: stretch; }
	.ac-menu__row .ac-menu__link{ flex: 1 1 auto; min-width: 0; padding-right: 22px; }
	.ac-menu__row .ac-menu__into{ flex: 0 0 auto; width: 64px; justify-content: center; gap: 0; padding: 20px 0; border-left: 1px solid rgba(255,255,255,.16); }

	/* Fixed bottom CTA container. */
	.ac-menu__footer{ flex: none; display: flex; gap: 12px; padding: 16px 20px calc(16px + env(safe-area-inset-bottom)); border-top: 1px solid rgba(255,255,255,.14); background: var(--primary-deep); }
	.ac-menu__call{ flex: 1; display: flex; align-items: center; justify-content: center; padding: 11px 10px; border: 1px solid rgba(255,255,255,.30); text-decoration: none; }
	.ac-menu__call-label{ font-family: var(--mono-font); font-size: 12px; letter-spacing: 1.2px; line-height: 1.15; text-transform: uppercase; color: #fff; }
	.ac-menu__est{ flex: 1; justify-content: center; text-align: center; padding: 11px 16px; line-height: 1.15; }

	body.ac-menu-open{ overflow: hidden; }
}

/* =================== HERO =================== */
.ac-hero{ position: relative; overflow: hidden; min-height: 100vh; display: flex; flex-direction: column; background: var(--primary-color); }
.ac-hero__photo{ position: absolute; inset: 0; z-index: 0; background-size: cover; background-position: right center; }
.ac-hero__scrim{ position: absolute; inset: 0; z-index: 0; background: linear-gradient(to top, rgba(11,26,46,.92) 0%, rgba(11,26,46,0) 50%); }
.ac-hero__body{ position: relative; z-index: 2; flex: 1; width: 100%; min-height: 720px; display: flex; flex-direction: column; justify-content: flex-end; padding-top: 208px; padding-bottom: 96px; }
.ac-hero__title{ font-family: var(--heading-font); font-weight: 800; font-size: var(--fs-display); line-height: .96; letter-spacing: -2px; color: #fff; max-width: 920px; text-wrap: balance; margin: 0; }
.ac-hero__lead{ font-size: var(--fs-subtitle); line-height: 1.55; color: var(--on-dark); max-width: 560px; margin-top: 30px; }
.ac-hero__actions{ display: flex; flex-wrap: wrap; gap: 14px; margin-top: 42px; }

/* Stat bar pinned to hero bottom */
.ac-statbar{ position: relative; z-index: 2; border-top: 1px solid rgba(255,255,255,.16); background: rgba(8,20,36,.45); }
.ac-statbar__grid{ display: grid; grid-template-columns: repeat(4, 1fr); }
.ac-statbar__cell{ padding: 28px 8px; border-right: 1px solid rgba(255,255,255,.12); }
.ac-statbar__cell:last-child{ border-right: 0; }
.ac-statbar__num{ font-family: var(--heading-font); font-weight: 800; font-size: 30px; color: #fff; }
.ac-statbar__num span{ color: var(--accent-color); }
.ac-statbar__label{ font-size: 12px; letter-spacing: 1px; text-transform: uppercase; color: var(--on-dark-muted); margin-top: 4px; }

@media (max-width: 980px){
	.ac-hero__body{ padding-top: 124px; padding-bottom: 60px; min-height: 0; }
	.ac-hero__title{ font-size: 48px; letter-spacing: -1px; }
}
@media (max-width: 560px){
	.ac-hero__title{ font-size: 37px; }
	.ac-statbar__grid{ grid-template-columns: repeat(2, 1fr); }
	.ac-statbar__cell{ border-right: 0; }
}

/* =================== Shared section heading =================== */
.ac-h2{ font-family: var(--heading-font); font-weight: 800; font-size: var(--fs-title); line-height: 1.04; letter-spacing: -1px; color: var(--primary-color); margin: 0; }
.media--zoom:hover img{ transform: scale(1.06); }

/* =================== CERTIFICATIONS =================== */
.ac-certs{ background: var(--secondary-color); padding-top: 34px; }
/* Columns follow the logo count (the list is filterable via `ac_certs`). */
.ac-certs__grid{ display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); }
.ac-certs__cell{ display: flex; align-items: center; justify-content: center; padding: 0 16px; }
.ac-certs__cell img{ width: auto; display: block; }
.ac-certs__rule{ margin-top: 34px; height: 1px; background: var(--divider-color); }
@media (max-width: 560px){ .ac-certs__grid{ grid-auto-flow: row; grid-template-columns: repeat(2, 1fr); row-gap: 30px; } }

/* =================== SERVICES =================== */
.ac-svc-head{ display: flex; align-items: flex-end; justify-content: space-between; gap: 40px; flex-wrap: wrap; margin-bottom: 54px; }
.ac-svc-head__lead{ max-width: 680px; }
.ac-svc-head__intro{ max-width: 360px; font-size: 16px; line-height: 1.6; color: var(--text-color); }
.ac-svc-grid{ display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); }
.ac-svc-card{ background: #fff; display: flex; flex-direction: column; }
.ac-svc-card .media{ border-radius: 0; }
.ac-svc-card__body{ padding: 32px 30px 34px; display: flex; flex-direction: column; flex: 1; }
.ac-svc-card__head{ display: flex; align-items: baseline; gap: 14px; margin-bottom: 14px; }
.ac-svc-card__no{ font-family: var(--mono-font); font-size: 13px; font-weight: 700; color: var(--accent-color); }
.ac-svc-card__title{ font-family: var(--heading-font); font-weight: 800; font-size: 25px; color: var(--primary-color); margin: 0; }
.ac-svc-card__text{ font-size: 15.5px; line-height: 1.6; color: var(--text-color); flex: 1; }
.ac-svc-card__link{ margin-top: 22px; font-size: 13px; font-weight: 700; letter-spacing: .8px; text-transform: uppercase; color: var(--accent-color); text-decoration: none; display: inline-flex; align-items: center; gap: 8px; transition: gap .2s ease; }
.ac-svc-card__link:hover{ gap: 14px; }

/* --- Services CTA tile (fills the 6th grid cell) --- */
.ac-svc-cta{ position: relative; display: flex; align-items: center; justify-content: center; text-align: center; text-decoration: none; background: var(--accent-color); color: #fff; padding: 40px 28px; overflow: hidden; transition: background .3s ease; }
.ac-svc-cta:hover{ background: #2a86e0; }
.ac-svc-cta__inner{ display: flex; flex-direction: column; align-items: center; gap: 20px; }
.ac-svc-cta__text{ font-family: var(--heading-font); font-weight: 800; font-size: clamp(22px, 4.4vw, 30px); line-height: 1.1; letter-spacing: -.5px; white-space: nowrap; }
.ac-svc-cta__text > span{ display: inline-block; transition: opacity .5s ease, transform .5s cubic-bezier(.2,.7,.2,1); transition-delay: calc(var(--i,0) * 42ms); }
.ac-svc-cta__text > span.sp{ width: .3em; }
/* JS enables the reveal: letters start hidden, then fade up one by one when in view. */
.ac-svc-cta.is-anim .ac-svc-cta__text > span{ opacity: 0; transform: translateY(16px); }
.ac-svc-cta.is-anim.is-in .ac-svc-cta__text > span{ opacity: 1; transform: none; }
/* Hover: subtle traveling "worm" wave, first letter to last, repeating. */
@keyframes ac-cta-worm{ 0%, 55%, 100%{ transform: translateY(0); } 27%{ transform: translateY(-5px); } }
.ac-svc-cta.is-in:hover .ac-svc-cta__text > span{ animation: ac-cta-worm 1.15s ease-in-out infinite; animation-delay: calc(var(--i,0) * 55ms); }
/* Arrow below the words; gentle right-and-back drift on hover. */
.ac-svc-cta__arrow{ display: inline-block; font-size: 26px; line-height: 1; transition: transform .6s cubic-bezier(.2,.7,.2,1); }
@keyframes ac-cta-arrow{ 0%, 100%{ transform: translateX(0); } 50%{ transform: translateX(9px); } }
.ac-svc-cta:hover .ac-svc-cta__arrow{ animation: ac-cta-arrow 1.5s cubic-bezier(.45,0,.2,1) infinite; }
@media (prefers-reduced-motion: reduce){
	.ac-svc-cta.is-anim .ac-svc-cta__text > span{ opacity: 1; transform: none; }
	.ac-svc-cta.is-in:hover .ac-svc-cta__text > span, .ac-svc-cta:hover .ac-svc-cta__arrow{ animation: none; }
}

@media (max-width: 980px){ .ac-svc-grid{ grid-template-columns: 1fr; } }

/* =================== CRAFTSMANSHIP SPLIT =================== */
.ac-split-section{ background: #fff; border-top: 1px solid var(--divider-color); border-bottom: 1px solid var(--divider-color); }
.ac-container-full{ max-width: 1320px; margin: 0 auto; }
.ac-split{ display: grid; grid-template-columns: 1.05fr 1fr; }
.ac-split__media{ position: relative; min-height: 560px; border-radius: 0; }
.ac-split__media img{ position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.ac-warranty{ position: absolute; left: 34px; bottom: 34px; z-index: 5; background: var(--primary-color); color: #fff; padding: 22px 26px; }
.ac-warranty__big{ font-family: var(--heading-font); font-weight: 900; font-size: 34px; line-height: 1; }
.ac-warranty__cap{ font-size: 12px; letter-spacing: 1.5px; text-transform: uppercase; color: var(--on-dark-muted); margin-top: 4px; }
.ac-split__text{ padding: 84px 70px; display: flex; flex-direction: column; justify-content: center; }
.ac-h2--sm{ font-size: 42px; line-height: 1.06; letter-spacing: -.8px; }
.ac-split__lead{ font-size: 17px; line-height: 1.65; color: var(--text-color); margin-top: 24px; max-width: 480px; }
.ac-feature-grid{ margin-top: 34px; display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr); }
.ac-feature{ background: #fff; padding: 22px; }
.ac-feature__title{ font-family: var(--heading-font); font-weight: 700; font-size: 17px; color: var(--primary-color); }
.ac-feature__sub{ font-size: 14px; color: var(--text-muted); margin-top: 5px; }
@media (max-width: 980px){
	.ac-split{ grid-template-columns: 1fr; }
	.ac-split__media{ min-height: 300px; }
	.ac-split__text{ padding: 56px 28px; }
}

/* =================== GALLERY =================== */
.ac-gallery-section{ background: var(--ink); }
.ac-h2--inverse{ color: #fff; }
/* Mobile heading step-down. MUST come after .ac-h2--sm (42px) above — equal specificity,
   so source order decides; placed here it wins for both plain and --sm headings on phones. */
@media (max-width: 700px){ .ac-h2{ font-size: 36px; letter-spacing: -.6px; } .ac-h2--sm{ font-size: 32px; } }
@media (max-width: 480px){ .ac-h2{ font-size: 31px; } .ac-h2--sm{ font-size: 28px; } }
.ac-link-underline{ font-size: 13px; font-weight: 700; letter-spacing: .8px; text-transform: uppercase; color: #fff; text-decoration: none; border-bottom: 2px solid var(--accent-color); padding-bottom: 6px; transition: color .2s ease; }
.ac-link-underline:hover{ color: var(--on-dark-accent); }
.ac-gallery{ display: grid; grid-template-columns: repeat(12, 1fr); grid-auto-rows: 200px; gap: 14px; }
.ac-tile{ position: relative; overflow: hidden; text-decoration: none; display: block; }
.ac-tile img{ width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.ac-tile:hover img{ transform: scale(1.05); }
.ac-tile::after{ content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 45%, rgba(8,16,28,.82)); }
.ac-tile--7x2{ grid-column: span 7; grid-row: span 2; }
.ac-tile--5x1{ grid-column: span 5; grid-row: span 1; }
.ac-tile--4x1{ grid-column: span 4; grid-row: span 1; }
.ac-tile__cap{ position: absolute; left: 26px; bottom: 24px; z-index: 2; }
.ac-tile--5x1 .ac-tile__cap, .ac-tile--4x1 .ac-tile__cap{ left: 22px; bottom: 18px; }
.ac-tile--4x1 .ac-tile__cap{ left: 20px; bottom: 16px; }
.ac-tile__kicker{ font-family: var(--mono-font); font-size: 11px; letter-spacing: 2px; color: rgba(255,255,255,.8); text-shadow: 0 1px 3px rgba(0,0,0,.55); }
.ac-tile__title{ font-family: var(--heading-font); font-weight: 700; font-size: 22px; color: #fff; margin-top: 4px; }
.ac-tile__title--sm{ font-size: 18px; margin-top: 3px; }
.ac-tile__title--xs{ font-size: 16px; margin-top: 0; }
@media (max-width: 980px){
	.ac-gallery{ grid-template-columns: 1fr; grid-auto-rows: auto; }
	.ac-tile{ grid-column: auto !important; grid-row: auto !important; height: 230px; }
}

/* =================== TRUST / REVIEWS =================== */
.ac-trust{ background: var(--primary-color); position: relative; overflow: hidden; }
.ac-trust__inner{ position: relative; z-index: 2; }
.ac-trust__title{ max-width: 760px; }
/* Breathing room around the third-party reviews widget + the logo strip below it. */
.ac-trust__reviews{ margin: 48px 0 56px; }
.ac-trust__reviews .ti-widget, .ac-trust__reviews .ti-reviews-container{ padding: 4px 0; }
.ac-certs__inline{ margin-top: 8px; padding-top: 40px; border-top: 1px solid rgba(255,255,255,.12); }
.ac-reviews{ display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); margin-top: 50px; }
.ac-review{ background: var(--primary-color); padding: 34px 32px; display: flex; flex-direction: column; margin: 0 -1px -1px 0; }
.ac-review__stars{ color: var(--accent-color); font-size: 18px; letter-spacing: 2px; }
.ac-review__quote{ font-size: 17px; line-height: 1.6; color: #e7eef6; margin: 18px 0 0; flex: 1; }
.ac-review__by{ margin-top: 22px; font-size: 14px; color: var(--on-dark-muted); }
.ac-review__by strong{ color: #fff; font-family: var(--heading-font); font-weight: 700; }
.ac-creds{ margin-top: 50px; display: flex; flex-wrap: wrap; align-items: center; gap: 18px; }
.ac-creds__label{ font-family: var(--mono-font); font-size: 11px; letter-spacing: 2px; color: var(--on-dark-accent); text-transform: uppercase; }
.ac-pill{ border: 1px solid rgba(255,255,255,.22); color: var(--on-dark); font-size: 13px; font-weight: 600; letter-spacing: .5px; padding: 10px 18px; }
@media (max-width: 980px){ .ac-reviews{ grid-template-columns: 1fr; } }

/* =================== PROCESS =================== */
.ac-process-section{ background: var(--secondary-color); }
.ac-process-head{ margin-bottom: 54px; max-width: 680px; }
.ac-process{ display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); position: relative; }
/* Isolated house illustration sitting on top of the cards container (top-right on desktop). */
.ac-process::before{
	content: "";
	position: absolute;
	bottom: 100%;
	right: 24px;
	width: 320px;
	aspect-ratio: 500 / 315;
	margin-bottom: 0;
	background: url("/wp-content/uploads/2026/07/house-iso.webp") no-repeat center / contain;
	pointer-events: none;
	z-index: 4;
}
/* Mobile: flush to the right edge (same as desktop), capped so it never fills a whole
   block. The heading reserves a right gutter (padding-right) so its words can never run
   under the house — the same width-constraint trick the desktop max-width provides. */
@media (max-width: 980px){
	.ac-process::before{ right: 0; left: auto; transform: none; width: 40%; max-width: 220px; margin-bottom: 0; }
	.ac-process-head{ padding-right: min(40%, 250px); }
}
.ac-step{ background: var(--secondary-color); padding: 34px 30px 40px; }
.ac-step__no{ font-family: var(--mono-font); font-weight: 700; font-size: 13px; color: var(--accent-color); padding-bottom: 18px; border-bottom: 2px solid var(--accent-color); display: inline-block; }
.ac-step__title{ font-family: var(--heading-font); font-weight: 800; font-size: 21px; color: var(--primary-color); margin-top: 22px; }
.ac-step__text{ font-size: 15px; line-height: 1.6; color: var(--text-color); margin-top: 10px; }
@media (max-width: 980px){ .ac-process{ grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px){ .ac-process{ grid-template-columns: 1fr; } }

/* =================== HERO: high-quality AVIF on desktop =================== */
/* The inline style on .ac-hero__photo points at the WebP, which keeps the
   optimizer's responsive background swapping (980/480) working for phones and
   tablets. Above that, swap in an AVIF encoded at avifenc -s 0 q90: noticeably
   cleaner on the standing-seam roof than WebP at a comparable size, and AVIF is
   outside the optimizer's MIME whitelist so it never gets re-crushed.

   Two declarations on purpose — a browser without image-set()/AVIF support drops
   the second as invalid and keeps the WebP. Both need !important to beat the
   inline style. */
@media (min-width: 981px) {
	.ac-hero__photo {
		background-image: url('/wp-content/uploads/2026/07/home-hero.webp') !important;
		background-image: image-set(
			url('/wp-content/uploads/2026/07/home-hero.avif') type('image/avif'),
			url('/wp-content/uploads/2026/07/home-hero.webp') type('image/webp')
		) !important;
	}
}

/* =================== FORM CARD (shared) =================== */
/* One wrapper for every form on the site — contact page, service-page CTAs, blog
   sidebar. Square corners + hairline border + soft shadow, matching the rest of
   the site's flat, squared-off card language. Use --on-dark on photo/navy
   sections, where a light shadow would be invisible. */
.ac-form-card,
.ac-estimate,          /* legacy alias — home CTA */
.ac-cta__form,         /* legacy alias — services CTA */
.ac-contact__card{     /* legacy alias — contact page */
	background: #fff;
	border: 1px solid rgba(8,20,36,.10);
	border-radius: 0;
	box-shadow: 0 6px 24px rgba(8,20,36,.07);
	padding: 34px 32px;
}
.ac-form-card--on-dark{ border-color: rgba(255,255,255,.16); box-shadow: 0 24px 55px rgba(0,0,0,.30); }
.ac-form-card__title{ font-family: var(--heading-font); font-weight: 800; font-size: 22px; line-height: 1.2; color: var(--primary-color); margin: 0; }
.ac-form-card__intro{ margin: 10px 0 22px; font-size: 15px; line-height: 1.55; color: var(--muted-color, #6A7178); }
.ac-form-card__disclaimer{ margin: 18px 0 0; text-align: center; font-size: 13px; line-height: 1.5; color: #8D9499; }
.ac-form-card__foot{ margin-top: 16px; font-size: 13px; color: #8D9499; text-align: center; }
.ac-form-card__foot strong{ color: var(--primary-color); }
@media (max-width: 860px){ .ac-form-card{ padding: 26px 22px; } }

/* =================== FINAL CTA =================== */
.ac-cta-section{ position: relative; overflow: hidden; background: var(--primary-deep); }
.ac-cta-section__photo{ position: absolute; inset: 0; background-size: cover; background-position: center; }
.ac-cta-section__scrim{ position: absolute; inset: 0; background: linear-gradient(90deg, rgba(11,26,46,.95) 0%, rgba(11,26,46,.78) 55%, rgba(11,26,46,.45) 100%); }
.ac-cta{ position: relative; z-index: 2; display: grid; grid-template-columns: 1.3fr 1fr; gap: 60px; align-items: center; padding-top: 108px; padding-bottom: 108px; }
.ac-cta__title{ font-family: var(--heading-font); font-weight: 900; font-size: 56px; line-height: 1; letter-spacing: -1.2px; color: #fff; max-width: 640px; text-wrap: balance; margin: 0; }
.ac-cta__lead{ font-size: 18px; line-height: 1.6; color: var(--on-dark); margin-top: 22px; max-width: 520px; }
.ac-estimate__title{ font-family: var(--heading-font); font-weight: 800; font-size: 22px; color: var(--primary-color); }
.ac-estimate__fields{ display: flex; flex-direction: column; gap: 12px; margin-top: 22px; }
.ac-estimate__input{ border: 1px solid var(--divider-strong); background: var(--surface-input); padding: 14px 16px; font-size: 15px; font-family: inherit; color: var(--ink); outline: none; transition: border-color .2s ease, background .2s ease; }
.ac-estimate__input:focus{ border-color: var(--accent-color); background: #fff; }
.ac-estimate__submit{ margin-top: 6px; justify-content: center; }
.ac-estimate__submit:hover{ background: var(--button-hover-color); }
.ac-estimate__foot{ margin-top: 16px; font-size: 13px; color: #8D9499; text-align: center; }
.ac-estimate__foot strong{ color: var(--primary-color); }
@media (max-width: 980px){
	.ac-cta{ grid-template-columns: 1fr; gap: 36px; padding-top: 64px; padding-bottom: 64px; }
	.ac-cta__title{ font-size: 40px; }
}

/* =================== FOOTER =================== */
.ac-footer{ background: var(--footer-bg); color: var(--on-dark-muted); padding: 70px 0 34px; }
.ac-footer__top{ display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 40px; padding-bottom: 48px; border-bottom: 1px solid rgba(255,255,255,.12); }
.ac-footer__logo{ height: 54px; width: auto; display: block; margin-bottom: 20px; }
.ac-footer__brand p{ font-size: 15px; line-height: 1.6; max-width: 320px; }
.ac-footer__social{ display: flex; gap: 12px; margin-top: 22px; }
.ac-footer__social-link{ display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; border: 1px solid rgba(255,255,255,.22); border-radius: 50%; color: var(--on-dark-muted); transition: color .2s ease, border-color .2s ease, background .2s ease; }
.ac-footer__social-link:hover{ color: #fff; border-color: var(--accent-color); background: var(--accent-color); }
.ac-footer__title{ font-family: var(--heading-font); font-weight: 700; font-size: 13px; letter-spacing: 1.5px; text-transform: uppercase; color: #fff; margin-bottom: 18px; }
.ac-footer__col{ display: flex; flex-direction: column; gap: 11px; font-size: 15px; }
.ac-footer__col a{ color: var(--on-dark-muted); text-decoration: none; transition: color .2s ease; }
.ac-footer__col a:hover{ color: #fff; }
.ac-footer__bottom{ display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; padding-top: 24px; font-size: 13px; color: #6a7d92; }
@media (max-width: 980px){ .ac-footer__top{ grid-template-columns: repeat(2, 1fr); gap: 32px; } }
@media (max-width: 560px){ .ac-footer__top{ grid-template-columns: 1fr; } }

/* =================== SERVICE PAGE =================== */
/* Slim navy hero — the global floating header overlays it. */
.ac-pagehead{ position: relative; overflow: hidden; background: var(--primary-color); min-height: 520px; display: flex; }
.ac-pagehead__photo{ position: absolute; inset: 0; z-index: 0; background-size: cover; background-position: center; }
.ac-pagehead__scrim{ position: absolute; inset: 0; z-index: 0; background: linear-gradient(90deg, rgba(11,26,46,.92) 0%, rgba(11,26,46,.72) 45%, rgba(11,26,46,.40) 100%); }
.ac-pagehead__body{ position: relative; z-index: 2; align-self: flex-end; width: 100%; padding-top: 168px; padding-bottom: 64px; }
.ac-pagehead__title{ font-family: var(--heading-font); font-weight: 800; font-size: 64px; line-height: 1; letter-spacing: -1.5px; color: #fff; max-width: 820px; margin: 8px 0 0; text-wrap: balance; }
.ac-pagehead__lead{ font-size: 18px; line-height: 1.6; color: var(--on-dark); max-width: 560px; margin: 22px 0 0; }
.ac-pagehead .ac-btn{ margin-top: 32px; }

/* Breadcrumb */
.ac-breadcrumb{ display: flex; flex-wrap: wrap; align-items: center; gap: 10px; font-family: var(--mono-font); font-size: 12px; letter-spacing: 1px; text-transform: uppercase; margin-bottom: 22px; }
.ac-breadcrumb a{ color: var(--on-dark-accent); text-decoration: none; }
.ac-breadcrumb a:hover{ color: #fff; }
.ac-breadcrumb span[aria-hidden]{ color: rgba(255,255,255,.35); }
.ac-breadcrumb span[aria-current]{ color: var(--on-dark-muted); }

/* Content + sidebar layout */
.ac-svc-layout{ display: grid; grid-template-columns: minmax(0,1fr) 340px; gap: 56px; align-items: start; }
.ac-svc-figure{ margin: 0 0 30px; border-radius: 0; }
.ac-svc-figure img{ width: 100%; height: auto; display: block; }

/* Prose — service body typography */
.ac-prose > h2{ font-family: var(--heading-font); font-weight: 800; font-size: 32px; line-height: 1.1; letter-spacing: -.5px; color: var(--primary-color); margin: 40px 0 16px; }
.ac-prose > h2:first-child{ margin-top: 0; }
.ac-prose > h3{ font-family: var(--heading-font); font-weight: 700; font-size: 22px; color: var(--primary-color); margin: 30px 0 12px; }
.ac-prose > p{ font-size: 17px; line-height: 1.7; color: var(--text-color); margin: 0 0 18px; }
.ac-prose ul{ margin: 0 0 18px; padding: 0; list-style: none; }
.ac-prose ul li{ position: relative; padding-left: 28px; font-size: 16px; line-height: 1.6; color: var(--text-color); margin-bottom: 12px; }
.ac-prose ul li::before{ content: ""; position: absolute; left: 0; top: 9px; width: 14px; height: 3px; background: var(--accent-color); }
.ac-prose strong{ color: var(--primary-color); }

/* Sticky sidebar */
.ac-svc-aside{ position: sticky; top: 110px; display: flex; flex-direction: column; gap: 20px; }
.ac-sidebar-stack{ display: flex; flex-direction: column; gap: 20px; }
.ac-aside-card{ background: var(--primary-color); color: #fff; padding: 30px 28px; }
.ac-aside-card__title{ font-family: var(--heading-font); font-weight: 800; font-size: 20px; color: #fff; }
.ac-aside-card p{ font-size: 15px; line-height: 1.6; color: var(--on-dark); margin: 12px 0 20px; }
.ac-aside-card__btn{ width: 100%; justify-content: center; }
.ac-aside-card__phone{ display: block; margin-top: 14px; text-align: center; font-size: 14px; color: var(--on-dark-muted); text-decoration: none; }
.ac-aside-card__phone strong{ color: #fff; }
.ac-aside-list{ border: 1px solid var(--divider-strong); padding: 26px 28px; }
.ac-aside-list__title{ font-family: var(--mono-font); font-size: 12px; letter-spacing: 2px; text-transform: uppercase; color: var(--accent-color); margin-bottom: 16px; }
.ac-aside-list a{ display: block; font-family: var(--heading-font); font-weight: 700; font-size: 17px; color: var(--primary-color); text-decoration: none; padding: 10px 0; border-top: 1px solid var(--divider-color); transition: color .2s ease; }
.ac-aside-list a:first-of-type{ border-top: 0; }
.ac-aside-list a:hover{ color: var(--accent-color); }

@media (max-width: 980px){
	.ac-pagehead{ min-height: 0; }
	.ac-pagehead__body{ padding-top: 120px; padding-bottom: 48px; }
	.ac-pagehead__title{ font-size: 40px; letter-spacing: -1px; }
	.ac-svc-layout{ grid-template-columns: 1fr; gap: 40px; }
	.ac-svc-aside{ position: static; }
}

/* =================== BLOG =================== */
.ac-pagehead--blog{ min-height: 440px; }
.ac-pagehead__title--post{ font-size: 48px; max-width: 940px; }

.ac-blog-grid{ display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); }
.ac-blog-card{ background: #fff; display: flex; flex-direction: column; }
.ac-blog-card__media{ display: block; overflow: hidden; border-radius: 0; }
.ac-blog-card__body{ padding: 26px 26px 30px; display: flex; flex-direction: column; flex: 1; }
.ac-blog-card__date{ font-family: var(--mono-font); font-size: 12px; letter-spacing: 1px; text-transform: uppercase; color: var(--accent-color); }
.ac-blog-card__title{ font-family: var(--heading-font); font-weight: 800; font-size: 21px; line-height: 1.2; color: var(--primary-color); margin: 12px 0 0; }
.ac-blog-card__title a{ color: inherit; text-decoration: none; }
.ac-blog-card__title a:hover{ color: var(--accent-color); }
.ac-blog-card__excerpt{ font-size: 15px; line-height: 1.6; color: var(--text-color); margin: 12px 0 0; flex: 1; }
.ac-blog-card__more{ margin-top: 20px; font-size: 13px; font-weight: 700; letter-spacing: .8px; text-transform: uppercase; color: var(--accent-color); text-decoration: none; }
.ac-blog-card__more:hover{ text-decoration: underline; }

.ac-pagination{ display: flex; justify-content: center; flex-wrap: wrap; gap: 8px; margin-top: 56px; }
.ac-pagination__item .page-numbers{ display: inline-flex; align-items: center; justify-content: center; min-width: 46px; height: 46px; padding: 0 14px; font-family: var(--heading-font); font-weight: 700; color: var(--primary-color); text-decoration: none; border: 1px solid var(--divider-strong); transition: color .2s ease, border-color .2s ease; }
.ac-pagination__item .page-numbers.current{ background: var(--primary-color); color: #fff; border-color: var(--primary-color); }
.ac-pagination__item .page-numbers:hover:not(.current){ border-color: var(--accent-color); color: var(--accent-color); }

/* Single article */
.ac-article-wrap{ max-width: 760px; margin: 0 auto; }
.ac-article-nav{ display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-top: 48px; padding-top: 32px; border-top: 1px solid var(--divider-color); }
.ac-article-nav a{ display: block; text-decoration: none; }
.ac-article-nav span{ display: block; font-family: var(--mono-font); font-size: 11px; letter-spacing: 1.5px; text-transform: uppercase; color: var(--text-muted); margin-bottom: 6px; }
.ac-article-nav strong{ font-family: var(--heading-font); font-weight: 700; font-size: 16px; line-height: 1.3; color: var(--primary-color); }
.ac-article-nav a:hover strong{ color: var(--accent-color); }
.ac-article-nav .is-next{ text-align: right; }
.ac-article-back{ margin-top: 34px; }
.ac-article-back a{ font-size: 14px; font-weight: 700; color: var(--accent-color); text-decoration: none; }
.ac-article-back a:hover{ text-decoration: underline; }

@media (max-width: 980px){
	.ac-pagehead--blog{ min-height: 0; }
	.ac-blog-grid{ grid-template-columns: 1fr; }
}
@media (max-width: 700px){
	.ac-article-nav{ grid-template-columns: 1fr; }
	.ac-article-nav .is-next{ text-align: left; }
}

/* --- Team grid (Meet the Team) — uniform photos so the cards align --- */
.ac-team{ --gap: 32px; }
.ac-team [class*="col-"]{ margin-bottom: var(--gap); }
.ac-team figure.media{ margin: 0 0 18px; border-radius: 10px; overflow: hidden; }
.ac-team figure.media img{ display: block; width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.ac-team h3{ font-family: var(--heading-font); font-size: 20px; margin: 0 0 2px; }
.ac-team h3 + p strong{ display: block; color: var(--accent-color); font-size: 13px; letter-spacing: .3px; text-transform: uppercase; margin-bottom: 6px; }
.ac-team p{ color: var(--muted-color, #6A7178); font-size: 15px; line-height: 1.55; }

/* --- Standalone statbar band (About) — solid dark backing so white text is legible --- */
.ac-statbar--band{ background: var(--primary-color, #102F50); }
.ac-statbar--band .ac-statbar{ background: transparent; border-top: 0; }

/* --- CTA section with an embedded form card (About "get in touch") --- */
/* .ac-cta__form styling now comes from the shared .ac-form-card alias block. */

/* --- Contact page: info + form two-column --- */
.ac-contact{ display: grid; grid-template-columns: 5fr 7fr; gap: 56px; align-items: start; }
.ac-contact__info h2{ margin: 12px 0 16px; }
.ac-contact__info p{ color: var(--muted-color, #6A7178); max-width: 44ch; }
.ac-contact__rows{ margin-top: 30px; }
.ac-contact__row{ display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding: 16px 0; border-top: 1px solid rgba(8,20,36,.10); text-decoration: none; color: var(--ink); }
.ac-contact__row:last-child{ border-bottom: 1px solid rgba(8,20,36,.10); }
a.ac-contact__row:hover .ac-contact__val{ color: var(--accent-color); }
.ac-contact__label{ text-transform: uppercase; letter-spacing: 1px; font-size: 12px; color: var(--muted-color, #6A7178); }
.ac-contact__val{ font-weight: 600; text-align: right; }
/* .ac-contact__card styling now comes from the shared .ac-form-card alias block. */
@media (max-width: 860px){ .ac-contact{ grid-template-columns: 1fr; gap: 36px; } }

/* What Sets Us Apart — founder statement on the accent-blue band (About page) */
.ac-apart{ background: var(--accent-color, #2070C0); }
.ac-apart__inner{ display: grid; grid-template-columns: 340px 1fr; gap: 56px; align-items: center; padding-top: 80px; padding-bottom: 80px; }
.ac-apart__media{ overflow: visible; }
.ac-apart__media img{ display: block; width: 300px; height: 300px; object-fit: cover; object-position: center; border-radius: 50%; border: 6px solid rgba(255,255,255,.9); box-shadow: 0 24px 60px rgba(8,20,36,.35); }
.ac-apart .ac-eyebrow::before{ background: #fff; }
.ac-apart .ac-eyebrow__label{ color: #fff; }
.ac-apart__title{ margin: 8px 0 18px; }
.ac-apart__quote{ margin: 0; padding: 0; border: 0; color: rgba(255,255,255,.95); font-size: 18px; line-height: 1.65; font-style: italic; }
/* Bio body copy on the accent-blue founder section (Steve) — white for contrast. */
.ac-apart .ac-apart__body p{ color: rgba(255,255,255,.92); }
.ac-apart .ac-apart__body strong{ color: #fff; }
@media (max-width: 860px){
	.ac-apart__inner{ grid-template-columns: 1fr; gap: 28px; text-align: center; padding-top: 56px; padding-bottom: 56px; }
	.ac-apart__media img{ width: 220px; height: 220px; margin: 0 auto; }
	.ac-apart .ac-eyebrow{ justify-content: center; }
}

/* === Service page sections ============================================= */

/* Warranty bar under the hero — centered, ~30px, theme heading font */
.ac-warranty-bar{ background: var(--accent-color); }
.ac-warranty-bar .ac-container{ text-align: center; padding: 16px 20px; }
.ac-warranty-bar__text{ display: inline-block; font-family: var(--heading-font); font-weight: 800; font-size: 30px; line-height: 1.15; letter-spacing: -.3px; color: #fff; text-decoration: none; }
.ac-warranty-bar__text:hover{ text-decoration: underline; text-underline-offset: 4px; }
@media (max-width: 680px){ .ac-warranty-bar__text{ font-size: 22px; } }

/* Advantages cards (in the service main column, below the intro) */
.ac-advantages{ margin-top: 52px; }
.ac-advantages__grid{ display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 20px; margin-top: 16px; }
.ac-adv-card{ background: #fff; border: 1px solid rgba(8,20,36,.08); border-radius: 12px; padding: 24px; box-shadow: 0 10px 30px rgba(8,20,36,.05); }
.ac-adv-card__title{ font-family: var(--heading-font); font-weight: 800; font-size: 19px; margin: 0 0 8px; color: var(--ink); }
.ac-adv-card__text{ font-size: 15px; line-height: 1.6; color: var(--muted-color, #6A7178); margin: 0; }

/* Reason for choosing us — three trust pillars */
.ac-reasons{ background: var(--secondary-color); }
.ac-reasons__head{ max-width: 620px; margin: 0 auto 44px; text-align: center; }
.ac-reasons__head .ac-eyebrow{ justify-content: center; display: flex; }
.ac-reasons__grid{ display: grid; grid-template-columns: repeat(3, 1fr); gap: 34px; }
.ac-reason{ padding-top: 20px; border-top: 3px solid var(--accent-color); }
.ac-reason__no{ font-family: var(--heading-font); font-weight: 800; font-size: 14px; color: var(--accent-color); letter-spacing: 2px; }
.ac-reason__title{ font-family: var(--heading-font); font-weight: 800; font-size: 22px; margin: 10px 0 8px; color: var(--ink); }
.ac-reason__text{ font-size: 15px; line-height: 1.6; color: var(--muted-color, #6A7178); margin: 0; }
@media (max-width: 820px){ .ac-reasons__grid{ grid-template-columns: 1fr; gap: 24px; } }

/* Insurance CTA band — bright accent blue so it pops and separates from the
   navy testimonials section that follows (matches the warranty bar's punch). */
.ac-insurance{ background: var(--accent-color, #2070C0); position: relative; overflow: hidden; }
.ac-insurance .ac-eyebrow::before{ background: #fff; }
.ac-insurance .ac-eyebrow__label{ color: #fff; }
.ac-insurance__inner{ display: grid; grid-template-columns: 1.6fr auto; gap: 44px; align-items: center; padding-top: 72px; padding-bottom: 72px; }
.ac-insurance__title{ margin: 8px 0 14px; }
.ac-insurance__lead{ color: rgba(255,255,255,.92); font-size: 17px; line-height: 1.6; max-width: 64ch; margin: 0; }
.ac-insurance .ac-insurance__btn{ white-space: nowrap; background: #fff; color: var(--primary-color, #102F50); border-color: #fff; }
.ac-insurance .ac-insurance__btn:hover{ background: rgba(255,255,255,.88); color: var(--primary-color, #102F50); }
/* HAAG badge + disclaimer stacked above the insurance CTA button. Sits in the
   grid's second cell as a centred flex column; badge caps at 350px wide. */
.ac-insurance__cta{ display: flex; flex-direction: column; align-items: center; gap: 16px; text-align: center; }
.ac-insurance__badge{ display: block; width: 100%; max-width: 350px; height: auto; margin: 0 auto; }
.ac-insurance__cta-note{ margin: 0; max-width: 350px; font-size: 13px; line-height: 1.5; color: rgba(255,255,255,.86); }
@media (max-width: 820px){ .ac-insurance__inner{ grid-template-columns: 1fr; gap: 26px; padding-top: 52px; padding-bottom: 52px; } }

/* =================== GUTTERS (Roofing & Gutters page) =================== */
/* Rendered after the Insurance CTA via `ac_service_after_insurance`. Cards reuse
   .ac-advantages__grid / .ac-adv-card; the profile size leads each card. */
.ac-gutters{ background: #fff; border-top: 1px solid var(--divider-color); padding-top: 80px; padding-bottom: 80px; }
.ac-gutters__intro{ display: grid; grid-template-columns: 1fr .82fr; gap: 56px; align-items: center; }
.ac-gutters__lead{ font-size: 17px; line-height: 1.6; color: var(--muted-color, #6A7178); max-width: 56ch; margin: 0 0 22px; }
.ac-gutters__specs{ list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.ac-gutters__specs li{ font-size: 15px; line-height: 1.55; color: var(--ink); }
.ac-gutters__specs strong{ color: var(--primary-color); font-weight: 700; }
.ac-gutters__media{ margin: 0; }
.ac-gutters__media img{ display: block; width: 100%; height: 100%; max-height: 380px; object-fit: cover; border-radius: 16px; box-shadow: 0 24px 60px rgba(8,20,36,.18); }
.ac-gutters__cards{ margin-top: 48px; }
.ac-gutters__size{ display: block; font-family: var(--heading-font); font-weight: 800; font-size: 34px; line-height: 1; letter-spacing: -1px; color: var(--accent-color); margin-bottom: 10px; }
@media (max-width: 900px){
	.ac-gutters{ padding-top: 56px; padding-bottom: 56px; }
	.ac-gutters__intro{ grid-template-columns: 1fr; gap: 30px; }
}

/* Roofing material cards — borderless texture tile + name (in the content column) */
.ac-matgrid{ display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 14px; margin: 18px 0 8px; }
.ac-matcard{ margin: 0; }
.ac-matcard img{ display: block; width: 100%; height: auto; aspect-ratio: 1 / 1; object-fit: cover; border-radius: 12px; box-shadow: 0 8px 22px rgba(8,20,36,.10); }
.ac-matcard__name{ margin-top: 10px; font-family: var(--heading-font); font-weight: 700; font-size: 15px; color: var(--primary-color); letter-spacing: -.2px; }
@media (max-width: 700px){ .ac-matgrid{ grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 440px){ .ac-matgrid{ grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* Gallery lightbox — click any project tile to open full-size + browse */
.ac-lightbox{ position: fixed; inset: 0; z-index: 3000; display: none; align-items: center; justify-content: center; background: rgba(8,16,28,.93); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); }
.ac-lightbox.is-open{ display: flex; }
.ac-lightbox__img{ max-width: 92vw; max-height: 86vh; object-fit: contain; border-radius: 8px; box-shadow: 0 30px 80px rgba(0,0,0,.55); }
.ac-lightbox__cap{ position: absolute; left: 0; right: 0; bottom: 22px; text-align: center; color: #fff; font-family: var(--heading-font); font-size: 16px; letter-spacing: .3px; }
.ac-lightbox__btn{ position: absolute; top: 50%; transform: translateY(-50%); display: flex; align-items: center; justify-content: center; width: 56px; height: 56px; background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.25); border-radius: 50%; color: #fff; font-size: 28px; line-height: 1; cursor: pointer; transition: background .2s ease; }
.ac-lightbox__btn:hover{ background: rgba(255,255,255,.22); }
.ac-lightbox__prev{ left: 24px; }
.ac-lightbox__next{ right: 24px; }
.ac-lightbox__close{ top: 22px; right: 24px; transform: none; width: 48px; height: 48px; font-size: 24px; }
@media (max-width: 768px){ .ac-lightbox__prev{ left: 8px; } .ac-lightbox__next{ right: 8px; } .ac-lightbox__btn{ width: 44px; height: 44px; font-size: 24px; } }

/* Contact page — prominent Text-for-estimate CTA + supporting lines */
.ac-contact__text-cta{ margin: 18px 0 22px; }
.ac-contact__or{ margin-top: 20px; font-size: 14px; opacity: .8; }

/* =================== SUPER HEADER (utility top bar) =================== */
:root{ --ac-topbar-h: 40px; }
.ac-topbar{ position: fixed; top: 0; left: 0; right: 0; z-index: 41; background: var(--accent-color, #2378d8); color: #fff; }
.ac-topbar__inner{ position: relative; display: flex; align-items: center; justify-content: space-between; height: var(--ac-topbar-h); font-size: 13.5px; }
.ac-topbar__phone{ display: inline-flex; align-items: center; gap: 9px; color: #fff; font-size: 20px; line-height: 1; font-weight: 700; letter-spacing: .2px; text-decoration: none; }
.ac-topbar__phone:hover{ color: rgba(255,255,255,.85); }
.ac-topbar__phone-cta{ display: none; }
/* Centered "Open 24/7" — absolutely centered so uneven left/right widths don't push it off-center. */
.ac-topbar__hours{ position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); font-size: 20px; line-height: 1; font-weight: 700; letter-spacing: .6px; text-transform: uppercase; white-space: nowrap; }
.ac-topbar__social{ display: flex; align-items: center; gap: 8px; }
.ac-topbar__social-link{ display: inline-flex; align-items: center; justify-content: center; width: 32px; height: 32px; color: #fff; background: var(--primary-deep); border-radius: 8px; transition: background .2s ease, color .2s ease; }
.ac-topbar__social-link:hover{ background: #fff; color: var(--accent-color); }
/* Push the floating nav below the bar. */
.ac-header{ top: var(--ac-topbar-h); }
/* Match the header's mobile breakpoint (burger appears at <=980) so the bar stays consistent with it. */
@media (max-width: 980px){
	/* Keep the utility bar on mobile, but swap the number for a compact "Call now". */
	.ac-header{ top: var(--ac-topbar-h); }
	.ac-topbar__inner{ font-size: 12px; }
	.ac-topbar__phone{ font-size: 15px; gap: 7px; }
	.ac-topbar__phone-num{ display: none; }
	.ac-topbar__phone-cta{ display: inline; }
	.ac-topbar__hours{ font-size: 15px; letter-spacing: .4px; }
	.ac-topbar__social-link{ width: 30px; height: 30px; }
	/* Burger is viewport-fixed, so drop it below the utility bar. */
}

/* Footer privacy link in the bottom bar. Added 2026-07-21. */
.ac-footer__privacy{ color: var(--on-dark-muted); text-decoration: underline; text-underline-offset: 2px; transition: color .2s ease; }
.ac-footer__privacy:hover{ color: #fff; }
.ac-footer__sep{ color: #6a7d92; }
