/*
Theme Name: Professor Elias 65123
Theme URI: https://professoreliassilva.example
Author: Campanha Professor Elias
Description: Tema de campanha para Deputado Distrital, réplica do layout original em HTML/CSS (roxo e amarelo), com hero, seção sobre, bandeiras, CTA de Instagram e formulário de contato.
Version: 1.0
Requires at least: 6.0
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: professor-elias
*/

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Segoe UI', Tahoma, sans-serif;
}

:root {
  --roxo-principal: #7B3FA0;
  --roxo-escuro: #4A1F6B;
  --roxo-claro: #A66BC9;
  --roxo-suave: #F3EBFA;
  --amarelo: #FFC107;
  --amarelo-escuro: #F5A623;
  --vermelho: #E63946;
  --azul: #2A6FDB;
  --laranja: #F77F00;
  --logo-tamanho-topo: 110px;
  --logo-tamanho-rolado: 50px;
}

body {
  background: #fff;
  color: #333;
  line-height: 1.6;
}

a { color: inherit; }
ul { list-style: none; }
img { max-width: 100%; display: block; }

/* HEADER */
.site-header {
  background: linear-gradient(135deg, var(--roxo-escuro), var(--roxo-principal));
  color: white;
  padding: 15px 5%;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 4px 20px rgba(91, 44, 141, 0.3);
  transition: padding 0.3s ease;
}

.site-header.is-scrolled {
  padding: 8px 5%;
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
  flex-wrap: wrap;
  gap: 15px;
}

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

.logo-circle {
  width: var(--logo-tamanho-topo);
  height: var(--logo-tamanho-topo);
  background: var(--amarelo);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  color: var(--roxo-escuro);
  font-size: 44px;
  box-shadow: 0 0 15px rgba(255, 193, 7, 0.5);
  overflow: hidden;
  transition: width 0.3s ease, height 0.3s ease, font-size 0.3s ease;
}

.site-header.is-scrolled .logo-circle {
  width: var(--logo-tamanho-rolado);
  height: var(--logo-tamanho-rolado);
  font-size: 22px;
}

.logo-circle img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.logo-text h1 {
  font-size: 16px;
  letter-spacing: 1px;
  color: white;
}

.logo-text span {
  font-size: 11px;
  color: var(--amarelo);
  font-weight: bold;
  letter-spacing: 2px;
  display: block;
}

.logo--custom {
  display: flex;
  align-items: center;
}

.logo--custom .custom-logo-link {
  display: block;
}

.logo--custom .custom-logo {
  max-height: var(--logo-tamanho-topo);
  width: auto;
  border-radius: 8px;
  transition: max-height 0.3s ease;
}

.site-header.is-scrolled .logo--custom .custom-logo {
  max-height: var(--logo-tamanho-rolado);
}

nav ul {
  display: flex;
  gap: 22px;
  flex-wrap: wrap;
  align-items: center;
}

nav a {
  color: white;
  text-decoration: none;
  font-weight: 500;
  transition: 0.3s;
  font-size: 15px;
}

nav a:hover {
  color: var(--amarelo);
}

.insta-btn {
  background: var(--amarelo);
  color: var(--roxo-escuro) !important;
  padding: 8px 16px;
  border-radius: 50px;
  font-weight: bold !important;
  font-size: 13px !important;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: 0.3s;
}

.insta-btn:hover {
  background: #FFD54F;
  transform: translateY(-2px);
}

/* HERO */
.hero {
  background: linear-gradient(135deg, var(--roxo-principal), var(--roxo-claro));
  color: white;
  padding: 70px 5% 60px;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: 'VOTE';
  position: absolute;
  top: 20px;
  left: -20px;
  font-size: 12rem;
  font-weight: 900;
  color: rgba(255,255,255,0.06);
  letter-spacing: 10px;
  pointer-events: none;
}

.hero-grid {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 50px;
  align-items: center;
  position: relative;
  z-index: 2;
}

.hero-text .tag {
  display: inline-block;
  background: rgba(255,255,255,0.15);
  border: 1px solid rgba(255,255,255,0.3);
  padding: 6px 16px;
  border-radius: 50px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 1px;
  margin-bottom: 20px;
  backdrop-filter: blur(10px);
}

.hero-text h2 {
  font-size: 3rem;
  line-height: 1.1;
  margin-bottom: 15px;
  font-weight: 800;
  color: white;
}

.hero-text h2 .destaque {
  color: var(--amarelo);
  display: block;
}

.hero-text .subtitulo {
  font-size: 1.1rem;
  opacity: 0.95;
  margin-bottom: 25px;
  max-width: 500px;
}

.numero-box {
  display: inline-flex;
  align-items: center;
  gap: 15px;
  background: var(--amarelo);
  color: var(--roxo-escuro);
  padding: 12px 30px;
  border-radius: 15px;
  margin-bottom: 30px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

.numero-box .label {
  font-size: 12px;
  font-weight: bold;
  letter-spacing: 1px;
  line-height: 1.2;
}

.numero-box .num {
  font-size: 2.5rem;
  font-weight: 900;
  letter-spacing: 3px;
  line-height: 1;
}

.hero-botoes {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 30px;
  border-radius: 50px;
  text-decoration: none;
  font-weight: bold;
  transition: 0.3s;
  border: none;
  cursor: pointer;
  font-size: 15px;
}

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

.btn-primary:hover {
  background: #C42D3A;
  transform: translateY(-3px);
  box-shadow: 0 10px 25px rgba(230, 57, 70, 0.4);
}

.btn-outline {
  background: transparent;
  color: white;
  border: 2px solid white;
}

.btn-outline:hover {
  background: white;
  color: var(--roxo-principal);
}

/* FOTO CANDIDATO */
.hero-foto {
  position: relative;
  display: flex;
  justify-content: center;
}

.hero-foto .moldura {
  position: relative;
  width: 100%;
  max-width: 400px;
  aspect-ratio: 3/4;
  border-radius: 25px;
  overflow: hidden;
  box-shadow: 0 25px 60px rgba(0,0,0,0.35);
  border: 5px solid var(--amarelo);
  background: linear-gradient(135deg, var(--roxo-principal), var(--roxo-claro));
}

.hero-foto .moldura img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}

.hero-foto .moldura .fallback {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 6rem;
  color: white;
}

.hero-foto .selo {
  position: absolute;
  bottom: -20px;
  right: -20px;
  background: var(--amarelo);
  color: var(--roxo-escuro);
  width: 110px;
  height: 110px;
  border-radius: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  box-shadow: 0 10px 30px rgba(0,0,0,0.3);
  border: 4px solid white;
  transform: rotate(-8deg);
}

.hero-foto .selo .p {
  font-size: 10px;
  letter-spacing: 1px;
}

.hero-foto .selo .n {
  font-size: 26px;
  letter-spacing: 2px;
  line-height: 1;
}

/* SEÇÕES */
section {
  padding: 70px 5%;
}

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

.section-title {
  text-align: center;
  margin-bottom: 50px;
}

.section-title h3 {
  font-size: 2.2rem;
  color: var(--roxo-escuro);
  margin-bottom: 10px;
}

.section-title .linha {
  width: 80px;
  height: 4px;
  background: var(--amarelo);
  margin: 0 auto;
  border-radius: 2px;
}

/* SOBRE */
.sobre {
  background: var(--roxo-suave);
}

.sobre-content {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 40px;
  align-items: center;
}

.foto-sobre {
  width: 100%;
  aspect-ratio: 1;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 15px 40px rgba(91, 44, 141, 0.3);
  border: 4px solid var(--amarelo);
  background: linear-gradient(135deg, var(--roxo-principal), var(--roxo-claro));
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 5rem;
}

.foto-sobre img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.sobre-texto h4 {
  color: var(--roxo-principal);
  font-size: 1.8rem;
  margin-bottom: 15px;
}

.sobre-texto p {
  margin-bottom: 15px;
  font-size: 1.05rem;
  color: #555;
}

.sobre-texto .citacao {
  border-left: 4px solid var(--amarelo);
  padding-left: 18px;
  font-style: italic;
  color: var(--roxo-principal);
  font-weight: 500;
  margin: 20px 0;
}

.stats {
  display: flex;
  gap: 30px;
  margin-top: 25px;
  flex-wrap: wrap;
}

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

.stat-item .num {
  font-size: 2rem;
  font-weight: 900;
  color: var(--roxo-principal);
  line-height: 1;
}

.stat-item .desc {
  font-size: 12px;
  color: #777;
  letter-spacing: 1px;
  margin-top: 5px;
  text-transform: uppercase;
}

/* BANDEIRAS */
.bandeiras-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 25px;
}

.card {
  background: white;
  border-radius: 15px;
  padding: 30px 25px;
  box-shadow: 0 5px 20px rgba(91, 44, 141, 0.1);
  transition: 0.3s;
  border-top: 4px solid var(--roxo-principal);
}

.card:hover {
  transform: translateY(-8px);
  box-shadow: 0 15px 40px rgba(91, 44, 141, 0.25);
}

.card-icon {
  width: 60px;
  height: 60px;
  background: var(--roxo-suave);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  margin-bottom: 20px;
}

.card h4 {
  color: var(--roxo-escuro);
  margin-bottom: 12px;
  font-size: 1.2rem;
}

.card p {
  color: #666;
  font-size: 0.95rem;
}

/* DESTAQUES DO INSTAGRAM */
.ig-destaques {
  background: var(--roxo-suave);
}

.ig-carousel-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
}

.ig-carousel {
  display: flex;
  gap: 20px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding: 5px 5px 15px;
  flex: 1;
  scrollbar-width: thin;
}

.ig-card {
  flex: 0 0 auto;
  width: 220px;
  scroll-snap-align: start;
  text-decoration: none;
  background: white;
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 5px 20px rgba(91, 44, 141, 0.1);
  transition: 0.3s;
  display: block;
}

.ig-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 15px 40px rgba(91, 44, 141, 0.2);
}

.ig-card-img {
  position: relative;
  width: 100%;
  aspect-ratio: 1;
  background: linear-gradient(135deg, var(--roxo-principal), var(--roxo-claro));
  overflow: hidden;
}

.ig-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.ig-card-fallback {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  color: white;
}

.ig-card-badge {
  position: absolute;
  bottom: 10px;
  right: 10px;
  background: rgba(255,255,255,0.9);
  border-radius: 50%;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
}

.ig-card-caption {
  padding: 12px 14px;
  font-size: 0.85rem;
  color: #555;
  line-height: 1.4;
}

.ig-nav {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: none;
  background: var(--roxo-principal);
  color: white;
  font-size: 22px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: 0.3s;
}

.ig-nav:hover {
  background: var(--roxo-escuro);
}

@media (max-width: 600px) {
  .ig-nav { display: none; }
  .ig-card { width: 180px; }
}

/* CTA INSTAGRAM */
.cta-insta {
  background: linear-gradient(135deg, var(--roxo-escuro), var(--roxo-principal));
  color: white;
  padding: 50px 5%;
}

.cta-insta-box {
  max-width: 900px;
  margin: 0 auto;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 20px;
  padding: 40px;
  display: flex;
  align-items: center;
  gap: 30px;
  flex-wrap: wrap;
  justify-content: center;
  text-align: center;
}

.cta-insta-box .ig-icon {
  font-size: 3.5rem;
}

.cta-insta-box h4 {
  font-size: 1.5rem;
  margin-bottom: 8px;
}

.cta-insta-box .user {
  color: var(--amarelo);
  font-weight: bold;
  font-size: 1.2rem;
  letter-spacing: 1px;
}

.cta-insta-box .btn-insta {
  background: linear-gradient(45deg, #F58529, #DD2A7B, #8134AF, #515BD4);
  color: white;
  padding: 14px 30px;
  border-radius: 50px;
  text-decoration: none;
  font-weight: bold;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: 0.3s;
}

.cta-insta-box .btn-insta:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 25px rgba(221, 42, 123, 0.4);
}

/* CONTATO */
.contato {
  background: white;
}

.form-contato {
  max-width: 600px;
  margin: 0 auto;
  background: var(--roxo-suave);
  padding: 40px;
  border-radius: 20px;
  border: 2px solid #E8D9F5;
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  margin-bottom: 8px;
  font-weight: 600;
  color: var(--roxo-escuro);
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 14px;
  border-radius: 10px;
  border: 2px solid #E0D0EE;
  font-size: 15px;
  font-family: inherit;
  outline: none;
  transition: 0.3s;
  background: white;
}

.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--roxo-principal);
  box-shadow: 0 0 0 3px rgba(123, 63, 160, 0.15);
}

.form-contato .btn-primary {
  width: 100%;
  padding: 16px;
  font-size: 17px;
  justify-content: center;
}

.form-msg {
  max-width: 600px;
  margin: 0 auto 20px;
  padding: 14px 20px;
  border-radius: 10px;
  background: #E9F9EE;
  color: #1E6B3A;
  border: 1px solid #BEEAD0;
  font-weight: 600;
}

.form-msg--erro {
  background: #FDECEC;
  color: #B02A2A;
  border-color: #F5C6C6;
}

.pe-hp-field {
  position: absolute;
  left: -9999px;
  top: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* FOOTER */
.site-footer {
  background: #2A1147;
  color: white;
  text-align: center;
  padding: 40px 5% 25px;
  font-size: 14px;
}

.site-footer .numero-footer {
  color: var(--amarelo);
  font-weight: 900;
  font-size: 26px;
  letter-spacing: 4px;
  margin: 15px 0;
}

.site-footer .insta-footer {
  color: var(--amarelo);
  text-decoration: none;
  font-weight: 600;
  display: inline-block;
  margin: 10px 0;
}

.site-footer .insta-footer:hover {
  text-decoration: underline;
}

.site-footer .copyright {
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid rgba(255,255,255,0.1);
  font-size: 12px;
  opacity: 0.7;
}

.site-footer .rodape-legal {
  margin-top: 10px;
  font-size: 11px;
  line-height: 1.6;
}

.site-footer .rodape-legal a {
  color: var(--amarelo);
  text-decoration: none;
}

.site-footer .rodape-legal a:hover {
  text-decoration: underline;
}

/* RESPONSIVO */
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; text-align: center; }
  .hero-text h2 { font-size: 2.2rem; }
  .hero-text .subtitulo { margin-left: auto; margin-right: auto; }
  .hero-botoes { justify-content: center; }
  .hero-foto { order: -1; }
  .hero-foto .moldura { max-width: 300px; }
  .sobre-content { grid-template-columns: 1fr; }
  nav ul { gap: 12px; }
  nav a { font-size: 13px; }
  .insta-btn { padding: 6px 12px; font-size: 12px !important; }
}

@media (max-width: 600px) {
  .hero-text h2 { font-size: 1.8rem; }
  .numero-box .num { font-size: 2rem; }
  .form-contato { padding: 25px; }
  .cta-insta-box { padding: 25px; }
  .hero-foto .selo { width: 90px; height: 90px; bottom: -10px; right: -10px; }
  .hero-foto .selo .n { font-size: 20px; }
}
