/*
Theme Name: IronPage PRO 5.0
Theme URI: https://sopublicando.com.br/
Author: Ivan Neiler
Author URI: https://blog.sopublicando.com.br
Description: Tema WordPress premium, responsivo e altamente personalizável, ideal para negócios, landing pages, infoprodutores, afiliados, microempresas, agências e páginas de alta conversão. Estrutura moderna tipo One Page com editor visual completo, painel intuitivo no Customizer, integração com SEO, performance otimizada, e recursos prontos para escalar resultados digitais.
Version: 5.0.0
Requires at least: 5.0
Tested up to: 6.5
Requires PHP: 7.2
License: GPLv2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Tags: one-page, moderno, negócios, infoprodutor, afiliados, landing page, personalizável, responsivo, visual builder, performance, SEO
Text Domain: ironpage
*/


/* === ROOT VARIABLES === */
:root {
  --azul: #005ce6;
  --cinza: #f0f0f0;
  --cinza-escuro: #333;
  --roxo: #8A2BE2;
  --verde-zap: #25D366;
  --sombra: 0 4px 12px rgba(0,0,0,0.1);
  --transicao: all 0.3s ease-in-out;
  --main-text: #222;
  --main-bg: #fff;
}

/* === RESET === */
* { margin: 0; padding: 0; box-sizing: border-box; }

/* === BODY === */
body {
  font-family: 'Raleway', 'Segoe UI', Arial, sans-serif;
  font-size: 18px;
  background: var(--main-bg);
  color: var(--main-text);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
}

/* === LINKS === */
a { color: var(--roxo); transition: color 0.2s; text-decoration: none; }
a:hover, a:focus { color: var(--azul); text-decoration: underline; outline: none; }

/* === HEADER & MENU === */
header {
  position: sticky;
  top: 0; left: 0; width: 100%;
  background: var(--main-bg);
  box-shadow: var(--sombra);
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 30px;
  z-index: 1000;
  transition: var(--transicao);
  min-height: 70px;
}
header.shrink { padding: 4px 12px; min-height: 44px; }
.logo {
  font-size: 1.8em;
  font-weight: bold;
  color: var(--roxo);
  text-decoration: none;
}
.logo img {
  height: var(--logo-height) !important;
  max-width: var(--logo-width) !important;
  max-height: var(--logo-height) !important;
  width: auto !important;
}
nav {
  flex-grow: 1;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  position: relative;
}
#menu {
  display: flex;
  gap: 25px;
  list-style: none;
  margin: 0; padding: 0 10px 0 0;
}
#menu li a {
  color: var(--main-text);
  font-weight: 600;
  font-size: 1.13em;
  transition: var(--transicao);
  position: relative;
  padding: 6px 0;
}
#menu li a:hover, #menu li a.active { color: var(--roxo); text-shadow: 0 2px 4px #f3e6fd55; }
#menu li a.active::after {
  content: '';
  position: absolute;
  bottom: -5px; left: 0; width: 100%; height: 3px;
  background: var(--roxo);
  border-radius: 4px;
}
.menu-toggle { display: none; font-size: 1.8em; color: var(--roxo); cursor: pointer; margin-left: 12px; }
@media (max-width: 900px) {
  header { padding: 9px 3vw; }
  #menu { gap: 13px; }
}
@media (max-width: 700px) {
  .logo img { height: 38px; }
  header { padding: 6px 2vw; min-height: 46px;}
  .menu-toggle { display: block; }
  #menu {
    flex-direction: column;
    position: fixed;
    top: 56px;
    right: 0;
    background: #fff;
    width: 66vw;
    max-width: 330px;
    height: 100vh;
    padding: 42px 0 0 0;
    box-shadow: -4px 0 12px #c9c9e022;
    gap: 0;
    z-index: 1100;
    transform: translateX(105%);
    transition: transform .22s;
    border-radius: 18px 0 0 18px;
  }
  #menu.active { transform: translateX(0);}
  #menu li { margin: 0; border-bottom: 1px solid #eee;}
  #menu li a { font-size: 1.08em; padding: 12px 22px; display: block;}
}

/* === HERO === */
.hero {
  position: relative;
  background: #e8f0ff;
  padding: 120px 0 90px 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 430px;
  box-sizing: border-box;
  overflow: hidden;
}
.hero > div {
  width:100vw;
  max-width:1550px;
  margin:0 auto;
  display:flex;
  flex-wrap:wrap;
  align-items:center;
  justify-content:center;
  gap:50px;
  position:relative;
  z-index:1;
  padding:0 4vw;
}
.hero::before {
  content: "";
  position: absolute; top: 0; left: 0;
  width: 100%; height: 100%;
  background: url('') center center / cover no-repeat;
  opacity: 0.22;
  z-index: 0;
  pointer-events: none;
}
.hero > * { position: relative; z-index: 1; }
.hero-text {
  flex: 1 1 650px;
  max-width: 700px;
  min-width: 320px;
  text-align: center;
  margin-left: 2vw;
  margin-right: 1vw;
}
.hero h1 {
  font-size: 2.5em;
  margin-bottom: 20px;
  color: var(--roxo);
  text-shadow: 1px 1px 2px #bbb;
}
.hero p {
  font-size: 1.15em;
  max-width: 600px;
  margin-bottom: 25px;
  color: #3f3f3f;
  line-height: 1.7;
}
.hero-img {
  flex: 0 0 320px;
  max-width: 340px;
  min-width: 200px;
  text-align: center;
  margin-right: 2vw;
}
.hero-img img {
  width: 100%; height: auto;
  border-radius: 10px;
  box-shadow: none;
}
@media (max-width: 950px) {
  .hero { flex-direction: column; gap: 36px; }
  .hero-text { max-width: 96vw; }
  .hero-img { max-width: 80vw; }
}
@media (max-width: 600px) {
  .hero { padding: 70px 4vw 32px 4vw; }
  .hero-text h1 { font-size: 1.4em; }
  .hero-img img { max-width: 96vw; }
}

/* === SECTION PADRÃO === */
section {
  padding: 70px 20px;
  width: 100%;
  background-color: #f0f8ff;
  text-align: center;
}
section .container {
  max-width: 1000px; margin: auto;
}
section h2 {
  font-size: 2.2em;
  margin-bottom: 22px;
  color: var(--roxo);
  text-shadow: 1px 1px 2px #aaa;
}
section p {
  font-size: 1.12em;
  line-height: 1.7;
}
section:last-of-type { padding-bottom: 120px; }

/* === SOBRE === */
#sobre > div { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 36px; }
#sobre img { width: 100%; max-width: 400px; height: auto; border-radius: 10px; }
@media (max-width: 950px) {
  #sobre > div { flex-direction: column; gap: 28px; }
  #sobre img { max-width: 88vw; }
}
@media (max-width: 600px) {
  #sobre { padding: 40px 3vw; }
  #sobre h2 { font-size: 1.3em; }
  #sobre img { max-width: 97vw; }
}

/* === SERVIÇOS, AGENDA, CONTATO PADRÃO === */
#servicos, #contato, #agenda { background: #e6e6fa; }
#agenda { background: #F7F7F7; }
#servicos, #contato { background: #e6e6fa; }
@media (max-width: 600px) {
  #servicos, #contato, #agenda { padding: 40px 3vw; }
  #servicos h2, #contato h2, #agenda h2 { font-size: 1.19em; }
}

/* === GALERIA DE IMAGENS === */
.galeria-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 35px;
}
.galeria-grid img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 8px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
  transition: transform 0.3s;
}
.galeria-grid img:hover {
  transform: scale(1.05);
}
@media (max-width: 900px) {
  .galeria-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 700px) {
  .galeria-grid {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    gap: 10px;
    padding-bottom: 10px;
  }
  .galeria-grid > div {
    flex: 0 0 80%;
    scroll-snap-align: center;
  }
  .galeria-grid img {
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.12);
  }
}

/* === LOCALIZAÇÃO === */
#localizacao { background: #f0f8ff; }
@media (max-width: 600px) {
  #localizacao { padding: 40px 3vw; }
  #localizacao h2 { font-size: 1.19em; }
}

/* === FOOTER === */
footer {
  background: #222;
  color: #fff;
  padding: 55px 18px;
  text-align: center;
  font-family: 'Raleway', 'Segoe UI', Arial, sans-serif;
}
.footer-nav {
  display: flex; justify-content: center; flex-wrap: wrap; gap: 12px; margin-bottom: 13px;
}
.footer-nav a {
  color: #8A2BE2; text-decoration: none; transition: color 0.3s;
}
.footer-nav a:hover, .footer-nav a:focus {
  color: #1e90ff; text-decoration: underline; outline: none;
}
.footer-copy {
  color: #aaa; font-size: 0.97em; margin-bottom: 26px;
}
@media (max-width: 480px) {
  .footer-nav { flex-direction: column; gap: 8px; margin-bottom: 14px; }
  .footer-copy { font-size: 13px; }
}

/* === BOTÃO PRINCIPAL === */
a.btn-principal, .btn-principal {
  display: inline-block;
  padding: 13px 26px;
  background-color: #8A2BE2;
  color: #fff;
  border-radius: 7px;
  font-weight: 700;
  text-decoration: none;
  transition: background-color 0.26s;
}
a.btn-principal:hover, .btn-principal:hover {
  background-color: #7c20bf;
}

/* === PROGRESS BAR === */
#progressBar {
  position: fixed;
  top: 0; left: 0;
  height: 4px;
  background: linear-gradient(90deg,#8A2BE2,#4f19b8 85%,#fff0);
  width: 0%;
  z-index: 9999;
  transition: width 0.2s;
}

/* === MODAIS === */
.modal {
  display: none;
  position: fixed; top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(0,0,0,0.54);
  justify-content: center; align-items: center;
  z-index: 9999;
}
.modal-content {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.19);
  overflow-y: auto;
  max-height: 92vh;
  max-width: 800px;
  width: 96vw;
  padding: 0;
  position: relative;
}
.modal-header {
  padding: 20px 38px 17px 38px; /* AUMENTADO lateral */
  background-color: #f5f5f5;
  border-bottom: 1px solid #ddd;
  position: relative;
}
.modal-header h2, .modal-header h3 {
  margin: 0;
  color: var(--roxo);
  font-size: 1.25em;
}
.modal-body {
  padding: 0 38px 38px 38px;   /* AUMENTADO lateral */
  overflow-y: auto;
  max-height: 66vh;
  color: #333;
  line-height: 1.7;
}
.close-modal, .close {
  position: absolute;
  top: 12px; right: 14px;
  font-size: 22px;
  color: #fff;
  background-color: #ff3b3b;
  border-radius: 50%;
  width: 32px;
  height: 32px;
  text-align: center;
  line-height: 32px;
  cursor: pointer;
  transition: all 0.2s;
  z-index: 10;
}
.close-modal:hover, .close:hover {
  background-color: #d80000;
  transform: scale(1.08);
}
@media (max-width: 700px) {
  .modal-content {max-width: 99vw;}
  .modal-header {padding: 17px 7vw 14px 7vw;}
  .modal-body {padding: 0 7vw 24px 7vw;}
}

/* === BLOCO PERFIL INSTAGRAM === */
#perfil-instagram {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  border: 1px solid #ddd;
  padding: 12px 16px;
  border-radius: 10px;
  max-width: 400px;
  margin: 38px auto;
  background-color: #fff;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  font-family: 'Raleway', 'Segoe UI', Arial, sans-serif;
  flex-wrap: nowrap;
}
#perfil-instagram div[style*="width:56px"] {
  flex-shrink: 0;
  width: 56px; height: 56px;
  border-radius: 50%;
  border: 3px solid #e1306c;
  overflow: hidden;
}
#perfil-instagram img {
  width: 100%; height: 100%;
  object-fit: cover; display: block;
}
#perfil-instagram > div:nth-child(2) {
  display: flex;
  flex-direction: column;
  justify-content: center;
  flex-grow: 1;
  gap: 2px;
}
#perfil-instagram a {
  display: inline-block;
  padding: 8px 14px;
  background-color: #8A2BE2;
  color: #fff;
  font-weight: 600;
  font-size: 14px;
  border-radius: 6px;
  text-decoration: none;
  transition: background-color 0.2s;
}
#perfil-instagram a:hover {
  background-color: #A566E5;
}
