/* 
 * Editora Versejar - Main Stylesheet
 * Modern, responsive design with Brazilian theme colors
 */

/* Font imports */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;500;600;700&family=Source+Sans+Pro:wght@300;400;600&display=swap');

/* Reset & Base Styles */
:root {
  --primary-color: #1a5653;
  --secondary-color: #f0c05a;
  --accent-color: #e55934;
  --text-color: #333333;
  --light-text: #ffffff;
  --background-color: #ffffff;
  --light-background: #f9f9f9;
  --border-color: #e1e1e1;
  --shadow-color: rgba(0, 0, 0, 0.1);
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Source Sans Pro', sans-serif;
  line-height: 1.6;
  color: var(--text-color);
  background-color: var(--background-color);
}

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

h1, h2, h3, h4, h5, h6 {
  font-family: 'Playfair Display', serif;
  margin-bottom: 0.5em;
  color: var(--primary-color);
}

h1 {
  font-size: 2.5rem;
}

h2 {
  font-size: 2rem;
}

h3 {
  font-size: 1.5rem;
}

p {
  margin-bottom: 1.5em;
}

a {
  color: var(--accent-color);
  text-decoration: none;
  transition: color 0.3s ease;
}

a:hover {
  color: var(--primary-color);
}

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

ul, ol {
  margin-left: 1.5em;
  margin-bottom: 1.5em;
}

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

.section-header h2 {
  font-size: 2.5rem;
  margin-bottom: 0.5rem;
  position: relative;
  display: inline-block;
}

.section-header h2:after {
  content: "";
  display: block;
  width: 80px;
  height: 3px;
  background-color: var(--secondary-color);
  margin: 0.5rem auto;
}

.section-header p {
  font-size: 1.2rem;
  color: #666;
}

/* Button Styles */
.btn {
  display: inline-block;
  padding: 0.8rem 1.5rem;
  background-color: var(--primary-color);
  color: var(--light-text);
  border: none;
  border-radius: 4px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  cursor: pointer;
  transition: all 0.3s ease;
  text-align: center;
}

.btn:hover {
  background-color: var(--accent-color);
  color: var(--light-text);
}

.btn-primary {
  background-color: var(--primary-color);
}

.btn-secondary {
  background-color: var(--secondary-color);
  color: var(--text-color);
}

.btn-secondary:hover {
  background-color: var(--accent-color);
  color: var(--light-text);
}

.btn-sm {
  padding: 0.5rem 1rem;
  font-size: 0.85rem;
}

/* Header & Navigation */
.site-header {
  background-color: var(--light-background);
  padding: 1rem 0;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 10px var(--shadow-color);
}

.site-header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo-container img {
  height: auto;
}

.menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 30px;
  height: 21px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0;
}

.menu-toggle span {
  display: block;
  height: 3px;
  width: 100%;
  background-color: var(--primary-color);
  border-radius: 3px;
  transition: all 0.3s ease;
}

.nav-links {
  display: flex;
  list-style: none;
  margin: 0;
}

.nav-links li {
  margin: 0 0.5rem;
}

.nav-links a {
  display: block;
  padding: 0.5rem 1rem;
  color: var(--text-color);
  font-weight: 600;
}

.nav-links a:hover {
  color: var(--accent-color);
}

/* Hero Section */
.hero-section {
  padding: 5rem 0;
  background: linear-gradient(135deg, rgba(26,86,83,0.9) 0%, rgba(26,86,83,0.7) 100%), url('../images/hero-bg.jpg') center/cover no-repeat;
  color: var(--light-text);
}

.hero-section .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.hero-content {
  width: 50%;
}

.hero-image {
  width: 45%;
  text-align: right;
}

.hero-section h1 {
  font-size: 3.5rem;
  margin-bottom: 1rem;
  color: var(--light-text);
}

.hero-subtitle {
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

.hero-description {
  margin-bottom: 2rem;
  font-size: 1.1rem;
}

.hero-buttons {
  display: flex;
  gap: 1rem;
}

/* About Section */
.about-section {
  padding: 5rem 0;
  background-color: var(--light-background);
}

.about-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.about-text {
  width: 50%;
  padding-right: 2rem;
}

.about-image {
  width: 45%;
}

/* Services Section */
.services-section {
  padding: 5rem 0;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
}

.service-card {
  background-color: var(--light-background);
  padding: 2rem;
  border-radius: 8px;
  text-align: center;
  box-shadow: 0 5px 15px var(--shadow-color);
  transition: transform 0.3s ease;
}

.service-card:hover {
  transform: translateY(-10px);
}

.service-icon {
  margin-bottom: 1.5rem;
}

.service-icon img {
  margin: 0 auto;
}

.service-card h3 {
  margin-bottom: 1rem;
}

/* Books Section */
.books-section {
  padding: 5rem 0;
  background-color: var(--light-background);
}

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

.book-item {
  display: flex;
  flex-direction: column;
  background-color: var(--background-color);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 5px 15px var(--shadow-color);
  transition: transform 0.3s ease;
}

.book-item:hover {
  transform: translateY(-10px);
}

.book-cover {
  height: 300px;
  overflow: hidden;
}

.book-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.book-details {
  padding: 1.5rem;
}

.book-author {
  color: #666;
  margin-bottom: 1rem;
  font-style: italic;
}

/* Authors Section */
.authors-section {
  padding: 5rem 0;
}

.authors-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.authors-text {
  width: 50%;
  padding-left: 2rem;
}

.authors-image {
  width: 45%;
}

.authors-benefits {
  margin-bottom: 2rem;
}

.authors-benefits li {
  margin-bottom: 0.5rem;
}

/* Games Section */
.games-section {
  padding: 5rem 0;
  background-color: var(--light-background);
}

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

.game-card {
  background-color: var(--background-color);
  padding: 2rem;
  border-radius: 8px;
  box-shadow: 0 5px 15px var(--shadow-color);
}

.games-list {
  list-style: none;
  margin-left: 0;
}

.games-list li {
  margin-bottom: 1rem;
  padding-left: 1.5rem;
  position: relative;
}

.games-list li:before {
  content: "•";
  color: var(--accent-color);
  position: absolute;
  left: 0;
  font-weight: bold;
}

/* Contact Section */
.contact-section {
  padding: 5rem 0;
}

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

.contact-form {
  background-color: var(--light-background);
  padding: 2rem;
  border-radius: 8px;
  box-shadow: 0 5px 15px var(--shadow-color);
}

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

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 600;
}

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

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary-color);
}

.contact-info {
  padding: 2rem;
}

.contact-details {
  list-style: none;
  margin-left: 0;
  margin-top: 1rem;
}

.contact-details li {
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
}

.icon {
  margin-right: 1rem;
  font-size: 1.2rem;
}

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

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

.social-links a:hover {
  background-color: var(--accent-color);
}

.social-links img {
  filter: brightness(0) invert(1);
}

/* Footer */
.site-footer {
  background-color: #222;
  color: var(--light-text);
  padding: 4rem 0 1rem;
}

.footer-content {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  margin-bottom: 3rem;
}

.footer-logo {
  width: 100%;
  max-width: 300px;
  margin-bottom: 2rem;
}

.footer-logo p {
  margin-top: 1rem;
  color: #bbb;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
}

.footer-column h3 {
  color: var(--light-text);
  margin-bottom: 1rem;
  position: relative;
  padding-bottom: 0.5rem;
}

.footer-column h3:after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 50px;
  height: 2px;
  background-color: var(--secondary-color);
}

.footer-column ul {
  list-style: none;
  margin-left: 0;
}

.footer-column ul li {
  margin-bottom: 0.5rem;
}

.footer-column a {
  color: #bbb;
}

.footer-column a:hover {
  color: var(--secondary-color);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer-bottom p {
  margin-bottom: 0;
  color: #999;
}

.footer-icon img {
  opacity: 0.7;
}

/* Responsive Design */
@media (max-width: 992px) {
  .hero-section h1 {
    font-size: 3rem;
  }
  
  .about-content,
  .authors-content,
  .hero-section .container {
    flex-direction: column;
  }
  
  .hero-content,
  .hero-image,
  .about-text,
  .about-image,
  .authors-text,
  .authors-image {
    width: 100%;
    text-align: center;
  }
  
  .about-text,
  .authors-text {
    padding: 0;
    margin-bottom: 2rem;
  }
  
  .hero-image {
    margin-top: 2rem;
  }
  
  .hero-buttons {
    justify-content: center;
  }
}

@media (max-width: 768px) {
  .menu-toggle {
    display: flex;
  }
  
  .nav-links {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background-color: var(--light-background);
    flex-direction: column;
    align-items: center;
    padding: 1rem 0;
    height: 0;
    overflow: hidden;
    transition: all 0.3s ease-out;
    opacity: 0;
  }
  
  .nav-links.active {
    height: auto;
    opacity: 1;
  }
  
  .nav-links li {
    margin: 0.5rem 0;
  }
  
  .section-header h2 {
    font-size: 2rem;
  }
  
  .hero-section h1 {
    font-size: 2.5rem;
  }
  
  .hero-subtitle {
    font-size: 1.2rem;
  }
  
  .footer-content {
    flex-direction: column;
  }
  
  .footer-logo {
    margin-bottom: 2rem;
    text-align: center;
  }
  
  .footer-links {
    flex-direction: column;
    gap: 1rem;
  }
}

@media (max-width: 576px) {
  .container {
    padding: 0 15px;
  }
  
  .hero-section {
    padding: 3rem 0;
  }
  
  .section-header h2 {
    font-size: 1.75rem;
  }
  
  .hero-section h1 {
    font-size: 2rem;
  }
  
  .hero-subtitle {
    font-size: 1.1rem;
  }
  
  .hero-buttons {
    flex-direction: column;
    gap: 0.5rem;
  }
  
  .services-grid,
  .book-carousel,
  .games-grid,
  .contact-content {
    grid-template-columns: 1fr;
  }
  
  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }
  
  .footer-icon {
    margin-top: 1rem;
  }
}
