/* ============================================
   VARIÁVEIS E RESET
   ============================================ */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  --bg-dark:        #0b132b;
  --bg-card:        #131d3a;
  --bg-card-hover:  #1a2744;
  --primary:        #ff6b00;
  --primary-hover:  #e65c00;
  --text-light:     #ffffff;
  --text-muted:     #d1d5db;
  --border-color:   rgba(255,255,255,0.08);
  --shadow:         0 8px 32px rgba(0,0,0,0.3);
  --shadow-hover:   0 16px 48px rgba(255,107,0,0.25);
  --radius:         16px;
  --radius-sm:      10px;
  --transition:     all 0.3s ease;
}

body {
  font-family: 'Roboto', sans-serif;
  background-color: var(--bg-dark);
  color: var(--text-light);
  line-height: 1.6;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 { font-family: 'Montserrat', sans-serif; line-height: 1.2; }
a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; }
ul { list-style: none; }

.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }

/* ============================================
   HEADER / NAVBAR
   ============================================ */
.navbar {
  position: fixed; top: 0; left: 0; width: 100%; z-index: 1000;
  background: rgba(11, 19, 43, 0.95);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-color);
}

.navbar .container { display: flex; align-items: center; justify-content: space-between; height: 72px; }

.logo { display: flex; align-items: center; gap: 10px; font-family: 'Montserrat', sans-serif; font-weight: 900; font-size: 1.5rem; color: var(--text-light); cursor: pointer; }
.logo i { color: var(--primary); font-size: 1.6rem; }
.logo span { color: var(--primary); }

.nav-links { display: flex; align-items: center; gap: 28px; }
.nav-links a { font-weight: 500; font-size: 0.95rem; color: var(--text-muted); transition: var(--transition); }
.nav-links a:hover { color: var(--primary); }

.nav-search { display: flex; align-items: center; background: var(--bg-card); border-radius: 50px; padding: 8px 16px; border: 1px solid var(--border-color); }
.nav-search input { background: transparent; border: none; color: white; outline: none; font-size: 0.9rem; width: 150px; }
.nav-search input::placeholder { color: var(--text-muted); }
.nav-search i { color: var(--text-muted); }

.nav-cta { background: var(--primary); color: var(--text-light) !important; padding: 10px 24px; border-radius: 50px; font-weight: 700; transition: var(--transition); }
.nav-cta:hover { background: var(--primary-hover); transform: translateY(-2px); box-shadow: 0 4px 20px rgba(255,107,0,0.4); }

.hamburger { display: none; flex-direction: column; gap: 5px; cursor: pointer; background: none; border: none; }
.hamburger span { width: 28px; height: 3px; background: var(--text-light); border-radius: 3px; }

/* ============================================
   HERO SECTION
   ============================================ */
.hero { min-height: 100vh; display: flex; align-items: center; padding-top: 100px; }
.hero .container { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }

.hero-content h1 { font-size: clamp(2.5rem, 5vw, 4rem); font-weight: 900; margin-bottom: 24px; }
.hero-content p { font-size: 1.15rem; color: var(--text-muted); margin-bottom: 40px; max-width: 500px; line-height: 1.7; }

.btn { display: inline-flex; align-items: center; gap: 10px; padding: 16px 36px; border-radius: 50px; font-family: 'Montserrat', sans-serif; font-weight: 700; cursor: pointer; transition: var(--transition); border: none; }
.btn-primary { background: var(--primary); color: white; }
.btn-primary:hover { background: var(--primary-hover); transform: translateY(-3px); box-shadow: 0 8px 32px rgba(255,107,0,0.5); }

.hero-image { display: flex; justify-content: center; position: relative; }
.hero-image img { max-width: 100%; border-radius: var(--radius); filter: drop-shadow(0 20px 40px rgba(0,0,0,0.5)); }

/* ============================================
   LAYOUT PRINCIPAL COM SIDEBAR
   ============================================ */
.main-layout { display: grid; grid-template-columns: 1fr 300px; gap: 40px; padding: 80px 0; }

.adsense-placeholder { background: var(--bg-card); border: 1px dashed var(--border-color); text-align: center; padding: 40px 20px; border-radius: var(--radius); color: var(--text-muted); font-size: 0.9rem; margin-bottom: 30px; }

/* ============================================
   CARDS DE ARTIGOS E PRODUTOS
   ============================================ */
.section-title h2 { font-size: 2rem; margin-bottom: 10px; }
.section-title p { color: var(--text-muted); margin-bottom: 30px; }

.articles-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 24px; margin-bottom: 50px; }

.article-card { background: var(--bg-card); border-radius: var(--radius); overflow: hidden; transition: var(--transition); border: 1px solid var(--border-color); }
.article-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-hover); border-color: rgba(255,107,0,0.3); }
.article-image { height: 180px; background: #1a2744; display: flex; align-items: center; justify-content: center; }
.article-image i { font-size: 3rem; color: var(--primary); opacity: 0.5; }
.article-content { padding: 20px; }
.article-tag { background: rgba(255,107,0,0.1); color: var(--primary); padding: 4px 12px; border-radius: 50px; font-size: 0.75rem; font-weight: bold; display: inline-block; margin-bottom: 10px; }
.article-content h3 { font-size: 1.1rem; margin-bottom: 10px; }
.article-content p { font-size: 0.9rem; color: var(--text-muted); margin-bottom: 15px; }
.article-link { color: var(--primary); font-weight: bold; font-size: 0.9rem; display: flex; align-items: center; gap: 5px; }

/* ============================================
   SIDEBAR
   ============================================ */
.sidebar-widget { background: var(--bg-card); padding: 24px; border-radius: var(--radius); border: 1px solid var(--border-color); margin-bottom: 30px; }
.sidebar-widget h3 { font-size: 1.2rem; margin-bottom: 20px; border-bottom: 2px solid var(--primary); padding-bottom: 10px; display: inline-block; }

.search-form { display: flex; background: var(--bg-dark); border-radius: var(--radius-sm); border: 1px solid var(--border-color); }
.search-form input { flex: 1; background: transparent; border: none; padding: 12px; color: white; outline: none; }
.search-form button { background: var(--primary); color: white; border: none; padding: 0 16px; border-radius: 0 var(--radius-sm) var(--radius-sm) 0; cursor: pointer; }

.recent-posts li { margin-bottom: 15px; }
.recent-posts a { font-size: 0.9rem; color: var(--text-muted); transition: var(--transition); }
.recent-posts a:hover { color: var(--primary); }

/* ============================================
   PÁGINAS INSTITUCIONAIS
   ============================================ */
.page-content { padding: 120px 0 80px; max-width: 800px; margin: 0 auto; min-height: 80vh; }
.page-content h1 { font-size: 2.5rem; margin-bottom: 30px; color: var(--primary); }
.page-content h2 { font-size: 1.5rem; margin: 30px 0 15px; color: white; }
.page-content p, .page-content li { color: var(--text-muted); margin-bottom: 15px; font-size: 1.05rem; }
.page-content ul { padding-left: 20px; list-style-type: disc; }

.contact-form { display: flex; flex-direction: column; gap: 15px; }
.contact-form input, .contact-form textarea { width: 100%; padding: 15px; background: var(--bg-card); border: 1px solid var(--border-color); border-radius: var(--radius-sm); color: white; outline: none; }
.contact-form input:focus, .contact-form textarea:focus { border-color: var(--primary); }

/* ============================================
   FOOTER
   ============================================ */
.footer { background: #060d20; padding: 60px 0 20px; border-top: 1px solid var(--border-color); }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 40px; margin-bottom: 40px; }
.footer h4 { font-size: 1.1rem; margin-bottom: 20px; color: white; }
.footer p { color: var(--text-muted); font-size: 0.9rem; margin-bottom: 15px; }
.footer-links li { margin-bottom: 10px; }
.footer-links a { color: var(--text-muted); font-size: 0.9rem; transition: var(--transition); }
.footer-links a:hover { color: var(--primary); }

.footer-social { display: flex; gap: 15px; margin-top: 20px; }
.footer-social a { width: 40px; height: 40px; background: rgba(255,255,255,0.05); border-radius: 50%; display: flex; align-items: center; justify-content: center; color: white; transition: var(--transition); }
.footer-social a:hover { background: var(--primary); transform: translateY(-3px); }

.footer-bottom { text-align: center; padding-top: 20px; border-top: 1px solid var(--border-color); color: var(--text-muted); font-size: 0.85rem; }

/* ============================================
   RESPONSIVO
   ============================================ */
@media (max-width: 992px) {
  .main-layout { grid-template-columns: 1fr; }
  .hero .container { grid-template-columns: 1fr; text-align: center; }
  .hero-content p { margin: 0 auto 40px; }
  .nav-search { display: none; }
}

@media (max-width: 768px) {
  .nav-links { display: none; position: fixed; top: 72px; left: 0; width: 100%; background: var(--bg-dark); flex-direction: column; padding: 20px; border-bottom: 1px solid var(--border-color); }
  .nav-links.active { display: flex; }
  .hamburger { display: flex; }
  .footer-grid { grid-template-columns: 1fr; text-align: center; }
  .footer-social { justify-content: center; }
}
/* ============================================
   CONTEÚDO DINÂMICO DO PAINEL ADMINISTRATIVO
   ============================================ */
.dynamic-products { margin: 45px 0 35px; }
.products-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 24px; }
.product-card { overflow: hidden; display: flex; flex-direction: column; background: var(--bg-card); border: 1px solid var(--border-color); border-radius: var(--radius); transition: var(--transition); }
.product-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-hover); border-color: rgba(255,107,0,.3); }
.product-card > img { width: 100%; height: 190px; object-fit: contain; padding: 14px; background: #fff; }
.product-card-content { display: flex; flex: 1; flex-direction: column; align-items: flex-start; padding: 20px; }
.product-card-content h3 { margin: 0 0 10px; font-size: 1.1rem; }
.product-card-content p { margin: 0 0 15px; color: var(--text-muted); font-size: .9rem; }
.product-price { margin-top: auto; margin-bottom: 14px; color: var(--primary); font-family: 'Montserrat', sans-serif; font-size: 1.1rem; }
.product-button { margin-top: auto; padding: 11px 20px; font-size: .85rem; }
.article-card[hidden], .product-card[hidden] { display: none !important; }
