/*
Theme Name: Santos Publicações
Theme URI: https://www.santospublicacoes.com.br
Author: Santos Publicações
Author URI: https://www.santospublicacoes.com.br
Description: Tema WordPress profissional inspirado no site da Santos Publicações — 40 anos de Editorial Médico e Odontológico. Design limpo, moderno e responsivo com esquema de cores verde e escuro.
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: santos-publicacoes
Tags: blog, editorial, medical, dental, custom-menu, featured-images, translation-ready
Requires at least: 5.0
Requires PHP: 7.4
Tested up to: 6.5
*/

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

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

body {
  font-family: 'Manrope', 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  color: #111111;
  background-color: #f7f7f7;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a {
  color: #111111;
  text-decoration: none;
  transition: color 0.3s ease;
}

a:hover {
  color: #0BD49E;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

ul, ol {
  list-style: none;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ===== TOP BAR ===== */
.top-bar {
  background-color: #0BD49E;
  color: #ffffff;
  text-align: center;
  padding: 8px 20px;
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.3px;
}

.top-bar a {
  color: #ffffff;
  margin: 0 10px;
  font-size: 1rem;
}

.top-bar a:hover {
  opacity: 0.8;
}

.top-bar .social-icons {
  float: left;
}

.top-bar .top-bar-text {
  display: inline-block;
}

/* ===== HEADER ===== */
.site-header {
  background-color: #1A1A1A;
  padding: 15px 0;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 15px;
}

.site-logo img {
  max-height: 60px;
  width: auto;
}

.site-logo .logo-text {
  color: #ffffff;
  font-size: 1.6rem;
  font-weight: 700;
  letter-spacing: 1px;
}

.site-logo .logo-text span.green {
  color: #0BD49E;
}

.site-logo .logo-text span.orange {
  color: #FF8C00;
}

.site-logo .logo-text span.blue {
  color: #1089FF;
}

.header-search {
  flex: 1;
  max-width: 450px;
  display: flex;
  margin: 0 20px;
}

.header-search input {
  flex: 1;
  padding: 10px 16px;
  border: none;
  border-radius: 25px 0 0 25px;
  font-size: 0.9rem;
  outline: none;
  background: #fefefe;
}

.header-search button {
  background-color: #3ADB76;
  border: none;
  padding: 10px 18px;
  border-radius: 0 25px 25px 0;
  cursor: pointer;
  color: #fff;
  font-size: 1rem;
  transition: background 0.3s;
}

.header-search button:hover {
  background-color: #0BD49E;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 20px;
}

.header-actions a {
  color: #ffffff;
  font-size: 0.85rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.header-actions a:hover {
  color: #0BD49E;
}

.header-actions .btn-get-in-touch {
  background-color: #0BD49E;
  color: #ffffff;
  padding: 10px 22px;
  border-radius: 25px;
  font-weight: 600;
  font-size: 0.9rem;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.header-actions .btn-get-in-touch:hover {
  background-color: #09b888;
  color: #ffffff;
}

/* ===== MAIN NAVIGATION ===== */
.main-navigation {
  background-color: #1A1A1A;
  border-top: 1px solid #333;
}

.main-navigation .container {
  display: flex;
  justify-content: center;
}

.main-navigation ul {
  display: flex;
  align-items: center;
  gap: 0;
}

.main-navigation ul li {
  position: relative;
}

.main-navigation ul li a {
  color: #ffffff;
  padding: 14px 24px;
  display: block;
  font-size: 0.95rem;
  font-weight: 500;
  transition: all 0.3s;
  letter-spacing: 0.3px;
}

.main-navigation ul li a:hover,
.main-navigation ul li.current-menu-item a,
.main-navigation ul li.current_page_item a {
  color: #0BD49E;
  background-color: rgba(11, 212, 158, 0.08);
}

/* Dropdown */
.main-navigation ul li ul.sub-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background-color: #1A1A1A;
  min-width: 220px;
  z-index: 1000;
  flex-direction: column;
  box-shadow: 0 4px 12px rgba(0,0,0,0.3);
  border-radius: 0 0 6px 6px;
}

.main-navigation ul li:hover > ul.sub-menu {
  display: flex;
}

.main-navigation ul li ul.sub-menu li a {
  padding: 10px 20px;
  font-size: 0.88rem;
  border-bottom: 1px solid #333;
}

/* Mobile toggle */
.menu-toggle {
  display: none;
  background: #0BD49E;
  color: #fff;
  border: none;
  padding: 10px 18px;
  font-size: 1.2rem;
  cursor: pointer;
  border-radius: 6px;
}

/* ===== HERO / SLIDER PLACEHOLDER ===== */
.hero-section {
  background: linear-gradient(135deg, #0BD49E 0%, #09b888 50%, #078a66 100%);
  padding: 60px 20px;
  text-align: center;
  color: #ffffff;
}

.hero-section h1 {
  font-size: 2.4rem;
  font-weight: 700;
  margin-bottom: 15px;
}

.hero-section p {
  font-size: 1.15rem;
  max-width: 700px;
  margin: 0 auto 25px;
  opacity: 0.95;
}

.hero-section .hero-btn {
  background-color: #ffffff;
  color: #0BD49E;
  padding: 14px 35px;
  border-radius: 30px;
  font-weight: 700;
  font-size: 1rem;
  display: inline-block;
  transition: all 0.3s;
}

.hero-section .hero-btn:hover {
  background-color: #1A1A1A;
  color: #ffffff;
}

/* ===== CONTENT AREA ===== */
.site-content {
  padding: 40px 0;
}

.content-area {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Blog with sidebar layout */
.content-with-sidebar {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 40px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ===== POST CARDS (Blog listing) ===== */
.post-card {
  background: #ffffff;
  margin-bottom: 40px;
  border-radius: 4px;
  overflow: hidden;
}

.post-card .post-thumbnail {
  width: 100%;
  overflow: hidden;
}

.post-card .post-thumbnail img {
  width: 100%;
  height: auto;
  transition: transform 0.4s ease;
}

.post-card:hover .post-thumbnail img {
  transform: scale(1.03);
}

.post-card .post-content {
  padding: 25px 0;
}

.post-card .post-title {
  font-size: 1.55rem;
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 10px;
  color: #111111;
}

.post-card .post-title a {
  color: #111111;
}

.post-card .post-title a:hover {
  color: #0BD49E;
}

.post-card .post-meta {
  font-size: 0.85rem;
  color: #888888;
  margin-bottom: 12px;
}

.post-card .post-meta a {
  color: #888888;
}

.post-card .post-meta a:hover {
  color: #0BD49E;
}

.post-card .post-excerpt {
  font-size: 0.95rem;
  color: #444;
  line-height: 1.7;
  margin-bottom: 18px;
}

.read-more {
  display: inline-block;
  color: #0BD49E;
  font-weight: 600;
  font-size: 0.9rem;
  border-bottom: 2px solid #0BD49E;
  padding-bottom: 2px;
  transition: all 0.3s;
}

.read-more:hover {
  color: #1A1A1A;
  border-color: #1A1A1A;
}

/* ===== SINGLE POST ===== */
.single-post-content {
  background: #ffffff;
  padding: 40px;
  border-radius: 6px;
  max-width: 800px;
  margin: 0 auto;
}

.single-post-content .entry-header {
  margin-bottom: 25px;
}

.single-post-content .entry-title {
  font-size: 2rem;
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 12px;
  color: #111111;
}

.single-post-content .entry-meta {
  font-size: 0.85rem;
  color: #888;
}

.single-post-content .entry-meta a {
  color: #0BD49E;
}

.single-post-content .featured-image {
  margin-bottom: 25px;
  border-radius: 4px;
  overflow: hidden;
}

.single-post-content .entry-content {
  font-size: 1rem;
  line-height: 1.8;
  color: #333;
}

.single-post-content .entry-content p {
  margin-bottom: 1.2em;
}

.single-post-content .entry-content h2 {
  font-size: 1.5rem;
  margin: 1.5em 0 0.6em;
  color: #111;
}

.single-post-content .entry-content h3 {
  font-size: 1.25rem;
  margin: 1.3em 0 0.5em;
  color: #111;
}

.single-post-content .entry-content img {
  border-radius: 4px;
  margin: 1em 0;
}

.single-post-content .entry-content blockquote {
  border-left: 4px solid #0BD49E;
  padding: 15px 25px;
  margin: 1.5em 0;
  background: #f9f9f9;
  font-style: italic;
  color: #555;
}

.single-post-content .entry-content ul,
.single-post-content .entry-content ol {
  padding-left: 25px;
  margin-bottom: 1.2em;
}

.single-post-content .entry-content ul {
  list-style: disc;
}

.single-post-content .entry-content ol {
  list-style: decimal;
}

.single-post-content .entry-content li {
  margin-bottom: 0.4em;
}

/* Post navigation */
.post-navigation {
  display: flex;
  justify-content: space-between;
  margin-top: 40px;
  padding-top: 20px;
  border-top: 1px solid #eee;
}

.post-navigation a {
  color: #0BD49E;
  font-weight: 600;
  font-size: 0.9rem;
}

.post-navigation a:hover {
  color: #111;
}

/* ===== PAGE TEMPLATE ===== */
.page-content {
  background: #ffffff;
  padding: 50px 40px;
  border-radius: 6px;
  max-width: 900px;
  margin: 0 auto;
}

.page-content .page-title {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 25px;
  color: #111;
}

.page-content .entry-content {
  font-size: 1rem;
  line-height: 1.8;
  color: #333;
}

.page-content .entry-content p {
  margin-bottom: 1.2em;
}

/* ===== PAGINATION ===== */
.pagination {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 30px 0;
  margin-top: 20px;
}

.pagination .page-numbers {
  display: inline-block;
  padding: 8px 14px;
  margin: 0 3px;
  border-radius: 4px;
  font-size: 0.95rem;
  color: #111;
  font-weight: 600;
}

.pagination .page-numbers.current {
  background-color: #0BD49E;
  color: #fff;
}

.pagination .page-numbers:hover:not(.current) {
  color: #0BD49E;
}

.pagination .next,
.pagination .prev {
  color: #0BD49E;
  font-weight: 600;
}

/* ===== SIDEBAR ===== */
.widget-area {
  padding: 0;
}

.widget {
  background: #ffffff;
  padding: 25px;
  border-radius: 6px;
  margin-bottom: 25px;
}

.widget .widget-title {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 15px;
  padding-bottom: 10px;
  border-bottom: 2px solid #0BD49E;
  color: #111;
}

.widget ul li {
  padding: 6px 0;
  border-bottom: 1px solid #f0f0f0;
}

.widget ul li:last-child {
  border-bottom: none;
}

.widget ul li a {
  color: #444;
  font-size: 0.9rem;
}

.widget ul li a:hover {
  color: #0BD49E;
}

/* ===== FOOTER ===== */
.site-footer {
  background-color: #ffffff;
  border-top: 1px solid #e5e5e5;
  padding: 50px 0 0;
  margin-top: 40px;
}

.footer-inner {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 30px;
  padding-bottom: 40px;
}

.footer-column h4 {
  font-size: 0.95rem;
  font-weight: 700;
  text-transform: uppercase;
  margin-bottom: 18px;
  color: #111;
  letter-spacing: 0.5px;
}

.footer-column p,
.footer-column address {
  font-size: 0.88rem;
  color: #555;
  line-height: 1.7;
  font-style: normal;
}

.footer-column ul li {
  margin-bottom: 8px;
}

.footer-column ul li a {
  color: #555;
  font-size: 0.88rem;
}

.footer-column ul li a:hover {
  color: #0BD49E;
}

.footer-column .logo-footer {
  font-size: 1.3rem;
  font-weight: 700;
  color: #111;
  margin-bottom: 10px;
}

.footer-column .footer-tagline {
  font-size: 0.85rem;
  color: #888;
  margin-bottom: 15px;
}

.footer-bottom {
  text-align: center;
  padding: 20px;
  border-top: 1px solid #e5e5e5;
  font-size: 0.82rem;
  color: #888;
}

.footer-bottom a {
  color: #0BD49E;
}

/* ===== SECURITY BADGE ===== */
.security-badge {
  text-align: center;
  padding: 25px 0;
  background: #f0f0f0;
  font-size: 0.9rem;
  color: #555;
}

.security-badge strong {
  color: #111;
}

/* ===== COMMENTS ===== */
.comments-area {
  margin-top: 40px;
  padding-top: 30px;
  border-top: 1px solid #eee;
}

.comments-area .comments-title {
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 20px;
}

.comment-list .comment {
  padding: 15px 0;
  border-bottom: 1px solid #f0f0f0;
}

.comment-respond .comment-reply-title {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 15px;
}

.comment-respond label {
  display: block;
  font-size: 0.9rem;
  margin-bottom: 5px;
  font-weight: 600;
}

.comment-respond input[type="text"],
.comment-respond input[type="email"],
.comment-respond textarea {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid #ddd;
  border-radius: 6px;
  margin-bottom: 15px;
  font-family: inherit;
  font-size: 0.9rem;
}

.comment-respond textarea {
  min-height: 120px;
}

.comment-respond .submit {
  background-color: #0BD49E;
  color: #ffffff;
  border: none;
  padding: 12px 30px;
  border-radius: 25px;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.3s;
}

.comment-respond .submit:hover {
  background-color: #09b888;
}

/* ===== 404 PAGE ===== */
.error-404 {
  text-align: center;
  padding: 80px 20px;
}

.error-404 h1 {
  font-size: 5rem;
  color: #0BD49E;
  font-weight: 800;
}

.error-404 p {
  font-size: 1.2rem;
  color: #555;
  margin: 15px 0 30px;
}

.error-404 .search-form {
  max-width: 400px;
  margin: 0 auto;
}

/* ===== SEARCH RESULTS ===== */
.search-results-header {
  padding: 20px 0;
  margin-bottom: 20px;
}

.search-results-header h1 {
  font-size: 1.5rem;
  color: #111;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 992px) {
  .footer-inner {
    grid-template-columns: 1fr 1fr;
  }

  .content-with-sidebar {
    grid-template-columns: 1fr;
  }

  .header-inner {
    flex-direction: column;
    text-align: center;
  }

  .header-search {
    max-width: 100%;
    margin: 10px 0;
  }
}

@media (max-width: 768px) {
  .menu-toggle {
    display: block;
  }

  .main-navigation ul {
    display: none;
    flex-direction: column;
    width: 100%;
  }

  .main-navigation ul.toggled {
    display: flex;
  }

  .main-navigation ul li a {
    padding: 12px 20px;
    border-bottom: 1px solid #333;
  }

  .main-navigation ul li ul.sub-menu {
    position: static;
    box-shadow: none;
  }

  .hero-section h1 {
    font-size: 1.7rem;
  }

  .footer-inner {
    grid-template-columns: 1fr;
  }

  .single-post-content {
    padding: 25px 20px;
  }

  .page-content {
    padding: 30px 20px;
  }

  .top-bar {
    font-size: 0.75rem;
  }

  .top-bar .social-icons {
    float: none;
    margin-bottom: 4px;
  }
}

@media (max-width: 480px) {
  .header-actions {
    gap: 12px;
  }

  .post-card .post-title {
    font-size: 1.25rem;
  }

  .single-post-content .entry-title {
    font-size: 1.5rem;
  }
}

/* ===== UTILITY CLASSES ===== */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  border: 0;
}

.text-center { text-align: center; }
.text-right { text-align: right; }
.mt-1 { margin-top: 10px; }
.mt-2 { margin-top: 20px; }
.mt-3 { margin-top: 30px; }
.mb-1 { margin-bottom: 10px; }
.mb-2 { margin-bottom: 20px; }
.mb-3 { margin-bottom: 30px; }
