/* =============================================
   IC 2026 Curitiba — Ricardo Mannrich
   Paleta baseada no logo oficial do evento
   ============================================= */

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

:root {
  --brown:      #3a1f00;   /* cor do texto "Curitiba 2026" no logo */
  --brown-mid:  #7a4a1e;   /* tronco da araucária */
  --green:      #1e6b12;   /* folhas da araucária */
  --green-jw:   #699c40;   /* verde institucional JW */
  --green-dk:   #4a7020;   /* verde escuro (hover) */
  --green-lt:   #eef5e4;   /* fundo seção fotos */
  --orange:     #f5a300;   /* sol do logo */
  --amber:      #ffd060;   /* sol (claro) */
  --cream:      #fdfbf5;   /* fundo principal */
  --white:      #ffffff;
  --text:       #2e1800;
  --text-2:     #6b4c28;
  --font:       'Nunito', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --radius:     14px;
  --shadow:     0 4px 24px rgba(58, 31, 0, .13);
}

body {
  font-family: var(--font);
  background: var(--cream);
  color: var(--text);
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
}

/* ---- NAVBAR ---- */
.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--brown);
  padding: .55rem 1rem;
  box-shadow: 0 2px 12px rgba(0, 0, 0, .35);
}

.nav-inner {
  max-width: 920px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.nav-logo {
  height: 44px;
  width: auto;
  display: block;
}

.lang-toggle {
  display: flex;
  gap: 3px;
  background: rgba(255, 255, 255, .08);
  border-radius: 10px;
  padding: 3px;
}

.lang-btn {
  font-family: var(--font);
  font-weight: 800;
  font-size: .78rem;
  letter-spacing: .06em;
  padding: .3rem .9rem;
  min-height: 44px;
  border: none;
  border-radius: 7px;
  cursor: pointer;
  background: transparent;
  color: rgba(255, 255, 255, .55);
  transition: background .18s, color .18s;
}

.lang-btn.active,
.lang-btn:hover {
  background: var(--green-jw);
  color: var(--white);
}

/* ---- HERO ---- */
.hero {
  position: relative;
  background: linear-gradient(
    150deg,
    var(--brown)  0%,
    #5c3200      38%,
    #2a5a10      70%,
    var(--green) 100%
  );
  padding: 4.5rem 1.5rem 7rem;
  text-align: center;
  overflow: hidden;
}

/* Araucária decorativa — silhuetas laterais */
.hero-deco {
  position: absolute;
  bottom: 0;
  width: 220px;
  opacity: .07;
  pointer-events: none;
}

.hero-deco--left  { left:  -40px; }
.hero-deco--right { right: -40px; transform: scaleX(-1); }

@media (max-width: 480px) {
  .hero-deco { width: 130px; }
}

/* Onda que separa o hero do conteúdo */
.hero::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 0;
  right: 0;
  height: 72px;
  background: var(--cream);
  clip-path: ellipse(58% 100% at 50% 100%);
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 520px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .85rem;
}

.hero-logo {
  width: min(280px, 75vw);
  height: auto;
  display: block;
  /* halo branco contorna o logo transparente, tornando o texto marrom legível */
  filter:
    drop-shadow(0 0 4px rgba(255, 255, 255, 1))
    drop-shadow(0 0 10px rgba(255, 255, 255, .85))
    drop-shadow(0 4px 18px rgba(0, 0, 0, .4));
}

.hero-name {
  font-size: clamp(2rem, 6vw, 3rem);
  font-weight: 900;
  color: var(--white);
  text-shadow: 0 2px 12px rgba(0, 0, 0, .45);
  letter-spacing: -.025em;
  line-height: 1.1;
}

.hero-role {
  font-size: 1.05rem;
  font-weight: 600;
  color: rgba(255, 255, 255, .82);
}

.hero-badge {
  display: inline-block;
  background: var(--orange);
  color: var(--brown);
  font-weight: 800;
  font-size: .78rem;
  letter-spacing: .05em;
  text-transform: uppercase;
  padding: .4rem 1.3rem;
  border-radius: 999px;
}

/* ---- LAYOUT BASE ---- */
.section  { padding: 4.5rem 1.5rem; }

.container {
  max-width: 880px;
  margin: 0 auto;
}

.container-narrow {
  max-width: 580px;
  margin: 0 auto;
}

.section-title {
  font-size: clamp(1.5rem, 4vw, 2rem);
  font-weight: 800;
  color: var(--brown);
  text-align: center;
  margin-bottom: .5rem;
}

.section-sub {
  text-align: center;
  color: var(--text-2);
  margin-bottom: 2.5rem;
}

/* ---- ABOUT ---- */
.section-about { background: var(--cream); }

.about-grid {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 2.5rem;
  align-items: start;
  margin-top: 2rem;
}

@media (max-width: 580px) {
  .about-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .about-avatar-wrap {
    display: flex;
    justify-content: center;
  }
}

.avatar {
  width: 116px;
  height: 116px;
  border-radius: 50%;
  background: linear-gradient(145deg, var(--amber), var(--orange));
  border: 4px solid var(--green-jw);
  box-shadow: 0 4px 14px rgba(105, 156, 64, .3);
  overflow: hidden;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.avatar svg {
  width: 100%;
  height: 100%;
}

.about-greeting {
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--brown);
  margin-bottom: .75rem;
}

.about-body p {
  font-size: 1.05rem;
  line-height: 1.85;
  color: var(--text);
}

/* ---- PHOTOS / MEDIA ---- */
.section-photos { background: var(--green-lt); }

/* Abas */
.tab-nav {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  justify-content: center;
  margin-bottom: 1.75rem;
}

.tab-btn {
  font-family: var(--font);
  font-weight: 700;
  font-size: .9rem;
  padding: .45rem 1.25rem;
  min-height: 44px;
  border: 2px solid var(--green-jw);
  border-radius: 999px;
  cursor: pointer;
  background: transparent;
  color: var(--green-jw);
  transition: background .18s, color .18s;
}

.tab-btn.active,
.tab-btn:hover {
  background: var(--green-jw);
  color: var(--white);
}

/* Grid de mídia */
.media-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 1rem;
}

.media-card {
  aspect-ratio: 4 / 3;
  background: var(--white);
  border-radius: var(--radius);
  border: 2px dashed #b2cc88;
  position: relative;
  overflow: hidden;
  transition: transform .2s;
}

.media-card:hover { transform: scale(1.02); }

/* Placeholder foto */
.media-card::after {
  content: '📷';
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.2rem;
  opacity: .3;
}

/* Placeholder vídeo */
.media-card--video {
  background: #12200a;
  border-color: #3a5a20;
}

.media-card--video::after {
  content: '▶';
  color: rgba(255, 255, 255, .45);
  font-size: 2.8rem;
}

/* Conteúdo real dentro de .media-card */
.media-card img,
.media-card video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.media-card iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: none;
  display: block;
}

/* ---- CONTACT ---- */
.section-contact { background: var(--cream); }

.social-row {
  display: flex;
  justify-content: center;
  gap: .75rem;
  flex-wrap: wrap;
  margin: 1.75rem 0 2.5rem;
}

.btn-social {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .7rem 1.6rem;
  border-radius: 999px;
  font-family: var(--font);
  font-weight: 700;
  font-size: 1rem;
  text-decoration: none;
  min-height: 48px;
  transition: transform .18s, box-shadow .18s;
}

.btn-social:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

.btn-whatsapp {
  background: #25d366;
  color: var(--white);
}

/* Formulário */
.contact-form {
  background: var(--white);
  border-radius: var(--radius);
  padding: 2rem 1.75rem;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.form-row {
  display: flex;
  flex-direction: column;
  gap: .3rem;
}

.form-row label {
  font-weight: 700;
  font-size: .88rem;
  color: var(--brown);
}

.form-row input,
.form-row textarea {
  width: 100%;
  padding: .7rem 1rem;
  border: 2px solid #d6c8b4;
  border-radius: 9px;
  font-family: var(--font);
  font-size: 1rem;
  color: var(--text);
  background: var(--cream);
  transition: border-color .18s;
}

.form-row input:focus,
.form-row textarea:focus {
  outline: none;
  border-color: var(--green-jw);
}

.form-row textarea {
  resize: vertical;
  min-height: 110px;
}

.btn-submit {
  padding: .85rem 1rem;
  background: var(--green-jw);
  color: var(--white);
  border: none;
  border-radius: 9px;
  font-family: var(--font);
  font-weight: 800;
  font-size: 1rem;
  cursor: pointer;
  min-height: 48px;
  transition: background .18s, transform .1s;
}

.btn-submit:hover {
  background: var(--green-dk);
  transform: translateY(-1px);
}

/* ---- FOOTER ---- */
.footer {
  background: var(--brown);
  padding: 2.5rem 1.5rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .75rem;
}

.footer-logo-wrap {
  background: var(--white);
  border-radius: 12px;
  padding: .5rem 1rem;
  display: inline-flex;
  align-items: center;
}

.footer-logo {
  height: 60px;
  width: auto;
}

.footer-copy {
  color: rgba(255, 255, 255, .6);
  font-size: .88rem;
  max-width: 480px;
}
