@font-face {
  font-family: "Cormorant Garamond";
  src: url("fonts/cormorant-garamond.woff2") format("woff2");
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
}

@font-face {
  font-family: "DM Sans";
  src: url("fonts/dm-sans.woff2") format("woff2");
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
}

:root {
  color-scheme: light;
  --white: #fff;
  --surface: #fbf8fd;
  --ink: #29123d;
  --muted: #66566f;
  --purple: #673787;
  --purple-hover: #572976;
  --lilac: #f0e5f7;
  --line: #e9dfed;
  --gold: #ffcf54;
  --heading: "Century Gothic", "Avenir Next", "Trebuchet MS", system-ui, sans-serif;
  --body: Candara, "Segoe UI", system-ui, sans-serif;
  --radius: 1.35rem;
  --page-width: 76rem;
}

*, *::before, *::after { box-sizing: border-box; }
html {
  scroll-padding-top: 1.75rem;
  scroll-padding-bottom: calc(5rem + env(safe-area-inset-bottom, 0px));
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--white);
  font-family: var(--body);
  font-size: 1.0625rem;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 {
  font-family: var(--heading);
  line-height: 1.15;
  letter-spacing: -.038em;
  font-weight: 400;
  margin: 0;
}

p { margin: 0; }
a { color: var(--purple); text-underline-offset: .25em; }
img { display: block; max-inline-size: 100%; }
[hidden] { display: none !important; }

:focus-visible { outline: 3px solid #9b49b8; outline-offset: 4px; }

.container {
  width: min(var(--page-width), calc(100% - clamp(2.25rem, 9vw, 10rem)));
  margin-inline: auto;
}

.skip-link {
  position: absolute;
  z-index: 10;
  top: .75rem;
  left: .75rem;
  padding: .8rem 1rem;
  transform: translateY(-160%);
  background: var(--white);
  border-radius: .4rem;
  font-weight: 700;
}

.skip-link:focus { transform: none; }

.icon { display: block; flex: none; inline-size: 1.25rem; block-size: 1.25rem; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  color: var(--purple);
  font-size: .875rem;
  font-weight: 700;
  letter-spacing: .082em;
  line-height: 1.3;
  text-transform: uppercase;
}

.eyebrow::before {
  content: "";
  inline-size: 1.25rem;
  block-size: .1875rem;
  border-radius: 1rem;
  background: #e4aa24;
}

.button {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: .55rem;
  min-height: 3.125rem;
  padding: .68rem 1.16rem;
  border: 1px solid transparent;
  border-radius: .65rem;
  font-family: inherit;
  font-size: .94rem;
  line-height: 1.25;
  font-weight: 700;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: background-color .18s, border-color .18s, color .18s, box-shadow .18s;
}

.button-primary {
  background: var(--purple);
  color: var(--white);
  box-shadow: 0 4px 10px #56247824;
}

.button-primary:hover { background: var(--purple-hover); }

.site-header { position: relative; z-index: 2; background: var(--white); border-bottom: 1px solid #eee7f1; }

.header-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 1.75rem;
  min-height: 5rem;
}

.brand {
  width: fit-content;
  max-width: 100%;
  display: inline-flex;
  align-items: center;
  gap: .65rem;
  color: var(--ink);
  text-decoration: none;
}

.brand img {
  width: 2.125rem;
  height: 2.72rem;
  flex: none;
  object-fit: contain;
}

.brand-text {
  display: grid;
  gap: .1rem;
  text-align: center;
  font-family: "DM Sans", "Segoe UI", sans-serif;
  font-size: clamp(.9375rem, 1.6vw, 1.125rem);
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -.015em;
}

.brand-text strong {
  font-size: 1.16em;
  font-weight: 700;
  line-height: 1.12;
}

.brand .brand-text strong { color: var(--purple); }

.site-nav { display: flex; align-items: center; }
.site-nav a {
  position: relative;
  display: inline-flex;
  align-items: center;
  min-height: 2.75rem;
  color: var(--muted);
  font-weight: 700;
  font-size: .94rem;
  text-decoration: none;
}

.site-nav a:hover, .site-nav a[aria-current] { color: var(--purple); }
.site-nav a[aria-current]::after {
  position: absolute;
  inset: auto 0 .24rem;
  height: .13rem;
  border-radius: 1rem;
  background: #e4aa24;
  content: "";
}

.home-hero {
  overflow: hidden;
  padding-block: clamp(3.5rem, 5.6vw, 5.15rem) clamp(3rem, 5vw, 4.55rem);
  background: radial-gradient(ellipse at 82% 35%, #f0e1f7, transparent 58%), linear-gradient(110deg, #fcf8fd, #faf4fc);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.02fr 1fr;
  align-items: center;
  gap: clamp(1.75rem, 4.8vw, 4.6rem);
}

.hero-copy { padding-bottom: 1.45rem; }

.hero-copy h1 {
  margin-top: 1.15rem;
  font-size: clamp(2.55rem, 4.55vw, 4.15rem);
  letter-spacing: -.047em;
  line-height: 1.08;
}

.hero-copy h1 span { display: block; color: var(--purple); }
.hero-copy h1 strong { position: relative; isolation: isolate; font-weight: inherit; }
.hero-copy h1 strong::after {
  content: "";
  position: absolute;
  z-index: -1;
  background: #f8cf59;
  width: 102%;
  height: .13em;
  bottom: .055em;
  left: 0;
  border-radius: 70% 27% 63% 35%;
  transform: rotate(-2deg);
}

.hero-description { max-width: 28rem; margin-top: 1.6rem; color: var(--muted); font-size: clamp(1.06rem, 1.45vw, 1.2rem); line-height: 1.6; }
.hero-description p + p { margin-top: .65em; }
.hero-cta { margin-top: 1.75rem; }

.hero-figure { position: relative; isolation: isolate; margin: 0; }
.hero-figure::before {
  position: absolute;
  z-index: -1;
  content: "";
  inline-size: 8.2rem;
  block-size: 5.6rem;
  inset: auto auto .65rem -1.1rem;
  background: radial-gradient(circle, #b479c7 1.5px, transparent 2.1px) 0 0 / .8rem .8rem;
  opacity: .85;
}

.hero-sparkles { position: absolute; z-index: 1; top: -1.47rem; right: -1.42rem; width: 4.4rem; height: 4.15rem; color: var(--gold); pointer-events: none; }
.hero-sparkles svg { position: absolute; }
.hero-sparkle-large { width: 3.25rem; height: 3.25rem; top: .65rem; left: 0; transform: rotate(-8deg); }
.hero-sparkle-small { width: 1.6rem; height: 1.6rem; top: 0; right: 0; transform: rotate(10deg); }

.hero-figure-cutout {
  justify-self: center;
  min-width: 0;
  width: min(100%, 29rem);
}

.hero-figure-cutout::before { content: none; }

.hero-figure-cutout::after {
  position: absolute;
  z-index: -1;
  inset: 6% 0 1%;
  background: radial-gradient(ellipse, #d4aee94d, transparent 71%);
  content: "";
  pointer-events: none;
}

.hero-slides {
  position: relative;
  width: 100%;
  aspect-ratio: 1012 / 1291;
  max-height: 27.5rem;
}

.hero-slide {
  position: absolute;
  inset: 0;
  transition: opacity .45s ease, visibility .45s;
}

.hero-slide[aria-hidden="true"] {
  opacity: 0;
  visibility: hidden;
}

.hero-photo {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center bottom;
}

.hero-figure-cutout .hero-sparkles { top: 2%; right: 3%; }

.home-programs,
body[data-page="diferenciais"] main {
  --heading: "Cormorant Garamond", Georgia, serif;
  font-family: "DM Sans", "Segoe UI", sans-serif;
}

.home-programs :is(h2, h3),
body[data-page="diferenciais"] main :is(h1, h2) {
  font-weight: 500;
}

.home-programs .eyebrow,
body[data-page="diferenciais"] main .eyebrow {
  font-weight: 400;
  letter-spacing: .06em;
  text-transform: none;
}

.home-programs { padding-block: clamp(3.3rem, 5.8vw, 5.3rem) clamp(3.2rem, 5vw, 4.7rem); }
.section-intro { max-width: 39rem; margin-inline: auto; text-align: center; }
.section-intro h2 { margin-top: .65rem; font-size: clamp(2.18rem, 4.4vw, 3.65rem); line-height: 1.04; letter-spacing: -.025em; }
.section-intro > p:last-child { margin: .85rem auto 0; max-width: 34rem; color: var(--muted); font-size: 1.04rem; }

/* The fragment can focus this static heading for assistive technology. */
#programas-title:focus { outline: none; }

.program-features {
  display: grid;
  gap: clamp(1rem, 2.5vw, 2rem);
}

.section-intro + .program-features { margin-top: clamp(1.65rem, 4vw, 3rem); }

.program-feature {
  --feature-accent: var(--purple);
  --feature-text: var(--muted);
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-template-areas: "copy photo";
  align-items: center;
  gap: clamp(1.5rem, 4.25vw, 4rem);
  padding: clamp(1.35rem, 4.25vw, 3.65rem);
  border-radius: clamp(1.2rem, 2.7vw, 2rem);
}

.program-feature-farias {
  --feature-accent: #f4dfae;
  --feature-text: #f3e7f7;
  background: radial-gradient(ellipse at 100% 0%, #7a4d91 0%, transparent 72%), #5e3b73;
}

.program-feature-bilingual {
  grid-template-areas: "photo copy";
  border: 1px solid var(--line);
  background: #f7effa;
}

.program-feature-copy { grid-area: copy; }

.program-feature-label {
  display: inline-flex;
  align-items: center;
  gap: .65rem;
  color: var(--feature-accent);
  font-size: .9rem;
  font-weight: 500;
  letter-spacing: .045em;
}

.program-feature-label::before {
  content: "";
  width: 1.4rem;
  height: .12rem;
  border-radius: 1rem;
  background: currentColor;
  flex: none;
}

.program-feature-title {
  margin-top: .65rem;
  font-size: clamp(2.55rem, 5.2vw, 4.65rem);
  line-height: .99;
  letter-spacing: -.032em;
}

.program-feature-farias .program-feature-title {
  display: grid;
  gap: .65rem;
  margin-top: 0;
  color: var(--feature-accent);
  font-size: clamp(3rem, 7.7vw, 6.5rem);
}

.program-feature-farias .program-feature-label {
  font-family: "DM Sans", "Segoe UI", sans-serif;
  line-height: 1.3;
}

.program-feature-text {
  max-width: 42ch;
  margin-top: clamp(.9rem, 2vw, 1.4rem);
  color: var(--feature-text);
  font-size: clamp(1.05rem, 1.45vw, 1.2rem);
  line-height: 1.66;
}

.program-feature-text p + p { margin-top: .7em; }
.program-feature-lead { color: var(--white); font-size: 1.12em; line-height: 1.42; }
.program-feature-farias .program-feature-text strong { color: var(--feature-accent); }
.program-feature-photo {
  grid-area: photo;
  justify-self: center;
  width: 92%;
  margin: 0;
}

.program-feature-photo img {
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border: 2px solid #cd9e43;
  border-radius: clamp(.8rem, 1.9vw, 1.35rem);
  background: #e7d4e9;
}

.program-feature-farias .program-feature-photo {
  max-width: 22rem;
}

.program-feature-farias .program-feature-photo img {
  aspect-ratio: 4 / 5;
}

.program-feature-photo figcaption {
  margin-top: .65rem;
  color: var(--feature-text);
  font-size: .8rem;
  text-align: right;
}

.program-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(.8rem, 2vw, 1.45rem);
  margin-top: clamp(1.35rem, 3.3vw, 2.35rem);
}
.program-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: clamp(1.3rem, 2.4vw, 2rem);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 5px 15px #32134708;
}

.program-icon { display: grid; place-items: center; width: 3.25rem; height: 3.25rem; border-radius: .85rem; color: var(--purple); }
.program-icon .icon { width: 1.55rem; height: 1.55rem; }
.program-icon-purple { background: var(--lilac); }
.program-icon-gold { background: #fff0c5; color: #6c4700; }
.program-stage { margin-top: 1rem; font-size: .875rem; color: var(--purple); }
.program-card h3 { margin-top: .35rem; font-size: clamp(1.6rem, 2.65vw, 2.1rem); line-height: 1.05; letter-spacing: -.018em; }
.program-card h3 + p { max-width: 76ch; margin-top: .65rem; color: var(--muted); }

.site-footer {
  background: radial-gradient(ellipse at 85% -30%, #704484 0%, transparent 62%), #513367;
  color: var(--white);
  padding-block: .9rem;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: .65rem 1.25rem;
  padding-inline-end: 7.5rem;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: .7rem;
  width: fit-content;
  max-width: 100%;
  color: var(--white);
  text-decoration: none;
}

.footer-brand img { width: 2.8rem; height: 2.8rem; flex: none; }

.footer-social {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  min-height: 2.75rem;
  padding: .35rem .8rem;
  border: 1px solid #bfa6cd;
  border-radius: 999px;
  color: #f1e6f5;
  font-size: .96rem;
  text-decoration: none;
}

.footer-social:hover { color: var(--gold); border-color: var(--gold); }
.footer-social .icon { width: 1.1rem; height: 1.1rem; }
.site-footer :focus-visible { outline-color: #fff1a6; }

.whatsapp-float {
  position: fixed;
  z-index: 3;
  right: calc(clamp(.75rem, 2.5vw, 1.75rem) + env(safe-area-inset-right, 0px));
  bottom: calc(clamp(.75rem, 2.5vw, 1.5rem) + env(safe-area-inset-bottom, 0px));
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  min-height: 3.25rem;
  padding: .55rem clamp(.8rem, 1.5vw, 1.05rem);
  border: 1px solid #ffffffa6;
  border-radius: 999px;
  background: #146047;
  color: var(--white);
  font-weight: 700;
  font-size: .95rem;
  text-decoration: none;
  box-shadow: 0 .3rem 1rem #10251d50;
  transition: background-color .18s;
}

.whatsapp-float .icon { width: 1.4rem; height: 1.4rem; }
.whatsapp-float:hover { background: #0e4834; }
.whatsapp-float:focus-visible {
  outline: 3px solid var(--white);
  outline-offset: 2px;
  box-shadow: 0 0 0 7px #146047;
}

@media (width > 900px) {
  .hero-figure-cutout { width: min(100%, 32rem); }
  .hero-slides { max-height: 31.5rem; }
}

@media (max-width: 900px) {
  .header-inner { gap: 1.1rem; }
  .hero-grid { gap: 1.75rem; }
  .hero-copy h1 { font-size: clamp(2.5rem, 5.2vw, 3.4rem); }
}

@media (max-width: 760px) {
  .header-inner { gap: .75rem; min-height: 4.4rem; }
  .hero-grid { grid-template-columns: 1fr; gap: 2.3rem; }
  .hero-copy { padding-bottom: 0; }
  .hero-copy h1 { font-size: clamp(2.6rem, 8vw, 4rem); }
  .home-hero { padding-top: 2.65rem; }
  .hero-figure { margin-inline: 0 .35rem; }
  .hero-figure-cutout { width: min(100%, 24rem); margin-inline: 0; }
  .hero-slides { max-height: min(25rem, 105vw); }
  .hero-sparkles { right: -.8rem; top: -1rem; width: 3.1rem; height: 3.15rem; }
  .hero-sparkle-large { width: 2.4rem; height: 2.4rem; top: .5rem; }
  .hero-sparkle-small { width: 1.1rem; height: 1.1rem; }
  .program-feature, .program-feature-bilingual {
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas: "copy" "photo";
  }
}

@media (max-width: 700px) {
  .site-footer { padding-bottom: calc(4.5rem + env(safe-area-inset-bottom, 0px)); }
  .footer-inner { padding-inline-end: 0; }
}

@media (width < 600px) {
  .program-feature-farias {
    grid-template-areas: "title" "photo" "copy";
  }

  .program-feature-farias .program-feature-copy { display: contents; }
  .program-feature-farias .program-feature-title { grid-area: title; }
  .program-feature-farias .program-feature-text {
    grid-area: copy;
    margin-top: 0;
  }
}

@media (max-width: 380px) {
  .hero-copy h1 { font-size: clamp(2.18rem, 10.4vw, 2.6rem); }
  .hero-cta { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; scroll-behavior: auto !important; }
}
