/* ==============================================
   empatIA — Estilos principais
   Arquivo: style.css
   Projeto: CETI Liceu Parnaibano · 2026
============================================== */

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

:root {
  --bg:        #0a0807;
  --bg-2:      #100d0c;
  --ink:       #f0e9e2;
  --ink-muted: rgba(240,233,226,0.5);
  --accent:    #d4723a;
  --accent-2:  #e8975c;
  --warm:      #1c1512;
  --card-bg:   #141110;
  --border:    rgba(212,114,58,0.15);
  --radius:    12px;
  --serif:     'Cormorant Garamond', Georgia, serif;
  --sans:      'Outfit', sans-serif;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--sans);
  background: var(--bg);
  color: var(--ink);
  line-height: 1.7;
  overflow-x: hidden;
}

/* ── SCROLLBAR ── */
::-webkit-scrollbar { width: 4px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--accent); border-radius: 999px; }

/* ── BG WATERMARK WORD ── */
.bg-word {
  position: absolute;
  font-family: var(--serif);
  font-size: clamp(5rem, 18vw, 18rem);
  font-weight: 600;
  line-height: 1;
  white-space: nowrap;
  user-select: none;
  pointer-events: none;
  color: transparent;
  -webkit-text-stroke: 1.5px rgba(212,114,58,0.09);
  letter-spacing: -4px;
  z-index: 0;
}

.hero .bg-word {
  right: -2vw;
  top: 50%;
  transform: translateY(-50%);
  -webkit-text-stroke: 1.5px rgba(212,114,58,0.07);
}

.sobre .bg-word {
  bottom: -1rem;
  left: -1vw;
  top: auto;
  -webkit-text-stroke: 1.5px rgba(212,114,58,0.06);
}

.serve .bg-word {
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  -webkit-text-stroke: 1.5px rgba(240,233,226,0.04);
}

.alunos .bg-word {
  bottom: -1rem;
  right: -1vw;
  top: auto;
  -webkit-text-stroke: 1.5px rgba(212,114,58,0.06);
}

.hero-inner,
.sobre-grid,
.serve-header,
.serve-list,
.alunos-header,
.alunos-grid,
.orientador-bar { position: relative; z-index: 1; }


/* ── GRAIN OVERLAY ── */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.04'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 9999;
  opacity: 0.35;
}

/* ── NAV ── */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: 1.4rem 5vw;
  background: rgba(10,8,7,0.85);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  transition: padding .3s;
}
.nav-logo {
  font-family: var(--serif);
  font-size: 1.7rem;
  font-weight: 400;
  letter-spacing: -0.5px;
  color: var(--ink);
  text-decoration: none;
}
.nav-logo span { color: var(--accent); }
nav ul { list-style: none; display: flex; gap: 2.5rem; align-items: center; }
nav a { text-decoration: none; color: var(--ink-muted); font-size: .8rem; font-weight: 500; letter-spacing: .12em; text-transform: uppercase; transition: color .2s; }
nav a:hover { color: var(--accent); }
.nav-cta {
  background: transparent !important;
  border: 1px solid var(--border) !important;
  color: var(--ink) !important;
  padding: .5rem 1.3rem;
  border-radius: 999px;
  letter-spacing: .08em !important;
}
.nav-cta:hover { border-color: var(--accent) !important; color: var(--accent) !important; }

/* ── HERO ── */
.hero {
  min-height: 100vh;
  display: flex; align-items: center;
  padding: 10rem 5vw 6rem;
  position: relative;
  overflow: hidden;
}
/* Mesh gradient background */
.hero::before {
  content: '';
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 65% 40%, rgba(212,114,58,0.07) 0%, transparent 60%),
    radial-gradient(ellipse 50% 50% at 5% 90%, rgba(212,114,58,0.05) 0%, transparent 50%),
    radial-gradient(ellipse 30% 30% at 90% 10%, rgba(212,114,58,0.04) 0%, transparent 40%);
  pointer-events: none;
}
/* Decorative grid */
.hero::after {
  content: '';
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(212,114,58,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(212,114,58,0.04) 1px, transparent 1px);
  background-size: 80px 80px;
  pointer-events: none;
  mask-image: radial-gradient(ellipse 70% 80% at 70% 50%, black 0%, transparent 70%);
}

.hero-inner {
  max-width: 820px;
  animation: fadeUp .9s cubic-bezier(.16,1,.3,1) both;
  position: relative; z-index: 1;
}
.hero-eyebrow {
  display: flex; align-items: center; gap: 1rem;
  margin-bottom: 2rem;
}
.hero-tag {
  display: inline-flex; align-items: center; gap: .5rem;
  background: rgba(212,114,58,0.12);
  border: 1px solid rgba(212,114,58,0.3);
  color: var(--accent-2);
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
  padding: .4rem 1rem;
  border-radius: 999px;
}
.hero-tag::before {
  content: '';
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--accent);
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: .5; transform: scale(.85); }
}
.hero h1 {
  font-family: var(--serif);
  font-size: clamp(3.2rem, 7vw, 6rem);
  line-height: 1.06;
  letter-spacing: -2px;
  font-weight: 300;
  color: var(--ink);
  margin-bottom: 1.8rem;
}
.hero h1 strong { font-weight: 600; }
.hero h1 em { color: var(--accent); font-style: italic; }
.hero-desc {
  font-size: 1.1rem;
  color: var(--ink-muted);
  max-width: 520px;
  margin-bottom: 3rem;
  font-weight: 300;
  line-height: 1.8;
}
.hero-actions { display: flex; align-items: center; gap: 1.5rem; flex-wrap: wrap; }
.btn {
  display: inline-flex; align-items: center; gap: .5rem;
  background: var(--accent);
  color: #fff;
  text-decoration: none;
  padding: .9rem 2rem;
  border-radius: 999px;
  font-weight: 500;
  font-size: .88rem;
  letter-spacing: .06em;
  transition: transform .25s, box-shadow .25s, background .25s;
  box-shadow: 0 4px 24px rgba(212,114,58,0.3);
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 10px 40px rgba(212,114,58,0.45); background: var(--accent-2); }
.btn-ghost {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--ink-muted);
  box-shadow: none;
}
.btn-ghost:hover { border-color: var(--accent); color: var(--ink); background: transparent; box-shadow: none; }

/* Scroll indicator */
.scroll-hint {
  position: absolute;
  bottom: 2.5rem; left: 5vw;
  display: flex; align-items: center; gap: .75rem;
  font-size: .72rem; letter-spacing: .15em; text-transform: uppercase;
  color: var(--ink-muted);
  z-index: 1;
}
.scroll-hint-line {
  width: 40px; height: 1px;
  background: linear-gradient(90deg, var(--accent), transparent);
}

/* ── STATS BAR ── */
.stats-bar {
  background: var(--warm);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 2.5rem 5vw;
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 2rem;
  max-width: 900px;
  margin: 0 auto;
}
.stat-item { text-align: center; }
.stat-num {
  font-family: var(--serif);
  font-size: 2.8rem;
  font-weight: 300;
  color: var(--accent-2);
  line-height: 1;
  margin-bottom: .25rem;
}
.stat-num span { font-size: 1.6rem; }
.stat-label {
  font-size: .75rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--ink-muted);
  font-weight: 500;
}

/* ── SECTION SHARED ── */
section { padding: 7rem 5vw; position: relative; }
.section-label {
  display: flex; align-items: center; gap: .8rem;
  margin-bottom: 1.2rem;
  font-size: .72rem; font-weight: 600; letter-spacing: .18em; text-transform: uppercase;
  color: var(--accent);
}
.section-label::before {
  content: ''; width: 28px; height: 1px; background: var(--accent); display: block;
}
h2.section-title {
  font-family: var(--serif);
  font-size: clamp(2.2rem, 4.5vw, 3.5rem);
  line-height: 1.1;
  letter-spacing: -1.5px;
  font-weight: 300;
  margin-bottom: 1.5rem;
}
h2.section-title strong { font-weight: 600; }

/* ── SOBRE ── */
.sobre { background: var(--bg-2); }
.sobre-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 5rem;
  align-items: start;
}
.sobre-text p {
  color: var(--ink-muted);
  margin-bottom: 1.2rem;
  font-size: 1rem;
  font-weight: 300;
  line-height: 1.85;
}
.sobre-text p strong { color: var(--ink); font-weight: 500; }
.sobre-divider {
  width: 40px; height: 2px;
  background: linear-gradient(90deg, var(--accent), transparent);
  margin: 2rem 0;
}

.cards-stack { display: flex; flex-direction: column; gap: .75rem; }
.mini-card {
  background: rgba(255,255,255,0.02);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  display: flex; gap: 1.2rem; align-items: flex-start;
  transition: border-color .25s, background .25s, transform .25s;
}
.mini-card:hover {
  border-color: rgba(212,114,58,0.4);
  background: rgba(212,114,58,0.04);
  transform: translateX(4px);
}
.mini-card-icon {
  width: 40px; height: 40px; min-width: 40px;
  border-radius: 10px;
  background: rgba(212,114,58,0.1);
  border: 1px solid rgba(212,114,58,0.2);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.1rem;
}
.mini-card-body h4 { font-size: .9rem; font-weight: 500; margin-bottom: .3rem; color: var(--ink); }
.mini-card-body p { font-size: .82rem; color: var(--ink-muted); font-weight: 300; line-height: 1.6; }

/* ── PARA QUE SERVE ── */
.serve { background: var(--bg); }
.serve-header {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: end;
  margin-bottom: 4rem;
}
.serve-header p { color: var(--ink-muted); font-weight: 300; font-size: 1rem; line-height: 1.8; }

.serve-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}
.serve-item {
  background: var(--bg);
  padding: 2.5rem 2rem;
  transition: background .25s;
  position: relative;
}
.serve-item::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--accent), transparent);
  opacity: 0;
  transition: opacity .25s;
}
.serve-item:hover { background: rgba(212,114,58,0.03); }
.serve-item:hover::before { opacity: 1; }
.serve-num {
  font-family: var(--serif);
  font-size: 3rem;
  font-weight: 300;
  color: var(--accent);
  opacity: .2;
  line-height: 1;
  margin-bottom: .75rem;
}
.serve-item h3 {
  font-size: .95rem;
  font-weight: 600;
  margin-bottom: .6rem;
  color: var(--ink);
  letter-spacing: .01em;
}
.serve-item p { font-size: .85rem; color: var(--ink-muted); font-weight: 300; line-height: 1.7; }

/* ── ALUNOS ── */
.alunos { background: var(--bg-2); }
.alunos-header {
  display: flex; align-items: flex-end; justify-content: space-between;
  margin-bottom: 3.5rem;
  flex-wrap: wrap; gap: 1.5rem;
}
.alunos-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1.5rem;
}
.aluno-card {
  background: rgba(255,255,255,0.02);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color .25s, transform .25s;
}
.aluno-card:hover {
  border-color: rgba(212,114,58,0.35);
  transform: translateY(-4px);
}
.aluno-foto {
  width: 100%;
  aspect-ratio: 1/1;
  background: rgba(212,114,58,0.06);
  display: flex; align-items: center; justify-content: center;
  position: relative;
  overflow: hidden;
}
.aluno-foto img { width: 100%; height: 100%; object-fit: cover; display: block; }
.aluno-foto .placeholder {
  display: flex; flex-direction: column; align-items: center; gap: .5rem;
  color: var(--ink-muted);
}
.aluno-foto .placeholder svg {
  width: 40px; height: 40px;
  stroke: var(--accent); fill: none; stroke-width: 1.2;
  opacity: .4;
}
.aluno-foto .placeholder span {
  font-size: .65rem; letter-spacing: .12em; text-transform: uppercase; opacity: .4;
}
.aluno-info {
  padding: 1.1rem 1rem 1.3rem;
  text-align: center;
  border-top: 1px solid var(--border);
}
.aluno-info h3 {
  font-family: var(--serif);
  font-size: 1.05rem;
  font-weight: 400;
  margin-bottom: .2rem;
  color: var(--ink);
}
.aluno-info p { font-size: .75rem; color: var(--ink-muted); font-weight: 300; }

/* ── ORIENTADOR ── */
.orientador-bar {
  margin-top: 3rem;
  padding: 1.5rem 2rem;
  background: rgba(212,114,58,0.06);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  display: flex; align-items: center; justify-content: center; gap: 2rem;
  flex-wrap: wrap;
}
.orientador-bar .label {
  font-size: .72rem; letter-spacing: .14em; text-transform: uppercase;
  color: var(--accent); font-weight: 600;
}
.orientador-bar .name {
  font-family: var(--serif);
  font-size: 1.1rem;
  font-weight: 400;
  color: var(--ink);
}
.orientador-bar .sep { color: var(--border); font-size: 1.5rem; }
.orientador-bar .inst {
  font-size: .8rem;
  color: var(--ink-muted);
  font-weight: 300;
}

/* ── FOOTER ── */
footer {
  background: var(--bg);
  border-top: 1px solid var(--border);
  padding: 3rem 5vw 2rem;
}
.footer-main {
  display: flex; align-items: flex-start; justify-content: space-between; flex-wrap: wrap; gap: 2rem;
  margin-bottom: 2.5rem;
}
.footer-logo {
  font-family: var(--serif);
  font-size: 1.6rem;
  font-weight: 300;
  color: var(--ink);
  display: block;
  margin-bottom: .5rem;
}
.footer-logo span { color: var(--accent); }
.footer-tagline { font-size: .78rem; color: var(--ink-muted); font-weight: 300; max-width: 260px; line-height: 1.6; }
.footer-links { display: flex; gap: 3rem; flex-wrap: wrap; }
.footer-col h5 {
  font-size: .68rem; letter-spacing: .14em; text-transform: uppercase;
  color: var(--accent); font-weight: 600; margin-bottom: 1rem;
}
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: .6rem; }
.footer-col ul li a { font-size: .82rem; color: var(--ink-muted); text-decoration: none; transition: color .2s; }
.footer-col ul li a:hover { color: var(--ink); }
.footer-col ul li span { font-size: .82rem; color: var(--ink-muted); }
.footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: 1.5rem;
  display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: .75rem;
}
.footer-copy { font-size: .75rem; color: rgba(240,233,226,0.25); }
.footer-legal { display: flex; gap: 1.5rem; }
.footer-legal a { font-size: .75rem; color: rgba(240,233,226,0.25); text-decoration: none; transition: color .2s; }
.footer-legal a:hover { color: var(--ink-muted); }

/* ── SOCIAL ── */
.footer-social { margin-top: 1.4rem; }
.footer-social h5 {
  font-size: .68rem; letter-spacing: .14em; text-transform: uppercase;
  color: var(--accent); font-weight: 600; margin-bottom: .85rem;
}
.social-links { display: flex; gap: .75rem; flex-wrap: wrap; }
.social-link {
  display: inline-flex; align-items: center; gap: .55rem;
  padding: .5rem 1.1rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  font-size: .78rem; font-weight: 500;
  color: var(--ink-muted);
  text-decoration: none;
  transition: border-color .2s, color .2s, background .2s;
}
.social-link:hover { border-color: var(--accent); color: var(--ink); background: rgba(212,114,58,0.06); }
.social-link svg { width: 14px; height: 14px; fill: currentColor; flex-shrink: 0; }

/* ── QR CODE ── */
.footer-qr { display: flex; flex-direction: column; align-items: center; gap: .75rem; }
.footer-qr h5 {
  font-size: .68rem; letter-spacing: .14em; text-transform: uppercase;
  color: var(--accent); font-weight: 600; align-self: flex-start;
}
.qr-box {
  background: #fff;
  border-radius: 10px;
  padding: 10px;
  border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
}
.qr-box canvas { display: block; }
.qr-hint { font-size: .68rem; color: var(--ink-muted); text-align: center; opacity: .6; }

/* ── ANIMATIONS ── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(40px); }
  to   { opacity: 1; transform: translateY(0); }
}
.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity .8s cubic-bezier(.16,1,.3,1), transform .8s cubic-bezier(.16,1,.3,1);
}
.reveal.in { opacity: 1; transform: none; }
.reveal-delay-1 { transition-delay: .1s; }
.reveal-delay-2 { transition-delay: .2s; }
.reveal-delay-3 { transition-delay: .3s; }

/* ── RESPONSIVE ── */
@media (max-width: 1024px) {
  .alunos-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 900px) {
  .sobre-grid { grid-template-columns: 1fr; gap: 3rem; }
  .serve-header { grid-template-columns: 1fr; gap: 1.5rem; }
  .alunos-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  nav ul { display: none; }
  .hero h1 { letter-spacing: -1px; }
  .serve-list { grid-template-columns: 1fr; }
  .alunos-grid { grid-template-columns: repeat(2, 1fr); }
}