/* =============================================
   Instituto Raiz Cultural — Stylesheet
   ============================================= */

:root {
  --purple-light: #C5B3DC;
  --purple-mid: #6B4A9B;
  --purple-dark: #4A2670;
  --purple-deeper: #2E1A5E;
  --gold: #F0B429;
  --gold-dark: #D49A18;
  --white: #FFFFFF;
  --off-white: #F7F4FC;
  --text-body: #3A2560;
  --text-muted: #7A6A9A;
  --shadow: 0 4px 24px rgba(74, 38, 112, 0.12);
  --shadow-hover: 0 8px 32px rgba(74, 38, 112, 0.2);
  --radius: 12px;
  --transition: 0.3s ease;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', 'Source Sans 3', sans-serif;
  color: var(--text-body);
  background: var(--white);
  line-height: 1.6;
}

/* ---- Typography ---- */
h1, h2, h3, h4 {
  font-family: 'Montserrat', sans-serif;
  line-height: 1.2;
}

/* =============================================
   NAVBAR
   ============================================= */
#navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(107, 74, 155, 0.1);
  transition: box-shadow var(--transition);
}

#navbar.scrolled {
  box-shadow: var(--shadow);
}

.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.nav-brand .logo-svg {
  width: 40px;
  height: 40px;
  flex-shrink: 0;
}

.nav-brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.nav-brand-text span:first-child {
  font-family: 'Montserrat', sans-serif;
  font-size: 11px;
  font-weight: 400;
  color: var(--purple-dark);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.nav-brand-text span:last-child {
  font-family: 'Montserrat', sans-serif;
  font-size: 13px;
  font-weight: 700;
  color: var(--purple-dark);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
  list-style: none;
}

.nav-links a {
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-muted);
  transition: color var(--transition);
  letter-spacing: 0.02em;
}

.nav-links a:hover {
  color: var(--purple-dark);
}

.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 4px;
  background: none;
  border: none;
}

.nav-hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--purple-dark);
  border-radius: 2px;
  transition: var(--transition);
}

/* Mobile nav */
.nav-mobile {
  display: none;
  flex-direction: column;
  background: var(--white);
  border-top: 1px solid rgba(107, 74, 155, 0.1);
  padding: 16px 24px 24px;
  gap: 4px;
}

.nav-mobile.open {
  display: flex;
}

.nav-mobile a {
  text-decoration: none;
  font-size: 15px;
  font-weight: 500;
  color: var(--text-body);
  padding: 10px 0;
  border-bottom: 1px solid rgba(107, 74, 155, 0.08);
  transition: color var(--transition);
}

.nav-mobile a:hover {
  color: var(--purple-mid);
}

/* =============================================
   HERO
   ============================================= */
#hero {
  min-height: 100vh;
  background: linear-gradient(145deg, #C5B3DC 0%, #A99BC8 60%, #8E82B5 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 120px 24px 80px;
}

.hero-inner {
  max-width: 700px;
}

.hero-logo {
  width: 200px;
  height: 200px;
  margin: 0 auto 32px;
  animation: float 4s ease-in-out infinite;
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

.hero-title {
  margin-bottom: 20px;
}

.hero-title .instituto {
  display: block;
  font-family: 'Montserrat', sans-serif;
  font-size: clamp(28px, 5vw, 42px);
  font-weight: 400;
  color: var(--purple-deeper);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.hero-title .raiz {
  display: block;
  font-family: 'Montserrat', sans-serif;
  font-size: clamp(36px, 7vw, 60px);
  font-weight: 800;
  color: var(--purple-deeper);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.hero-tagline {
  font-size: clamp(15px, 2.5vw, 18px);
  color: var(--purple-deeper);
  opacity: 0.8;
  margin-bottom: 40px;
  font-weight: 400;
}

.btn-primary {
  display: inline-block;
  background: var(--purple-deeper);
  color: var(--white);
  text-decoration: none;
  padding: 14px 36px;
  border-radius: 50px;
  font-family: 'Montserrat', sans-serif;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  transition: background var(--transition), transform var(--transition), box-shadow var(--transition);
  box-shadow: 0 4px 16px rgba(46, 26, 94, 0.3);
}

.btn-primary:hover {
  background: var(--purple-mid);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(46, 26, 94, 0.4);
}

/* =============================================
   SECTIONS — common
   ============================================= */
.section {
  padding: 96px 24px;
}

.section-inner {
  max-width: 1100px;
  margin: 0 auto;
}

.section-label {
  font-family: 'Montserrat', sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold-dark);
  margin-bottom: 12px;
}

.section-title {
  font-family: 'Montserrat', sans-serif;
  font-size: clamp(26px, 4vw, 38px);
  font-weight: 800;
  color: var(--purple-dark);
  margin-bottom: 24px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.section-title.light {
  color: var(--white);
}

/* Fade-in animation */
.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* =============================================
   MISSÃO
   ============================================= */
#missao {
  background: var(--white);
  text-align: center;
}

.missao-text {
  font-size: clamp(17px, 2.5vw, 21px);
  color: var(--text-body);
  max-width: 780px;
  margin: 0 auto 64px;
  line-height: 1.8;
  font-weight: 400;
}

.values-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 24px;
}

.value-card {
  background: var(--off-white);
  border-radius: var(--radius);
  padding: 36px 24px;
  text-align: center;
  transition: box-shadow var(--transition), transform var(--transition);
  border: 1px solid rgba(107, 74, 155, 0.08);
}

.value-card:hover {
  box-shadow: var(--shadow-hover);
  transform: translateY(-4px);
}

.value-icon {
  width: 52px;
  height: 52px;
  margin: 0 auto 16px;
  background: var(--purple-mid);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.value-icon svg {
  width: 26px;
  height: 26px;
  stroke: var(--white);
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.value-card h3 {
  font-family: 'Montserrat', sans-serif;
  font-size: 15px;
  font-weight: 700;
  color: var(--purple-dark);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

/* =============================================
   HISTÓRICO
   ============================================= */
#historico {
  background: var(--purple-deeper);
}

#historico .section-label {
  color: var(--gold);
}

.stats-row {
  display: flex;
  gap: 32px;
  margin-bottom: 56px;
  flex-wrap: wrap;
}

.stat-big {
  flex: 1;
  min-width: 260px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius);
  padding: 36px 32px;
  transition: background var(--transition);
}

.stat-big:hover {
  background: rgba(255, 255, 255, 0.1);
}

.stat-big-program {
  font-family: 'Montserrat', sans-serif;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 8px;
}

.stat-big-value {
  font-family: 'Montserrat', sans-serif;
  font-size: clamp(30px, 4vw, 44px);
  font-weight: 800;
  color: var(--white);
  margin-bottom: 12px;
}

.stat-big-desc {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.65);
  line-height: 1.6;
}

.highlights-row {
  display: flex;
  gap: 0;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius);
  overflow: hidden;
  flex-wrap: wrap;
}

.highlight-item {
  flex: 1;
  min-width: 200px;
  padding: 32px 24px;
  text-align: center;
  border-right: 1px solid rgba(255, 255, 255, 0.12);
}

.highlight-item:last-child {
  border-right: none;
}

.highlight-number {
  font-family: 'Montserrat', sans-serif;
  font-size: clamp(24px, 3.5vw, 38px);
  font-weight: 800;
  color: var(--gold);
  display: block;
  margin-bottom: 8px;
}

.highlight-label {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.4;
}

/* =============================================
   ESTRUTURA
   ============================================= */
#estrutura {
  background: var(--off-white);
  text-align: center;
}

.estrutura-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
  text-align: left;
}

.estrutura-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 36px 28px;
  border: 1px solid rgba(107, 74, 155, 0.1);
  transition: box-shadow var(--transition), transform var(--transition);
  position: relative;
  overflow: hidden;
}

.estrutura-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--purple-mid), var(--gold));
}

.estrutura-card:hover {
  box-shadow: var(--shadow-hover);
  transform: translateY(-4px);
}

.estrutura-icon {
  width: 48px;
  height: 48px;
  background: linear-gradient(135deg, var(--purple-mid), var(--purple-dark));
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}

.estrutura-icon svg {
  width: 24px;
  height: 24px;
  stroke: var(--white);
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.estrutura-card h3 {
  font-family: 'Montserrat', sans-serif;
  font-size: 16px;
  font-weight: 700;
  color: var(--purple-dark);
  margin-bottom: 12px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.estrutura-card p {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.7;
}

/* =============================================
   DIRETOR
   ============================================= */
#diretor {
  background: var(--white);
  text-align: center;
}

.diretor-name {
  font-family: 'Montserrat', sans-serif;
  font-size: clamp(18px, 3vw, 26px);
  font-weight: 400;
  color: var(--purple-mid);
  text-align: center;
  margin-bottom: 32px;
}

.diretor-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 32px;
}

.diretor-stat {
  padding: 36px 24px;
  border: 1px solid rgba(107, 74, 155, 0.12);
  border-radius: var(--radius);
  text-align: center;
  transition: box-shadow var(--transition);
}

.diretor-stat:hover {
  box-shadow: var(--shadow);
}

.diretor-stat-number {
  font-family: 'Montserrat', sans-serif;
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 800;
  color: var(--purple-dark);
  display: block;
  margin-bottom: 12px;
}

.diretor-stat-number .accent {
  color: var(--gold-dark);
}

.diretor-stat p {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.7;
}

/* ---- Director row layout ---- */
.diretor-row {
  display: grid;
  grid-template-columns: 200px repeat(3, 1fr);
  gap: 24px;
  align-items: stretch;
}

.diretor-photo-col {
  grid-row: 1;
}

.diretor-photo {
  width: 100%;
  height: 100%;
  min-height: 260px;
  object-fit: cover;
  object-position: center top;
  border-radius: var(--radius);
  filter: grayscale(100%);
  box-shadow: var(--shadow);
  display: block;
}

@media (max-width: 900px) {
  .diretor-row {
    grid-template-columns: 1fr 1fr;
  }

  .diretor-photo-col {
    grid-column: 1 / -1;
    max-width: 200px;
    margin: 0 auto;
  }

  .diretor-photo {
    min-height: 240px;
  }
}

@media (max-width: 540px) {
  .diretor-row {
    grid-template-columns: 1fr;
  }
}

/* =============================================
   FOOTER / CONTATO
   ============================================= */
#contato {
  background: var(--purple-deeper);
  text-align: center;
  padding: 80px 24px;
}

.footer-logo {
  width: 80px;
  height: 80px;
  margin: 0 auto 24px;
}

.footer-name {
  font-family: 'Montserrat', sans-serif;
  font-size: 20px;
  font-weight: 700;
  color: var(--white);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 32px;
}

.footer-info {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 48px;
}

.footer-info a,
.footer-info span {
  font-size: 15px;
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  transition: color var(--transition);
}

.footer-info a:hover {
  color: var(--gold);
}

.footer-divider {
  width: 60px;
  height: 2px;
  background: rgba(255, 255, 255, 0.15);
  margin: 0 auto 24px;
}

.footer-copy {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.35);
  letter-spacing: 0.05em;
}

/* =============================================
   RESPONSIVE
   ============================================= */
@media (max-width: 768px) {
  .nav-links {
    display: none;
  }

  .nav-hamburger {
    display: flex;
  }

  .section {
    padding: 72px 20px;
  }

  .stats-row {
    flex-direction: column;
  }

  .highlights-row {
    flex-direction: column;
  }

  .highlight-item {
    border-right: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  }

  .highlight-item:last-child {
    border-bottom: none;
  }
}

@media (max-width: 480px) {
  .hero-logo {
    width: 150px;
    height: 150px;
  }

  .btn-primary {
    padding: 12px 28px;
    font-size: 13px;
  }
}
