:root {
  --mevoot-action-bar-height: 64px;
  --mevoot-radius-sm: 12px;
  --mevoot-radius-md: 18px;
  --mevoot-radius-lg: 28px;
  --mevoot-border: color-mix(in srgb, var(--wp--preset--color--ink) 12%, transparent);
  --mevoot-border-strong: color-mix(in srgb, var(--wp--preset--color--ink) 20%, transparent);
  --mevoot-shadow-sm: 0 8px 28px rgb(23 53 47 / 0.07);
  --mevoot-shadow-md: 0 18px 48px rgb(23 53 47 / 0.11);
}

html,
body {
  max-width: 100%;
}

html {
  scroll-behavior: smooth;
}

body {
  overflow-x: clip;
  text-align: start;
  background: var(--wp--preset--color--paper);
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

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

.wp-site-blocks,
.wp-block-group,
.wp-block-columns,
.wp-block-column,
.wp-block-navigation {
  min-width: 0;
}

.wp-site-blocks {
  overflow: clip;
}

a {
  text-underline-offset: 0.18em;
  text-decoration-thickness: 1px;
}

a:hover {
  text-decoration-thickness: 2px;
}

.mevoot-focus-ring:focus-visible,
.mevoot-action-bar a:focus-visible,
:where(a, button, input, select, textarea):focus-visible {
  outline: 3px solid var(--wp--preset--color--action);
  outline-offset: 3px;
}

.wp-block-button__link,
.mevoot-lead-form__submit {
  min-height: 46px;
  transition: transform 160ms ease, box-shadow 160ms ease, background-color 160ms ease, border-color 160ms ease;
}

.wp-block-button__link:hover,
.mevoot-lead-form__submit:hover {
  transform: translateY(-1px);
  box-shadow: 0 9px 22px rgb(23 53 47 / 0.15);
}

.wp-block-button.is-style-outline .wp-block-button__link {
  border: 1px solid var(--mevoot-border-strong);
  background: color-mix(in srgb, var(--wp--preset--color--paper) 72%, transparent);
}

/* Header */
.mevoot-header {
  position: relative;
  z-index: 40;
  border-bottom: 1px solid var(--mevoot-border);
  box-shadow: 0 4px 18px rgb(23 53 47 / 0.025);
}

.mevoot-header__inner {
  display: grid !important;
  grid-template-columns: auto 1fr auto;
  grid-template-rows: auto auto;
  align-items: center;
  gap: 0.65rem 1.25rem;
}

.mevoot-header .wp-block-site-logo {
  grid-column: 3;
  grid-row: 1;
  justify-self: end;
  line-height: 0;
}

.mevoot-header .wp-block-site-logo img {
  width: min(130px, 26vw);
  height: auto;
}

.mevoot-header__cta {
  grid-column: 1;
  grid-row: 1;
  justify-self: start;
}

.mevoot-header__cta .wp-block-button__link {
  white-space: nowrap;
}

.mevoot-header__nav {
  grid-column: 1 / -1;
  grid-row: 2;
  width: 100%;
  padding-top: 0.65rem;
  border-top: 1px solid var(--mevoot-border);
}

.mevoot-header__nav .wp-block-navigation__container {
  width: 100%;
  justify-content: center;
  column-gap: clamp(0.8rem, 1.7vw, 1.55rem);
  row-gap: 0.5rem;
}

.mevoot-header__nav .wp-block-navigation-item__content {
  position: relative;
  white-space: nowrap;
  text-decoration: none;
  color: var(--wp--preset--color--ink);
}

.mevoot-header__nav .wp-block-navigation-item__content::after {
  content: "";
  position: absolute;
  inset-inline: 0;
  bottom: -0.35rem;
  height: 2px;
  border-radius: 999px;
  background: var(--wp--preset--color--action);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 160ms ease;
}

.mevoot-header__nav .wp-block-navigation-item__content:hover::after,
.mevoot-header__nav .current-menu-item > .wp-block-navigation-item__content::after {
  transform: scaleX(1);
}

/* Hero */
.mevoot-hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background:
    radial-gradient(circle at 86% 22%, color-mix(in srgb, var(--wp--preset--color--accent) 34%, transparent) 0 12rem, transparent 12.1rem),
    radial-gradient(circle at 8% 92%, color-mix(in srgb, var(--wp--preset--color--action) 10%, transparent) 0 15rem, transparent 15.1rem),
    linear-gradient(135deg, #fffefb 0%, var(--wp--preset--color--paper) 52%, #f7f1e6 100%) !important;
}

.mevoot-hero::after {
  content: "";
  position: absolute;
  z-index: -1;
  width: min(30rem, 48vw);
  aspect-ratio: 1;
  inset-inline-start: -8rem;
  top: 3rem;
  border: 1px solid color-mix(in srgb, var(--wp--preset--color--accent) 48%, transparent);
  border-radius: 50%;
}

.mevoot-hero__inner {
  margin-inline: auto;
  text-align: center;
}

.mevoot-eyebrow,
.mevoot-section-kicker,
.mevoot-team-card__role {
  margin-bottom: 0.6rem;
  font-weight: 800;
  letter-spacing: 0.01em;
}

.mevoot-hero h1 {
  max-width: 920px;
  margin-inline: auto;
  margin-bottom: 1.25rem;
  letter-spacing: -0.035em;
  text-wrap: balance;
}

.mevoot-hero__lead {
  max-width: 780px;
  margin-inline: auto;
  color: color-mix(in srgb, var(--wp--preset--color--ink) 82%, var(--wp--preset--color--muted));
  text-wrap: pretty;
}

.mevoot-hero__actions {
  justify-content: center;
  margin-top: 1.65rem;
}

.mevoot-hero__proof {
  justify-content: center !important;
  gap: 0.7rem !important;
  margin-top: 2rem;
}

.mevoot-hero__proof p {
  margin: 0;
  padding: 0.48rem 0.85rem;
  border: 1px solid var(--mevoot-border);
  border-radius: 999px;
  background: rgb(255 255 255 / 0.62);
  backdrop-filter: blur(8px);
}

/* Shared section language */
.mevoot-services,
.mevoot-team,
.mevoot-knowledge {
  background: #f6f3ec;
}

.mevoot-section-intro {
  max-width: 720px;
  margin-inline: auto;
  margin-bottom: 2.4rem;
  text-wrap: pretty;
}

.mevoot-services h2,
.mevoot-family-story > h2,
.mevoot-team h2,
.mevoot-knowledge h2,
.mevoot-lead-section h2 {
  margin-top: 0;
  text-wrap: balance;
}

/* Trust strip */
.mevoot-trust-strip {
  box-shadow: inset 0 1px rgb(255 255 255 / 0.07), inset 0 -1px rgb(255 255 255 / 0.07);
}

.mevoot-trust-strip .wp-block-columns {
  margin-bottom: 0;
  gap: 0;
}

.mevoot-trust-strip .wp-block-column {
  padding: 0.2rem 1.25rem;
}

.mevoot-trust-strip .wp-block-column + .wp-block-column {
  border-inline-start: 1px solid rgb(255 255 255 / 0.18);
}

.mevoot-trust-strip p {
  margin: 0;
  line-height: 1.55;
  color: rgb(252 250 245 / 0.78);
}

.mevoot-trust-strip strong {
  display: inline-block;
  margin-bottom: 0.2rem;
  color: var(--wp--preset--color--paper);
  font-size: 1.05rem;
}

/* Cards */
.mevoot-service-row,
.mevoot-team-grid,
.mevoot-knowledge-grid,
.mevoot-benefits {
  gap: 1.25rem;
}

.mevoot-service-card,
.mevoot-team-card,
.mevoot-knowledge-card,
.mevoot-benefit-card {
  position: relative;
  padding: clamp(1.4rem, 2.6vw, 2rem) !important;
  border: 1px solid var(--mevoot-border);
  border-radius: var(--mevoot-radius-md);
  background: var(--wp--preset--color--paper) !important;
  box-shadow: var(--mevoot-shadow-sm);
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.mevoot-service-card:hover,
.mevoot-team-card:hover,
.mevoot-knowledge-card:hover {
  transform: translateY(-4px);
  border-color: color-mix(in srgb, var(--wp--preset--color--action) 35%, var(--mevoot-border));
  box-shadow: var(--mevoot-shadow-md);
}

.mevoot-service-card::before,
.mevoot-knowledge-card::before {
  content: "";
  position: absolute;
  top: 0;
  inset-inline: 1.5rem;
  height: 3px;
  border-radius: 0 0 999px 999px;
  background: linear-gradient(90deg, var(--wp--preset--color--action), var(--wp--preset--color--accent));
}

.mevoot-service-card h3,
.mevoot-team-card h3,
.mevoot-knowledge-card h3,
.mevoot-benefit-card h3 {
  margin-top: 0.25rem;
  margin-bottom: 0.65rem;
}

.mevoot-service-card h3 a,
.mevoot-knowledge-card h3 a {
  text-decoration: none;
}

.mevoot-service-card > p:not(.mevoot-card-link),
.mevoot-team-card > p:not(.mevoot-card-link),
.mevoot-knowledge-card > p:not(.mevoot-card-link),
.mevoot-benefit-card > p {
  color: var(--wp--preset--color--muted);
}

.mevoot-card-link {
  margin-top: auto;
  margin-bottom: 0;
  font-weight: 750;
}

.mevoot-card-link a {
  color: var(--wp--preset--color--action);
  text-decoration: none;
}

.mevoot-card-link a::after {
  content: " ←";
}

/* Family story */
.mevoot-family-story {
  position: relative;
}

.mevoot-benefit-card {
  box-shadow: none;
}

.mevoot-benefit-card::before {
  content: "";
  display: block;
  width: 2.25rem;
  height: 0.22rem;
  margin-bottom: 1.15rem;
  border-radius: 999px;
  background: var(--wp--preset--color--action);
}

.mevoot-story-panel {
  margin-top: 3rem;
  padding: clamp(1.7rem, 4vw, 3rem);
  border: 1px solid color-mix(in srgb, var(--wp--preset--color--accent) 65%, transparent);
  border-radius: var(--mevoot-radius-lg);
  background: linear-gradient(135deg, #f6efe2, #fffdf8);
}

.mevoot-story-panel > * {
  max-width: 820px;
}

/* Claims */
.mevoot-claims {
  background: linear-gradient(135deg, #17352f 0%, #244b43 100%) !important;
}

.mevoot-claims__panel {
  position: relative;
  padding-inline-end: clamp(0rem, 7vw, 5rem);
}

.mevoot-claims__panel::before {
  content: "";
  position: absolute;
  inset-inline-end: 0;
  top: 0.3rem;
  width: 3px;
  height: 72%;
  border-radius: 999px;
  background: var(--wp--preset--color--accent);
}

.mevoot-claims__panel > p,
.mevoot-claims__panel > h2 {
  max-width: 850px;
}

/* Team */
.mevoot-team-card {
  min-height: 100%;
}

.mevoot-team-card__role {
  margin-top: 0;
}

/* Knowledge */
.mevoot-knowledge-card {
  min-height: 100%;
}

.mevoot-knowledge > .wp-block-buttons {
  margin-top: 2rem;
}

/* Lead capture */
.mevoot-lead-section {
  background:
    radial-gradient(circle at 12% 20%, rgb(217 200 169 / 0.18) 0 12rem, transparent 12.2rem),
    linear-gradient(135deg, #17352f 0%, #102923 100%) !important;
}

.mevoot-lead-section__inner > .mevoot-section-intro {
  color: rgb(252 250 245 / 0.78);
}

.mevoot-lead-card {
  max-width: 880px;
  margin-top: 2rem;
  margin-inline: auto;
  padding: clamp(1.25rem, 3vw, 2.25rem);
  border: 1px solid rgb(255 255 255 / 0.12);
  border-radius: var(--mevoot-radius-lg);
  background: var(--wp--preset--color--paper);
  color: var(--wp--preset--color--ink);
  box-shadow: 0 30px 70px rgb(0 0 0 / 0.18);
}

.mevoot-lead-card .mevoot-lead-form {
  inline-size: 100%;
}

.mevoot-lead-card .mevoot-lead-form__submit {
  width: 100%;
  border-radius: 999px;
}

/* Generic content pages */
body:not(.home) main.wp-block-group {
  max-width: 1080px;
  margin-inline: auto;
}

body:not(.home) main.wp-block-group > .wp-block-post-title {
  max-width: 900px;
  margin-bottom: 2rem;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid var(--mevoot-border);
  letter-spacing: -0.025em;
}

body:not(.home) .wp-block-post-content > h2 {
  margin-top: 2.75rem;
}

body:not(.home) .wp-block-post-content > h3 {
  margin-top: 2rem;
}

body:not(.home) .wp-block-post-content p,
body:not(.home) .wp-block-post-content li {
  line-height: 1.8;
}

body:not(.home) .mevoot-content-cta {
  margin-top: 2rem;
  padding: 1.25rem;
  border-radius: var(--mevoot-radius-md);
  background: #f4eee3;
}

body:not(.home) .mevoot-content-cta .wp-element-button {
  display: inline-flex;
  border-radius: 999px;
  background: var(--wp--preset--color--action);
  color: var(--wp--preset--color--paper);
  text-decoration: none;
}

/* Footer */
footer.wp-block-group {
  border-top: 1px solid rgb(255 255 255 / 0.08);
}

footer.wp-block-group > .wp-block-group.alignwide {
  gap: clamp(2rem, 6vw, 5rem) !important;
}

footer.wp-block-group a {
  color: var(--wp--preset--color--paper);
  text-decoration-color: rgb(252 250 245 / 0.35);
}

footer.wp-block-group .wp-block-navigation-item__content {
  padding-block: 0.2rem;
}

/* Generic utility */
.mevoot-card-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--wp--preset--spacing--50);
}

.mevoot-action-bar {
  display: none;
}

@media (max-width: 68rem) {
  .mevoot-header__nav .wp-block-navigation__container {
    column-gap: 0.8rem;
  }

  .mevoot-header__nav {
    font-size: 0.86rem;
  }
}

@media (max-width: 48rem) {
  .wp-site-blocks {
    padding-bottom: calc(var(--mevoot-action-bar-height) + env(safe-area-inset-bottom));
  }

  .wp-block-columns {
    gap: var(--wp--preset--spacing--40);
  }

  .mevoot-header {
    padding-block: 0.7rem !important;
  }

  .mevoot-header__inner {
    grid-template-columns: 1fr auto;
    grid-template-rows: auto;
    gap: 0.75rem;
  }

  .mevoot-header .wp-block-site-logo {
    grid-column: 2;
    grid-row: 1;
  }

  .mevoot-header .wp-block-site-logo img {
    width: 108px;
  }

  .mevoot-header__nav {
    grid-column: 1;
    grid-row: 1;
    justify-self: start;
    width: auto;
    padding-top: 0;
    border-top: 0;
  }

  .mevoot-header__cta {
    display: none;
  }

  .wp-block-navigation__responsive-container.is-menu-open {
    padding: 1.25rem !important;
    background: var(--wp--preset--color--paper) !important;
  }

  .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__container {
    gap: 0.65rem;
    font-size: 1.1rem;
  }

  .mevoot-hero {
    padding-block: clamp(3.4rem, 11vw, 5rem) !important;
  }

  .mevoot-hero h1 {
    font-size: clamp(2.35rem, 11vw, 3.5rem) !important;
  }

  .mevoot-hero__proof {
    gap: 0.45rem !important;
  }

  .mevoot-hero__proof p {
    padding: 0.42rem 0.65rem;
  }

  .mevoot-trust-strip .wp-block-columns {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0;
  }

  .mevoot-trust-strip .wp-block-column {
    padding: 0.85rem 0.6rem;
    border: 0 !important;
  }

  .mevoot-trust-strip .wp-block-column:nth-child(even) {
    border-inline-start: 1px solid rgb(255 255 255 / 0.14) !important;
  }

  .mevoot-trust-strip .wp-block-column:nth-child(n + 3) {
    border-top: 1px solid rgb(255 255 255 / 0.14) !important;
  }

  .mevoot-service-card,
  .mevoot-team-card,
  .mevoot-knowledge-card,
  .mevoot-benefit-card {
    padding: 1.35rem !important;
  }

  .mevoot-story-panel {
    padding: 1.45rem;
  }

  .mevoot-claims__panel {
    padding-inline-end: 1.1rem;
  }

  .mevoot-claims__panel::before {
    height: 55%;
  }

  body:not(.home) main.wp-block-group {
    padding-top: 2.5rem !important;
    padding-bottom: 3.5rem !important;
  }

  .mevoot-action-bar {
    position: fixed;
    z-index: 1000;
    inset-inline: 0;
    bottom: 0;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    min-height: var(--mevoot-action-bar-height);
    background: var(--wp--preset--color--paper);
    border-block-start: 1px solid var(--mevoot-border);
    box-shadow: 0 -8px 24px rgb(23 53 47 / 0.10);
    transition: box-shadow 160ms ease, transform 160ms ease;
  }

  .mevoot-action-bar.is-raised {
    box-shadow: 0 -10px 30px rgb(23 53 47 / 0.18);
  }

  .mevoot-action-bar__link {
    min-width: 0;
    min-height: 44px;
    padding-block: 0.65rem calc(0.65rem + env(safe-area-inset-bottom));
    padding-inline: 0.35rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--wp--preset--color--ink);
    font-size: 0.9rem;
    font-weight: 750;
    line-height: 1.2;
    text-decoration: none;
    overflow-wrap: anywhere;
  }

  .mevoot-action-bar__link + .mevoot-action-bar__link {
    border-inline-start: 1px solid var(--mevoot-border);
  }

  .mevoot-action-bar__link--primary {
    color: var(--wp--preset--color--paper);
    background: var(--wp--preset--color--action);
  }
}

@media (min-width: 48.0625rem) {
  .mevoot-card-grid {
    grid-template-columns: repeat(auto-fit, minmax(min(16rem, 100%), 1fr));
  }
}

@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;
  }
}
