/* Unique Edge design layer (Cape Consulting).
   Brand tokens first: swap these values when Michaela's branding board arrives and the whole site follows. */
:root {
  --uem-navy: #001147;
  --uem-ink: #203348;
  --uem-text: #33415c;
  --uem-blue: #2976bc;
  --uem-blue-dark: #1a4975;
  --uem-blue-text: #1c5a96;
  --uem-sky: #84abd2;
  --uem-mist: #e0ecf5;
  --uem-paper: #f5f8fb;
  --uem-green: #96ca3d;
  --uem-green-dark: #4e7a12;
  --uem-white: #ffffff;
  --uem-font-display: 'Cinzel Decorative', Georgia, serif;
  --uem-font-hero: 'Lato', 'Helvetica Neue', Arial, sans-serif;
  --uem-font-body: 'Lato', 'Helvetica Neue', Arial, sans-serif;
  --uem-font-serif: 'Lora', Georgia, serif;
  --uem-radius: 12px;
  --uem-shadow: 0 4px 16px rgba(0, 17, 71, .08);
  --uem-shadow-hover: 0 12px 28px rgba(0, 17, 71, .14);
  --uem-gap: 24px;
  --uem-section-y: 88px;
}
@media (max-width: 980px) { :root { --uem-section-y: 68px; } }
@media (max-width: 600px) { :root { --uem-section-y: 56px; --uem-gap: 16px; } }

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

/* ---------- Shared building blocks ---------- */
.uem-wrap { width: 90%; max-width: 1180px; margin: 0 auto; box-sizing: border-box; }
.uem-wrap--narrow { max-width: 820px; }
.uem-sec { padding: var(--uem-section-y) 0; font-family: var(--uem-font-body); color: var(--uem-text); }
.uem-sec--mist { background: var(--uem-mist); }
.uem-sec--paper { background: var(--uem-paper); }
.uem-sec--navy { background: var(--uem-navy); color: #dfe7f2; }
.uem-sec--sky { background: var(--uem-sky); }
.uem-sec p { font-size: 18px; line-height: 1.65; margin: 0 0 1em; padding: 0; }
.uem-eyebrow { display: inline-block; font-family: var(--uem-font-body); font-size: 14px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--uem-blue); margin: 0 0 12px; }
.uem-h2 { font-family: var(--uem-font-display); font-weight: 400; font-size: 44px; line-height: 1.2; color: var(--uem-navy); margin: 0 0 16px; padding: 0; }
.uem-sec--navy .uem-h2 { color: var(--uem-white); }
.uem-lede { font-family: var(--uem-font-serif); font-size: 19px !important; line-height: 1.6; color: var(--uem-ink); max-width: 720px; }
.uem-center { text-align: center; }
.uem-center .uem-lede { margin-left: auto; margin-right: auto; }
.uem-head { margin-bottom: 40px; }
@media (max-width: 980px) { .uem-h2 { font-size: 36px; } }
@media (max-width: 600px) { .uem-h2 { font-size: 30px; } .uem-sec p { font-size: 17px; } .uem-lede { font-size: 17px !important; } .uem-head { margin-bottom: 28px; } }

/* Buttons */
.uem-btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 50px; padding: 12px 26px; border-radius: 8px; font-family: var(--uem-font-body); font-weight: 700; font-size: 17px; line-height: 1.2; text-decoration: none !important; border: 2px solid transparent; cursor: pointer; transition: background-color .2s ease, color .2s ease, border-color .2s ease, transform .2s ease, box-shadow .2s ease; box-sizing: border-box; }
.uem-btn--primary { background: var(--uem-blue); color: var(--uem-white) !important; }
.uem-btn--primary:hover, .uem-btn--primary:focus-visible { background: var(--uem-blue-dark); }
.uem-btn--green { background: var(--uem-green); color: var(--uem-navy) !important; }
.uem-btn--green:hover, .uem-btn--green:focus-visible { background: #85b52f; }
.uem-btn--ghost { background: rgba(255, 255, 255, .08); color: var(--uem-white) !important; border-color: rgba(255, 255, 255, .85); }
.uem-btn--ghost:hover, .uem-btn--ghost:focus-visible { background: var(--uem-white); color: var(--uem-navy) !important; }
.uem-btn--outline { background: transparent; color: var(--uem-blue) !important; border-color: var(--uem-blue); }
.uem-btn--outline:hover, .uem-btn--outline:focus-visible { background: var(--uem-blue); color: var(--uem-white) !important; }
.uem-btn:focus-visible, .uem-card:focus-within, .uem-prop:focus-within { outline: 3px solid var(--uem-green); outline-offset: 3px; }
.uem-btns { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 28px; }
.uem-center .uem-btns { justify-content: center; }
.uem-btn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; }
@media (max-width: 600px) { .uem-btns .uem-btn { width: 100%; } }

/* ---------- Header (Phase 2) ---------- */
body.uem-v2 #main-header { box-shadow: 0 1px 0 rgba(0, 17, 71, .08); }
body.uem-v2 #logo { max-height: 78% !important; }
@media (min-width: 981px) { body.uem-v2 #main-header .logo_container { width: auto; } }
body.uem-v2 #top-menu li a { font-family: var(--uem-font-body); font-weight: 700; font-size: 15px; color: var(--uem-ink); }
body.uem-v2 #top-menu li.current-menu-item > a, body.uem-v2 #top-menu li a:hover { color: var(--uem-blue) !important; opacity: 1; }
body.uem-v2 #top-menu li { padding-right: 18px; }
@media (min-width: 981px) { body.uem-v2 #main-header .container { width: 92%; max-width: 1240px; } }
@media (max-width: 980px) { body.uem-v2 #logo { max-height: 64px !important; } }
body.uem-v2 .et_mobile_menu li a { font-family: var(--uem-font-body); font-weight: 700; color: var(--uem-ink); padding: 12px 5%; }
body.uem-v2 .et_mobile_menu .uem-book-direct a { color: var(--uem-navy) !important; }

/* ---------- Hero ---------- */
.uem-hero { position: relative; min-height: 640px; display: flex; align-items: center; overflow: hidden; background: var(--uem-navy); color: var(--uem-white); isolation: isolate; }
.uem-hero__media { position: absolute; inset: 0; z-index: -2; }
.uem-hero__media img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 55%; display: block; transform-origin: 60% 50%; }
@media (prefers-reduced-motion: no-preference) { .uem-hero__media img { animation: uem-drift 24s ease-in-out infinite alternate; } }
@keyframes uem-drift { from { transform: scale(1); } to { transform: scale(1.06); } }
.uem-hero::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(0, 17, 71, .86) 0%, rgba(0, 17, 71, .62) 46%, rgba(0, 17, 71, .18) 100%); }
.uem-hero__inner { width: 90%; max-width: 1180px; margin: 0 auto; padding: 96px 0; }
.uem-hero__copy { max-width: 640px; }
.uem-hero .uem-eyebrow { color: var(--uem-green); }
.uem-hero h1 { font-family: var(--uem-font-hero); font-weight: 900; font-size: 56px; line-height: 1.08; letter-spacing: -.015em; color: var(--uem-white); margin: 0 0 20px; padding: 0; }
.uem-hero p { font-size: 20px; line-height: 1.6; color: #e6edf6; margin: 0; padding: 0; }
.uem-hero__trust { display: flex; flex-wrap: wrap; gap: 8px 18px; margin-top: 30px; font-size: 15px; font-weight: 700; color: #d8e3f0; list-style: none; padding: 0; }
.uem-hero__trust li { display: inline-flex; align-items: center; gap: 8px; list-style: none; padding: 0; }
.uem-hero__trust svg { width: 16px; height: 16px; fill: var(--uem-green); }
.uem-pagehero { background: linear-gradient(120deg, var(--uem-navy) 0%, #0b2a6b 60%, var(--uem-blue-dark) 100%); color: var(--uem-white); padding: 88px 0 80px; }
.uem-pagehero h1 { font-family: var(--uem-font-hero); font-weight: 900; font-size: 48px; line-height: 1.1; letter-spacing: -.01em; color: var(--uem-white); margin: 0 0 16px; padding: 0; max-width: 820px; }
.uem-pagehero p { font-size: 20px; line-height: 1.6; color: #dfe7f2; max-width: 720px; margin: 0; padding: 0; }
.uem-pagehero .uem-eyebrow { color: var(--uem-green); }
@media (max-width: 980px) { .uem-hero { min-height: 560px; } .uem-hero h1 { font-size: 44px; } .uem-pagehero h1 { font-size: 40px; } }
@media (max-width: 600px) {
  .uem-hero { min-height: 0; }
  .uem-hero__inner { padding: 64px 0 56px; }
  .uem-hero::after { background: linear-gradient(180deg, rgba(0, 17, 71, .72) 0%, rgba(0, 17, 71, .84) 100%); }
  .uem-hero h1 { font-size: 34px; }
  .uem-hero p, .uem-pagehero p { font-size: 18px; }
  .uem-pagehero { padding: 60px 0 52px; }
  .uem-pagehero h1 { font-size: 32px; }
}

/* ---------- A1: legacy "What we can do for you" list (until cards replace it) ---------- */
.uem-svc-head h1, .uem-svc-head h2 { margin-bottom: 0; padding-bottom: 0; }
.uem-svc-list ul { margin: 0; padding: 0 0 0 1.1em; }
.uem-svc-list li { margin: 0 0 .35em; color: var(--uem-ink); font-weight: 400; }
.uem-svc-list li a { color: var(--uem-ink); }
.uem-svc-list li a:hover, .uem-svc-list li a:focus-visible { color: var(--uem-blue); text-decoration: underline; }

/* ---------- Proof in the numbers ---------- */
.uem-proof { background: var(--uem-sky); padding: 80px 0; }
.uem-proof .uem-wrap { width: 92%; max-width: 1240px; margin: 0 auto; text-align: center; }
.uem-proof__title { font-family: var(--uem-font-display); font-size: 48px; line-height: 1.2; color: var(--uem-navy); margin: 0 0 16px; padding: 0; font-weight: 400; }
.uem-proof__intro { font-family: var(--uem-font-serif); font-size: 18px; line-height: 1.6; color: var(--uem-navy); max-width: 720px; margin: 0 auto 36px; padding: 0; }
.uem-stats { list-style: none; margin: 0 auto; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 24px; }
.uem-stat { list-style: none; margin: 0; padding: 32px 14px 28px; background: var(--uem-white); border-radius: var(--uem-radius); box-shadow: var(--uem-shadow); flex: 0 0 calc((100% - 4 * 24px) / 5); box-sizing: border-box; display: flex; flex-direction: column; align-items: center; justify-content: flex-start; position: relative; overflow: hidden; }
.uem-stat::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 4px; background: var(--uem-green); }
.uem-stat__num { display: block; font-family: var(--uem-font-body); font-weight: 900; font-size: 60px; line-height: 1; color: var(--uem-navy); font-variant-numeric: tabular-nums; letter-spacing: -.01em; }
.uem-stat__label { display: block; margin-top: 12px; font-family: var(--uem-font-body); font-size: 14px; line-height: 1.3; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--uem-ink); }
@media (min-width: 1100px) { .uem-stat__label { white-space: nowrap; } }
.uem-badges { margin: 36px 0 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
.uem-badge { display: inline-flex; align-items: center; gap: 8px; background: var(--uem-navy); color: var(--uem-white); font-family: var(--uem-font-body); font-weight: 700; font-size: 20px; line-height: 1.2; padding: 12px 22px; border-radius: 999px; }
.uem-badge svg { width: 20px; height: 20px; flex: 0 0 auto; fill: var(--uem-green); }
.uem-proof__source { font-family: var(--uem-font-body); font-size: 17px; line-height: 1.55; font-weight: 700; color: var(--uem-navy); max-width: 760px; margin: 22px auto 0; padding: 0; }
.uem-proof__source a { color: var(--uem-navy); text-decoration: underline; text-underline-offset: 3px; }
@media (max-width: 980px) {
  .uem-proof { padding: 64px 0; }
  .uem-proof__title { font-size: 40px; }
  .uem-stat { flex-basis: calc((100% - 2 * 24px) / 3); }
}
@media (max-width: 600px) {
  .uem-proof { padding: 56px 0; }
  .uem-proof__title { font-size: 32px; }
  .uem-proof__intro { font-size: 17px; margin-bottom: 28px; }
  .uem-stats { gap: 14px; }
  .uem-stat { flex-basis: calc((100% - 14px) / 2); padding: 24px 10px 20px; }
  .uem-stat__num { font-size: 40px; }
  .uem-stat__label { font-size: 13px; letter-spacing: .05em; }
  .uem-badge { font-size: 17px; padding: 10px 18px; }
  .uem-proof__source { font-size: 16px; }
}

/* ---------- Service cards ---------- */
.uem-cards { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--uem-gap); list-style: none; margin: 0; padding: 0; }
.uem-cards--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.uem-card { list-style: none; position: relative; display: flex; flex-direction: column; background: var(--uem-white); border-radius: var(--uem-radius); box-shadow: var(--uem-shadow); padding: 30px 26px 26px; border: 1px solid rgba(0, 17, 71, .06); transition: transform .25s ease, box-shadow .25s ease; }
.uem-card:hover { transform: translateY(-4px); box-shadow: var(--uem-shadow-hover); }
.uem-card__icon { width: 56px; height: 56px; border-radius: 14px; background: var(--uem-mist); display: grid; place-items: center; margin-bottom: 20px; }
.uem-card__icon svg { width: 28px; height: 28px; fill: none; stroke: var(--uem-blue); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.uem-card h3 { font-family: var(--uem-font-body); font-size: 21px; font-weight: 900; line-height: 1.25; color: var(--uem-navy); margin: 0 0 10px; padding: 0; }
.uem-card p { font-size: 16px !important; line-height: 1.6; color: var(--uem-text); margin: 0 0 18px !important; flex: 1 1 auto; }
.uem-card__link { font-weight: 700; font-size: 16px; color: var(--uem-blue) !important; text-decoration: none; display: inline-flex; align-items: center; gap: 6px; }
.uem-card__link::after { content: ""; position: absolute; inset: 0; border-radius: var(--uem-radius); }
.uem-card__link span { transition: transform .2s ease; }
.uem-card:hover .uem-card__link span { transform: translateX(4px); }
@media (max-width: 1100px) { .uem-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 980px) { .uem-cards--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .uem-cards, .uem-cards--3 { grid-template-columns: 1fr; } .uem-card { padding: 24px 22px 22px; } }

/* Check list */
.uem-checks { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 32px; }
.uem-checks li { list-style: none; position: relative; padding: 0 0 0 34px; font-size: 17px; line-height: 1.55; color: var(--uem-text); }
.uem-checks li::before { content: ""; position: absolute; left: 0; top: 3px; width: 22px; height: 22px; border-radius: 50%; background: var(--uem-green) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23001147' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5 9-10'/%3E%3C/svg%3E") center / 14px no-repeat; }
@media (max-width: 760px) { .uem-checks { grid-template-columns: 1fr; } }

/* Split layout */
.uem-split { display: grid; grid-template-columns: 1.05fr .95fr; gap: 56px; align-items: center; }
.uem-split--top { align-items: start; }
.uem-split img { width: 100%; height: auto; border-radius: var(--uem-radius); box-shadow: var(--uem-shadow); display: block; }
@media (max-width: 980px) { .uem-split { grid-template-columns: 1fr; gap: 32px; } }

/* Facts row */
.uem-facts { list-style: none; margin: 28px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.uem-facts li { list-style: none; background: var(--uem-mist); color: var(--uem-navy); font-weight: 700; font-size: 15px; padding: 8px 14px; border-radius: 999px; }

/* Steps */
.uem-steps { counter-reset: uemstep; list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--uem-gap); }
.uem-steps > li { list-style: none; counter-increment: uemstep; background: var(--uem-white); border-radius: var(--uem-radius); box-shadow: var(--uem-shadow); padding: 30px 26px; position: relative; }
.uem-steps > li::before { content: counter(uemstep); display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--uem-navy); color: var(--uem-white); font-weight: 900; font-size: 18px; margin-bottom: 16px; }
.uem-steps h3 { font-family: var(--uem-font-body); font-size: 20px; font-weight: 900; color: var(--uem-navy); margin: 0 0 10px; padding: 0; line-height: 1.3; }
.uem-steps p { font-size: 16px !important; margin: 0 0 .8em !important; }
.uem-steps p:last-child { margin-bottom: 0 !important; }
@media (max-width: 980px) { .uem-steps { grid-template-columns: 1fr; } }

/* Chips */
.uem-chips { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
.uem-chips li { list-style: none; background: var(--uem-white); border: 1px solid rgba(0, 17, 71, .12); color: var(--uem-ink); font-weight: 700; font-size: 15px; padding: 9px 16px; border-radius: 999px; }

/* ---------- Testimonials ---------- */
.uem-carousel { position: relative; max-width: 900px; margin: 0 auto; }
.uem-carousel__viewport { overflow: hidden; border-radius: var(--uem-radius); }
.uem-carousel__track { display: flex; transition: transform .5s ease; will-change: transform; }
@media (prefers-reduced-motion: reduce) { .uem-carousel__track { transition: none; } }
.uem-quote { flex: 0 0 100%; box-sizing: border-box; margin: 0; padding: 44px 56px 40px; background: var(--uem-white); box-shadow: var(--uem-shadow); border-radius: var(--uem-radius); text-align: left; }
.uem-quote__mark { width: 42px; height: 42px; fill: var(--uem-green); margin-bottom: 14px; display: block; }
.uem-quote blockquote { margin: 0; padding: 0; border: 0; font-family: var(--uem-font-serif); font-size: 21px; line-height: 1.6; color: var(--uem-ink); }
.uem-quote blockquote p { font-size: inherit !important; line-height: inherit; margin: 0 0 .8em !important; }
.uem-quote figcaption { margin-top: 20px; font-size: 16px; color: var(--uem-text); }
.uem-quote figcaption strong { display: block; color: var(--uem-navy); font-size: 17px; }
.uem-carousel__nav { display: flex; align-items: center; justify-content: center; gap: 18px; margin-top: 24px; }
.uem-carousel__btn { width: 46px; height: 46px; border-radius: 50%; border: 2px solid var(--uem-navy); background: var(--uem-white); color: var(--uem-navy); display: grid; place-items: center; cursor: pointer; padding: 0; transition: background .2s, color .2s; }
.uem-carousel__btn:hover, .uem-carousel__btn:focus-visible { background: var(--uem-navy); color: var(--uem-white); }
.uem-carousel__btn svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.uem-carousel__dots { display: flex; gap: 8px; }
.uem-carousel__dot { width: 11px; height: 11px; border-radius: 50%; border: 0; padding: 0; background: rgba(0, 17, 71, .25); cursor: pointer; }
.uem-carousel__dot[aria-current="true"] { background: var(--uem-navy); width: 28px; border-radius: 6px; }
.uem-carousel__more { text-align: center; margin-top: 18px; }
.uem-carousel__more a { font-weight: 700; color: var(--uem-blue); }
@media (max-width: 600px) { .uem-quote { padding: 30px 24px 28px; } .uem-quote blockquote { font-size: 18px; } }
.uem-quotes { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--uem-gap); }
.uem-quotes .uem-quote { padding: 34px 32px 30px; }
.uem-quotes .uem-quote blockquote { font-size: 17px; }
.uem-quote--wide { grid-column: 1 / -1; }
@media (max-width: 860px) { .uem-quotes { grid-template-columns: 1fr; } }

/* ---------- Property cards ---------- */
.uem-props { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--uem-gap); list-style: none; margin: 0; padding: 0; }
.uem-prop { list-style: none; position: relative; background: var(--uem-white); border-radius: var(--uem-radius); box-shadow: var(--uem-shadow); overflow: hidden; display: flex; flex-direction: column; transition: transform .25s ease, box-shadow .25s ease; }
.uem-prop:hover { transform: translateY(-4px); box-shadow: var(--uem-shadow-hover); }
.uem-prop__img { aspect-ratio: 4 / 3; overflow: hidden; background: var(--uem-mist); }
.uem-prop__img img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .5s ease; }
.uem-prop:hover .uem-prop__img img { transform: scale(1.04); }
.uem-prop__body { padding: 20px 22px 22px; display: flex; flex-direction: column; flex: 1 1 auto; }
.uem-prop__town { font-size: 13px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--uem-blue); margin: 0 0 6px; }
.uem-prop h3 { font-family: var(--uem-font-body); font-size: 19px; font-weight: 900; line-height: 1.3; color: var(--uem-navy); margin: 0 0 8px; padding: 0; }
.uem-prop__meta { font-size: 15px; color: var(--uem-text); margin: 0 0 16px; }
.uem-prop a { margin-top: auto; font-weight: 700; color: var(--uem-blue) !important; text-decoration: none; }
.uem-prop a::after { content: ""; position: absolute; inset: 0; }
@media (prefers-reduced-motion: reduce) { .uem-prop:hover .uem-prop__img img, .uem-card:hover, .uem-prop:hover { transform: none; } }
@media (max-width: 980px) { .uem-props { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .uem-props { grid-template-columns: 1fr; } }

/* ---------- Team ---------- */
.uem-team { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: var(--uem-gap); list-style: none; margin: 0; padding: 0; }
.uem-member { list-style: none; text-align: center; }
.uem-member__photo { aspect-ratio: 4 / 5; border-radius: var(--uem-radius); overflow: hidden; background: linear-gradient(135deg, var(--uem-mist), var(--uem-sky)); box-shadow: var(--uem-shadow); display: grid; place-items: center; }
.uem-member__photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.uem-member__photo span { font-family: var(--uem-font-body); font-weight: 900; font-size: 44px; color: var(--uem-navy); }
.uem-member h3 { font-family: var(--uem-font-body); font-size: 18px; font-weight: 900; color: var(--uem-navy); margin: 14px 0 2px; padding: 0; }
.uem-member p { font-size: 15px !important; color: var(--uem-text); margin: 0 !important; }
.uem-groupshot { margin: 0 0 44px; }
.uem-groupshot img { width: 100%; max-height: 520px; object-fit: cover; border-radius: var(--uem-radius); box-shadow: var(--uem-shadow); display: block; }

/* ---------- FAQ ---------- */
.uem-faq { max-width: 860px; margin: 0 auto; }
.uem-faq details { background: var(--uem-white); border-radius: var(--uem-radius); box-shadow: var(--uem-shadow); margin: 0 0 14px; }
.uem-faq summary { list-style: none; cursor: pointer; padding: 22px 60px 22px 26px; font-family: var(--uem-font-body); font-weight: 900; font-size: 18px; color: var(--uem-navy); position: relative; }
.uem-faq summary::-webkit-details-marker { display: none; }
.uem-faq summary::after { content: ""; position: absolute; right: 24px; top: 50%; width: 12px; height: 12px; border-right: 2.5px solid var(--uem-blue); border-bottom: 2.5px solid var(--uem-blue); transform: translateY(-70%) rotate(45deg); transition: transform .2s ease; }
.uem-faq details[open] summary::after { transform: translateY(-30%) rotate(225deg); }
.uem-faq .uem-faq__a { padding: 0 26px 22px; }
.uem-faq .uem-faq__a p { font-size: 17px !important; margin: 0 0 .7em !important; }

/* ---------- Areas we serve ---------- */
.uem-areas { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px 28px; list-style: none; margin: 0; padding: 0; }
.uem-areas li { list-style: none; padding: 16px 0 16px 18px; border-left: 3px solid var(--uem-green); }
.uem-areas strong { display: block; font-size: 18px; color: var(--uem-navy); margin-bottom: 4px; }
.uem-areas span { font-size: 15px; line-height: 1.5; color: var(--uem-text); }
@media (max-width: 980px) { .uem-areas { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .uem-areas { grid-template-columns: 1fr; } }

/* ---------- Contact ---------- */
.uem-contact { display: grid; grid-template-columns: .85fr 1.15fr; gap: 48px; align-items: start; }
.uem-contact__card { background: var(--uem-navy); color: #dfe7f2; border-radius: var(--uem-radius); padding: 34px 30px; }
.uem-contact__card h2 { font-family: var(--uem-font-body); font-size: 24px; font-weight: 900; color: var(--uem-white); margin: 0 0 18px; padding: 0; }
.uem-contact__card a { color: var(--uem-white) !important; font-weight: 700; text-decoration: none; }
.uem-contact__card a:hover { text-decoration: underline; }
.uem-contact__list { list-style: none; margin: 0 0 26px; padding: 0; }
.uem-contact__list li { list-style: none; display: flex; gap: 12px; align-items: flex-start; padding: 8px 0; font-size: 17px; }
.uem-contact__list svg { width: 22px; height: 22px; flex: 0 0 auto; fill: none; stroke: var(--uem-green); stroke-width: 2; margin-top: 2px; }
.uem-next { list-style: none; counter-reset: uemnext; margin: 0; padding: 0; }
.uem-next li { list-style: none; counter-increment: uemnext; position: relative; padding: 0 0 16px 40px; font-size: 16px; line-height: 1.5; }
.uem-next li::before { content: counter(uemnext); position: absolute; left: 0; top: -1px; width: 26px; height: 26px; border-radius: 50%; background: var(--uem-green); color: var(--uem-navy); font-weight: 900; font-size: 14px; display: grid; place-items: center; }
.uem-form { background: var(--uem-white); border-radius: var(--uem-radius); box-shadow: var(--uem-shadow); padding: 34px 32px; }
.uem-form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 0 18px; }
.uem-field { display: block; margin: 0 0 18px; border: 0; padding: 0; min-width: 0; }
.uem-field > span, .uem-field legend { display: block; font-weight: 700; font-size: 15px; color: var(--uem-ink); margin-bottom: 6px; padding: 0; }
.uem-field em { color: #b3261e; font-style: normal; }
.uem-field small { font-weight: 400; color: var(--uem-text); }
.uem-field input[type=text], .uem-field input[type=email], .uem-field input[type=tel], .uem-field select, .uem-field textarea { width: 100%; box-sizing: border-box; font: 16px/1.4 var(--uem-font-body); color: var(--uem-ink); background: var(--uem-paper); border: 1.5px solid #c9d6e5; border-radius: 8px; padding: 12px 14px; min-height: 48px; transition: border-color .15s, background .15s; }
.uem-field textarea { min-height: 120px; resize: vertical; }
.uem-field input:focus, .uem-field select:focus, .uem-field textarea:focus { outline: none; border-color: var(--uem-blue); background: var(--uem-white); box-shadow: 0 0 0 3px rgba(41, 118, 188, .18); }
.uem-field--radios label { display: inline-flex; align-items: center; gap: 6px; margin: 6px 18px 0 0; font-size: 16px; color: var(--uem-ink); cursor: pointer; }
.uem-field--radios input { width: 18px; height: 18px; accent-color: var(--uem-blue); }
.uem-form .uem-btn { width: 100%; margin-top: 6px; }
.uem-form__fine { font-size: 14px !important; color: var(--uem-text); text-align: center; margin: 12px 0 0 !important; }
.uem-form__hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }
.uem-form__msg { border-radius: 8px; padding: 14px 16px; margin: 0 0 18px; font-weight: 700; font-size: 16px; background: #fdecea; color: #8c1d18; }
.uem-form__msg--ok { background: #ecf6df; color: #2e5a07; }
.uem-form.is-sending .uem-btn { opacity: .7; pointer-events: none; }
@media (max-width: 980px) { .uem-contact { grid-template-columns: 1fr; } }
@media (max-width: 600px) { .uem-form { padding: 26px 20px; } .uem-form__row { grid-template-columns: 1fr; } .uem-contact__card { padding: 28px 22px; } }

/* ---------- CTA band ---------- */
.uem-cta { background: linear-gradient(120deg, var(--uem-blue-dark), var(--uem-navy)); color: var(--uem-white); text-align: center; padding: 76px 0; }
.uem-cta h2 { font-family: var(--uem-font-hero); font-weight: 900; font-size: 38px; line-height: 1.2; color: var(--uem-white); margin: 0 0 12px; padding: 0; }
.uem-cta p { font-size: 19px; color: #dfe7f2; max-width: 640px; margin: 0 auto; }
@media (max-width: 600px) { .uem-cta { padding: 56px 0; } .uem-cta h2 { font-size: 28px; } }

/* ---------- Guest teaser ---------- */
.uem-guest { display: grid; grid-template-columns: 1fr 1fr; gap: 0; border-radius: var(--uem-radius); overflow: hidden; box-shadow: var(--uem-shadow); background: var(--uem-white); }
.uem-guest__img { min-height: 340px; position: relative; }
.uem-guest__img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.uem-guest__body { padding: 48px 44px; }
@media (max-width: 860px) { .uem-guest { grid-template-columns: 1fr; } .uem-guest__img { min-height: 240px; } .uem-guest__body { padding: 32px 24px; } }

/* ---------- Footer ---------- */
.uem-footer { background: var(--uem-ink); color: #c9d4e3; padding: 64px 0 28px; font-family: var(--uem-font-body); }
.uem-footer__grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr 1.2fr; gap: 40px; }
.uem-footer__logo img { width: 220px; max-width: 100%; height: auto; display: block; margin-bottom: 18px; }
.uem-footer p { font-size: 15px !important; line-height: 1.6; color: #c9d4e3; margin: 0 0 12px !important; }
.uem-footer h2 { font-family: var(--uem-font-body); font-size: 15px; font-weight: 900; letter-spacing: .12em; text-transform: uppercase; color: var(--uem-white); margin: 0 0 16px; padding: 0; }
.uem-footer ul { list-style: none; margin: 0; padding: 0; }
.uem-footer li { list-style: none; padding: 5px 0; font-size: 15px; }
.uem-footer a { color: #e6edf6 !important; text-decoration: none; }
.uem-footer a:hover, .uem-footer a:focus-visible { color: var(--uem-green) !important; text-decoration: underline; }
.uem-footer__social { display: flex; gap: 10px; margin-top: 14px; }
.uem-footer__social a { width: 40px; height: 40px; border-radius: 50%; background: rgba(255, 255, 255, .1); display: grid; place-items: center; }
.uem-footer__social a:hover { background: var(--uem-green); }
.uem-footer__social svg { width: 18px; height: 18px; fill: var(--uem-white); }
.uem-footer .uem-btn { margin-top: 14px; min-height: 44px; padding: 10px 20px; font-size: 15px; }
.uem-footer__towns { margin-top: 44px; padding-top: 24px; border-top: 1px solid rgba(255, 255, 255, .12); font-size: 14px !important; color: #a9b8cc !important; }
.uem-footer__bottom { margin-top: 18px; font-size: 14px !important; color: #a9b8cc !important; }
@media (max-width: 980px) { .uem-footer__grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .uem-footer__grid { grid-template-columns: 1fr; gap: 28px; } .uem-footer { padding-top: 48px; } }

/* ---------- Entry reveal (JS adds .uem-js; nothing hidden without JS or with reduced motion) ---------- */
@media (prefers-reduced-motion: no-preference) {
  .uem-js .uem-reveal { opacity: 0; transform: translateY(14px); transition: opacity .6s ease, transform .6s ease; }
  .uem-js .uem-reveal.is-in { opacity: 1; transform: none; }
}

/* Divi wrappers around our full-width code sections: no extra spacing */
.et_pb_section.uem-divi-sec { padding: 0 !important; }
.et_pb_section.uem-divi-sec .et_pb_fullwidth_code { padding: 0; }
.uem-sr { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }

/* ---------- Polish pass ---------- */
.uem-cta { font-family: var(--uem-font-body); }
.uem-cta .uem-btns { justify-content: center; }
.uem-cta p { font-size: 19px !important; line-height: 1.6; }
.uem-quote { display: flex; flex-direction: column; justify-content: center; }
.uem-quote__mark { flex: 0 0 auto; }
/* The Phase 2 footer replaces Divi's theme footer (the old pages hid it with a -379px margin). */
body.uem-v2 #main-footer { display: none !important; }
@media (max-width: 980px) {
  body.uem-v2 #logo { max-height: 76px !important; }
  body.uem-v2 .logo_container { height: 100%; }
}
.uem-field select { -webkit-appearance: none; -moz-appearance: none; appearance: none; padding-right: 40px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232976bc' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; background-size: 16px; }
.uem-field select:focus { background-color: var(--uem-white); }

/* Accessibility pass: AA contrast for small blue text on light backgrounds */
.uem-eyebrow, .uem-card__link, .uem-prop a, .uem-prop__town, .uem-carousel__more a { color: var(--uem-blue-text) !important; }
.uem-hero .uem-eyebrow, .uem-pagehero .uem-eyebrow { color: var(--uem-green) !important; }
.uem-quote__by { margin: 20px 0 0 !important; font-size: 16px !important; color: var(--uem-text); font-family: var(--uem-font-body); }
.uem-quote__by strong { display: block; color: var(--uem-navy); font-size: 17px; }
/* Divi slider controls (case studies): bigger tap targets */
.et-pb-controllers a { position: relative; }
.et-pb-controllers a::after { content: ""; position: absolute; inset: -10px -6px; }
@media (max-width: 600px) { .uem-team { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 14px; } .uem-member h3 { font-size: 16px; } .uem-member p { font-size: 14px !important; } }
.uem-footer .uem-btn--green, .uem-footer .uem-btn--green:hover { color: var(--uem-navy) !important; text-decoration: none; }
.uem-footer .uem-btn--primary, .uem-footer .uem-btn--primary:hover { color: var(--uem-white) !important; text-decoration: none; }
.uem-btn--primary { background: #2470b4; }
.et-pb-controllers a { width: 12px !important; height: 12px !important; margin: 0 7px !important; }
@media (max-width: 980px) { body.uem-v2 #main-header .logo_container { width: 100%; } body.uem-v2 #logo { max-width: 62% !important; max-height: 62px !important; } }
