/* ==========================================================================
   Colégio SFA — Matrículas 2027
   Paleta oficial: azul-petróleo #004a6a · vinho #961333 · off-white #eaf1f0
                    amarelo #dec252 · verde-água #6ead9b · laranja #cb7445
   Tipografia: Bricolage Grotesque (Regular/Medium/ExtraBold)
   ========================================================================== */

@font-face {
  font-family: "Bricolage Grotesque";
  src: url("../fonts/BricolageGrotesque-Regular.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Bricolage Grotesque";
  src: url("../fonts/BricolageGrotesque-Medium.ttf") format("truetype");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Bricolage Grotesque";
  src: url("../fonts/BricolageGrotesque-ExtraBold.ttf") format("truetype");
  font-weight: 800;
  font-style: normal;
  font-display: swap;
}

:root {
  --blue: #004a6a;
  --blue-dark: #00354d;
  --wine: #961333;
  --wine-dark: #730e27;
  --offwhite: #eaf1f0;
  --yellow: #dec252;
  --teal: #6ead9b;
  --orange: #cb7445;
  --white: #ffffff;
  --ink: #10262f;
  --whatsapp: #25d366;
  --whatsapp-dark: #1da851;

  --font: "Bricolage Grotesque", "Segoe UI", system-ui, -apple-system, sans-serif;

  --container: 1180px;
  --radius: 20px;
  --radius-sm: 12px;
  --shadow: 0 20px 45px -20px rgba(0, 33, 48, 0.35);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}

body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--offwhite);
  -webkit-font-smoothing: antialiased;
  line-height: 1.5;
}

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

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

h1, h2, h3, h4 { font-weight: 800; line-height: 1.08; margin: 0 0 0.5em; color: var(--blue); }
p { margin: 0 0 1em; }

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

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--blue);
  color: #fff;
  padding: 12px 18px;
  z-index: 999;
  border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 0; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  justify-content: center;
  padding: 15px 28px;
  border-radius: 999px;
  font-weight: 800;
  font-size: 1rem;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background-color 0.15s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn:focus-visible { outline: 3px solid var(--yellow); outline-offset: 3px; }
.btn .icn { width: 20px; height: 20px; fill: currentColor; flex: none; }

.btn-primary {
  background: var(--wine);
  color: #fff;
  box-shadow: 0 14px 30px -12px rgba(150, 19, 51, 0.55);
}
.btn-primary:hover { background: var(--wine-dark); }

.btn-ghost {
  background: transparent;
  color: var(--blue);
  border-color: var(--blue);
}
.btn-ghost:hover { background: var(--blue); color: #fff; }

.btn-whatsapp {
  background: var(--whatsapp);
  color: #fff;
  box-shadow: 0 14px 30px -14px rgba(0, 0, 0, 0.4);
}
.btn-whatsapp:hover { background: var(--whatsapp-dark); }

.btn-block { width: 100%; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 500;
  background: rgba(234, 241, 240, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(0, 74, 106, 0.1);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-top: 12px;
  padding-bottom: 12px;
}
.brand img { height: 44px; width: auto; }

.main-nav {
  display: flex;
  align-items: center;
  gap: 28px;
  font-weight: 500;
}
.main-nav a { padding: 6px 2px; border-bottom: 2px solid transparent; }
.main-nav a:hover { border-color: var(--yellow); }
.nav-cta {
  background: var(--blue);
  color: #fff !important;
  padding: 10px 20px !important;
  border-radius: 999px;
  border-bottom: none !important;
}
.nav-cta:hover { background: var(--wine); }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}
.nav-toggle span { width: 26px; height: 3px; background: var(--blue); border-radius: 2px; }

/* ---------- Hero ---------- */
.hero { padding: 64px 0 0; overflow: hidden; }
.hero-grid {
  display: grid;
  grid-template-columns: 0.95fr 1.25fr;
  gap: 40px;
  align-items: end;
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--blue);
  color: #fff;
  font-weight: 500;
  font-size: 0.85rem;
  padding: 8px 16px;
  border-radius: 999px;
  margin-bottom: 18px;
}
.hero h1 {
  font-size: clamp(2.2rem, 4.4vw, 3.4rem);
  margin-bottom: 0.4em;
}
.hl {
  background: var(--yellow);
  padding: 0 8px;
  border-radius: 6px;
  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;
}
.hero-sub { font-size: 1.15rem; max-width: 46ch; }
.hero-tag {
  font-weight: 800;
  color: var(--wine);
  font-size: 1.2rem;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin: 24px 0 28px;
}
.hero-mini-facts {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
  font-weight: 500;
  font-size: 0.92rem;
}
.hero-mini-facts li {
  position: relative;
  padding-left: 18px;
}
.hero-mini-facts li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.5em;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--teal);
}

/* Foto recortada, sem painel: a base da imagem encosta na dobra do hero */
.hero-visual { align-self: end; }
.hero-copy { align-self: center; padding-bottom: 40px; }
.hero-photo-cutout {
  display: block;
  width: 116%;
  height: auto;
  max-width: none;
  margin: 0 -7% 0 -9%;
  filter: drop-shadow(0 14px 18px rgba(0, 20, 30, 0.25));
}

/* ---------- Section headings (shared) ---------- */
.section-kicker {
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 800;
  color: var(--wine);
  font-size: 0.82rem;
  margin-bottom: 10px;
}
.section-kicker--light { color: var(--yellow); }
.section-title { font-size: clamp(1.7rem, 3.2vw, 2.4rem); margin-bottom: 0.5em; }
.section-title--light { color: #fff; }
.section-lead { max-width: 60ch; font-size: 1.05rem; }
.section-lead--light { color: rgba(255, 255, 255, 0.85); }

/* ---------- Conceito ---------- */
.conceito { padding: 70px 0; background: #fff; }
.conceito-grid {
  display: grid;
  grid-template-columns: 0.4fr 1fr;
  gap: 40px;
  align-items: center;
}
.conceito-balloons { position: relative; height: 220px; }
.balloon { width: 130px; position: absolute; top: 0; left: 20px; }
.arc-decor { width: 90px; position: absolute; bottom: 0; right: 10px; opacity: 0.6; }
.conceito-copy h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); }
.conceito-copy p { font-size: 1.1rem; max-width: 62ch; }

/* ---------- Mosaico ---------- */
.mosaico { padding: 76px 0; background: var(--blue); }
.mosaico-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: start;
}
.mosaic-grid {
  margin-top: 32px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.mosaico-text { color: rgba(255, 255, 255, 0.88); padding-top: 4px; }
.mosaico-text p { font-size: 1rem; line-height: 1.6; }
.mosaico-text strong { color: #fff; }
.mosaico-lede {
  font-size: 1.35rem;
  font-weight: 800;
  color: #fff;
  margin-bottom: 0.7em;
}
.mosaico-list {
  list-style: none;
  margin: 0 0 1.4em;
  padding: 0;
  display: grid;
  gap: 14px;
}
.mosaico-list li {
  position: relative;
  padding-left: 30px;
  font-size: 0.98rem;
  line-height: 1.5;
}
.mosaico-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--yellow);
  font-weight: 800;
}
.mosaico-closing {
  font-weight: 500;
  font-style: italic;
  color: #fff;
  border-left: 3px solid var(--yellow);
  padding-left: 16px;
}
.mosaico-cta-lead { font-weight: 800; color: #fff; margin-bottom: 0.6em; }
.mosaico-text .btn { margin-top: 4px; }
.tile {
  aspect-ratio: 1 / 1;
  border-radius: 18px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}
.tile--photo { background: var(--offwhite); }
.tile--photo img { width: 100%; height: 100%; object-fit: cover; object-position: top center; }
.tile--svg { background: transparent; padding: 0; }
.tile--svg img { width: 100%; height: 100%; }
.tile--pattern { padding: 18px; }
.tile--pattern img { width: 60%; height: 60%; object-fit: contain; }
.tile--pattern.tile--orange { background: var(--orange); }
.tile--pattern.tile--blue { background: var(--blue-dark); }
.tile--text {
  color: #fff;
  font-weight: 800;
  font-size: clamp(1.6rem, 3.2vw, 2.6rem);
  text-align: center;
  line-height: 1.15;
  padding: 12px;
}
.tile--teal { background: var(--teal); }
.tile--wine { background: var(--wine); }

/* ---------- Diferenciais ---------- */
.diferenciais { padding: 76px 0; background: var(--offwhite); }
.diff-grid {
  margin-top: 36px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.diff-card {
  background: #fff;
  border-radius: var(--radius-sm);
  padding: 26px 24px;
  box-shadow: 0 10px 30px -20px rgba(0, 40, 60, 0.4);
}
.diff-card h3 { font-size: 1.1rem; margin: 12px 0 8px; }
.diff-card p { font-size: 0.95rem; color: #33474f; margin: 0; }
.diff-card--new { border: 2px dashed var(--yellow); }
.diff-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  padding: 0 10px;
  border-radius: 999px;
  color: #fff;
  font-weight: 800;
  font-size: 0.9rem;
}
.diff-badge--blue { background: var(--blue); }
.diff-badge--wine { background: var(--wine); }
.diff-badge--teal { background: var(--teal); color: var(--blue-dark); }
.diff-badge--orange { background: var(--orange); }
.diff-badge--yellow { background: var(--yellow); color: var(--blue-dark); }

/* ---------- Segmentos ---------- */
.segmentos { padding: 76px 0; background: #fff; }
.segmentos-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}
.segmentos-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.segmentos-list li {
  background: var(--offwhite);
  border-left: 6px solid var(--teal);
  border-radius: 10px;
  padding: 16px 20px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.segmentos-list li:nth-child(2) { border-color: var(--yellow); }
.segmentos-list li:nth-child(3) { border-color: var(--orange); }
.segmentos-list li span { font-weight: 800; color: var(--blue); font-size: 1.05rem; }
.segmentos-list li small { color: #4b6069; }

/* ---------- Trajetória ---------- */
.trajetoria { background: var(--wine); padding: 0; overflow: hidden; }
.trajetoria-inner {
  display: grid;
  grid-template-columns: 0.5fr 1fr;
  align-items: end;
  gap: 40px;
}
.trajetoria-photo { height: 340px; width: auto; object-fit: contain; align-self: end; justify-self: center; }
.trajetoria-inner > div { padding: 60px 0; }

/* ---------- FAQ ---------- */
.faq { padding: 76px 0; background: var(--offwhite); }
.faq-list { margin-top: 30px; display: grid; gap: 12px; max-width: 900px; }
.faq-item {
  background: #fff;
  border-radius: var(--radius-sm);
  padding: 6px 22px;
  box-shadow: 0 8px 24px -20px rgba(0, 40, 60, 0.5);
}
.faq-item summary {
  cursor: pointer;
  font-weight: 800;
  padding: 16px 0;
  color: var(--blue);
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+";
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--wine);
  flex: none;
}
.faq-item[open] summary::after { content: "–"; }
.faq-item p { padding-bottom: 18px; color: #33474f; margin: 0; }

/* ---------- Matricule-se ---------- */
.matricule { padding: 76px 0; background: var(--blue); }
.matricule-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 48px;
  align-items: start;
}
.matricule-form {
  background: #fff;
  border-radius: var(--radius);
  padding: 32px;
  box-shadow: var(--shadow);
}
.matricule-form h3 { font-size: 1.2rem; margin-bottom: 18px; }
.form-row { margin-bottom: 16px; }
.form-row--split { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form-row label { display: block; font-weight: 500; font-size: 0.9rem; margin-bottom: 6px; color: var(--blue-dark); }
.form-row input,
.form-row select {
  width: 100%;
  padding: 12px 14px;
  border-radius: 10px;
  border: 1.5px solid #c7d6d3;
  font-family: var(--font);
  font-size: 1rem;
  background: #fbfdfc;
}
.form-row input:focus,
.form-row select:focus { outline: 2px solid var(--teal); border-color: var(--teal); }
.consent {
  display: flex;
  gap: 10px;
  font-size: 0.85rem;
  color: #4b6069;
  align-items: flex-start;
  margin: 18px 0;
}
.consent input { margin-top: 3px; }
.consent a { color: var(--blue); text-decoration: underline; }
.form-note { font-size: 0.8rem; color: #6b7d84; text-align: center; margin-top: 10px; }

/* ---------- Footer ---------- */
.site-footer { background: var(--blue-dark); color: #cfe0e6; padding: 60px 0 0; }
.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr 1.3fr;
  gap: 32px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}
.footer-brand img { filter: brightness(0) invert(1); margin-bottom: 14px; height: 40px; width: auto; }
.footer-brand p { max-width: 30ch; font-size: 0.9rem; }
.footer-social { display: flex; gap: 12px; margin-top: 10px; }
.footer-social svg { width: 20px; height: 20px; fill: #cfe0e6; }
.footer-social a {
  width: 38px; height: 38px; border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  display: flex; align-items: center; justify-content: center;
}
.footer-social a:hover { background: var(--wine); }
.footer-col h4 { color: #fff; font-size: 0.95rem; text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 14px; }
.footer-col p { font-size: 0.9rem; margin-bottom: 8px; }
.footer-col a:hover { text-decoration: underline; }
.footer-map iframe { width: 100%; height: 150px; border: 0; border-radius: 12px; }
.footer-map-link {
  display: inline-block;
  margin-top: 10px;
  font-size: 0.85rem;
  color: var(--teal);
}
.footer-map-link:hover { text-decoration: underline; }
.footer-bottom { padding: 18px 0; font-size: 0.8rem; opacity: 0.75; }

/* ---------- WhatsApp float ---------- */
.whatsapp-float {
  position: fixed;
  right: 20px;
  bottom: 20px;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: var(--whatsapp);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 14px 28px -10px rgba(0, 0, 0, 0.5);
  z-index: 600;
  transition: transform 0.2s ease;
}
.whatsapp-float svg { width: 28px; height: 28px; fill: #fff; }
.whatsapp-float:hover { transform: scale(1.08); background: var(--whatsapp-dark); }

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 980px) {
  .hero-grid,
  .conceito-grid,
  .segmentos-grid,
  .matricule-grid,
  .mosaico-split,
  .trajetoria-inner {
    grid-template-columns: 1fr;
  }
  .diff-grid { grid-template-columns: repeat(2, 1fr); }
  .mosaic-grid { grid-template-columns: repeat(4, 1fr); }
  .mosaico-text { margin-top: 40px; }
  .hero-photo-cutout { width: 100%; max-width: 600px; margin: 0 auto; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .trajetoria-inner { text-align: center; }
  .trajetoria-photo { margin: 0 auto; }
}

@media (max-width: 900px) {
  .main-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--offwhite);
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 8px 24px 20px;
    border-bottom: 1px solid rgba(0, 74, 106, 0.1);
    display: none;
  }
  .main-nav.is-open { display: flex; }
  .main-nav a { padding: 12px 0; border-bottom: 1px solid rgba(0, 74, 106, 0.08); }
  .nav-cta { margin-top: 10px; text-align: center; }
  .nav-toggle { display: flex; }

  .hero { padding: 36px 0 0; }
  .diff-grid { grid-template-columns: 1fr; }
  .mosaic-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr; }
  .form-row--split { grid-template-columns: 1fr; }
  .conceito-balloons { display: none; }
}
