/*
Theme Name: Mevoot
Text Domain: mevoot
Version: 0.3.0
*/

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: #fcfaf5;
  color: #17352f;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a,
button,
input,
select,
textarea {
  transition: color 160ms ease, background-color 160ms ease, border-color 160ms ease,
    box-shadow 160ms ease, transform 160ms ease, outline-color 120ms ease, outline-offset 120ms ease;
}

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

.wp-site-blocks {
  min-height: 100vh;
  overflow: clip;
}

.wp-block-navigation a,
.wp-block-site-title a {
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
}

.wp-block-button__link {
  min-height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 22px rgba(23, 53, 47, 0.1);
}

.wp-block-button__link:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 28px rgba(23, 53, 47, 0.16);
}

.wp-block-button.is-style-outline .wp-block-button__link {
  background: rgba(255, 255, 255, 0.66);
  border-color: rgba(23, 53, 47, 0.28);
  color: var(--wp--preset--color--ink);
  box-shadow: none;
}

/* Header */
header.wp-block-group {
  position: relative;
  z-index: 20;
  border-bottom: 1px solid rgba(23, 53, 47, 0.09);
  box-shadow: 0 4px 24px rgba(23, 53, 47, 0.045);
  backdrop-filter: blur(12px);
}

header.wp-block-group > .wp-block-group.alignwide {
  display: grid !important;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: clamp(0.65rem, 1.5vw, 1.5rem);
  width: min(100%, 1240px);
  margin-inline: auto;
}

header.wp-block-group .wp-block-site-logo {
  margin: 0;
  line-height: 0;
}

header.wp-block-group .wp-block-site-logo img {
  display: block;
  width: 118px !important;
  max-width: 118px;
  height: auto;
}

header.wp-block-group .wp-block-navigation {
  min-width: 0;
  width: 100%;
  justify-self: center;
}

header.wp-block-group .wp-block-navigation__container {
  width: 100%;
  justify-content: center;
  flex-wrap: nowrap;
  gap: clamp(0.35rem, 0.75vw, 0.75rem);
}

header.wp-block-group .wp-block-navigation-item__content {
  white-space: nowrap;
  text-decoration: none;
  padding-block: 0.45rem;
  color: #264840;
}

header.wp-block-group .wp-block-navigation-item__content:hover {
  color: #9a4b3f;
}

header.wp-block-group .wp-block-buttons {
  margin: 0;
  flex-wrap: nowrap;
  justify-self: end;
}

header.wp-block-group .wp-block-button__link {
  white-space: nowrap;
  min-height: 44px;
  padding: 0.68rem 1.15rem;
  font-size: 0.94rem;
}

/* Hero */
.mevoot-hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background:
    radial-gradient(circle at 82% 12%, rgba(217, 200, 169, 0.34), transparent 31rem),
    linear-gradient(180deg, #fcfaf5 0%, #f8f4ec 100%);
}

.mevoot-hero::after {
  content: "";
  position: absolute;
  inset-inline-start: -6rem;
  bottom: -10rem;
  width: 25rem;
  height: 25rem;
  border-radius: 50%;
  border: 1px solid rgba(23, 53, 47, 0.08);
  box-shadow: 0 0 0 3rem rgba(23, 53, 47, 0.018), 0 0 0 6rem rgba(23, 53, 47, 0.012);
  z-index: -1;
}

.mevoot-hero__inner {
  max-width: 980px;
  text-align: center;
}

.mevoot-eyebrow,
.mevoot-section-kicker {
  margin-bottom: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.015em;
}

.mevoot-hero h1 {
  max-width: 900px;
  margin: 0 auto;
  text-wrap: balance;
}

.mevoot-hero__lead {
  max-width: 780px;
  margin-inline: auto;
  color: #51635d;
  line-height: 1.7;
  text-wrap: pretty;
}

.mevoot-hero__actions {
  justify-content: center;
  margin-top: 1.75rem;
  gap: 0.8rem;
}

.mevoot-hero__proof {
  justify-content: center !important;
  gap: 0.65rem 1.6rem;
  margin-top: 2.25rem;
  color: #53645f;
}

.mevoot-hero__proof p {
  position: relative;
  margin: 0;
}

.mevoot-hero__proof p:not(:last-child)::after {
  content: "";
  position: absolute;
  inset-inline-end: -0.85rem;
  top: 50%;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: #c4a566;
}

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

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

.mevoot-trust-strip .wp-block-column {
  padding: 0.35rem 1.25rem;
  border-inline-start: 1px solid rgba(252, 250, 245, 0.14);
}

.mevoot-trust-strip .wp-block-column:first-child {
  border-inline-start: 0;
}

.mevoot-trust-strip p {
  margin: 0;
  line-height: 1.55;
  color: rgba(252, 250, 245, 0.82);
}

.mevoot-trust-strip strong {
  display: inline-block;
  margin-bottom: 0.25rem;
  color: #fff;
  font-size: 1.05rem;
}

/* Shared section rhythm */
.mevoot-services,
.mevoot-family-story,
.mevoot-claims,
.mevoot-team,
.mevoot-knowledge,
.mevoot-lead-cta {
  position: relative;
}

.mevoot-section-intro {
  max-width: 700px;
  margin-inline: auto;
  margin-bottom: 2.5rem;
  line-height: 1.75;
}

/* Service cards */
.mevoot-service-row {
  gap: 1.15rem;
  margin-bottom: 1.15rem;
}

.mevoot-service-card {
  position: relative;
  padding: clamp(1.35rem, 2vw, 1.8rem);
  border: 1px solid rgba(23, 53, 47, 0.1);
  border-radius: 18px;
  box-shadow: 0 10px 34px rgba(23, 53, 47, 0.055);
  overflow: hidden;
}

.mevoot-service-card::before {
  content: "";
  position: absolute;
  top: 0;
  inset-inline: 0;
  height: 3px;
  background: linear-gradient(90deg, #17352f, #d9c8a9);
  opacity: 0.85;
}

.mevoot-service-card:hover {
  transform: translateY(-3px);
  border-color: rgba(23, 53, 47, 0.18);
  box-shadow: 0 16px 42px rgba(23, 53, 47, 0.09);
}

.mevoot-service-card h3 {
  margin-top: 0.15rem;
  margin-bottom: 0.65rem;
}

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

.mevoot-service-card > p:not(.mevoot-card-link) {
  color: #66736d;
}

.mevoot-card-link {
  margin-top: 1.2rem;
  margin-bottom: 0;
  font-size: 0.95rem;
  font-weight: 700;
}

.mevoot-card-link a {
  color: #9a4b3f;
  text-decoration: none;
}

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

/* Content panels */
.mevoot-family-story .wp-block-group,
.mevoot-claims .wp-block-group,
.mevoot-team .wp-block-group,
.mevoot-knowledge .wp-block-group {
  border-radius: 20px;
}

.mevoot-family-story img,
.mevoot-team img,
.mevoot-knowledge img {
  border-radius: 16px;
}

/* Forms */
.mevoot-lead-form,
.mevoot-contact-form {
  max-width: 760px;
  margin-inline: auto;
}

.mevoot-lead-form input,
.mevoot-lead-form select,
.mevoot-lead-form textarea,
.mevoot-contact-form input,
.mevoot-contact-form select,
.mevoot-contact-form textarea {
  width: 100%;
  min-height: 48px;
  padding: 0.8rem 0.95rem;
  background: #fff;
  color: #17352f;
  border: 1px solid rgba(23, 53, 47, 0.18);
  border-radius: 10px;
}

.mevoot-lead-form textarea,
.mevoot-contact-form textarea {
  min-height: 125px;
}

.mevoot-lead-form input:focus,
.mevoot-lead-form select:focus,
.mevoot-lead-form textarea:focus,
.mevoot-contact-form input:focus,
.mevoot-contact-form select:focus,
.mevoot-contact-form textarea:focus {
  border-color: #2f6f55;
  box-shadow: 0 0 0 4px rgba(47, 111, 85, 0.1);
}

/* Footer */
footer.wp-block-group {
  border-top: 1px solid rgba(23, 53, 47, 0.08);
}

/* Responsive */
@media (max-width: 1180px) {
  header.wp-block-group > .wp-block-group.alignwide {
    gap: 0.55rem;
  }

  header.wp-block-group .wp-block-site-logo img {
    width: 96px !important;
    max-width: 96px;
  }

  header.wp-block-group .wp-block-navigation {
    font-size: 0.78rem;
  }

  header.wp-block-group .wp-block-navigation__container {
    gap: 0.3rem;
  }

  header.wp-block-group .wp-block-button__link {
    padding-inline: 0.85rem;
    font-size: 0.85rem;
  }
}

@media (max-width: 960px) {
  header.wp-block-group > .wp-block-group.alignwide {
    grid-template-columns: auto 1fr auto;
  }

  header.wp-block-group .wp-block-navigation__responsive-container:not(.is-menu-open) {
    display: none;
  }

  header.wp-block-group .wp-block-navigation__responsive-container-open {
    display: flex;
    margin-inline: auto;
  }

  header.wp-block-group .wp-block-site-logo img {
    width: 105px !important;
    max-width: 105px;
  }

  .mevoot-trust-strip .wp-block-columns {
    flex-wrap: wrap !important;
  }

  .mevoot-trust-strip .wp-block-column {
    flex-basis: 50% !important;
    padding-block: 0.8rem;
  }

  .mevoot-trust-strip .wp-block-column:nth-child(odd) {
    border-inline-start: 0;
  }
}

@media (max-width: 782px) {
  header.wp-block-group {
    padding-block: 0.7rem !important;
  }

  header.wp-block-group > .wp-block-group.alignwide {
    grid-template-columns: auto 1fr auto;
  }

  header.wp-block-group .wp-block-buttons {
    display: none;
  }

  .mevoot-hero {
    padding-top: 3.6rem !important;
    padding-bottom: 3.8rem !important;
  }

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

  .mevoot-hero__lead {
    font-size: 1.08rem !important;
  }

  .mevoot-hero__actions {
    align-items: stretch;
  }

  .mevoot-hero__actions .wp-block-button,
  .mevoot-hero__actions .wp-block-button__link {
    width: 100%;
  }

  .mevoot-hero__proof p:not(:last-child)::after {
    display: none;
  }

  .mevoot-service-row {
    gap: 0.85rem;
  }

  .mevoot-service-card {
    border-radius: 14px;
  }
}

@media (max-width: 560px) {
  .mevoot-trust-strip .wp-block-column {
    flex-basis: 100% !important;
    border-inline-start: 0;
    border-top: 1px solid rgba(252, 250, 245, 0.12);
  }

  .mevoot-trust-strip .wp-block-column:first-child {
    border-top: 0;
  }

  .mevoot-hero__proof {
    gap: 0.5rem 0.9rem;
  }
}

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

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}
