/* ============================================================
   CEMI - Centro de Estudos da Mente Inconsciente
   Reset + Base
   ============================================================ */
*,*::before,*::after{box-sizing:border-box;margin:0;padding:0}
html{scroll-behavior:smooth;-webkit-text-size-adjust:100%}
body{
  font-family:'Open Sans','Segoe UI',Arial,sans-serif;
  font-size:16px;line-height:1.65;color:#4a4a4a;
  background:#fff;-webkit-font-smoothing:antialiased;
  overflow-x:hidden;
}
img{max-width:100%;height:auto;display:block}
a{color:#b8860b;text-decoration:none;transition:color .25s ease}
a:hover{color:#8b6508}
ul,ol{list-style:none}
button{font:inherit;cursor:pointer;border:none;background:none}

/* Focus visíveis (acessibilidade) */
:focus-visible{outline:3px solid #b8860b;outline-offset:2px}

/* Skip link */
.skip-link{
  position:absolute;left:-9999px;top:0;z-index:9999;
  background:#b8860b;color:#fff;padding:10px 16px;
}
.skip-link:focus{left:0}

/* Tipografia */
h1,h2,h3,h4,h5,h6{
  font-family:'Philosopher','Playfair Display',Georgia,serif;
  color:#2c2c2c;font-weight:700;line-height:1.25;
  margin-bottom:.5em;
}
h1{font-size:38px}
h2{font-size:28px}
h3{font-size:22px}
h4{font-size:18px}
h5{font-size:16px}
h6{font-size:14px}
p{margin-bottom:1em}

/* Container */
.container{
  max-width:1200px;margin:0 auto;
  padding:0 20px;width:100%;
}

/* Botões */
.btn{
  display:inline-block;padding:14px 32px;
  font-weight:600;font-size:14px;letter-spacing:.5px;
  text-transform:uppercase;border-radius:2px;
  transition:all .3s ease;cursor:pointer;text-align:center;
  border:2px solid transparent;
}
.btn-primary{background:#b8860b;color:#fff}
.btn-primary:hover{background:#8b6508;color:#fff;transform:translateY(-2px)}
.btn-outline{background:transparent;color:#fff;border-color:#fff}
.btn-outline:hover{background:#fff;color:#b8860b}
.btn-whatsapp{
  background:#25d366;color:#fff;
  display:inline-flex;align-items:center;gap:8px;
}
.btn-whatsapp:hover{background:#1ea952;color:#fff}

/* ============================================================
   HEADER
   ============================================================ */
.site-header{
  position:sticky;top:0;z-index:1000;
  background:#fff;border-bottom:1px solid #eae9e9;
  box-shadow:0 2px 4px rgba(0,0,0,.03);
}
.header-inner{
  display:flex;align-items:center;justify-content:space-between;
  padding:14px 20px;max-width:1200px;margin:0 auto;gap:20px;
}
.site-logo img{max-width:180px;width:auto;height:auto}
.site-logo{flex-shrink:0}

/* Menu desktop */
.main-nav{display:flex;align-items:center}
.main-menu{
  display:flex;align-items:center;gap:6px;
}
.main-menu > li{position:relative}
.main-menu > li > a{
  display:flex;align-items:center;gap:6px;
  padding:12px 14px;font-size:14px;font-weight:600;
  color:#2c2c2c;text-transform:uppercase;letter-spacing:.4px;
  position:relative;
}
.main-menu > li > a::after{
  content:'';position:absolute;left:14px;right:14px;bottom:6px;
  height:2px;background:#b8860b;transform:scaleX(0);
  transform-origin:left;transition:transform .3s ease;
}
.main-menu > li > a:hover::after,
.main-menu > li.current-menu-item > a::after{transform:scaleX(1)}
.main-menu > li > a:hover,
.main-menu > li.current-menu-item > a{color:#b8860b}

/* Indicador submenu */
.has-submenu > a .caret{
  display:inline-block;width:0;height:0;
  border-left:4px solid transparent;
  border-right:4px solid transparent;
  border-top:5px solid currentColor;
  transition:transform .3s ease;margin-left:2px;
}
.has-submenu:hover > a .caret{transform:rotate(180deg)}

.submenu{
  position:absolute;top:100%;left:0;min-width:260px;
  background:#fff;border:1px solid #eae9e9;
  box-shadow:0 8px 24px rgba(0,0,0,.1);
  padding:8px 0;opacity:0;visibility:hidden;
  transform:translateY(8px);transition:all .25s ease;
  z-index:1001;
}
.has-submenu:hover > .submenu,
.has-submenu:focus-within > .submenu,
.has-submenu.open > .submenu{
  opacity:1;visibility:visible;transform:translateY(0);
}
.submenu li a{
  display:block;padding:10px 18px;
  font-size:14px;color:#4a4a4a;
  border-left:3px solid transparent;
}
.submenu li a:hover{
  background:#faf7f0;color:#b8860b;
  border-left-color:#b8860b;
}

/* Menu toggle mobile */
.menu-toggle{
  display:none;width:44px;height:44px;
  flex-direction:column;justify-content:center;
  align-items:center;gap:5px;
}
.menu-toggle span{
  display:block;width:26px;height:2.5px;background:#2c2c2c;
  transition:all .3s ease;
}
.menu-toggle.active span:nth-child(1){transform:translateY(7.5px) rotate(45deg)}
.menu-toggle.active span:nth-child(2){opacity:0}
.menu-toggle.active span:nth-child(3){transform:translateY(-7.5px) rotate(-45deg)}

/* ============================================================
   HERO / PAGE HEADER
   ============================================================ */
.hero{
  position:relative;
  min-height:520px;
  display:flex;align-items:center;justify-content:center;
  background:linear-gradient(180deg,rgba(0,0,0,.55),rgba(44,44,44,.75)),
    url('../images/hero-bg.webp') center/cover no-repeat;
  color:#fff;text-align:center;padding:80px 20px;
}
.hero-content{max-width:820px;margin:0 auto}
.hero h1{
  color:#fff;font-size:44px;margin-bottom:20px;
  text-shadow:0 2px 8px rgba(0,0,0,.35);
}
.hero p{font-size:17px;margin-bottom:32px;opacity:.95}
.hero-buttons{display:flex;gap:16px;justify-content:center;flex-wrap:wrap}

.page-header{
  background:linear-gradient(135deg,#2c2c2c,#3d3d3d);
  color:#fff;text-align:center;padding:70px 20px 60px;
}
.page-header h1{color:#fff;font-size:38px;margin-bottom:12px}
.breadcrumb{
  display:flex;justify-content:center;flex-wrap:wrap;
  gap:8px;font-size:14px;
}
.breadcrumb a{color:#f5deb3}
.breadcrumb li:not(:last-child)::after{content:'/';margin-left:8px;opacity:.6}
.breadcrumb li[aria-current="page"]{opacity:.85}

/* ============================================================
   SEÇÕES
   ============================================================ */
.section{padding:70px 0}
.section-alt{background:#faf7f0}
.section-title{
  text-align:center;margin-bottom:50px;
}
.section-title h2{font-size:32px;margin-bottom:12px}
.section-title p{color:#666;font-size:16px;max-width:680px;margin:0 auto}

/* Grade de features */
.features-grid{
  display:grid;grid-template-columns:repeat(auto-fit,minmax(240px,1fr));
  gap:30px;
}
.feature-card{
  text-align:center;padding:30px 24px;
  background:#fff;border-radius:6px;
  box-shadow:0 4px 20px rgba(0,0,0,.05);
  transition:transform .3s ease,box-shadow .3s ease;
}
.feature-card:hover{transform:translateY(-6px);box-shadow:0 12px 30px rgba(0,0,0,.1)}
.feature-icon{
  width:70px;height:70px;margin:0 auto 20px;
  background:linear-gradient(135deg,#b8860b,#d4a020);
  border-radius:50%;display:flex;align-items:center;justify-content:center;
  color:#fff;font-size:28px;
}
.feature-card h4{font-size:18px;margin-bottom:10px}

/* Grade de cursos */
.courses-grid{
  display:grid;grid-template-columns:repeat(auto-fit,minmax(280px,1fr));
  gap:30px;
}
.course-card{
  background:#fff;border-radius:8px;overflow:hidden;
  box-shadow:0 4px 20px rgba(0,0,0,.08);
  transition:transform .3s ease,box-shadow .3s ease;
  display:flex;flex-direction:column;
}
.course-card:hover{transform:translateY(-6px);box-shadow:0 15px 35px rgba(0,0,0,.12)}
.course-card img{aspect-ratio:16/10;object-fit:cover;width:100%}
.course-body{padding:22px;flex:1;display:flex;flex-direction:column}
.course-body h3{font-size:20px;margin-bottom:10px}
.course-body p{font-size:15px;color:#666;flex:1;margin-bottom:16px}
.course-body .btn{align-self:flex-start}

/* Depoimentos */
.testimonials-grid{
  display:grid;grid-template-columns:repeat(auto-fit,minmax(280px,1fr));gap:26px;
}
.testimonial{
  background:#fff;padding:28px;border-radius:6px;
  border-left:4px solid #b8860b;
  box-shadow:0 4px 20px rgba(0,0,0,.06);
  font-style:italic;
}
.testimonial p{margin-bottom:16px;color:#555}
.testimonial-author{
  font-weight:700;color:#2c2c2c;font-style:normal;font-size:15px;
}
.testimonial-author span{font-weight:400;color:#888;font-size:13px}

/* Sobre / duas colunas */
.two-col{
  display:grid;grid-template-columns:1fr 1fr;
  gap:50px;align-items:center;
}
.two-col img{border-radius:8px;box-shadow:0 10px 30px rgba(0,0,0,.15)}

/* Blog */
.blog-grid{
  display:grid;grid-template-columns:repeat(auto-fit,minmax(280px,1fr));gap:30px;
}
.blog-card{
  background:#fff;border-radius:8px;overflow:hidden;
  box-shadow:0 4px 20px rgba(0,0,0,.08);
  transition:transform .3s ease;
}
.blog-card:hover{transform:translateY(-4px)}
.blog-card img{aspect-ratio:16/9;object-fit:cover;width:100%}
.blog-body{padding:22px}
.blog-body h3{font-size:19px;margin-bottom:10px;line-height:1.35}
.blog-body h3 a{color:#2c2c2c}
.blog-body h3 a:hover{color:#b8860b}
.blog-meta{font-size:12px;color:#999;margin-bottom:10px;text-transform:uppercase;letter-spacing:.5px}

/* Conteúdo interno de páginas */
.content-page{padding:60px 0}
.content-page .container{max-width:900px}
.content-page h2{margin:1.2em 0 .6em;font-size:28px;color:#b8860b}
.content-page h3{margin:1em 0 .5em;font-size:22px}
.content-page ul,.content-page ol{margin:1em 0 1em 1.5em}
.content-page ul{list-style:disc}
.content-page ol{list-style:decimal}
.content-page ul li,.content-page ol li{margin-bottom:.4em}
.content-page img{border-radius:6px;margin:1.5em 0}
.info-box{
  background:#faf7f0;border-left:4px solid #b8860b;
  padding:20px 24px;margin:24px 0;border-radius:0 6px 6px 0;
}

/* Formulário */
.contact-form{
  background:#fff;padding:36px;border-radius:8px;
  box-shadow:0 8px 30px rgba(0,0,0,.08);
}
.form-group{margin-bottom:18px}
.form-group label{
  display:block;font-weight:600;font-size:14px;
  margin-bottom:6px;color:#2c2c2c;
}
.form-group input,
.form-group textarea{
  width:100%;padding:12px 14px;font:inherit;
  border:1.5px solid #dcdcdc;border-radius:4px;
  transition:border-color .25s ease;background:#fff;
}
.form-group input:focus,
.form-group textarea:focus{outline:none;border-color:#b8860b}
.form-group textarea{min-height:130px;resize:vertical}
.contact-info{margin-bottom:26px}
.contact-info li{
  display:flex;gap:12px;margin-bottom:12px;font-size:15px;
  align-items:center;
}
.contact-info svg{flex-shrink:0;color:#b8860b}

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer{
  background:#1e1e1e;color:#c8c8c8;
  padding:60px 0 0;font-size:14px;
}
.footer-grid{
  display:grid;grid-template-columns:1.4fr 1fr 1fr 1.2fr;
  gap:40px;margin-bottom:40px;
}
.footer-col h4{
  color:#fff;font-size:16px;margin-bottom:18px;
  text-transform:uppercase;letter-spacing:1px;
  border-bottom:2px solid #b8860b;padding-bottom:8px;display:inline-block;
}
.footer-col ul li{margin-bottom:8px}
.footer-col a{color:#c8c8c8}
.footer-col a:hover{color:#f5deb3}
.footer-col img{max-width:170px;margin-bottom:14px}
.social-icons{display:flex;gap:12px;margin-top:14px}
.social-icons a{
  width:38px;height:38px;border-radius:50%;
  background:rgba(255,255,255,.08);
  display:flex;align-items:center;justify-content:center;
  transition:background .3s ease;
}
.social-icons a:hover{background:#b8860b}
.footer-bottom{
  border-top:1px solid #333;padding:20px 0;
  text-align:center;font-size:13px;color:#888;
}
.footer-bottom a{color:#b8860b}

/* ============================================================
   WHATSAPP FLOAT
   ============================================================ */
.whatsapp-float{
  position:fixed;bottom:24px;right:24px;
  width:60px;height:60px;background:#25d366;
  border-radius:50%;display:flex;align-items:center;justify-content:center;
  box-shadow:0 6px 20px rgba(0,0,0,.25);z-index:998;
  transition:transform .3s ease;
}
.whatsapp-float:hover{transform:scale(1.1)}
.whatsapp-float svg{width:34px;height:34px;fill:#fff}

/* ============================================================
   COOKIE BANNER (LGPD)
   ============================================================ */
.cookie-banner{
  position:fixed;bottom:20px;left:20px;right:20px;
  max-width:520px;margin:0 auto;background:#fff;
  border-radius:8px;box-shadow:0 10px 40px rgba(0,0,0,.25);
  padding:20px 24px;z-index:999;
  border-left:4px solid #b8860b;
  transform:translateY(120%);transition:transform .4s ease;
}
.cookie-banner.show{transform:translateY(0)}
.cookie-banner p{font-size:14px;margin-bottom:14px;color:#555}
.cookie-banner .actions{display:flex;gap:10px;flex-wrap:wrap}
.cookie-banner .btn{padding:8px 18px;font-size:13px}

/* ============================================================
   PÁGINA 404
   ============================================================ */
.error-page{
  min-height:60vh;display:flex;flex-direction:column;
  align-items:center;justify-content:center;text-align:center;
  padding:60px 20px;
}
.error-page h1{font-size:96px;color:#b8860b;margin-bottom:10px}
.error-page h2{font-size:26px;margin-bottom:16px}
.error-page p{margin-bottom:30px;max-width:520px}

/* ============================================================
   RESPONSIVIDADE (Mobile First aplicado via breakpoints)
   ============================================================ */
@media (max-width: 991px){
  h1{font-size:32px}
  h2{font-size:24px}
  .hero h1{font-size:34px}
  .two-col{grid-template-columns:1fr;gap:30px}
  .footer-grid{grid-template-columns:1fr 1fr;gap:30px}

  .menu-toggle{display:flex}
  .main-nav{
    position:fixed;top:0;right:-100%;
    width:82%;max-width:340px;height:100vh;
    background:#fff;flex-direction:column;
    padding:80px 24px 40px;
    box-shadow:-4px 0 20px rgba(0,0,0,.15);
    transition:right .35s ease;overflow-y:auto;
    align-items:flex-start;
  }
  .main-nav.open{right:0}
  .main-menu{flex-direction:column;align-items:stretch;width:100%;gap:0}
  .main-menu > li{width:100%;border-bottom:1px solid #eee}
  .main-menu > li > a{padding:14px 4px;justify-content:space-between}
  .main-menu > li > a::after{display:none}
  .submenu{
    position:static;opacity:1;visibility:visible;transform:none;
    box-shadow:none;border:none;padding:0 0 6px 14px;
    max-height:0;overflow:hidden;transition:max-height .35s ease;
  }
  .has-submenu.open > .submenu{max-height:600px}
  .has-submenu > a .caret{transition:transform .3s ease}
  .has-submenu.open > a .caret{transform:rotate(180deg)}

  body.menu-open{overflow:hidden}
  .nav-backdrop{
    position:fixed;inset:0;background:rgba(0,0,0,.45);
    opacity:0;visibility:hidden;transition:all .3s ease;z-index:999;
  }
  .nav-backdrop.show{opacity:1;visibility:visible}
}

@media (max-width: 640px){
  .hero{min-height:440px;padding:60px 16px}
  .hero h1{font-size:28px}
  .section{padding:50px 0}
  .section-title h2{font-size:24px}
  .footer-grid{grid-template-columns:1fr;gap:30px}
  .page-header{padding:50px 16px 40px}
  .page-header h1{font-size:28px}
  .contact-form{padding:24px}
}

/* Utilidades */
.text-center{text-align:center}
.mt-30{margin-top:30px}
.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
