/* style.css - Perícia Contábil Online (versão atualizada) */
:root{
  --green-600:#4caf50;
  --green-700:#2e7d32;
  --green-800:#1b5e20;
  --bg:#ffffff;
  --text:#0d3c3c;
}

/* reset / base */
*{box-sizing:border-box}
body{
  font-family:Arial, Helvetica, sans-serif;
  margin:0;
  background:var(--bg);
  color:var(--text);
  -webkit-font-smoothing:antialiased;
  -moz-osx-font-smoothing:grayscale;
  line-height:1.5;
}

/* header */
.header{
  background:var(--green-600);
  padding:18px 16px;
  color:#fff;
  display:flex;
  align-items:center;
  gap:16px;
  flex-wrap:wrap;
  position:fixed;
  top:0;
  left:0;
  width:100%;
  z-index:9999;
  box-shadow: 0 6px 18px rgba(0,0,0,0.08);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
.header img{height:64px; border-radius:50%; background:#fff; padding:6px;}
.header .brand{flex:1; min-width:180px;}
.header h1{font-size:18px; margin:0}
.header p{margin:0; font-size:13px; opacity:0.95}

/* main nav (fixed under header) */
nav.main-nav{
  background:#a5d6a7;
  display:flex;
  justify-content:center;
  gap:8px;
  padding:10px 8px;
  flex-wrap:wrap;
  position:fixed;
  top:100px; /* ajuste se seu header for mais alto/baixo */
  left:0;
  width:100%;
  z-index:9980;
  box-shadow: 0 4px 14px rgba(0,0,0,0.06);
}
nav.main-nav a{
  color:#fff;
  text-decoration:none;
  padding:10px 14px;
  font-weight:600;
  border-radius:6px;
}
nav.main-nav a:hover{background:var(--green-700)}

/* container (content) */
.container{
  max-width:1100px;
  margin:28px auto;
  padding:0 16px;
}

/* compensate for fixed header + menu */
body{ padding-top: 160px; } /* ajuste fino se necessário */

/* cards */
.card{
  background:#fff;
  border-radius:12px;
  box-shadow:0 10px 30px rgba(0,0,0,0.06);
  padding:22px;
  margin-bottom:20px;
}
h2{color:#00796b; margin-top:0}
ul{padding-left:20px}

/* buttons */
.btn{
  display:inline-block;
  padding:10px 18px;
  background:var(--green-600);
  color:#fff;
  border-radius:8px;
  text-decoration:none;
  font-weight:700;
}
.btn:hover{background:var(--green-700); transform:translateY(-2px); transition:0.15s}

/* whatsapp */
.whatsapp-float{
  position:fixed; right:18px; bottom:18px; width:60px; height:60px;
  background:#25d366; border-radius:50%; display:flex; align-items:center; justify-content:center;
  font-size:28px; text-decoration:none; color:#fff; box-shadow:0 6px 18px rgba(0,0,0,0.18); z-index:99999;
}

/* product grid (ebooks) */
.product-grid{ display:flex; gap:18px; flex-wrap:wrap; margin-top:12px; }
.product-card{ flex:1 1 260px; background:#fff; border-radius:10px; padding:14px; box-shadow:0 6px 18px rgba(0,0,0,0.04);}
.product-card img{max-width:100%; border-radius:8px;}
.product-title{font-weight:700; margin:8px 0;}
.product-desc{font-size:14px; color:#333; margin-bottom:10px;}

/* footer */
footer.site-foot{ background:var(--green-800); color:#fff; text-align:center; padding:20px; margin-top:28px; }

/* responsive */
@media(max-width:720px){
  .header{justify-content:center; text-align:center}
  .header .brand{text-align:center}
  nav.main-nav{top:140px}
  body{padding-top:190px}
  .product-grid{flex-direction:column}
}

.video-wrapper{
  position: relative;
  width: 100%;
  max-width: 360px;   /* largura ideal para Shorts */
  aspect-ratio: 9 / 16;
  margin: 0 auto;     /* centraliza */
}

.video-wrapper iframe{
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border-radius: 12px;
}
html {
  scroll-behavior: smooth;
}

section {
  scroll-margin-top: 120px; /* altura do header/menu */
}



/* AJUSTE PARA UNIFORMIZAR IMAGENS DOS PRODUTOS */
.product-card{
  display: flex;
  flex-direction: column;
}

.product-card img{
  width: 100%;
  height: 220px;
  object-fit: cover;
  border-radius: 8px;
  display: block;
}

.product-card .btn{
  margin-top: auto;
}
