/* TS Treinamentos em Saúde — Design System (WordPress) */
:root{
  --background:#ffffff;
  --foreground:#2C3E50;
  --primary:#1B5E20;
  --primary-foreground:#ffffff;
  --accent:#4CAF50;
  --accent-foreground:#ffffff;
  --secondary:#F1F8F2;
  --muted:#F1F4F8;
  --muted-foreground:#5C6B7A;
  --border:#E2E7EE;
  --warning:#F59E0B;
  --destructive:#EF4444;
  --radius:.75rem;
  --shadow-card:0 10px 30px -10px rgba(44,62,80,.18);
  --shadow-cta:0 8px 24px -6px rgba(76,175,80,.55);
  --gradient-primary:linear-gradient(135deg,#0E3A12,#3A8540);
  --gradient-hero:linear-gradient(180deg,rgba(14,58,18,.85),rgba(8,40,14,.92));
  --transition:all .3s cubic-bezier(.4,0,.2,1);
}

*,*::before,*::after{box-sizing:border-box}
html{scroll-behavior:smooth;-webkit-text-size-adjust:100%}
body{margin:0;background:var(--background);color:var(--foreground);font-family:'Inter',system-ui,sans-serif;line-height:1.5;-webkit-font-smoothing:antialiased;overflow-x:hidden}
img{max-width:100%;height:auto;display:block}
a{color:inherit;text-decoration:none}
h1,h2,h3,h4,h5,h6{font-family:'Poppins','Inter',sans-serif;font-weight:700;letter-spacing:-.02em;margin:0}
p{margin:0}
ul{margin:0;padding:0;list-style:none}

/* Container — +2px nas margens */
.container-tight{margin:0 auto;width:100%;max-width:1152px;padding-left:22px;padding-right:22px}
@media(min-width:640px){.container-tight{padding-left:26px;padding-right:26px}}
@media(min-width:1024px){.container-tight{padding-left:34px;padding-right:34px}}

/* Buttons */
.btn{display:inline-flex;align-items:center;justify-content:center;gap:.5rem;font-weight:700;border-radius:.6rem;padding:.75rem 1.25rem;font-size:.95rem;border:1px solid transparent;cursor:pointer;transition:var(--transition);text-decoration:none;line-height:1.1}
.btn-lg{padding:.95rem 1.5rem;font-size:1rem}
.btn-block{width:100%}
.btn-primary{background:var(--primary);color:var(--primary-foreground)}
.btn-primary:hover{background:#164e1a}
.btn-primary[disabled]{opacity:.55;cursor:not-allowed}
.btn-accent{background:var(--accent);color:var(--accent-foreground);box-shadow:var(--shadow-cta)}
.btn-accent:hover{background:#3f9b43}
.btn-outline{background:transparent;color:var(--primary-foreground);border-color:rgba(255,255,255,.4)}
.btn-outline:hover{background:rgba(255,255,255,.1)}
.btn-outline-dark{background:transparent;color:var(--primary);border-color:var(--primary)}
.btn-outline-dark:hover{background:var(--primary);color:#fff}

/* Header */
.site-header{position:sticky;top:0;z-index:40;background:rgba(255,255,255,.92);backdrop-filter:blur(8px);border-bottom:1px solid rgba(226,231,238,.7)}
.header-inner{display:flex;align-items:center;justify-content:space-between;height:64px}
@media(min-width:768px){.header-inner{height:80px}}
.brand{display:flex;align-items:center;gap:.6rem}
.brand img{height:44px;width:44px;object-fit:contain}
@media(min-width:768px){.brand img{height:56px;width:56px}}
.brand-text{display:none;line-height:1.1}
@media(min-width:640px){.brand-text{display:block}}
.brand-text strong{display:block;font-family:'Poppins',sans-serif;color:var(--primary);font-size:1rem;font-weight:800}
.brand-text small{display:block;font-size:.69rem;font-weight:600;text-transform:uppercase;letter-spacing:.08em;color:var(--accent)}
.primary-nav{display:none}
@media(min-width:768px){.primary-nav{display:block}}
.primary-nav .menu{display:flex;gap:2rem}
.primary-nav .menu a{font-size:.92rem;font-weight:600;color:rgba(44,62,80,.85)}
.primary-nav .menu a:hover{color:var(--primary)}
.menu-toggle{display:inline-flex;flex-direction:column;justify-content:center;gap:5px;width:40px;height:40px;border:0;background:transparent;cursor:pointer;color:var(--primary)}
.menu-toggle span{display:block;height:2px;width:22px;background:currentColor;border-radius:2px;margin:0 auto}
@media(min-width:768px){.menu-toggle{display:none}}
.mobile-nav{border-top:1px solid var(--border);background:#fff}
.mobile-nav ul{padding:1rem 22px}
.mobile-nav a{display:block;padding:.75rem 0;font-weight:600}

/* Hero */
.hero{position:relative;isolation:isolate;overflow:hidden;color:#fff}
.hero-bg{position:absolute;inset:0;z-index:-1}
.hero-bg img{width:100%;height:100%;object-fit:cover}
.hero-overlay{position:absolute;inset:0;background:var(--gradient-hero)}
.hero-content{padding:80px 22px;max-width:1152px}
@media(min-width:768px){.hero-content{padding:128px 34px}}
.badge{display:inline-flex;align-items:center;gap:.4rem;background:rgba(76,175,80,.2);color:var(--accent);font-size:.72rem;font-weight:700;text-transform:uppercase;letter-spacing:.08em;padding:.4rem .8rem;border-radius:999px;border:1px solid rgba(76,175,80,.4);backdrop-filter:blur(6px)}
.hero h1{margin-top:1.25rem;font-size:2.25rem;line-height:1.05;font-weight:800;text-wrap:balance;max-width:680px}
@media(min-width:640px){.hero h1{font-size:3rem}}
@media(min-width:768px){.hero h1{font-size:3.5rem}}
.hero h1 .accent{color:var(--accent)}
.lead{margin-top:1.25rem;font-size:1.05rem;color:rgba(255,255,255,.85);max-width:560px}
.hero-ctas{margin-top:2rem;display:flex;flex-direction:column;gap:.75rem}
@media(min-width:640px){.hero-ctas{flex-direction:row}}
.hero-stats{display:grid;grid-template-columns:repeat(3,1fr);gap:1rem;margin-top:2.5rem;max-width:420px}
.hero-stats dt{font-family:'Poppins',sans-serif;font-size:1.5rem;font-weight:800;color:var(--accent)}
.hero-stats dd{margin:0;font-size:.74rem;font-weight:600;color:rgba(255,255,255,.75)}

/* Sections */
.section{padding:64px 0}
@media(min-width:768px){.section{padding:96px 0}}
.section-courses{background:rgba(241,248,242,.6)}
.section-head{max-width:640px}
.eyebrow{font-size:.72rem;font-weight:700;text-transform:uppercase;letter-spacing:.08em;color:var(--accent);margin:0}
.section-head h2{margin-top:.5rem;font-size:1.85rem;font-weight:800;color:var(--primary)}
@media(min-width:768px){.section-head h2{font-size:2.25rem}}
.section-head .muted{margin-top:.75rem;color:rgba(44,62,80,.75)}

/* Courses grid */
.course-grid{margin-top:2.5rem;display:grid;gap:1.25rem;grid-template-columns:1fr}
@media(min-width:640px){.course-grid{grid-template-columns:repeat(2,1fr)}}
@media(min-width:1024px){.course-grid{grid-template-columns:repeat(3,1fr)}}
.course-card{background:#fff;border-radius:1rem;box-shadow:var(--shadow-card);overflow:hidden;display:flex;flex-direction:column;transition:var(--transition)}
.course-card:hover{transform:translateY(-4px)}
.course-img{display:block;aspect-ratio:4/3;overflow:hidden}
.course-img img{width:100%;height:100%;object-fit:cover;transition:transform .5s}
.course-card:hover .course-img img{transform:scale(1.05)}
.course-body{padding:1.25rem 1.4rem;display:flex;flex-direction:column;flex:1}
.course-body h3{font-family:'Poppins',sans-serif;font-size:1.08rem;color:var(--primary);font-weight:700;line-height:1.3}
.course-body p{margin-top:.5rem;font-size:.88rem;color:rgba(44,62,80,.7);flex:1}
.course-price{margin-top:.5rem;color:var(--primary);font-weight:700;font-size:1.05rem;flex:0!important}
.course-price-big{font-size:1.6rem;font-weight:800;color:var(--primary)}
.course-body .btn{margin-top:1.25rem}
.course-shop-link{margin-top:2rem;text-align:center}

/* Schedule */
.schedule-list{margin-top:2.5rem;display:flex;flex-direction:column;gap:.75rem}
.schedule-item{background:#fff;border:1px solid rgba(226,231,238,.7);border-radius:.75rem;box-shadow:var(--shadow-card);padding:1rem;display:flex;align-items:center;gap:1rem}
@media(min-width:640px){.schedule-item{padding:1.25rem}}
.schedule-date{flex-shrink:0;display:flex;flex-direction:column;align-items:center;justify-content:center;width:64px;height:64px;border-radius:.75rem;background:var(--gradient-primary);color:#fff}
@media(min-width:640px){.schedule-date{width:80px;height:80px}}
.schedule-date .d{font-family:'Poppins',sans-serif;font-size:1.5rem;font-weight:800;line-height:1}
@media(min-width:640px){.schedule-date .d{font-size:1.85rem}}
.schedule-date .m{font-size:.7rem;text-transform:uppercase;letter-spacing:.08em;font-weight:600;margin-top:.15rem}
.schedule-info{flex:1;min-width:0}
.schedule-info h3{font-family:'Poppins',sans-serif;font-size:1rem;color:var(--primary);font-weight:700;line-height:1.2;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
@media(min-width:640px){.schedule-info h3{font-size:1.1rem}}
.schedule-info .meta{margin-top:.3rem;font-size:.8rem;color:rgba(44,62,80,.7)}
.status{display:inline-flex;align-items:center;gap:.25rem;margin-top:.5rem;padding:.15rem .6rem;border-radius:999px;font-size:.7rem;font-weight:700}
.st-open{background:rgba(76,175,80,.15);color:var(--accent);box-shadow:inset 0 0 0 1px rgba(76,175,80,.3)}
.st-last{background:rgba(245,158,11,.15);color:var(--warning);box-shadow:inset 0 0 0 1px rgba(245,158,11,.3)}
.st-out{background:rgba(239,68,68,.1);color:var(--destructive);box-shadow:inset 0 0 0 1px rgba(239,68,68,.2)}
.schedule-action{display:none}
@media(min-width:640px){.schedule-action{display:block}}
.schedule-cta{margin-top:2rem;text-align:center}

/* Footer */
.site-footer{background:var(--primary);color:#fff;padding:56px 0 0}
.footer-grid{display:grid;gap:2.5rem}
@media(min-width:1024px){.footer-grid{grid-template-columns:1fr 1fr;gap:3.5rem}}
.footer-brand{display:flex;align-items:center;gap:.75rem}
.footer-brand img{background:#fff;border-radius:50%;padding:4px;width:56px;height:56px}
.brand-title{font-family:'Poppins',sans-serif;font-size:1.1rem;font-weight:800}
.brand-sub{font-size:.7rem;text-transform:uppercase;letter-spacing:.08em;color:var(--accent);font-weight:600}
.footer-desc{margin-top:1.25rem;color:rgba(255,255,255,.8);max-width:440px}
.footer-contact{margin-top:1.75rem;display:flex;flex-direction:column;gap:.75rem;font-size:.92rem}
.footer-contact li{display:flex;gap:.6rem}
.footer-contact .ico{color:var(--accent);flex-shrink:0}
.footer-contact a:hover{color:var(--accent)}
.social{margin-top:1.75rem;display:flex;gap:.6rem}
.social a{display:inline-grid;place-items:center;width:44px;height:44px;border-radius:50%;background:rgba(255,255,255,.1);font-size:.7rem;font-weight:800;letter-spacing:.05em;transition:var(--transition)}
.social a:hover{background:var(--accent)}
.footer-media{display:flex;flex-direction:column;gap:1.25rem}
.card-frame{border-radius:1rem;overflow:hidden;border:1px solid rgba(255,255,255,.1);box-shadow:var(--shadow-card);background:#fff}
.card-frame img{width:100%;height:200px;object-fit:cover}
@media(min-width:640px){.card-frame img{height:224px}}
.card-frame iframe{width:100%;height:224px;border:0;display:block}
@media(min-width:640px){.card-frame iframe{height:256px}}
.footer-bottom{margin-top:48px;padding:24px 22px;border-top:1px solid rgba(255,255,255,.15);display:flex;flex-direction:column;gap:.5rem;font-size:.78rem;color:rgba(255,255,255,.7)}
@media(min-width:640px){.footer-bottom{flex-direction:row;justify-content:space-between;align-items:center}}

/* WhatsApp float */
.wa-float{position:fixed;bottom:20px;right:20px;z-index:50;width:56px;height:56px;display:grid;place-items:center;border-radius:50%;background:var(--accent);color:#fff;font-size:1.5rem;box-shadow:var(--shadow-cta);animation:pulse-ring 2s infinite;transition:transform .2s}
.wa-float:hover{transform:scale(1.05)}
@keyframes pulse-ring{0%{box-shadow:0 0 0 0 rgba(76,175,80,.7)}70%{box-shadow:0 0 0 14px rgba(76,175,80,0)}100%{box-shadow:0 0 0 0 rgba(76,175,80,0)}}

/* Page content */
.page-content{padding:1rem 0;max-width:840px;margin:0 auto}
.page-content h1{font-size:2rem;color:var(--primary);margin-bottom:1rem}
.page-content .entry{font-size:1rem;line-height:1.7;color:rgba(44,62,80,.85)}
.page-content .entry p{margin:1rem 0}
.single-course .card-frame{margin:1rem 0}

/* WooCommerce overrides */
.woocommerce-page,.woocommerce{font-family:'Inter',sans-serif}
.woocommerce ul.products li.product .button,
.woocommerce .button.alt,.woocommerce a.button.alt,
.woocommerce #respond input#submit,
.woocommerce button.button{background:var(--primary)!important;color:#fff!important;border-radius:.6rem!important;font-weight:700!important}
.woocommerce ul.products li.product .button:hover,
.woocommerce .button.alt:hover{background:#164e1a!important}

/* ===== v1.3.0 — Cursos VIP ===== */
.section-vip{background:linear-gradient(180deg,rgba(0,0,0,.02),transparent);}
.section-vip .eyebrow{color:#b8860b;font-weight:700;}
.section-vip .course-card{border:1px solid rgba(184,134,11,.25);box-shadow:0 6px 24px rgba(184,134,11,.08);}
.course-price small{margin-top:2px;}
