:root {
  --em-navy: #0b2a4a;
  --em-navy-2: #123a63;
  --em-blue: #1688e8;
  --em-blue-2: #0d75ca;
  --em-light-blue: #eaf6ff;
  --em-sky: #f5fbff;
  --em-white: #ffffff;
  --em-ink: #142033;
  --em-muted: #617086;
  --em-line: #dbe8f3;
  --em-success: #14a38b;
  --em-radius-sm: 8px;
  --em-radius: 14px;
  --em-radius-lg: 22px;
  --em-shadow: 0 18px 45px rgba(11, 42, 74, 0.12);
  --em-shadow-soft: 0 10px 28px rgba(11, 42, 74, 0.08);
  --em-container: 1180px;
  --em-section: clamp(4rem, 7vw, 7rem);
  --em-font-body: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --em-font-heading: Manrope, Inter, system-ui, sans-serif;
  --em-transition: 180ms ease;
  --em-header-h: 84px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--em-ink);
  background: var(--em-white);
  font-family: var(--em-font-body);
  font-size: 16px;
  line-height: 1.65;
  text-rendering: optimizeLegibility;
}

img,
svg,
video {
  max-width: 100%;
  height: auto;
}

a {
  color: inherit;
  text-decoration: none;
}

a:hover {
  color: var(--em-blue);
}

:focus-visible {
  outline: 3px solid rgba(22, 136, 232, 0.38);
  outline-offset: 3px;
}

.screen-reader-text,
.em-skip-link {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.em-skip-link:focus {
  z-index: 1000;
  top: 1rem;
  left: 1rem;
  width: auto;
  height: auto;
  padding: 0.75rem 1rem;
  clip: auto;
  color: var(--em-white);
  background: var(--em-navy);
  border-radius: var(--em-radius-sm);
}

.em-container {
  width: min(100% - 2rem, var(--em-container));
  margin-inline: auto;
}

.em-section {
  padding-block: var(--em-section);
}

.em-section--tint {
  background: linear-gradient(180deg, var(--em-sky), var(--em-white));
}

.em-section--dark {
  color: var(--em-white);
  background: var(--em-navy);
}

.em-section--dark .em-section-header p,
.em-section--dark .em-eyebrow {
  color: rgba(255, 255, 255, 0.72);
}

h1,
h2,
h3 {
  margin: 0;
  color: inherit;
  font-family: var(--em-font-heading);
  line-height: 1.05;
  letter-spacing: 0;
}

h1 {
  font-size: clamp(3rem, 8vw, 6.9rem);
}

h2 {
  font-size: clamp(2rem, 4.5vw, 4rem);
}

h3 {
  font-size: clamp(1.15rem, 2vw, 1.45rem);
}

p {
  margin: 0;
}

.em-eyebrow {
  margin-bottom: 0.85rem;
  color: var(--em-blue);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.em-section-header {
  max-width: 720px;
  margin-bottom: clamp(2rem, 4vw, 3.25rem);
}

.em-section-header p {
  margin-top: 1rem;
  color: var(--em-muted);
  font-size: clamp(1rem, 1.7vw, 1.15rem);
}

.em-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0.75rem 1.05rem;
  border: 1px solid transparent;
  border-radius: var(--em-radius-sm);
  font-weight: 800;
  line-height: 1;
  transition: transform var(--em-transition), box-shadow var(--em-transition), background var(--em-transition), color var(--em-transition);
}

.wp-block-button__link {
  border-radius: var(--em-radius-sm);
  font-family: var(--em-font-heading);
  font-weight: 600;
}

.wp-block-buttons.em-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
}

.wp-block-button.em-button--primary .wp-block-button__link,
.wp-block-button.em-button--secondary .wp-block-button__link,
.wp-block-button.em-button--outline .wp-block-button__link,
.wp-block-button.em-button--ghost .wp-block-button__link {
  display: inline-flex;
  min-height: 52px;
  align-items: center;
  justify-content: center;
  padding: 0.85rem 1.2rem;
  border: 1px solid transparent;
  font-size: 0.96rem;
  line-height: 1;
  text-decoration: none;
}

.wp-block-button.em-button--primary .wp-block-button__link {
  color: #fff;
  background: var(--em-blue);
  box-shadow: 0 14px 24px rgba(8, 119, 216, 0.22);
}

.wp-block-button.em-button--secondary .wp-block-button__link {
  color: #fff;
  background: var(--em-navy);
}

.wp-block-button.em-button--outline .wp-block-button__link,
.wp-block-button.em-button--ghost .wp-block-button__link {
  color: var(--em-navy);
  background: rgba(255, 255, 255, 0.72);
  border-color: rgba(8, 40, 70, 0.14);
}

.em-button:hover {
  transform: translateY(-1px);
}

.em-button--primary {
  color: var(--em-white);
  background: var(--em-blue);
  box-shadow: 0 12px 24px rgba(22, 136, 232, 0.22);
}

.em-button--primary:hover {
  color: var(--em-white);
  background: var(--em-blue-2);
}

.em-button--secondary {
  color: var(--em-navy);
  background: var(--em-white);
  border-color: var(--em-line);
}

.em-button--outline,
.em-button--ghost {
  color: var(--em-navy);
  background: transparent;
  border-color: var(--em-line);
}

.em-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
}

.em-hero {
  overflow: hidden;
  padding: clamp(3rem, 6vw, 5.5rem) 0 clamp(4rem, 7vw, 7rem);
  background: linear-gradient(180deg, #ffffff 0%, #f5fbff 100%);
}

.em-hero__grid,
.em-split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.82fr);
  gap: clamp(2rem, 6vw, 5rem);
  align-items: center;
}

.em-hero__lead {
  max-width: 680px;
  margin: 1.25rem 0 1.75rem;
  color: var(--em-muted);
  font-size: clamp(1.1rem, 2vw, 1.35rem);
}

.em-hero__trust {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  padding: 0;
  margin: 1.5rem 0 0;
  list-style: none;
}

.em-hero__trust li {
  padding: 0.55rem 0.75rem;
  color: var(--em-navy);
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid var(--em-line);
  border-radius: 999px;
  font-size: 0.9rem;
  font-weight: 800;
}

.em-hero__media {
  min-height: 520px;
}

.em-hero__media .em-image-placeholder {
  min-height: 520px;
}

.em-image-placeholder {
  display: grid;
  min-height: 100%;
  place-items: center;
  padding: 2rem;
  color: var(--em-muted);
  background:
    linear-gradient(135deg, rgba(22, 136, 232, 0.14), rgba(255, 255, 255, 0.76)),
    repeating-linear-gradient(45deg, rgba(11, 42, 74, 0.04) 0 10px, rgba(11, 42, 74, 0.02) 10px 20px);
  border: 1px solid var(--em-line);
  border-radius: var(--em-radius-lg);
  box-shadow: var(--em-shadow-soft);
  text-align: center;
  font-weight: 800;
}

.em-card-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.em-card-grid--services {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.em-service-card,
.em-mini-card,
.em-trust-card,
.em-step {
  min-width: 0;
  padding: 1.25rem;
  background: var(--em-white);
  border: 1px solid var(--em-line);
  border-radius: var(--em-radius);
  box-shadow: var(--em-shadow-soft);
}

.em-service-card {
  display: flex;
  flex-direction: column;
  min-height: 230px;
}

.em-service-card__icon {
  width: 44px;
  height: 44px;
  margin-bottom: 1rem;
  background: linear-gradient(135deg, var(--em-blue), var(--em-navy));
  border-radius: var(--em-radius-sm);
}

.em-service-card p,
.em-mini-card p,
.em-trust-card p {
  margin-top: 0.7rem;
  color: var(--em-muted);
}

.em-service-card a {
  margin-top: auto;
  color: var(--em-blue);
  font-weight: 800;
}

.em-trust-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 1rem;
}

.em-photo-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.em-photo-grid .em-image-placeholder:first-child {
  grid-row: span 2;
  min-height: 420px;
}

.em-photo-grid .em-image-placeholder {
  min-height: 200px;
}

.em-steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
  margin-bottom: 2rem;
}

.em-step {
  color: var(--em-white);
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.14);
  box-shadow: none;
}

.em-step span {
  display: grid;
  width: 42px;
  height: 42px;
  margin-bottom: 1rem;
  place-items: center;
  color: var(--em-navy);
  background: var(--em-white);
  border-radius: 50%;
  font-weight: 900;
}

.em-commercial-preview {
  color: var(--em-white);
  background: linear-gradient(135deg, var(--em-navy), var(--em-navy-2));
}

.em-commercial-preview p {
  max-width: 650px;
  margin: 1.2rem 0 1.5rem;
  color: rgba(255, 255, 255, 0.76);
}

.em-commercial-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
}

.em-commercial-list span {
  padding: 1rem;
  color: var(--em-white);
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: var(--em-radius-sm);
  font-weight: 800;
}

.em-faq {
  display: grid;
  gap: 0.75rem;
  max-width: 900px;
}

.em-faq__item {
  background: var(--em-white);
  border: 1px solid var(--em-line);
  border-radius: var(--em-radius);
}

.em-faq__item summary {
  cursor: pointer;
  padding: 1.1rem 1.25rem;
  color: var(--em-navy);
  font-weight: 900;
}

.em-faq__item p {
  padding: 0 1.25rem 1.25rem;
  color: var(--em-muted);
}

.em-final-cta {
  padding-block: clamp(4rem, 7vw, 7rem);
  color: var(--em-white);
  background: var(--em-blue);
  text-align: center;
}

.em-final-cta .em-container {
  display: grid;
  justify-items: center;
  gap: 1rem;
}

.em-final-cta .em-button--primary {
  color: var(--em-navy);
  background: var(--em-white);
}

.em-page-hero {
  padding-block: clamp(3rem, 6vw, 6rem);
  background: var(--em-sky);
}

.em-content {
  max-width: 820px;
}

.em-content > * + * {
  margin-top: 1rem;
}

.em-footer {
  padding: 4rem 0 1.75rem;
  color: rgba(255, 255, 255, 0.82);
  background: #071d34;
}

.em-footer__grid {
  display: grid;
  grid-template-columns: 1.4fr repeat(4, 1fr);
  gap: 2rem;
}

.em-footer h2 {
  margin-bottom: 0.8rem;
  color: var(--em-white);
  font-size: 1rem;
}

.em-footer a {
  display: block;
  margin-top: 0.42rem;
  color: rgba(255, 255, 255, 0.72);
}

.em-footer a:hover {
  color: var(--em-white);
}

.em-logo--footer {
  display: inline-flex;
  gap: 0.7rem;
  align-items: center;
  font-family: var(--em-font-heading);
  font-weight: 800;
}

.em-logo--footer .em-logo__mark {
  display: block;
  width: 42px;
  height: 42px;
  object-fit: contain;
  border-radius: 11px;
  background: var(--em-white);
}

.em-logo--footer .em-logo__text {
  color: var(--em-white);
  font-size: 1.12rem;
}

.em-footer__brand p {
  margin-top: 1rem;
  max-width: 310px;
}

.em-footer__bottom {
  display: flex;
  gap: 0.5rem 1rem;
  justify-content: space-between;
  padding-top: 1.25rem;
  margin-top: 3rem;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.875rem;
}

.em-mobile-actions {
  position: fixed;
  z-index: 60;
  right: 0.75rem;
  bottom: 0.75rem;
  left: 0.75rem;
  display: none;
  overflow: hidden;
  background: var(--em-white);
  border: 1px solid var(--em-line);
  border-radius: var(--em-radius);
  box-shadow: var(--em-shadow);
}

.em-mobile-actions a {
  flex: 1;
  padding: 0.85rem 0.5rem;
  color: var(--em-navy);
  text-align: center;
  font-weight: 900;
}

.em-mobile-actions a:last-child {
  color: var(--em-white);
  background: var(--em-blue);
}

.em-form {
  display: grid;
  gap: 1rem;
}

.em-form__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.em-form label {
  display: grid;
  gap: 0.35rem;
  color: var(--em-navy);
  font-weight: 800;
}

.em-form input,
.em-form select,
.em-form textarea {
  width: 100%;
  padding: 0.85rem 0.95rem;
  border: 1px solid var(--em-line);
  border-radius: var(--em-radius-sm);
  font: inherit;
}

.em-form__success {
  padding: 1rem;
  color: #075746;
  background: #e8fbf7;
  border: 1px solid #b9eee2;
  border-radius: var(--em-radius-sm);
  font-weight: 800;
}

.em-form__error {
  padding: 1rem;
  color: #7f1d1d;
  background: #fff1f1;
  border: 1px solid #fecaca;
  border-radius: var(--em-radius-sm);
  font-weight: 800;
}

.em-form__note,
.em-form__privacy {
  color: var(--em-muted);
  font-size: 0.92rem;
  line-height: 1.55;
}

.em-form__privacy {
  display: flex !important;
  grid-column: 1 / -1;
  gap: 0.6rem !important;
  align-items: flex-start;
  font-weight: 500 !important;
}

.em-form__privacy input {
  width: auto;
  margin-top: 0.2rem;
}

.em-form__honeypot {
  position: absolute;
  left: -100vw;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

@media (max-width: 1120px) {
  .em-card-grid--services,
  .em-trust-grid,
  .em-steps {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 780px) {
  body {
    padding-bottom: 74px;
  }

  .em-hero__grid,
  .em-split,
  .em-card-grid,
  .em-card-grid--services,
  .em-trust-grid,
  .em-steps,
  .em-footer__grid,
  .em-form__grid {
    grid-template-columns: 1fr;
  }

  .em-hero__media {
    min-height: 360px;
  }

  .em-photo-grid {
    grid-template-columns: 1fr;
  }

  .em-photo-grid .em-image-placeholder:first-child {
    grid-row: auto;
    min-height: 300px;
  }

  .em-commercial-list {
    grid-template-columns: 1fr;
  }

  .em-footer__bottom {
    display: grid;
    justify-content: center;
    justify-items: center;
    text-align: center;
  }

  .em-mobile-actions {
    display: flex;
  }
}

@media (max-width: 430px) {
  .em-container {
    width: min(100% - 1.25rem, var(--em-container));
  }

  .em-actions,
  .em-actions .em-button {
    width: 100%;
  }

  .em-button {
    width: 100%;
  }

  .em-hero__trust li {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}

/* Apple-design refinement pass: clearer hierarchy, calmer materials, and more specific service surfaces. */
:root {
  --em-navy: #082846;
  --em-navy-2: #0f416f;
  --em-blue: #0877d8;
  --em-blue-2: #0065bb;
  --em-light-blue: #e7f4ff;
  --em-sky: #f6fbff;
  --em-surface: #f8fbfe;
  --em-surface-strong: #eef7ff;
  --em-ink: #102033;
  --em-muted: #56677c;
  --em-line: #d7e5f1;
  --em-success: #0b8f78;
  --em-radius: 12px;
  --em-radius-lg: 18px;
  --em-shadow: 0 20px 54px rgba(8, 40, 70, 0.14);
  --em-shadow-soft: 0 12px 30px rgba(8, 40, 70, 0.08);
  --em-shadow-hairline: inset 0 0 0 1px rgba(255, 255, 255, 0.74);
}

body {
  background: var(--em-surface);
}

.em-section {
  background: var(--em-white);
}

.em-section--tint {
  background: var(--em-surface);
}

h1,
h2,
h3 {
  font-family: var(--em-font-heading);
  letter-spacing: 0;
}

h1 {
  max-width: 13ch;
  font-weight: 700;
  font-size: clamp(3.35rem, 8vw, 6.75rem);
}

h2,
h3 {
  font-weight: 600;
}

p,
.em-form,
.em-faq {
  font-family: var(--em-font-body);
  font-weight: 400;
}

.em-eyebrow {
  color: var(--em-blue);
  letter-spacing: 0.08em;
}

.em-button,
.em-nav a,
.em-mobile-menu a,
.em-service-card a,
.em-logo {
  font-family: var(--em-font-heading);
  font-weight: 600;
}

.em-button {
  min-height: 48px;
  padding: 0.8rem 1.12rem;
}

.em-button--primary {
  background: var(--em-blue);
  box-shadow: 0 14px 26px rgba(8, 119, 216, 0.24);
}

.em-button--primary:hover {
  background: var(--em-blue-2);
}

.em-button--secondary {
  background: rgba(255, 255, 255, 0.82);
  border-color: rgba(8, 40, 70, 0.12);
  box-shadow: var(--em-shadow-hairline);
}

.em-button--outline,
.em-button--ghost {
  background: rgba(255, 255, 255, 0.68);
  border-color: rgba(8, 40, 70, 0.12);
}

.em-hero {
  padding: clamp(3rem, 6vw, 5.5rem) 0 clamp(4.5rem, 7vw, 7.5rem);
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.94), rgba(246, 251, 255, 0.72)),
    linear-gradient(180deg, #ffffff 0%, #f3f9ff 100%);
}

.em-hero__grid,
.em-split {
  grid-template-columns: minmax(0, 0.95fr) minmax(360px, 0.9fr);
}

.em-hero__lead {
  max-width: 600px;
  color: #4f6075;
}

.em-hero__trust li {
  min-height: 40px;
  padding: 0.58rem 0.78rem;
  background: rgba(255, 255, 255, 0.76);
  border-color: rgba(8, 40, 70, 0.1);
  box-shadow: var(--em-shadow-hairline);
  font-weight: 600;
}

.em-hero__media {
  min-height: 540px;
}

.em-hero-card {
  position: relative;
  min-height: 540px;
  padding: clamp(0.8rem, 2vw, 1rem);
  background: rgba(255, 255, 255, 0.76);
  border: 1px solid rgba(8, 40, 70, 0.1);
  border-radius: var(--em-radius-lg);
  box-shadow: var(--em-shadow);
  backdrop-filter: blur(18px) saturate(145%);
}

.em-hero-card__photo {
  height: 100%;
  min-height: 500px;
}

.em-hero-card__photo .em-image-placeholder {
  min-height: 500px;
}

.em-hero-card__panel {
  position: absolute;
  right: clamp(1.35rem, 3vw, 2rem);
  bottom: clamp(1.35rem, 3vw, 2rem);
  left: clamp(1.35rem, 3vw, 2rem);
  padding: 1rem;
  color: var(--em-ink);
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid rgba(8, 40, 70, 0.1);
  border-radius: var(--em-radius);
  box-shadow: var(--em-shadow-soft);
  backdrop-filter: blur(18px);
}

.em-hero-card__panel h2 {
  font-weight: 600;
  font-size: clamp(1.35rem, 2.4vw, 1.8rem);
}

.em-hero-card__kicker {
  margin-bottom: 0.25rem;
  color: var(--em-success);
  font-family: var(--em-font-body);
  font-size: 0.8rem;
  font-weight: 500;
}

.em-hero-card__panel ul {
  display: grid;
  gap: 0.55rem;
  padding: 0;
  margin: 1rem 0 0;
  list-style: none;
}

.em-hero-card__panel li {
  display: flex;
  gap: 1rem;
  justify-content: space-between;
  padding-top: 0.55rem;
  border-top: 1px solid rgba(8, 40, 70, 0.1);
}

.em-hero-card__panel span {
  color: var(--em-muted);
}

.em-hero-card__panel strong {
  color: var(--em-navy);
  font-family: var(--em-font-heading);
  font-weight: 700;
  text-align: right;
}

.em-image-placeholder {
  color: #4f6075;
  border-color: rgba(8, 40, 70, 0.1);
  border-radius: var(--em-radius);
  box-shadow: none;
}

.em-service-card,
.em-mini-card,
.em-trust-card,
.em-step {
  padding: 1.35rem;
  border-color: rgba(8, 40, 70, 0.1);
}

.em-service-card {
  min-height: 244px;
  transition: transform var(--em-transition), box-shadow var(--em-transition), border-color var(--em-transition);
}

.em-service-card:hover {
  border-color: rgba(8, 119, 216, 0.32);
  box-shadow: var(--em-shadow);
  transform: translateY(-2px);
}

.em-service-card__icon {
  display: grid;
  width: 52px;
  height: 52px;
  place-items: center;
  color: var(--em-navy);
  background: var(--em-light-blue);
  border: 1px solid rgba(8, 119, 216, 0.18);
  border-radius: var(--em-radius-sm);
  font-family: var(--em-font-heading);
  font-size: 0.76rem;
  font-weight: 700;
}

.em-service-card a {
  font-weight: 600;
}

.em-service-card a::after {
  content: none;
}

.em-trust-card {
  display: grid;
  gap: 0.55rem;
  box-shadow: none;
}

.em-trust-card span {
  width: 30px;
  height: 4px;
  background: var(--em-success);
  border-radius: 999px;
}

.em-trust-card strong {
  color: var(--em-navy);
  font-family: var(--em-font-heading);
  font-weight: 600;
}

.em-section--dark {
  background:
    linear-gradient(135deg, rgba(8, 119, 216, 0.24), transparent 42%),
    var(--em-navy);
}

.em-step {
  background: rgba(255, 255, 255, 0.09);
  border-color: rgba(255, 255, 255, 0.16);
}

.em-step span {
  font-family: var(--em-font-heading);
  font-weight: 700;
}

.em-commercial-preview {
  background:
    linear-gradient(135deg, rgba(8, 119, 216, 0.28), transparent 48%),
    linear-gradient(135deg, var(--em-navy), var(--em-navy-2));
}

.em-commercial-preview p {
  color: rgba(255, 255, 255, 0.8);
}

.em-commercial-list span {
  min-height: 54px;
  background: rgba(255, 255, 255, 0.1);
  font-family: var(--em-font-heading);
  font-weight: 600;
}

.em-faq__item {
  border-color: rgba(8, 40, 70, 0.1);
  box-shadow: var(--em-shadow-hairline);
}

.em-faq__item summary {
  min-height: 56px;
  font-family: var(--em-font-body);
  font-weight: 500;
}

.em-final-cta {
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.18), transparent 45%),
    var(--em-blue);
}

.em-final-cta p {
  color: rgba(255, 255, 255, 0.9);
}

.em-mobile-actions {
  background: rgba(255, 255, 255, 0.9);
  border-color: rgba(8, 40, 70, 0.1);
  backdrop-filter: blur(18px) saturate(150%);
}

.em-mobile-actions a {
  font-family: var(--em-font-heading);
  font-weight: 600;
}

@media (max-width: 780px) {
  h1 {
    max-width: 11ch;
  }

  .em-hero__grid,
  .em-split {
    grid-template-columns: 1fr;
  }

  .em-hero-card,
  .em-hero-card__photo,
  .em-hero-card__photo .em-image-placeholder {
    min-height: 420px;
  }
}

@media (max-width: 430px) {
  h1 {
    font-size: clamp(3.05rem, 14vw, 3.75rem);
  }

  .em-button {
    min-height: 50px;
  }

  .em-hero-card,
  .em-hero-card__photo,
  .em-hero-card__photo .em-image-placeholder {
    min-height: 390px;
  }

  .em-hero-card__panel {
    right: 1rem;
    bottom: 1rem;
    left: 1rem;
  }
}

/* --------------------------------------------------------------------------
   Back-to-top broom
   --------------------------------------------------------------------------
   A small SVG broom in the corner. It slides in after a screen of scrolling,
   sweeps while the page travels up, and settles when it arrives. Sits above
   the phone action bar so it never covers "Book".
   -------------------------------------------------------------------------- */

.em-broom {
  position: fixed;
  z-index: 55;
  right: 1.25rem;
  bottom: 1.25rem;
  display: grid;
  place-items: center;
  width: 3.25rem;
  height: 3.25rem;
  padding: 0;
  color: var(--em-navy);
  background: var(--em-white);
  border: 1px solid var(--em-line);
  border-radius: 50%;
  box-shadow: var(--em-shadow-soft);
  cursor: pointer;
  opacity: 0;
  transform: translateY(1rem) scale(0.9);
  transition: opacity 260ms cubic-bezier(0.2, 0.7, 0.2, 1), transform 260ms cubic-bezier(0.2, 0.7, 0.2, 1), background-color var(--em-transition);
}

.em-broom[hidden] {
  display: grid;
  pointer-events: none;
}

.em-broom.is-visible {
  opacity: 1;
  transform: none;
}

.em-broom:hover,
.em-broom:focus-visible {
  background: var(--em-light-blue);
}

.em-broom:focus-visible {
  outline: 2px solid var(--em-blue);
  outline-offset: 3px;
}

.em-broom__svg {
  width: 1.75rem;
  height: 2.25rem;
  overflow: visible;
  transform: translateY(-2px);
}

.em-broom__handle {
  fill: var(--em-blue);
}

.em-broom__collar {
  fill: var(--em-navy);
}

.em-broom__head {
  fill: #f2c14e;
}

.em-broom__bristles,
.em-broom__dust {
  fill: none;
  stroke: var(--em-navy);
  stroke-width: 1.4;
  stroke-linecap: round;
}

.em-broom__dust {
  stroke: var(--em-blue);
  opacity: 0;
}

/* Held at the top of the handle: the pivot is there, so the head swings
   across the floor while the grip stays put. Dust puffs show while sweeping. */
.em-broom__body {
  transform-box: fill-box;
  transform-origin: 50% 0%;
}

.em-broom.is-sweeping .em-broom__body {
  animation: em-broom-sweep 520ms cubic-bezier(0.45, 0, 0.55, 1) infinite alternate;
}

.em-broom.is-sweeping .em-broom__dust {
  animation: em-broom-dust 1040ms ease-in-out infinite;
}

/* A quick nudge on hover so it reads as clickable. */
.em-broom:not(.is-sweeping):hover .em-broom__body {
  animation: em-broom-sweep 520ms cubic-bezier(0.45, 0, 0.55, 1) 2 alternate;
}

@keyframes em-broom-sweep {
  from {
    transform: rotate(-16deg);
  }

  to {
    transform: rotate(16deg);
  }
}

@keyframes em-broom-dust {
  0%, 100% {
    opacity: 0;
    transform: translateX(0);
  }

  40% {
    opacity: 0.9;
    transform: translateX(-2px);
  }

  60% {
    opacity: 0.9;
    transform: translateX(2px);
  }
}

@media (max-width: 780px) {
  .em-broom {
    right: 0.75rem;
    bottom: calc(74px + 0.75rem);
    width: 2.75rem;
    height: 2.75rem;
  }

  .em-broom__svg {
    width: 1.5rem;
    height: 1.9rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .em-broom {
    transition: opacity 200ms ease;
    transform: none;
  }

  .em-broom.is-sweeping .em-broom__body,
  .em-broom.is-sweeping .em-broom__dust,
  .em-broom:not(.is-sweeping):hover .em-broom__body {
    animation: none;
  }
}

/* --------------------------------------------------------------------------
   404 page
   --------------------------------------------------------------------------
   Not built from section blocks, so it gets its own small set of rules here
   (main.css loads on every page) rather than living in pages.css. Reuses the
   back-to-top broom's SVG parts for the sweep visual instead of a stock
   illustration or emoji.
   -------------------------------------------------------------------------- */

.em-404 {
  min-height: calc(100dvh - var(--em-header-h, 84px));
  padding-block: clamp(3rem, 8vw, 6rem);
  display: flex;
  align-items: center;
  background: linear-gradient(180deg, var(--em-sky) 0%, var(--em-white) 65%);
}

.em-404__wrap {
  max-width: 42rem;
  margin-inline: auto;
  text-align: center;
}

.em-404__sweep {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  height: clamp(5rem, 16vw, 8rem);
  margin-bottom: 1rem;
  overflow: hidden;
}

.em-404__digits {
  font-family: var(--em-font-heading);
  font-size: clamp(4rem, 18vw, 9rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--em-navy);
  opacity: 0.08;
  user-select: none;
}

.em-404__broom {
  position: absolute;
  top: 50%;
  left: 50%;
  width: clamp(2.5rem, 6vw, 3.5rem);
  height: auto;
  transform: translate(-50%, -50%);
  filter: drop-shadow(0 10px 16px rgba(8, 40, 70, 0.18));
}

html.em-js .em-404__broom-body {
  transform-box: fill-box;
  transform-origin: 50% 100%;
  animation: em-404-sweep 3.6s cubic-bezier(0.45, 0, 0.55, 1) infinite;
}

@keyframes em-404-sweep {
  0%, 100% {
    transform: translateX(-120%) rotate(-8deg);
  }

  50% {
    transform: translateX(120%) rotate(8deg);
  }
}

.em-eyebrow.em-404__eyebrow {
  justify-content: center;
}

.em-404__title {
  max-width: none;
  margin-inline: auto;
  font-size: clamp(1.875rem, 1.3rem + 2.4vw, 2.75rem);
  letter-spacing: -0.02em;
  text-wrap: balance;
}

.em-404__lead {
  max-width: 34rem;
  margin: 1rem auto 0;
  color: var(--em-muted);
  font-size: clamp(1rem, 0.95rem + 0.3vw, 1.125rem);
  line-height: 1.6;
}

.em-404__search {
  display: flex;
  gap: 0.6rem;
  max-width: 30rem;
  margin: 2rem auto 0;
}

.em-404__search-input {
  flex: 1;
  min-width: 0;
  padding: 0.85rem 1.1rem;
  font: inherit;
  font-size: 0.9375rem;
  color: var(--em-ink);
  background: var(--em-white);
  border: 1px solid var(--em-line);
  border-radius: var(--em-radius-sm);
}

.em-404__search-input:focus-visible {
  outline: 2px solid var(--em-blue);
  outline-offset: 1px;
}

.em-404__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  margin-top: 1.25rem;
}

.em-404__links {
  margin-top: clamp(2.5rem, 5vw, 3.5rem);
  padding-top: clamp(2.5rem, 5vw, 3.5rem);
  border-top: 1px solid var(--em-line);
}

.em-404__links-kicker {
  margin: 0 0 1.25rem;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--em-muted);
}

.em-404__grid {
  display: grid;
  gap: 0.85rem;
  grid-template-columns: 1fr;
  margin: 0;
  padding: 0;
  list-style: none;
  text-align: left;
}

.em-404__card {
  position: relative;
  display: block;
  padding: 1.15rem 2.75rem 1.15rem 1.25rem;
  color: inherit;
  background: var(--em-white);
  border: 1px solid var(--em-line);
  border-radius: var(--em-radius);
  transition: border-color var(--em-transition), transform var(--em-transition), box-shadow var(--em-transition);
}

.em-404__card:hover,
.em-404__card:focus-visible {
  border-color: var(--em-blue);
  transform: translateY(-2px);
  box-shadow: var(--em-shadow-soft);
}

.em-404__card-label {
  display: block;
  font-family: var(--em-font-heading);
  font-weight: 700;
  color: var(--em-navy);
}

.em-404__card-text {
  display: block;
  margin-top: 0.25rem;
  font-size: 0.875rem;
  color: var(--em-muted);
}

.em-404__card-arrow {
  position: absolute;
  top: 50%;
  right: 1.1rem;
  color: var(--em-blue);
  font-size: 1.125rem;
  transform: translateY(-50%);
}

@media (min-width: 42rem) {
  .em-404__grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 62rem) {
  .em-404__grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 780px) {
  .em-404__search {
    flex-direction: column;
  }

  .em-404 {
    padding-bottom: calc(74px + 2.5rem);
  }
}

@media (prefers-reduced-motion: reduce) {
  html.em-js .em-404__broom-body {
    animation: none;
    transform: translateX(0);
  }
}

/* --------------------------------------------------------------------------
   Cookie notice
   --------------------------------------------------------------------------
   A compact card, not a full-width bar or blocking modal. Sits bottom-left
   so it never competes with the back-to-top broom (bottom-right). Choice is
   remembered in localStorage; see assets/js/main.js.
   -------------------------------------------------------------------------- */

.em-cookie {
  position: fixed;
  z-index: 65;
  left: 1.25rem;
  bottom: 1.25rem;
  width: min(23rem, calc(100vw - 2.5rem));
  padding: 1.35rem 1.5rem;
  background: var(--em-white);
  border: 1px solid var(--em-line);
  border-radius: var(--em-radius);
  box-shadow: var(--em-shadow);
  opacity: 0;
  transform: translateY(0.75rem);
  transition: opacity 320ms cubic-bezier(0.2, 0.7, 0.2, 1), transform 320ms cubic-bezier(0.2, 0.7, 0.2, 1);
}

.em-cookie[hidden] {
  display: block;
  visibility: hidden;
  pointer-events: none;
}

.em-cookie.is-visible {
  opacity: 1;
  transform: none;
}

.em-cookie__text {
  margin: 0;
  font-size: 0.875rem;
  line-height: 1.55;
  color: var(--em-ink);
}

.em-cookie__text a {
  color: var(--em-navy);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.15em;
}

.em-cookie__actions {
  display: flex;
  gap: 0.6rem;
  margin-top: 1rem;
}

.em-cookie__btn {
  flex: 1;
  padding: 0.6rem 0.75rem;
  font-size: 0.8125rem;
  font-weight: 700;
  text-align: center;
  border: 1px solid transparent;
  border-radius: var(--em-radius-sm);
  cursor: pointer;
  transition: background-color var(--em-transition), color var(--em-transition), border-color var(--em-transition);
}

.em-cookie__btn--accept {
  color: var(--em-white);
  background: var(--em-navy);
}

.em-cookie__btn--accept:hover {
  background: var(--em-blue);
}

.em-cookie__btn--decline {
  color: var(--em-navy);
  background: transparent;
  border-color: var(--em-line);
}

.em-cookie__btn--decline:hover {
  border-color: var(--em-navy);
}

@media (max-width: 780px) {
  .em-cookie {
    left: 0.75rem;
    right: auto;
    bottom: calc(74px + 0.75rem);
    width: calc(100vw - 5.5rem);
  }
}

@media (prefers-reduced-motion: reduce) {
  .em-cookie {
    transition: opacity 200ms ease;
    transform: none;
  }
}

/* ### Text selection restriction ###
   Disabled site-wide; explicitly re-enabled for form fields (so customers
   can edit what they type) and for promo codes (so they stay copyable).
   Does not affect view-source, DevTools, or scraping — CSS/JS cannot
   restrict those. */
html {
  -webkit-user-select: none;
  user-select: none;
}

input,
textarea,
select,
[contenteditable="true"],
.emh-offer__code,
.emh-offer__code * {
  -webkit-user-select: text;
  user-select: text;
}

img {
  -webkit-user-drag: none;
  user-drag: none;
}
