/* Ultra Performance Academy — static mirror (fonts & palette from live site) */

:root {
  /* Color palette */
  --bg-dark: #211e1b;
  --bg-header: rgb(33, 30, 27);
  --cream: rgb(255, 234, 204);
  --cream-section: rgb(255, 234, 204);
  --accent: #cc6333;
  --purple: rgb(143, 17, 168);
  --text-dark: #1a1a1c;
  --text-muted: rgb(86, 88, 94);
  --white: #fff;
  --nav-hover: rgb(204, 99, 51);
  --radius: 20px;
  --max: 1240px;

  /* === Typography system =================================================
   * Two font families, three heading sizes (H1/H2/H3), three body sizes
   * (P1/P2/P3). All sizes are fluid via clamp() so they scale gracefully
   * from mobile to desktop. Same tokens are exposed under Hostinger's
   * naming (--h1-font-size, --body-font-size, …) further down, so every
   * heading/paragraph on the site — ours or theirs — renders against the
   * same scale unless an inline style overrides it.
   * ====================================================================== */
  --font-head: "Oswald", system-ui, sans-serif;
  --font-body: "Lato", system-ui, sans-serif;

  /* Font sizes (fluid) */
  --fs-h1: clamp(2rem, 4.5vw, 3rem);          /* 32  → 48px */
  --fs-h2: clamp(1.65rem, 3vw, 2.25rem);      /* 26  → 36px */
  --fs-h3: clamp(1.15rem, 1.8vw, 1.4rem);     /* 18  → 22px */
  --fs-p1: clamp(1.05rem, 1.3vw, 1.2rem);     /* 17  → 19px — lead/intro */
  --fs-p2: 1rem;                              /* 16px — body */
  --fs-p3: 0.875rem;                          /* 14px — small/caption */

  /* Line heights */
  --lh-tight: 1.15;
  --lh-snug: 1.3;
  --lh-normal: 1.55;
  --lh-relaxed: 1.7;

  /* Font weights */
  --fw-regular: 400;
  --fw-medium: 500;
  --fw-semibold: 600;
  --fw-bold: 700;

  /* Letter spacing */
  --ls-tight: -0.01em;
  --ls-normal: 0;
  --ls-wide: 0.02em;

  /* ---- Hostinger token aliases (so Astro components inherit our scale) ---- */
  --h1-font-family: var(--font-head);
  --h1-font-size: var(--fs-h1);
  --h1-font-weight: var(--fw-bold);
  --h1-line-height: var(--lh-tight);
  --h1-font-style: normal;
  --h1-text-decoration: none;
  --h1-text-transform: none;

  --h2-font-family: var(--font-head);
  --h2-font-size: var(--fs-h2);
  --h2-font-weight: var(--fw-bold);
  --h2-line-height: var(--lh-tight);

  --h3-font-family: var(--font-head);
  --h3-font-size: var(--fs-h3);
  --h3-font-weight: var(--fw-semibold);
  --h3-line-height: var(--lh-snug);

  --body-font-family: var(--font-body);
  --body-font-size: var(--fs-p2);
  --body-font-weight: var(--fw-regular);
  --body-line-height: var(--lh-normal);

  --body-large-font-family: var(--font-body);
  --body-large-font-size: var(--fs-p1);
  --body-large-font-weight: var(--fw-regular);
  --body-large-line-height: var(--lh-relaxed);

  --body-small-font-family: var(--font-body);
  --body-small-font-size: var(--fs-p3);
  --body-small-font-weight: var(--fw-regular);
  --body-small-line-height: var(--lh-snug);
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-weight: var(--fw-regular);
  font-size: var(--fs-p2);
  line-height: var(--lh-normal);
  color: var(--text-dark);
  background: var(--bg-dark);
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--accent);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-head);
  font-weight: var(--fw-bold);
  line-height: var(--lh-tight);
  margin: 0 0 0.5em;
}

/* === Typography utility classes ===========================================
 * Use these on hand-authored content (e.g. our SEO blocks). They map cleanly
 * onto the H1/H2/H3 + P1/P2/P3 scale defined in :root so every page reads
 * with the same visual rhythm.
 * ========================================================================== */

.upa-h1,
.upa-h2,
.upa-h3 {
  font-family: var(--font-head);
  margin: 0 0 0.5em;
  color: inherit;
}

.upa-h1 {
  font-size: var(--fs-h1);
  font-weight: var(--fw-bold);
  line-height: var(--lh-tight);
  letter-spacing: var(--ls-tight);
}

.upa-h2 {
  font-size: var(--fs-h2);
  font-weight: var(--fw-bold);
  line-height: var(--lh-tight);
}

.upa-h3 {
  font-size: var(--fs-h3);
  font-weight: var(--fw-semibold);
  line-height: var(--lh-snug);
  letter-spacing: var(--ls-wide);
}

.upa-p1,
.upa-p2,
.upa-p3 {
  font-family: var(--font-body);
  font-weight: var(--fw-regular);
  margin: 0 0 1em;
  color: inherit;
}

.upa-p1 {
  font-size: var(--fs-p1);
  line-height: var(--lh-relaxed);
}

.upa-p2 {
  font-size: var(--fs-p2);
  line-height: var(--lh-normal);
}

.upa-p3 {
  font-size: var(--fs-p3);
  line-height: var(--lh-snug);
  color: rgba(255, 234, 204, 0.7);
}

/* ----- Header ----- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(33, 30, 27, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255, 234, 204, 0.08);
}

.header-inner {
  position: relative;
  max-width: var(--max);
  margin: 0 auto;
  padding: 1rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.logo img {
  height: 48px;
  width: auto;
}

@media (min-width: 900px) {
  .logo img {
    height: 72px;
  }
}

.nav-toggle {
  display: flex;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: 0;
  cursor: pointer;
  padding: 8px;
}

.nav-toggle span {
  width: 26px;
  height: 2px;
  background: var(--cream);
}

@media (min-width: 900px) {
  .nav-toggle {
    display: none;
  }
}

.nav {
  display: none;
  flex-wrap: wrap;
  gap: 0.5rem 2.5rem;
  justify-content: flex-end;
  align-items: center;
}

.nav.is-open {
  display: flex;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  flex-direction: column;
  padding: 1.25rem;
  background: var(--bg-header);
  border-bottom: 1px solid rgba(255, 234, 204, 0.12);
}

@media (min-width: 900px) {
  .nav {
    display: flex;
    position: static;
    flex-direction: row;
    padding: 0;
    border: 0;
  }
}

.nav a {
  font-family: var(--font-head);
  font-weight: 400;
  font-size: 1rem;
  letter-spacing: 0.02em;
  text-transform: none;
  color: var(--cream);
  text-decoration: none;
}

.nav a:hover {
  color: var(--nav-hover);
  text-decoration: none;
}

/* ----- Hero ----- */

.hero {
  position: relative;
  min-height: 56vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 4rem 1.25rem 5rem;
  overflow: hidden;
}

.hero__media {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero__media video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(204, 99, 51, 0.55) 0%,
    rgba(143, 17, 168, 0.45) 100%
  );
  z-index: 1;
}

.hero__content {
  position: relative;
  z-index: 2;
  max-width: 1100px;
}

.hero h1 {
  color: var(--cream);
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 700;
  text-shadow: 0 2px 24px rgba(0, 0, 0, 0.35);
}

/* ----- Value cards (hero follow) ----- */

.values {
  position: relative;
  padding: 3rem 1.25rem 4rem;
  background: linear-gradient(
      180deg,
      rgba(33, 30, 27, 0.97) 0%,
      var(--bg-dark) 100%
    ),
    var(--bg-dark);
}

.values-inner {
  max-width: var(--max);
  margin: 0 auto;
  display: grid;
  gap: 2rem;
}

@media (min-width: 900px) {
  .values-inner {
    grid-template-columns: repeat(3, 1fr);
    gap: 2.5rem;
  }
}

.value-card {
  background: rgba(255, 255, 255, 0.08);
  border-radius: var(--radius);
  padding: 1.75rem 1.5rem;
  text-align: center;
}

.value-card h2 {
  color: var(--white);
  font-size: 1.35rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
}

.value-card p {
  color: rgba(255, 255, 255, 0.92);
  margin: 0;
  font-size: 1rem;
}

/* ----- Sections (cream) ----- */

.section-cream {
  background: var(--cream-section);
  color: var(--text-dark);
  padding: 4rem 1.25rem;
}

.section-inner {
  max-width: var(--max);
  margin: 0 auto;
}

.section-cream h2 {
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  margin-bottom: 1.25rem;
}

.section-cream .lead {
  font-size: 1.1rem;
  color: var(--text-muted);
  max-width: 720px;
}

.section-cream ul {
  margin: 1.5rem 0 0;
  padding-left: 1.25rem;
}

.section-cream li {
  margin-bottom: 0.5rem;
  font-family: var(--font-head);
  font-weight: 500;
}

/* Philosophy layout */

.philo-grid {
  display: grid;
  gap: 2rem;
  margin-top: 2rem;
  align-items: start;
}

@media (min-width: 960px) {
  .philo-grid {
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
  }
}

.philo-images {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.philo-images img {
  border-radius: var(--radius);
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
}

.philo-images .tall {
  grid-row: span 2;
  aspect-ratio: auto;
  min-height: 280px;
}

/* ----- Programs (dark + gradient) ----- */

.section-programs {
  position: relative;
  padding: 4rem 1.25rem 5rem;
  color: var(--cream);
  background: var(--bg-dark);
}

.section-programs::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(204, 99, 51, 0.35) 0%,
    rgba(143, 17, 168, 0.35) 100%
  );
  opacity: 0.9;
  pointer-events: none;
}

.section-programs .section-inner {
  position: relative;
  z-index: 1;
}

.section-programs h2 {
  text-align: center;
  font-size: clamp(2.5rem, 5vw, 4.5rem);
  color: var(--cream);
  margin-bottom: 3rem;
}

.program-grid {
  display: grid;
  gap: 2.5rem;
  max-width: 1100px;
  margin: 0 auto;
}

@media (min-width: 900px) {
  .program-grid {
    grid-template-columns: 1fr 1fr;
    gap: 2rem 3rem;
    align-items: center;
  }
}

.program-item img {
  border-radius: var(--radius);
  width: 100%;
  max-height: 340px;
  object-fit: cover;
}

.program-item h3 {
  text-align: center;
  font-size: 1.75rem;
  font-weight: 500;
  color: var(--cream);
  margin-top: 1rem;
}

.program-item a {
  color: inherit;
  text-decoration: none;
}

.program-item a:hover h3 {
  color: var(--nav-hover);
}

/* ----- Gallery ----- */

.section-gallery {
  background: var(--cream-section);
  padding: 4rem 1.25rem 5rem;
}

.section-gallery h2 {
  text-align: center;
  font-size: clamp(2.5rem, 5vw, 4rem);
  color: var(--text-dark);
  margin-bottom: 0.75rem;
}

.section-gallery .sub {
  text-align: center;
  color: var(--text-muted);
  max-width: 640px;
  margin: 0 auto 2rem;
}

.gallery-masonry {
  column-count: 2;
  column-gap: 12px;
  max-width: 1224px;
  margin: 0 auto;
}

@media (min-width: 768px) {
  .gallery-masonry {
    column-count: 3;
    column-gap: 16px;
  }
}

@media (min-width: 1100px) {
  .gallery-masonry {
    column-count: 4;
    column-gap: 18px;
  }
}

.gallery-masonry figure {
  break-inside: avoid;
  margin: 0 0 12px;
  border-radius: 8px;
  overflow: hidden;
}

.gallery-masonry img {
  width: 100%;
  vertical-align: middle;
}

/* ----- Testimonial ----- */

.section-testimonial {
  background: var(--bg-header);
  color: var(--white);
  padding: 4rem 1.25rem;
}

.testimonial-grid {
  max-width: var(--max);
  margin: 0 auto;
  display: grid;
  gap: 2rem;
  align-items: center;
}

@media (min-width: 900px) {
  .testimonial-grid {
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
  }
}

.testimonial-grid img {
  border-radius: var(--radius);
  width: 100%;
  max-height: 420px;
  object-fit: cover;
}

.testimonial-quote {
  position: relative;
  background: var(--accent);
  padding: 2rem 1.75rem;
  border-radius: 4px;
}

.testimonial-quote p {
  font-family: var(--font-head);
  font-size: clamp(1.15rem, 2vw, 1.45rem);
  font-weight: 400;
  line-height: 1.45;
  margin: 0 0 1rem;
}

.stars {
  font-size: 1.35rem;
  letter-spacing: 0.15em;
  margin-bottom: 0.75rem;
}

.author {
  font-family: var(--font-head);
  font-weight: 500;
  font-size: 1.1rem;
}

/* ----- Footer ----- */

.site-footer {
  background: var(--bg-dark);
  color: var(--white);
  padding: 3rem 1.25rem 2rem;
}

.footer-inner {
  max-width: var(--max);
  margin: 0 auto;
  display: grid;
  gap: 2rem;
}

@media (min-width: 900px) {
  .footer-inner {
    grid-template-columns: 1.2fr 1fr 1fr;
    align-items: start;
  }
}

.site-footer h5 {
  color: var(--white);
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
}

.site-footer .tagline {
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.95rem;
  margin: 0 0 1rem;
}

.social {
  display: flex;
  gap: 1.5rem;
  margin-top: 0.5rem;
}

.social a {
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
}

.social a:hover {
  background: rgba(255, 255, 255, 0.2);
  text-decoration: none;
}

.social svg {
  width: 24px;
  height: 24px;
  fill: currentColor;
}

.footer-col h6 {
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--cream);
  margin-bottom: 0.75rem;
}

.footer-col p,
.footer-col a {
  color: var(--white);
  font-size: 0.95rem;
  line-height: 1.6;
}

.footer-col a:hover {
  color: var(--cream);
}

.copyright {
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.75);
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ----- Inner pages ----- */

.page-hero {
  background: linear-gradient(
    135deg,
    rgba(204, 99, 51, 0.4) 0%,
    rgba(143, 17, 168, 0.35) 100%
  ),
    var(--bg-header);
  color: var(--cream);
  padding: 3.5rem 1.25rem;
  text-align: center;
}

.page-hero h1 {
  font-size: clamp(2rem, 4vw, 3rem);
}

.page-content {
  background: var(--cream-section);
  padding: 3rem 1.25rem 4rem;
  min-height: 40vh;
}

.page-content .section-inner {
  max-width: 720px;
}

.page-content p {
  color: var(--text-muted);
  font-size: 1.1rem;
}

.back-link {
  display: inline-block;
  margin-top: 2rem;
  font-family: var(--font-head);
  font-weight: 500;
}

/* ----- Auto-generated site (build_offline.py) ----- */

.site-main {
  overflow-x: hidden;
}

body.nav-open {
  overflow: hidden;
}

.gen-layout-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding-left: 1.25rem;
  padding-right: 1.25rem;
}

/* Canvas layout (Zyro editor coordinates from build_offline.py) */
.gen-layout-inner--canvas {
  position: relative;
  width: 100%;
  max-width: min(calc(var(--cw) * 1px + 2.5rem), var(--max));
  margin-left: auto;
  margin-right: auto;
  padding-left: 1.25rem;
  padding-right: 1.25rem;
  box-sizing: border-box;
}

.gen-canvas-item {
  position: absolute;
  z-index: 2;
  box-sizing: border-box;
  left: calc(var(--d-l) / var(--cw) * 100%);
  top: calc(var(--d-t) / var(--ch) * 100%);
  width: calc(var(--d-w) / var(--cw) * 100%);
  height: calc(var(--d-h) * 1px);
  overflow: visible;
}

.gen-canvas-item--fluid {
  height: auto;
  min-height: calc(var(--d-h) * 1px);
}

.gen-canvas-item .gen-img {
  height: 100%;
  margin: 0;
}

.gen-canvas-item .gen-img img {
  width: 100%;
  height: 100%;
  min-height: 140px;
  object-fit: cover;
}

.gen-canvas-item .gallery-masonry {
  min-height: inherit;
}

.hero__content--canvas {
  display: block;
  width: 100%;
  max-width: none;
  margin: 0 auto;
  text-align: left;
  align-self: stretch;
}

.hero.gen-hero.hero--canvas {
  align-items: stretch;
  justify-content: flex-start;
  text-align: left;
  padding-top: 2rem;
  padding-bottom: 2rem;
}

@media (max-width: 920px) {
  .gen-layout-inner--canvas {
    min-height: calc(var(--mch) * 1px) !important;
    max-width: 100%;
  }

  .gen-canvas-item {
    left: calc(var(--m-l) / var(--mcw) * 100%);
    top: calc(var(--m-t) / var(--mch) * 100%);
    width: calc(var(--m-w) / var(--mcw) * 100%);
    height: calc(var(--m-h) * 1px);
  }

  .gen-canvas-item--fluid {
    height: auto;
    min-height: max(calc(var(--m-h) * 1px), 3rem);
  }
}

.gen-layout .gen-text {
  max-width: 100%;
}

.gen-layout .gen-text img {
  max-width: 100%;
  height: auto;
}

.gen-img {
  margin: 0 auto 1rem;
}

.gen-img img {
  width: 100%;
  height: auto;
  object-fit: cover;
}

.gen-footer .gen-layout {
  background: var(--bg-dark) !important;
  color: var(--white);
}

.gen-footer .gen-layout-inner {
  display: grid;
  gap: 2rem;
  padding-top: 2.5rem;
  padding-bottom: 2rem;
}

.gen-footer .gen-layout-inner--canvas {
  display: block;
  padding-top: 2.5rem;
  padding-bottom: 2rem;
}

@media (min-width: 900px) {
  .gen-footer .gen-layout-inner {
    grid-template-columns: 1.2fr 1fr 1fr;
    align-items: start;
  }
}

.gen-footer .gen-text,
.gen-footer .gen-text a,
.gen-footer .gen-text p {
  color: var(--white);
}

.gen-footer .gen-social a,
.gen-footer .gen-social-a {
  color: var(--white);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
}

.gen-footer .gen-social svg {
  width: 24px;
  height: 24px;
  fill: currentColor;
}

.gen-map iframe {
  width: 100%;
  min-height: 280px;
  border: 0;
  border-radius: 12px;
}

.gen-form-wrap {
  margin: 1rem 0 2rem;
}

.gen-form {
  max-width: 560px;
  margin: 0 auto;
  padding: 1.5rem;
  background: #fff;
  border-radius: 20px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
}

.gen-label {
  display: block;
  margin-bottom: 1rem;
}

.gen-label-t {
  display: block;
  font-family: var(--font-head);
  font-weight: 500;
  margin-bottom: 0.35rem;
  color: var(--text-dark);
}

.gen-form input,
.gen-form textarea {
  width: 100%;
  padding: 0.65rem 0.75rem;
  border: 1px solid rgb(184, 192, 204);
  border-radius: 10px;
  font-family: var(--font-body);
  font-size: 1rem;
}

.gen-submit {
  display: inline-block;
  margin-top: 0.5rem;
  padding: 0.75rem 1.75rem;
  border: none;
  border-radius: 50px;
  background: var(--accent);
  color: #fff;
  font-family: var(--font-head);
  font-weight: 600;
  cursor: pointer;
}

.gen-form-note,
.gen-form-success-msg {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-top: 1rem;
}

.gen-button-wrap {
  margin: 1rem 0;
}

/* -------------------------------------------------------------------------
   SEO content block (injected by scripts/apply_seo.py)
   A designed, crawlable narrative section that sits ABOVE the Hostinger
   footer to round out the page with location- and program-rich copy.
   ------------------------------------------------------------------------- */

.upa-seo-block {
  position: relative;
  background: linear-gradient(
    180deg,
    var(--bg-dark) 0%,
    rgba(33, 30, 27, 0.985) 100%
  );
  color: var(--cream);
  padding: clamp(3rem, 6vw, 5.5rem) 1.25rem clamp(3rem, 5vw, 4.5rem);
  border-top: 1px solid rgba(255, 234, 204, 0.08);
}

.upa-seo-block::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: clamp(3rem, 8vw, 5rem);
  height: 3px;
  background: var(--accent);
  border-radius: 2px;
}

.upa-seo-inner {
  max-width: min(var(--max), 1080px);
  margin: 0 auto;
}

.upa-seo-block h1,
.upa-seo-block h2,
.upa-seo-block h3 {
  font-family: var(--font-head);
  color: var(--cream);
  margin-bottom: 0.5rem;
}

.upa-seo-block h1 {
  font-size: var(--fs-h1);
  font-weight: var(--fw-bold);
  line-height: var(--lh-tight);
  letter-spacing: var(--ls-tight);
  margin-top: 0;
}

.upa-seo-block h2 {
  font-size: var(--fs-h2);
  font-weight: var(--fw-bold);
  line-height: var(--lh-tight);
  margin-top: 2.5rem;
}

.upa-seo-block h2:first-of-type,
.upa-seo-block h1 + h2 {
  margin-top: 0.25rem;
}

.upa-seo-block h3 {
  font-size: var(--fs-h3);
  font-weight: var(--fw-semibold);
  line-height: var(--lh-snug);
  letter-spacing: var(--ls-wide);
  color: var(--accent);
  margin-top: 1.75rem;
  text-transform: uppercase;
}

.upa-seo-block p,
.upa-seo-block li {
  font-family: var(--font-body);
  font-size: var(--fs-p2);
  font-weight: var(--fw-regular);
  line-height: var(--lh-relaxed);
  color: rgba(255, 234, 204, 0.88);
  max-width: 75ch;
}

/* First paragraph after an H1 acts as a lead/intro — auto P1 */
.upa-seo-block h1 + p,
.upa-seo-block h1 + figure + p,
.upa-seo-block .upa-p1 {
  font-size: var(--fs-p1);
  line-height: var(--lh-relaxed);
  color: var(--cream);
  margin-top: 0.75rem;
  max-width: 70ch;
}

.upa-seo-block .upa-p3 {
  font-size: var(--fs-p3);
  line-height: var(--lh-snug);
  color: rgba(255, 234, 204, 0.7);
}

.upa-seo-block p {
  margin: 0.5rem 0 1rem;
}

.upa-seo-block strong {
  color: var(--cream);
  font-weight: var(--fw-semibold);
}

.upa-seo-block a {
  color: var(--accent);
  text-decoration: underline;
  text-decoration-color: rgba(212, 156, 47, 0.5);
  text-underline-offset: 3px;
  transition: color 0.15s ease, text-decoration-color 0.15s ease;
}

.upa-seo-block a:hover {
  color: var(--cream);
  text-decoration-color: var(--cream);
}

.upa-camp-flyer {
  margin: 1.5rem auto 2.25rem;
  max-width: 560px;
  padding: 0;
}

.upa-camp-flyer img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 14px;
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.55),
    0 0 0 1px rgba(255, 234, 204, 0.06);
}

.upa-seo-block ul:not(.upa-seo-contact) {
  margin: 0.75rem 0 1.25rem;
  padding-left: 1.25rem;
}

.upa-seo-block ul:not(.upa-seo-contact) li {
  margin: 0.35rem 0;
}

.upa-seo-contact {
  list-style: none;
  padding: 0;
  margin: 1.25rem 0 0;
}

.upa-seo-contact li {
  margin: 0.45rem 0;
  font-size: var(--fs-p2);
  line-height: var(--lh-snug);
}

.upa-seo-block .upa-seo-cta {
  margin-top: 2rem;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(255, 234, 204, 0.08);
  font-family: var(--font-head);
  font-size: var(--fs-p1);
  font-weight: var(--fw-medium);
  line-height: var(--lh-snug);
  letter-spacing: var(--ls-wide);
}

@media (max-width: 600px) {
  .upa-seo-block {
    padding: 2.5rem 1rem 2.25rem;
  }
}

/* In-page anchor: 2026 camp detail (splash + internal links) */
#camp-2026 {
  scroll-margin-top: 5.5rem;
}

@media (min-width: 900px) {
  #camp-2026 {
    scroll-margin-top: 6.5rem;
  }
}

/* ----- Summer camp splash (injected before </body>) ----- */

.upa-summer-splash[hidden] {
  display: none !important;
}

.upa-summer-splash.upa-summer-splash--visible {
  display: flex !important;
  position: fixed;
  inset: 0;
  z-index: 100000;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  box-sizing: border-box;
}

.upa-summer-splash__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(33, 30, 27, 0.82);
  backdrop-filter: blur(6px);
}

.upa-summer-splash__panel {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 400px;
  max-height: min(92vh, 640px);
  overflow: auto;
  padding: 1rem 1.1rem 1.2rem;
  border-radius: var(--radius);
  background: var(--cream-section);
  color: var(--text-dark);
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.5),
    0 0 0 1px rgba(255, 234, 204, 0.12);
}

.upa-summer-splash__close {
  position: absolute;
  top: 0.5rem;
  right: 0.5rem;
  z-index: 2;
  width: 2.25rem;
  height: 2.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 50%;
  background: rgba(33, 30, 27, 0.08);
  color: var(--text-dark);
  font-size: 1.35rem;
  line-height: 1;
  cursor: pointer;
}

.upa-summer-splash__close:hover {
  background: rgba(204, 99, 51, 0.2);
}

.upa-summer-splash__img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 12px;
  margin: 0 0 0.85rem;
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.18);
}

.upa-summer-splash__title {
  font-family: var(--font-head);
  font-size: var(--fs-h3);
  font-weight: var(--fw-bold);
  margin: 0 0 0.35rem;
  padding-right: 2rem;
  color: var(--text-dark);
}

.upa-summer-splash__desc {
  font-family: var(--font-body);
  font-size: var(--fs-p3);
  line-height: var(--lh-snug);
  margin: 0 0 1rem;
  color: var(--text-muted);
}

.upa-summer-splash__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem 0.75rem;
  align-items: center;
}

.upa-summer-splash__cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.55rem 1.1rem;
  border-radius: 999px;
  background: var(--accent);
  color: var(--white) !important;
  font-family: var(--font-head);
  font-weight: var(--fw-semibold);
  font-size: 0.95rem;
  text-decoration: none !important;
}

.upa-summer-splash__cta:hover {
  filter: brightness(1.08);
  text-decoration: none !important;
}

.upa-summer-splash__later {
  border: 0;
  background: none;
  font-family: var(--font-body);
  font-size: var(--fs-p3);
  color: var(--text-muted);
  text-decoration: underline;
  cursor: pointer;
  padding: 0.35rem 0;
}

.upa-summer-splash__later:hover {
  color: var(--accent);
}
