/*
Theme Name: seusitecmia
Theme URI: https://example.com/seusitecmia
Author: seusitecmia
Author URI: https://example.com
Description: Tema WordPress seusitecmia — dark mode, efeito seusitecmia, teal/cyan palette, glassmorphism e animações avançadas.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.5
Requires PHP: 8.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: seusitecmia
Tags: dark, one-column, two-columns, custom-menu, custom-logo, full-width-template, sticky-post, threaded-comments, responsive-layout
*/

/* ============================================================
   DESIGN TOKENS
   ============================================================ */
:root {
  /* Backgrounds */
  --bg-page-from:    #0b1620;
  --bg-page-to:      #0a1a2b;
  --bg-card:         #0e1a2a;
  --bg-panel:        #142033;
  --bg-header:       rgba(14, 26, 42, 0.85);

  /* Brand */
  --teal-500:        #14b8a6;
  --teal-300:        #5eead4;
  --cyan-400:        #22d3ee;

  /* Text */
  --text-primary:    #f1f5f9;  /* slate-100 */
  --text-secondary:  #cbd5e1;  /* slate-300 */
  --text-muted:      #94a3b8;  /* slate-400 */

  /* Borders */
  --border-subtle:   rgba(255,255,255,0.05);
  --border-teal:     rgba(20,184,166,0.3);
  --border-teal-mid: rgba(20,184,166,0.4);

  /* Glows */
  --glow-teal-sm:    0 0 20px rgba(20,184,166,0.3), 0 0 40px rgba(20,184,166,0.1);
  --glow-teal-lg:    0 0 30px rgba(20,184,166,0.4), 0 0 60px rgba(20,184,166,0.2), inset 0 1px 0 rgba(255,255,255,0.1);

  /* Radius */
  --radius-xl:  1rem;
  --radius-2xl: 1.25rem;
  --radius-3xl: 1.5rem;
  --radius-full: 9999px;

  /* Transitions */
  --ease-smooth: cubic-bezier(0.4, 0, 0.2, 1);
}

/* ============================================================
   RESET & BASE
   ============================================================ */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  background: linear-gradient(135deg, var(--bg-page-from), var(--bg-page-to));
  background-attachment: fixed;
  color: var(--text-primary);
  min-height: 100vh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img { max-width: 100%; height: auto; display: block; }
a  { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
button { cursor: pointer; font-family: inherit; border: none; background: none; }

/* ============================================================
   AMBIENT LIGHT EFFECTS
   ============================================================ */
.ambient-light {
  position: fixed;
  top: 20%;
  left: 10%;
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(20,184,166,0.1) 0%, transparent 70%);
  border-radius: 50%;
  filter: blur(40px);
  animation: ambientMove 8s ease-in-out infinite alternate;
  pointer-events: none;
  z-index: 0;
}
.ambient-light-2 {
  position: fixed;
  bottom: 20%;
  right: 10%;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(6,182,212,0.08) 0%, transparent 70%);
  border-radius: 50%;
  filter: blur(60px);
  animation: ambientMove2 10s ease-in-out infinite alternate;
  pointer-events: none;
  z-index: 0;
}
@keyframes ambientMove {
  0%,100% { transform: translate(0,0) scale(1); }
  50%      { transform: translate(100px,-50px) scale(1.1); }
}
@keyframes ambientMove2 {
  0%,100% { transform: translate(0,0) scale(1); }
  50%     { transform: translate(-80px,60px) scale(0.9); }
}

/* ============================================================
   CUSTOM CURSOR (desktop only)
   ============================================================ */
@media (min-width: 768px) {
  body { cursor: none; }
}
#cursor-ring, #cursor-dot { pointer-events: none; position: fixed; top:0; left:0; z-index: 9999; }

/* ============================================================
   GLOW EFFECTS
   ============================================================ */
.glow-teal          { box-shadow: var(--glow-teal-sm); }
.glow-teal-intense  { box-shadow: var(--glow-teal-lg); transition: all 0.3s var(--ease-smooth); }
.glow-teal-intense:hover {
  box-shadow: 0 0 40px rgba(20,184,166,0.6), 0 0 80px rgba(20,184,166,0.3), inset 0 1px 0 rgba(255,255,255,0.2);
  transform: translateY(-2px) scale(1.05);
}

.glow-card {
  box-shadow: 0 8px 32px rgba(0,0,0,0.3), 0 0 0 1px rgba(255,255,255,0.05);
  transition: all 0.4s var(--ease-smooth);
  transform-style: preserve-3d;
}
.glow-card:hover {
  transform: translateY(-8px) rotateX(2deg) rotateY(-2deg);
  box-shadow: 0 25px 80px rgba(0,0,0,0.4), 0 0 0 1px rgba(255,255,255,0.1), 0 0 60px rgba(20,184,166,0.2);
}

.glow-border {
  position: relative;
  border: 1px solid var(--border-teal);
  transition: all 0.3s var(--ease-smooth);
}
.glow-border::before {
  content: '';
  position: absolute;
  inset: 0;
  padding: 1px;
  background: linear-gradient(135deg, rgba(20,184,166,0.6), rgba(6,182,212,0.3), rgba(20,184,166,0.6));
  border-radius: inherit;
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask-composite: xor;
  -webkit-mask-composite: xor;
  opacity: 0;
  transition: opacity 0.3s ease;
}
.glow-border:hover              { border-color: rgba(20,184,166,0.6); box-shadow: 0 0 20px rgba(20,184,166,0.3); transform: translateY(-1px); }
.glow-border:hover::before      { opacity: 1; }

/* ============================================================
   HOVER UTILITIES
   ============================================================ */
.hover-lift  { transition: all 0.3s var(--ease-smooth); }
.hover-lift:hover { transform: translateY(-4px) scale(1.02); }

.hover-float { transition: all 0.4s var(--ease-smooth); }
.hover-float:hover { transform: translateY(-6px); filter: drop-shadow(0 10px 30px rgba(20,184,166,0.2)); }

.hover-glow  { transition: all 0.3s var(--ease-smooth); }
.hover-glow:hover { text-shadow: 0 0 25px rgba(20,184,166,0.6), 0 0 50px rgba(20,184,166,0.3); color: #99f6e4; }

.tag-hover {
  transition: all 0.3s var(--ease-smooth);
  cursor: pointer;
}
.tag-hover:hover {
  background: linear-gradient(135deg, rgba(20,184,166,0.2), rgba(6,182,212,0.1));
  border-color: rgba(20,184,166,0.6);
  transform: translateY(-2px) scale(1.05);
  box-shadow: 0 8px 25px rgba(20,184,166,0.2);
}

.button-hover {
  transition: all 0.3s var(--ease-smooth);
  position: relative;
  overflow: hidden;
}
.button-hover::before {
  content: '';
  position: absolute;
  top: 0; left: -100%;
  width: 100%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
  transition: left 0.5s;
}
.button-hover:hover::before { left: 100%; }
.button-hover:hover { transform: translateY(-2px) scale(1.05); }

.logo-hover { transition: all 0.4s var(--ease-smooth); }
.logo-hover:hover { transform: rotate(-5deg) scale(1.1); }
.logo-hover:hover .logo-icon { animation: pulse 0.6s ease-in-out; }

.interactive-text:hover {
  background: linear-gradient(135deg,#14b8a6,#06b6d4);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  transform: scale(1.02);
}

/* ============================================================
   BACKDROP / GLASS
   ============================================================ */
.backdrop-glow {
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
}

/* ============================================================
   ANIMATIONS
   ============================================================ */
.animate-glow   { animation: glow 2s ease-in-out infinite alternate; }
.animate-float  { animation: float 6s ease-in-out infinite; }
.animate-fade-in  { animation: fadeIn 1s var(--ease-smooth) forwards; opacity: 0; }
.animate-slide-up { animation: slideUp 0.8s var(--ease-smooth) forwards; opacity: 0; }
.animate-scale-in { animation: scaleIn 0.6s var(--ease-smooth) forwards; opacity: 0; }

@keyframes glow    { from { box-shadow: 0 0 20px rgba(20,184,166,0.3),0 0 40px rgba(20,184,166,0.1); } to { box-shadow: 0 0 30px rgba(20,184,166,0.5),0 0 60px rgba(20,184,166,0.2); } }
@keyframes float   { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
@keyframes fadeIn  { from { opacity:0; transform:translateY(20px); } to { opacity:1; transform:translateY(0); } }
@keyframes slideUp { from { opacity:0; transform:translateY(30px); } to { opacity:1; transform:translateY(0); } }
@keyframes scaleIn { from { opacity:0; transform:scale(0.95); } to { opacity:1; transform:scale(1); } }
@keyframes pulse   { 0%,100% { transform:scale(1); } 50% { transform:scale(1.1); } }

.delay-100 { animation-delay:.1s; }
.delay-200 { animation-delay:.2s; }
.delay-300 { animation-delay:.3s; }
.delay-400 { animation-delay:.4s; }
.delay-500 { animation-delay:.5s; }
.delay-600 { animation-delay:.6s; }

/* ============================================================
   TEXT UTILITIES
   ============================================================ */
.text-glow { text-shadow: 0 0 20px rgba(20,184,166,0.5); }

/* ============================================================
   HEADER / NAVIGATION
   ============================================================ */
#site-header {
  position: sticky;
  top: 0;
  z-index: 500;
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  background: #000;
  border-bottom: 1px solid rgba(20,184,166,0.15);
}

.header-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1.5rem;
  height: 96px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

/* WhatsApp Button — RIGHT */
.header-whatsapp {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1.25rem;
  border-radius: var(--radius-full);
  background: #25D366;
  color: #fff;
  font-size: 0.875rem;
  font-weight: 600;
  white-space: nowrap;
  transition: all 0.3s var(--ease-smooth);
  box-shadow: 0 0 20px rgba(37,211,102,0.3);
  flex-shrink: 0;
  order: 1;
}
.header-whatsapp:hover {
  background: #20ba5a;
  transform: translateY(-2px) scale(1.04);
  box-shadow: 0 0 30px rgba(37,211,102,0.5);
  color: #fff;
}
.header-whatsapp svg { width: 18px; height: 18px; }
.header-whatsapp-text { display: none; }
@media (min-width: 640px) { .header-whatsapp-text { display: inline; } }

/* Primary Navigation — center */
.header-nav {
  flex: 1;
  display: flex;
  justify-content: center;
}
.header-nav ul {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  flex-wrap: wrap;
  justify-content: center;
}
.header-nav ul li a {
  display: block;
  padding: 0.5rem 0.875rem;
  border-radius: var(--radius-full);
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-secondary);
  transition: all 0.3s var(--ease-smooth);
  white-space: nowrap;
}
.header-nav ul li a:hover,
.header-nav ul li.current-menu-item > a,
.header-nav ul li.current-menu-ancestor > a {
  color: #99f6e4;
  text-shadow: 0 0 10px rgba(20,184,166,0.5);
  background: rgba(20,184,166,0.08);
}

/* Dropdown */
.header-nav ul li { position: relative; }
.header-nav ul li ul {
  display: none;
  position: absolute;
  top: calc(100% + 0.5rem);
  left: 50%;
  transform: translateX(-50%);
  min-width: 200px;
  background: var(--bg-card);
  border: 1px solid var(--border-teal);
  border-radius: var(--radius-xl);
  padding: 0.5rem;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 20px 60px rgba(0,0,0,0.5), 0 0 30px rgba(20,184,166,0.1);
  z-index: 200;
  flex-direction: column;
  gap: 0;
}
.header-nav ul li:hover > ul { display: flex; }
.header-nav ul li ul li a {
  border-radius: 0.5rem;
  padding: 0.5rem 0.875rem;
  width: 100%;
}

/* Logo — LEFT */
.site-logo-wrap {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  order: -1;
}
.site-logo-wrap a { display: flex; align-items: center; gap: 0.75rem; }

/* Remove all background/border from logo container */
.logo-icon-wrap {
  background: none;
  padding: 0;
  border-radius: 0;
  box-shadow: none;
}
.logo-icon-inner {
  background: none;
  border-radius: 0;
  width: auto;
  height: auto;
  display: flex;
  align-items: center;
  justify-content: center;
}
.site-title-text {
  font-size: 1.125rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  text-shadow: 0 0 20px rgba(20,184,166,0.5);
  white-space: nowrap;
}
/* Custom logo: retangular 240×80, sem fundo */
.custom-logo {
  width: 240px;
  height: 80px;
  object-fit: contain;
  display: block;
}

/* ============================================================
   MOBILE MENU TOGGLE
   ============================================================ */
.menu-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 0.625rem;
  border: 1px solid var(--border-teal);
  background: rgba(20,184,166,0.08);
  color: var(--text-primary);
  transition: all 0.3s var(--ease-smooth);
}
.menu-toggle:hover { background: rgba(20,184,166,0.16); }
.menu-toggle svg   { width: 22px; height: 22px; }

@media (max-width: 900px) {
  .menu-toggle  { display: flex; }
  .header-nav   { display: none; }
  .header-nav.is-open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 72px;
    left: 0;
    right: 0;
    background: var(--bg-card);
    border-bottom: 1px solid var(--border-teal);
    padding: 1rem 1.5rem 1.5rem;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    z-index: 400;
  }
  .header-nav.is-open ul { flex-direction: column; align-items: flex-start; gap: 0; width: 100%; }
  .header-nav.is-open ul li { width: 100%; }
  .header-nav.is-open ul li a { width: 100%; padding: 0.75rem 1rem; }
  .header-nav.is-open ul li ul {
    position: static;
    transform: none;
    box-shadow: none;
    border: none;
    border-top: 1px solid var(--border-subtle);
    border-radius: 0;
    padding: 0 0 0 1rem;
    background: transparent;
    display: flex;
  }
  .header-inner { position: relative; }
  .site-title-text { display: none; }
}

/* ============================================================
   MAIN CONTENT
   ============================================================ */
#page-content {
  position: relative;
  z-index: 10;
  min-height: 60vh;
}

.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* ============================================================
   FOOTER
   ============================================================ */
#site-footer {
  position: relative;
  z-index: 10;
  border-top: 1px solid rgba(20,184,166,0.15);
  background: var(--bg-card);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
}

.footer-top {
  max-width: 1280px;
  margin: 0 auto;
  padding: 3rem 1.5rem 2rem;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 2.5rem;
  align-items: start;
}

/* Footer Logo — left */
.footer-brand { display: flex; flex-direction: column; gap: 1rem; }
.footer-brand a { display: inline-flex; align-items: center; gap: 0.75rem; }
.footer-tagline {
  font-size: 0.8rem;
  color: var(--text-muted);
  max-width: 200px;
  line-height: 1.5;
}

/* Footer Menus — center */
.footer-menus {
  display: flex;
  gap: 3rem;
  justify-content: center;
  flex-wrap: wrap;
}
.footer-menu-col h4 {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--teal-300);
  margin-bottom: 1rem;
  text-shadow: 0 0 10px rgba(20,184,166,0.4);
}
.footer-menu-col ul { display: flex; flex-direction: column; gap: 0.5rem; }
.footer-menu-col ul li a {
  font-size: 0.875rem;
  color: var(--text-muted);
  transition: all 0.3s var(--ease-smooth);
}
.footer-menu-col ul li a:hover {
  color: #99f6e4;
  text-shadow: 0 0 10px rgba(20,184,166,0.5);
  padding-left: 4px;
}

/* Footer Contact Channels — right */
.footer-contact { display: flex; flex-direction: column; gap: 1rem; }
.footer-contact h4 {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--teal-300);
  margin-bottom: 0.25rem;
  text-shadow: 0 0 10px rgba(20,184,166,0.4);
}
.contact-channel {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  font-size: 0.875rem;
  color: var(--text-muted);
  transition: all 0.3s var(--ease-smooth);
  white-space: nowrap;
}
.contact-channel:hover { color: #99f6e4; transform: translateX(3px); }
.contact-channel svg { width: 16px; height: 16px; flex-shrink: 0; color: var(--teal-300); }
.contact-channel-whatsapp { color: #4ade80; }
.contact-channel-whatsapp svg { color: #4ade80; }
.contact-channel-whatsapp:hover { color: #22c55e; }

/* Footer Bottom Bar */
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.06);
  max-width: 1280px;
  margin: 0 auto;
  padding: 1.25rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}
.footer-copy { font-size: 0.8rem; color: var(--text-muted); }
.footer-copy a { color: var(--teal-300); transition: color 0.2s; }
.footer-copy a:hover { color: #99f6e4; }

/* Footer Responsive */
@media (max-width: 900px) {
  .footer-top {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  .footer-menus { justify-content: flex-start; gap: 2rem; }
}
@media (max-width: 480px) {
  .footer-menus { flex-direction: column; gap: 1.5rem; }
  .footer-bottom { flex-direction: column; text-align: center; }
}

/* ============================================================
   WORDPRESS CORE FIXES
   ============================================================ */
.screen-reader-text {
  clip: rect(1px,1px,1px,1px);
  clip-path: inset(50%);
  height: 1px;
  overflow: hidden;
  position: absolute;
  white-space: nowrap;
  width: 1px;
}
.wp-block-image img { border-radius: var(--radius-xl); }
.alignwide  { margin-left: -2rem; margin-right: -2rem; }
.alignfull  { margin-left: calc(50% - 50vw); margin-right: calc(50% - 50vw); width: 100vw; }
.aligncenter { margin-left: auto; margin-right: auto; }

/* Gutenberg paragraph / headings */
.entry-content h1,
.entry-content h2,
.entry-content h3,
.entry-content h4,
.entry-content h5,
.entry-content h6 {
  font-weight: 600;
  letter-spacing: -0.02em;
  text-shadow: 0 0 20px rgba(20,184,166,0.3);
  margin-bottom: 0.75rem;
  margin-top: 2rem;
}
.entry-content h1 { font-size: clamp(2rem, 5vw, 3.5rem); }
.entry-content h2 { font-size: clamp(1.5rem, 3.5vw, 2.5rem); }
.entry-content h3 { font-size: clamp(1.25rem, 2.5vw, 1.75rem); }
.entry-content p  { color: var(--text-secondary); line-height: 1.75; margin-bottom: 1.25rem; }
.entry-content a  { color: var(--teal-300); text-decoration: underline; text-underline-offset: 3px; }
.entry-content a:hover { color: #99f6e4; }
.entry-content ul, .entry-content ol {
  color: var(--text-secondary);
  padding-left: 1.5rem;
  line-height: 1.8;
  margin-bottom: 1.25rem;
}
.entry-content ul { list-style: disc; }
.entry-content ol { list-style: decimal; }
.entry-content blockquote {
  border-left: 3px solid var(--teal-500);
  padding: 1rem 1.5rem;
  background: rgba(20,184,166,0.06);
  border-radius: 0 var(--radius-xl) var(--radius-xl) 0;
  color: var(--text-secondary);
  font-style: italic;
  margin: 1.5rem 0;
}
.entry-content pre,
.entry-content code {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 0.5rem;
  font-size: 0.875rem;
  color: var(--teal-300);
}
.entry-content pre  { padding: 1.25rem; overflow-x: auto; }
.entry-content code { padding: 0.15em 0.4em; }
.entry-content hr {
  border: none;
  border-top: 1px solid rgba(20,184,166,0.2);
  margin: 2rem 0;
}

/* ============================================================
   SINGLE POST / PAGE LAYOUT
   ============================================================ */
.site-main {
  max-width: 1280px;
  margin: 0 auto;
  padding: 3rem 1.5rem;
}

.post-entry .entry-header { margin-bottom: 2rem; }
.post-entry .entry-title {
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 600;
  letter-spacing: -0.03em;
  text-shadow: 0 0 30px rgba(20,184,166,0.4);
  margin-bottom: 1rem;
}
.post-meta {
  display: flex;
  gap: 1rem;
  align-items: center;
  flex-wrap: wrap;
  font-size: 0.8rem;
  color: var(--text-muted);
}
.post-meta a { color: var(--teal-300); }
.post-meta a:hover { color: #99f6e4; }

/* Featured Image */
.post-thumbnail {
  border-radius: var(--radius-2xl);
  overflow: hidden;
  margin-bottom: 2rem;
  box-shadow: 0 20px 60px rgba(0,0,0,0.4);
}
.post-thumbnail img { width: 100%; object-fit: cover; }

/* ============================================================
   CARD COMPONENTS
   ============================================================ */
.card {
  background: var(--bg-card);
  border-radius: var(--radius-3xl);
  overflow: hidden;
}
.card-panel {
  background: var(--bg-panel);
  border-radius: var(--radius-2xl);
  padding: 1.5rem;
  border: 1px solid var(--border-subtle);
}

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  border-radius: var(--radius-full);
  font-weight: 600;
  font-size: 0.9rem;
  transition: all 0.3s var(--ease-smooth);
  cursor: pointer;
  white-space: nowrap;
}
.btn-primary {
  padding: 0.75rem 1.75rem;
  background: var(--teal-500);
  color: #fff;
  box-shadow: var(--glow-teal-sm);
}
.btn-primary:hover {
  background: #0d9488;
  transform: translateY(-2px) scale(1.05);
  box-shadow: 0 0 30px rgba(20,184,166,0.5), 0 0 60px rgba(20,184,166,0.2);
  color: #fff;
}
.btn-secondary {
  padding: 0.75rem 1.75rem;
  border: 1px solid rgba(100,116,139,0.6);
  color: var(--text-secondary);
}
.btn-secondary:hover {
  background: rgba(30,41,59,0.6);
  border-color: rgba(20,184,166,0.4);
  color: var(--text-primary);
}

/* ============================================================
   BADGES / TAGS
   ============================================================ */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  padding: 0.25rem 0.75rem;
  border-radius: var(--radius-full);
  font-size: 0.8rem;
  font-weight: 500;
}
.badge-teal {
  background: rgba(20,184,166,0.2);
  color: var(--teal-300);
  border: 1px solid rgba(20,184,166,0.4);
}
.badge-slate {
  background: rgba(30,41,59,0.6);
  color: var(--text-secondary);
  border: 1px solid rgba(100,116,139,0.5);
}

/* ============================================================
   ICON CONTAINER
   ============================================================ */
.icon-wrap {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-xl);
  background: rgba(20,184,166,0.2);
  border: 1px solid rgba(20,184,166,0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.icon-wrap svg, .icon-wrap i { width: 20px; height: 20px; color: var(--teal-300); }

/* ============================================================
   SEARCH FORM
   ============================================================ */
.search-form {
  display: flex;
  gap: 0.5rem;
}
.search-form input[type="search"] {
  flex: 1;
  padding: 0.625rem 1rem;
  border-radius: var(--radius-full);
  border: 1px solid var(--border-teal);
  background: var(--bg-panel);
  color: var(--text-primary);
  font-size: 0.9rem;
  outline: none;
  transition: border-color 0.3s;
}
.search-form input[type="search"]:focus { border-color: rgba(20,184,166,0.6); box-shadow: 0 0 15px rgba(20,184,166,0.2); }
.search-form button { background: var(--teal-500); color: #fff; padding: 0.625rem 1.25rem; border-radius: var(--radius-full); }
.search-form button:hover { background: #0d9488; }

/* ============================================================
   COMMENTS
   ============================================================ */
.comments-area { margin-top: 3rem; }
.comments-title, .comment-reply-title {
  font-size: 1.5rem;
  font-weight: 600;
  text-shadow: 0 0 20px rgba(20,184,166,0.3);
  margin-bottom: 1.5rem;
}
.comment-list { display: flex; flex-direction: column; gap: 1.5rem; }
.comment-body {
  background: var(--bg-panel);
  border-radius: var(--radius-2xl);
  padding: 1.5rem;
  border: 1px solid var(--border-subtle);
}
.comment-meta { font-size: 0.8rem; color: var(--text-muted); margin-bottom: 0.75rem; }
.comment-author { font-weight: 600; color: var(--teal-300); }
.comment-content p { color: var(--text-secondary); line-height: 1.7; }
.comment-reply-link {
  font-size: 0.8rem;
  color: var(--teal-300);
  display: inline-block;
  margin-top: 0.75rem;
  transition: color 0.2s;
}
.comment-reply-link:hover { color: #99f6e4; }

.comment-form label { display: block; font-size: 0.85rem; color: var(--text-muted); margin-bottom: 0.375rem; }
.comment-form input,
.comment-form textarea {
  width: 100%;
  padding: 0.625rem 1rem;
  background: var(--bg-panel);
  border: 1px solid var(--border-teal);
  border-radius: var(--radius-xl);
  color: var(--text-primary);
  font-size: 0.9rem;
  font-family: inherit;
  outline: none;
  transition: border-color 0.3s;
  margin-bottom: 1rem;
}
.comment-form input:focus,
.comment-form textarea:focus { border-color: rgba(20,184,166,0.6); box-shadow: 0 0 15px rgba(20,184,166,0.15); }
.comment-form textarea { min-height: 120px; resize: vertical; }
.comment-form .submit {
  padding: 0.75rem 2rem;
  background: var(--teal-500);
  color: #fff;
  border-radius: var(--radius-full);
  font-weight: 600;
  box-shadow: var(--glow-teal-sm);
  transition: all 0.3s var(--ease-smooth);
}
.comment-form .submit:hover { background: #0d9488; transform: translateY(-2px); }

/* ============================================================
   PAGINATION
   ============================================================ */
.pagination, .nav-links {
  display: flex;
  gap: 0.5rem;
  align-items: center;
  justify-content: center;
  margin: 2.5rem 0;
  flex-wrap: wrap;
}
.pagination .page-numbers,
.nav-links a, .nav-links span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  padding: 0 0.75rem;
  border-radius: var(--radius-xl);
  border: 1px solid var(--border-teal);
  background: var(--bg-panel);
  color: var(--text-muted);
  font-size: 0.9rem;
  transition: all 0.3s var(--ease-smooth);
}
.pagination .page-numbers:hover,
.nav-links a:hover { background: rgba(20,184,166,0.15); border-color: rgba(20,184,166,0.6); color: var(--teal-300); }
.pagination .page-numbers.current { background: var(--teal-500); border-color: transparent; color: #fff; box-shadow: var(--glow-teal-sm); }

/* ============================================================
   WIDGETS
   ============================================================ */
.widget { margin-bottom: 2rem; }
.widget-title {
  font-size: 0.875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--teal-300);
  margin-bottom: 1rem;
  text-shadow: 0 0 10px rgba(20,184,166,0.4);
}
.widget ul { display: flex; flex-direction: column; gap: 0.5rem; }
.widget ul li a { font-size: 0.875rem; color: var(--text-muted); transition: color 0.2s; }
.widget ul li a:hover { color: #99f6e4; }

/* ============================================================
   404 / NO RESULTS
   ============================================================ */
.error-404, .no-results {
  text-align: center;
  padding: 4rem 1.5rem;
}
.error-404 h1 {
  font-size: clamp(4rem, 12vw, 8rem);
  font-weight: 700;
  background: linear-gradient(135deg, var(--teal-500), var(--cyan-400));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
  text-shadow: none;
}
.error-404 p { color: var(--text-secondary); margin: 1rem 0 2rem; font-size: 1.1rem; }

/* ============================================================
   BLOG LAYOUT — grid 2×3 + sidebar direita
   ============================================================ */

/* Lê 6 posts por página — adicionar no functions.php via pre_get_posts */

.blog-main {
  padding: 3rem 1.5rem;
  max-width: 1280px;
  margin: 0 auto;
}

.blog-layout {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 2rem;
  align-items: start;
}

/* ---- Posts section ---- */
.blog-section-header {
  margin-bottom: 2rem;
}
.blog-section-header h1 {
  font-size: clamp(1.5rem, 3vw, 2.25rem);
  font-weight: 600;
  letter-spacing: -0.02em;
}

/* Grid 2 colunas × 3 linhas */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
}

/* ---- Blog card ---- */
.blog-card {
  background: var(--bg-card);
  border-radius: var(--radius-2xl);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.blog-card-inner {
  display: flex;
  flex-direction: column;
  height: 100%;
}
.blog-card-thumb {
  overflow: hidden;
  border-radius: var(--radius-2xl) var(--radius-2xl) 0 0;
  flex-shrink: 0;
}
.blog-card-img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  display: block;
  transition: transform 0.6s var(--ease-smooth), filter 0.6s var(--ease-smooth);
}
.blog-card-thumb:hover .blog-card-img {
  transform: scale(1.08) rotate(0.5deg);
  filter: brightness(1.1);
}
.blog-card-body {
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: .6rem;
  flex: 1;
  background: linear-gradient(135deg, rgba(20,184,166,0.04), transparent);
}
.blog-card-meta {
  display: flex;
  align-items: center;
  gap: .5rem;
  flex-wrap: wrap;
}
.blog-card-date {
  font-size: .72rem;
  color: var(--text-muted);
}
.blog-card-title {
  font-size: .95rem;
  font-weight: 600;
  line-height: 1.4;
  letter-spacing: -0.01em;
}
.blog-card-title a {
  color: var(--text-primary);
  transition: all .3s var(--ease-smooth);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.blog-card-excerpt {
  font-size: .82rem;
  color: var(--text-muted);
  line-height: 1.6;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  flex: 1;
}
.blog-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .5rem;
  margin-top: auto;
  padding-top: .75rem;
  border-top: 1px solid var(--border-subtle);
}
.blog-card-author {
  display: flex;
  align-items: center;
  gap: .4rem;
  font-size: .75rem;
  color: var(--text-muted);
  min-width: 0;
  overflow: hidden;
}
.blog-card-author span {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.blog-read-more {
  flex-shrink: 0;
}

/* ---- Paginação ---- */
.blog-pagination {
  margin-top: 2rem;
}
.blog-pagination .nav-links {
  display: flex;
  gap: .5rem;
  align-items: center;
  flex-wrap: wrap;
}
.blog-pagination .page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 38px;
  height: 38px;
  padding: 0 .625rem;
  border-radius: var(--radius-xl);
  border: 1px solid var(--border-teal);
  background: var(--bg-panel);
  color: var(--text-muted);
  font-size: .85rem;
  transition: all .3s var(--ease-smooth);
}
.blog-pagination .page-numbers:hover { background: rgba(20,184,166,.15); color: var(--teal-300); }
.blog-pagination .page-numbers.current { background: var(--teal-500); border-color: transparent; color:#fff; box-shadow: var(--glow-teal-sm); }

/* ============================================================
   SIDEBAR
   ============================================================ */
.blog-sidebar {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  position: sticky;
  top: 108px; /* below fixed header (96px) + gap */
}

.sidebar-widget {
  background: var(--bg-card);
  border-radius: var(--radius-2xl);
  padding: 1.5rem;
  border: 1px solid var(--border-subtle);
}

.sidebar-widget-title {
  display: flex;
  align-items: center;
  gap: .6rem;
  font-size: .8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--teal-300);
  margin-bottom: 1.1rem;
  text-shadow: 0 0 10px rgba(20,184,166,.4);
}
.sidebar-widget-icon {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  color: var(--teal-300);
}

/* Search form */
.blog-search-form { width: 100%; }
.blog-search-wrap {
  display: flex;
  gap: .5rem;
  align-items: center;
}
.blog-search-input {
  flex: 1;
  min-width: 0;
  padding: .625rem .875rem;
  border-radius: var(--radius-full);
  border: 1px solid var(--border-teal);
  background: var(--bg-panel);
  color: var(--text-primary);
  font-size: .875rem;
  outline: none;
  transition: border-color .3s, box-shadow .3s;
  font-family: inherit;
}
.blog-search-input::placeholder { color: var(--text-muted); }
.blog-search-input:focus {
  border-color: rgba(20,184,166,.7);
  box-shadow: 0 0 15px rgba(20,184,166,.2);
}
.blog-search-btn {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  border-radius: var(--radius-full);
  background: var(--teal-500);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  cursor: pointer;
  transition: all .3s var(--ease-smooth);
}
.blog-search-btn:hover { background: #0d9488; }

/* Categories */
.sidebar-categories {
  display: flex;
  flex-direction: column;
  gap: .35rem;
}
.sidebar-cat-link {
  display: flex;
  align-items: center;
  gap: .6rem;
  padding: .55rem .875rem;
  border-radius: var(--radius-xl);
  border: 1px solid transparent;
  font-size: .85rem;
  color: var(--text-secondary);
  transition: all .3s var(--ease-smooth);
  background: var(--bg-panel);
  text-decoration: none;
}
.sidebar-cat-link:hover,
.sidebar-cat-link--active {
  background: rgba(20,184,166,.12);
  border-color: rgba(20,184,166,.4);
  color: var(--teal-300);
  transform: translateX(3px);
}
.sidebar-cat-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--teal-300);
  flex-shrink: 0;
  opacity: .5;
  transition: opacity .3s, box-shadow .3s;
}
.sidebar-cat-link:hover .sidebar-cat-dot,
.sidebar-cat-link--active .sidebar-cat-dot {
  opacity: 1;
  box-shadow: 0 0 8px rgba(20,184,166,.6);
}
.sidebar-cat-name { flex: 1; }
.sidebar-cat-count {
  font-size: .72rem;
  background: rgba(20,184,166,.15);
  color: var(--teal-300);
  border-radius: var(--radius-full);
  padding: .1rem .45rem;
  font-weight: 600;
  min-width: 22px;
  text-align: center;
}
.sidebar-empty {
  font-size: .8rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* Recent posts */
.sidebar-recent-posts {
  display: flex;
  flex-direction: column;
  gap: .875rem;
}
.sidebar-recent-item {
  display: flex;
  gap: .75rem;
  align-items: center;
  padding: .5rem;
  border-radius: var(--radius-xl);
  transition: all .3s var(--ease-smooth);
}
.sidebar-recent-item:hover { background: rgba(20,184,166,.06); }
.sidebar-recent-thumb img { border-radius: .625rem; }
.sidebar-recent-info {
  display: flex;
  flex-direction: column;
  gap: .2rem;
  min-width: 0;
}
.sidebar-recent-title {
  font-size: .82rem;
  font-weight: 600;
  color: var(--text-primary);
  line-height: 1.35;
  transition: color .2s;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.sidebar-recent-title:hover { color: #99f6e4; }
.sidebar-recent-date {
  font-size: .72rem;
  color: var(--text-muted);
}

/* ============================================================
   BLOG RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
  .blog-layout {
    grid-template-columns: 1fr 260px;
  }
}

@media (max-width: 768px) {
  .blog-layout {
    grid-template-columns: 1fr;
  }
  .blog-sidebar {
    position: static;
    order: -1; /* sidebar aparece acima no mobile */
  }
  .blog-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 480px) {
  .blog-grid {
    grid-template-columns: 1fr;
  }
  .blog-main {
    padding: 1.5rem 1rem;
  }
}

/* ============================================================
   DROPDOWN — submenu WordPress (.sub-menu / .children)
   ============================================================ */

/* Item pai com filhos: mostra seta */
.header-nav ul li.menu-item-has-children > a {
  display: flex;
  align-items: center;
  gap: 0.35rem;
}
.header-nav ul li.menu-item-has-children > a::after {
  content: '';
  display: inline-block;
  width: 0;
  height: 0;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-top: 5px solid currentColor;
  opacity: 0.6;
  transition: transform 0.25s var(--ease), opacity 0.25s;
  flex-shrink: 0;
}
.header-nav ul li.menu-item-has-children:hover > a::after,
.header-nav ul li.menu-item-has-children.dropdown-open > a::after {
  transform: rotate(180deg);
  opacity: 1;
}

/* Submenu: cobre tanto .sub-menu (WP padrão) quanto ul genérico */
.header-nav ul li .sub-menu,
.header-nav ul li ul {
  display: none;
  position: absolute;
  top: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%);
  min-width: 220px;
  background: #0e1a2a;
  border: 1px solid rgba(20,184,166,0.35);
  border-radius: 0.875rem;
  padding: 0.5rem;
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  box-shadow: 0 20px 60px rgba(0,0,0,0.6), 0 0 30px rgba(20,184,166,0.12);
  z-index: 600;
  flex-direction: column;
  gap: 0.125rem;
  /* Animação de entrada */
  opacity: 0;
  pointer-events: none;
  transform: translateX(-50%) translateY(6px);
  transition: opacity 0.22s var(--ease), transform 0.22s var(--ease);
}

/* Abertura por hover (desktop) */
.header-nav ul li:hover > .sub-menu,
.header-nav ul li:hover > ul,
/* Abertura por classe JS (mobile / clique) */
.header-nav ul li.dropdown-open > .sub-menu,
.header-nav ul li.dropdown-open > ul {
  display: flex;
  opacity: 1;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}

/* Links dentro do submenu */
.header-nav ul li .sub-menu li,
.header-nav ul li ul li {
  width: 100%;
  position: static;
}
.header-nav ul li .sub-menu li a,
.header-nav ul li ul li a {
  display: block;
  width: 100%;
  padding: 0.6rem 0.875rem;
  border-radius: 0.5rem;
  font-size: 0.875rem;
  color: #cbd5e1;
  white-space: nowrap;
  transition: background 0.2s, color 0.2s;
}
.header-nav ul li .sub-menu li a:hover,
.header-nav ul li ul li a:hover {
  background: rgba(20,184,166,0.12);
  color: #5eead4;
  text-shadow: none;
}
/* Item ativo */
.header-nav ul li .sub-menu li.current-menu-item > a,
.header-nav ul li ul li.current-menu-item > a {
  background: rgba(20,184,166,0.15);
  color: #5eead4;
}

/* Garante que submenu de 2º nível não sobreponha */
.header-nav ul li .sub-menu li { position: relative; }
.header-nav ul li .sub-menu li .sub-menu {
  top: 0;
  left: calc(100% + 4px);
  transform: translateY(0);
}
.header-nav ul li .sub-menu li:hover > .sub-menu { display: flex; opacity: 1; pointer-events: auto; transform: translateY(0); }

/* Mobile: dropdown como lista vertical */
@media (max-width: 900px) {
  .header-nav.is-open ul li .sub-menu,
  .header-nav.is-open ul li ul {
    position: static;
    transform: none !important;
    box-shadow: none;
    border: none;
    border-top: 1px solid rgba(20,184,166,0.15);
    border-radius: 0;
    background: transparent;
    padding: 0.25rem 0 0.25rem 1rem;
    opacity: 1;
    pointer-events: auto;
    transition: none;
  }
  .header-nav.is-open ul li.dropdown-open > .sub-menu,
  .header-nav.is-open ul li.dropdown-open > ul { display: flex; }
  .header-nav.is-open ul li .sub-menu { display: none; }
  .header-nav.is-open ul li:hover > .sub-menu { display: none; } /* hover off on mobile */
}
