/* =============================================
       RESET & BASE
    ============================================= */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --blue-dark: #003366;
  --blue-mid: #1d3557;
  --blue-light: #4a90e2;
  --gold: #f4c20d;
  --gold-hover: #f9d03a;
  --bg: #f4f7fb;
  --text: #333;
  --muted: #5a6a7e;
  --white: #ffffff;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Krub", sans-serif;
  background: var(--bg);
  color: var(--text);
  overflow-x: hidden;
}

img {
  display: block;
  max-width: 100%;
}

/* =============================================
       SHARED ATOMS
    ============================================= */
.section-eyebrow {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
  display: block;
  margin-bottom: 10px;
}

.gold-bar {
  width: 48px;
  height: 3px;
  background: var(--gold);
  border-radius: 2px;
  margin-bottom: 20px;
}
.gold-bar--center {
  margin-left: auto;
  margin-right: auto;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  padding: 14px 28px;
  border-radius: 10px;
  font-family: "Krub", sans-serif;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  transition:
    background 0.2s,
    transform 0.2s,
    box-shadow 0.2s,
    color 0.2s;
  position: relative;
  overflow: hidden;
  cursor: pointer;
  border: none;
}
.btn::after {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 70%;
  height: 100%;
  background: linear-gradient(
    120deg,
    transparent,
    rgba(255, 255, 255, 0.18),
    transparent
  );
  transition: left 0.5s ease;
  pointer-events: none;
}
.btn:hover::after {
  left: 160%;
}

.btn-primary {
  background: var(--gold);
  color: var(--blue-mid);
  box-shadow: 0 4px 16px rgba(244, 194, 13, 0.35);
}
.btn-primary:hover {
  background: var(--gold-hover);
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(244, 194, 13, 0.5);
}

.btn-outline {
  background: transparent;
  color: var(--blue-dark);
  border: 2px solid var(--blue-dark);
}
.btn-outline:hover {
  background: var(--blue-dark);
  color: var(--white);
  transform: translateY(-2px);
}

.btn-gold {
  background: var(--gold);
  color: var(--blue-mid);
  box-shadow: 0 4px 16px rgba(244, 194, 13, 0.35);
}
.btn-gold:hover {
  background: var(--gold-hover);
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(244, 194, 13, 0.5);
}

.btn-white-outline {
  background: transparent;
  color: var(--white);
  border: 2px solid rgba(255, 255, 255, 0.4);
}
.btn-white-outline:hover {
  background: rgba(255, 255, 255, 0.1);
  transform: translateY(-2px);
}

/* Scroll reveal */
.reveal {
  opacity: 0;
  transform: translateY(36px);
  transition:
    opacity 0.72s cubic-bezier(0.22, 0.68, 0, 1.2),
    transform 0.72s cubic-bezier(0.22, 0.68, 0, 1.2);
}
.reveal-left {
  opacity: 0;
  transform: translateX(-48px);
  transition:
    opacity 0.75s cubic-bezier(0.22, 0.68, 0, 1.2),
    transform 0.75s cubic-bezier(0.22, 0.68, 0, 1.2);
}
.reveal-right {
  opacity: 0;
  transform: translateX(48px);
  transition:
    opacity 0.75s cubic-bezier(0.22, 0.68, 0, 1.2),
    transform 0.75s cubic-bezier(0.22, 0.68, 0, 1.2);
}
.reveal.revealed,
.reveal-left.revealed,
.reveal-right.revealed {
  opacity: 1;
  transform: none;
}
.reveal-d1 {
  transition-delay: 0.1s;
}
.reveal-d2 {
  transition-delay: 0.22s;
}
.reveal-d3 {
  transition-delay: 0.34s;
}
.reveal-d4 {
  transition-delay: 0.46s;
}

/* =============================================
       INTRO SECTION
    ============================================= */
.autismo-intro {
  padding: 80px 24px 72px;
  background: var(--white);
  position: relative;
  overflow: hidden;
}
.autismo-intro::before {
  content: "TEA";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: clamp(100px, 24vw, 280px);
  font-weight: 700;
  color: rgba(0, 51, 102, 0.03);
  pointer-events: none;
  white-space: nowrap;
  letter-spacing: 0.1em;
  user-select: none;
}

.autismo-intro__inner {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
  position: relative;
  z-index: 1;
}

.autismo-intro__title {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 700;
  color: var(--blue-dark);
  line-height: 1.15;
  margin-bottom: 20px;
}
.autismo-intro__title em {
  font-style: italic;
  color: var(--gold);
  background-image: linear-gradient(var(--gold), var(--gold));
  background-repeat: no-repeat;
  background-size: 0% 3px;
  background-position: 0 100%;
  padding-bottom: 2px;
  transition: background-size 0.6s 0.3s ease;
}
.autismo-intro__title.title-underlined em {
  background-size: 100% 3px;
}

.autismo-intro__text {
  font-size: 1rem;
  color: var(--muted);
  line-height: 1.85;
  margin-bottom: 16px;
}

/* Stat chips */
.autismo-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 28px;
}
.autismo-stat {
  background: var(--bg);
  border-radius: 14px;
  padding: 14px 18px;
  border: 1.5px solid rgba(0, 51, 102, 0.08);
  text-align: center;
  min-width: 110px;
  transition:
    transform 0.25s,
    border-color 0.25s,
    box-shadow 0.25s;
  cursor: default;
}
.autismo-stat:hover {
  transform: translateY(-4px);
  border-color: rgba(244, 194, 13, 0.4);
  box-shadow: 0 8px 24px rgba(0, 51, 102, 0.1);
}
.autismo-stat__num {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--blue-dark);
  display: block;
  line-height: 1;
  margin-bottom: 4px;
}
.autismo-stat__num span {
  color: var(--gold);
}
.autismo-stat__label {
  font-size: 0.72rem;
  color: var(--muted);
  font-weight: 600;
  letter-spacing: 0.04em;
}

/* Visual side */
.autismo-intro__visual {
  position: relative;
}

.autismo-intro__img {
  width: 100%;
  aspect-ratio: 4/3;
  border-radius: 28px;
  object-fit: cover;
  box-shadow: 0 20px 60px rgba(0, 51, 102, 0.14);
  transition: transform 0.5s cubic-bezier(0.22, 0.68, 0, 1.2);
}
.autismo-intro__visual:hover .autismo-intro__img {
  transform: scale(1.02) rotate(-0.4deg);
}

.autismo-ring {
  position: absolute;
  border-radius: 50%;
  border: 3px solid rgba(244, 194, 13, 0.3);
  animation: ringPulse 4.5s ease-in-out infinite;
}
@keyframes ringPulse {
  0%,
  100% {
    transform: scale(1);
    opacity: 0.8;
  }
  50% {
    transform: scale(1.18);
    opacity: 0.3;
  }
}

.autismo-badge {
  position: absolute;
  bottom: -22px;
  right: 24px;
  background: var(--white);
  border-radius: 16px;
  padding: 12px 18px;
  box-shadow: 0 8px 32px rgba(0, 51, 102, 0.14);
  display: flex;
  align-items: center;
  gap: 12px;
  animation: badgeFloat 4s ease-in-out infinite;
}
@keyframes badgeFloat {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-7px);
  }
}
.autismo-badge__icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: var(--gold);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  flex-shrink: 0;
}
.autismo-badge__text strong {
  display: block;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--blue-dark);
  line-height: 1;
  margin-bottom: 2px;
}
.autismo-badge__text span {
  font-size: 0.68rem;
  color: var(--muted);
  font-weight: 500;
}

/* =============================================
       INFO SECTION — checkbox accordion
    ============================================= */
.info-section {
  padding: 72px 24px 100px;
  background: var(--bg);
}

.info-section__inner {
  max-width: 860px;
  margin: 0 auto;
}

.info-section__header {
  text-align: center;
  margin-bottom: 52px;
}
.info-section__header h2 {
  font-size: clamp(1.6rem, 3.5vw, 2.3rem);
  font-weight: 700;
  color: var(--blue-dark);
  margin-bottom: 12px;
}
.info-section__header h2 span {
  color: var(--gold);
}
.info-section__header p {
  font-size: 1rem;
  color: var(--muted);
  line-height: 1.7;
  max-width: 520px;
  margin: 0 auto;
}

/* ── Checkbox accordion ── */

/* Hide native checkboxes */
.accordion {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.accordion li {
  position: relative;
}
.accordion li input[type="checkbox"] {
  display: none;
}

/* Panel wrapper */
.accordion li {
  background: var(--white);
  border-radius: 18px;
  border: 1.5px solid rgba(0, 51, 102, 0.08);
  overflow: hidden;
  box-shadow: 0 4px 16px rgba(0, 51, 102, 0.06);
  transition:
    box-shadow 0.3s,
    border-color 0.3s;
}
.accordion li:hover {
  border-color: rgba(244, 194, 13, 0.3);
  box-shadow: 0 8px 32px rgba(0, 51, 102, 0.1);
}

/* Label = summary row */
.accordion label {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 20px 52px 20px 24px;
  cursor: pointer;
  font-size: 0.88rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--blue-dark);
  background: var(--white);
  transition:
    background 0.25s,
    color 0.25s;
  position: relative;
  user-select: none;
}

/* Chevron via pseudo */
.accordion label::after {
  content: "";
  position: absolute;
  right: 22px;
  top: 50%;
  transform: translateY(-50%) rotate(0deg);
  width: 18px;
  height: 18px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23003366' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-size: contain;
  background-repeat: no-repeat;
  transition: transform 0.3s cubic-bezier(0.22, 0.68, 0, 1.2);
}

/* Open state: checked input → sibling label */
.accordion li input[type="checkbox"]:checked ~ label {
  background: var(--blue-dark);
  color: var(--white);
}
.accordion li input[type="checkbox"]:checked ~ label::after {
  transform: translateY(-50%) rotate(180deg);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
}
.accordion li input[type="checkbox"]:checked ~ label .icon {
  filter: brightness(0) invert(1);
}

/* Border highlight on open */
.accordion li:has(input[type="checkbox"]:checked) {
  border-color: rgba(244, 194, 13, 0.45);
  box-shadow: 0 12px 40px rgba(0, 51, 102, 0.12);
}

/* Icon in label */
.accordion label .icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  filter: brightness(0) saturate(100%) invert(15%) sepia(70%) saturate(800%)
    hue-rotate(195deg) brightness(80%);
  transition: filter 0.2s;
}

/* label-text wrapper (for labels with icons) */
.label-text {
  display: flex;
  align-items: center;
  gap: 10px;
}

/* Content area — hidden by default */
.accordion li .content {
  max-height: 0;
  overflow: hidden;
  transition:
    max-height 0.45s cubic-bezier(0.22, 0.68, 0, 1.2),
    padding 0.3s ease;
  padding: 0 24px;
}

/* Show content when checked */
.accordion li input[type="checkbox"]:checked ~ .content {
  max-height: 1200px;
  padding: 4px 24px 24px;
}

/* Content typography */
.accordion .content p {
  font-size: 0.95rem;
  color: var(--muted);
  line-height: 1.8;
  margin-bottom: 14px;
}
.accordion .content p:last-child {
  margin-bottom: 0;
}
.accordion .content em {
  font-style: italic;
  color: var(--blue-dark);
}

/* Checklist */
.checklist {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 8px;
}
.checklist li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 0.92rem;
  color: var(--text);
  line-height: 1.6;
  padding: 10px 14px;
  border-radius: 10px;
  background: var(--bg);
  border: 1px solid rgba(0, 51, 102, 0.06);
  transition:
    background 0.2s,
    border-color 0.2s,
    transform 0.2s;
}
.checklist li:hover {
  background: rgba(244, 194, 13, 0.06);
  border-color: rgba(244, 194, 13, 0.25);
  transform: translateX(4px);
}
.checklist li::before {
  content: "";
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  margin-top: 2px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23f4c20d' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E")
    center/contain no-repeat;
}

/* Images inside content */
.info-image {
  margin: 20px 0 8px;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 8px 32px rgba(0, 51, 102, 0.1);
}
.info-image img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 16px;
  transition: transform 0.5s cubic-bezier(0.22, 0.68, 0, 1.2);
}
.info-image:hover img {
  transform: scale(1.02);
}
.info-image--sm img {
  max-width: 480px;
  margin: 0 auto;
}

figcaption {
  font-size: 0.75rem;
  color: var(--muted);
  line-height: 1.6;
  padding: 10px 14px;
  background: var(--bg);
  border-top: 1px solid rgba(0, 51, 102, 0.06);
  font-style: italic;
}

/* =============================================
       CTA STRIP
    ============================================= */
.autismo-cta-strip {
  background: var(--blue-dark);
  padding: 52px 24px;
  position: relative;
  overflow: hidden;
}
.autismo-cta-strip::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(
      ellipse 60% 80% at 10% 50%,
      rgba(244, 194, 13, 0.07) 0%,
      transparent 60%
    ),
    radial-gradient(
      ellipse 50% 70% at 90% 50%,
      rgba(74, 144, 226, 0.08) 0%,
      transparent 60%
    );
  pointer-events: none;
}
.autismo-cta-strip__inner {
  max-width: 860px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
  position: relative;
  z-index: 1;
}
.autismo-cta-strip__text h3 {
  font-size: clamp(1.1rem, 2.5vw, 1.5rem);
  font-weight: 700;
  color: var(--white);
  margin-bottom: 6px;
}
.autismo-cta-strip__text p {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.65);
  line-height: 1.6;
}
.autismo-cta-strip__btns {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

/* =============================================
       CTA FINAL
    ============================================= */
.cta-section {
  padding: 100px 24px;
  background: var(--white);
  text-align: center;
}
.cta-box {
  max-width: 640px;
  margin: 0 auto;
  background: var(--bg);
  border-radius: 28px;
  padding: 60px 48px;
  box-shadow: 0 16px 60px rgba(0, 51, 102, 0.08);
  position: relative;
  overflow: hidden;
  animation: ctaBreath 5s ease-in-out infinite;
}
@keyframes ctaBreath {
  0%,
  100% {
    box-shadow: 0 16px 60px rgba(0, 51, 102, 0.08);
  }
  50% {
    box-shadow: 0 24px 80px rgba(0, 51, 102, 0.14);
  }
}
.cta-box::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(to right, var(--blue-dark), var(--gold));
}
.cta-box .cta-icon {
  font-size: 2.6rem;
  display: block;
  margin-bottom: 20px;
}
.cta-box h2 {
  font-size: clamp(1.4rem, 3vw, 2rem);
  font-weight: 700;
  color: var(--blue-dark);
  margin-bottom: 16px;
  line-height: 1.3;
}
.cta-box p {
  font-size: 1rem;
  color: var(--muted);
  line-height: 1.75;
  margin-bottom: 36px;
}
.cta-btns {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
}

/* =============================================
       RESPONSIVE
    ============================================= */
@media (max-width: 960px) {
  .autismo-intro__inner {
    grid-template-columns: 1fr;
    gap: 48px;
  }
  .autismo-intro__visual {
    display: none;
  }
  .autismo-cta-strip__inner {
    flex-direction: column;
    align-items: flex-start;
  }
}
@media (max-width: 600px) {
  .autismo-intro {
    padding: 56px 20px 48px;
  }
  .info-section {
    padding: 56px 20px 72px;
  }
  .cta-box {
    padding: 40px 24px;
  }
  .accordion label {
    padding: 16px 48px 16px 18px;
    font-size: 0.8rem;
  }
  .accordion li input[type="checkbox"]:checked ~ .content {
    padding: 4px 18px 20px;
  }
}
