/* =========================================================================
   EDM — "Data Authority" design system
   Powers the block patterns in /patterns/. Classes prefixed .edm-*.
   Tokens (see theme.json palette):
     Ink #1B3047 · Deep Slate #25405C · Footer #14283A · Warm Paper #FBFAF8
     Red Orange #FA6121 · Yellow Orange #FFB739 · Cadet #A0AEC1 · Body #51606D
   ========================================================================= */

:root {
	--edm-ink: #1B3047;
	--edm-ink-glass: rgba(15, 35, 51, .86);
	--edm-slate: #25405C;
	--edm-footer: #14283A;
	--edm-paper: #FBFAF8;
	--edm-orange: #FA6121;
	--edm-orange-ink: #D94E14;
	--edm-yellow: #FFB739;
	--edm-cadet: #A0AEC1;
	--edm-body: #51606D;
	--edm-muted: #7A8893;
	--edm-border: #ECEAE4;
	--edm-tropical: #DBE8F9;
	--edm-shadow-card: 0 24px 50px -28px rgba(0, 0, 0, .6);
	--edm-shadow-photo: 0 30px 60px -28px rgba(22, 49, 74, .5);
	--edm-shadow-pop: 0 40px 80px -36px rgba(0, 0, 0, .6);
	--edm-ease: cubic-bezier(.16, 1, .3, 1);
}

/* ---------- Section shells -------------------------------------------------- */
.edm-sec {
	font-family: 'Hanken Grotesk', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
	position: relative;
	overflow: hidden;
}
.edm-sec > * { position: relative; z-index: 2; }

.edm-dark { background: var(--edm-ink); color: var(--edm-cadet); }
.edm-slate-bg { background: var(--edm-slate); color: #fff; }
.edm-paper { background: var(--edm-paper); color: var(--edm-body); }
.edm-footer-bg { background: var(--edm-footer); color: var(--edm-cadet); }

/* Light section that laps over the dark one above it with a rounded top lip. */
.edm-rounded-top { border-radius: 32px 32px 0 0; }

/* Headings flip to white on dark sections; the .edm-accent span stays orange. */
.edm-dark :where(h1, h2, h3, h4) { color: #fff; }
.edm-slate-bg :where(h1, h2, h3, h4) { color: #fff; }
.edm-accent { color: var(--edm-orange); }

/* Default section padding (vertical). Inline patterns can override. */
.edm-sec { padding-block: 96px; }
.edm-sec--xl { padding-block: 110px; }
.edm-sec--tight { padding-block: 64px; }

/* Inner constrained wrapper: horizontal gutter on top of the 1200px content size. */
.edm-wrap { padding-inline: 32px; }

/* ---------- Decorative motifs ---------------------------------------------- */
/* Dotted grid on dark sections. */
.edm-dots::before {
	content: "";
	position: absolute;
	inset: 0;
	z-index: 1;
	pointer-events: none;
	background-image: radial-gradient(rgba(255, 255, 255, .05) 1px, transparent 1px);
	background-size: 26px 26px;
}
.edm-dots--faint::before { background-image: radial-gradient(rgba(255, 255, 255, .04) 1px, transparent 1px); }

/* Orange glow blobs. */
.edm-glow::after,
.edm-glow-center::after,
.edm-glow-left::after {
	content: "";
	position: absolute;
	border-radius: 50%;
	z-index: 1;
	pointer-events: none;
}
.edm-glow::after {            /* top-right hero glow */
	top: -180px; right: -140px; width: 560px; height: 560px;
	background: radial-gradient(circle, rgba(250, 97, 33, .20), transparent 65%);
}
.edm-glow-center::after {     /* centered CTA glow */
	top: -160px; left: 50%; transform: translateX(-50%); width: 680px; height: 680px;
	background: radial-gradient(circle, rgba(250, 97, 33, .18), transparent 62%);
}
.edm-glow-left::after {       /* top-left yellow glow (About hero) */
	top: -180px; left: -140px; width: 560px; height: 560px;
	background: radial-gradient(circle, rgba(255, 183, 57, .16), transparent 65%);
}

/* ---------- Eyebrow labels -------------------------------------------------- */
.edm-eyebrow {
	display: inline-block;
	font-size: 13px;
	font-weight: 700;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--edm-orange);
	margin-bottom: 16px;
}
.edm-eyebrow--light { color: var(--edm-yellow); }            /* on dark sections */
.edm-eyebrow--dash { display: inline-flex; align-items: center; gap: 12px; letter-spacing: 0.12em; }
.edm-eyebrow--dash::before {
	content: ""; width: 26px; height: 2px; background: currentColor; display: inline-block;
}
.edm-eyebrow-pill {           /* Jumpstart hero pill */
	display: inline-block;
	background: rgba(250, 97, 33, .14);
	color: #F4937A;
	font-size: 13px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase;
	padding: 8px 16px; border-radius: 100px; margin-bottom: 24px;
}

/* ---------- Buttons --------------------------------------------------------- */
/* Core buttons are orange by default (theme.json). Variants below. */
.edm-btn-secondary .wp-block-button__link,
.wp-block-button.edm-btn-secondary .wp-block-button__link {
	background: var(--edm-slate); color: #fff;
}
.edm-btn-outline .wp-block-button__link,
.wp-block-button.edm-btn-outline .wp-block-button__link {
	background: transparent; color: var(--edm-slate);
	border: 1.5px solid var(--edm-slate); font-weight: 700;
}
/* Chips (jump links) */
.edm-chips { gap: 12px; flex-wrap: wrap; }
.edm-chip .wp-block-button__link,
.wp-block-button.edm-chip .wp-block-button__link {
	background: transparent; color: #C7D2DC;
	border: 1px solid rgba(255, 255, 255, .16);
	border-radius: 100px; padding: 10px 18px; font-size: 14px; font-weight: 600;
}
.edm-chip .wp-block-button__link:hover { border-color: var(--edm-orange); color: #fff; }

/* Underlined text link ("See real client results →") */
.edm-textlink a, a.edm-textlink {
	color: #fff; font-weight: 600;
	border-bottom: 2px solid rgba(255, 255, 255, .3); padding-bottom: 3px;
}
.edm-textlink a:hover, a.edm-textlink:hover { border-bottom-color: var(--edm-orange); }

/* ---------- Cards ----------------------------------------------------------- */
.edm-card {
	background: #fff; border: 1px solid var(--edm-border); border-radius: 18px;
	padding: 34px 32px; transition: transform .3s ease; height: 100%;
}
.edm-card-slate { background: var(--edm-slate); color: #fff; border: none; border-radius: 18px; padding: 38px 40px; height: 100%; transition: transform .3s ease; }
.edm-card-dashed { background: #F4F3EF; border: 1px dashed #CFCCC2; border-radius: 18px; padding: 34px 32px; height: 100%; transition: transform .3s ease; }
.edm-card-glass { background: rgba(255, 255, 255, .04); border: 1px solid rgba(255, 255, 255, .09); border-radius: 16px; overflow: hidden; transition: transform .3s ease; }
.edm-card-glass--pad { padding: 22px 24px; }
/* Team cards: make the first-child image wrapper a full-bleed square crop. */
.edm-card-glass > .wp-block-group:first-child { aspect-ratio: 1 / 1; overflow: hidden; }
.edm-card-glass > .wp-block-group:first-child .wp-block-image { margin: 0; height: 100%; }
.edm-card-glass > .wp-block-group:first-child img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* Hover lift */
.edm-hover:hover { transform: translateY(-6px); }

.edm-card h3, .edm-card-dashed h3 { color: var(--edm-slate); }
.edm-card-slate h3 { color: #fff; }
.edm-card p, .edm-card-dashed p { color: var(--edm-body); }
.edm-card-slate p { color: var(--edm-cadet); }

/* Card kicker (small uppercase label inside a card) */
.edm-kicker { font-size: 12px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--edm-orange); margin-bottom: 14px; }
.edm-kicker--yellow { color: var(--edm-yellow); }
.edm-kicker--ink { color: var(--edm-orange-ink); }
.edm-kicker--muted { color: #9A968A; }

/* Numbered icon chip used on pillar/value cards */
.edm-numchip {
	width: 46px; height: 46px; border-radius: 12px;
	display: flex; align-items: center; justify-content: center;
	font-family: 'Archivo', sans-serif; font-weight: 800; font-size: 20px; margin-bottom: 20px;
}
.edm-numchip--1 { background: #FCE9D9; color: #D94E14; }
.edm-numchip--2 { background: #FDF0DC; color: #B07A1E; }
.edm-numchip--3 { background: #E3ECF4; color: #2E4A66; }
.edm-numchip--4 { background: #DFEFE6; color: #1F8A5B; }

/* ---------- Stats ----------------------------------------------------------- */
.edm-statstrip {
	display: grid; grid-template-columns: repeat(4, 1fr);
	border-top: 1px solid rgba(255, 255, 255, .08); margin-top: 64px;
}
.edm-statstrip > * { padding: 30px 32px; border-right: 1px solid rgba(255, 255, 255, .08); }
.edm-statstrip > *:last-child { border-right: none; }
.edm-statstrip--compact > * { padding: 26px 28px; }
.edm-stat-n { font-family: 'Archivo', sans-serif; font-weight: 800; font-size: 34px; line-height: 1; color: #fff; margin: 0 0 6px; }
.edm-statstrip--compact .edm-stat-n { font-size: 30px; }
.edm-stat-l { font-size: 13px; color: #8093A6; font-weight: 600; margin: 0; }

/* Inline mini-stats (under bios) on light */
.edm-ministats { display: flex; gap: 40px; flex-wrap: wrap; }
.edm-ministats .edm-stat-n { color: var(--edm-slate); font-size: 30px; }
.edm-ministats .edm-stat-l { color: var(--edm-muted); }

/* ---------- Checklist ticks ------------------------------------------------- */
.edm-ticks { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 14px; }
.edm-ticks li { position: relative; padding-left: 28px; font-size: 15px; line-height: 1.5; color: #3C4A56; }
.edm-ticks li::before { content: "✓"; position: absolute; left: 0; top: 0; color: var(--edm-orange); font-weight: 800; }
.edm-ticks li strong { color: var(--edm-slate); }
/* Two-column tick grid (Full-Service block) */
.edm-ticks--grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px 24px; }
/* On dark cards */
.edm-dark .edm-ticks li, .edm-slate-bg .edm-ticks li { color: #D6DEE6; }
.edm-dark .edm-ticks li::before, .edm-slate-bg .edm-ticks li::before { color: var(--edm-yellow); }
.edm-dark .edm-ticks li strong, .edm-slate-bg .edm-ticks li strong { color: #fff; }

/* ---------- Trust bar ------------------------------------------------------- */
.edm-trust-eyebrow { font-size: 13px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: #5E6E7C; margin: 0 0 22px; text-align: center; }
.edm-trust-logos { display: flex; align-items: center; justify-content: center; gap: 56px; flex-wrap: wrap; font-family: 'Archivo', sans-serif; font-weight: 700; font-size: 26px; color: rgba(255, 255, 255, .5); letter-spacing: 0.02em; }
.edm-trust-logos .edm-trust-more { font-size: 18px; font-weight: 600; color: rgba(255, 255, 255, .35); letter-spacing: 0; }
/* About-page light brand strip */
.edm-brandstrip { display: flex; align-items: center; justify-content: center; gap: 60px; flex-wrap: wrap; font-family: 'Archivo', sans-serif; font-weight: 700; font-size: 30px; color: #B7B3A8; }

/* ---------- Photo + petals -------------------------------------------------- */
.edm-photo { position: relative; }
.edm-photo .edm-photo-img,
.edm-photo img { position: relative; z-index: 1; border-radius: 20px; overflow: hidden; box-shadow: var(--edm-shadow-photo); display: block; }
.edm-photo::before,
.edm-photo::after { content: ""; position: absolute; border-radius: 50%; z-index: 0; }
.edm-photo::before { left: -18px; top: -18px; width: 200px; height: 200px; background: var(--edm-yellow); }
.edm-photo::after { right: -14px; bottom: 30px; width: 120px; height: 120px; background: var(--edm-tropical); }
.edm-photo--yellow::after { display: none; }   /* single petal */

/* ---------- Pricing panel --------------------------------------------------- */
.edm-pricing { display: flex; flex-direction: column; justify-content: center; }
.edm-pricing--slate { background: var(--edm-slate); color: #fff; padding: 52px 44px; }
.edm-pricing--card { background: #fff; border-radius: 22px; padding: 34px 36px; box-shadow: var(--edm-shadow-pop); }
.edm-price { font-family: 'Archivo', sans-serif; font-weight: 900; line-height: 1; margin: 0; }
.edm-pricing--slate .edm-price { font-size: 54px; }
.edm-pricing--card .edm-price { font-size: 56px; color: var(--edm-slate); }
.edm-price-unit { font-size: 17px; font-weight: 600; }
.edm-pricing--slate .edm-price-unit { color: var(--edm-cadet); }
.edm-pricing--card .edm-price-unit { color: var(--edm-muted); }
.edm-price-row { display: flex; align-items: baseline; gap: 8px; margin-bottom: 4px; }
.edm-price-sub { font-size: 15px; margin: 0 0 24px; }
.edm-pricing--slate .edm-price-sub { color: var(--edm-cadet); }
.edm-pricing--card .edm-price-sub { color: var(--edm-muted); }
.edm-specs { display: flex; flex-direction: column; gap: 14px; padding-top: 22px; margin-bottom: 24px; }
.edm-pricing--slate .edm-specs { border-top: 1px solid rgba(255, 255, 255, .12); }
.edm-pricing--card .edm-specs { border-top: 1px solid var(--edm-border); }
.edm-spec-row { display: flex; justify-content: space-between; font-size: 15px; margin: 0; }
.edm-spec-row .edm-spec-k { color: var(--edm-cadet); }
.edm-pricing--card .edm-spec-row .edm-spec-k { color: var(--edm-muted); }
.edm-spec-row .edm-spec-v { font-weight: 700; }
.edm-pricing--card .edm-spec-row .edm-spec-v { color: var(--edm-slate); }

/* ---------- FAQ (core details block) --------------------------------------- */
.edm-faq-item { background: #fff; border: 1px solid var(--edm-border); border-radius: 14px; padding: 4px 26px; }
.edm-faq-item summary {
	display: flex; align-items: center; justify-content: space-between; gap: 16px;
	padding: 22px 0; cursor: pointer; list-style: none;
	font-family: 'Archivo', sans-serif; font-weight: 700; font-size: 19px; color: var(--edm-slate);
}
.edm-faq-item summary::-webkit-details-marker { display: none; }
.edm-faq-item summary::after { content: "+"; color: var(--edm-orange); font-size: 26px; font-weight: 400; line-height: 1; transition: transform .25s ease; }
.edm-faq-item[open] summary::after { transform: rotate(45deg); }
.edm-faq-item > *:not(summary) { font-size: 16px; line-height: 1.65; color: var(--edm-body); margin: 0 0 22px; }

/* ---------- Forms (placeholder styling; swap for Fluent Forms) ------------- */
.edm-form { display: flex; flex-direction: column; gap: 16px; }
.edm-form label { display: block; font-size: 13px; font-weight: 700; color: var(--edm-slate); margin-bottom: 7px; }
.edm-form .edm-form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.edm-form input, .edm-form textarea {
	width: 100%; font-family: 'Hanken Grotesk', sans-serif; font-size: 15px;
	padding: 13px 15px; border-radius: 10px; border: 1px solid #DCDAD2;
	background: var(--edm-paper); color: var(--edm-slate); outline: none;
}
.edm-form textarea { resize: vertical; }
.edm-form button {
	font-family: 'Hanken Grotesk', sans-serif; font-weight: 700; font-size: 16px;
	padding: 16px; border-radius: 11px; border: none; background: var(--edm-orange);
	color: #fff; cursor: pointer; margin-top: 4px;
}
.edm-form .edm-form-note { font-size: 13px; color: #9A968A; text-align: center; margin: 2px 0 0; }
/* Lead-magnet form (on slate) */
.edm-form--dark input { background: rgba(255, 255, 255, .06); border-color: rgba(255, 255, 255, .18); color: #fff; }
.edm-form--dark input::placeholder { color: #B7C2CC; }

/* ---------- Hero traffic chart card (Home) --------------------------------- */
.edm-chartcard { background: rgba(255, 255, 255, .04); border: 1px solid rgba(255, 255, 255, .09); border-radius: 16px; padding: 24px 26px 20px; }
.edm-chartcard-top { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 8px; }
.edm-chartcard-top .edm-chart-label { font-size: 13px; font-weight: 700; color: #C7D2DC; }
.edm-chartcard-top .edm-chart-delta { font-family: 'Archivo', sans-serif; font-size: 13px; font-weight: 700; color: #2FBF71; }
.edm-chartcard svg { width: 100%; height: auto; display: block; }
.edm-chart-caption { font-size: 12px; font-weight: 600; color: var(--edm-yellow); margin: 4px 0 0; padding-left: 46%; }

/* ---------- Framed result screenshots (Home) ------------------------------- */
.edm-frame { background: #fff; border-radius: 16px; padding: 14px; box-shadow: var(--edm-shadow-card); margin: 0; }
.edm-frame img { width: 100%; height: auto; border-radius: 8px; display: block; }
.edm-frame-glass { background: rgba(255, 255, 255, .04); border: 1px solid rgba(255, 255, 255, .09); border-radius: 16px; padding: 14px; margin: 0; }
.edm-frame-glass img { width: 100%; height: auto; border-radius: 8px; display: block; }

/* ---------- Lead-magnet band ------------------------------------------------ */
.edm-leadmagnet { background: var(--edm-slate); border-radius: 24px; padding: 56px; }

/* ---------- Curriculum phase tags ------------------------------------------ */
.edm-phasetag { display: inline-block; font-family: 'Archivo', sans-serif; font-weight: 800; font-size: 14px; padding: 6px 14px; border-radius: 100px; }
.edm-phasetag--yellow { background: var(--edm-yellow); color: var(--edm-ink); }
.edm-phasetag--orange { background: var(--edm-orange); color: #fff; }
.edm-phase-note { font-size: 15px; font-weight: 700; color: #fff; }
.edm-curric-card .edm-curric-eyebrow { font-family: 'Archivo', sans-serif; font-weight: 700; font-size: 13px; color: var(--edm-yellow); margin: 0 0 8px; }
.edm-curric-card--p2 .edm-curric-eyebrow { color: #F4937A; }
.edm-curric-card .edm-curric-h { font-size: 16px; font-weight: 700; color: #fff; margin: 0 0 5px; }
.edm-curric-card p { font-size: 14px; line-height: 1.55; color: #9FAEBB; margin: 0; }

/* ---------- Consultation band (image + dark overlay) ----------------------- */
.edm-overlay-band { position: relative; border-radius: 24px; overflow: hidden; }
.edm-overlay-band img.edm-overlay-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 0; border-radius: 0; box-shadow: none; }
.edm-overlay-band::after { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(100deg, rgba(15, 35, 51, .96) 0%, rgba(15, 35, 51, .82) 50%, rgba(15, 35, 51, .5) 100%); }
.edm-overlay-band > .edm-overlay-content { position: relative; z-index: 2; }

/* Card shells for split service blocks (kept in classes so block markup stays valid) */
.edm-shell { border-radius: 24px; overflow: hidden; }
.edm-shell--slate { background: var(--edm-slate); color: #fff; }
.edm-shell--white { background: #fff; border: 1px solid var(--edm-border); }
.edm-shell-pad { padding: 52px; }
.edm-anchor { scroll-margin-top: 90px; }
.edm-shell--slate :where(h2, h3) { color: #fff; }
.edm-shell--slate p { color: var(--edm-cadet); }

/* Split service block image side that bleeds to the card edge */
.edm-bleed-img { position: relative; min-height: 340px; }
.edm-bleed-img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; border-radius: 0; box-shadow: none; }
.edm-bleed-img .wp-block-image { margin: 0; height: 100%; }

/* Contact email / trust icon rows */
.edm-iconrow { display: flex; align-items: center; gap: 16px; }
.edm-iconrow .edm-iconbox { flex: none; width: 46px; height: 46px; border-radius: 12px; display: flex; align-items: center; justify-content: center; font-size: 20px; }
.edm-iconbox--yellow { background: rgba(255, 183, 57, .15); color: var(--edm-yellow); }
.edm-iconbox--orange { background: rgba(250, 97, 33, .15); color: #EE7A5E; }
.edm-iconrow .edm-iconrow-k { font-size: 13px; color: #8093A6; font-weight: 600; }
.edm-iconrow .edm-iconrow-v { font-size: 16px; color: #fff; font-weight: 700; }

/* ---------- Scroll reveal --------------------------------------------------- */
.edm-reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s var(--edm-ease), transform .7s var(--edm-ease); }
.edm-reveal.is-visible { opacity: 1; transform: translateY(0); }
@media (prefers-reduced-motion: reduce) { .edm-reveal { opacity: 1; transform: none; transition: none; } }

/* ---------- Sticky header / footer (pattern-based fallbacks) ---------------- */
.edm-header { position: sticky; top: 0; z-index: 50; background: var(--edm-ink-glass); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-bottom: 1px solid rgba(255, 255, 255, .08); }
.edm-header .edm-nav a { color: #C7D2DC; font-size: 15px; font-weight: 600; }
.edm-header .edm-nav a:hover, .edm-header .edm-nav a.is-active { color: #fff; }
.edm-header .edm-nav a.edm-nav-cta { background: var(--edm-orange); color: #fff; padding: 11px 22px; border-radius: 7px; }
.edm-footer-links a { color: var(--edm-cadet); font-weight: 500; font-size: 15px; }
.edm-footer-links a:hover { color: #fff; }
.edm-footer-heading { font-size: 13px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: #5E6E7C; margin-bottom: 16px; }

/* ---------- Responsive ------------------------------------------------------ */
@media (max-width: 1024px) {
	.edm-sec { padding-block: 72px; }
	.edm-sec--xl { padding-block: 84px; }
}
@media (max-width: 781px) {
	.edm-statstrip { grid-template-columns: 1fr 1fr; }
	.edm-statstrip > * { border-bottom: 1px solid rgba(255, 255, 255, .08); }
	.edm-statstrip > *:nth-child(2n) { border-right: none; }
	.edm-ticks--grid { grid-template-columns: 1fr; }
	.edm-form .edm-form-row { grid-template-columns: 1fr; }
	.edm-leadmagnet { padding: 36px 28px; }
	.edm-pricing--slate { padding: 40px 28px; }
	.edm-chart-caption { padding-left: 40%; }
	.edm-trust-logos { gap: 28px; font-size: 22px; }
	.edm-photo::before { width: 140px; height: 140px; }
	.edm-photo::after { width: 90px; height: 90px; }
}
@media (max-width: 600px) {
	.edm-statstrip { grid-template-columns: 1fr; }
	.edm-statstrip > * { border-right: none; }
	.edm-wrap { padding-inline: 22px; }
}
