/* ==========================================================================
   Everwell Home Care – main stylesheet
   1. Tokens  2. Base  3. Buttons  4. Header  5. Hero  6. Sections & layout
   7. Cards  8. Components  9. Testimonials  10. Forms  11. Footer
   12. Pages & misc  13. Motion  14. Responsive
   ========================================================================== */

/* 1. Tokens ------------------------------------------------------------- */
:root {
	--ew-green: #1b4a39;
	--ew-green-600: #25624b;
	--ew-forest: #123528;
	--ew-sage: #8da88a;
	--ew-sage-300: #c5d4c0;
	--ew-sage-100: #e8efe4;
	--ew-sage-50: #f3f7f0;
	--ew-beige: #f7f2e9;
	--ew-sand: #e9dfcc;
	--ew-gold: #b98a4b;
	--ew-ink: #1f2a25;
	--ew-muted: #58665f;
	--ew-line: rgba(27, 74, 57, 0.12);
	--ew-white: #fff;
	--ew-font-head: 'Fraunces', Georgia, 'Times New Roman', serif;
	--ew-font-body: 'Figtree', system-ui, -apple-system, 'Segoe UI', sans-serif;
	--ew-r-sm: 14px;
	--ew-r: 24px;
	--ew-r-lg: 32px;
	--ew-shadow: 0 10px 30px -12px rgba(18, 53, 40, 0.18);
	--ew-shadow-lg: 0 28px 60px -22px rgba(18, 53, 40, 0.35);
	--ew-ease: cubic-bezier(0.22, 0.8, 0.3, 1);
	--ew-container: 1200px;
	--ew-pad: 24px;
}

/* 2. Base --------------------------------------------------------------- */
*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 110px; -webkit-text-size-adjust: 100%; }

body {
	margin: 0;
	font-family: var(--ew-font-body);
	font-size: 17px;
	line-height: 1.65;
	color: var(--ew-ink);
	background: var(--ew-white);
	-webkit-font-smoothing: antialiased;
	text-rendering: optimizeLegibility;
}

.ew-main { overflow-x: clip; }

img, svg { max-width: 100%; height: auto; }
a { color: var(--ew-green); text-underline-offset: 3px; transition: color 0.2s; }
a:hover { color: var(--ew-green-600); }
:focus-visible { outline: 3px solid var(--ew-gold); outline-offset: 3px; border-radius: 6px; }

h1, h2, h3, h4 {
	font-family: var(--ew-font-head);
	font-weight: 600;
	line-height: 1.15;
	letter-spacing: -0.012em;
	color: var(--ew-forest);
	margin: 0 0 0.5em;
	text-wrap: balance;
}
h1 { font-size: clamp(2.2rem, 4.6vw, 3.6rem); }
h2 { font-size: clamp(1.8rem, 3.3vw, 2.7rem); }
h3 { font-size: clamp(1.25rem, 2vw, 1.5rem); }
p { margin: 0 0 1.1em; }

.screen-reader-text {
	position: absolute !important; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden;
	clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
.skip-link:focus {
	position: fixed !important; z-index: 1000; top: 12px; left: 12px; width: auto; height: auto; clip: auto; margin: 0;
	padding: 12px 20px; background: #fff; color: var(--ew-green); border-radius: 10px; box-shadow: var(--ew-shadow-lg);
}
.ew-placeholder { background: rgba(185, 138, 75, 0.18); border-radius: 6px; padding: 0 6px; }
.ew-center { text-align: center; }

/* 3. Buttons ------------------------------------------------------------ */
.ew-btn,
.wp-block-button .wp-block-button__link,
.wp-block-search__button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	padding: 15px 30px;
	font: 700 1rem/1.2 var(--ew-font-body);
	letter-spacing: 0.01em;
	color: #fff;
	background: var(--ew-green);
	border: 2px solid var(--ew-green);
	border-radius: 999px;
	text-decoration: none;
	cursor: pointer;
	transition: transform 0.3s var(--ew-ease), box-shadow 0.3s var(--ew-ease), background 0.25s, color 0.25s, border-color 0.25s;
}
.ew-btn:hover,
.wp-block-button .wp-block-button__link:hover {
	color: #fff;
	background: var(--ew-forest);
	border-color: var(--ew-forest);
	transform: translateY(-3px);
	box-shadow: 0 14px 28px -12px rgba(18, 53, 40, 0.55);
}
.ew-btn:active,
.wp-block-button .wp-block-button__link:active { transform: translateY(-1px); }
.ew-btn--sm { padding: 11px 24px; font-size: 0.95rem; }
.ew-btn--outline,
.wp-block-button.is-style-outline .wp-block-button__link {
	color: var(--ew-green);
	background: transparent;
	border-color: var(--ew-green);
}
.ew-btn--outline:hover,
.wp-block-button.is-style-outline .wp-block-button__link:hover { color: #fff; background: var(--ew-green); border-color: var(--ew-green); }

/* Buttons on dark backgrounds */
.wp-block-button.ew-btn--light .wp-block-button__link { color: var(--ew-green); background: #fff; border-color: #fff; }
.wp-block-button.ew-btn--light .wp-block-button__link:hover { color: var(--ew-forest); background: var(--ew-beige); border-color: var(--ew-beige); }
.wp-block-button.ew-btn--light.is-style-outline .wp-block-button__link { color: #fff; background: transparent; border-color: rgba(255, 255, 255, 0.75); }
.wp-block-button.ew-btn--light.is-style-outline .wp-block-button__link:hover { color: var(--ew-forest); background: #fff; border-color: #fff; }

.wp-block-buttons { margin-top: 28px; }
.ew-center-actions { justify-content: center; margin-top: 48px; }

/* 4. Header ------------------------------------------------------------- */
.ew-topbar { background: var(--ew-forest); color: #d8e4dc; font-size: 0.88rem; }
.ew-topbar__inner {
	max-width: 1280px; margin: 0 auto; padding: 9px var(--ew-pad);
	display: flex; align-items: center; justify-content: space-between; gap: 20px;
}
.ew-topbar__list { display: flex; flex-wrap: wrap; gap: 4px 26px; margin: 0; padding: 0; list-style: none; }
.ew-topbar__list li { display: inline-flex; align-items: center; gap: 8px; }
.ew-topbar .ew-ico { color: var(--ew-sage); }
.ew-topbar a { color: #fff; text-decoration: none; }
.ew-topbar a:hover { text-decoration: underline; }
.ew-social { display: flex; gap: 8px; margin: 0; padding: 0; list-style: none; }
.ew-social a {
	display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%;
	color: #fff; border: 1px solid rgba(255, 255, 255, 0.25); text-decoration: none; transition: background 0.25s, color 0.25s, transform 0.25s;
}
.ew-social a:hover { background: var(--ew-sage); color: var(--ew-forest); transform: translateY(-2px); }
.ew-social--top a { width: 28px; height: 28px; border: 0; font-size: 0.95rem; }

.ew-header {
	position: sticky; top: 0; z-index: 100;
	background: rgba(255, 255, 255, 0.96);
	-webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
	border-bottom: 1px solid var(--ew-line);
	transition: box-shadow 0.3s;
}
.ew-header.is-stuck { box-shadow: 0 10px 30px -18px rgba(18, 53, 40, 0.45); }
.ew-header__inner {
	max-width: 1280px; margin: 0 auto; padding: 0 var(--ew-pad); min-height: 84px;
	display: flex; align-items: center; justify-content: space-between; gap: 24px;
}
.ew-brand { display: inline-flex; align-items: center; gap: 12px; color: var(--ew-green); text-decoration: none; }
.ew-brand:hover { color: var(--ew-green); }
.ew-brand__mark { display: inline-flex; line-height: 0; transition: transform 0.4s var(--ew-ease); }
.ew-brand:hover .ew-brand__mark { transform: rotate(-8deg) scale(1.06); }
.ew-brand__text { display: flex; flex-direction: column; line-height: 1.1; }
.ew-brand__text strong { font: 600 1.65rem/1 var(--ew-font-head); color: var(--ew-forest); letter-spacing: -0.02em; }
.ew-brand__text small { margin-top: 4px; font-size: 0.68rem; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; color: var(--ew-green-600); }
.custom-logo-link img { display: block; max-height: 56px; width: auto; }

.ew-nav { display: flex; align-items: center; gap: 8px; }
.ew-menu { display: flex; align-items: center; gap: 2px; margin: 0; padding: 0; list-style: none; }
.ew-menu > li { position: relative; display: flex; align-items: center; }
.ew-menu a {
	display: block; padding: 10px 16px; font-weight: 600; font-size: 0.98rem; color: var(--ew-ink);
	text-decoration: none; border-radius: 999px; transition: background 0.25s, color 0.25s;
}
.ew-menu a:hover,
.ew-menu li:focus-within > a,
.ew-menu .current-menu-item > a,
.ew-menu .current-menu-ancestor > a,
.ew-menu .current-page-ancestor > a { background: var(--ew-sage-100); color: var(--ew-green); }
.ew-subtoggle {
	display: grid; place-items: center; width: 28px; height: 28px; margin-left: -10px; padding: 0;
	border: 0; background: transparent; color: var(--ew-green); cursor: pointer; border-radius: 50%; font-size: 0.95rem;
}
.ew-subtoggle .ew-ico { transition: transform 0.3s var(--ew-ease); }
.ew-has-dropdown.is-open > .ew-subtoggle .ew-ico,
.ew-has-dropdown:hover > .ew-subtoggle .ew-ico { transform: rotate(180deg); }

.ew-menu .sub-menu {
	position: absolute; top: calc(100% + 6px); left: 0; min-width: 270px; margin: 0; padding: 10px; list-style: none;
	background: #fff; border-radius: 20px; border: 1px solid var(--ew-line); box-shadow: var(--ew-shadow-lg);
	opacity: 0; visibility: hidden; transform: translateY(10px);
	transition: opacity 0.25s var(--ew-ease), transform 0.25s var(--ew-ease), visibility 0.25s;
}
.ew-menu .sub-menu::before { content: ""; position: absolute; top: -12px; left: 0; right: 0; height: 12px; }
.ew-menu .sub-menu a { padding: 11px 16px; border-radius: 12px; font-weight: 500; }
.ew-menu .sub-menu a:hover { padding-left: 22px; }
.ew-has-dropdown:hover > .sub-menu,
.ew-has-dropdown:focus-within > .sub-menu,
.ew-has-dropdown.is-open > .sub-menu { opacity: 1; visibility: visible; transform: none; }
.ew-nav__cta { margin-left: 12px; white-space: nowrap; }

.ew-nav-toggle {
	display: none; width: 48px; height: 48px; padding: 0; border: 1px solid var(--ew-line); border-radius: 50%;
	background: #fff; cursor: pointer; place-items: center;
}
.ew-nav-toggle__bars { position: relative; width: 20px; height: 14px; display: block; }
.ew-nav-toggle__bars i {
	position: absolute; left: 0; width: 100%; height: 2px; border-radius: 2px; background: var(--ew-green);
	transition: transform 0.3s var(--ew-ease), opacity 0.2s, top 0.3s var(--ew-ease);
}
.ew-nav-toggle__bars i:nth-child(1) { top: 0; }
.ew-nav-toggle__bars i:nth-child(2) { top: 6px; }
.ew-nav-toggle__bars i:nth-child(3) { top: 12px; }
.ew-nav-toggle[aria-expanded="true"] i:nth-child(1) { top: 6px; transform: rotate(45deg); }
.ew-nav-toggle[aria-expanded="true"] i:nth-child(2) { opacity: 0; }
.ew-nav-toggle[aria-expanded="true"] i:nth-child(3) { top: 6px; transform: rotate(-45deg); }

/* 5. Hero --------------------------------------------------------------- */
.wp-block-cover.ew-hero,
.wp-block-cover.ew-page-hero {
	padding: 0; border-radius: 0 0 clamp(28px, 4vw, 56px) clamp(28px, 4vw, 56px); overflow: hidden; align-items: center; justify-content: flex-start;
}
.wp-block-cover.ew-hero { min-height: min(84vh, 780px); }
.wp-block-cover.ew-page-hero { min-height: 400px; }
.ew-hero .wp-block-cover__image-background { object-position: 70% 30%; animation: ewZoom 18s var(--ew-ease) both; }
.ew-page-hero .wp-block-cover__image-background { object-position: center 30%; }
.ew-hero .wp-block-cover__background.has-background-dim {
	background: linear-gradient(98deg, rgba(18, 53, 40, 0.94) 0%, rgba(18, 53, 40, 0.8) 42%, rgba(18, 53, 40, 0.18) 100%) !important; opacity: 1 !important;
}
.ew-page-hero .wp-block-cover__background.has-background-dim {
	background: linear-gradient(98deg, rgba(18, 53, 40, 0.93) 0%, rgba(18, 53, 40, 0.72) 55%, rgba(18, 53, 40, 0.35) 100%) !important; opacity: 1 !important;
}
.ew-hero .wp-block-cover__inner-container,
.ew-page-hero .wp-block-cover__inner-container {
	width: 100%; max-width: 1280px; margin: 0 auto; padding: clamp(56px, 8vw, 110px) var(--ew-pad) clamp(88px, 10vw, 130px);
}
.ew-page-hero .wp-block-cover__inner-container { padding-bottom: clamp(56px, 7vw, 96px); }
.ew-hero .wp-block-cover__inner-container > *,
.ew-page-hero .wp-block-cover__inner-container > * { max-width: 700px; margin-left: 0; margin-right: 0; animation: ewUp 0.9s var(--ew-ease) both; }
.ew-hero .wp-block-cover__inner-container > :nth-child(2),
.ew-page-hero .wp-block-cover__inner-container > :nth-child(2) { animation-delay: 0.12s; }
.ew-hero .wp-block-cover__inner-container > :nth-child(3),
.ew-page-hero .wp-block-cover__inner-container > :nth-child(3) { animation-delay: 0.24s; }
.ew-hero .wp-block-cover__inner-container > :nth-child(4),
.ew-page-hero .wp-block-cover__inner-container > :nth-child(4) { animation-delay: 0.36s; }
.ew-hero .wp-block-cover__inner-container > :nth-child(5) { animation-delay: 0.48s; }

.ew-hero__title,
.ew-page-hero__title { color: #fff; margin: 14px 0 20px; }
.ew-hero__title { font-size: clamp(2.5rem, 5.4vw, 4.5rem); line-height: 1.06; letter-spacing: -0.02em; }
.ew-hero__title em { font-style: italic; font-weight: 500; color: var(--ew-sage-300); }
.ew-hero__lead,
.ew-page-hero__lead { font-size: clamp(1.05rem, 1.6vw, 1.25rem); line-height: 1.6; color: rgba(255, 255, 255, 0.9); max-width: 600px; }
.ew-page-hero__lead { margin-bottom: 0; }
.ew-hero__actions { margin-top: 32px; }
.ew-hero__actions .wp-block-button .wp-block-button__link { padding: 17px 34px; }
.ew-page-hero .ew-hero__actions { margin-top: 28px; }

.ew-badges { display: flex; flex-wrap: wrap; gap: 12px 26px; margin: 40px 0 0; padding: 0; list-style: none; }
.ew-badges li { display: inline-flex; align-items: center; gap: 9px; color: #fff; font-weight: 600; font-size: 0.97rem; margin: 0; }
.ew-badges li::before {
	content: ""; width: 22px; height: 22px; flex: none; background: var(--ew-sage-300);
	-webkit-mask: var(--ic-check) center/20px no-repeat; mask: var(--ic-check) center/20px no-repeat;
}

/* Eyebrow */
.ew-eyebrow {
	display: inline-flex; align-items: center; gap: 12px; margin: 0 0 6px; font-size: 0.8rem; font-weight: 700;
	letter-spacing: 0.16em; text-transform: uppercase; color: var(--ew-green-600);
}
.ew-eyebrow::before { content: ""; width: 30px; height: 2px; border-radius: 2px; background: currentColor; }
.ew-eyebrow--light { color: var(--ew-sage-300); }

/* 6. Sections & layout --------------------------------------------------- */
.ew-section { padding: clamp(64px, 8vw, 112px) var(--ew-pad); }
.ew-section > * { max-width: var(--ew-container); margin-left: auto; margin-right: auto; }
.ew-section--white,
.ew-section--plain { background: var(--ew-white); }
.ew-section--sage { background: var(--ew-sage-100); }
.ew-section--beige { background: var(--ew-beige); }
.ew-section--green {
	background: radial-gradient(900px 400px at 85% -10%, rgba(141, 168, 138, 0.28), transparent 60%), linear-gradient(160deg, var(--ew-green) 0%, var(--ew-forest) 100%);
	color: rgba(255, 255, 255, 0.85);
}
.ew-section--green h2,
.ew-section--green h3 { color: #fff; }
.ew-section--tight { padding-top: 0; padding-bottom: 0; }
.ew-section--stats { position: relative; z-index: 3; margin-top: clamp(-70px, -5vw, -40px); background: transparent; }
.ew-section--stats + .ew-section { padding-top: clamp(72px, 9vw, 120px); }
.ew-section--cta-wrap { background: var(--ew-white); padding-top: clamp(40px, 6vw, 80px); padding-bottom: clamp(56px, 7vw, 96px); }
.ew-section--white + .ew-section--cta-wrap,
.ew-section--plain + .ew-section--cta-wrap { padding-top: 0; }

.ew-section-head { max-width: 720px; margin: 0 auto clamp(36px, 5vw, 60px); text-align: center; }
.ew-section-head--left { margin-left: 0; text-align: left; }
.ew-section-title { margin: 8px 0 14px; }
.ew-section-lead { font-size: 1.12rem; color: var(--ew-muted); margin-bottom: 0; }
.ew-section--green .ew-section-lead { color: rgba(255, 255, 255, 0.78); }

.ew-grid { display: grid; gap: 28px; }
.ew-grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.ew-grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.ew-grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

/* Split (image + text) */
.ew-split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 6vw, 96px); align-items: center; }
.ew-split--reverse .ew-split__media { order: 2; }
.ew-split--faq { grid-template-columns: 0.85fr 1.15fr; align-items: start; }
.ew-split--form { grid-template-columns: 1fr 1.05fr; align-items: start; }
.ew-split__media { position: relative; }
.ew-split__media::before {
	content: ""; position: absolute; left: -22px; bottom: -22px; width: 62%; height: 62%; z-index: 0;
	border-radius: var(--ew-r-lg); background: var(--ew-sand); opacity: 0.7;
}
.ew-split--reverse .ew-split__media::before { left: auto; right: -22px; }
.ew-section--sage .ew-split__media::before,
.ew-section--beige .ew-split__media::before { background: var(--ew-sage-300); }
.ew-split__media .wp-block-image { position: relative; z-index: 1; margin: 0; }
.ew-img-rounded img {
	display: block; width: 100%; aspect-ratio: 5 / 5.2; object-fit: cover; border-radius: var(--ew-r-lg); box-shadow: var(--ew-shadow-lg);
	transition: transform 0.7s var(--ew-ease);
}
.ew-split__media:hover .ew-img-rounded img { transform: scale(1.015); }
.ew-badge-card {
	position: absolute; z-index: 2; right: -22px; bottom: 36px; padding: 18px 26px; border-radius: 22px;
	background: var(--ew-green); color: #fff; box-shadow: var(--ew-shadow-lg); animation: ewFloat 6s ease-in-out infinite;
}
.ew-badge-card__num { margin: 0; font: 600 1.9rem/1.1 var(--ew-font-head); color: #fff; }
.ew-badge-card__text { margin: 2px 0 0; font-size: 0.9rem; color: var(--ew-sage-300); }

/* Checklist */
.ew-checklist { margin: 22px 0; padding: 0; list-style: none; }
.ew-checklist li { position: relative; margin: 0 0 12px; padding-left: 36px; font-weight: 500; }
.ew-checklist li::before { content: ""; position: absolute; left: 0; top: 0.18em; width: 23px; height: 23px; border-radius: 50%; background: var(--ew-green); }
.ew-checklist li::after {
	content: ""; position: absolute; left: 4px; top: calc(0.18em + 4px); width: 15px; height: 15px; background: #fff;
	-webkit-mask: var(--ic-check) center/contain no-repeat; mask: var(--ic-check) center/contain no-repeat;
}
.ew-checklist--two { display: grid; grid-template-columns: 1fr 1fr; gap: 0 28px; }

/* 7. Cards ---------------------------------------------------------------- */
.ew-card {
	position: relative; background: #fff; border-radius: var(--ew-r); border: 1px solid var(--ew-line); box-shadow: var(--ew-shadow);
	overflow: hidden; transition: transform 0.4s var(--ew-ease), box-shadow 0.4s var(--ew-ease), border-color 0.3s, background 0.3s;
}
.ew-card:hover { transform: translateY(-8px); box-shadow: var(--ew-shadow-lg); border-color: rgba(27, 74, 57, 0.22); }
.ew-card__title { margin: 0 0 10px; }
.ew-card p { color: var(--ew-muted); }
.ew-card--service .ew-card__img { margin: 0; overflow: hidden; aspect-ratio: 4 / 3; }
.ew-card--service .ew-card__img img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform 0.8s var(--ew-ease); }
.ew-card--service:hover .ew-card__img img { transform: scale(1.07); }
.ew-card__body { padding: 28px 30px 30px; }
.ew-card__body p:last-child { margin-bottom: 0; }
.ew-card__link { margin-top: 18px; }
.ew-card .ew-card__link a,
.ew-card__title a { color: var(--ew-green); font-weight: 700; text-decoration: none; }
.ew-card__title a { color: inherit; }
.ew-card .ew-card__link a::before { content: ""; position: absolute; inset: 0; z-index: 2; }
.ew-card .ew-card__link a::after {
	content: ""; display: inline-block; width: 1.05em; height: 1.05em; margin-left: 8px; vertical-align: -0.17em; background: currentColor;
	-webkit-mask: var(--ic-arrow) center/contain no-repeat; mask: var(--ic-arrow) center/contain no-repeat; transition: transform 0.3s var(--ew-ease);
}
.ew-card:hover .ew-card__link a::after { transform: translateX(6px); }

.ew-card--icon,
.ew-card--note { padding: 36px 32px 34px; }
.ew-card--icon::before,
.ew-card--note::before {
	content: ""; display: block; width: 62px; height: 62px; margin-bottom: 22px; border-radius: 20px; background: var(--ew-sage-100);
	transition: background 0.35s, transform 0.4s var(--ew-ease);
}
.ew-card--icon::after,
.ew-card--note::after {
	content: ""; position: absolute; left: 32px; top: 36px; width: 62px; height: 62px; background: var(--ew-green);
	-webkit-mask: var(--i) center/29px no-repeat; mask: var(--i) center/29px no-repeat; transition: background 0.35s, transform 0.4s var(--ew-ease);
}
.ew-card--icon:hover::before { background: var(--ew-green); transform: rotate(-6deg); }
.ew-card--icon:hover::after { background: #fff; transform: rotate(-6deg); }
.ew-card--icon p:last-child { margin-bottom: 0; }
.ew-card--note { margin-top: 26px; background: var(--ew-sage-100); box-shadow: none; }
.ew-card--note::before { background: #fff; }

.ew-card--on-dark { background: rgba(255, 255, 255, 0.06); border-color: rgba(255, 255, 255, 0.14); box-shadow: none; }
.ew-card--on-dark:hover { background: rgba(255, 255, 255, 0.11); border-color: rgba(255, 255, 255, 0.3); box-shadow: 0 24px 50px -24px rgba(0, 0, 0, 0.5); }
.ew-card--on-dark .ew-card__title { color: #fff; }
.ew-card--on-dark p { color: rgba(255, 255, 255, 0.78); }
.ew-card--on-dark::before { background: rgba(255, 255, 255, 0.12); }
.ew-card--on-dark::after { background: var(--ew-sage-300); }
.ew-card--on-dark:hover::before { background: var(--ew-sage); }
.ew-card--on-dark:hover::after { background: var(--ew-forest); }

.ew-card--post .ew-card__img { display: block; aspect-ratio: 4 / 3; overflow: hidden; }
.ew-card--post .ew-card__img img { width: 100%; height: 100%; object-fit: cover; }

/* 8. Components ---------------------------------------------------------- */
.ew-stats {
	display: grid; grid-template-columns: repeat(4, 1fr); padding: 34px 20px; background: #fff; border-radius: var(--ew-r-lg);
	box-shadow: var(--ew-shadow-lg); border: 1px solid var(--ew-line);
}
.ew-stat { padding: 6px 20px; text-align: center; }
.ew-stat + .ew-stat { border-left: 1px solid var(--ew-line); }
.ew-stat__num { margin: 0; font: 600 clamp(2rem, 3.4vw, 2.9rem)/1.1 var(--ew-font-head); color: var(--ew-green); }
.ew-stat__label { margin: 6px 0 0; font-size: 0.95rem; color: var(--ew-muted); }

.ew-steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 24px; counter-reset: ewstep; }
.ew-step {
	position: relative; counter-increment: ewstep; padding: 34px 28px 30px; background: var(--ew-beige); border-radius: var(--ew-r);
	transition: transform 0.4s var(--ew-ease), box-shadow 0.4s var(--ew-ease);
}
.ew-step:hover { transform: translateY(-6px); box-shadow: var(--ew-shadow); }
.ew-step::before { content: counter(ewstep, decimal-leading-zero); display: block; margin-bottom: 14px; font: 500 3rem/1 var(--ew-font-head); color: var(--ew-sage); }
.ew-step__title { margin-bottom: 8px; }
.ew-step p { margin: 0; color: var(--ew-muted); }
.ew-section--sage .ew-step,
.ew-section--beige .ew-step { background: #fff; }

.ew-faq__item { margin: 0 0 14px; background: var(--ew-beige); border-radius: 18px; transition: background 0.3s, box-shadow 0.3s; }
.ew-faq__item[open] { background: var(--ew-sage-100); box-shadow: var(--ew-shadow); }
.ew-faq__item summary {
	position: relative; padding: 22px 64px 22px 26px; font-weight: 700; font-size: 1.05rem; color: var(--ew-forest); cursor: pointer; list-style: none;
}
.ew-faq__item summary::-webkit-details-marker { display: none; }
.ew-faq__item summary::after {
	content: ""; position: absolute; right: 24px; top: 50%; width: 22px; height: 22px; margin-top: -11px; background: var(--ew-green);
	-webkit-mask: var(--ic-chevron) center/contain no-repeat; mask: var(--ic-chevron) center/contain no-repeat; transition: transform 0.35s var(--ew-ease);
}
.ew-faq__item[open] summary::after { transform: rotate(180deg); }
.ew-faq__item p { margin: 0; padding: 0 26px 24px; color: var(--ew-muted); animation: ewFade 0.45s var(--ew-ease); }

.ew-cta.wp-block-cover { min-height: 340px; padding: 0; border-radius: clamp(24px, 3vw, 40px); overflow: hidden; align-items: center; }
.ew-cta .wp-block-cover__background.has-background-dim { background: linear-gradient(120deg, rgba(18, 53, 40, 0.92), rgba(27, 74, 57, 0.82)) !important; opacity: 1 !important; }
.ew-cta .wp-block-cover__inner-container { max-width: 780px; margin: 0 auto; padding: clamp(48px, 7vw, 84px) 28px; text-align: center; }
.ew-cta__title { color: #fff; }
.ew-cta__text { font-size: 1.15rem; color: rgba(255, 255, 255, 0.88); }
.ew-cta__actions { justify-content: center; }

.ew-info-list { margin: 28px 0 0; padding: 0; list-style: none; }
.ew-info-list li { display: flex; align-items: flex-start; gap: 16px; margin-bottom: 18px; }
.ew-info-list__icon {
	display: grid; place-items: center; flex: none; width: 50px; height: 50px; border-radius: 16px; background: var(--ew-sage-100);
	color: var(--ew-green); font-size: 1.3rem; transition: background 0.3s, color 0.3s;
}
.ew-info-list li:hover .ew-info-list__icon { background: var(--ew-green); color: #fff; }
.ew-info-list strong { display: block; font-size: 0.82rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ew-green-600); }
.ew-info-list a { color: var(--ew-ink); font-weight: 600; text-decoration: none; }
.ew-info-list a:hover { color: var(--ew-green); text-decoration: underline; }

/* 9. Testimonials ---------------------------------------------------------- */
.ew-testimonials { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 26px; }
.ew-quote {
	position: relative; display: flex; flex-direction: column; margin: 0; padding: 34px 32px 30px; background: #fff; border-radius: var(--ew-r);
	border: 1px solid var(--ew-line); box-shadow: var(--ew-shadow); transition: transform 0.4s var(--ew-ease), box-shadow 0.4s var(--ew-ease);
}
.ew-quote:hover { transform: translateY(-6px); box-shadow: var(--ew-shadow-lg); }
.ew-quote::after {
	content: ""; position: absolute; top: 26px; right: 28px; width: 46px; height: 46px; background: var(--ew-sage-300); opacity: 0.6;
	-webkit-mask: var(--ic-quote) center/contain no-repeat; mask: var(--ic-quote) center/contain no-repeat;
}
.ew-quote__stars { display: flex; gap: 3px; margin-bottom: 16px; color: var(--ew-gold); font-size: 1.1rem; }
.ew-quote__text { flex: 1; margin: 0 0 24px; font-size: 1.05rem; line-height: 1.7; color: var(--ew-ink); }
.ew-quote__who { display: flex; align-items: center; gap: 14px; }
.ew-quote__who strong { display: block; color: var(--ew-forest); line-height: 1.2; }
.ew-quote__who small { color: var(--ew-muted); font-size: 0.88rem; }
.ew-quote__avatar { width: 50px; height: 50px; flex: none; border-radius: 50%; object-fit: cover; }
.ew-quote__avatar--initial { display: grid; place-items: center; background: var(--ew-green); color: #fff; font: 600 1.2rem/1 var(--ew-font-head); }

.ew-slider { position: relative; }
.ew-slider__track {
	display: flex; gap: 26px; padding: 10px 4px 34px; margin: -10px -4px 0; overflow-x: auto; scroll-snap-type: x mandatory;
	scroll-behavior: smooth; scrollbar-width: none; -webkit-overflow-scrolling: touch;
}
.ew-slider__track::-webkit-scrollbar { display: none; }
.ew-slider .ew-quote { flex: 0 0 calc((100% - 52px) / 3); scroll-snap-align: start; }
.ew-slider__nav { display: flex; justify-content: center; gap: 12px; }
.ew-slider__btn {
	display: grid; place-items: center; width: 52px; height: 52px; padding: 0; border-radius: 50%; border: 2px solid var(--ew-green);
	background: transparent; color: var(--ew-green); font-size: 1.3rem; cursor: pointer; transition: background 0.25s, color 0.25s, transform 0.25s var(--ew-ease), opacity 0.25s;
}
.ew-slider__btn:hover:not(:disabled) { background: var(--ew-green); color: #fff; transform: translateY(-2px); }
.ew-slider__btn:disabled { opacity: 0.35; cursor: default; }

/* 10. Forms ---------------------------------------------------------------- */
.ew-form-card { padding: clamp(28px, 4vw, 44px); background: #fff; border-radius: var(--ew-r-lg); border: 1px solid var(--ew-line); box-shadow: var(--ew-shadow-lg); }
.ew-form-card__title { margin-bottom: 22px; }
.ew-form__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 18px; }
.ew-field { margin: 0 0 18px; }
.ew-field--wide { grid-column: 1 / -1; }
.ew-field label { display: block; margin-bottom: 6px; font-size: 0.92rem; font-weight: 700; color: var(--ew-forest); }
.ew-field .req { color: #b3402f; }
.ew-field input[type="text"],
.ew-field input[type="email"],
.ew-field input[type="tel"],
.ew-field select,
.ew-field textarea,
.ew-search input[type="search"] {
	width: 100%; padding: 14px 16px; font: inherit; color: var(--ew-ink); background: #fbfcfa; border: 1.5px solid #d3ddd5; border-radius: var(--ew-r-sm);
	transition: border-color 0.2s, box-shadow 0.2s, background 0.2s; appearance: none; -webkit-appearance: none;
}
.ew-field select {
	padding-right: 44px; background-image: var(--ic-chevron); background-repeat: no-repeat; background-position: right 14px center; background-size: 18px;
}
.ew-field textarea { min-height: 120px; resize: vertical; }
.ew-field input:focus,
.ew-field select:focus,
.ew-field textarea:focus,
.ew-search input:focus { outline: 0; border-color: var(--ew-green); background: #fff; box-shadow: 0 0 0 4px rgba(141, 168, 138, 0.35); }
.ew-field .is-invalid { border-color: #b3402f; background: #fff8f6; }
.ew-field__error { display: block; margin-top: 6px; font-size: 0.86rem; color: #b3402f; font-weight: 600; }
.ew-field--check { display: flex; align-items: flex-start; gap: 12px; }
.ew-field--check input { flex: none; width: 21px; height: 21px; margin-top: 3px; accent-color: var(--ew-green); }
.ew-field--check label { margin: 0; font-weight: 500; font-size: 0.9rem; color: var(--ew-muted); }
.ew-form__hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.ew-form__status { margin-bottom: 20px; padding: 15px 18px; border-radius: var(--ew-r-sm); background: var(--ew-sage-100); color: var(--ew-forest); font-weight: 600; border-left: 5px solid var(--ew-green); }
.ew-form__status.is-error { background: #fbeae7; color: #8a2d1f; border-left-color: #b3402f; }
.ew-form__actions { margin: 6px 0 0; }
.ew-form__actions .ew-btn { width: 100%; padding: 17px 30px; }
.ew-form.is-sending .ew-btn { opacity: 0.7; pointer-events: none; }
.ew-form.is-done .ew-form__grid,
.ew-form.is-done .ew-field--check,
.ew-form.is-done .ew-form__actions { display: none; }
.ew-search { display: flex; gap: 10px; max-width: 520px; margin: 20px auto 0; }

/* 11. Footer ---------------------------------------------------------------- */
.ew-footer { margin-top: 0; background: var(--ew-forest); color: rgba(255, 255, 255, 0.76); font-size: 0.98rem; }
.ew-footer a { color: rgba(255, 255, 255, 0.85); text-decoration: none; }
.ew-footer a:hover { color: #fff; }
.ew-footer__main {
	max-width: 1280px; margin: 0 auto; padding: clamp(56px, 7vw, 88px) var(--ew-pad) 0;
	display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.4fr; gap: clamp(32px, 4vw, 60px);
}
.ew-footer .ew-brand { color: var(--ew-sage); }
.ew-footer .ew-brand__text strong { color: #fff; }
.ew-footer .ew-brand__text small { color: var(--ew-sage-300); }
.ew-footer__col--brand p { margin: 20px 0 22px; max-width: 360px; }
.ew-footer__title { margin: 0 0 20px; font: 600 1.2rem/1.2 var(--ew-font-head); color: #fff; }
.ew-footer__menu,
.ew-footer__contact,
.ew-footer__legal { margin: 0; padding: 0; list-style: none; }
.ew-footer__menu li { margin-bottom: 11px; }
.ew-footer__menu a { display: inline-block; transition: transform 0.25s var(--ew-ease), color 0.2s; }
.ew-footer__menu a:hover { transform: translateX(5px); }
.ew-footer__contact li { display: flex; gap: 12px; margin-bottom: 14px; }
.ew-footer__contact .ew-ico { margin-top: 0.3em; color: var(--ew-sage); }
.ew-footer .ew-social a { width: 42px; height: 42px; font-size: 1.1rem; }
.ew-footer__bar {
	width: calc(100% - 2 * var(--ew-pad)); max-width: 1232px; margin: clamp(44px, 6vw, 72px) auto 0; padding: 24px 0 28px; border-top: 1px solid rgba(255, 255, 255, 0.12);
	display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 24px; font-size: 0.9rem;
}
.ew-footer__bar p { margin: 0; }
.ew-footer__legal { display: flex; gap: 22px; }

.ew-to-top {
	position: fixed; right: 24px; bottom: 24px; z-index: 90; display: grid; place-items: center; width: 52px; height: 52px; padding: 0;
	border: 0; border-radius: 50%; background: var(--ew-green); color: #fff; font-size: 1.4rem; cursor: pointer; box-shadow: var(--ew-shadow-lg);
	opacity: 0; transform: translateY(16px); transition: opacity 0.3s, transform 0.3s var(--ew-ease), background 0.25s;
}
.ew-to-top[hidden] { display: none; }
.ew-to-top.is-visible { opacity: 1; transform: none; }
.ew-to-top:hover { background: var(--ew-gold); transform: translateY(-4px); }

/* 12. Pages & misc ------------------------------------------------------------- */
.ew-title-banner { padding: clamp(56px, 8vw, 100px) var(--ew-pad); text-align: center; background: linear-gradient(160deg, var(--ew-green), var(--ew-forest)); border-radius: 0 0 40px 40px; }
.ew-title-banner h1 { max-width: 900px; margin: 10px auto 0; color: #fff; }
.ew-title-banner .ew-eyebrow { color: var(--ew-sage-300); }
.ew-container { max-width: var(--ew-container); margin: 0 auto; }
.ew-entry--plain { max-width: 820px; margin: clamp(40px, 6vw, 72px) auto; padding: 0 var(--ew-pad); }
.ew-entry__thumb { width: 100%; border-radius: var(--ew-r); margin-bottom: 32px; }
.ew-prose { max-width: 820px !important; }
.ew-prose h2 { margin: 2.2em 0 0.5em; font-size: clamp(1.4rem, 2.4vw, 1.8rem); }
.ew-prose h2:first-of-type { margin-top: 1.4em; }
.ew-prose ul { padding-left: 1.3em; }
.ew-prose li { margin-bottom: 0.5em; }
.ew-note { padding: 14px 18px; background: var(--ew-sage-100); border-left: 4px solid var(--ew-gold); border-radius: 12px; font-size: 0.95rem; }
.ew-404__actions { display: flex; justify-content: center; gap: 14px; flex-wrap: wrap; margin-top: 28px; }
.ew-entry--plain img { border-radius: var(--ew-r-sm); }
.pagination, .navigation.pagination { margin-top: 40px; text-align: center; }
.page-numbers { display: inline-block; padding: 8px 15px; border-radius: 999px; text-decoration: none; }
.page-numbers.current, .page-numbers:hover { background: var(--ew-green); color: #fff; }

/* 13. Motion --------------------------------------------------------------------- */
@keyframes ewUp { from { opacity: 0; transform: translateY(28px); } to { opacity: 1; transform: none; } }
@keyframes ewFade { from { opacity: 0; } to { opacity: 1; } }
@keyframes ewZoom { from { transform: scale(1.1); } to { transform: scale(1); } }
@keyframes ewFloat { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-9px); } }

.js .ew-reveal { opacity: 0; transform: translateY(30px); transition: opacity 0.9s var(--ew-ease), transform 0.9s var(--ew-ease); transition-delay: var(--ew-delay, 0ms); }
.js .ew-reveal.is-visible { opacity: 1; transform: none; }
/* Keep hover transitions snappy once revealed */
.js .ew-card.ew-reveal.is-visible,
.js .ew-quote.ew-reveal.is-visible,
.js .ew-step.ew-reveal.is-visible { transition: opacity 0.9s var(--ew-ease), transform 0.4s var(--ew-ease), box-shadow 0.4s var(--ew-ease), border-color 0.3s, background 0.3s; transition-delay: 0ms; }

@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	*, *::before, *::after { animation: none !important; transition-duration: 0.01ms !important; transition-delay: 0ms !important; scroll-behavior: auto !important; }
	.js .ew-reveal { opacity: 1; transform: none; }
}

/* 14. Responsive ------------------------------------------------------------------- */
@media (max-width: 1100px) {
	.ew-grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.ew-footer__main { grid-template-columns: 1fr 1fr; }
	.ew-badge-card { right: 12px; }
}

@media (max-width: 1024px) {
	.ew-nav-toggle { display: grid; }
	.ew-nav {
		position: absolute; top: 100%; left: 0; right: 0; max-height: calc(100vh - 84px); overflow-y: auto; flex-direction: column; align-items: stretch;
		gap: 14px; padding: 14px var(--ew-pad) 28px; background: #fff; border-bottom: 1px solid var(--ew-line); box-shadow: 0 30px 40px -24px rgba(18, 53, 40, 0.35);
		opacity: 0; visibility: hidden; transform: translateY(-10px); transition: opacity 0.3s var(--ew-ease), transform 0.3s var(--ew-ease), visibility 0.3s;
	}
	.ew-nav.is-open { opacity: 1; visibility: visible; transform: none; }
	.ew-menu { flex-direction: column; align-items: stretch; gap: 0; }
	.ew-menu > li { flex-wrap: wrap; border-bottom: 1px solid var(--ew-line); }
	.ew-menu a { flex: 1; padding: 15px 8px; border-radius: 10px; font-size: 1.05rem; }
	.ew-subtoggle { width: 44px; height: 44px; margin: 0; font-size: 1.1rem; }
	.ew-menu .sub-menu {
		position: static; width: 100%; min-width: 0; margin: 0 0 12px; padding: 4px 0 4px 14px; border: 0; border-left: 2px solid var(--ew-sage-300); border-radius: 0; box-shadow: none;
		opacity: 1; visibility: visible; transform: none; display: none;
	}
	.ew-menu .sub-menu::before { display: none; }
	.ew-has-dropdown:hover > .sub-menu,
	.ew-has-dropdown:focus-within > .sub-menu { display: none; }
	.ew-has-dropdown.is-open > .sub-menu { display: block; }
	.ew-has-dropdown:hover > .ew-subtoggle .ew-ico { transform: none; }
	.ew-has-dropdown.is-open > .ew-subtoggle .ew-ico { transform: rotate(180deg); }
	.ew-nav__cta { margin: 6px 0 0; text-align: center; }

	.ew-grid--3,
	.ew-testimonials { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.ew-slider .ew-quote { flex-basis: calc((100% - 26px) / 2); }
	.ew-split,
	.ew-split--faq,
	.ew-split--form { grid-template-columns: 1fr; gap: 56px; }
	.ew-split--reverse .ew-split__media { order: 0; }
	.ew-split__media { max-width: 640px; }
	.ew-img-rounded img { aspect-ratio: 4 / 3; }
	.ew-stats { grid-template-columns: repeat(2, 1fr); row-gap: 22px; }
	.ew-stat:nth-child(3) { border-left: 0; }
	.ew-hero .wp-block-cover__background.has-background-dim {
		background: linear-gradient(180deg, rgba(18, 53, 40, 0.9) 0%, rgba(18, 53, 40, 0.78) 100%) !important;
	}
}

@media (max-width: 767px) {
	:root { --ew-pad: 20px; }
	body { font-size: 16.5px; }
	.ew-topbar__hide-sm { display: none; }
	.ew-topbar__list li:first-child { display: none; }
	.ew-topbar__inner { justify-content: center; }
	.ew-social--top { display: none; }
	.ew-header__inner { min-height: 72px; }
	.ew-brand__text strong { font-size: 1.4rem; }
	.ew-brand__text small { font-size: 0.6rem; }
	.ew-nav { max-height: calc(100vh - 72px); }
	.wp-block-cover.ew-hero { min-height: 0; }
	.ew-hero__actions .wp-block-button,
	.ew-cta__actions .wp-block-button { width: 100%; }
	.ew-hero__actions .wp-block-button__link,
	.ew-cta__actions .wp-block-button__link { width: 100%; }
	.ew-badges { gap: 10px 18px; margin-top: 30px; }
	.ew-grid--2,
	.ew-grid--3,
	.ew-grid--4,
	.ew-testimonials,
	.ew-form__grid,
	.ew-checklist--two { grid-template-columns: 1fr; }
	.ew-slider .ew-quote { flex-basis: 88%; }
	.ew-stats { padding: 24px 8px; }
	.ew-stat { padding: 6px 8px; }
	.ew-stat + .ew-stat { border-left: 0; }
	.ew-card__body { padding: 24px; }
	.ew-card--icon, .ew-card--note { padding: 30px 26px; }
	.ew-card--icon::after, .ew-card--note::after { left: 26px; top: 30px; }
	.ew-footer__main { grid-template-columns: 1fr; }
	.ew-footer__bar { flex-direction: column; align-items: flex-start; }
	.ew-footer__legal { flex-wrap: wrap; gap: 8px 18px; }
	.ew-badge-card { right: 8px; bottom: 16px; padding: 14px 20px; }
	.ew-split__media::before { left: -10px; bottom: -12px; }
	.ew-split--reverse .ew-split__media::before { right: -10px; }
	.ew-to-top { right: 16px; bottom: 16px; width: 48px; height: 48px; }
	.ew-wp-buttons .wp-block-button { width: 100%; }
}
