/* ==========================================================================
   Base — reset, typography, shared primitives (.container, .eyebrow, .btn,
   .head, shared cards, reveal). Ported from the delivered home-styles.css.
   Section-specific rules live in assets/css/sections/.
   ========================================================================== */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
	font-family: var(--body-font);
	color: var(--body);
	background: var(--bg);
	line-height: 1.6;
	-webkit-font-smoothing: antialiased;
	text-rendering: optimizeLegibility;
	overflow-x: hidden;
}

h1, h2, h3, h4 { font-family: var(--sans); color: var(--navy); line-height: 1.08; font-weight: 700; letter-spacing: -0.015em; }

a { color: inherit; text-decoration: none; }

/* ---------- Responsive safety nets (apply site-wide, incl. future pages) ----
   Media never overflows its column; long words/URLs wrap; embeds & tables stay
   inside the viewport. New pages get this for free — no per-page work needed. */
img, svg, video, canvas, picture { max-width: 100%; height: auto; }
img, video, canvas, picture { display: block; }
iframe, embed, object { max-width: 100%; }
h1, h2, h3, h4, h5, p, li, a, blockquote, figcaption { overflow-wrap: break-word; }
pre { overflow-x: auto; max-width: 100%; }
:where(table) { display: block; max-width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; }

.container { max-width: var(--maxw); margin: 0 auto; padding: 0 var(--gutter); }

section { position: relative; }

.section-pad { padding: 120px 0; }

/* Soft section transitions: light sections fade into the white neighbours at
   both edges instead of meeting them on a hard line. Sections alternate
   light/white, so fading every light band smooths every boundary at once. */
.bg-alt {
	background: linear-gradient(
		180deg,
		var(--bg) 0,
		var(--bg-alt) 140px,
		var(--bg-alt) calc(100% - 140px),
		var(--bg) 100%
	);
}

/* ---------- Eyebrow label pill ---------- */
.eyebrow {
	display: inline-flex; align-items: center; gap: 9px;
	padding: 7px 16px 7px 13px;
	background: #fff;
	border: 1px solid var(--line);
	border-radius: 100px;
	box-shadow: var(--shadow-sm);
	font-size: 13px; font-weight: 500;
	letter-spacing: 0.04em;
	color: var(--muted);
	text-transform: none;
	width: fit-content;
}
.eyebrow::before {
	content: ''; width: 7px; height: 7px; border-radius: 50%;
	background: var(--grad);
	box-shadow: 0 0 0 3px rgba(24,173,231,0.12);
}
.eyebrow.on-dark {
	background: rgba(255,255,255,0.06);
	border-color: rgba(255,255,255,0.14);
	color: rgba(255,255,255,0.75);
	box-shadow: none;
}

/* ---------- Buttons ---------- */
.btn {
	display: inline-flex; align-items: center; justify-content: center; gap: 9px;
	font-family: var(--body-font); font-size: 15px; font-weight: 600;
	padding: 14px 26px; border-radius: 9px; cursor: pointer;
	border: 1.5px solid transparent; transition: transform .2s ease, box-shadow .25s ease, background .2s ease;
	white-space: nowrap;
}
.btn-primary {
	color: #fff; background: var(--cyan);
	box-shadow: 0 6px 18px rgba(24,173,231,0.28);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 12px 28px rgba(24,173,231,0.36); }
.btn-grad { color:#fff; background: var(--grad-green); box-shadow: 0 8px 22px rgba(52,189,110,0.3); }
.btn-grad:hover { transform: translateY(-2px); box-shadow: 0 14px 32px rgba(52,189,110,0.4); }
.btn-outline {
	color: var(--navy); background: transparent; border-color: var(--green);
}
.btn-outline:hover { background: rgba(98,207,95,0.08); transform: translateY(-2px); }
.btn-outline svg { color: var(--green); }
.btn-ghost-light { color:#fff; border-color: rgba(255,255,255,0.3); background: rgba(255,255,255,0.04); }
.btn-ghost-light:hover { background: rgba(255,255,255,0.1); }

.btn svg { transition: transform .2s ease; }
.btn:hover svg { transform: translateX(3px); }

/* ---------- Section heading block ---------- */
.head { display: flex; flex-direction: column; gap: 18px; max-width: 760px; }
.head h2 { font-size: clamp(32px, 3.4vw, 46px); }
.head p { font-size: 17px; color: var(--body); }
.center { align-items: center; text-align: center; margin: 0 auto; }

/* ---------- Cards (shared: What we build / Why above bits) ---------- */
.cards-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; margin-top: 56px; }
.card {
	position: relative; background: var(--card); border: 1px solid var(--line);
	border-radius: var(--radius-lg); padding: 32px;
	transition: transform .3s cubic-bezier(.2,.7,.3,1), box-shadow .3s ease, border-color .3s ease;
	overflow: hidden; z-index: 0;
}
.card::before {
	content:''; position: absolute; inset: 0; border-radius: inherit; padding: 1px;
	background: var(--grad);
	-webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
	-webkit-mask-composite: xor; mask-composite: exclude;
	opacity: 0; transition: opacity .3s ease; z-index: 1; pointer-events: none;
}
.card::after {
	content:''; position: absolute; left: 0; right: 0; top: 0; height: 3px;
	background: var(--grad); transform: scaleX(0); transform-origin: left;
	transition: transform .35s ease; border-radius: 3px;
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: transparent; }
.card:hover::before { opacity: 1; }
.card:hover::after { transform: scaleX(1); }
.card-icon {
	width: 48px; height: 48px; border-radius: 12px; display: flex; align-items: center; justify-content: center;
	background: var(--grad-soft); color: var(--cyan); margin-bottom: 20px;
	transition: transform .3s ease;
}
.card:hover .card-icon { transform: scale(1.08) rotate(-3deg); }
.card-icon svg { width: 24px; height: 24px; }
.card h3 { font-size: 23px; margin-bottom: 12px; }
.card p { font-size: 16px; color: var(--body); line-height: 1.6; }
.card .num {
	position: absolute; top: 26px; right: 30px; font-family: var(--sans); font-weight: 700;
	font-size: 15px; color: var(--cyan); opacity: 0.5;
}

/* ---------- Generic WP page shell (inner pages clear the fixed nav) ---------- */
.page-content { padding: 150px 0 90px; }
.page-content .container { max-width: 820px; }
.page-content__title { margin-bottom: 24px; font-size: clamp(32px, 4vw, 52px); }

/* ---------- Scroll reveal ---------- */
.reveal { opacity: 1; transform: none; }
.js .reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s ease, transform .7s cubic-bezier(.2,.7,.3,1); }
.js .reveal.in { opacity: 1; transform: none; }
.reveal.d1 { transition-delay: .08s; }
.reveal.d2 { transition-delay: .16s; }
.reveal.d3 { transition-delay: .24s; }
@media (prefers-reduced-motion: reduce) {
	.js .reveal { opacity: 1; transform: none; transition: none; }
	html { scroll-behavior: auto; }
}

/* ---------- Accessibility helpers ---------- */
.screen-reader-text {
	position: absolute !important;
	width: 1px; height: 1px; padding: 0; margin: -1px;
	overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
.skip-link { position: absolute; left: -9999px; z-index: 1000; }
.skip-link:focus { left: 16px; top: 16px; padding: 12px 16px; background: #fff; color: var(--navy); border-radius: 9px; }

/* Desktop-only line break: the <br> shapes the heading on wide screens but is
   ignored on phones so text wraps naturally. Use <br class="br-desktop">. */
@media (max-width: 820px) { br.br-desktop { display: none; } }

/* ---------- Global responsive ---------- */
@media (max-width: 1080px) { :root { --gutter: 40px; } }
@media (max-width: 820px) {
	.section-pad { padding: 80px 0; }
	.cards-grid { grid-template-columns: 1fr; }
}
@media (max-width: 520px) { :root { --gutter: 22px; } }
