/* Phase 4C.2b · central homepage typography and responsive corrections. Foundation remains intact. */
:root {
  --umoya-secondary-link-size: 16px;
  --umoya-secondary-copy-size: 15px;
  --umoya-caption-size: 14px;
}

/* Standalone homepage links: hero + sections 2–7. Header/footer/menu are excluded. */
:is(.umoya-home-main, .editor-styles-wrapper) :is(.umoya-welcome, .umoya-home-section, .umoya-editorial) .umoya-text-link {
  font-size: var(--umoya-secondary-link-size);
  font-weight: 600;
  line-height: 1.55;
}
:is(.umoya-home-main, .editor-styles-wrapper) :is(.umoya-welcome, .umoya-home-section, .umoya-editorial) .umoya-text-link a {
  font-size: inherit;
  font-weight: inherit;
  line-height: inherit;
  max-width: 100%;
  min-height: 44px;
  white-space: normal;
  overflow-wrap: anywhere;
  text-decoration-line: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: .2em;
}
:is(.umoya-home-main, .editor-styles-wrapper) :is(.umoya-welcome, .umoya-home-section, .umoya-editorial) .umoya-text-link a:hover,
:is(.umoya-home-main, .editor-styles-wrapper) :is(.umoya-welcome, .umoya-home-section, .umoya-editorial) .umoya-text-link a:focus-visible {
  text-decoration-thickness: 2px;
}
/* Existing v0.2.0 mobile context type uses !important; override centrally, not in saved blocks. */
:is(.umoya-home-main, .editor-styles-wrapper) .umoya-home-section .umoya-context-links {
  font-size: var(--umoya-secondary-link-size) !important;
  line-height: 1.8 !important;
}
:is(.umoya-home-main, .editor-styles-wrapper) .umoya-context-links a {
  font-size: inherit;
  text-decoration-line: underline;
  text-underline-offset: .2em;
}
:is(.umoya-home-main, .editor-styles-wrapper) :is(.umoya-welcome, .umoya-home-section) .umoya-primary a:hover,
:is(.umoya-home-main, .editor-styles-wrapper) :is(.umoya-welcome, .umoya-home-section) .umoya-primary a:focus-visible {
  text-decoration-line: underline;
  text-underline-offset: .2em;
}

/* Left-aligned homepage paragraphs at every width; no justification/container rules. */
:is(.umoya-home-main, .editor-styles-wrapper) :is(.umoya-welcome, .umoya-home-section, .umoya-editorial) p {
  text-align: left;
  text-align-last: left;
  hyphens: manual;
}
/* Secondary prose is distinct from small editorial eyebrow labels. */
:is(.umoya-home-main, .editor-styles-wrapper) .umoya-welcome .umoya-quiet-note,
:is(.umoya-home-main, .editor-styles-wrapper) .umoya-home-section :is(.umoya-offer-conditions, .umoya-offer-limits, .umoya-small) {
  font-size: var(--umoya-secondary-copy-size);
  line-height: 1.65;
}
:is(.umoya-home-main, .editor-styles-wrapper) .umoya-practical-columns p:not(.umoya-text-link) {
  font-size: var(--umoya-secondary-copy-size);
  line-height: 1.75;
}
:is(.umoya-home-main, .editor-styles-wrapper) :is(.umoya-hero-photo, .umoya-photo) figcaption {
  font-size: var(--umoya-caption-size);
  line-height: 1.55;
  margin: 8px 0 0;
  text-align: left;
}

@media (max-width: 1180px) {
  :root { --umoya-secondary-link-size: 17px; }
}
/* Tablet practical section: keep resource links in a readable row, reduce the
   pre-invitation gap, and retain existing header/navigation breakpoints. */
@media (min-width: 501px) and (max-width: 1180px) {
  :is(.umoya-home-main, .editor-styles-wrapper) .umoya-home-section.umoya-practical {
    padding-block: 58px 56px;
  }
  :is(.umoya-home-main, .editor-styles-wrapper) .umoya-practical-columns {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 28px 36px;
    margin-top: 32px;
    align-items: start;
  }
  :is(.umoya-home-main, .editor-styles-wrapper) .umoya-practical-columns > .umoya-reading-list {
    grid-column: 1 / -1;
    max-width: 680px;
  }
  :is(.umoya-home-main, .editor-styles-wrapper) .umoya-person-grid {
    grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr);
    gap: 36px;
  }
  :is(.umoya-home-main, .editor-styles-wrapper) .umoya-journey-grid { gap: 48px; }
}
@media (min-width: 501px) and (max-width: 900px) {
  :is(.umoya-home-main, .editor-styles-wrapper) .umoya-journey-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 28px;
  }
  :is(.umoya-home-main, .editor-styles-wrapper) .umoya-journey-intro { max-width: 650px; }
  :is(.umoya-home-main, .editor-styles-wrapper) .umoya-journey-intro p:not(.umoya-eyebrow) { max-width: 600px; }
}
@media (max-width: 500px) {
  :is(.umoya-home-main, .editor-styles-wrapper) .umoya-home-section.umoya-practical { padding-bottom: 44px; }
}
/* Photo-to-section rhythm; assets, crop and loading rules are left intact. */
:is(.umoya-home-main, .editor-styles-wrapper) .umoya-welcome { padding-bottom: 32px; }
:is(.umoya-home-main, .editor-styles-wrapper) .umoya-home-section.umoya-person { padding-bottom: 40px; }
:is(.umoya-home-main, .editor-styles-wrapper) .umoya-place-row {
  grid-template-columns: minmax(0, 1fr);
  gap: 24px;
  margin-top: 32px;
}
:is(.umoya-home-main, .editor-styles-wrapper) .umoya-place-row > .umoya-place {
  width: 100%;
  max-width: 680px;
  justify-self: center;
}
@media (max-width: 1180px) {
  :is(.umoya-home-main, .editor-styles-wrapper) .umoya-practical-columns p:not(.umoya-text-link) { font-size: 16px; }
  :is(.umoya-home-main, .editor-styles-wrapper) .umoya-home-section.umoya-person { padding-bottom: 36px; }
}
@media (max-width: 900px) {
  :is(.umoya-home-main, .editor-styles-wrapper) .umoya-welcome { padding-bottom: 24px; }
}
@media (max-width: 500px) {
  :is(.umoya-home-main, .editor-styles-wrapper) .umoya-welcome { padding-bottom: 20px; }
  :is(.umoya-home-main, .editor-styles-wrapper) .umoya-person-grid { gap: 24px; }
  :is(.umoya-home-main, .editor-styles-wrapper) .umoya-place-row { margin-top: 24px; }
  :is(.umoya-home-main, .editor-styles-wrapper) .umoya-home-section.umoya-person { padding-bottom: 32px; }
}

/* All native overlay widths: logo, optional language slot, orange CTA, hamburger.
   Desktop ordering and the existing accordion script/breakpoint are unchanged. */
@media (max-width: 1100px) {
  .umoya-header .umoya-header-inner { flex-wrap: nowrap; }
  .umoya-header-inner > .umoya-brand { order: 0; margin-right: auto !important; }
  .umoya-header-inner > .umoya-language-slot { order: 1; }
  .umoya-header-inner > .umoya-header-cta { order: 2; }
  .umoya-header-inner > .umoya-main-nav { order: 3; margin-left: 0 !important; flex: 0 0 auto; }
}
/* Preserve space for the CTA at narrow landscape/intermediate widths. */
@media (max-width: 640px) {
  .umoya-header .umoya-logo-full { display: none; }
  .umoya-header .umoya-logo-compact { display: block; }
}

/* Homepage section 2: Complaints, Capacity, Curiosity.
   Scoped to the new editable section; existing homepage and shared rules stay intact. */
.umoya-starting-points .umoya-starting-points-inner {
  border-top: 1px solid var(--umoya-rule);
  padding-top: 40px;
}
.umoya-starting-points h2 {
    max-width: 840px;
    margin-bottom: 20px;
    font-size: clamp(32px, 4vw, 52px);
}
.umoya-starting-points .umoya-starting-intro {
  max-width: 850px;
  margin-bottom: 0;
  font-size: 18px;
  line-height: 1.7;
}
.umoya-starting-points .umoya-starting-columns {
  gap: 0;
  margin: 36px 0 30px;
  align-items: stretch;
}
.umoya-starting-points .umoya-starting-item { min-width: 0; margin: 0; padding: 0 30px; }
.umoya-starting-points .umoya-starting-item:first-child { padding-left: 0; }
.umoya-starting-points .umoya-starting-item:last-child { padding-right: 0; }
.umoya-starting-points .umoya-starting-item + .umoya-starting-item { border-left: 1px solid var(--umoya-rule); }
.umoya-starting-points .umoya-starting-label {
  margin-bottom: 14px;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.5;
  letter-spacing: .08em;
  color: var(--umoya-muted);
}
.umoya-starting-points .umoya-starting-number { color: var(--umoya-orange); font-size: 14px; font-weight: 700; }
.umoya-starting-points .umoya-starting-title {
  margin-bottom: 14px;
  font-family: var(--umoya-display);
  font-size: 23px;
  font-weight: 400;
  line-height: 1.35;
  color: var(--umoya-blue);
}
.umoya-starting-points .umoya-starting-description { margin-bottom: 0; font-size: 17px; line-height: 1.7; }
.umoya-starting-points .umoya-starting-close { max-width: 950px; margin-bottom: 0; font-size: 17px; line-height: 1.7; }
.umoya-starting-points .umoya-starting-overview { margin-top: 12px; }
@media (max-width: 900px) {
  .umoya-starting-points .umoya-starting-points-inner { padding-top: 30px; }
  .umoya-starting-points .umoya-starting-columns { flex-direction: column; gap: 0; margin: 28px 0 24px; }
  .umoya-starting-points .umoya-starting-item { flex-basis: auto !important; width: 100%; padding: 24px 0; }
  .umoya-starting-points .umoya-starting-item:first-child { padding-top: 0; }
  .umoya-starting-points .umoya-starting-item:last-child { padding-bottom: 0; }
  .umoya-starting-points .umoya-starting-item + .umoya-starting-item { border-left: 0; border-top: 1px solid var(--umoya-rule); }
}

/* Opt-in shared editorial eyebrow. Append once to the CURRENT refinements.css.
 * Only Paragraph blocks with BOTH classes receive this treatment.
 * Existing homepage, Approach and How We Help labels remain unchanged.
 */
p.umoya-eyebrow.umoya-editorial-eyebrow {
  display: flex;
  align-items: center;
  gap: 12px;
  max-width: none;
  margin: 0 0 24px;
  padding: 0;
  font-family: var(--umoya-font, "Roboto", Arial, sans-serif);
  font-size: 11px;
  font-weight: 600;
  line-height: 1.6;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  text-align: left;
  color: var(--umoya-muted, #57616A);
}

p.umoya-eyebrow.umoya-editorial-eyebrow::before {
  content: "";
  display: block;
  flex: 0 0 28px;
  width: 28px;
  height: 2px;
  margin: 0;
  padding: 0;
  border: 0;
  background: #F36D34;
}

/*
 * UMOYA Website 2.0 — Mobile homepage QA fixes 01–02
 * Install once at the end of assets/css/refinements.css.
 * Scoped to the EN/NL WordPress homepage at <= 500px.
 */
@media (max-width: 500px) {
  body.home .umoya-welcome .umoya-hero-photo img {
    aspect-ratio: auto;
    height: auto;
    object-fit: contain;
    object-position: center top;
  }

  body.home .umoya-home-section .umoya-journey-intro > .umoya-eyebrow {
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 1.3px;
    line-height: 16px;
    margin: 0 0 14px;
  }
}

body.home .umoya-practical-columns > * {
  margin-block-start: 0;
}
