/* 
 * Jurídico Juarez Duran - Main StyleSheet
 * A professional legal services website for Brazil
 */

:root {
  --primary-color: #00437A;
  --secondary-color: #003666;
  --accent-color: #F4A261;
  --light-color: #F8F0E3;
  --dark-color: #002548;
  --text-color: #333333;
  --box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  --transition: all 0.3s ease-in-out;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Lora', serif;
  color: var(--text-color);
  background-color: #FFFFFF;
  line-height: 1.6;
  overflow-x: hidden;
}

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

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Playfair Display', serif;
  color: var(--primary-color);
  margin-bottom: 20px;
  font-weight: 700;
}

h1 {
  font-size: 3rem;
}

h2 {
  font-size: 2.5rem;
  position: relative;
  display: inline-block;
}

h2::after {
  content: '';
  position: absolute;
  width: 60%;
  height: 3px;
  background-color: var(--accent-color);
  bottom: -10px;
  left: 0;
}

h3 {
  font-size: 1.8rem;
  margin-bottom: 15px;
}

p {
  margin-bottom: 15px;
}

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

.section {
  padding: 80px 0;
}

.section-header {
  margin-bottom: 60px;
  text-align: center;
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 12px 28px;
  background-color: var(--primary-color);
  color: var(--light-color);
  text-decoration: none;
  font-family: 'Playfair Display', serif;
  font-size: 1rem;
  font-weight: 600;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  transition: var(--transition);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.btn:hover {
  background-color: var(--dark-color);
  transform: translateY(-3px);
  box-shadow: var(--box-shadow);
}

.btn-outline {
  background-color: transparent;
  border: 2px solid var(--primary-color);
  color: var(--primary-color);
}

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

/* Header */
.header {
  background-color: var(--light-color);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
}

.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 0;
}

.logo {
  display: flex;
  align-items: center;
  text-decoration: none;
}

.logo img {
  height: 50px;
  width: auto;
  margin-right: 10px;
}

.site-title {
  color: var(--primary-color);
  font-family: 'Playfair Display', serif;
  font-size: 1.5rem;
  font-weight: 700;
}

.nav-menu {
  display: flex;
  list-style: none;
}

.nav-item {
  margin-left: 30px;
}

.nav-link {
  color: var(--dark-color);
  text-decoration: none;
  font-weight: 600;
  text-transform: uppercase;
  font-size: 0.9rem;
  letter-spacing: 1px;
  transition: var(--transition);
  position: relative;
}

.nav-link::after {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  background-color: var(--primary-color);
  bottom: -5px;
  left: 0;
  transition: var(--transition);
}

.nav-link:hover {
  color: var(--primary-color);
}

.nav-link:hover::after {
  width: 100%;
}

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

/* Hero Section */
.hero {
  height: 80vh;
  background-image: url('hero-bg.svg');
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
  text-align: center;
  margin-top: 80px;
  position: relative;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
}

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

.hero-title {
  color: var(--light-color);
  font-size: 3.5rem;
  line-height: 1.2;
  margin-bottom: 20px;
  text-shadow: 0 2px 5px rgba(0, 0, 0, 0.5);
}

.hero-subtitle {
  color: var(--light-color);
  font-size: 1.2rem;
  margin-bottom: 40px;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
}

.hero .btn {
  margin: 0 10px;
}

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

.about-content {
  display: flex;
  align-items: center;
  gap: 60px;
}

.about-image {
  flex: 1;
  text-align: center;
}

.about-image img {
  max-width: 100%;
  border-radius: 8px;
  box-shadow: var(--box-shadow);
}

.about-text {
  flex: 1;
}

.about-text p {
  margin-bottom: 20px;
}

/* Services Section */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.service-card {
  background-color: #FFFFFF;
  border-radius: 8px;
  padding: 30px;
  box-shadow: var(--box-shadow);
  transition: var(--transition);
  text-align: center;
  border-bottom: 3px solid transparent;
}

.service-card:hover {
  transform: translateY(-10px);
  border-bottom: 3px solid var(--accent-color);
}

.service-icon {
  font-size: 2.5rem;
  color: var(--accent-color);
  margin-bottom: 20px;
}

.service-title {
  font-size: 1.4rem;
  margin-bottom: 15px;
}

/* Games Section for Required Links */
.games-section {
  background-color: var(--secondary-color);
  padding: 60px 0;
  color: var(--light-color);
}

.games-section h2::after {
  background-color: var(--light-color);
}

.games-section h2, 
.games-section h3 {
  color: var(--light-color);
}

.games-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 20px;
  margin-top: 40px;
}

.game-item {
  background-color: rgba(255, 255, 255, 0.1);
  padding: 20px;
  border-radius: 8px;
  text-align: center;
  transition: var(--transition);
}

.game-item:hover {
  background-color: rgba(255, 255, 255, 0.2);
  transform: translateY(-5px);
}

.game-item a {
  color: var(--light-color);
  text-decoration: none;
  font-weight: 600;
  font-size: 1.1rem;
  display: block;
}

/* Testimonials */
.testimonials-slider {
  max-width: 800px;
  margin: 0 auto;
  padding: 30px;
  background-color: #FFFFFF;
  border-radius: 8px;
  box-shadow: var(--box-shadow);
}

.testimonial {
  text-align: center;
  padding: 20px;
}

.testimonial-content {
  font-size: 1.1rem;
  font-style: italic;
  position: relative;
  padding: 0 20px;
  margin-bottom: 30px;
}

.testimonial-content::before,
.testimonial-content::after {
  content: '"';
  font-size: 3rem;
  color: var(--accent-color);
  opacity: 0.5;
  position: absolute;
}

.testimonial-content::before {
  top: -20px;
  left: -10px;
}

.testimonial-content::after {
  bottom: -40px;
  right: -10px;
}

.testimonial-author {
  font-weight: 600;
  color: var(--primary-color);
}

.testimonial-position {
  font-size: 0.9rem;
  color: var(--text-color);
  opacity: 0.8;
}

/* Contact Section */
.contact-section {
  background-color: var(--light-color);
}

.contact-container {
  display: flex;
  gap: 40px;
}

.contact-info {
  flex: 1;
}

.contact-form {
  flex: 2;
  background-color: #FFFFFF;
  padding: 30px;
  border-radius: 8px;
  box-shadow: var(--box-shadow);
}

.contact-info-item {
  display: flex;
  align-items: center;
  margin-bottom: 20px;
}

.contact-icon {
  font-size: 1.2rem;
  color: var(--accent-color);
  margin-right: 15px;
}

.info-details h4 {
  font-size: 1.1rem;
  margin-bottom: 5px;
  color: var(--dark-color);
}

.info-details p {
  color: var(--text-color);
  font-size: 0.95rem;
}

.form-group {
  margin-bottom: 20px;
}

.form-label {
  display: block;
  font-weight: 600;
  margin-bottom: 8px;
}

.form-control {
  width: 100%;
  padding: 12px;
  font-family: inherit;
  border: 1px solid #ddd;
  border-radius: 5px;
  font-size: 1rem;
}

textarea.form-control {
  height: 150px;
  resize: vertical;
}

/* Footer */
.footer {
  background-color: var(--dark-color);
  color: var(--light-color);
  padding: 60px 0 30px;
}

.footer-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 40px;
  margin-bottom: 40px;
}

.footer-about {
  grid-column: span 2;
}

.footer-logo {
  display: flex;
  align-items: center;
  margin-bottom: 20px;
}

.footer-logo img {
  height: 40px;
  width: auto;
  margin-right: 10px;
}

.footer-logo span {
  color: var(--light-color);
  font-family: 'Playfair Display', serif;
  font-size: 1.3rem;
  font-weight: 700;
}

.footer-heading {
  color: var(--light-color);
  font-size: 1.2rem;
  margin-bottom: 20px;
  position: relative;
}

.footer-heading::after {
  content: '';
  position: absolute;
  width: 40px;
  height: 3px;
  background-color: var(--accent-color);
  bottom: -10px;
  left: 0;
}

.footer-links {
  list-style: none;
}

.footer-links li {
  margin-bottom: 10px;
}

.footer-links a {
  color: #ccc;
  text-decoration: none;
  transition: var(--transition);
}

.footer-links a:hover {
  color: var(--light-color);
  padding-left: 5px;
}

.footer-social {
  display: flex;
  gap: 15px;
}

.social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.1);
  color: var(--light-color);
  text-decoration: none;
  transition: var(--transition);
}

.social-link:hover {
  background-color: var(--accent-color);
  transform: translateY(-3px);
}

.copyright {
  text-align: center;
  padding-top: 30px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* Animations */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.appear {
  opacity: 1;
  transform: translateY(0);
}

/* Responsive Design */
@media (max-width: 1024px) {
  .about-content {
    flex-direction: column;
  }
  
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .contact-container {
    flex-direction: column;
  }
}

@media (max-width: 768px) {
  h1 {
    font-size: 2.5rem;
  }
  
  h2 {
    font-size: 2rem;
  }
  
  .header-container {
    padding: 10px 0;
  }
  
  .menu-toggle {
    display: block;
  }
  
  .nav-menu {
    position: absolute;
    flex-direction: column;
    background-color: var(--light-color);
    top: 80px;
    left: 0;
    right: 0;
    height: 0;
    overflow: hidden;
    transition: var(--transition);
    box-shadow: 0 10px 15px rgba(0, 0, 0, 0.1);
  }
  
  .nav-menu.active {
    height: auto;
    padding: 20px 0;
  }
  
  .nav-item {
    margin: 10px 20px;
  }
  
  .hero {
    height: 70vh;
    text-align: center;
  }
  
  .hero-title {
    font-size: 2.8rem;
  }
  
  .services-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  
  .footer-container {
    grid-template-columns: 1fr;
  }
  
  .footer-about {
    grid-column: span 1;
  }
}

@media (max-width: 480px) {
  .hero-title {
    font-size: 2.2rem;
  }
  
  .section {
    padding: 60px 0;
  }
  
  .btn {
    padding: 10px 20px;
    font-size: 0.9rem;
  }
  
  .hero .btn {
    display: block;
    margin: 10px auto;
    width: 80%;
  }
}
