/* ============================================================
   EDLER HUB · Homepage (rebuilt to the Edler Hub Design System)
   Tokens + webfonts come from brand.css.
   ============================================================ */

.eh-home main, .eh-home #content { overflow-x: clip; }
.eh-wrap { max-width: 1280px; margin: 0 auto; padding: 0 32px; }
.eh-eyebrow { font-family: var(--font-sans); font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--link); font-weight: 700; }

/* ── BUTTONS ─────────────────────────────────────────── */
.eh-btn { font-family: var(--font-sans); font-weight: 700; font-size: 15px; padding: 14px 26px; border-radius: var(--r-md); border: 1px solid transparent; cursor: pointer; display: inline-flex; align-items: center; gap: 8px; transition: all var(--t-base) var(--ease-out); text-decoration: none; line-height: 1; letter-spacing: 0.01em; }
.eh-btn-primary, a.eh-btn-primary { background: var(--accent); color: #0A1628 !important; box-shadow: var(--shadow-sm); border: 0; }
.eh-btn-primary:hover { background: var(--accent-hover); transform: translateY(-1px); box-shadow: var(--shadow-md); }
.eh-btn-ghost, a.eh-btn-ghost { background: transparent; color: #fff !important; border-color: rgba(255,255,255,0.35); }
.eh-btn-ghost:hover { background: rgba(255,255,255,0.08); border-color: rgba(255,255,255,0.7); }
.eh-btn-ghost-dark, a.eh-btn-ghost-dark { background: transparent; color: var(--fg) !important; border-color: var(--border-strong); }
.eh-btn-ghost-dark:hover { background: var(--bg-subtle); border-color: var(--fg-subtle); }

/* Theme-toggle styles live in style.css (global, all pages). */

/* Header theming is global (style.css) via --header-glass + theme logo swap. */
/* Footer styling is global (style.css); it stays dark in both themes. */

/* ── HERO (dark) ─────────────────────────────────────── */
.eh-hero-dark { background: var(--eh-navy-800); color: #fff; padding: 152px 0 104px; position: relative; overflow: hidden; }
.eh-hero-dark::before { content: ''; position: absolute; width: 540px; height: 540px; border-radius: 50%; background: radial-gradient(circle, rgba(245,183,0,0.10) 0%, transparent 70%); top: -170px; right: -150px; }
.eh-hero-dark .grid { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 56px; align-items: center; position: relative; z-index: 1; }
.eh-hero-dark .eyebrow { color: var(--accent); font-size: 12px; letter-spacing: 0.16em; text-transform: uppercase; font-weight: 700; }
.eh-hero-dark h1 { font-family: var(--font-display); color: #fff; font-size: clamp(44px, 6vw, 80px); font-weight: 700; line-height: 1.03; letter-spacing: -0.03em; margin: 20px 0 24px; }
/* Global accent: works in every section (hero, headings, prose, closing). */
.eh-main .accent,
.eh-quote .accent { font-family: var(--font-script); font-weight: 700; font-style: normal; color: var(--accent); }
.eh-hero-dark h1 .accent { font-family: var(--font-script); font-weight: 700; color: var(--accent); }
.eh-hero-dark .lead { font-family: var(--font-sans); font-size: 20px; color: var(--eh-navy-200); margin: 0 0 32px; line-height: 1.6; max-width: 560px; }
.eh-cta-row { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.eh-hero-dark .meta-card { background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.1); border-radius: var(--r-xl); padding: 32px; }
.eh-hero-dark .meta-card .pre { font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--accent); font-weight: 700; margin-bottom: 14px; }
.eh-hero-dark .meta-card .meta-h { font-family: var(--font-display); margin: 0 0 10px; font-size: 22px; font-weight: 700; color: #fff; }
.eh-hero-dark .meta-card p { margin: 0; color: var(--eh-navy-200); font-size: 14.5px; line-height: 1.6; }
.eh-hero-dark .meta-card .rows { display: grid; gap: 14px; margin-top: 24px; padding-top: 24px; border-top: 1px solid rgba(255,255,255,0.08); }
.eh-hero-dark .meta-card .rows .r { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; }
.eh-hero-dark .meta-card .rows .k { font-size: 13px; color: var(--eh-navy-300); letter-spacing: 0.04em; text-transform: uppercase; font-weight: 700; }
.eh-hero-dark .meta-card .rows .v { font-family: var(--font-display); font-size: 16px; color: #fff; font-weight: 700; text-align: right; }

/* ── CLIENT LOGOS (static, equal-height row) ─────── */
.eh-marquee-sec { background: #FFFFFF !important; border-top: 1px solid #E2E5EA; border-bottom: 1px solid #E2E5EA; padding: 38px 0; }
.eh-marquee-label { text-align: center; font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase; color: #4A5468; font-weight: 700; margin-bottom: 26px; }
.eh-logo-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 26px 52px; max-width: 1120px; margin: 0 auto; padding: 0 32px; }
.eh-logo-chip { flex: 0 0 auto; display: flex; align-items: center; justify-content: center; position: relative; }
/* Every logo renders at one fixed height -> uniform; width follows aspect ratio. */
.eh-logo-chip img { height: 40px; width: auto; object-fit: contain; display: block; }
.eh-logo-chip.is-empty { height: 40px; min-width: 132px; padding: 0 18px; border: 1px dashed #C3C8D1; border-radius: var(--r-md); color: #9097A4; font-size: 12px; font-weight: 700; letter-spacing: 0.06em; }
/* Logo tooltip - small brand-name chip above the logo on hover. */
.eh-logo-chip::before, .eh-logo-chip::after {
	position: absolute; left: 50%; pointer-events: none; opacity: 0;
	transform: translateX(-50%) translateY(6px);
	transition: opacity 180ms var(--ease-out), transform 180ms var(--ease-out);
	z-index: 5;
}
.eh-logo-chip::after {
	content: attr(data-tip);
	bottom: calc(100% + 10px);
	background: var(--eh-navy-900); color: #fff;
	font-family: var(--font-sans); font-size: 12px; font-weight: 700; letter-spacing: 0.02em;
	white-space: nowrap; padding: 6px 10px;
	border-radius: var(--r-sm); box-shadow: var(--shadow-md);
}
.eh-logo-chip::before {
	content: ''; bottom: calc(100% + 4px);
	width: 0; height: 0; border: 6px solid transparent; border-top-color: var(--eh-navy-900);
}
.eh-logo-chip:hover::before,
.eh-logo-chip:hover::after { opacity: 1; transform: translateX(-50%) translateY(0); }
.eh-logo-chip:not([data-tip])::before,
.eh-logo-chip:not([data-tip])::after,
.eh-logo-chip[data-tip=""]::before,
.eh-logo-chip[data-tip=""]::after { display: none; }

/* ── SECTION COMMON ──────────────────────────────────── */
.eh-section { padding: 96px 0; }
.eh-section.alt { background: var(--bg-subtle); }
.eh-section.dark { background: var(--eh-navy-800); color: #fff; }
.eh-section-head { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: end; margin-bottom: 48px; }
.eh-section-head .left h2 { font-family: var(--font-display); font-size: clamp(32px, 3.6vw, 48px); font-weight: 700; letter-spacing: -0.022em; line-height: 1.12; margin: 12px 0 0; max-width: 640px; color: var(--fg); }
.eh-section-head .right { color: var(--fg-muted); font-size: 16px; line-height: 1.7; max-width: 440px; }
.eh-section.dark .eh-section-head .left h2 { color: #fff; }
.eh-section.dark .eh-section-head .right { color: var(--eh-navy-200); }

/* ── ABOUT ───────────────────────────────────────────── */
.eh-about { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: start; }
.eh-about .lead-copy p { font-family: var(--font-sans); font-size: 18px; line-height: 1.75; color: var(--fg-muted); margin: 0 0 18px; }
.eh-about .pillars { display: grid; gap: 16px; }
.eh-about .pillar { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg); padding: 22px 24px; box-shadow: var(--shadow-sm); }
.eh-about .pillar h3 { font-family: var(--font-display); margin: 0 0 6px; font-size: 18px; font-weight: 700; color: var(--fg); }
.eh-about .pillar p { margin: 0; font-size: 14.5px; color: var(--fg-muted); line-height: 1.65; }

/* ── SECTION ILLUSTRATIONS (theme-safe white card) ───── */
.eh-illus-card {
	margin: 0;
	background: #FFFFFF;
	border: 1px solid #E9ECF1;
	border-radius: var(--r-xl);
	box-shadow: var(--shadow-md);
	padding: 26px 30px;
	overflow: hidden;
}
.eh-illus-card img { display: block; width: 100%; height: auto; }
.eh-about-illus { margin-top: 30px; }
.eh-process-illus { max-width: 600px; margin: 0 auto 46px; }

/* ── PROGRAMS ────────────────────────────────────────── */
.eh-programs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
@media (max-width: 1180px) and (min-width: 981px) { .eh-programs { grid-template-columns: repeat(2, 1fr); } }
.eh-program { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg); padding: 30px; display: flex; flex-direction: column; gap: 12px; box-shadow: var(--shadow-sm); transition: all var(--t-base) var(--ease-out); color: var(--fg); position: relative; }
.eh-program:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: var(--border-strong); }
.eh-program .num { position: absolute; top: 30px; right: 30px; font-family: var(--font-accent); font-size: 11px; color: var(--fg-subtle); letter-spacing: 0.08em; }
.eh-program h3 { font-family: var(--font-display); margin: 4px 0 0; font-size: 21px; font-weight: 700; line-height: 1.25; color: var(--fg); }
.eh-program p { margin: 0; font-size: 14.5px; color: var(--fg-muted); line-height: 1.65; }
.eh-program ul { margin: 6px 0 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 7px; }
.eh-program li { font-size: 13.5px; color: var(--fg-muted); padding-left: 18px; position: relative; }
.eh-program li::before { content: '·'; color: var(--accent); position: absolute; left: 4px; font-weight: 900; }
.eh-program .where { margin-top: auto; padding-top: 14px; font-size: 12px; color: var(--fg-subtle); font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; }

/* ── PRODUCTS / PLATFORMS ────────────────────────────── */
.eh-products { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
/* Stays balanced when boxes are hidden (no empty third column). */
.eh-products[data-count="2"] { grid-template-columns: repeat(2, minmax(0, 1fr)); max-width: 760px; margin-left: auto; margin-right: auto; }
.eh-products[data-count="1"] { grid-template-columns: minmax(0, 440px); justify-content: center; }
.eh-product { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg); padding: 30px; box-shadow: var(--shadow-sm); display: flex; flex-direction: column; gap: 10px; transition: all var(--t-base) var(--ease-out); text-decoration: none; color: var(--fg); }
a.eh-product:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: var(--accent); }
.eh-product .top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.eh-product .name { font-family: var(--font-display); font-size: 20px; font-weight: 700; color: var(--fg); }
.eh-product .badge { font-size: 10px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; padding: 4px 10px; border-radius: var(--r-pill); }
.eh-product .badge.live { background: var(--eh-teal-50); color: var(--eh-teal-600); }
.eh-product .badge.soon { background: var(--eh-yellow-50); color: var(--eh-yellow-700); }
.eh-product p { margin: 0; font-size: 14px; color: var(--fg-muted); line-height: 1.65; }
.eh-product .go { margin-top: auto; padding-top: 12px; font-size: 13px; font-weight: 700; color: var(--link); }
.eh-product.is-soon { opacity: 0.92; }

/* ── PROCESS ─────────────────────────────────────────── */
.eh-process { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.eh-step { padding: 28px 24px; border-radius: var(--r-lg); background: var(--surface); border: 1px solid var(--border); transition: all var(--t-base) var(--ease-out); }
.eh-step:hover { border-color: var(--accent); box-shadow: var(--shadow-md); }
.eh-step .num { font-family: var(--font-accent); font-size: 11px; color: var(--fg-subtle); letter-spacing: 0.12em; }
.eh-step h3 { font-family: var(--font-display); margin: 14px 0 8px; font-size: 19px; font-weight: 700; line-height: 1.25; color: var(--fg); }
.eh-step p { margin: 0; font-size: 14px; color: var(--fg-muted); line-height: 1.65; }

/* ── GEOGRAPHY (dark) ────────────────────────────────── */
.eh-geo { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 56px; align-items: center; }
.eh-geo .copy h2 { font-family: var(--font-display); color: #fff; font-size: clamp(30px, 3.4vw, 44px); font-weight: 700; letter-spacing: -0.02em; line-height: 1.14; margin: 14px 0 16px; }
.eh-geo .copy p { color: var(--eh-navy-200); font-size: 16px; line-height: 1.7; margin: 0; }
.eh-geo .regions { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.eh-geo .region { padding: 22px 24px; background: rgba(255,255,255,0.03); border: 1px solid rgba(255,255,255,0.09); border-radius: var(--r-lg); }
.eh-geo .region .name { font-family: var(--font-display); font-size: 17px; font-weight: 700; color: #fff; }
.eh-geo .region .sub { font-size: 13px; color: var(--eh-navy-200); margin-top: 4px; line-height: 1.5; }

/* ── CLOSE STATEMENT (dark) ──────────────────────────── */
.eh-quote-section { padding: 104px 0; background: var(--eh-navy-900); color: #fff; }
.eh-quote-section .eh-wrap { max-width: 980px; }
.eh-quote { font-family: var(--font-display); font-size: clamp(26px, 3.4vw, 42px); font-weight: 600; line-height: 1.32; letter-spacing: -0.012em; color: #fff; margin: 0; }
.eh-quote em { font-family: var(--font-script); font-style: normal; font-weight: 700; color: var(--accent); }
.eh-quote-foot { margin-top: 28px; font-size: 14px; color: var(--eh-navy-300); letter-spacing: 0.04em; }

/* ── CONTACT (merged with the old CTA) ───────────────── */
.eh-contact { padding: 100px 0; background: var(--bg-subtle); }
.eh-contact .grid { display: grid; grid-template-columns: 0.95fr 1.05fr; gap: 56px; align-items: start; }
.eh-contact h2 { font-family: var(--font-display); font-size: clamp(30px, 3.6vw, 50px); font-weight: 700; letter-spacing: -0.02em; line-height: 1.14; margin: 12px 0 16px; color: var(--fg); }
.eh-contact .lead { font-size: 18px; color: var(--fg-muted); line-height: 1.7; margin: 0 0 18px; }
.eh-contact .direct { font-size: 15px; color: var(--fg-muted); }
.eh-contact .direct a { font-weight: 700; }
.eh-contact .card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-xl); padding: 36px; box-shadow: var(--shadow-md); }
/* ── CONTACT FORM (conversational, quirky note) ─────── */
/* Screen-reader-only labels keep accessibility while inputs sit in prose. */
.eh-srt { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

.eh-contact .card { padding: 40px 44px; }
.eh-contact .wpcf7 form > p:first-of-type { margin-top: 0; }

.eh-cv { font-family: var(--font-display); font-weight: 500; font-size: clamp(17px, 1.55vw, 21px); line-height: 2.05; color: var(--fg); margin: 0 0 12px; letter-spacing: -0.005em; }
.eh-cv-prompt { font-weight: 600; margin-top: 22px; margin-bottom: 12px; }

.eh-contact .wpcf7 .eh-cv label { display: inline-block; margin: 0; padding: 0; font: inherit; color: inherit; vertical-align: baseline; }
.eh-cv label input { border: 0; border-bottom: 2px solid var(--border-strong); background: transparent; font: inherit; color: var(--fg); padding: 2px 8px 4px; min-width: 130px; width: auto; border-radius: 0; margin: 0; transition: border-color var(--t-base), background var(--t-base); }
.eh-cv label input:focus { outline: 0; border-bottom-color: var(--accent); background: rgba(245,183,0,0.07); box-shadow: none; }
.eh-cv label input::placeholder { color: var(--fg-subtle); opacity: 0.65; font-weight: 400; }

.eh-contact .wpcf7 .eh-cv-area { display: block; margin: 0 0 24px; padding: 0; font: inherit; color: inherit; }
.eh-cv-area textarea { width: 100%; border: 2px dashed var(--border-strong); border-radius: var(--r-lg); padding: 16px 18px; font-family: var(--font-sans); font-size: 16px; line-height: 1.6; color: var(--fg); background: transparent; min-height: 140px; resize: vertical; transition: border-color var(--t-base), border-style var(--t-base), background var(--t-base); }
.eh-cv-area textarea:focus { outline: 0; border-color: var(--accent); border-style: solid; background: rgba(245,183,0,0.04); box-shadow: 0 0 0 3px rgba(245,183,0,0.12); }
.eh-cv-area textarea::placeholder { color: var(--fg-subtle); opacity: 0.7; }

.eh-contact .wpcf7 input[type="submit"] { background: var(--accent); color: #0A1628; border: 0; padding: 15px 34px; border-radius: var(--r-pill); font-family: var(--font-sans); font-weight: 800; font-size: 16px; letter-spacing: 0.01em; cursor: pointer; box-shadow: 0 6px 16px rgba(245,183,0,0.28); transition: transform var(--t-base) var(--ease-out), box-shadow var(--t-base) var(--ease-out), background var(--t-base) var(--ease-out); }
.eh-contact .wpcf7 input[type="submit"]:hover { transform: translateY(-2px) rotate(-0.6deg); background: var(--accent-hover); box-shadow: 0 12px 26px rgba(245,183,0,0.38); }

/* Admin-only notice when the contact form can't be resolved. */
.eh-admin-note { font-family: var(--font-sans); font-size: 14px; line-height: 1.6; color: var(--fg); background: var(--eh-yellow-50); border: 1px solid var(--eh-yellow-400); border-radius: var(--r-md); padding: 16px 18px; margin: 0; }

/* ── RESPONSIVE ──────────────────────────────────────── */
@media (max-width: 980px) {
	.eh-hero-dark { padding: 128px 0 72px; }
	.eh-hero-dark .grid, .eh-section-head, .eh-about, .eh-geo, .eh-contact .grid { grid-template-columns: 1fr; gap: 32px; }
	.eh-programs, .eh-products,
	.eh-products[data-count="1"], .eh-products[data-count="2"] { grid-template-columns: 1fr; max-width: none; }
	.eh-process, .eh-geo .regions { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 620px) {
	.eh-process, .eh-geo .regions { grid-template-columns: 1fr; }
}
/* Conversational contact form: stack each field as a full-width block on
   small screens so long placeholders / autofill / translations never wrap
   awkwardly inside the inline prose. */
@media (max-width: 560px) {
	.eh-contact .card { padding: 28px 22px; }
	.eh-cv { line-height: 1.7; font-size: 17px; }
	.eh-contact .wpcf7 .eh-cv label { display: block; margin-top: 4px; }
	.eh-cv label input { display: block; width: 100%; min-width: 0; box-sizing: border-box; padding: 9px 10px; }
	.eh-contact .wpcf7 input[type="submit"] { width: 100%; }
}
