:root {
  --brand-blue: #3f77b9;
  --brand-blue-deep: #355e8d;
  --page: #f3f7fd;
  --ink: #15324f;
  --muted: #4e6682;
  --line: rgba(53, 94, 141, 0.18);
  --deep: #355e8d;
  --teal: #3f77b9;
  --blue: #355e8d;
  --gold: #3f77b9;
  --wine: #355e8d;
  --glass-alpha: 0.82;
  --glass-blur: 18px;
  --glass-bg: rgba(255, 255, 255, var(--glass-alpha));
  --glass-border: rgba(255, 255, 255, 0.62);
  --shadow: 0 22px 60px rgba(15, 35, 31, 0.17);
}

html[data-review-theme="night"] {
  --page: #0d2038;
  --ink: #eef5ff;
  --muted: #b7cbe6;
  --line: rgba(222, 242, 235, 0.18);
  --deep: #355e8d;
  --teal: #8fbdf1;
  --blue: #adcff7;
  --gold: #99c3f4;
  --wine: #99c3f4;
  --glass-bg: rgba(20, 43, 75, var(--glass-alpha));
  --glass-border: rgba(230, 248, 242, 0.22);
  --shadow: 0 24px 70px rgba(0, 0, 0, 0.36);
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--brand-blue);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.5;
  min-width: 320px;
}

main { background: var(--page); }

body.settings-open {
  overflow: hidden;
}

a {
  color: inherit;
}

img,
svg {
  display: block;
}

button,
input {
  font: inherit;
}

.skip-link {
  position: fixed;
  left: 16px;
  top: -64px;
  z-index: 80;
  padding: 9px 12px;
  border-radius: 6px;
  color: #fff;
  background: #0d1817;
}

.skip-link:focus {
  top: 16px;
}

.glass-nav {
  position: fixed;
  inset: 16px 16px auto;
  width: calc(100% - 32px);
  z-index: 40;
  min-height: 58px;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 16px;
  padding: 8px 10px 8px 12px;
  border: 1px solid var(--glass-border);
  border-radius: 8px;
  background: var(--glass-bg);
  box-shadow: var(--shadow);
  backdrop-filter: blur(var(--glass-blur)) saturate(1.2);
}

.brand {
  min-width: 0;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  font-weight: 850;
  text-decoration: none;
}

.brand img {
  width: 96px;
  height: 68px;
  padding: 3px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
  object-fit: contain;
}

.brand span {
  line-height: 1;
}

.site-nav {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: clamp(10px, 2vw, 26px);
  min-width: 0;
}

.site-nav a {
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  color: var(--muted);
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 760;
}

.site-nav a:hover {
  color: var(--deep);
}

.settings-toggle,
.settings-close {
  width: 42px;
  height: 42px;
  display: inline-grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.34);
  cursor: pointer;
}

.settings-toggle svg {
  width: 21px;
  height: 21px;
  fill: currentColor;
}

.settings-toggle:hover,
.settings-close:hover,
.segmented-control button:hover {
  border-color: rgba(63, 119, 185, 0.56);
  color: var(--deep);
}

.settings-toggle:focus-visible,
.settings-close:focus-visible,
.button:focus-visible,
.segmented-control button:focus-visible,
.range-control input:focus-visible {
  outline: 3px solid rgba(63, 119, 185, 0.42);
  outline-offset: 3px;
}

.settings-panel {
  position: fixed;
  inset: 0;
  z-index: 70;
  display: grid;
  place-items: start end;
  padding: 84px 16px 24px;
  background: rgba(7, 14, 13, 0.28);
}

.settings-card {
  width: min(380px, calc(100vw - 32px));
  display: grid;
  gap: 18px;
  padding: 18px;
  border: 1px solid var(--glass-border);
  border-radius: 8px;
  background: var(--glass-bg);
  color: var(--ink);
  box-shadow: var(--shadow);
  backdrop-filter: blur(var(--glass-blur)) saturate(1.22);
}

.settings-head,
.setting-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
}

.settings-head h2 {
  margin: 0;
  font-size: 1.15rem;
}

.settings-close {
  font-size: 1.5rem;
  line-height: 1;
}

fieldset {
  display: grid;
  gap: 9px;
  margin: 0;
  padding: 0;
  border: 0;
}

legend,
.setting-row span,
.range-control span {
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: 800;
}

.segmented-control {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
}

.segmented-control[data-setting-group="theme"] {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.segmented-control button {
  min-height: 38px;
  padding: 8px 7px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.22);
  cursor: pointer;
  font-size: 0.8rem;
  font-weight: 780;
}

.segmented-control button[aria-pressed="true"] {
  border-color: transparent;
  color: #fff;
  background: var(--deep);
}

.range-control {
  display: grid;
  gap: 9px;
}

.range-control input {
  width: 100%;
  accent-color: var(--teal);
}

.hero {
  position: relative;
  min-height: min(82svh, 760px);
  display: grid;
  align-items: end;
  overflow: hidden;
  color: #fff;
  isolation: isolate;
}

.hero picture,
.hero img,
.hero-shade {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero img {
  object-fit: cover;
  filter: saturate(1.04) contrast(1.02);
}

.hero-shade {
  z-index: 1;
  background:
    linear-gradient(90deg, rgba(17, 42, 76, 0.82), rgba(17, 42, 76, 0.46) 48%, rgba(17, 42, 76, 0.1)),
    linear-gradient(0deg, rgba(17, 42, 76, 0.52), rgba(17, 42, 76, 0.08) 44%);
}

.hero-copy {
  position: relative;
  z-index: 2;
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
  padding: 132px 0 56px;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--gold);
  letter-spacing: 0;
  text-transform: uppercase;
  font-size: 0.76rem;
  font-weight: 880;
}

.hero .eyebrow {
  width: fit-content;
  max-width: 100%;
  padding: 5px 8px;
  border-radius: 4px;
  color: var(--brand-blue);
  background: rgba(255, 255, 255, 0.96);
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 10ch;
  margin-bottom: 10px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(4rem, 12vw, 8.8rem);
  line-height: 0.88;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 12px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2rem, 5vw, 4.3rem);
  line-height: 0.96;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 8px;
  font-size: 1.08rem;
  line-height: 1.2;
}

.hero-line {
  margin-bottom: 10px;
  font-size: clamp(1.4rem, 3.6vw, 2.8rem);
  line-height: 1.06;
  font-weight: 760;
}

.hero-summary {
  max-width: 650px;
  color: rgba(255, 255, 255, 0.86);
  font-size: clamp(1rem, 1.6vw, 1.2rem);
}

.hero-actions,
.contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.button,
.sticky-cta {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 11px 16px;
  border: 1px solid transparent;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 850;
}

.button.primary,
.sticky-cta {
  color: #ffffff;
  background: #3f77b9;
}

.button.ghost {
  border-color: rgba(255, 255, 255, 0.54);
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(12px);
}

.section-shell {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
}

.section-shell.trust-single {
  width: min(820px, calc(100% - 32px));
}

.intro-section,
.program-section,
.trust-section,
.contact-section {
  padding: clamp(54px, 8vw, 92px) 0;
}

.two-column {
  display: grid;
  grid-template-columns: minmax(0, 0.74fr) minmax(0, 1fr);
  gap: clamp(22px, 5vw, 64px);
  align-items: start;
}

.glass-panel,
.program-card,
.contact-panel {
  border: 1px solid var(--glass-border);
  border-radius: 8px;
  background: var(--glass-bg);
  box-shadow: var(--shadow);
  backdrop-filter: blur(var(--glass-blur)) saturate(1.18);
}

.glass-panel {
  padding: clamp(20px, 3vw, 30px);
}

.glass-panel p:last-child,
.glass-panel ul:last-child,
.contact-panel p:last-child {
  margin-bottom: 0;
}

.section-heading {
  max-width: 740px;
  margin-bottom: 24px;
}

.program-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.program-card {
  overflow: hidden;
}

.program-card .card-copy {
  background: var(--brand-blue);
  color: #fff;
}

.program-card .card-index,
.program-card .card-copy h3,
.program-card .card-copy p { color: #fff; }

.program-card img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.card-copy {
  position: relative;
  min-height: 222px;
  padding: 18px;
}

.card-index {
  display: inline-flex;
  margin-bottom: 20px;
  color: var(--wine);
  font-size: 0.78rem;
  font-weight: 900;
}

.program-card p,
.glass-panel li,
.contact-panel p {
  color: var(--muted);
}

.trust-section {
  background: linear-gradient(180deg, rgba(63, 119, 185, 0.1), rgba(63, 119, 185, 0.06));
}

.glass-panel ul {
  display: grid;
  gap: 12px;
  margin: 0;
  padding-left: 18px;
}

.contact-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 24px;
  padding: clamp(22px, 4vw, 34px);
  background:
    linear-gradient(135deg, rgba(53, 94, 141, 0.96), rgba(63, 119, 185, 0.88)),
    var(--deep);
  color: #fff;
}

.contact-panel .eyebrow {
  color: #d5e7ff;
}

.contact-panel p {
  color: rgba(255, 255, 255, 0.78);
}

.contact-detail {
  font-weight: 760;
}

.review-footer {
  width: min(1120px, calc(100% - 32px));
  min-height: 76px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin: 0 auto;
  color: #fff;
  background: var(--brand-blue);
  border-top: 1px solid rgba(255, 255, 255, .25);
}

.review-footer div {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.review-footer .measurement-notice {
  flex-basis: 100%;
  max-width: 74ch;
  font-size: 0.78rem;
  line-height: 1.45;
}

.review-footer a {
  color: #fff;
  text-decoration: none;
  font-weight: 760;
}

.review-footer a:hover { text-decoration: underline; }
.review-footer a:focus-visible { outline: 3px solid #fff; outline-offset: 4px; }

.review-footer .site-credit {
  font-weight: 680;
}

.sticky-cta {
  position: fixed;
  left: 16px;
  right: 16px;
  bottom: 14px;
  z-index: 50;
  box-shadow: 0 18px 42px rgba(16, 35, 31, 0.22);
  transform: translateY(84px);
  opacity: 0;
  pointer-events: none;
}

.version-pill {
  position: fixed;
  right: 16px;
  bottom: 16px;
  z-index: 60;
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 5px 9px;
  border: 1px solid var(--glass-border);
  border-radius: 999px;
  color: var(--muted);
  background: var(--glass-bg);
  box-shadow: 0 10px 26px rgba(16, 35, 31, 0.16);
  backdrop-filter: blur(var(--glass-blur)) saturate(1.2);
  font-size: 0.76rem;
  font-weight: 780;
  line-height: 1;
  pointer-events: none;
}

body.show-sticky-cta .sticky-cta {
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}

@media (min-width: 821px) {
  .sticky-cta {
    display: none;
  }
}

@media (max-width: 980px) {
  .program-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .two-column,
  .contact-panel {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 820px) {
  .glass-nav {
    grid-template-columns: auto auto;
    gap: 10px;
  }

  .settings-toggle {
    grid-column: 2;
    grid-row: 1;
    justify-self: end;
  }

  .site-nav {
    grid-row: 2;
    grid-column: 1 / -1;
    justify-content: flex-start;
    overflow-x: auto;
    padding-bottom: 2px;
  }

  .site-nav a {
    flex: 0 0 auto;
  }

  .hero {
    min-height: 76svh;
  }

  .hero-shade {
    background:
      linear-gradient(0deg, rgba(17, 42, 76, 0.72), rgba(17, 42, 76, 0.24)),
      linear-gradient(90deg, rgba(17, 42, 76, 0.62), rgba(17, 42, 76, 0.24));
  }

  .hero-copy {
    padding-top: 154px;
    padding-bottom: 44px;
  }

  .program-grid {
    grid-template-columns: 1fr;
  }

  .card-copy {
    min-height: auto;
  }

  .review-footer {
    align-items: flex-start;
    flex-direction: column;
    padding: 22px 0 84px;
  }

  .version-pill {
    right: 16px;
    bottom: 72px;
  }
}

@media (max-width: 520px) {
  .glass-nav {
    inset: 10px 10px auto;
    width: calc(100% - 20px);
  }

  .brand span {
    display: none;
  }

  .settings-panel {
    padding: 112px 10px 18px;
  }

  .settings-card {
    width: calc(100vw - 20px);
  }

  .segmented-control {
    grid-template-columns: 1fr;
  }

  .button {
    width: 100%;
  }
}

/* Original localized posters retain their embedded titles. */
#programs .program-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  align-items: stretch;
}

.program-poster {
  --card-title-size: 1.125rem;
  container-type: inline-size;
  display: flex;
  flex-direction: column;
}

.program-poster:lang(en) {
  --card-title-size: 1.125rem;
}

.program-poster:lang(pt-BR) {
  --card-title-size: 1.1rem;
}

.program-poster:lang(de) {
  --card-title-size: 1.0625rem;
}

.program-artwork {
  position: relative;
  aspect-ratio: 9 / 16;
  isolation: isolate;
  overflow: hidden;
  background: #3f77b9;
}

.program-poster .program-artwork img {
  display: block;
  width: 100%;
  height: 100%;
  aspect-ratio: 9 / 16;
  object-fit: cover;
}

.program-poster .card-copy {
  flex: 1;
  min-height: 230px;
  padding: 24px;
}

.program-poster .card-index {
  margin-bottom: 12px;
}

.program-poster h3 {
  min-height: 2.7em;
  margin: 0 0 12px;
  font-size: var(--card-title-size);
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.program-poster .card-copy p {
  margin: 0;
  font-size: 1rem;
  line-height: 1.6;
}

@media (max-width: 980px) {
  #programs .program-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 600px) {
  #programs .program-grid {
    grid-template-columns: minmax(0, 420px);
    justify-content: center;
  }
  .program-poster .card-copy { min-height: 220px; }
}

/* Homepage photographs crossfade beneath the stationary welcome text. */
/* Leave room for the navigation's visual offset before showing faces. */
.hero:has(.hero-slides) { margin-top: 32px; min-height: 0; aspect-ratio: 1672 / 941; }
.hero-slides { position: absolute; inset: 0; }
.hero .hero-slide { object-position: center; opacity: 0; transition: opacity 1.2s ease-in-out; }
.hero .hero-slide.hero-slide--food { object-position: right top; }
.hero .hero-slide.is-active { opacity: 1; }
/* Keep desktop copy aligned to the browser independently of photo framing. */
@media (min-width: 821px) {
  .hero-copy {
    width: min(1120px, calc(100% - 32px));
    margin-left: 16px;
    margin-right: auto;
    align-self: center;
    padding-top: 48px;
  }
}
.hero-photo-controls {
  position: absolute;
  z-index: 3;
  right: max(16px, calc((100% - 1120px) / 2));
  bottom: 16px;
  display: flex;
  gap: 8px;
}
.hero-photo-controls[hidden] { display: none; }
.hero-photo-controls button {
  padding: 9px 12px;
  min-height: 44px;
  border: 1px solid rgba(255,255,255,.65);
  border-radius: 8px;
  background: #3f77b9;
  color: #fff;
  font: inherit;
  font-size: .8rem;
  cursor: pointer;
}
.hero-photo-controls button[aria-pressed="true"] { background: #355e8d; }
.hero-photo-controls button:focus-visible { outline: 3px solid #a9cefa; outline-offset: 3px; }
.hero:has(.hero-slides) .hero-copy { padding-bottom: 88px; }
@media (max-width: 820px) {
  .hero .hero-slide { object-position: center; }
  .hero-photo-controls { left: 16px; right: auto; }
}
@media (prefers-reduced-motion: reduce) {
  .hero .hero-slide { transition: none; }
}

/* Keep the wide scenes intact on phones instead of cropping out participants. */
@media (max-width: 600px) {
  .hero:has(.hero-slides) {
    display: block;
    min-height: 0;
    aspect-ratio: auto;
    padding-top: 0;
    background: #3f77b9;
  }
  .hero-slides {
    position: relative;
    aspect-ratio: 1672 / 941;
    width: 100%;
  }
  .hero .hero-slide { object-position: center; }
  .hero:has(.hero-slides) .hero-shade { display: none; }
  .hero:has(.hero-slides) .hero-copy { padding: 28px 0 88px; }
}

/* Limit the homepage photography to half the viewport height. */
@media (min-width: 601px) {
  .hero:has(.hero-slides) { height: 50svh; aspect-ratio: auto; }
  .hero:has(.hero-slides) .hero-copy { padding: 20px 0 72px; }
  .hero h1 { font-size: clamp(3rem, 7vw, 5.5rem); }
  .hero-line { font-size: clamp(1.25rem, 2.3vw, 2rem); }
  .hero-summary { font-size: 1rem; margin-bottom: 16px; }
}
/* Let copy flow below the image when vertical space is limited. */
@media (max-height: 760px), (max-width: 600px) {
  .hero:has(.hero-slides) {
    display: block;
    height: auto;
    min-height: 0;
    aspect-ratio: auto;
    background: #355e8d;
  }
  .hero-slides { position: relative; width: 100%; height: min(50svh, 56.28vw); aspect-ratio: auto; }
  .hero:has(.hero-slides) .hero-shade { display: none; }
  .hero:has(.hero-slides) .hero-copy { padding: 28px 0 88px; }
}

/* Keep both button groups on a shared row, with photo controls at the right. */
.hero:has(.hero-slides) .hero-copy {
  width: calc(100% - 32px);
  margin-inline: 16px;
  padding-bottom: 28px;
}
.hero-actions {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: stretch;
  gap: 16px;
}
.hero-action-links { display: flex; flex-wrap: wrap; gap: 10px; }
.hero-actions .hero-photo-controls {
  position: static;
  display: flex;
  align-items: stretch;
  justify-content: flex-end;
  margin-left: auto;
}
.hero-actions .hero-photo-controls[hidden] { display: none; }
@media (max-width: 600px) {
  .hero-actions { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 12px; }
  .hero-action-links, .hero-actions .hero-photo-controls { flex-direction: column; }
  .hero-actions .hero-photo-controls { width: 100%; }
  .hero-actions .button, .hero-photo-controls button {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 10px 8px;
    font-size: .8rem;
  }
}

/* Only the primary homepage actions remain visible. */
.hero-actions { display: flex; }
.hero-action-links { width: 100%; }

.about-video { margin-top: 32px; }
.about-video video { display: block; width: 100%; max-width: 960px; height: auto; margin-inline: auto; border-radius: 12px; background: #10263e; }

/* Arabic and Ukrainian use readable system fonts and logical text alignment. */
html:lang(ar) { font-family: Tahoma, Arial, sans-serif; }
html:lang(ar) h1, html:lang(ar) h2, html:lang(ar) h3 { font-family: Tahoma, Arial, sans-serif; line-height: 1.4; }
html:lang(uk) h2, html:lang(uk) h3 { overflow-wrap: anywhere; }
html[dir="rtl"] .hero-copy { text-align: right; }
html[dir="rtl"] .card-copy { text-align: right; }
html[dir="rtl"] [data-program-carousel] { direction: ltr; }
html[dir="rtl"] [data-program-card] { direction: rtl; }
html[dir="rtl"] .hero-actions { direction: rtl; }

/* Content-sized language menu with a viewport-safe height. */
.settings-card {
  width: max-content;
  min-width: min(160px, calc(100vw - 32px));
  max-width: calc(100vw - 32px);
  max-height: calc(100dvh - 140px);
  overflow-y: auto;
  gap: 6px;
  padding: 10px;
}
.settings-card .settings-head { gap: 8px; margin: 0; }
.settings-card .settings-head h2 { font-size: .95rem; line-height: 1.3; }
.settings-card fieldset { gap: 4px; margin: 0; min-width: 0; }
.settings-card legend { font-size: .75rem; }
.settings-card .segmented-control { grid-template-columns: 1fr; gap: 4px; }
.settings-card .segmented-control button {
  min-height: 34px;
  padding: 5px 9px;
  font-size: .82rem;
  line-height: 1.3;
}
.settings-card .settings-close { min-width: 30px; min-height: 30px; padding: 2px; }
@media (pointer: coarse) {
  .settings-card .segmented-control button { min-height: 44px; }
}
.settings-card::after { display: none; }

.contact-panel .association-name { font-size: clamp(1.5rem, 3vw, 2.5rem); line-height: 1.18; text-align: start; }
.contact-map { display: block; width: 100%; height: clamp(240px, 35vw, 360px); border: 0; border-radius: 8px; margin: 20px 0 10px; background: #e2e9ee; }

.contact-social { align-self: center; min-width: 0; }
.contact-social .contact-actions { margin-bottom: 20px; display: flex; flex-wrap: wrap; gap: 10px; }
.contact-social .button { color: #fff; border: 1px solid rgba(255,255,255,.65); }
.contact-social .social-whatsapp { background: #176b46; }
.contact-social .social-instagram { background: linear-gradient(120deg, #762d91, #b52959); }
.contact-social .social-facebook { background: #1456b8; }
.contact-social p { margin-bottom: 16px; }

.contact-panel .contact-heading { grid-column: 1 / -1; width: 100%; }
.contact-panel .contact-heading .association-name { max-width: none; margin-bottom: 0; }
