:root {
  --page: #f4f8f6;
  --ink: #13211f;
  --muted: #51645f;
  --line: rgba(22, 59, 55, 0.18);
  --deep: #163b37;
  --teal: #1f766e;
  --blue: #2b638a;
  --gold: #c08a2b;
  --wine: #844c64;
  --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: #0e1515;
  --ink: #eef8f4;
  --muted: #abc2bc;
  --line: rgba(222, 242, 235, 0.18);
  --deep: #c8efe6;
  --teal: #84d9cb;
  --blue: #8dc6ea;
  --gold: #e4bd68;
  --wine: #d89db3;
  --glass-bg: rgba(17, 29, 29, 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:
    linear-gradient(180deg, rgba(31, 118, 110, 0.1), transparent 420px),
    var(--page);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.5;
  min-width: 320px;
}

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: 48px;
  height: 34px;
  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(31, 118, 110, 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(43, 99, 138, 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(2, 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(5, 15, 15, 0.82), rgba(5, 15, 15, 0.46) 48%, rgba(5, 15, 15, 0.1)),
    linear-gradient(0deg, rgba(5, 15, 15, 0.52), rgba(5, 15, 15, 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 {
  color: #ffd98b;
}

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: #0c1a17;
  background: #f7d47d;
}

.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 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(43, 99, 138, 0.1), rgba(31, 118, 110, 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(22, 59, 55, 0.96), rgba(43, 99, 138, 0.88)),
    var(--deep);
  color: #fff;
}

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

.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: var(--muted);
  border-top: 1px solid var(--line);
}

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

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

.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;
}

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;
  }

  .site-nav {
    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(5, 15, 15, 0.72), rgba(5, 15, 15, 0.24)),
      linear-gradient(90deg, rgba(5, 15, 15, 0.62), rgba(5, 15, 15, 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;
  }
}

@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%;
  }
}
