:root {
  --blue-950: #071a3d;
  --blue-900: #09265c;
  --blue-700: #134bb5;
  --blue-600: #1f64d8;
  --blue-100: #eaf1ff;
  --red-600: #d82134;
  --red-100: #ffe8eb;
  --ink: #111827;
  --muted: #5d6678;
  --line: #d9e1ef;
  --surface: #ffffff;
  --surface-soft: #f6f8fc;
  --shadow: 0 18px 45px rgba(9, 38, 92, 0.12);
  --radius: 8px;
  --container: min(1120px, calc(100% - 40px));
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--surface);
  line-height: 1.6;
}

img {
  display: block;
  width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select,
textarea {
  font: inherit;
}

.skip-link {
  position: fixed;
  left: 16px;
  top: 16px;
  z-index: 100;
  transform: translateY(-160%);
  background: var(--blue-950);
  color: white;
  padding: 10px 14px;
  border-radius: 6px;
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.92);
  border-bottom: 1px solid rgba(217, 225, 239, 0.8);
  backdrop-filter: blur(18px);
}

.nav {
  width: var(--container);
  min-height: 78px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-weight: 800;
  color: var(--blue-950);
}

.logo__mark {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 8px;
  color: white;
  background: linear-gradient(135deg, var(--blue-700), var(--red-600));
  box-shadow: 0 12px 28px rgba(19, 75, 181, 0.22);
}

.logo__text {
  max-width: 150px;
  line-height: 1.15;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 6px;
}

.nav-menu a {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  border-radius: 7px;
  padding: 0 14px;
  color: var(--muted);
  font-size: 0.95rem;
  font-weight: 700;
  transition:
    color 180ms ease,
    background 180ms ease,
    transform 180ms ease;
}

.nav-menu a:hover,
.nav-menu a.is-active {
  color: var(--blue-900);
  background: var(--blue-100);
}

.nav-menu .nav-cta {
  margin-left: 8px;
  color: white;
  background: var(--red-600);
}

.nav-menu .nav-cta:hover {
  color: white;
  background: #b91728;
  transform: translateY(-1px);
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  flex: 0 0 44px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--blue-100);
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  margin: 4px auto;
  background: var(--blue-950);
}

.section {
  width: var(--container);
  margin: 0 auto;
  padding: 88px 0;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.9fr);
  align-items: center;
  gap: 56px;
  padding-top: 96px;
  padding-bottom: 92px;
}

.hero__content h1,
.page-hero h1 {
  margin: 0;
  color: var(--blue-950);
  font-size: clamp(2.55rem, 5vw, 5.4rem);
  line-height: 0.97;
  letter-spacing: 0;
}

.hero__content p:not(.brand-line),
.page-hero p:not(.brand-line) {
  max-width: 650px;
  margin: 24px 0 0;
  color: var(--muted);
  font-size: 1.13rem;
}

.brand-line {
  margin: 0 0 18px;
  color: var(--red-600);
  font-weight: 850;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 34px;
}

.btn {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 8px;
  padding: 0 20px;
  font-weight: 800;
  cursor: pointer;
  transition:
    transform 180ms ease,
    box-shadow 180ms ease,
    background 180ms ease;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn--primary {
  color: white;
  background: var(--red-600);
  box-shadow: 0 14px 30px rgba(216, 33, 52, 0.22);
}

.btn--secondary,
.btn--ghost {
  color: var(--blue-900);
  background: var(--blue-100);
}

.btn--light {
  color: var(--blue-950);
  background: white;
}

.btn--whatsapp {
  width: 100%;
  color: white;
  background: #1faa59;
}

.hero__media {
  position: relative;
}

.hero__media::before {
  content: "";
  position: absolute;
  inset: 11% -3% -5% 10%;
  z-index: -1;
  border-radius: 8px;
  background: var(--blue-100);
}

.hero__media img,
.feature-image {
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.intro-band,
.cta-section {
  width: min(1120px, calc(100% - 40px));
  border-radius: 8px;
}

.intro-band {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 40px;
  align-items: end;
  padding: 48px;
  background: var(--blue-950);
  color: white;
}

.intro-band p {
  margin: 0;
  color: rgba(255, 255, 255, 0.78);
}

.section-heading {
  max-width: 720px;
}

.section-heading span {
  display: block;
  margin-bottom: 10px;
  color: var(--red-600);
  font-size: 0.86rem;
  font-weight: 850;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.section-heading h2 {
  margin: 0;
  color: var(--blue-950);
  font-size: clamp(2rem, 3.5vw, 3.5rem);
  line-height: 1.05;
  letter-spacing: 0;
}

.intro-band .section-heading h2,
.cta-section h2 {
  color: white;
}

.level-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 16px;
  margin-top: 40px;
}

.level-card,
.value-card,
.info-panel,
.program-card,
.contact-card,
.contact-form {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
  box-shadow: 0 10px 24px rgba(9, 38, 92, 0.06);
}

.level-card {
  min-height: 255px;
  padding: 24px;
}

.level-card span {
  color: var(--red-600);
  font-weight: 900;
}

.level-card h3,
.value-card h3,
.program-card h3,
.info-panel h3 {
  margin: 16px 0 10px;
  color: var(--blue-950);
  font-size: 1.25rem;
  line-height: 1.2;
}

.level-card p,
.value-card p,
.program-card p,
.info-panel p {
  margin: 0;
  color: var(--muted);
}

.strengths-section,
.values-band,
.programs-section {
  width: 100%;
  max-width: none;
  background: var(--surface-soft);
}

.strengths-section > *,
.values-band > *,
.programs-section > * {
  width: var(--container);
  margin-left: auto;
  margin-right: auto;
}

.split-layout {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 58px;
  align-items: center;
}

.split-layout--balanced {
  grid-template-columns: 1fr 1fr;
}

.split-layout p {
  color: var(--muted);
}

.text-link {
  color: var(--blue-700);
  font-weight: 850;
}

.strength-list {
  display: grid;
  gap: 12px;
}

.strength-item {
  display: flex;
  align-items: center;
  gap: 16px;
  min-height: 64px;
  padding: 18px 20px;
  border-radius: 8px;
  background: white;
  border: 1px solid var(--line);
}

.strength-item span {
  width: 14px;
  height: 14px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--blue-600), var(--red-600));
}

.strength-item p {
  margin: 0;
  color: var(--blue-950);
  font-weight: 750;
}

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

.gallery-grid--preview {
  margin-top: 36px;
}

.gallery-item {
  position: relative;
  min-height: 280px;
  margin: 0;
  overflow: hidden;
  border-radius: 8px;
  background: var(--blue-100);
  box-shadow: 0 12px 26px rgba(9, 38, 92, 0.09);
}

.gallery-item img {
  height: 100%;
  min-height: 280px;
  object-fit: cover;
  transition: transform 500ms ease;
}

.gallery-item figcaption {
  position: absolute;
  left: 16px;
  right: 16px;
  bottom: 16px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 14px;
  border-radius: 8px;
  color: white;
  background: rgba(7, 26, 61, 0.82);
  backdrop-filter: blur(12px);
}

.gallery-item span {
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.92rem;
}

.gallery-item:hover img {
  transform: scale(1.05);
}

.center {
  display: flex;
  justify-content: center;
  margin-top: 32px;
}

.cta-section {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 32px;
  padding: 48px;
  color: white;
  background: linear-gradient(135deg, var(--blue-900), var(--blue-700) 62%, var(--red-600));
}

.cta-section h2 {
  margin: 0;
  font-size: clamp(1.9rem, 3vw, 3.3rem);
  line-height: 1.05;
}

.cta-section p {
  margin: 14px 0 0;
  color: rgba(255, 255, 255, 0.78);
}

.page-hero {
  min-height: 430px;
  display: flex;
  align-items: center;
  padding-bottom: 72px;
}

.story-section {
  padding-top: 20px;
}

.mission-grid,
.values-grid,
.program-list {
  display: grid;
  gap: 18px;
  margin-top: 36px;
}

.mission-grid,
.values-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.info-panel,
.value-card,
.program-card {
  padding: 28px;
}

.program-list {
  margin-top: 0;
}

.contact-layout {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 26px;
  align-items: start;
}

.contact-form,
.contact-card {
  padding: 30px;
}

.form-row {
  display: grid;
  gap: 8px;
  margin-bottom: 18px;
}

.form-row label,
.contact-item span {
  color: var(--blue-950);
  font-weight: 850;
}

.form-row input,
.form-row select,
.form-row textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 13px 14px;
  color: var(--ink);
  background: var(--surface-soft);
  transition:
    border 160ms ease,
    box-shadow 160ms ease;
}

.form-row input:focus,
.form-row select:focus,
.form-row textarea:focus {
  outline: none;
  border-color: var(--blue-600);
  box-shadow: 0 0 0 4px rgba(31, 100, 216, 0.14);
}

.form-status {
  min-height: 24px;
  margin: 16px 0 0;
  color: var(--blue-700);
  font-weight: 750;
}

.contact-card h2 {
  margin: 0 0 24px;
  color: var(--blue-950);
  font-size: 1.6rem;
}

.contact-item {
  margin-bottom: 22px;
}

.contact-item a,
.contact-item p {
  display: block;
  margin: 4px 0 0;
  color: var(--muted);
}

.map-section {
  padding-top: 0;
}

.map-section iframe {
  width: 100%;
  min-height: 380px;
  border: 0;
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.site-footer {
  margin-top: 30px;
  padding: 56px 0 24px;
  color: rgba(255, 255, 255, 0.78);
  background: var(--blue-950);
}

.footer-grid,
.footer-bottom {
  width: var(--container);
  margin: 0 auto;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.65fr 1fr;
  gap: 48px;
}

.site-footer .logo {
  color: white;
}

.site-footer h2 {
  margin: 0 0 14px;
  color: white;
  font-size: 1rem;
}

.site-footer a,
.site-footer p {
  display: block;
  margin: 0 0 10px;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  margin-top: 44px;
  padding-top: 22px;
  border-top: 1px solid rgba(255, 255, 255, 0.16);
  font-size: 0.92rem;
}

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition:
    opacity 620ms ease,
    transform 620ms ease;
  transition-delay: var(--delay, 0ms);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 980px) {
  .hero,
  .split-layout,
  .split-layout--balanced,
  .intro-band,
  .contact-layout {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
    padding-top: 64px;
    padding-bottom: 56px;
  }

  .level-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .gallery-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

@media (max-width: 760px) {
  :root {
    --container: min(1120px, calc(100% - 28px));
  }

  .nav {
    min-height: 68px;
  }

  .logo__mark {
    width: 42px;
    height: 42px;
  }

  .logo__text {
    max-width: 122px;
    font-size: 0.92rem;
  }

  .nav-toggle {
    display: block;
    position: fixed;
    top: 12px;
    right: 14px;
    z-index: 90;
  }

  .nav-menu {
    position: absolute;
    left: 14px;
    right: 14px;
    top: 76px;
    display: grid;
    gap: 8px;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: white;
    box-shadow: var(--shadow);
    opacity: 0;
    pointer-events: none;
    transform: translateY(-10px);
    transition:
      opacity 180ms ease,
      transform 180ms ease;
  }

  .nav-menu.is-open {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
  }

  .nav-menu .nav-cta {
    margin-left: 0;
  }

  .section {
    padding: 62px 0;
  }

  .hero__content h1,
  .page-hero h1 {
    font-size: clamp(2.35rem, 12vw, 4rem);
  }

  .hero__content p:not(.brand-line),
  .page-hero p:not(.brand-line) {
    font-size: 1rem;
  }

  .hero__actions,
  .cta-section {
    align-items: stretch;
    flex-direction: column;
  }

  .intro-band,
  .cta-section {
    padding: 30px;
  }

  .level-grid,
  .gallery-grid,
  .mission-grid,
  .values-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }

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

  .gallery-item,
  .gallery-item img {
    min-height: 235px;
  }

  .contact-form,
  .contact-card {
    padding: 22px;
  }

  .footer-bottom {
    flex-direction: column;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition: none !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}
