/* ─── AL Base ─── */
:root {
	--paper:   #ffffff;
	--bone:    #f7f5f2;
	--ink:     #17171a;
	--ink-2:   #4a4a52;
	--ink-3:   #77777f;
	--line:    #e5e2dd;
	--line-2:  #f0eeea;
	--red:     #e3493a;
	--red-dk:  #c4372a;
	--red-soft:#fdeeec;
	--gold:    #e9b200;
	--green:   #1c7a4f;

	--font-display: "Archivo", ui-sans-serif, system-ui, sans-serif;
	--font:         "Public Sans", ui-sans-serif, system-ui, sans-serif;
	--header-h: 88px;
	--r:      14px;
	--r-lg:   24px;
	--r-xl:   30px;
	--r-pill: 999px;
	--max-w:  1280px;
	--gutter: 28px;
	--shadow-1: 0 1px 2px rgba(23,23,26,.04), 0 12px 34px rgba(23,23,26,.08);
	--shadow-2: 0 20px 60px rgba(23,23,26,.16);

	--al-red: #e3493a; --al-ink: #17171a; --al-paper: #ffffff; --al-bone: #f7f5f2;
	--al-line: #e5e2dd; --al-max: 1280px;
	--al-font-display: "Archivo", ui-sans-serif, system-ui, sans-serif;
	--al-font: "Public Sans", ui-sans-serif, system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
/* overflow-x:hidden computes to `overflow: hidden auto`, which makes the body a scroll
   container and silently breaks position:sticky on every descendant. `clip` clips without
   creating one, so the FAQ call panel can stick. */
html, body { overflow-x: clip; max-width: 100%; }
/* set by header.js while the mobile nav is open */
html.al-menu-open { overflow: hidden; }

body {
	margin: 0;
	font-family: var(--font);
	font-size: 17px; line-height: 1.65;
	color: var(--ink-2); background: var(--paper);
	-webkit-font-smoothing: antialiased;
}
/* Elementor's Global Kit writes body typography to `.elementor-kit-<id>` — a class
   selector, so it outranks the bare `body` rule above and set 18.5px/30.525px. The
   line-height matters more than the size: Elementor emits it in PX, which inherits as a
   fixed value, so every component that relied on inheriting the 1.65 RATIO rendered at
   30.525px whatever its own font-size. Measured 2026-08-07 against the static build:
   card blurbs 24.75 -> 30.525, area chips 23.925 -> 30.525, steps 25.575 -> 30.525.
   `body[class]` is (0,1,1) and beats the kit at (0,1,0) without hardcoding the kit id. */
body[class] {
	font-size: 17px;
	line-height: 1.65;
	font-family: var(--font);
	color: var(--ink-2);
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
/* UA default is `figure { margin: 1em 40px }` — it stole 80px from every grid card */
figure { margin: 0; }
blockquote { margin: 0; }

h1, h2, h3, h4, h5, h6 {
	font-family: var(--font-display); font-weight: 800;
	color: var(--ink); letter-spacing: -0.03em; line-height: 1.08; margin: 0;
}
/* Headings need no specificity hack: since v1.10.0 al-base.css is enqueued after the
   theme, the plain `h1, h2, h3, h4` rule above beats Hello's `h1..h6 { font-weight:500;
   line-height:1.2 }`, and the Kit only sets font-family (Archivo, which matches).
   An earlier `body[class] h1..h4` override DID restore the weight but at (0,1,2) it also
   beat every component's own letter-spacing and line-height — `.al-hero h1` lost its
   -0.035em/1.05 and the footer's `h4` lost its .16em uppercase tracking. Removed. */


.al-wrap { width: 100%; max-width: var(--max-w); margin: 0 auto; }
/* Horizontal padding lives on the section, not the wrap, so full-bleed children
   (dark panels, photo bands) can reach the section edge without fighting it. */
.al-section, .al-hero, .al-phero, .al-trust, .al-cta, .al-footer, .al-header, .al-callbar {
	padding-inline: var(--gutter);
}
.al-section { padding-block: 104px; }
.al-section--bone { background: var(--paper); }
.al-section--ruled { border-top: 1px solid var(--line); }

.al-eyebrow {
	display: inline-flex; align-items: center; gap: 10px;
	font-family: var(--font-display); font-size: 12.5px; font-weight: 800;
	letter-spacing: .16em; text-transform: uppercase; color: var(--red); margin: 0 0 16px;
}
.al-eyebrow::before { content: ""; width: 26px; height: 2px; background: var(--red); }

.al-section-head { margin-bottom: 56px; max-width: 780px; }
.al-section-head.al-center { text-align: center; margin-inline: auto; }
.al-section-head.al-center .al-eyebrow { justify-content: center; }
h2.al-sh-title { font-size: clamp(32px, 4.2vw, 50px); margin: 0; letter-spacing: -0.035em; }
p.al-sh-lead { font-size: 17.5px; color: var(--ink-3); margin: 18px 0 0; line-height: 1.6; max-width: 620px; }
.al-center p.al-sh-lead { margin-inline: auto; }

/* Section footer — "view all" lives here */
.al-section-foot { margin-top: 52px; display: flex; justify-content: center; }

/* ─── Buttons ─── */
.al-btn {
	display: inline-flex; align-items: center; justify-content: center; gap: 10px;
	font-family: var(--font-display); font-weight: 700; font-size: 16px;
	padding: 16px 30px; border-radius: var(--r-pill); border: 1.5px solid transparent;
	text-decoration: none; cursor: pointer;
	transition: transform .18s ease, background .18s ease, border-color .18s ease, color .18s ease, box-shadow .18s ease;
}
.al-btn:hover { transform: translateY(-2px); }
.al-btn--call { background: var(--red); color: #fff; box-shadow: 0 8px 22px rgba(227,73,58,.28); }
.al-btn--call:hover { background: var(--red-dk); box-shadow: 0 12px 30px rgba(227,73,58,.36); }
.al-btn--dark { background: var(--ink); color: #fff; }
.al-btn--dark:hover { background: #000; }
.al-btn--ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.al-btn--ghost:hover { border-color: var(--ink); }
.al-btn--white { background: #fff; color: var(--red-dk); }
.al-btn--white:hover { background: var(--ink); color: #fff; }
/* secondary on a dark panel — .al-btn--ghost is ink-on-dark there */
.al-btn--outline { background: transparent; color: #fff; border-color: rgba(255,255,255,.34); }
.al-btn--outline:hover { background: rgba(255,255,255,.1); border-color: #fff; }
.al-btn--lg { padding: 19px 34px; font-size: 17px; }

/* ─── Chip ─── */
.al-chip {
	display: inline-flex; align-items: center; gap: 9px;
	font-size: 13.5px; font-weight: 600; padding: 8px 15px;
	border-radius: var(--r-pill); background: var(--bone); color: var(--ink-2);
	border: 1px solid var(--line);
}
.al-chip .al-dot {
	width: 8px; height: 8px; border-radius: 50%; background: #22a95f;
	box-shadow: 0 0 0 0 rgba(34,169,95,.55); animation: al-pulse 2.4s infinite;
}
@keyframes al-pulse { 70% { box-shadow: 0 0 0 8px rgba(34,169,95,0); } 100% { box-shadow: 0 0 0 0 rgba(34,169,95,0); } }

.al-rise { opacity: 0; transform: translateY(16px); animation: al-rise .65s cubic-bezier(.22,1,.36,1) forwards; }
@keyframes al-rise { to { opacity: 1; transform: none; } }

@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
	.al-rise { opacity: 1; transform: none; }
}

.al-callbar { display: none; }
@media (max-width: 860px) {
	.al-callbar {
		display: flex; align-items: center; justify-content: center; gap: 10px;
		position: fixed; inset: auto 0 0 0; z-index: 90;
		background: var(--red); color: #fff; min-height: 58px;
		padding: 0 16px calc(0px + env(safe-area-inset-bottom));
		font-family: var(--font-display); font-weight: 700; font-size: 17px; text-decoration: none;
		box-shadow: 0 -6px 24px rgba(23,23,26,.18);
	}
	.al-callbar svg { width: 19px; height: 19px; stroke: currentColor; }
}

@media (max-width: 900px) {
	:root { --gutter: 24px; }
	.al-section { padding-block: 84px; }
}

@media (max-width: 720px) {
	:root { --gutter: 20px; }
	body { font-size: 16px; }
	.al-section { padding-block: 68px; }
	.al-section-head { margin-bottom: 36px; }
	.al-section-head--split { grid-template-columns: 1fr; gap: 18px; }
	.al-section-foot { margin-top: 34px; }
	h2.al-sh-title { font-size: clamp(27px, 7vw, 34px); }
	p.al-sh-lead { font-size: 16.5px; margin-top: 14px; }
	.al-btn { padding: 14px 24px; font-size: 15.5px; }
	.al-btn--lg { padding: 16px 26px; font-size: 16px; }
}

@media (max-width: 480px) {
	:root { --gutter: 18px; }
	.al-section { padding-block: 56px; }
	.al-hero__actions .al-btn, .al-phero__actions .al-btn { width: 100%; }
}

.al-hero__grid > *, .al-bento > *, .al-faq__grid > *, .al-about__grid > *,
.al-trust__in > *, .al-footer__grid > *, .al-how__grid > *, .al-triage > * { min-width: 0; }

/* isolate: without it a hover-scaled img escapes the parent's rounded clip in Chrome */
.al-tile, .al-mas figure, .al-spost, .al-card, .al-card__media,
.al-post, .al-post__media, .al-phero__media, .al-alt__media, .al-about__media {
	isolation: isolate;
}

/* ─── Elementor 4 zeroes figure margins inside widgets ───
   `.elementor .elementor-widget:not(.elementor-widget-text-editor):not(.elementor-widget-theme-post-content) figure { margin: 0 }`
   at (0,4,1), which outranks the design's own figure rules. It hits `.al-mas figure`
   (the masonry gutter), `.al-feat` and `.al-rv`, all of which are figures. Measured
   2026-08-07 against the static build.

   `body[class]` brings these to (0,4,1) as well, and al-base.css loads after
   frontend.min.css, so the tie resolves our way. */
body[class] .elementor .elementor-widget .al-mas figure { margin: 0 0 16px; }
body[class] .elementor .elementor-widget .al-feat { margin-top: 48px; }
/* .al-plead, the single post's lead image, is the same fault and was missed when .al-feat and
   .al-mas were fixed: `.al-plead { margin: 36px 0 }` is (0,1,0), so Elementor's reset zeroed it
   and the image sat flush under the byline. Vikas, 2026-08-08. */
body[class] .elementor .elementor-widget .al-plead { margin: 36px 0; }

/* Hello reset.css: `button:hover, button:focus { background-color: #c36 }` at (0,0,1). The
   burger was fixed for this on 2026-08-08; the service-directory filter pills are the same
   class of exposure — any <button> of ours that does not set its own hover background turns
   magenta. Measured on /services/: rest #fff, hover rgb(204,51,102). The pressed pill keeps
   its dark fill because that rule carries an attribute and outranks this one. */
body[class] .al-dir__f:hover,
body[class] .al-dir__f:focus { background: #fff; color: var(--ink); border-color: var(--ink); }
body[class] .al-dir__f[aria-pressed="true"]:hover,
body[class] .al-dir__f[aria-pressed="true"]:focus { background: var(--ink); color: #fff; }

/* ─── Hello reset.css: `a:active, a:hover { color: #333366 }` ───
   The sibling of the pink `a { color: #c36 }` fixed by the load-order change — that fix only
   addressed the resting colour. At (0,1,1) this outranks every class-level component colour,
   so on the live site hovering the red call button, a bento card, a hero tile or the footer
   phone turned the text navy. Invisible to the computed-style probe, which only ever reads
   the resting state. Measured on the homepage 2026-08-07 with a hover probe.

   The generic rule ties the reset at (0,1,1) and wins on load order, so components that DO
   define a hover colour (.al-nav a:hover, .al-q summary:hover, …) still win on specificity.
   The buttons then need restating because their colour comes from a (0,1,0) class. */
a:hover, a:active { color: inherit; }

/* Hello's reset and `.elementor a` both set `text-decoration: none`, so prose links that the
   design underlines came out flat. The static templates rely on the browser default underline and
   only set the offset — measured on the 404 note's phone number, 2026-08-08. */
body[class] .al-note a,
body[class] .al-prose p > a:not([class]),
body[class] .al-prose li > a:not([class]),
body[class] .al-areas__note a { text-decoration: underline; text-underline-offset: 3px; }
.al-btn--call:hover,  .al-btn--call:active,
.al-btn--dark:hover,  .al-btn--dark:active,
.al-btn--outline:hover, .al-btn--outline:active { color: #fff; }
.al-btn--ghost:hover, .al-btn--ghost:active { color: var(--ink); }
.al-btn--white:hover, .al-btn--white:active { color: var(--red-dk); }

/* ─── Elementor's `.elementor a { box-shadow: none }` (frontend.min.css, (0,1,1)) ───
   Every card, tile and teaser in this design is an anchor, and their resting shadow is set
   at (0,1,0), so it lost outright: cards and tiles rendered flat on the live site and only
   grew a shadow on hover, where `.al-card:hover` (0,2,0) beat it. The mockup carries the
   shadow at rest. `body[class]` brings these to (0,2,1). */
body[class] .al-card  { box-shadow: 0 1px 2px rgba(23,23,26,.05), 0 14px 40px rgba(23,23,26,.10); }
body[class] .al-tile  { box-shadow: var(--shadow-1); }
body[class] .al-post  { box-shadow: 0 1px 2px rgba(23,23,26,.05), 0 12px 34px rgba(23,23,26,.09); }
body[class] .al-spost { box-shadow: var(--shadow-1); }
body[class] .al-btn--call { box-shadow: 0 8px 22px rgba(227,73,58,.28); }
body[class] .al-dir__item { box-shadow: 0 1px 2px rgba(23,23,26,.05), 0 10px 28px rgba(23,23,26,.07); }
body[class] .al-tilecard  { box-shadow: var(--shadow-1); }
body[class] .al-fact      { box-shadow: var(--shadow-1); }
/* Found by auditing every class used on an <a> in the templates against every class the design
   gives a resting shadow, rather than discovering them one page at a time — this rule had
   already caught cards, tiles, teasers, directory rows, tilecards and the fact list. */
body[class] .al-cd__card  { box-shadow: var(--shadow-1); }
/* NOT .al-cd__card--call: that red glow belongs to the ICON inside the card
   (`.al-cd__card--call i`), which is not an anchor and never lost it. Restating it on the card
   put a red halo round the whole phone card — caught by diffing contact against the mockup. */
body[class] .al-callbar   { box-shadow: 0 -6px 24px rgba(23,23,26,.18); }
body[class] .al-close__actions .al-btn--white { box-shadow: 0 12px 30px rgba(0,0,0,.4); }

/* Raising the RESTING shadows to (0,2,1) put them above the components' own `:hover` rules,
   which sit at (0,2,0) — so the lift-on-hover shadow stopped happening on cards, tiles,
   teasers and directory rows. Found by the hover probe on /services/, immediately after the
   resting fix above was verified as correct. Restating the hover states at the same level. */
body[class] .al-card:hover     { box-shadow: 0 2px 4px rgba(23,23,26,.06), 0 28px 60px rgba(23,23,26,.16); }
body[class] .al-tile:hover     { box-shadow: var(--shadow-2); }
body[class] .al-post:hover     { box-shadow: 0 2px 4px rgba(23,23,26,.06), 0 26px 56px rgba(23,23,26,.15); }
body[class] .al-spost:hover    { box-shadow: 0 2px 4px rgba(23,23,26,.06), 0 20px 44px rgba(23,23,26,.13); }
body[class] .al-dir__item:hover { box-shadow: var(--shadow-2); }
body[class] .al-tilecard:hover  { box-shadow: var(--shadow-2); }
body[class] .al-fact:hover      { box-shadow: var(--shadow-2); }
body[class] .al-btn--call:hover { box-shadow: 0 12px 30px rgba(227,73,58,.36); }
