/* MOM language switcher + fullscreen navigation. */
.language-trigger,
.menu-trigger,
.mom-overlay-close,
.mom-mobile-language {
  appearance: none;
  border: 0;
  background: transparent;
  color: inherit;
  cursor: pointer;
}

.language-trigger,
.menu-trigger {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  transition: background .18s ease, transform .18s ease;
}

.language-trigger:hover,
.menu-trigger:hover {
  background: #f4ece6;
}

.language-trigger:active,
.menu-trigger:active {
  transform: scale(.97);
}

.language-trigger .language-flag {
  display: block;
  font-size: 22px;
  line-height: 1;
}

.header-search {
  appearance: none;
  border: 0;
  padding: 0;
  background: transparent;
  color: inherit;
  cursor: pointer;
}

.menu-trigger {
  display: none;
  gap: 4px;
  align-content: center;
}

.menu-trigger span {
  display: block;
  width: 19px;
  height: 1.5px;
  border-radius: 99px;
  background: currentColor;
}

.mom-overlay {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: grid;
  grid-template-rows: auto 1fr;
  background: rgba(255,253,251,.985);
  backdrop-filter: blur(22px);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity .22s ease, visibility .22s ease;
}

.mom-overlay.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

body.mom-overlay-open {
  overflow: hidden;
}

.mom-overlay-top {
  min-height: 84px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 0 max(32px, calc((100vw - var(--mom-max)) / 2));
  border-bottom: 1px solid var(--mom-line);
}

.mom-overlay-brand {
  font: 700 36px/.9 Georgia, "Times New Roman", serif;
  letter-spacing: -.06em;
}

.mom-overlay-close {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  font-size: 30px;
  line-height: 1;
  font-weight: 300;
  transition: background .18s ease, transform .18s ease;
}

.mom-overlay-close:hover {
  background: #f4ece6;
  transform: rotate(3deg);
}

.mom-overlay-body {
  min-height: 0;
  overflow-y: auto;
  display: grid;
  place-items: center;
  padding: 48px 32px 64px;
}

.language-panel {
  width: min(760px, 100%);
}

.language-panel-header {
  margin-bottom: 30px;
  text-align: center;
}

.language-panel-header span {
  color: var(--mom-rose-deep);
  font-size: 10px;
  font-weight: 850;
  letter-spacing: .18em;
  text-transform: uppercase;
}

.language-panel-header h2 {
  margin: 8px 0 0;
  font: 500 clamp(36px, 5vw, 58px)/1 Georgia, "Times New Roman", serif;
  letter-spacing: -.045em;
}

/* Fullscreen search: one strong editorial focal point instead of a small form in empty space. */
#mom-search-overlay {
  background:
    radial-gradient(circle at 50% 42%, rgba(241,221,212,.48), rgba(255,253,251,0) 38%),
    rgba(255,253,251,.99);
}

#mom-search-overlay .mom-overlay-body {
  place-items: center;
  padding: clamp(34px, 6vw, 82px) 32px clamp(54px, 8vw, 110px);
}

.search-panel {
  width: min(940px, 100%);
  margin-top: -2vh;
  padding: clamp(34px, 4.5vw, 58px);
  border: 1px solid rgba(216,196,186,.72);
  border-radius: 32px;
  background: rgba(255,255,255,.84);
  box-shadow: 0 28px 90px rgba(72,50,44,.09);
  backdrop-filter: blur(14px);
}

.search-panel-header {
  max-width: 720px;
  margin: 0 0 30px;
  text-align: left;
}

.search-panel-header span {
  color: var(--mom-rose-deep);
  font-size: 10px;
  font-weight: 850;
  letter-spacing: .18em;
  text-transform: uppercase;
}

.search-panel-header h2 {
  margin: 9px 0 0;
  font: 500 clamp(38px, 5.2vw, 62px)/.98 Georgia, "Times New Roman", serif;
  letter-spacing: -.048em;
  text-wrap: balance;
}

.overlay-search-form {
  width: 100%;
  min-height: 82px;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 16px;
  padding: 9px 9px 9px 24px;
  border: 1px solid #dfd0c8;
  border-radius: 22px;
  background: #fff;
  box-shadow: 0 14px 36px rgba(67,47,42,.065);
  transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease;
}

.overlay-search-form:focus-within {
  border-color: #bd8d80;
  box-shadow: 0 18px 44px rgba(124,73,68,.12), 0 0 0 3px rgba(165,100,92,.08);
  transform: translateY(-1px);
}

.overlay-search-form svg {
  width: 24px;
  height: 24px;
  fill: none;
  stroke: #8c7770;
  stroke-width: 1.65;
  stroke-linecap: round;
  flex: 0 0 auto;
}

.overlay-search-form input {
  min-width: 0;
  width: 100%;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--mom-ink);
  font-size: clamp(18px, 2vw, 22px);
  line-height: 1.25;
}

.overlay-search-form input::placeholder {
  color: #a09590;
  opacity: 1;
}

.overlay-search-form input::-webkit-search-cancel-button {
  opacity: .55;
}

.overlay-search-form button {
  min-width: 116px;
  min-height: 62px;
  padding: 0 25px;
  border: 0;
  border-radius: 16px;
  background: var(--mom-rose);
  color: #fff;
  cursor: pointer;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: .01em;
  box-shadow: 0 8px 20px rgba(124,73,68,.13);
  transition: background .18s ease, transform .18s ease;
}

.overlay-search-form button:hover {
  background: var(--mom-rose-deep);
  transform: translateY(-1px);
}

.language-options {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.language-option {
  min-height: 170px;
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 20px;
  padding: 26px;
  border: 1px solid var(--mom-line);
  border-radius: 22px;
  background: #fff;
  text-decoration: none;
  box-shadow: 0 14px 40px rgba(67,47,42,.045);
  transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
}

.language-option:hover {
  transform: translateY(-2px);
  border-color: #d7c3b8;
  box-shadow: 0 20px 50px rgba(67,47,42,.08);
}

.language-option.is-current {
  border-color: #cfa79c;
  background: #fffaf7;
}

.language-option-flag {
  font-size: 44px;
  line-height: 1;
}

.language-option-copy strong {
  display: block;
  font: 500 26px/1.05 Georgia, "Times New Roman", serif;
}

.mobile-menu-panel {
  width: min(780px, 100%);
  display: grid;
  gap: 38px;
}

.mobile-menu-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
}

.mobile-menu-nav li {
  border-bottom: 1px solid var(--mom-line);
}

.mobile-menu-nav a {
  min-height: 78px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  text-decoration: none;
  font: 500 clamp(28px, 7vw, 46px)/1.05 Georgia, "Times New Roman", serif;
  letter-spacing: -.035em;
}

.mobile-menu-nav a::after {
  content: "→";
  color: #a58579;
  font: 400 24px/1 system-ui, sans-serif;
}

.mobile-menu-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

.mom-mobile-language {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 0 18px;
  border: 1px solid var(--mom-line);
  border-radius: 999px;
  background: #fff;
  font-size: 13px;
  font-weight: 750;
}

.mom-mobile-language .language-flag {
  font-size: 20px;
}

.mobile-menu-cta {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  padding: 0 20px;
  border-radius: 999px;
  background: var(--mom-rose);
  color: #fff;
  text-decoration: none;
  font-size: 13px;
  font-weight: 800;
}

/* Homepage: end the hero at the search box and remove the visual seam before topics. */
body.home .home-hero {
  margin-bottom: 0;
}

body.home .home-hero .hero-shell {
  min-height: clamp(520px, 42vw, 620px);
}

body.home .hero-trust,
body.home .hero-quote {
  display: none;
}

body.home .home-hero + .topic-section {
  border-top: 0;
}

@media (max-width: 1180px) {
  .menu-trigger { display: grid; }
}

@media (max-width: 820px) {
  .header-cta { display: none; }
  .language-options { grid-template-columns: 1fr; }
  .language-option { min-height: 132px; }
  .mom-overlay-body { place-items: start center; padding-top: 34px; }
  #mom-search-overlay .mom-overlay-body { place-items: center; }
  .search-panel { margin-top: 0; }
}

@media (max-width: 700px) {
  .header-actions { gap: 3px; }
  .header-search { display: grid; }
  .language-trigger,
  .menu-trigger { width: 40px; height: 40px; }
  .mom-overlay-top { min-height: 68px; padding-inline: 20px; }
  .mom-overlay-brand { font-size: 32px; }
  .mom-overlay-close { width: 40px; height: 40px; font-size: 27px; }
  .mom-overlay-body { padding: 28px 20px 42px; }
  .language-panel-header { margin-bottom: 22px; text-align: left; }
  .language-panel-header h2 { font-size: 38px; }
  .language-option { padding: 20px; border-radius: 18px; }
  .language-option-flag { font-size: 36px; }
  .language-option-copy strong { font-size: 23px; }
  .mobile-menu-nav a { min-height: 70px; }

  #mom-search-overlay .mom-overlay-body {
    padding: 22px 14px 30px;
  }

  .search-panel {
    width: 100%;
    padding: 25px 18px 20px;
    border-radius: 22px;
    box-shadow: 0 18px 48px rgba(72,50,44,.075);
  }

  .search-panel-header {
    margin-bottom: 20px;
  }

  .search-panel-header h2 {
    font-size: clamp(34px, 9vw, 42px);
    line-height: 1;
  }

  .overlay-search-form {
    min-height: 62px;
    grid-template-columns: auto minmax(0, 1fr) 48px;
    gap: 9px;
    padding: 6px 6px 6px 14px;
    border-radius: 18px;
  }

  .overlay-search-form svg {
    width: 20px;
    height: 20px;
  }

  .overlay-search-form input {
    font-size: 16px;
  }

  .overlay-search-form button {
    min-width: 48px;
    width: 48px;
    min-height: 48px;
    height: 48px;
    padding: 0;
    border-radius: 14px;
    font-size: 0;
    box-shadow: 0 6px 14px rgba(124,73,68,.12);
  }

  .overlay-search-form button::after {
    content: "→";
    font-size: 19px;
    line-height: 1;
  }

  body.home .home-hero .hero-shell {
    min-height: 590px;
  }
}

@media (max-width: 420px) {
  .search-panel {
    padding: 22px 14px 17px;
    border-radius: 20px;
  }

  .search-panel-header h2 {
    font-size: 33px;
  }

  .overlay-search-form {
    grid-template-columns: auto minmax(0, 1fr) 46px;
    gap: 7px;
    padding-left: 12px;
  }

  .overlay-search-form button {
    min-width: 46px;
    width: 46px;
    min-height: 46px;
    height: 46px;
    border-radius: 13px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .mom-overlay,
  .language-option,
  .language-trigger,
  .menu-trigger,
  .mom-overlay-close,
  .overlay-search-form,
  .overlay-search-form button { transition: none !important; }
}
