/*
Theme Name:   EH Solutions Child
Theme URI:    https://www.valexconsulting.com/
Description:  Child theme for Divi 5. Carries the EH Solutions design system: layered-systems visual language, Space Grotesk / IBM Plex typography, and the component set used across the site.
Author:       Valex Consulting
Author URI:   https://www.valexconsulting.com/
Template:     Divi
Version:      1.3.0
License:      GNU General Public License v2 or later
License URI:  http://www.gnu.org/licenses/gpl-2.0.html
Text Domain:  eh-solutions-child
*/

/* ==========================================================================
   CONTENTS
   1.  Variables
   2.  Global / typography
   3.  Layout
   4.  Brand mark
   5.  Header / navigation
   6.  Buttons
   7.  Components
   7b. Media
   8.  Forms
   8b. Contact Form 7
   9.  Footer
   10. Utilities
   11. Responsive
   12. Print
   ========================================================================== */


/* ==========================================================================
   1. VARIABLES
   ========================================================================== */

:root {
	/* Core palette */
	--eh-ink:          #12181B;
	--eh-ink-soft:     #303A3E;
	--eh-ink-raised:   #1B2327;  /* card background on dark sections */
	--eh-paper:        #F7F5EF;
	--eh-paper-dim:    #ECE8DE;
	--eh-paper-muted:  #C7CDCB;  /* body copy on dark sections */
	--eh-line:         #DBD6C8;
	--eh-line-dark:    #2A3438;  /* borders on dark sections */
	--eh-signal:       #147D77;
	--eh-signal-dim:   #0F5F5B;
	--eh-signal-tint:  #DCEDEB;
	--eh-signal-light: #6FD7CC;  /* eyebrow on dark sections */
	--eh-clay:         #A6472F;
	--eh-slate:        #5B6469;
	--eh-slate-dim:    #7C8688;  /* footer bottom bar */

	/* Type */
	--eh-display: 'Space Grotesk', sans-serif;
	--eh-body:    'IBM Plex Sans', sans-serif;
	--eh-mono:    'IBM Plex Mono', monospace;

	/* Rhythm — content width is also set in Customizer > Layout Settings */
	--eh-wrap:      1190px;
	--eh-gutter:    32px;
	--eh-gap:       24px;
	--eh-section-y: 72px;
	--eh-radius:    4px;
}


/* ==========================================================================
   2. GLOBAL / TYPOGRAPHY
   ========================================================================== */

html { scroll-behavior: smooth; }

body {
	background: var(--eh-paper);
	color: var(--eh-ink);
	font-family: var(--eh-body);
	font-size: 16px;
	line-height: 1.6;
	-webkit-font-smoothing: antialiased;
}

img { max-width: 100%; }
a { text-decoration: none; }

h1, h2, h3, h4, h5, h6,
.et_pb_module h1, .et_pb_module h2,
.et_pb_module h3, .et_pb_module h4 {
	font-family: var(--eh-display);
	font-weight: 600;
	line-height: 1.12;
	letter-spacing: -0.01em;
	color: var(--eh-ink);
	padding-bottom: 0;
	margin: 0 0 0.5em;
}

h1, .et_pb_module h1 { font-size: clamp(2.2rem, 4.6vw, 3.6rem); }
h2, .et_pb_module h2 { font-size: clamp(1.6rem, 3vw, 2.3rem); }
h3, .et_pb_module h3 { font-size: 1.15rem; }

p, .et_pb_text p {
	margin: 0 0 1em;
	color: var(--eh-ink-soft);
	line-height: 1.6;
}
p:last-child, .et_pb_text p:last-child { margin-bottom: 0; }

/* Intro paragraph */
.lede {
	font-size: 1.15rem;
	color: var(--eh-slate);
	max-width: 640px;
}
.center .lede,
.eh-center .lede { margin-left: auto; margin-right: auto; }

/* Monospaced kicker above a heading */
.eyebrow {
	display: inline-flex;
	align-items: center;
	gap: 0.5em;
	font-family: var(--eh-mono);
	font-size: 0.72rem;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--eh-signal-dim);
	margin-bottom: 14px;
}
.eyebrow::before {
	content: "";
	width: 16px;
	height: 1px;
	background: var(--eh-signal);
	display: inline-block;
	flex-shrink: 0;
}
.eh-center .eyebrow { justify-content: center; }


/* ==========================================================================
   3. LAYOUT
   ========================================================================== */

.et_pb_section {
	padding: var(--eh-section-y) 0;
	background-color: var(--eh-paper);
}

/* Content container */
body .et_pb_row:not([class*="et_flex_column"]) {
	width: 100%;
	max-width: var(--eh-wrap);
	padding-left: var(--eh-gutter) !important;
	padding-right: var(--eh-gutter) !important;
	margin-left: auto;
	margin-right: auto;
}

.eh-grid .et_pb_module { margin-bottom: 0; }

/* --- Grid rows ---
   Apply .eh-grid plus .eh-grid-N to a row. The !important on column width and
   margin is required to override Divi's inline per-row column sizing. */
.eh-grid.et_pb_row {
	display: grid;
	gap: var(--eh-gap);
	align-items: stretch;
}
.eh-grid.et_pb_row > .et_pb_column {
	width: 100% !important;
	margin: 0 !important;
	float: none !important;
	display: flex;
	flex-direction: column;
}
.eh-grid-2.et_pb_row { grid-template-columns: repeat(2, 1fr); }
.eh-grid-3.et_pb_row { grid-template-columns: repeat(3, 1fr); }
.eh-grid-4.et_pb_row { grid-template-columns: repeat(4, 1fr); }
.eh-grid-5.et_pb_row { grid-template-columns: repeat(5, 1fr); }

/* Wide gap variant for split content rows */
.eh-grid-wide.et_pb_row { gap: 56px; }

.eh-align-center.et_pb_row { align-items: center; }

/* --- Section tones --- */
.eh-on-paper-dim.et_pb_section { background-color: var(--eh-paper-dim); }

.eh-on-dark.et_pb_section { background-color: var(--eh-ink); color: var(--eh-paper); }
.eh-on-dark h1, .eh-on-dark h2, .eh-on-dark h3, .eh-on-dark h4 { color: var(--eh-paper); }
.eh-on-dark p, .eh-on-dark .lede { color: var(--eh-paper-muted); }
.eh-on-dark .eyebrow { color: var(--eh-signal-light); }
.eh-on-dark .eyebrow::before { background: var(--eh-signal-light); }
.eh-on-dark a { color: var(--eh-paper); }

.eh-center, .eh-center .et_pb_text { text-align: center; }

/* Section intro block */
.eh-section-head {
	max-width: 680px;
	margin-bottom: 44px;
}
.eh-center .eh-section-head { margin-left: auto; margin-right: auto; }

/* Banded divider */
.eh-layer-rule {
	height: 14px;
	margin: 0 0 56px;
	background:
		linear-gradient(var(--eh-paper), var(--eh-paper)) padding-box,
		repeating-linear-gradient(90deg, var(--eh-line) 0 40px, transparent 40px 44px);
	border-top: 1px solid var(--eh-line);
	border-bottom: 1px solid var(--eh-signal-tint);
	opacity: 0.9;
}


/* ==========================================================================
   4. BRAND MARK
   Rendered by the [eh_mark] and [eh_logo] shortcodes.
   ========================================================================== */

.mark {
	position: relative;
	width: 22px;
	height: 16px;
	display: inline-flex;
	flex-direction: column;
	justify-content: space-between;
	flex-shrink: 0;
}
.mark span { display: block; height: 2px; width: 100%; border-radius: 1px; }
.mark span:nth-child(1) { background: var(--eh-line); }
.mark span:nth-child(2) { background: var(--eh-signal); }
.mark span:nth-child(3) { background: var(--eh-ink); }

.brand {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	font-family: var(--eh-display);
	font-weight: 700;
	font-size: 1.05rem;
	color: var(--eh-ink);
	line-height: 1;
}
.eh-on-dark .brand, footer .brand { color: #fff; }
.eh-on-dark .mark span:nth-child(3), footer .mark span:nth-child(3) { background: #fff; }
.eh-on-dark .mark span:nth-child(1), footer .mark span:nth-child(1) { background: var(--eh-line-dark); }


/* ==========================================================================
   5. HEADER / NAVIGATION
   ========================================================================== */

#main-header {
	background-color: rgba(247, 245, 239, 0.92);
	-webkit-backdrop-filter: blur(6px);
	backdrop-filter: blur(6px);
	border-bottom: 1px solid var(--eh-line);
	box-shadow: none;
}
#main-header .container { padding-top: 0; }
.et_header_style_left #et-top-navigation { padding-top: 24px; }

#top-menu li { padding-right: 32px; }
#top-menu li a {
	font-family: var(--eh-body);
	font-size: 0.94rem;
	color: var(--eh-ink-soft);
	padding-bottom: 8px;
	border-bottom: 2px solid transparent;
	opacity: 1;
}
#top-menu li a:hover,
#top-menu li.current-menu-item a {
	color: var(--eh-ink);
	border-color: var(--eh-signal);
	opacity: 1;
}

/* Header container matches the page content container so the logo aligns
   with the content edge */
#main-header .container {
	width: 100%;
	max-width: var(--eh-wrap);
	padding-left: var(--eh-gutter);
	padding-right: var(--eh-gutter);
	margin-left: auto;
	margin-right: auto;
}

/* Mobile menu */
.et_mobile_menu {
	border-top: 1px solid var(--eh-line);
	background: var(--eh-paper);
}
.et_mobile_menu li a { color: var(--eh-ink-soft); border-bottom: 1px solid var(--eh-line); }


/* ==========================================================================
   6. BUTTONS
   ========================================================================== */

.et_pb_button,
.eh-btn {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	font-family: var(--eh-body);
	font-weight: 600;
	font-size: 0.92rem;
	line-height: 1.2;
	padding: 12px 22px !important;
	border-radius: 3px;
	border: 1px solid transparent;
	cursor: pointer;
	transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

/* Divi appends an arrow glyph to every button */
.et_pb_button::after,
.et_pb_button::before { display: none !important; }

/* --- Primary --- */
.eh-btn-primary.et_pb_button,
.eh-btn-primary {
	background-color: var(--eh-ink);
	color: var(--eh-paper);
	border-color: var(--eh-ink);
}
.eh-btn-primary.et_pb_button:hover,
.eh-btn-primary:hover {
	background-color: var(--eh-signal-dim);
	border-color: var(--eh-signal-dim);
	color: var(--eh-paper);
}

/* --- Ghost --- */
.eh-btn-ghost.et_pb_button,
.eh-btn-ghost {
	background: transparent;
	border-color: var(--eh-ink);
	color: var(--eh-ink);
}
.eh-btn-ghost.et_pb_button:hover,
.eh-btn-ghost:hover { background: var(--eh-ink); color: var(--eh-paper); }

/* Anchor colours asserted so button links don't fall through to Divi's
   default link styling */
a.eh-btn-ghost,
a.eh-btn-ghost:visited { color: var(--eh-ink) !important; }
a.eh-btn-ghost:hover { color: var(--eh-paper) !important; }

a.eh-btn-primary,
a.eh-btn-primary:visited,
a.eh-btn-primary:hover { color: var(--eh-paper) !important; }

a.eh-btn-on-dark,
a.eh-btn-on-dark:visited { color: var(--eh-paper) !important; }
a.eh-btn-on-dark:hover { color: var(--eh-ink) !important; }

/* --- Outline on dark --- */
.eh-btn-on-dark.et_pb_button,
.eh-btn-on-dark {
	background: transparent;
	border-color: rgba(247, 245, 239, 0.4);
	color: var(--eh-paper);
}
.eh-btn-on-dark.et_pb_button:hover,
.eh-btn-on-dark:hover { background: var(--eh-paper); color: var(--eh-ink); border-color: var(--eh-paper); }

/* --- Solid white on dark (hero CTA) --- */
.eh-btn-invert.et_pb_button,
.eh-btn-invert {
	background: #fff;
	border-color: #fff;
	color: var(--eh-ink);
}
.eh-btn-invert.et_pb_button:hover,
.eh-btn-invert:hover { background: var(--eh-signal-tint); border-color: var(--eh-signal-tint); color: var(--eh-ink); }

/* Scoped under .eh-on-dark to override the inherited link colour */
.eh-on-dark a.eh-btn-invert,
.eh-on-dark .eh-btn-invert.et_pb_button {
	color: var(--eh-ink) !important;
}
.eh-on-dark a.eh-btn-invert:hover,
.eh-on-dark .eh-btn-invert.et_pb_button:hover {
	color: var(--eh-ink) !important;
	background: var(--eh-signal-tint);
	border-color: var(--eh-signal-tint);
}

/* --- Nav CTA ---
   WordPress puts menu classes on the <li>, so these rules reach through to
   the anchor. Applied via the `eh-nav-cta` menu item class. */
#top-menu li.eh-nav-cta {
	padding-right: 0;
	display: inline-block;
	align-items: center;
}
#top-menu li.eh-nav-cta > a {
	display: inline-flex;
	align-items: center;
	background-color: var(--eh-ink);
	color: var(--eh-paper) !important;
	font-family: var(--eh-body);
	font-weight: 600;
	font-size: 0.92rem;
	line-height: 1.2;
	padding: 12px 22px !important;
	border: 1px solid var(--eh-ink) !important;
	border-radius: 3px;
	opacity: 1;
	transition: background-color 0.2s ease, border-color 0.2s ease;
}
#top-menu li.eh-nav-cta > a:hover,
#top-menu li.eh-nav-cta.current-menu-item > a {
	background-color: var(--eh-signal-dim);
	border-color: var(--eh-signal-dim) !important;
	color: var(--eh-paper) !important;
}

/* Full-width block in the mobile drawer */
.et_mobile_menu li.eh-nav-cta > a {
	background-color: var(--eh-ink);
	color: var(--eh-paper) !important;
	font-weight: 600;
	text-align: center;
	margin: 10px 5%;
	width: 90%;
	border-radius: 3px;
	border-bottom: none;
}


/* ==========================================================================
   7. COMPONENTS
   ========================================================================== */

/* --- Card --- */
.card {
	background: #fff;
	border: 1px solid var(--eh-line);
	border-radius: var(--eh-radius);
	padding: 26px;
	height: 100%;
}
.card h3 { margin-bottom: 8px; }
.eh-on-dark .card { background: var(--eh-ink-raised); border-color: var(--eh-line-dark); }

/* Numbered token */
.card-icon {
	width: 38px;
	height: 38px;
	border-radius: 8px;
	background: var(--eh-ink);
	color: var(--eh-paper);
	display: flex;
	align-items: center;
	justify-content: center;
	margin-bottom: 16px;
	font-family: var(--eh-mono);
	font-size: 0.85rem;
}

/* --- Rail: card with a coloured left edge --- */
.rail {
	background: #fff;
	border: 1px solid var(--eh-line);
	border-left: 3px solid var(--eh-ink);
	border-radius: 0 var(--eh-radius) var(--eh-radius) 0;
	padding: 18px 20px 18px 22px;
	margin-bottom: 18px;
	height: 100%;
}
.eh-grid .rail { margin-bottom: 0; }
.rail.signal { border-left-color: var(--eh-signal); }
.rail.clay   { border-left-color: var(--eh-clay); }
.rail h3 { margin-bottom: 4px; }
.rail p:last-child { margin-bottom: 0; }

.eh-on-dark .rail {
	background: transparent;
	border-color: var(--eh-line-dark);
	color: var(--eh-paper-muted);
}
.eh-on-dark .rail strong { color: #fff; display: block; }

/* --- Stat --- */
.stat {
	display: flex;
	flex-direction: column;
	gap: 6px;
	padding: 22px 0;
	border-top: 1px solid var(--eh-line);
}
.stat .num {
	font-family: var(--eh-display);
	font-weight: 700;
	font-size: 2.1rem;
	line-height: 1.1;
	color: var(--eh-signal-dim);
}
.stat .label { font-size: 0.88rem; color: var(--eh-slate); max-width: 220px; }
.stat .label.wide { max-width: none; }
.stat.bare { border-top: none; padding-top: 0; }
.eh-on-dark .stat { border-top-color: var(--eh-line-dark); }
.eh-on-dark .stat .num { color: var(--eh-signal-light); }

/* --- Chip --- */
.chip {
	display: inline-block;
	font-family: var(--eh-mono);
	font-size: 0.72rem;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	padding: 4px 10px;
	border-radius: 20px;
	background: var(--eh-signal-tint);
	color: var(--eh-signal-dim);
}

/* --- Layer stack diagram --- */
.layer-stack { display: flex; flex-direction: column; gap: 10px; }
.layer-stack .band {
	border: 1px solid var(--eh-line);
	background: #fff;
	border-radius: var(--eh-radius);
	padding: 16px 20px;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	margin-bottom: 10px;
}
.layer-stack .band .n { font-family: var(--eh-mono); font-size: 0.78rem; color: var(--eh-slate); }
.layer-stack .band.signal-band {
	background: var(--eh-signal);
	color: #fff;
	border-color: var(--eh-signal);
}
.layer-stack .band.signal-band .n { color: var(--eh-signal-tint); }

/* --- Pricing tier --- */
.tier {
	background: #fff;
	border: 1px solid var(--eh-line);
	border-radius: 6px;
	padding: 32px 26px;
	display: flex;
	flex-direction: column;
	height: 100%;
}
.tier.featured { border: 2px solid var(--eh-ink); position: relative; }

/* Sized to keep the longest tier label on one line */
.tier .chip {
	font-size: 0.64rem;
	letter-spacing: 0.04em;
	line-height: 1.4;
	padding: 5px 10px;
	align-self: flex-start;
	white-space: nowrap;
}

.tier .price {
	font-family: var(--eh-display);
	font-size: 1.8rem;
	font-weight: 700;
	line-height: 1.1;
	margin: 18px 0 4px;
	color: var(--eh-ink);
}
.tier .price-note {
	margin: 0;
	color: var(--eh-slate);
	font-size: 0.85rem;
	line-height: 1.4;
}

.tier ul {
	list-style: none;
	padding: 0;
	margin: 24px 0 0;
	flex: 1;
}
.tier li {
	padding: 12px 0;
	border-top: 1px solid var(--eh-line);
	font-size: 0.92rem;
	line-height: 1.5;
	display: flex;
	gap: 10px;
	align-items: flex-start;
}
.tier li::before { content: "\2014"; color: var(--eh-signal); flex-shrink: 0; }

/* --- Tables --- */
.eh-table, .et_pb_text table {
	width: 100%;
	border-collapse: collapse;
}
.eh-table th, .eh-table td,
.et_pb_text table th, .et_pb_text table td {
	text-align: left;
	padding: 14px 16px;
	border-bottom: 1px solid var(--eh-line);
	font-size: 0.94rem;
}
.eh-table th, .et_pb_text table th {
	font-family: var(--eh-mono);
	font-size: 0.72rem;
	text-transform: uppercase;
	letter-spacing: 0.08em;
	color: var(--eh-slate);
	font-weight: 500;
}
.eh-on-dark .eh-table td { border-bottom-color: var(--eh-line-dark); color: var(--eh-paper-muted); }
.eh-on-dark .eh-table td:first-child { color: #fff; }
.eh-on-dark .eh-table tr:last-child td { border-bottom-color: transparent; }

/* Divi borders the table and rows; only the cell hairline is wanted */
.eh-table,
.eh-table tr,
.et_pb_text table,
.et_pb_text table tr {
	border: none !important;
}
.eh-on-dark .eh-table,
.eh-on-dark .eh-table tr { border: none !important; }
.eh-on-dark .eh-table td { border-bottom: 1px solid var(--eh-line-dark) !important; }
.eh-on-dark .eh-table tr:last-child td { border-bottom: none !important; }


/* ==========================================================================
   7b. MEDIA
   ========================================================================== */

.eh-media {
	display: block;
	width: 100%;
	overflow: hidden;
	border-radius: var(--eh-radius);
	background: var(--eh-paper-dim);
}
.eh-media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

/* Aspect ratios — apply one to the .eh-media wrapper */
.eh-media-wide   { aspect-ratio: 16 / 9; }
.eh-media-photo  { aspect-ratio: 3 / 2; }
.eh-media-square { aspect-ratio: 1 / 1; }
.eh-media-tall   { aspect-ratio: 4 / 5; }

/* Image flush to the top edge of a card */
.card > .eh-media:first-child {
	margin: -26px -26px 20px;
	width: calc(100% + 52px);
	border-radius: var(--eh-radius) var(--eh-radius) 0 0;
}

/* Warm correction for imagery that clashes with the paper background */
.eh-media-warm img { filter: saturate(0.92) sepia(0.06); }

/* Duotone treatment in the brand teal */
.eh-media-duo { position: relative; }
.eh-media-duo img { filter: grayscale(1) contrast(1.05); }
.eh-media-duo::after {
	content: "";
	position: absolute;
	inset: 0;
	background: var(--eh-signal);
	mix-blend-mode: multiply;
	opacity: 0.72;
	pointer-events: none;
}

/* Full-bleed background image with a legibility scrim */
.eh-bg-image.et_pb_section { position: relative; }
.eh-bg-image.et_pb_section > .et_pb_row { position: relative; z-index: 2; }
.eh-bg-image.et_pb_section::before {
	content: "";
	position: absolute;
	inset: 0;
	z-index: 1;
	background: linear-gradient(
		90deg,
		rgba(18, 24, 27, 0.94) 0%,
		rgba(18, 24, 27, 0.80) 55%,
		rgba(18, 24, 27, 0.55) 100%
	);
}

/* Integration partner logo wall */
.eh-logo-wall {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 40px;
}
.eh-logo-wall img {
	height: 28px;
	width: auto;
	opacity: 0.55;
	filter: grayscale(1);
	transition: opacity 0.2s ease;
}
.eh-logo-wall img:hover { opacity: 1; }

figure { margin: 0; }
figcaption {
	font-family: var(--eh-mono);
	font-size: 0.72rem;
	letter-spacing: 0.06em;
	color: var(--eh-slate);
	margin-top: 10px;
}


/* ==========================================================================
   8. FORMS
   ========================================================================== */

.et_pb_contact_form_label { display: block; }

input[type="text"], input[type="email"], input[type="tel"],
select, textarea,
.et_pb_contact_form input, .et_pb_contact_form textarea {
	width: 100%;
	font-family: var(--eh-body) !important;
	font-size: 0.95rem !important;
	padding: 12px 14px !important;
	border: 1px solid var(--eh-line) !important;
	border-radius: 3px !important;
	background: #fff !important;
	color: var(--eh-ink) !important;
}
input:focus, select:focus, textarea:focus {
	outline: none;
	border-color: var(--eh-signal) !important;
	box-shadow: 0 0 0 3px var(--eh-signal-tint);
}
label {
	display: block;
	font-size: 0.82rem;
	font-weight: 600;
	margin-bottom: 6px;
	color: var(--eh-ink-soft);
}
.et_pb_contact_field { padding: 0 0 18px !important; }


/* ==========================================================================
   8b. CONTACT FORM 7
   ========================================================================== */

.wpcf7-form .field { margin-bottom: 18px; }
.wpcf7-form label {
	display: block;
	font-size: 0.82rem;
	font-weight: 600;
	margin-bottom: 6px;
	color: var(--eh-ink-soft);
}

.wpcf7-form input[type="text"],
.wpcf7-form input[type="email"],
.wpcf7-form input[type="tel"],
.wpcf7-form textarea,
.wpcf7-form select {
	width: 100%;
	font-family: var(--eh-body) !important;
	font-size: 0.95rem !important;
	line-height: 1.5;
	padding: 12px 14px !important;
	border: 1px solid var(--eh-line) !important;
	border-radius: 3px !important;
	background: #fff !important;
	color: var(--eh-ink) !important;
}
.wpcf7-form input:focus,
.wpcf7-form textarea:focus {
	outline: none;
	border-color: var(--eh-signal) !important;
	box-shadow: 0 0 0 3px var(--eh-signal-tint);
}
.wpcf7-form ::placeholder { color: var(--eh-slate); opacity: 0.7; }

.wpcf7-form .wpcf7-submit,
.wpcf7-form input[type="submit"] {
	width: 100%;
	justify-content: center;
	background-color: var(--eh-ink);
	color: var(--eh-paper);
	font-family: var(--eh-body);
	font-weight: 600;
	font-size: 0.92rem;
	padding: 12px 22px;
	border: 1px solid var(--eh-ink);
	border-radius: 3px;
	cursor: pointer;
	transition: background-color 0.2s ease, border-color 0.2s ease;
}
.wpcf7-form .wpcf7-submit:hover {
	background-color: var(--eh-signal-dim);
	border-color: var(--eh-signal-dim);
}

/* Validation and response messages */
.wpcf7-not-valid-tip {
	font-size: 0.8rem;
	color: var(--eh-clay);
	margin-top: 6px;
}
.wpcf7-form input.wpcf7-not-valid,
.wpcf7-form textarea.wpcf7-not-valid { border-color: var(--eh-clay) !important; }

.wpcf7-response-output {
	margin: 18px 0 0 !important;
	padding: 12px 14px !important;
	border-radius: 3px;
	border-width: 1px !important;
	font-size: 0.9rem;
}
.wpcf7 form.sent .wpcf7-response-output {
	border-color: var(--eh-signal) !important;
	background: var(--eh-signal-tint);
	color: var(--eh-signal-dim);
}
.wpcf7 form.invalid .wpcf7-response-output,
.wpcf7 form.failed .wpcf7-response-output {
	border-color: var(--eh-clay) !important;
	color: var(--eh-clay);
}

/* CF7 autop wraps loose content in <p> */
.wpcf7-form p:empty { display: none; }
.wpcf7-form .wpcf7-spinner { display: block; margin: 10px auto 0; }
.wpcf7-form p { margin: 0; }
.wpcf7-form .field:last-of-type { margin-bottom: 22px; }


/* ==========================================================================
   9. FOOTER
   .et-l--footer is the Theme Builder footer wrapper; #main-footer is Divi's
   default footer, kept as a fallback if the Theme Builder footer is removed.
   ========================================================================== */

#main-footer {
	background-color: var(--eh-ink);
	color: var(--eh-paper-muted);
}
#main-footer .et_pb_section { background-color: transparent; padding: 56px 0 32px; }
#main-footer h4, #main-footer .widgettitle {
	color: var(--eh-paper);
	font-size: 0.82rem;
	text-transform: uppercase;
	letter-spacing: 0.08em;
	font-family: var(--eh-mono);
	font-weight: 500;
	margin-bottom: 14px;
}
#main-footer ul { list-style: none; padding: 0; margin: 0; }
#main-footer li { margin-bottom: 8px; font-size: 0.92rem; }
#main-footer a { color: var(--eh-paper-muted); }
#main-footer a:hover { color: #fff; }
#main-footer p { color: var(--eh-paper-muted); }

.eh-foot-bottom {
	max-width: var(--eh-wrap);
	margin: 40px auto 0;
	padding: 24px var(--eh-gutter) 0;
	border-top: 1px solid var(--eh-line-dark);
	font-size: 0.8rem;
	color: var(--eh-slate-dim);
	display: flex;
	justify-content: space-between;
	gap: 16px;
}

#footer-bottom { background-color: var(--eh-ink); padding: 0; }

/* --- Footer menu modules: render as a plain stacked list --- */
.et-l--footer .et_pb_menu,
.et-l--footer .et_pb_menu__wrap,
.et-l--footer .et_pb_menu__menu {
	background: transparent;
	display: block;
	width: 100%;
}
.et-l--footer .et_pb_menu .et-menu,
.et-l--footer .et_pb_menu nav > ul {
	display: block;
	list-style: none;
	margin: 0;
	padding: 0;
}
.et-l--footer .et_pb_menu .et-menu > li {
	display: block;
	margin: 0 0 8px;
	padding: 0;
	float: none;
	border: none;
}
.et-l--footer .et_pb_menu .et-menu > li > a {
	color: var(--eh-paper-muted);
	font-family: var(--eh-body);
	font-size: 0.92rem;
	padding: 0;
	border: none;
	opacity: 1;
}
.et-l--footer .et_pb_menu .et-menu > li > a:hover {
	color: #fff;
	opacity: 1;
}

/* Suppress the hamburger toggle below Divi's menu breakpoint */
.et-l--footer .et_pb_menu .et_mobile_nav_menu { display: none !important; }
.et-l--footer .et_pb_menu .et_pb_menu__menu { display: flex !important; }

/* Left alignment at every breakpoint */
.et-l--footer .et_pb_menu .et_pb_menu__wrap,
.et-l--footer .et_pb_menu .et_pb_menu__menu {
	justify-content: flex-start !important;
}
.et-l--footer .et_pb_menu .et-menu,
.et-l--footer .et_pb_menu .et-menu > li,
.et-l--footer .et_pb_menu .et-menu > li > a {
	text-align: left !important;
}

/* --- Footer typography --- */
.et-l--footer .et_pb_module h4,
.et-l--footer .et_pb_text h4,
.et-l--footer h4 {
	font-family: var(--eh-mono);
	font-size: 0.82rem;
	font-weight: 500;
	line-height: 1.4;
	text-transform: uppercase;
	letter-spacing: 0.08em;
	color: var(--eh-paper);
	margin: 0 0 14px;
	padding-bottom: 0;
}

.et-l--footer .et_pb_text ul {
	list-style: none;
	margin: 0;
	padding: 0;
}
.et-l--footer .et_pb_text ul li,
.et-l--footer .et_pb_text li {
	font-family: var(--eh-body);
	font-size: 0.92rem;
	line-height: 1.6;
	color: var(--eh-paper-muted);
	margin: 0 0 8px;
	padding: 0;
	list-style: none;
}

/* Normalised module spacing so all four columns share a baseline */
.et-l--footer .et_pb_module { margin-bottom: 0; }
.et-l--footer .et_pb_menu,
.et-l--footer .et_pb_menu .et_pb_menu_inner_container {
	margin-top: 0;
	padding: 0;
}
.et-l--footer .et_pb_menu .et-menu > li { margin: 0 0 8px; }
.et-l--footer .et_pb_menu .et-menu > li > a { line-height: 1.6; }


/* ==========================================================================
   10. UTILITIES
   ========================================================================== */

.eh-visually-hidden {
	position: absolute;
	width: 1px;
	height: 1px;
	margin: -1px;
	padding: 0;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

.eh-mt-0 { margin-top: 0 !important; }
.eh-mb-0 { margin-bottom: 0 !important; }
.eh-note { font-size: 0.88rem; color: var(--eh-slate); margin-top: 20px; }
.eh-measure { max-width: 720px; }


/* ==========================================================================
   11. RESPONSIVE
   980px aligns with Divi's tablet breakpoint and the mobile menu switch.
   ========================================================================== */

@media all and (max-width: 980px) {
	.eh-grid-3.et_pb_row,
	.eh-grid-4.et_pb_row,
	.eh-grid-5.et_pb_row { grid-template-columns: repeat(2, 1fr); }
	.eh-grid-wide.et_pb_row { gap: var(--eh-gap); }
	.et_pb_section { padding: 56px 0; }
}

@media all and (max-width: 767px) {
	.eh-grid-2.et_pb_row,
	.eh-grid-3.et_pb_row,
	.eh-grid-4.et_pb_row,
	.eh-grid-5.et_pb_row { grid-template-columns: 1fr; }
	.et_pb_row { padding-left: 24px; padding-right: 24px; }
	.eh-foot-bottom { flex-direction: column; }
	.layer-stack .band { flex-direction: column; align-items: flex-start; gap: 4px; }
}


/* ==========================================================================
   12. PRINT
   ========================================================================== */

@media print {
	#main-header,
	#main-footer,
	.et_pb_button { display: none !important; }
	body { background: #fff; }
}