:root {
  --embody-bg: #fbf9f7;
  --embody-surface: #f2eae2;
  --embody-accent: #a6b6a4;
  --embody-deep: #324037;
  --embody-body: #748276;
  --embody-font-body: "Arimo", Arial, sans-serif;
  --embody-font-display: "Cormorant Garamond", "Times New Roman", serif;
  --bg-rgb: 251 249 247;
  --surface-rgb: 242 234 226;
  --accent-rgb: 166 182 164;
  --deep-rgb: 50 64 55;
  --body-rgb: 116 130 118;
  --layout-max: 1600px;
  --band-pad: clamp(18px, 3.2vw, 34px);
}

html,
body {
  margin: 0;
  background: var(--embody-bg);
  color: var(--embody-deep);
  overflow-x: hidden;
}

body.et_divi_theme,
#page-container,
#et-main-area,
#main-content {
  background: var(--embody-bg);
}

body.et_fixed_nav #page-container,
body.et_pb_pagebuilder_layout #page-container {
  padding-top: 0 !important;
}

#main-header,
#main-footer,
#footer-bottom {
  display: none !important;
}

.site-header,
.site-header *,
.nav-wrap,
.nav-wrap *,
.embody-footer-shell,
.embody-footer-shell * {
  box-sizing: border-box;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  display: grid;
  gap: 0;
  margin: 0;
  background: var(--embody-accent);
}

.site-header > * {
  margin-block: 0 !important;
}

.header-brand {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 224px;
  padding: 22px 24px 18px;
  background: var(--embody-accent);
}

.brand {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}

.brand-logo,
.embody-footer-logo {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 0;
  position: relative;
  isolation: isolate;
}

.brand-logo::before {
  content: "";
  position: absolute;
  inset: 50% auto auto 50%;
  width: 240%;
  height: 240%;
  transform: translate(-50%, -50%);
  border-radius: 999px;
  background:
    radial-gradient(circle,
      rgb(var(--bg-rgb) / 0.95) 0%,
      rgb(var(--bg-rgb) / 0.72) 42%,
      rgb(var(--accent-rgb) / 0.18) 68%,
      rgb(var(--accent-rgb) / 0) 82%);
  filter: blur(48px);
  opacity: 0.9;
  pointer-events: none;
  z-index: -1;
}

.brand-logo .custom-logo,
.brand-logo img,
.embody-footer-logo .custom-logo,
.embody-footer-logo img {
  display: block;
  width: auto;
  height: auto;
  object-fit: contain;
}

.brand-logo .custom-logo,
.brand-logo img {
  max-width: min(520px, 68vw);
  max-height: 204px;
}

.embody-footer-logo .custom-logo,
.embody-footer-logo img {
  max-width: 178px;
}

.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  padding: 16px 24px;
  background: var(--embody-deep);
  border-bottom: 1px solid rgb(var(--bg-rgb) / 0.12);
}

body.page:not(.home) .site-header {
  background: var(--embody-accent) !important;
  background-image: none !important;
}

body.page:not(.home) .header-brand {
  background: var(--embody-accent) !important;
}

body.page:not(.home) .nav-wrap {
  background: var(--embody-deep) !important;
}

.nav-links {
  width: 100%;
}

.nav-links-list {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(16px, 2vw, 38px);
  width: 100%;
  flex-wrap: wrap;
}

.nav-links-list a,
.nav-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: auto;
  min-height: 0;
  padding: 0;
  background: transparent;
  color: var(--embody-bg);
  font-family: var(--embody-font-body);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  transition: color 120ms linear, transform 120ms linear;
}

.mobile_nav .select_page {
  font-family: var(--embody-font-body);
  text-transform: uppercase;
}

.nav-links-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 28px;
  color: rgb(var(--bg-rgb) / 0.78);
  font-family: var(--embody-font-body);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-align: center;
  text-transform: uppercase;
}

.nav-links-list a:hover,
.nav-links-list a[aria-current="page"] {
  color: var(--embody-surface);
}

.embody-footer-shell {
  margin-block-start: 0 !important;
  width: 100vw;
  max-width: none;
  margin-left: calc(50% - 50vw);
  background: var(--embody-accent);
  overflow: clip;
}

.embody-footer-card {
  display: block;
  max-width: var(--layout-max);
  margin-inline: auto;
  padding: clamp(24px, 3.8vw, 40px) var(--band-pad);
  color: var(--embody-deep);
  background: transparent;
  border-radius: 0;
  box-shadow: none;
  overflow: visible;
}

.embody-footer-card > * {
  width: 100%;
  min-width: 0;
}

.embody-footer-main {
  display: grid !important;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(18px, 2.6vw, 34px) !important;
  align-items: start;
  margin-inline: calc(-1 * var(--band-pad));
  padding: clamp(18px, 2.8vw, 28px) var(--band-pad);
  background: transparent;
  box-shadow: none;
  color: var(--embody-deep);
}

.embody-footer-main > .wp-block-column {
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-width: 0;
  align-self: start;
  padding-top: 4px;
  position: relative;
}

.embody-footer-main > .wp-block-column::before {
  content: "";
  display: block;
  width: 100%;
  margin-bottom: 6px;
  border-top: 1px solid rgb(var(--deep-rgb) / 0.18);
}

.embody-footer-brand {
  display: flex;
  align-items: flex-start;
  max-width: none;
  padding: 0;
}

.embody-footer-label {
  margin: 0;
  color: rgb(var(--deep-rgb) / 0.72);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.18em;
}

.embody-footer-links {
  display: grid;
  gap: 10px;
}

.embody-footer-links .wp-block-navigation__container {
  display: grid;
  justify-items: start;
  gap: 10px;
}

.embody-footer-links .wp-block-navigation-item {
  margin: 0;
}

.embody-footer-links a,
.embody-footer-links .wp-block-navigation-item__content {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  color: rgb(var(--deep-rgb) / 0.94);
  font-size: 15px;
  line-height: 1.3;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.16em;
  transition:
    color 120ms linear,
    transform 120ms linear;
}

.embody-footer-links a:hover,
.embody-footer-links .wp-block-navigation-item__content:hover {
  color: var(--embody-deep);
  transform: translateX(2px);
}

.embody-footer-footnote {
  width: 100vw;
  max-width: none;
  margin-left: calc(50% - 50vw);
  background: var(--embody-accent);
  border-top: 1px solid rgb(var(--deep-rgb) / 0.18);
}

.embody-footer-footnote > * {
  max-width: var(--layout-max);
  margin-inline: auto;
}

.embody-footer-footnote p {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  margin: 0;
  padding: 16px var(--band-pad) 18px;
  color: var(--embody-deep);
  font-size: 12px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

/* Divi homepage rebuild: keep the original Embody homepage composition and palette.
   The page content still comes from Gutenberg; these rules make it behave like the
   former block theme while Divi remains the active theme. */
body.home .entry-title,
body.home .main_title,
body.home .post-meta {
  display: none !important;
}

body.home #main-content,
body.home #left-area,
body.home .entry-content {
  width: 100%;
  max-width: none;
}

body.home .entry-content {
  display: grid;
  gap: 0;
}

body.home .entry-content > .alignfull,
body.home .entry-content > .wp-block-group.alignfull,
body.home .entry-content > .wp-block-columns.alignfull {
  width: 100vw;
  max-width: none;
  margin-inline: calc(50% - 50vw);
}

body.home .entry-content > .alignfull {
  margin-block: 0;
}

body.home .embody-hero,
body.home .embody-home-section,
body.home .embody-footer-shell {
  border-radius: 0 !important;
}

body.home .embody-home-hero {
  position: relative;
  isolation: isolate;
  margin-top: -1px;
  padding-top: 0;
}

body.home .embody-home-hero > .wp-block-columns {
  display: grid;
  grid-template-columns: 1.08fr 0.92fr;
  gap: 12px !important;
  max-width: var(--layout-max);
  margin-inline: auto;
  padding: 10px;
  background: var(--embody-accent);
  box-shadow: 0 18px 44px rgb(var(--deep-rgb) / 0.07);
  border: 1px solid rgb(var(--accent-rgb) / 0.14);
  min-height: clamp(300px, 50vh, 700px);
  overflow: hidden;
}

body.home .embody-home-hero-panel,
body.home .embody-home-hero-visual {
  min-height: 100%;
}

body.home .embody-home-hero-panel {
  position: relative;
  overflow: hidden;
  box-shadow: inset 0 0 0 1px rgb(var(--deep-rgb) / 0.08);
  color: var(--embody-deep);
  gap: 10px;
  padding: 22px;
  background: var(--embody-bg);
  justify-content: flex-start;
  text-align: left;
}

body.home .embody-home-hero-panel::before,
body.home .embody-home-hero-panel::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
}

body.home .embody-home-hero-panel::before {
  top: -12%;
  right: -14%;
  width: 240px;
  height: 240px;
  background: radial-gradient(circle at 35% 35%, rgb(var(--accent-rgb) / 0.18), rgb(var(--accent-rgb) / 0) 68%);
}

body.home .embody-home-hero-panel::after {
  left: -30px;
  bottom: -42px;
  width: 180px;
  height: 180px;
  background: radial-gradient(circle at 55% 55%, rgb(var(--bg-rgb) / 0.38), rgb(var(--bg-rgb) / 0) 68%);
}

body.home .embody-home-hero-copywrap {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 10px;
}

body.home .embody-home-hero-actions {
  position: relative;
  z-index: 1;
  margin-top: 8px;
}

body.home .embody-home-hero-title {
  max-width: 22ch;
  font-size: clamp(34px, 4.8vw, 56px);
  line-height: 0.96;
}

body.home .embody-home-hero-copy {
  width: 100%;
  max-width: 100%;
}

body.home .embody-home-hero-visual {
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
  padding: 0;
  background: transparent;
}

body.home .embody-home-hero-visual > .wp-block-image {
  flex: 1 1 auto;
  min-height: 0;
  width: 100%;
  height: 100%;
  display: block;
  position: relative;
}

body.home .embody-home-hero-visual > .wp-block-image > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 20%;
}

body.home .embody-home-section {
  gap: 10px;
  padding-block: 16px !important;
}

body.home .embody-home-section > h2,
body.home .embody-home-section .embody-section-title {
  font-size: 24px;
  line-height: 1;
}

body.home .embody-home-services {
  margin-inline: calc(50% - 50vw) !important;
  padding-inline: max(var(--band-pad), calc((100vw - var(--layout-max)) / 2 + var(--band-pad))) !important;
  background: var(--embody-deep) !important;
  color: var(--embody-bg) !important;
}

body.home .embody-home-services,
body.home .embody-home-testimonials {
  margin-block: 0 !important;
}

body.home .embody-home-services-intro {
  margin: 10px 0 34px;
}

body.home .embody-home-services-intro-header {
  display: grid;
  gap: 10px;
  margin-bottom: 8px;
}

body.home .embody-home-services-intro-grid {
  gap: 32px;
}

body.home .embody-home-services-intro-grid > .wp-block-column {
  min-width: 0;
}

body.home .embody-home-services-intro-main,
body.home .embody-home-services-intro-aside,
body.home .embody-home-services-intro-card,
body.home .embody-home-location-card,
body.home .embody-home-quote-card {
  border-width: 1px;
  border-style: solid;
  border-color: rgb(var(--accent-rgb) / 0.26);
  border-radius: var(--radius-card);
  box-shadow: none;
}

body.home .embody-home-services-intro-card {
  border-width: 0;
}

body.home .embody-home-services-intro-main {
  gap: 16px;
  padding: 24px;
  background: transparent;
  min-height: 100%;
}

body.home .embody-home-services-intro-aside {
  gap: 24px;
  padding: 28px 30px;
  background: transparent;
  min-height: 100%;
}

body.home .embody-home-services-intro-lead,
body.home .embody-home-services-intro-copy,
body.home .embody-home-service-index,
body.home .embody-home-quote-card .embody-micro {
  color: var(--embody-bg);
}

body.home .embody-home-services h2,
body.home .embody-home-services h3,
body.home .embody-home-services p,
body.home .embody-home-services li,
body.home .embody-home-services .embody-micro,
body.home .embody-home-services .embody-eyebrow {
  color: var(--embody-bg);
}

body.home .embody-home-services .embody-home-service-card h3,
body.home .embody-home-services .embody-home-service-card p,
body.home .embody-home-services .embody-home-service-card li,
body.home .embody-home-services .embody-home-service-card .embody-micro,
body.home .embody-home-services .embody-home-service-card .embody-eyebrow {
  color: var(--embody-bg);
}

body.home .embody-home-services .wp-block-buttons {
  margin-top: 14px;
  margin-bottom: 24px;
}

body.home .embody-home-testimonials {
  background: var(--embody-bg);
  color: var(--embody-deep);
}

body.home .embody-home-testimonial-grid {
  gap: 18px !important;
}

body.home .embody-home-quote-card {
  display: grid;
  gap: 12px;
  padding: 28px 30px;
  background:
    linear-gradient(180deg, color-mix(in srgb, var(--accent) 74%, var(--bg) 26%), color-mix(in srgb, var(--accent) 62%, var(--bg) 38%));
}

body.home .embody-home-quote-card h3 {
  max-width: none;
  font-size: 18px;
  line-height: 1.1;
}

body.home .embody-home-quote-card p {
  font-size: 15px !important;
  line-height: 1.68 !important;
}

body.home .embody-home-contact {
  margin-inline: calc(50% - 50vw) !important;
  padding-inline: max(var(--band-pad), calc((100vw - var(--layout-max)) / 2 + var(--band-pad))) !important;
  background: var(--embody-accent) !important;
}

body.home .contact-grid,
body.home .embody-home-location-grid {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px !important;
}

body.home .contact-grid > .wp-block-column,
body.home .embody-home-location-grid > .wp-block-column {
  min-width: 0;
}

body.home .embody-home-location-card {
  min-height: 0;
  margin: 0 !important;
  padding: 26px 28px;
  clip-path: inset(0 round 11px);
  background: var(--embody-deep);
  color: var(--embody-bg);
}

body.home .embody-home-location-card h3 {
  max-width: 18ch;
  font-size: clamp(24px, 2.2vw, 34px);
  color: var(--embody-bg);
}

body.home .embody-home-location-card p,
body.home .embody-home-location-card .embody-micro {
  color: var(--embody-bg);
}

body.home .embody-home-location-content {
  display: grid;
  gap: 14px;
  align-content: start;
}

body.home .embody-home-location-content .wp-block-buttons {
  margin-top: 2px;
}

body.home .embody-home-location-content p a {
  color: var(--embody-bg);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.16em;
  font-weight: 600;
}

body.home .embody-home-location-content p a:hover {
  color: color-mix(in srgb, var(--embody-bg) 88%, var(--embody-accent) 12%);
}

body.home .embody-home-location-map {
  padding: 16px;
  background: color-mix(in srgb, var(--embody-deep) 92%, var(--embody-accent) 8%);
}

body.home .embody-home-location-map .embody-micro {
  margin-bottom: 6px;
}

body.home .embody-home-location-map .embody-map-embed {
  margin: 0;
}

body.home .embody-map-embed iframe {
  width: 100%;
  min-height: 220px;
  border: 0;
}

body.home .embody-home-location-card :is(h1, h2, h3, h4, h5, h6, p, li, dt, dd, label, summary, figcaption, blockquote, cite, a) {
  color: var(--embody-bg);
}

body.home .wp-block-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
  justify-content: flex-start;
}

body.home .wp-block-button__link {
  min-height: 48px;
  padding: 13px 18px;
  border-radius: var(--radius-panel);
  border: 1px solid transparent;
}

body.home .button,
body.home .wp-block-button__link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(180deg, rgb(var(--bg-rgb) / 0.68), rgb(var(--surface-rgb) / 0.92));
  color: var(--embody-deep);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.13em;
  font-weight: 700;
  box-shadow:
    0 10px 20px rgb(var(--deep-rgb) / 0.06),
    inset 0 0 0 1px rgb(var(--bg-rgb) / 0.62);
  transition:
    transform 120ms linear,
    background-color 120ms linear,
    color 120ms linear,
    box-shadow 120ms linear,
    border-color 120ms linear;
}

body.home .wp-block-button.is-style-embody-primary .wp-block-button__link,
body.home .is-style-embody-primary .wp-block-button__link,
body.home .wp-block-button.is-style-embody-outline .wp-block-button__link {
  background: var(--embody-bg);
  color: var(--embody-deep);
  border-color: rgb(var(--bg-rgb) / 0.3);
}

body.home .embody-home-contact .wp-block-button.is-style-embody-outline .wp-block-button__link,
body.home .embody-home-location-card .wp-block-button.is-style-embody-outline .wp-block-button__link {
  background: rgb(var(--bg-rgb) / 0.92);
  color: var(--embody-deep);
  border-color: rgb(var(--bg-rgb) / 0.38);
}

body.home .button:hover,
body.home .wp-block-button__link:hover {
  transform: translateY(-1px);
  box-shadow:
    0 12px 24px rgb(var(--deep-rgb) / 0.08),
    inset 0 0 0 1px rgb(var(--bg-rgb) / 0.72);
}

body.home .embody-home-services-intro-main,
body.home .embody-home-services-intro-aside {
  margin: 0 !important;
  align-self: stretch;
}

body.home .embody-home-services-intro-card {
  background: var(--embody-surface);
}

body.home .embody-home-services-intro-card .wp-block-columns {
  gap: 0 !important;
}

body.home .embody-home-services-intro-list {
  margin: 0;
  gap: 6px;
}

body.home .embody-home-services-intro-list li {
  padding-top: 2px;
  padding-bottom: 2px;
  color: var(--embody-deep);
}

body.home .embody-home-services .embody-home-service-card {
  background: var(--embody-surface);
  color: var(--embody-deep);
}

body.home .embody-home-testimonials .embody-home-quote-card {
  color: var(--embody-deep);
}

body.home .embody-home-testimonials .embody-home-quote-card .embody-micro {
  color: rgb(var(--body-rgb) / 0.88);
}

body.home .embody-home-section h2,
body.home .embody-home-section h3,
body.home .embody-home-section p,
body.home .embody-home-section li {
  margin-top: 0;
}

@media (max-width: 1100px) {
  .embody-footer-main {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }

  body.home .embody-home-hero > .wp-block-columns {
    grid-template-columns: 1fr;
  }

  body.home .embody-home-hero-visual {
    min-height: 320px;
  }

  body.home .contact-grid,
  body.home .embody-home-location-grid {
    grid-template-columns: 1fr !important;
  }
}

@media (max-width: 700px) {
  .header-brand {
    min-height: 156px;
    padding: 18px 14px 12px;
  }

  .brand-logo::before {
    width: 320%;
    height: 320%;
    filter: blur(56px);
    opacity: 0.95;
  }

  .nav-wrap {
    padding: 14px 16px;
  }

  .nav-links-list {
    gap: 12px 18px;
  }

  .embody-footer-main {
    grid-template-columns: 1fr !important;
  }

  body.home .embody-home-hero > .wp-block-columns,
  body.home .contact-grid,
  body.home .embody-home-location-grid,
  body.home .embody-home-testimonials > .wp-block-columns,
  body.home .embody-home-testimonials .embody-home-testimonial-grid {
    grid-template-columns: 1fr !important;
  }

  body.home .embody-home-hero-panel,
  body.home .embody-home-services-intro-main,
  body.home .embody-home-services-intro-aside,
  body.home .embody-home-location-card,
  body.home .embody-home-quote-card {
    padding: 18px;
  }

  body.home .embody-home-location-card h3 {
    max-width: none;
  }
}


@media (max-width: 980px) {
  .header-brand {
    min-height: 180px;
  }

  .brand-logo .custom-logo,
  .brand-logo img {
    max-width: min(420px, 78vw);
    max-height: 168px;
  }

  .nav-links-list {
    gap: 14px 24px;
  }
}
