/* Reset e base */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* Accessibility improvements */
*:focus {
  outline: 2px solid #2c5530;
  outline-offset: 2px;
}

/* Skip link for screen readers */
.skip-link {
  position: absolute;
  top: -40px;
  left: 6px;
  background: #2c5530;
  color: white;
  padding: 8px;
  text-decoration: none;
  z-index: 1000;
}

.skip-link:focus {
  top: 6px;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
  line-height: 1.6;
  color: #333;
  background-color: #fff;
  font-display: swap;
  /* Core Web Vitals optimizations */
  text-rendering: optimizeSpeed;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Container principal */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}

/* Header */
header {
  background: #fff;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
  position: sticky;
  top: 0;
  z-index: 100;
}

nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 0;
}

.logo {
  font-size: 1.5rem;
  font-weight: 700;
  color: #2c5530;
  text-decoration: none;
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 2rem;
}

.nav-links a {
  text-decoration: none;
  color: #333;
  font-weight: 500;
  transition: color 0.3s ease;
}

.nav-links a:hover {
  color: #2c5530;
}

/* Hero Section */
.hero {
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
  padding: 4rem 0;
  text-align: center;
  /* Improve CLS */
  min-height: 400px;
  display: flex;
  align-items: center;
}

.hero h1 {
  font-size: 2.5rem;
  font-weight: 700;
  color: #2c5530;
  margin-bottom: 1rem;
  line-height: 1.2;
}

.hero p {
  font-size: 1.2rem;
  color: #666;
  max-width: 600px;
  margin: 0 auto 2rem;
}

.hero-image {
  max-width: 100%;
  height: auto;
  margin-top: 2rem;
  /* Prevent layout shift */
  aspect-ratio: 3/2;
  object-fit: contain;
}

/* Breadcrumbs */
.breadcrumbs {
  padding: 1rem 0;
  background: #f8f9fa;
  border-bottom: 1px solid #e9ecef;
}

.breadcrumbs ol {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0;
  padding: 0;
}

.breadcrumbs li {
  display: flex;
  align-items: center;
}

.breadcrumbs li:not(:last-child)::after {
  content: '>';
  margin-left: 0.5rem;
  color: #666;
}

.breadcrumbs a {
  color: #2c5530;
  text-decoration: none;
  font-size: 0.9rem;
}

.breadcrumbs a:hover {
  text-decoration: underline;
}

.breadcrumbs li:last-child {
  color: #666;
  font-size: 0.9rem;
}

/* Internal Links */
.internal-link,
a[href^="#"],
a[href^="/"] {
  color: #2c5530;
  text-decoration: underline;
  font-weight: 500;
}

.internal-link:hover,
a[href^="#"]:hover,
a[href^="/"]:hover {
  color: #1a3d1f;
  text-decoration: none;
}

.cta-section {
  margin-top: 2rem;
  padding: 1.5rem;
  background: #f0f8f0;
  border-radius: 8px;
  border-left: 4px solid #2c5530;
}

/* Sections */
section {
  padding: 4rem 0;
}

.section-title {
  font-size: 2rem;
  font-weight: 600;
  color: #2c5530;
  text-align: center;
  margin-bottom: 3rem;
}

/* Sobre */
.sobre {
  background: #f8f9fa;
}

.sobre-content {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
}

.sobre p {
  font-size: 1.1rem;
  color: #555;
  margin-bottom: 1.5rem;
}

/* Curiosidades */
.curiosidades-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  margin-top: 2rem;
}

.curiosidade-card {
  background: #fff;
  border-radius: 12px;
  padding: 2rem;
  box-shadow: 0 4px 20px rgba(0,0,0,0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.curiosidade-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 30px rgba(0,0,0,0.12);
}

.curiosidade-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 1.5rem;
}

.curiosidade-card h3 {
  font-size: 1.3rem;
  font-weight: 600;
  color: #2c5530;
  margin-bottom: 1rem;
}

.curiosidade-card p {
  color: #666;
  line-height: 1.6;
}

/* Cuidados */
#cuidados {
  background: #f8f9fa;
}

.cuidados-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
  max-width: 1000px;
  margin: 0 auto;
}

.cuidado-item {
  background: #fff;
  padding: 2rem;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.08);
  border-left: 4px solid #2c5530;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.cuidado-item:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 30px rgba(0,0,0,0.12);
}

.cuidado-item h4 {
  color: #2c5530;
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.cuidado-item p {
  color: #666;
  line-height: 1.6;
  font-size: 1rem;
}

/* Footer */
footer {
  background: #2c5530;
  color: #fff;
  padding: 3rem 0 1rem;
}

.footer-content {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  margin-bottom: 2rem;
}

.footer-section h3 {
  font-size: 1.2rem;
  margin-bottom: 1rem;
  color: #fff;
}

.footer-section p,
.footer-section a {
  color: #ccc;
  text-decoration: none;
  line-height: 1.6;
}

.footer-section a:hover {
  color: #fff;
}

.footer-links {
  list-style: none;
}

.footer-links li {
  margin-bottom: 0.5rem;
}

.footer-bottom {
  border-top: 1px solid #4a6741;
  padding-top: 1rem;
  text-align: center;
  color: #ccc;
  font-size: 0.9rem;
}

/* Banner de Cookies */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: #fff;
  border-top: 1px solid #ddd;
  padding: 1rem;
  box-shadow: 0 -2px 10px rgba(0,0,0,0.1);
  z-index: 1000;
  transform: translateY(100%);
  transition: transform 0.3s ease;
}

.cookie-banner.show {
  transform: translateY(0);
}

.cookie-content {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  max-width: 1200px;
  margin: 0 auto;
}

.cookie-text {
  font-size: 0.9rem;
  color: #666;
}

.cookie-buttons {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.btn {
  padding: 0.75rem 1.5rem;
  border: none;
  border-radius: 6px;
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
  display: inline-block;
  text-align: center;
}

.btn-primary {
  background: #2c5530;
  color: #fff;
}

.btn-primary:hover {
  background: #1e3a21;
}

.btn-secondary {
  background: #6c757d;
  color: #fff;
}

.btn-secondary:hover {
  background: #545b62;
}

/* Animações */
.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Mobile Optimizations */
@media (max-width: 480px) {
  .container {
    padding: 0 0.75rem;
  }
  
  .hero {
    padding: 2rem 0;
    min-height: 300px;
  }
  
  .hero h1 {
    font-size: 1.8rem;
    line-height: 1.3;
  }
  
  .hero p {
    font-size: 1rem;
  }
  
  .nav-links {
    flex-direction: column;
    gap: 1rem;
  }
  
  section {
    padding: 2rem 0;
  }
  
  .breadcrumbs {
    padding: 0.5rem 0;
  }
}

/* Responsivo - Mobile First */
@media (min-width: 768px) {
  .hero h1 {
    font-size: 3rem;
  }
  
  .curiosidades-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .cuidados-list {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .footer-content {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .cookie-content {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
  
  .cookie-buttons {
    flex-shrink: 0;
  }
}

@media (min-width: 1024px) {
  .hero h1 {
    font-size: 3.5rem;
  }
  
  .curiosidades-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  
  .cuidados-list {
    grid-template-columns: repeat(3, 1fr);
  }
  
  .footer-content {
    grid-template-columns: repeat(3, 1fr);
  }
  
  .nav-links {
    gap: 3rem;
  }
}

/* Performance - Preload crítico */
.hero-image,
.curiosidade-card img {
  will-change: transform;
}

/* Acessibilidade */
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  
  html {
    scroll-behavior: auto;
  }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
  .nav-links a:hover,
  .nav-links .active {
    background-color: #2c5530;
    color: white;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
  }
}

/* Focus states */
.btn:focus,
a:focus {
  outline: 2px solid #2c5530;
  outline-offset: 2px;
}

/* Print styles */
@media print {
  .cookie-banner,
  .nav-links {
    display: none;
  }
}

/* Legal Pages Styles */
.legal-content {
  max-width: 800px;
  margin: 0 auto;
  padding: 2rem 0;
}

.legal-intro {
  background: #f8f9fa;
  padding: 2rem;
  border-radius: 12px;
  border-left: 4px solid #2c5530;
  margin-bottom: 3rem;
}

.legal-intro p {
  margin-bottom: 1rem;
  font-size: 1.1rem;
  line-height: 1.7;
}

.legal-intro p:last-child {
  margin-bottom: 0;
  font-weight: 600;
  color: #2c5530;
}

.legal-section {
  margin-bottom: 3rem;
  padding: 2rem;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  border: 1px solid #e9ecef;
}

.legal-section h2 {
  color: #2c5530;
  font-size: 1.5rem;
  margin-bottom: 1.5rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid #e9ecef;
}

.legal-section h3 {
  color: #2c5530;
  font-size: 1.2rem;
  margin: 1.5rem 0 1rem 0;
}

.legal-section p {
  margin-bottom: 1rem;
  line-height: 1.7;
  color: #555;
}

.legal-section ul {
  margin: 1rem 0;
  padding-left: 1.5rem;
}

.legal-section li {
  margin-bottom: 0.5rem;
  line-height: 1.6;
  color: #555;
}

.contact-box {
  background: #f8f9fa;
  padding: 1.5rem;
  border-radius: 8px;
  border-left: 4px solid #2c5530;
  margin: 1.5rem 0;
}

.contact-box p {
  margin-bottom: 0.5rem;
}

.contact-box p:last-child {
  margin-bottom: 0;
}

.purpose-item {
  background: #f8f9fa;
  padding: 1.5rem;
  border-radius: 8px;
  margin: 1rem 0;
  border-left: 4px solid #2c5530;
}

.purpose-item h3 {
  margin-top: 0;
  margin-bottom: 1rem;
}

.purpose-item p {
  margin-bottom: 0.5rem;
}

.purpose-item p:last-child {
  margin-bottom: 0;
}

/* Responsive Legal Pages */
@media (max-width: 768px) {
  .legal-content {
    padding: 1rem 0;
  }
  
  .legal-intro,
  .legal-section {
    padding: 1.5rem;
    margin-bottom: 2rem;
  }
  
  .legal-section h2 {
    font-size: 1.3rem;
  }
  
  .legal-section h3 {
    font-size: 1.1rem;
  }
  
  .contact-box,
  .purpose-item {
    padding: 1rem;
  }
}

/* Contact Page Styles */
.contact-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  margin-top: 2rem;
}

.contact-info {
  background: #f8f9fa;
  padding: 2rem;
  border-radius: 12px;
  border-left: 4px solid #2c5530;
}

.contact-info h2 {
  color: #2c5530;
  margin-bottom: 1.5rem;
  font-size: 1.5rem;
}

.contact-item {
  margin-bottom: 2rem;
}

.contact-item h3 {
  color: #2c5530;
  margin-bottom: 0.5rem;
  font-size: 1.1rem;
}

.contact-item p {
  color: #666;
  margin-bottom: 0.5rem;
}

.contact-item ul {
  list-style: none;
  padding: 0;
}

.contact-item li {
  color: #666;
  padding: 0.25rem 0;
  position: relative;
  padding-left: 1.5rem;
}

.contact-item li::before {
  content: "•";
  color: #2c5530;
  position: absolute;
  left: 0;
}

.contact-form {
  background: white;
  padding: 2rem;
  border-radius: 12px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.contact-form h2 {
  color: #2c5530;
  margin-bottom: 1.5rem;
  font-size: 1.5rem;
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  color: #333;
  font-weight: 500;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 0.75rem;
  border: 2px solid #e1e5e9;
  border-radius: 8px;
  font-size: 1rem;
  transition: border-color 0.3s ease;
  box-sizing: border-box;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: #2c5530;
}

.form-group textarea {
  resize: vertical;
  min-height: 120px;
}

.nav-links .active {
  color: #2c5530;
  font-weight: 600;
}

/* Responsive Contact Page */
@media (max-width: 768px) {
  .contact-content {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  
  .contact-info,
  .contact-form {
    padding: 1.5rem;
  }
}