/*
Theme Name: CPAPCare
Theme URI: https://cpapcare.com.br
Author: CPAPCare
Author URI: https://cpapcare.com.br
Description: Tema oficial CPAPCare — Distribuidor Topson & HYpnus. Landing page de alto desempenho com painel de cotações integrado.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 8.0
License: Proprietary
License URI: https://cpapcare.com.br
Text Domain: cpapcare
Tags: full-site-editing, gutenberg, custom-colors, custom-logo, one-page
*/

/* ── RESET & BASE ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: 'Barlow', 'Segoe UI', sans-serif;
  color: #1A2E3D;
  background: #fff;
  overflow-x: hidden;
  line-height: 1.6;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }

/* ── CSS VARS ── */
:root {
  --cc-navy:       #1E4A6E;
  --cc-navy-dark:  #12324D;
  --cc-navy-light: #2B5F8E;
  --cc-teal:       #5BBFB5;
  --cc-teal-dark:  #3A9E94;
  --cc-teal-light: #8DD5CE;
  --cc-teal-pale:  #E8F7F6;
  --cc-white:      #FFFFFF;
  --cc-off-white:  #F5F9FC;
  --cc-gray-light: #EEF3F7;
  --cc-gray:       #8FA3B4;
  --cc-gray-dark:  #3D5166;
  --cc-text:       #1A2E3D;
  --cc-text-muted: #5B7487;
  --cc-radius:     12px;
  --cc-radius-lg:  20px;
  --cc-shadow:     0 8px 40px rgba(30,74,110,.08);
  --cc-shadow-lg:  0 20px 60px rgba(30,74,110,.12);
}

/* ── TYPOGRAPHY ── */
h1,h2,h3,h4,h5,h6 {
  font-family: 'Barlow Condensed', 'Barlow', sans-serif;
  font-weight: 900;
  line-height: 1.05;
  color: var(--cc-navy-dark);
}
h1 { font-size: clamp(2.6rem, 5vw, 4.2rem); }
h2 { font-size: clamp(1.8rem, 3.5vw, 3rem); }
h3 { font-size: 1.3rem; font-weight: 700; }
p  { line-height: 1.7; color: var(--cc-text-muted); }

/* ── UTILITIES ── */
.container { max-width: 1200px; margin: 0 auto; padding: 0 2rem; }
.section-pad { padding: 5.5rem 0; }
.section-label {
  display: block;
  font-size: 11px; font-weight: 700;
  letter-spacing: .15em; text-transform: uppercase;
  color: var(--cc-teal-dark); margin-bottom: .6rem;
}
.section-sub {
  font-size: 1.05rem; color: var(--cc-text-muted);
  line-height: 1.7; max-width: 580px; margin-top: .75rem;
}
.btn {
  display: inline-block;
  padding: 14px 32px; border-radius: 50px;
  font-family: 'Barlow', sans-serif;
  font-weight: 700; font-size: 15px;
  text-decoration: none; cursor: pointer;
  border: none; transition: all .4s cubic-bezier(0.165, 0.84, 0.44, 1);
  box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}
.btn-primary { 
  background: var(--cc-teal); 
  color: var(--cc-navy-dark);
  position: relative;
  overflow: hidden;
}
.btn-primary::after {
  content: '';
  position: absolute;
  top: 0; left: -100%;
  width: 100%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
  transition: 0.5s;
}
.btn-primary:hover::after { left: 100%; }
.btn-primary:hover { 
  background: var(--cc-teal-light); 
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(91,191,181,0.3);
}
.btn-navy { background: var(--cc-navy-dark); color: #fff; }
.btn-navy:hover { background: var(--cc-navy-light); }
.btn-outline { background: transparent; color: #fff; border: 1.5px solid rgba(255,255,255,.35); }
.btn-outline:hover { border-color: var(--cc-teal); color: var(--cc-teal); }

/* ── NAV ── */
#site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  background: rgba(18,50,77,.97);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(91,191,181,.2);
  transition: background .3s;
}
.header-inner {
  max-width: 1400px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 1rem;
  height: 72px;
}
.site-logo {
  display: flex; align-items: center; gap: 10px; text-decoration: none;
  margin-right: 0; /* Tirar centralização se houver */
}
/* Desktop only header contact */
.header-contact {
    display: none !important;
}
@media (min-width: 768px) {
    .header-contact {
        display: flex !important;
    }
}
@media (min-width: 992px) {
    .header-inner {
        padding: 0 2rem;
    }
}
.site-logo img { height: 38px; width: auto; }
.logo-text {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 22px; font-weight: 900;
  color: #fff; letter-spacing: .02em;
}
.logo-text span { color: var(--cc-teal); }
.main-nav { display: flex; align-items: center; gap: 2rem; list-style: none; }
.main-nav a {
  color: rgba(255,255,255,.7); text-decoration: none;
  font-size: 13px; font-weight: 600;
  letter-spacing: .06em; text-transform: uppercase;
  transition: color .2s;
}
.main-nav a:hover { color: var(--cc-teal); }
.nav-cta {
  background: var(--cc-teal) !important;
  color: var(--cc-navy-dark) !important;
  padding: 9px 22px; border-radius: 50px;
}
.nav-cta:hover { background: var(--cc-teal-light) !important; }
.hamburger { display: none; flex-direction: column; gap: 5px; cursor: pointer; background: none; border: none; padding: 4px; }
.hamburger span { width: 24px; height: 2px; background: #fff; display: block; transition: .3s; }

/* ── HERO ── */
.hero-section {
  min-height: 100vh;
  background: var(--cc-navy-dark);
  position: relative; overflow: hidden;
  display: flex; align-items: center;
}
.hero-pattern {
  position: absolute; inset: 0; opacity: .05;
  background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='%235BBFB5' fill-opacity='1'%3E%3Ccircle cx='10' cy='10' r='3'/%3E%3Ccircle cx='30' cy='10' r='3'/%3E%3Ccircle cx='50' cy='10' r='3'/%3E%3Ccircle cx='10' cy='30' r='3'/%3E%3Ccircle cx='30' cy='30' r='3'/%3E%3Ccircle cx='50' cy='30' r='3'/%3E%3Ccircle cx='10' cy='50' r='3'/%3E%3Ccircle cx='30' cy='50' r='3'/%3E%3Ccircle cx='50' cy='50' r='3'/%3E%3C/g%3E%3C/svg%3E");
}
.hero-shape {
  position: absolute; right: 0; top: 0; bottom: 0; width: 52%;
  background: linear-gradient(135deg, var(--cc-navy-light) 0%, var(--cc-teal-dark) 100%);
  clip-path: polygon(18% 0%, 100% 0%, 100% 100%, 0% 100%);
  opacity: .25;
}
.hero-inner {
  position: relative; z-index: 2;
  max-width: 1200px; margin: 0 auto; padding: 9rem 2rem 5rem;
  display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: center;
}
.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(91,191,181,.15); border: 1px solid rgba(91,191,181,.4);
  color: var(--cc-teal); padding: 6px 16px; border-radius: 50px;
  font-size: 11px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
  margin-bottom: 1.25rem;
}
.badge-dot { width: 6px; height: 6px; background: var(--cc-teal); border-radius: 50%; animation: blink 2s infinite; }
@keyframes blink { 0%,100%{opacity:1} 50%{opacity:.3} }
.hero-title { color: #fff; margin-bottom: 1.25rem; }
.hero-title .accent { color: var(--cc-teal); }
.hero-desc { color: rgba(255,255,255,.7); font-size: 1.05rem; margin-bottom: 2.25rem; max-width: 480px; }
.hero-btns { display: flex; gap: 1rem; flex-wrap: wrap; margin-bottom: 2.5rem; }
.hero-stats {
  display: flex; gap: 2rem; padding-top: 2rem;
  border-top: 1px solid rgba(255,255,255,.1);
}
.stat-num {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 1.9rem; font-weight: 900; color: var(--cc-teal);
}
.stat-label { font-size: 12px; color: rgba(255,255,255,.45); margin-top: 2px; }
.hero-brands-card {
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(91,191,181,.2);
  border-radius: var(--cc-radius-lg); padding: 2rem;
  backdrop-filter: blur(10px);
}
.brands-card-label {
  font-size: 10px; font-weight: 700; letter-spacing: .14em;
  text-transform: uppercase; color: rgba(255,255,255,.35); margin-bottom: 1.25rem;
}
.brand-row {
  display: flex; align-items: center; gap: 1rem;
  padding: 1rem 1.1rem; border-radius: 10px; margin-bottom: .6rem;
}
.brand-row.excl { background: rgba(91,191,181,.12); border: 1px solid rgba(91,191,181,.25); }
.brand-row.sec  { background: rgba(255,255,255,.04); }
.brand-ico {
  width: 42px; height: 42px; border-radius: 9px;
  display: flex; align-items: center; justify-content: center;
  font-family: 'Barlow Condensed', sans-serif; font-weight: 900; font-size: 13px;
}
.brand-ico.t { background: var(--cc-teal); color: var(--cc-navy-dark); }
.brand-ico.h { background: var(--cc-navy-light); color: #fff; }
.brand-ico.o { background: rgba(255,255,255,.08); color: rgba(255,255,255,.4); font-size: 11px; }
.brand-row-name { font-weight: 700; color: #fff; font-size: 14px; flex: 1; }
.brand-row-name.dim { color: rgba(255,255,255,.55); font-size: 13px; }
.excl-tag {
  font-size: 9px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase;
  padding: 3px 9px; border-radius: 50px;
}
.excl-tag.e { background: var(--cc-teal); color: var(--cc-navy-dark); }
.excl-tag.d { background: rgba(255,255,255,.1); color: rgba(255,255,255,.5); }

/* ── BRANDS ── */
.brands-section { background: var(--cc-off-white); }
.brands-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; margin-top: 3.5rem; }
.brand-card {
  background: #fff; border-radius: var(--cc-radius-lg);
  border: 1.5px solid var(--cc-gray-light); overflow: hidden;
  transition: transform .3s, box-shadow .3s;
}
.brand-card:hover { transform: translateY(-6px); box-shadow: var(--cc-shadow-lg); }
.brand-card.hl { border-color: var(--cc-teal); }
.brand-card-head {
  padding: 2rem; display: flex;
  align-items: flex-start; justify-content: space-between;
}
.brand-logo-text {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 2.2rem; font-weight: 900; letter-spacing: -.02em;
}
.brand-logo-text.teal { color: var(--cc-teal-dark); }
.brand-logo-text.navy { color: var(--cc-navy); }
.excl-badge {
  background: var(--cc-teal); color: var(--cc-navy-dark);
  font-size: 10px; font-weight: 800;
  padding: 4px 12px; border-radius: 50px;
  letter-spacing: .1em; text-transform: uppercase;
}
.brand-card-body { padding: 0 2rem 2rem; }
.brand-card-body p { font-size: 14px; margin-bottom: 1.1rem; }
.product-tags { display: flex; flex-wrap: wrap; gap: .4rem; }
.product-tag {
  background: var(--cc-gray-light); color: var(--cc-gray-dark);
  font-size: 11px; font-weight: 600; padding: 4px 12px; border-radius: 50px;
}
.other-brands-row {
  grid-column: 1 / -1;
  background: #fff; border-radius: var(--cc-radius-lg);
  padding: 1.75rem 2rem; border: 1px solid var(--cc-gray-light);
}
.other-brands-row > p { font-size: 13px; margin-bottom: .9rem; }
.brand-pills { display: flex; flex-wrap: wrap; gap: .6rem; }
.brand-pill {
  background: var(--cc-gray-light); color: var(--cc-gray-dark);
  font-size: 13px; font-weight: 600; padding: 5px 14px; border-radius: 50px;
}

/* ── PRODUCTS ── */
.products-section { background: #fff; }
.products-header {
  display: flex; align-items: flex-end; justify-content: space-between;
  margin-bottom: 2.75rem; flex-wrap: wrap; gap: 1rem;
}
.products-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 1.5rem; }
.product-card {
  background: #fff; border: 1px solid var(--cc-gray-light);
  border-radius: var(--cc-radius); overflow: hidden;
  transition: all .4s cubic-bezier(0.165, 0.84, 0.44, 1); cursor: pointer;
}
.product-card:hover { 
  border-color: var(--cc-teal); 
  transform: translateY(-8px) scale(1.02); 
  box-shadow: var(--cc-shadow-lg); 
}
.product-thumb {
  height: 170px; background: var(--cc-teal-pale);
  display: flex; align-items: center; justify-content: center;
  position: relative; overflow: hidden;
}
.product-thumb img { height: 120px; width: auto; object-fit: contain; }
.product-thumb-icon { font-size: 3.5rem; }
.product-brand-tag {
  position: absolute; top: 10px; left: 10px;
  background: var(--cc-navy-dark); color: var(--cc-teal);
  font-size: 9px; font-weight: 800; letter-spacing: .1em;
  padding: 3px 10px; border-radius: 50px;
}
.product-body { padding: 1.2rem; }
.product-name { font-family: 'Barlow', sans-serif; font-weight: 700; font-size: 15px; color: var(--cc-navy-dark); margin-bottom: .35rem; }
.product-desc { font-size: 13px; color: var(--cc-text-muted); line-height: 1.5; margin-bottom: .9rem; }
.product-specs { display: flex; flex-wrap: wrap; gap: .35rem; }
.spec-tag { background: var(--cc-teal-pale); color: var(--cc-teal-dark); font-size: 10px; font-weight: 600; padding: 3px 10px; border-radius: 50px; }

/* ── REVENDAS ── */
.revendas-section { background: var(--cc-navy-dark); }
.revendas-section h2 { color: #fff; }
.revendas-section .section-label { color: var(--cc-teal); }
.revendas-section .section-sub { color: rgba(255,255,255,.6); }
.revendas-grid { display: grid; grid-template-columns: repeat(auto-fill,minmax(270px,1fr)); gap: 1.1rem; margin-top: 2.75rem; }
.revenda-card {
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(91,191,181,.15);
  border-radius: var(--cc-radius); padding: 1.4rem;
  transition: all .2s;
}
.revenda-card:hover { background: rgba(91,191,181,.1); border-color: rgba(91,191,181,.4); }
.revenda-state { font-size: 10px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--cc-teal); margin-bottom: .3rem; }
.revenda-name { font-weight: 700; color: #fff; font-size: 15px; margin-bottom: .2rem; }
.revenda-city { font-size: 12px; color: rgba(255,255,255,.4); margin-bottom: .9rem; }
.revenda-phone { font-size: 13px; color: rgba(255,255,255,.6); }
.revendas-cta {
  margin-top: 2.5rem; text-align: center;
  padding: 2.25rem; border-radius: var(--cc-radius);
  background: rgba(91,191,181,.08);
  border: 1px dashed rgba(91,191,181,.3);
}
.revendas-cta p { color: rgba(255,255,255,.6); margin-bottom: 1.1rem; }

/* ── WHY ── */
.why-section { background: #fff; }
.why-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 1.75rem; margin-top: 3.25rem; }
.why-card {
  padding: 1.75rem; border-radius: var(--cc-radius);
  border: 1px solid var(--cc-gray-light); transition: all .25s;
}
.why-card:hover { border-color: var(--cc-teal); background: var(--cc-teal-pale); }
.why-icon {
  width: 50px; height: 50px; border-radius: 13px;
  background: var(--cc-navy-dark);
  display: flex; align-items: center; justify-content: center; margin-bottom: 1.1rem;
}
.why-icon svg { width: 22px; height: 22px; fill: var(--cc-teal); }
.why-card h3 { font-family: 'Barlow', sans-serif; font-size: 16px; color: var(--cc-navy-dark); margin-bottom: .4rem; }
.why-card p { font-size: 13px; line-height: 1.6; }

/* ── ATACADO FORM ── */
.atacado-section { background: var(--cc-off-white); }
.atacado-grid { display: grid; grid-template-columns: 1fr 1.4fr; gap: 5rem; margin-top: 3.5rem; align-items: start; }
.benefit-item { display: flex; gap: 1rem; margin-bottom: 1.9rem; }
.benefit-icon {
  width: 46px; height: 46px; border-radius: 11px;
  background: var(--cc-navy-dark); display: flex;
  align-items: center; justify-content: center; flex-shrink: 0;
}
.benefit-icon svg { width: 20px; height: 20px; fill: var(--cc-teal); }
.benefit-text h4 { font-family: 'Barlow', sans-serif; font-weight: 700; color: var(--cc-navy-dark); margin-bottom: .2rem; font-size: 15px; }
.benefit-text p { font-size: 13px; line-height: 1.5; }
.form-card {
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-radius: var(--cc-radius-lg);
  padding: 3rem;
  border: 1px solid rgba(255, 255, 255, 0.3);
  box-shadow: var(--cc-shadow-lg);
  position: relative;
  overflow: hidden;
}
.form-card::before {
  content: '';
  position: absolute;
  top: -20%; right: -10%;
  width: 200px; height: 200px;
  background: var(--cc-teal);
  filter: blur(100px);
  opacity: 0.1;
  z-index: -1;
}
.form-card > h3 { font-family: 'Barlow Condensed', sans-serif; font-size: 1.5rem; color: var(--cc-navy-dark); margin-bottom: .4rem; }
.form-card > p { font-size: 13px; margin-bottom: 1.6rem; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.form-group { margin-bottom: 1rem; }
.form-group label { display: block; font-size: 12px; font-weight: 700; color: var(--cc-navy-dark); margin-bottom: .35rem; letter-spacing: .03em; }
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%; padding: 11px 13px;
  border: 1.5px solid var(--cc-gray-light); border-radius: 9px;
  font-family: 'Barlow', sans-serif; font-size: 14px; color: var(--cc-text);
  background: var(--cc-off-white); outline: none;
  transition: border-color .2s, box-shadow .2s;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--cc-teal);
  box-shadow: 0 0 0 3px rgba(91,191,181,.15);
  background: #fff;
}
.form-group textarea { resize: vertical; min-height: 85px; }
.form-submit {
  width: 100%; background: var(--cc-navy-dark); color: #fff;
  padding: 14px; border-radius: 50px; font-family: 'Barlow', sans-serif;
  font-weight: 700; font-size: 15px; border: none; cursor: pointer;
  transition: background .2s, transform .2s; margin-top: .4rem;
}
.form-submit:hover { background: var(--cc-navy-light); transform: translateY(-1px); }
.form-note { text-align: center; font-size: 11px; color: var(--cc-text-muted); margin-top: .65rem; }
.form-success {
  display: none; background: var(--cc-teal-pale);
  border: 1.5px solid var(--cc-teal); border-radius: 10px;
  padding: 1.4rem; text-align: center; color: var(--cc-teal-dark);
  font-weight: 700; font-size: 15px;
}

/* ── FOOTER ── */
#site-footer {
  background: var(--cc-navy-dark);
  padding: 4rem 0 2rem;
  border-top: 1px solid rgba(91,191,181,.15);
}
.footer-grid {
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 3rem; margin-bottom: 2.75rem;
}
.footer-brand-name {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 1.5rem; font-weight: 900; color: #fff; margin-bottom: .65rem;
}
.footer-brand-name span { color: var(--cc-teal); }
.footer-desc { font-size: 13px; color: rgba(255,255,255,.4); line-height: 1.7; margin-bottom: 1.1rem; max-width: 240px; }
.footer-social { display: flex; gap: .6rem; }
.social-link {
  width: 34px; height: 34px; border-radius: 7px;
  background: rgba(255,255,255,.08);
  display: flex; align-items: center; justify-content: center;
  color: rgba(255,255,255,.45); font-size: 12px; font-weight: 800;
  text-decoration: none; transition: .2s;
}
.social-link:hover { background: var(--cc-teal); color: var(--cc-navy-dark); }
.footer-col h4 {
  font-size: 11px; font-weight: 800; letter-spacing: .13em;
  text-transform: uppercase; color: var(--cc-teal); margin-bottom: 1.1rem;
}
.footer-col a,
.footer-col address { display: block; font-size: 13px; color: rgba(255,255,255,.4); text-decoration: none; margin-bottom: .55rem; font-style: normal; transition: color .2s; line-height: 1.5; }
.footer-col a:hover { color: #fff; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.08);
  padding-top: 1.5rem; display: flex;
  justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 1rem;
}
.footer-bottom p { font-size: 12px; color: rgba(255,255,255,.25); }

/* ── MOBILE ── */
@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-brands-card { display: none; }
  .brands-grid { grid-template-columns: 1fr; }
  .products-grid { grid-template-columns: 1fr 1fr; }
  .atacado-grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .why-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
  .products-grid { grid-template-columns: 1fr; }
  .why-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .main-nav { display: none; }
  .hamburger { display: flex; }
  .hero-stats { flex-wrap: wrap; gap: 1.25rem; }
}
