@import url('https://fonts.googleapis.com/css2?family=Work+Sans:wght@400;600;700;800&family=Poppins:wght@300;400;500;600&display=swap');

:root {
  --font-title: 'Work Sans', sans-serif;
  --font-text: 'Poppins', sans-serif;
  --color-bg: #ffffff;
  --color-bg-alt: #f8f9fa;
  --color-text: #4a4a4a;
  --color-title: #1a1a1a;
  --color-primary: #2d3748;
  --color-primary-hover: #1a202c;
  --color-accent: #F5A623;
  --color-accent-hover: #C4841A;
  --color-border: #e2e8f0;
  --color-card: #edf2f7;
  --radius-sm: 8rem;
  --radius-md: 16rem;
  --radius-lg: 24rem;
  --radius-full: 9999px;
  --shadow-sm: 0 2rem 4rem rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4rem 6rem rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 10rem 15rem rgba(0, 0, 0, 0.1);
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-size: 1px;
  /* 1rem = 1px */
}

body {
  font-family: var(--font-text);
  color: var(--color-text);
  background-color: var(--color-bg);
  line-height: 1.6;
  font-size: 16rem;
  overflow-x: hidden;
}

h1 {
  font-family: var(--font-title);
  color: var(--color-title);
  font-weight: 700;
  line-height: 1.15;
  font-size: 52rem;
}

h2 {
  font-family: var(--font-title);
  color: var(--color-title);
  font-weight: 700;
  line-height: 1.2;
  font-size: 48rem;
}

h3 {
  font-family: var(--font-title);
  color: var(--color-title);
  font-weight: 700;
  line-height: 1.25;
  font-size: 32rem;
}

h4,
h5,
h6 {
  font-family: var(--font-title);
  color: var(--color-title);
  font-weight: 700;
  line-height: 1.3;
}

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

ul {
  list-style: none;
}

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

.container {
  width: 100%;
  max-width: 1440rem;
  margin: 0 auto;
  padding: 12rem 24rem;
}

/* Header */
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10rem);
  z-index: 1000;
  transition: var(--transition);
  border-bottom: 1rem solid transparent;
}

header.scrolled {
  box-shadow: var(--shadow-sm);
  border-bottom-color: var(--color-border);
  padding: 10rem 0;
}

.nav-container {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  height: 80rem;
  transition: var(--transition);
}

.nav-container .logo {
  justify-self: start;
}

.nav-container .header-cta {
  justify-self: end;
}

header.scrolled .nav-container {
  height: 64rem;
}

.logo {
  display: flex;
  align-items: center;
  gap: 12rem;
  font-family: var(--font-title);
  font-size: 18rem;
  font-weight: 800;
  color: var(--color-title);
}

.logo-icon {
  width: 60rem;
  height: 60rem;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: white;
  box-shadow: 0 4rem 6rem rgba(0, 0, 0, 0.1);
}

.nav-links {
  display: flex;
  gap: 32rem;
}

.nav-links a {
  font-size: 15rem;
  font-weight: 500;
  position: relative;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4rem;
  left: 0;
  width: 0;
  height: 2rem;
  background-color: var(--color-accent);
  transition: var(--transition);
}

.nav-links a:hover::after {
  width: 100%;
}

/* Dropdown Menu */
.dropdown {
  position: relative;
  display: inline-block;
}

.dropdown .dropbtn {
  display: flex;
  align-items: center;
  gap: 6rem;
  font-size: 15rem;
  font-weight: 500;
  position: relative;
  color: inherit;
  cursor: pointer;
}

.dropdown .dropbtn::after {
  content: '';
  position: absolute;
  bottom: -4rem;
  left: 0;
  width: 0;
  height: 2rem;
  background-color: var(--color-accent);
  transition: var(--transition);
}

.dropdown:hover .dropbtn::after {
  width: 100%;
}

.dropdown-arrow {
  font-size: 10rem;
}

.dropdown-content {
  display: none;
  position: absolute;
  top: 120%;
  left: 0;
  background-color: var(--color-bg);
  min-width: 300rem;
  box-shadow: var(--shadow-md);
  border-radius: var(--radius-md);
  z-index: 1000;
  padding: 10rem 0;
  border: 1rem solid var(--color-border);
  opacity: 0;
  transform: translateY(10rem);
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.dropdown:hover .dropdown-content {
  display: block;
  opacity: 1;
  transform: translateY(0);
}

.dropdown-content a {
  color: var(--color-text);
  padding: 12rem 20rem;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 12rem;
  font-size: 14rem;
  transition: background-color 0.2s, color 0.2s;
}

.dropdown-content a::after {
  display: none;
}

.dropdown-content a:hover {
  background-color: var(--color-bg-alt);
  color: var(--color-accent);
}

.dropdown-icon {
  width: 32rem;
  height: 32rem;
  background-color: var(--color-card);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12rem 24rem;
  border-radius: var(--radius-full);
  font-weight: 600;
  font-size: 15rem;
  cursor: pointer;
  transition: var(--transition);
  border: none;
}

.btn-primary {
  background-color: var(--color-accent);
  color: white;
}

.btn-primary:hover {
  background-color: var(--color-accent-hover);
  transform: translateY(-2rem);
  box-shadow: var(--shadow-md);
}

.btn-dark {
  background-color: var(--color-accent);
  color: white;
}

.btn-dark:hover {
  background-color: var(--color-accent-hover);
  transform: translateY(-2rem);
  box-shadow: var(--shadow-md);
}

.btn-light-solid {
  background-color: rgba(255, 255, 255, 0.226);
  color: #ffffff;
  backdrop-filter: blur(4rem);
}

.btn-light-solid:hover {
  background-color: var(--color-accent);
  transform: translateY(-2rem);
  box-shadow: var(--shadow-md);
}

/* ─── Mobile Menu Drawer ─────────────────────────── */

/* Overlay escuro atrás do drawer */
.mobile-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  z-index: 1100;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.mobile-overlay.open {
  display: block;
  opacity: 1;
}

/* Painel deslizante da direita */
.mobile-drawer {
  position: fixed;
  top: 0;
  right: 0;
  width: 300rem;
  max-width: 90vw;
  height: 100vh;
  background: var(--color-bg);
  z-index: 1200;
  transform: translateX(100%);
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  flex-direction: column;
  box-shadow: -8rem 0 32rem rgba(0, 0, 0, 0.15);
  overflow-y: auto;
}

.mobile-drawer.open {
  transform: translateX(0);
}

/* Cabeçalho do drawer: logo + botão fechar */
.mobile-drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20rem 20rem;
  border-bottom: 1rem solid var(--color-border);
}

.mobile-drawer-close {
  background: none;
  border: none;
  font-size: 20rem;
  cursor: pointer;
  color: var(--color-text);
  padding: 8rem;
  border-radius: 8rem;
  transition: var(--transition);
}

.mobile-drawer-close:hover {
  background: var(--color-bg-alt);
  color: var(--color-title);
}

/* Nav links do drawer */
.mobile-drawer-nav {
  display: flex;
  flex-direction: column;
  padding: 16rem 0;
  flex: 1;
}

.mobile-nav-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16rem 24rem;
  font-size: 16rem;
  font-weight: 500;
  color: var(--color-title);
  text-decoration: none;
  border-bottom: 1rem solid var(--color-border);
  background: none;
  border-left: none;
  border-right: none;
  border-top: none;
  width: 100%;
  text-align: left;
  font-family: var(--font-text);
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}

.mobile-nav-link:hover {
  background: var(--color-bg-alt);
  color: var(--color-accent);
}

/* Dropdown button no mobile */
.mobile-dropdown-btn {
  color: var(--color-title);
}

/* Seta do dropdown */
.mobile-arrow {
  font-size: 16rem;
  transition: transform 0.3s ease;
  display: inline-block;
}

.mobile-arrow.rotated {
  transform: rotate(180deg);
}

/* Lista de apps (dropdown mobile) */
.mobile-apps-list {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease;
  background: var(--color-bg-alt);
}

.mobile-apps-list.open {
  max-height: 400rem;
}

/* Sub-links do dropdown */
.mobile-sub-link {
  display: flex;
  align-items: center;
  gap: 12rem;
  padding: 14rem 24rem 14rem 32rem;
  font-size: 14rem;
  color: var(--color-text);
  text-decoration: none;
  border-bottom: 1rem solid var(--color-border);
  transition: background 0.2s, color 0.2s;
}

.mobile-sub-link:hover {
  background: #eaf0ff;
  color: var(--color-accent);
}

.mobile-sub-link .dropdown-icon {
  width: 28rem;
  height: 28rem;
  flex-shrink: 0;
}

/* Botão CTA no rodapé do drawer */
.mobile-drawer-cta {
  padding: 20rem 20rem;
  border-top: 1rem solid var(--color-border);
}

/* Animação barras → X quando ativo */
.menu-toggle.active span:nth-child(1) {
  transform: translateY(8rem) rotate(45deg);
}

.menu-toggle.active span:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}

.menu-toggle.active span:nth-child(3) {
  transform: translateY(-8rem) rotate(-45deg);
}

.menu-toggle span {
  transition: transform 0.3s ease, opacity 0.3s ease, width 0.3s ease;
  transform-origin: center;
}

/* ─────────────────────────────────────────────────── */

.btn-outline {
  background-color: transparent;
  border: 1rem solid var(--color-border);
  color: var(--color-title);
}

.btn-outline:hover {
  background-color: var(--color-bg-alt);
  border-color: var(--color-primary);
}

/* Mobile Menu Toggle */
.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 6rem;
  cursor: pointer;
}

.menu-toggle span {
  width: 30rem;
  height: 2rem;
  background-color: var(--color-title);
  transition: var(--transition);
}

/* Sections */
section {
  padding: 100rem 0;
}

.text-center {
  text-align: center;
}

.section-title {
  font-size: 48rem;
  margin-bottom: 16rem;
}

.section-subtitle {
  font-size: 18rem;
  color: var(--color-text-light);
  max-width: 600rem;
  margin: 0 auto 48rem;
}

/* Hero Section */
.hero {
  padding: 120rem 0 80rem;
  position: relative;
  overflow: hidden;
}

/* Hero Fullscreen (carousel as background) */
.hero-fullscreen {
  padding: 0;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom,
      rgba(10, 15, 30, 0.37) 0%,
      rgba(10, 15, 30, 0.062) 100%);
  z-index: 1;
}

.hero-container-full {
  position: relative;
  z-index: 2;
  padding-top: 100rem;
  padding-bottom: 80rem;
  height: 720rem;
}

.hero-content-full {
  max-width: 700rem;
}

.hero-content-full h1 {
  font-size: 52rem;
  color: #ffffff;
  margin-bottom: 24rem;
  text-shadow: 0 2rem 16rem rgba(0, 0, 0, 0.089);
  line-height: 1.15;
}

.hero-content-full p {
  font-size: 18rem;
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 40rem;
  max-width: 520rem;
}

.btn-outline-light {
  background-color: transparent;
  border: 1.5rem solid rgba(255, 255, 255, 0.6);
  color: #ffffff;
}

.btn-outline-light:hover {
  background-color: rgba(255, 255, 255, 0.15);
  border-color: #ffffff;
  color: #ffffff;
}

.hero::before {
  content: '';
  position: absolute;
  top: -20%;
  right: -10%;
  width: 600rem;
  height: 600rem;
  border: 1rem solid var(--color-border);
  border-radius: 50%;
  opacity: 0.5;
  z-index: -1;
}

.hero-container {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  /* Adjust ratio to give more room for text */
  gap: 40rem;
  align-items: center;
  position: relative;
  z-index: 2;
  padding: 100rem 60rem 80rem;
  height: 720rem;
  box-sizing: border-box;
}

.hero-mobile-carousel {
  display: none;
}

.hero-content h1 {
  font-size: 52rem;
  margin-bottom: 24rem;
  color: #ffffff;
  text-shadow: 0 2rem 16rem rgba(0, 0, 0, 0.4);
}

.hero-content p {
  font-size: 18rem;
  margin-bottom: 40rem;
  max-width: 480rem;
  color: rgba(255, 255, 255, 0.85);
}

.hero-buttons {
  display: flex;
  gap: 16rem;
  margin-left: 12rem;
}

.hero-image {
  position: relative;
  display: flex;
  justify-content: center;
}

.hero-mockup-img {
  max-width: 100%;
  max-height: 550rem;
  transform: rotate(15deg);
  filter: drop-shadow(-20rem 20rem 30rem rgba(0, 0, 0, 0.3));
}

/* Portals Section — novo layout */
.portals-section {
  background: #ffffff;
  padding: 80rem 0;
  overflow: hidden;
}

/* Layout: texto à esquerda | cards à direita */
.portals-layout {
  display: grid;
  grid-template-columns: 400rem 1fr;
  align-items: center;
  gap: 0;
  max-width: 1400rem;
  margin: 0 auto;
  padding: 0 80rem;
}

.portals-text {
  padding-right: 32rem;
}

.portals-title {
  font-size: 48rem;
  font-family: var(--font-title);
  font-weight: 700;
  color: var(--color-title);
  line-height: 1;
  margin-bottom: 16rem;
  max-width: 400rem;
}

.portals-subtitle {
  font-size: 18rem;
  color: var(--color-text-light);
  line-height: 1.6;
  max-width: 300rem;
}

/* Wrapper com fade-out à direita */
.portals-cards-wrapper {
  overflow: hidden;
  position: relative;
}

.portals-cards-wrapper::after {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 80rem;
  height: 100%;
  background: linear-gradient(to right, transparent, #ffffff);
  pointer-events: none;
  z-index: 2;
}

/* Setas do carrossel de portais */
.portals-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  background: #ffffff;
  border: 1rem solid var(--color-border);
  color: var(--color-title);
  width: 40rem;
  height: 40rem;
  border-radius: 50%;
  cursor: pointer;
  font-size: 16rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
  box-shadow: var(--shadow-sm);
  line-height: 1;
}

.portals-arrow:hover {
  background: var(--color-accent);
  color: #ffffff;
  border-color: var(--color-accent);
  box-shadow: var(--shadow-md);
}

.portals-arrow-prev {
  left: 10rem;
}

.portals-arrow-next {
  right: 30rem;
}

/* Fila horizontal de cards */
.portals-cards {
  display: flex;
  gap: 20rem;
  overflow-x: auto;
  padding: 20rem 4rem 28rem;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.portals-cards::-webkit-scrollbar {
  display: none;
}

/* Card individual — 3 visíveis */
.pcard {
  flex: 0 0 calc((100% - 40rem) / 3);
  background: #f5f5f5;
  border-radius: 18rem;
  padding: 20rem 18rem 18rem;
  display: flex;
  flex-direction: column;
  scroll-snap-align: start;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  cursor: pointer;
  text-decoration: none;
  color: inherit;
}

.pcard:hover {
  transform: translateY(-6rem);
  box-shadow: 0 12rem 32rem rgba(0, 0, 0, 0.10);
}

/* Área de imagem do card (mockup de celular) */
.pcard-mockup {
  width: 100%;
  aspect-ratio: 4 / 5;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14rem;
  background: #e8e8e8;
  border-radius: 12rem;
  overflow: hidden;
}

.pcard-mockup img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

/* Tags pill */
.pcard-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 4rem;
  margin-bottom: 10rem;
}

.pcard-tags span {
  font-size: 11rem;
  color: #888;
  background: transparent;
  font-weight: 400;
}

.pcard-tags span:not(:last-child)::after {
  content: ' ·';
  margin-left: 2rem;
}

/* Título */
.pcard-title {
  font-size: 14rem;
  font-weight: 700;
  color: var(--color-title);
  margin-bottom: 6rem;
  font-family: var(--font-text);
}

/* Descrição */
.pcard-desc {
  font-size: 13rem;
  color: var(--color-text-light);
  line-height: 1.5;
  flex-grow: 1;
  margin-bottom: 14rem;
}

/* Link "ver mais" */
.pcard-link {
  font-size: 13rem;
  font-weight: 500;
  color: var(--color-text-light);
  border: 1rem solid #d0d0d0;
  border-radius: 20rem;
  padding: 5rem 14rem;
  display: inline-block;
  align-self: flex-start;
  transition: var(--transition);
  background: white;
}

.pcard:hover .pcard-link {
  border-color: var(--color-accent);
  color: var(--color-accent);
}

/* ============================================================
   Bento Grid — App Aluno/Famílias
   ============================================================ */
.bento-section {
  padding: 100rem 0;
  background: #ffffff;
}

/* Layout principal: texto | grid */
.bento-layout {
  display: grid;
  grid-template-columns: 410rem 1fr;
  gap: 60rem;
  align-items: center;
}

/* Coluna de texto */
.bento-text {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.bento-title {
  font-size: 40rem;
  font-weight: 700;
  color: var(--color-title);
  line-height: 1;
  margin-bottom: 20rem;
}

.bento-desc {
  font-size: 15rem;
  color: var(--color-text-light);
  line-height: 1.7;
}

.bento-btn {
  margin-top: 32rem;
  align-self: flex-start;
  font-size: 14rem;
  padding: 10rem 20rem;
}

/* Grid de cards */
.bento-grid {
  display: flex;
  flex-direction: column;
  gap: 14rem;
  width: 100%;
}

/* Linha do grid */
.bento-row {
  display: flex;
  gap: 14rem;
  width: 100%;
}

/* Cards na linha superior — quadrados */
.bento-row-top .bento-card {
  flex: 1 1 0;
  aspect-ratio: 1 / 1;
  min-height: 0;
}

/* Cards na linha inferior — retangulares */
.bento-row-bottom .bento-card {
  flex: 1 1 0;
  aspect-ratio: 3 / 2;
  min-height: 0;
}

/* Portaria — container de imagem única */
.bento-single {
  width: 100%;
}

/* Card base */
.bento-card {
  width: 100%;
  border-radius: 24rem;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
  background: #f8faff;
  border: 1rem solid rgba(0, 0, 0, 0.03);
  box-shadow: 0 4rem 12rem rgba(0, 0, 0, 0.03);
}

.bento-card:hover {
  transform: translateY(-8rem);
  box-shadow: 0 20rem 40rem rgba(0, 0, 0, 0.1);
  background: #ffffff;
}

/* Card pequeno — ocupa 1 coluna */
.bento-sm {
  grid-column: span 1;
}

/* Card largo — ocupa 2 colunas */
.bento-wide {
  grid-column: span 2;
}

/* Label da funcionalidade */
.bento-label {
  font-size: 12rem;
  font-weight: 600;
  color: #555;
  margin-bottom: 10rem;
  display: flex;
  align-items: center;
  gap: 5rem;
}

/* Área da imagem */
.bento-img-wrap {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  /* padding: 16rem; */
  box-sizing: border-box;
}

.bento-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.5s ease;
}

.bento-card:hover .bento-img-wrap img {
  transform: scale(1.05);
}

/* Card Chat — imagem inclinada */
.bento-angled .bento-img-wrap {
  overflow: visible;
  background: #e8e8e8;
  border-radius: 10rem 10rem 0 0;
}

.img-angled {
  transform: rotate(-15deg) translateY(10rem);
  transform-origin: bottom center;
  max-height: 120rem !important;
}

.bento-rect {
  width: 100%;
  height: 240rem;
  object-fit: cover;
}

/* Responsive bento */
@media (max-width: 992px) {
  .bento-layout {
    grid-template-columns: 1fr;
    gap: 40rem;
  }

  .bento-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 600px) {
  .bento-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .bento-wide {
    grid-column: span 2;
  }
}

/* ============================================================
   Portal do Professor — 2 cards (mobile inclinado + browser)
   ============================================================ */
.prof-section {
  padding: 100rem 0;
  background: #ffffff;
}

.prof-layout {
  display: grid;
  grid-template-columns: 410rem 1fr;
  gap: 60rem;
  align-items: center;
}

.prof-text {
  display: flex;
  flex-direction: column;
}

.prof-title {
  font-size: 40rem;
  font-weight: 700;
  color: var(--color-title);
  line-height: 1.3;
  margin-bottom: 20rem;
}

.prof-desc {
  font-size: 15rem;
  color: var(--color-text-light);
  line-height: 1.7;
}

.prof-btn {
  margin-top: 32rem;
  align-self: flex-start;
  font-size: 14rem;
  padding: 10rem 20rem;
}

/* 2 cards lado a lado */
.prof-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16rem;
  align-items: end;
}

.prof-card {
  border-radius: 18rem;
  overflow: hidden;

  display: flex;
  flex-direction: column;
}

/* Card celular — mais alto, sem barra */
.prof-card-phone {
  height: 550rem;
  justify-content: flex-end;
  align-items: center;
  padding: 0;
}

.prof-img-wrap {
  width: 100%;
  height: 1080px;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  overflow: hidden;
}

.prof-img-angled {
  max-height: 280rem;
  width: auto;
  object-fit: contain;
  transform: rotate(-10deg) translateX(-10rem);
  transform-origin: bottom center;
  margin-bottom: -10rem;
}

/* Card desktop / browser */
.prof-card-desktop {
  height: 358rem;
  padding: 0;
  align-self: flex-end;
}

.prof-browser-bar {
  display: flex;
  gap: 6rem;
  align-items: center;
  padding: 10rem 14rem;
  background: #e4e4e4;
  border-bottom: 1rem solid #d8d8d8;
}

.browser-dot {
  width: 10rem;
  height: 10rem;
  border-radius: 50%;
  display: inline-block;
}

.prof-desktop-img {
  height: calc(100% - 34rem);
  align-items: flex-end;
  padding: 0 10rem;
}

.prof-desktop-img img {
  max-width: 100%;
  max-height: 200rem;
  object-fit: contain;
}

/* Responsive professor */
@media (max-width: 992px) {
  .prof-layout {
    grid-template-columns: 1fr;
    gap: 40rem;
  }

  .prof-cards {
    grid-template-columns: 1fr 1fr;
  }

  .prof-card-phone {
    height: 500rem;
  }

  .prof-card-desktop {
    height: 300rem;
  }
}

@media (max-width: 600px) {
  .prof-cards {
    grid-template-columns: 1fr;
  }
}

.features-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60rem;
  align-items: center;
}

.features-grid h2 {
  max-width: 432px;
}

.features-grid p {
  max-width: 432px;
}

.features-grid img {
  max-width: 800px;
}

.feature-list {
  margin-top: 32rem;
}

.feature-item {
  display: flex;
  align-items: center;
  gap: 16rem;
  margin-bottom: 20rem;
}

.feature-item-icon {
  width: 48rem;
  height: 48rem;
  background: var(--color-card);
  border-radius: 12rem;
  display: grid;
  place-items: center;
}

/* Responsive Form & Footer Utilities */
.form-section-title {
  font-size: 48rem;
}

.form-feature-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20rem;
}

.footer-col-wide {
  grid-column: span 2;
}

.footer-about-text {
  width: 70%;
}

/* Footer */
footer {
  background-color: var(--color-bg-alt);
  padding: 60rem 0 30rem;
  border-top: 1rem solid var(--color-border);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40rem;
  margin-bottom: 40rem;
}

.footer-col h4 {
  margin-bottom: 20rem;
  font-size: 14rem;
  text-transform: uppercase;
  letter-spacing: 1rem;
  color: var(--color-title);
}

.footer-col ul li {
  margin-bottom: 10rem;
}

.footer-col ul li a {
  color: var(--color-text);
  font-size: 14rem;
  opacity: 0.8;
  transition: var(--transition);
}

.footer-col ul li a:hover {
  color: var(--color-accent);
  opacity: 1;
  padding-left: 4rem;
}

.footer-bottom {
  text-align: center;
  padding-top: 24rem;
  border-top: 1rem solid var(--color-border);
  font-size: 13rem;
  color: var(--color-text);
  opacity: 0.7;
}

/* Utilities & Animations */
.animate-up {
  opacity: 0;
  transform: translateY(30rem);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.animate-up.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Responsive */
@media (max-width: 1100px) {
  .portals-layout {
    grid-template-columns: 220rem 1fr;
    padding: 0 24rem;
  }
}

@media (max-width: 992px) {

  .hero-container,
  .features-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero-content p {
    margin: 0 auto 40rem;
  }

  .hero-buttons {
    justify-content: center;
  }

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

  .portals-layout {
    grid-template-columns: 1fr;
    padding: 0 24rem;
  }

  .portals-text {
    padding-right: 0;
    margin-bottom: 24rem;
    text-align: center;
  }

  .portals-cards {
    padding-bottom: 16rem;
  }
}

@media (max-width: 768px) {

  /* ─── Header ─── */
  .nav-container {
    grid-template-columns: auto auto !important;
    justify-content: space-between;
  }

  .nav-links,
  .header-cta {
    display: none;
  }

  .menu-toggle {
    display: flex;
  }

  /* ─── Utilities ─── */
  .footer-col-wide {
    grid-column: span 1;
  }

  .footer-about-text {
    width: 100%;
  }

  .form-section-title {
    font-size: 28rem !important;
  }

  .form-feature-list {
    grid-template-columns: 1fr !important;
  }

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

  /* ─── Hero ─── */
  .hero {
    padding-top: 100rem !important;
    padding-bottom: 20rem !important;
  }

  /* Ocultar o carrossel de imagens e mostrar só cor de fundo */
  .hero-carousel-bg {
    display: none;
  }

  .hero-overlay {
    display: none;
  }

  /* Box hero vira fundo sólido */
  .hero-box {
    background: linear-gradient(135deg, #1a7fcb 0%, #5ca8e0 100%);
    border-radius: 20rem !important;
    padding-bottom: 40rem;
  }

  /* Layout hero: coluna única */
  .hero-container {
    display: flex !important;
    flex-direction: column !important;
    padding: 0 24rem !important;
    padding-top: 40rem !important;
    padding-bottom: 40rem !important;
    height: auto !important;
    text-align: center;
    gap: 30rem;
  }

  /* Mobile Hero Carousel Styles */
  .hero-mobile-carousel {
    display: block;
    position: relative;
    width: 100%;
    max-width: 320rem;
    margin: 0 auto;
    overflow: hidden;
    border-radius: 20rem;
    /* background: rgba(255, 255, 255, 0.1); */
    /* border: 1rem solid rgba(255, 255, 255, 0.2); */
  }

  .mobile-carousel-inner {
    display: flex;
    width: 300%;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
  }

  .mobile-carousel-item {
    width: 33.333%;
    display: flex;
    justify-content: center;
    align-items: center;
  }

  .mobile-carousel-item img {
    max-width: 100%;
    height: auto;
    max-height: 400rem;
    object-fit: contain;
    filter: drop-shadow(0 10rem 20rem rgba(0, 0, 0, 0.2));
  }

  .mobile-carousel-dots {
    position: absolute;
    bottom: 12rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8rem;
    z-index: 5;
  }

  .m-carousel-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(4rem);
    border: 1rem solid rgba(255, 255, 255, 0.3);
    color: white;
    width: 36rem;
    height: 36rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14rem;
    cursor: pointer;
    z-index: 5;
    transition: background 0.3s;
  }

  .m-carousel-arrow:active {
    background: rgba(255, 255, 255, 0.4);
  }

  .m-prev {
    left: 10rem;
  }

  .m-next {
    right: 10rem;
  }

  .m-dot {
    width: 8rem;
    height: 8rem;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.4);
    border: none;
    cursor: pointer;
    padding: 0;
    transition: all 0.3s;
  }

  .m-dot.active {
    background: #ffffff;
    width: 24rem;
    border-radius: 4rem;
  }

  .hero-content h1 {
    font-size: 36rem;
    text-align: center;
  }

  .hero-content p {
    text-align: center;
    margin: 0 auto 32rem;
  }

  .hero-buttons {
    justify-content: center;
    flex-wrap: wrap;
    gap: 12rem;
    margin-left: 0 !important;
  }

  .hero-buttons .btn {
    flex: 1 1 140rem;
    text-align: center;
    justify-content: center;
  }

  /* Ocultar imagem mockup no mobile */
  .hero-image {
    display: none;
  }

  /* Setas e dots do hero: ajustar posição */
  .carousel-arrow {
    display: none;
  }

  .carousel-dots {
    bottom: 14rem;
  }

  /* ─── Portals ─── */
  .portals-layout {
    grid-template-columns: 1fr;
    padding: 0;
    max-width: 100vw;
  }

  .portals-text {
    padding: 0 20rem;
    margin-bottom: 20rem;
    text-align: center;
  }

  .portals-title {
    font-size: 28rem;
  }

  /* Cada card ocupa 100% da tela com padding lateral */
  .pcard {
    flex: 0 0 calc(100vw - 40rem);
    scroll-snap-align: center;
  }

  /* ─── Portals mobile: scroll horizontal 1 card por vez ─── */

  /* Wrapper: ajustado para permitir scroll interno */
  .portals-cards-wrapper {
    overflow: hidden;
    padding-bottom: 0;
    width: 100%;
    min-width: 0;
  }

  /* Remove fade-out lateral (não funciona bem sem overflow:hidden) */
  .portals-cards-wrapper::after {
    display: none;
  }

  /* Faixa de scroll: full width, padding lateral de 20px, snap obrigatório */
  .portals-cards {
    padding: 10rem 20rem 16rem;
    scroll-padding-left: 20rem;
    gap: 16rem;
  }

  /* Cada card ocupa a largura da tela menos as margens */
  .pcard {
    flex: 0 0 calc(100vw - 40rem);
    scroll-snap-align: start;
    max-width: calc(100vw - 40rem);
  }

  /* Setas: voltam a ficar flutuantes sobre os cards no mobile */
  .portals-arrow {
    width: 36rem;
    height: 36rem;
    font-size: 16rem;
    top: 50%;
    transform: translateY(-50%);
  }

  .portals-arrow-prev {
    left: 8rem;
  }

  .portals-arrow-next {
    right: 8rem;
  }

  /* O container da linha de controles no mobile agora é só pra garantir que o contador suma se não for necessário, ou seja ignorado */
  .portals-controls-row {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
  }

  .portals-controls-row .portals-arrow {
    pointer-events: auto;
  }

  .portals-card-counter {
    display: none;
  }

  /* ─── Funcionalidades ─── */
  .features-grid {
    grid-template-columns: 1fr !important;
    gap: 32rem;
    text-align: left;
  }

  .features-grid h2 {
    font-size: 28rem !important;
    max-width: 100%;
  }

  .features-grid p {
    max-width: 100%;
  }

  .features-grid img,
  .dashboard-container {
    width: 100%;
    overflow: hidden;
    border-radius: 12rem;
  }

  .dashboard-image {
    width: 100%;
    height: auto;
  }

  /* ─── Formulário ─── */
  .form-section {
    padding: 20rem !important;
    margin: 20rem 16rem !important;
    border-radius: 16rem !important;
  }

  .form-section .features-grid {
    grid-template-columns: 1fr !important;
    gap: 24rem;
  }

  .form-section input {
    font-size: 16rem;
  }

  /* ─── Bento Section (App Aluno + Portaria) ─── */
  .bento-layout {
    grid-template-columns: 1fr;
    gap: 32rem;
  }

  .bento-title {
    font-size: 28rem;
    text-align: center;
    line-height: 1.3;
  }

  .bento-desc {
    text-align: center;
    font-size: 16rem;
  }

  .bento-btn {
    align-self: center;
  }

  .bento-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20rem;
  }

  .bento-row {
    display: contents;
    /* Ignora as divs de linha no layout grid */
  }

  /* Cards no mobile empilhados e não tão altos */
  .bento-card {
    height: auto;
    aspect-ratio: 1 / 1;
    background: #ffffff;
    border: 1.5rem solid var(--color-border);
  }

  .bento-row-bottom .bento-card {
    aspect-ratio: 1.5 / 1;
  }

  .bento-img-wrap {
    padding: 24rem;
    background: var(--color-bg-alt);
    height: 100%;
  }

  .bento-img-wrap img {
    object-fit: contain;
    width: 100%;
    height: 100%;
  }

  /* Portaria: imagem única responsiva */
  .bento-single .bento-card {
    height: 240rem !important;
  }

  /* ─── Prof Section ─── */
  .prof-layout {
    grid-template-columns: 1fr;
    gap: 32rem;
  }

  .prof-title {
    font-size: 24rem;
  }

  .prof-cards {
    grid-template-columns: 1fr;
  }

  .prof-card-phone {
    height: 400rem;
  }

  .prof-card-desktop {
    height: 300rem;
  }
}