/*
Theme Name: Confiança Pet V4.2 Premium
Theme URI: https://example.com/
Author: Confiança Pet
Description: Tema institucional simples e responsivo para a Confiança Pet Distribuidora.
Version: 4.2.0
Requires at least: 6.0
Tested up to: 6.6
Requires PHP: 7.4
Text Domain: confianca-pet
*/

:root{
  --petrol:#0c4f59;
  --petrol-dark:#073a42;
  --light:#f4f7f7;
  --white:#ffffff;
  --text:#263238;
  --muted:#66777c;
  --accent:#d9a441;
  --radius:22px;
  --shadow:0 14px 34px rgba(7,58,66,.12);
}
*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{margin:0;font-family:Arial,Helvetica,sans-serif;color:var(--text);background:var(--white);line-height:1.6}
a{text-decoration:none;color:inherit}
img{max-width:100%;height:auto;display:block}
.container{width:min(1180px,calc(100% - 40px));margin:auto}
.site-header{position:sticky;top:0;z-index:50;background:rgba(255,255,255,.96);backdrop-filter:blur(10px);border-bottom:1px solid #e8eeee}
.header-inner{display:flex;align-items:center;justify-content:space-between;min-height:76px;gap:24px}
.brand{display:flex;align-items:center;gap:12px;font-weight:800;color:var(--petrol);font-size:1.12rem}
.brand-mark{width:44px;height:44px;border-radius:50%;display:grid;place-items:center;background:var(--petrol);color:#fff;font-size:22px}
.nav-menu{display:flex;align-items:center;gap:24px;font-weight:700;color:#3d5156}
.nav-menu a:hover{color:var(--petrol)}
.header-cta,.btn{display:inline-flex;align-items:center;justify-content:center;border-radius:999px;padding:13px 22px;font-weight:800;transition:.2s ease;border:0}
.header-cta,.btn-primary{background:var(--petrol);color:#fff}
.header-cta:hover,.btn-primary:hover{background:var(--petrol-dark);transform:translateY(-1px)}
.btn-light{background:#fff;color:var(--petrol)}
.hero{min-height:650px;display:flex;align-items:center;background:
linear-gradient(90deg,rgba(7,58,66,.98) 0%,rgba(7,58,66,.92) 38%,rgba(7,58,66,.28) 66%,rgba(7,58,66,.12) 100%),
url('assets/images/banner-pets-estoque.png') center/cover no-repeat;color:#fff}
.hero-content{max-width:620px;padding:90px 0}
.eyebrow{display:inline-block;background:rgba(255,255,255,.14);border:1px solid rgba(255,255,255,.28);padding:7px 14px;border-radius:999px;font-size:.85rem;font-weight:800;letter-spacing:.04em;text-transform:uppercase}
.hero h1{font-size:clamp(2.6rem,6vw,5rem);line-height:1.02;margin:18px 0 20px}
.hero p{font-size:1.15rem;max-width:570px;color:#e6f1f2}
.hero-actions{display:flex;gap:12px;flex-wrap:wrap;margin-top:30px}
.section{padding:88px 0}
.section.alt{background:var(--light)}
.section-title{text-align:center;max-width:760px;margin:0 auto 44px}
.section-title span{font-weight:800;color:var(--petrol);text-transform:uppercase;font-size:.82rem;letter-spacing:.08em}
.section-title h2{font-size:clamp(2rem,4vw,3.2rem);line-height:1.12;margin:10px 0 14px;color:var(--petrol-dark)}
.section-title p{color:var(--muted);font-size:1.05rem}
.grid{display:grid;gap:24px}
.grid-4{grid-template-columns:repeat(4,1fr)}
.grid-3{grid-template-columns:repeat(3,1fr)}
.card{background:#fff;border:1px solid #e7eeee;border-radius:var(--radius);padding:30px;box-shadow:var(--shadow)}
.icon{width:54px;height:54px;border-radius:16px;background:#e7f1f2;color:var(--petrol);display:grid;place-items:center;font-size:27px;margin-bottom:18px}
.card h3{margin:0 0 10px;color:var(--petrol-dark)}
.card p{margin:0;color:var(--muted)}
.about{display:grid;grid-template-columns:1.05fr .95fr;gap:56px;align-items:center}
.about-visual{min-height:430px;border-radius:30px;background:
linear-gradient(135deg,rgba(12,79,89,.18),rgba(12,79,89,.02)),
url('assets/images/banner-pets-estoque.png') center/cover no-repeat;box-shadow:var(--shadow)}
.about-copy h2{font-size:clamp(2.1rem,4vw,3.4rem);line-height:1.1;color:var(--petrol-dark);margin:0 0 20px}
.about-copy p{color:var(--muted)}
.checks{display:grid;gap:12px;margin-top:24px}
.check{display:flex;gap:10px;align-items:flex-start}
.check b{color:var(--petrol)}
.logos{display:grid;grid-template-columns:repeat(4,1fr);gap:16px}
.logo-box{height:92px;border-radius:18px;border:1px solid #e2eaea;background:#fff;display:grid;place-items:center;font-weight:800;color:#7a8c90}
.categories{display:grid;grid-template-columns:repeat(4,1fr);gap:18px}
.category{background:#fff;border-radius:20px;padding:26px;border:1px solid #e6eeee;text-align:center}
.category .emoji{font-size:34px;margin-bottom:8px}
.steps{counter-reset:step;display:grid;grid-template-columns:repeat(4,1fr);gap:18px}
.step{position:relative;background:#fff;padding:28px;border-radius:20px;border:1px solid #e6eeee}
.step:before{counter-increment:step;content:counter(step);width:38px;height:38px;border-radius:50%;background:var(--petrol);color:#fff;display:grid;place-items:center;font-weight:800;margin-bottom:16px}
.cta{background:var(--petrol);color:#fff;border-radius:30px;padding:54px;display:flex;align-items:center;justify-content:space-between;gap:24px}
.cta h2{font-size:clamp(2rem,4vw,3.1rem);line-height:1.1;margin:0 0 12px}
.cta p{margin:0;color:#d9e9eb;max-width:680px}
.site-footer{background:#062f35;color:#dbe8ea;padding:54px 0 24px}
.footer-grid{display:grid;grid-template-columns:1.3fr 1fr 1fr;gap:32px}
.footer-title{font-weight:800;color:#fff;margin-bottom:12px}
.footer-bottom{border-top:1px solid rgba(255,255,255,.12);margin-top:34px;padding-top:20px;font-size:.9rem;color:#a9c0c4}
.whatsapp{position:fixed;right:22px;bottom:22px;width:58px;height:58px;border-radius:50%;display:grid;place-items:center;background:#25D366;color:#fff;font-size:28px;box-shadow:0 10px 26px rgba(0,0,0,.22);z-index:60}
.mobile-toggle{display:none}
@media(max-width:900px){
  .nav-menu{display:none}
  .grid-4,.categories,.steps{grid-template-columns:repeat(2,1fr)}
  .about{grid-template-columns:1fr}
  .logos{grid-template-columns:repeat(2,1fr)}
  .footer-grid{grid-template-columns:1fr}
  .hero{min-height:580px;background-position:62% center}
}
@media(max-width:600px){
  .container{width:min(100% - 28px,1180px)}
  .header-cta{display:none}
  .hero{min-height:610px;background-position:66% center}
  .hero-content{padding:76px 0}
  .grid-4,.grid-3,.categories,.steps{grid-template-columns:1fr}
  .cta{padding:36px 26px;align-items:flex-start;flex-direction:column}
  .section{padding:66px 0}
}

.logo-box img{max-width:150px;max-height:58px;object-fit:contain}.category-img{width:100%;height:150px;object-fit:cover;border-radius:14px;margin-bottom:16px}.extra-copy{margin-top:20px;font-weight:600;color:var(--petrol-dark)}

/* V2.1: keeps the same visual appearance as V1 while allowing Customizer edits */
.grid-4:has(.card:nth-child(3):last-child){grid-template-columns:repeat(3,1fr)}
.grid-4:has(.card:nth-child(2):last-child){grid-template-columns:repeat(2,1fr)}
.grid-4:has(.card:only-child){grid-template-columns:1fr}
@media(max-width:900px){
  .grid-4:has(.card:nth-child(3):last-child),
  .grid-4:has(.card:nth-child(2):last-child){grid-template-columns:repeat(2,1fr)}
}
@media(max-width:600px){
  .grid-4:has(.card:nth-child(3):last-child),
  .grid-4:has(.card:nth-child(2):last-child){grid-template-columns:1fr}
}


/* V4 definitiva: ajustes funcionais sem alterar o layout original */
.site-header .custom-logo-link{
  display:flex;
  align-items:center;
  flex-shrink:0;
}
.site-header .custom-logo{
  width:auto !important;
  height:auto !important;
  max-width:210px;
  max-height:58px;
  object-fit:contain;
}
.nav-menu .primary-menu{
  display:flex;
  align-items:center;
  gap:24px;
  list-style:none;
  margin:0;
  padding:0;
}
.nav-menu .primary-menu li{
  margin:0;
  padding:0;
}
.nav-menu .primary-menu a{
  display:block;
  color:#3d5156;
  font-weight:700;
}
.nav-menu .primary-menu a:hover{
  color:var(--petrol);
}
.elementor-home,
.elementor-full-width,
.elementor-page-content{
  width:100%;
  margin:0;
  padding:0;
}
.elementor-page-content > article{
  margin:0;
}
@media(max-width:900px){
  .site-header .custom-logo{
    max-width:170px;
  }
}
@media(max-width:600px){
  .site-header .custom-logo{
    max-width:145px;
  }
}


/* V4.1 Premium — menu mobile e banner responsivo */
.mobile-menu-toggle{
  display:none;
  width:46px;
  height:46px;
  border:0;
  border-radius:14px;
  background:#edf4f5;
  padding:11px;
  cursor:pointer;
}
.mobile-menu-toggle span{
  display:block;
  height:2px;
  margin:5px 0;
  border-radius:999px;
  background:var(--petrol);
}
.mobile-menu-overlay{
  position:fixed;
  inset:0;
  z-index:89;
  background:rgba(0,0,0,.48);
  opacity:0;
  transition:opacity .25s ease;
}
.mobile-menu-overlay.is-visible{
  opacity:1;
}
.mobile-menu-panel{
  position:fixed;
  top:0;
  right:0;
  z-index:90;
  width:min(86vw,360px);
  height:100vh;
  padding:24px;
  background:#fff;
  box-shadow:-18px 0 40px rgba(0,0,0,.16);
  transform:translateX(105%);
  transition:transform .28s ease;
  overflow-y:auto;
}
.mobile-menu-panel.is-open{
  transform:translateX(0);
}
.mobile-menu-head{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px;
  padding-bottom:20px;
  border-bottom:1px solid #e8eeee;
  color:var(--petrol-dark);
}
.mobile-menu-close{
  width:42px;
  height:42px;
  border:0;
  border-radius:50%;
  background:#edf4f5;
  color:var(--petrol);
  font-size:30px;
  line-height:1;
  cursor:pointer;
}
.mobile-primary-menu{
  list-style:none;
  margin:22px 0;
  padding:0;
}
.mobile-primary-menu li{
  margin:0;
  border-bottom:1px solid #edf1f2;
}
.mobile-primary-menu a{
  display:block;
  padding:15px 2px;
  font-weight:800;
  color:#33484d;
}
.mobile-menu-cta{
  display:flex;
  align-items:center;
  justify-content:center;
  padding:14px 18px;
  border-radius:999px;
  background:var(--petrol);
  color:#fff;
  font-weight:800;
}
body.mobile-menu-open{
  overflow:hidden;
}
.hero{
  background-repeat:no-repeat !important;
  background-size:cover !important;
}
@media(max-width:900px){
  .nav-menu-desktop,
  .site-header .header-cta{
    display:none;
  }
  .mobile-menu-toggle{
    display:block;
    flex-shrink:0;
  }
  .header-inner{
    min-height:70px;
  }
}
@media(max-width:600px){
  .hero{
    min-height:620px;
    padding:0;
  }
  .hero-content{
    max-width:100%;
    padding:72px 0 54px;
  }
  .hero h1{
    font-size:clamp(2.25rem,12vw,3.15rem);
  }
  .hero p{
    font-size:1rem;
  }
}

.icon i{font-size:24px;line-height:1}.icon{overflow:hidden}
