/*
Theme Name: Use Editorial
Theme URI: https://useeditorial.com
Description: Tema WordPress personalizado para Use Editorial - Consultoria em Edição de Livros
Version: 1.6
Author: Use Editorial
Author URI: https://useeditorial.com
License: GPL v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: use-editorial
Domain Path: /languages
*/

/* ============================================
   VARIÁVEIS E RESET
   ============================================ */

:root {
  --primary-color: #6A1B9A;
  --primary-light: #8E24AA;
  --primary-dark: #4A148C;
  --secondary-color: #00BCD4;
  --secondary-light: #4DD0E1;
  --text-color: #333333;
  --text-light: #666666;
  --bg-color: #FFFFFF;
  --bg-light: #F5F5F5;
  --border-color: #E0E0E0;
  --success-color: #4CAF50;
  --error-color: #F44336;
  --font-primary: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  --font-secondary: 'Georgia', serif;
  --transition: all 0.3s ease;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-primary);
  color: var(--text-color);
  background-color: var(--bg-color);
  line-height: 1.6;
  font-size: 16px;
}

/* ============================================
   TIPOGRAFIA
   ============================================ */

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-secondary);
  color: var(--primary-color);
  margin-bottom: 1rem;
  line-height: 1.3;
}

h1 {
  font-size: 2.5rem;
  font-weight: 700;
}

h2 {
  font-size: 2rem;
  font-weight: 700;
}

h3 {
  font-size: 1.5rem;
  font-weight: 600;
}

h4 {
  font-size: 1.25rem;
  font-weight: 600;
}

p {
  margin-bottom: 1rem;
  color: var(--text-light);
}

a {
  color: var(--primary-color);
  text-decoration: none;
  transition: var(--transition);
}

a:hover {
  color: var(--primary-light);
  text-decoration: underline;
}

/* ============================================
   HEADER E NAVEGAÇÃO
   ============================================ */

.site-header {
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
  border-bottom: 3px solid var(--secondary-color);
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 4px 12px rgba(106, 27, 154, 0.2);
}

.header-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 1rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 2rem;
}

.site-branding {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex: 0 0 auto;
}

.site-logo {
  display: flex;
  align-items: center;
}

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

.site-title-link {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: white;
  font-size: 1.8rem;
  font-weight: 700;
  font-family: var(--font-secondary);
  text-decoration: none;
  transition: var(--transition);
}

.site-title-link:hover {
  text-decoration: none;
  opacity: 0.9;
}

.site-title-text {
  color: white;
  font-weight: 700;
}

.site-title-highlight {
  color: var(--secondary-color);
  font-weight: 700;
}

.site-description {
  display: none;
}

.site-description p {
  margin: 0;
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.9rem;
  font-style: italic;
}

.main-navigation {
  display: flex;
  gap: 2rem;
  flex: 1 1 auto;
  justify-content: center;
}

.nav-wrapper {
  display: flex;
  gap: 2rem;
}

.main-navigation ul {
  list-style: none;
  display: flex;
  gap: 2rem;
}

.main-navigation a {
  color: white;
  font-weight: 500;
  padding: 0.5rem 0;
  border-bottom: 3px solid transparent;
  transition: var(--transition);
  text-decoration: none;
}

.main-navigation a:hover,
.main-navigation a.active {
  color: var(--secondary-color);
  border-bottom-color: var(--secondary-color);
  text-decoration: none;
}

.header-cta {
  flex: 0 0 auto;
}

.cta-button-header {
  display: inline-block;
  background-color: var(--secondary-color);
  color: var(--primary-color);
  padding: 0.75rem 1.5rem;
  border-radius: 4px;
  font-weight: 600;
  transition: var(--transition);
  text-decoration: none;
}

.cta-button-header:hover {
  background-color: var(--secondary-light);
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 188, 212, 0.3);
  text-decoration: none;
}

.menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--primary-color);
}

/* ============================================
   HERO SECTION
   ============================================ */

.hero {
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-light) 100%);
  color: white;
  padding: 6rem 2rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -10%;
  width: 500px;
  height: 500px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  z-index: 0;
}

.hero-content {
  max-width: 800px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.hero h1 {
  color: white;
  font-size: 3rem;
  margin-bottom: 1rem;
}

.hero p {
  color: rgba(255, 255, 255, 0.9);
  font-size: 1.25rem;
  margin-bottom: 2rem;
}

.cta-button {
  display: inline-block;
  background-color: var(--secondary-color);
  color: white;
  padding: 1rem 2.5rem;
  border-radius: 50px;
  font-weight: 600;
  transition: var(--transition);
  border: 2px solid var(--secondary-color);
  cursor: pointer;
  font-size: 1rem;
}

.cta-button:hover {
  background-color: transparent;
  color: var(--secondary-color);
  text-decoration: none;
}

.cta-button-secondary {
  background-color: transparent;
  color: white;
  border: 2px solid white;
}

.cta-button-secondary:hover {
  background-color: white;
  color: var(--primary-color);
}

/* ============================================
   CONTAINER E LAYOUT
   ============================================ */

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

.section {
  padding: 4rem 2rem;
}

.section-title {
  text-align: center;
  margin-bottom: 3rem;
}

.section-title h2 {
  position: relative;
  display: inline-block;
}

.section-title h2::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 4px;
  background-color: var(--secondary-color);
  border-radius: 2px;
}

/* ============================================
   SEÇÃO INSTITUCIONAL
   ============================================ */

.institutional-section {
  background-color: var(--bg-light);
}

.institutional-content {
  text-align: center !important;
  margin: 0 auto !important;
}

.institutional-text {
  text-align: center !important;
  margin: 0 auto !important;
  max-width: 800px !important;
}
.institutional-text h3 {
  margin-bottom: 1.5rem;
}

.institutional-text p {
  margin-bottom: 1rem;
  line-height: 1.8;
}

.institutional-image {
  text-align: center;
}

.institutional-image img {
  max-width: 100%;
  height: auto;
  border-radius: 10px;
}

.services-grid {
  display: flex !important;
  justify-content: center !important;
  flex-wrap: wrap !important;
  gap: 2rem !important;
  margin: 2rem auto !important;
}

.service-card {
  text-align: center !important;
  flex: 0 1 200px !important;
}

.service-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.service-card h4 {
  color: var(--primary-color);
  margin-bottom: 1rem;
}

.service-card p {
  color: var(--text-light);
  font-size: 0.95rem;
}

/* ============================================
   SEÇÃO DE BLOG / TRABALHOS REALIZADOS
   ============================================ */

.blog-section {
  background-color: white;
}

.posts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 2rem;
}

.post-card {
  background-color: white;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  transition: var(--transition);
}

.post-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

.post-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  background-color: var(--bg-light);
}

.post-content {
  padding: 1.5rem;
}

.post-date {
  color: var(--secondary-color);
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.post-title {
  margin-bottom: 0.75rem;
}

.post-title a {
  color: var(--primary-color);
  font-size: 1.25rem;
}

.post-excerpt {
  color: var(--text-light);
  font-size: 0.95rem;
  margin-bottom: 1rem;
  line-height: 1.6;
}

.read-more {
  color: var(--secondary-color);
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.read-more:hover {
  gap: 0.75rem;
}

/* ============================================
   FORMULÁRIO DE CONTATO
   ============================================ */

.contact-section {
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-light) 100%);
  color: white;
}

.contact-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
}

.contact-info h3 {
  color: white;
  margin-bottom: 1.5rem;
}

.contact-info p {
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 1rem;
}

.contact-form {
  background-color: white;
  padding: 2rem;
  border-radius: 8px;
  color: var(--text-color);
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 600;
  color: var(--primary-color);
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid var(--border-color);
  border-radius: 4px;
  font-family: var(--font-primary);
  font-size: 1rem;
  transition: var(--transition);
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(106, 27, 154, 0.1);
}

.form-group textarea {
  resize: vertical;
  min-height: 120px;
}

.form-submit {
  background-color: var(--primary-color);
  color: white;
  padding: 0.75rem 2rem;
  border: none;
  border-radius: 4px;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  width: 100%;
}

.form-submit:hover {
  background-color: var(--primary-dark);
}

/* ============================================
   FOOTER
   ============================================ */

.site-footer {
  background-color: var(--primary-dark);
  color: white;
  padding: 3rem 2rem 1rem;
}

.footer-content {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin-bottom: 2rem;
}

.footer-section h4 {
  color: white;
  margin-bottom: 1rem;
}

.footer-section p,
.footer-section a {
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.95rem;
}

.footer-section a:hover {
  color: var(--secondary-color);
  text-decoration: none;
}

.social-links {
  display: flex;
  gap: 1rem;
  margin-top: 1rem;
}

.social-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background-color: var(--primary-color);
  border-radius: 50%;
  transition: var(--transition);
}

.social-links a:hover {
  background-color: var(--secondary-color);
  transform: translateY(-3px);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  padding-top: 1.5rem;
  text-align: center;
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.9rem;
}

/* ============================================
   RESPONSIVIDADE
   ============================================ */

@media (max-width: 768px) {
  .header-container {
    flex-direction: column;
    gap: 1rem;
  }

  .main-navigation {
    flex-direction: column;
    gap: 1rem;
    width: 100%;
  }

  .menu-toggle {
    display: block;
  }

  .hero h1 {
    font-size: 2rem;
  }

  .hero p {
    font-size: 1rem;
  }

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

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

  .posts-grid {
    grid-template-columns: 1fr;
  }

  h1 {
    font-size: 2rem;
  }

  h2 {
    font-size: 1.5rem;
  }

  h3 {
    font-size: 1.25rem;
  }

  .section {
    padding: 2rem 1rem;
  }
}

@media (max-width: 480px) {
  .hero {
    padding: 3rem 1rem;
  }

  .hero h1 {
    font-size: 1.5rem;
  }

  .cta-button {
    padding: 0.75rem 1.5rem;
    font-size: 0.9rem;
  }

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