/**
 * Estilo principal do site Rouxinol Cuidadores
 * Melhorado para desempenho, responsividade e acessibilidade
 */

/* Variáveis globais de CSS */
:root {
  /* Paleta de cores principal */
  --primary-color: #3b7bcc;
  --primary-dark: #2b5a96;
  --primary-light: #5a94de;
  --secondary-color: #ff914d;
  --secondary-dark: #e17836;
  --secondary-light: #ffb07d;
  
  /* Cores neutras */
  --dark: #333333;
  --medium: #666666;
  --light: #f5f5f5;
  --white: #ffffff;
  
  /* Cores de feedback */
  --success: #4caf50;
  --warning: #ff9800;
  --danger: #f44336;
  --info: #2196f3;
  
  /* Fontes */
  --font-heading: 'Montserrat', sans-serif;
  --font-body: 'Open Sans', sans-serif;
  
  /* Tamanhos */
  --container-max: 1200px;
  --header-height: 80px;
  --footer-spacing: 80px;
  
  /* Outros */
  --border-radius: 4px;
  --box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  --transition: all 0.3s ease;
}

/* Reset e Base */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

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

body {
  font-family: var(--font-body);
  line-height: 1.6;
  color: var(--dark);
  background-color: var(--white);
  overflow-x: hidden;
}

/* Acessibilidade - Skip link */
.skip-link {
  position: absolute;
  top: -40px;
  left: 0;
  background: var(--primary-color);
  color: white;
  padding: 8px;
  z-index: 100;
  transition: top 0.3s;
}

.skip-link:focus {
  top: 0;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Container */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 20px;
}

/* Tipografia */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 1rem;
  color: var(--dark);
}

h1 {
  font-size: 2.5rem;
}

h2 {
  font-size: 2rem;
  position: relative;
  margin-bottom: 1.5rem;
}

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

.section-header h2 {
  text-align: center;
}

.section-header h2:after {
  left: 50%;
  transform: translateX(-50%);
}

h3 {
  font-size: 1.5rem;
}

p {
  margin-bottom: 1rem;
}

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

a:hover, a:focus {
  color: var(--primary-dark);
  text-decoration: underline;
}

/* Para garantir foco visível em elementos interativos */
a:focus, button:focus, input:focus, textarea:focus, select:focus {
  outline: 2px solid var(--primary-color);
  outline-offset: 2px;
}

/* Botões */
.btn {
  display: inline-block;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 1rem;
  padding: 12px 24px;
  border-radius: var(--border-radius);
  border: none;
  cursor: pointer;
  text-align: center;
  text-decoration: none;
  transition: var(--transition);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

.btn:hover, .btn:focus {
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
  text-decoration: none;
}

.btn:active {
  transform: translateY(0);
}

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

.btn-primary:hover, .btn-primary:focus {
  background-color: var(--primary-dark);
  color: white;
}

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

.btn-secondary:hover, .btn-secondary:focus {
  background-color: var(--secondary-dark);
  color: white;
}

.btn-block {
  display: block;
  width: 100%;
}

/* Grid e Layout */
.text-center {
  text-align: center;
}

.mt-5 {
  margin-top: 3rem;
}

/* Header */
.header {
  background-color: white;
  box-shadow: var(--box-shadow);
  position: sticky;
  top: 0;
  z-index: 1000;
  padding: 10px 0;
}

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

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

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

/* Navegação */
.nav-list {
  display: flex;
  list-style: none;
}

.nav-item {
  margin-left: 1.5rem;
}

.nav-link {
  display: block;
  font-family: var(--font-heading);
  font-weight: 500;
  color: var(--dark);
  text-decoration: none;
  padding: 8px 0;
  position: relative;
}

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

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

.nav-link.active {
  color: var(--primary-color);
  font-weight: 600;
}

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

/* Hero Section */
.hero {
  background-image: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)), url('../images/hero-bg.jpg');
  background-size: cover;
  background-position: center;
  color: white;
  padding: 100px 0;
  text-align: center;
}

.hero-content {
  max-width: 800px;
  margin: 0 auto;
}

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

.hero p {
  font-size: 1.2rem;
  margin-bottom: 2rem;
}

.hero-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
}

/* Sobre Section */
.about {
  padding: 80px 0;
  background-color: var(--light);
}

.about-container {
  display: flex;
  align-items: center;
  gap: 50px;
}

.about-image {
  flex: 1;
}

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

.about-text {
  flex: 1;
}

/* Serviços Section */
.services {
  padding: 80px 0;
  background-color: white;
}

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

.section-header p {
  max-width: 600px;
  margin: 0 auto;
  color: var(--medium);
}

.service-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 30px;
}

.service-card {
  background-color: white;
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: var(--box-shadow);
  padding: 30px;
  transition: var(--transition);
  text-align: center;
  height: 100%;
  display: flex;
  flex-direction: column;
}

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

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

.service-card h3 {
  margin-bottom: 15px;
}

.service-card p {
  color: var(--medium);
  flex-grow: 1;
}

.service-link {
  margin-top: 15px;
  display: inline-block;
  color: var(--primary-color);
  font-weight: 600;
}

/* Call to Action */
.cta {
  background-image: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)), url('../images/cta-bg.jpg');
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  text-align: center;
  padding: 80px 0;
  color: white;
}

.cta h2 {
  color: white;
  margin-bottom: 20px;
}

.cta p {
  max-width: 700px;
  margin: 0 auto 30px;
  font-size: 1.1rem;
}

/* Blog Section */
.blog {
  padding: 80px 0;
  background-color: var(--light);
}

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

.blog-card {
  background-color: white;
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: var(--box-shadow);
  transition: var(--transition);
  height: 100%;
  display: flex;
  flex-direction: column;
}

.blog-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.blog-image {
  height: 200px;
  overflow: hidden;
}

.blog-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition);
}

.blog-card:hover .blog-image img {
  transform: scale(1.05);
}

.blog-content {
  padding: 20px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.blog-date {
  color: var(--medium);
  font-size: 0.9rem;
  margin-bottom: 10px;
  display: block;
}

.blog-card h3 {
  font-size: 1.2rem;
  margin-bottom: 15px;
}

.blog-card p {
  color: var(--medium);
  margin-bottom: 15px;
  flex-grow: 1;
}

.blog-link {
  color: var(--primary-color);
  font-weight: 600;
  margin-top: auto;
}

/* Testimonials Section */
.testimonials {
  padding: 80px 0;
  background-color: white;
}

.testimonial-container {
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
  justify-content: center;
}

.testimonial-card {
  background-color: var(--light);
  border-radius: var(--border-radius);
  padding: 30px;
  box-shadow: var(--box-shadow);
  max-width: 350px;
  transition: var(--transition);
}

.testimonial-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.testimonial-rating {
  color: var(--secondary-color);
  margin-bottom: 15px;
}

.testimonial-text {
  font-style: italic;
  margin: 0;
}

.testimonial-author {
  margin-top: 20px;
  font-style: normal;
  text-align: right;
  color: var(--medium);
}

.testimonial-author cite {
  font-weight: 600;
  font-style: normal;
  color: var(--dark);
}

/* Contact Section */
.contact {
  padding: 80px 0;
  background-color: var(--light);
}

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

.contact-info, .contact-form {
  flex: 1;
  min-width: 300px;
}

.contact-info h3, .contact-form h3 {
  margin-bottom: 20px;
}

.contact-item {
  display: flex;
  margin-bottom: 20px;
}

.contact-icon {
  font-size: 1.5rem;
  color: var(--primary-color);
  margin-right: 15px;
  min-width: 30px;
}

.social-links {
  display: flex;
  gap: 15px;
  margin-top: 20px;
}

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

.social-link:hover, .social-link:focus {
  background-color: var(--primary-dark);
  color: white;
  transform: translateY(-3px);
}

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

.form-control {
  width: 100%;
  padding: 12px 15px;
  border: 1px solid #ddd;
  border-radius: var(--border-radius);
  font-family: var(--font-body);
  font-size: 1rem;
  transition: var(--transition);
}

.form-control:focus {
  border-color: var(--primary-color);
  outline: none;
  box-shadow: 0 0 0 3px rgba(59, 123, 204, 0.2);
}

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

/* Form validation styles */
.form-control.error {
  border-color: var(--danger);
}

.error-message {
  color: var(--danger);
  font-size: 0.85rem;
  margin-top: 5px;
  display: block;
}

/* Checkbox styles */
input[type="checkbox"] {
  margin-right: 8px;
  vertical-align: middle;
}

/* Map Section */
.map-section {
  padding-bottom: 80px;
}

.map-wrapper {
  width: 100%;
  height: 450px;
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: var(--box-shadow);
}

/* Footer */
.footer {
  background-color: #2b3744;
  color: #f5f5f5;
  padding: 70px 0 0;
}

.footer-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
  margin-bottom: 50px;
}

.footer-col {
  flex: 1;
  min-width: 250px;
}

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

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

.logo-text {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.5rem;
  color: white;
}

.footer-desc {
  color: #b8c2cc;
  margin-bottom: 20px;
}

.footer h3 {
  color: white;
  font-size: 1.2rem;
  margin-bottom: 20px;
  position: relative;
  padding-bottom: 10px;
}

.footer h3:after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 40px;
  height: 2px;
  background-color: var(--primary-color);
}

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

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

.footer-links a {
  color: #b8c2cc;
  transition: var(--transition);
}

.footer-links a:hover, .footer-links a:focus {
  color: white;
  padding-left: 5px;
}

.footer-contact-item {
  display: flex;
  margin-bottom: 15px;
  color: #b8c2cc;
}

.footer-contact-item i {
  color: var(--primary-color);
  margin-right: 10px;
  min-width: 20px;
}

.footer-contact-item a {
  color: #b8c2cc;
}

.footer-contact-item a:hover, .footer-contact-item a:focus {
  color: white;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 20px 0;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
}

.copyright {
  color: #b8c2cc;
}

.footer-policies {
  display: flex;
  gap: 20px;
}

.footer-policies a {
  color: #b8c2cc;
}

.footer-policies a:hover, .footer-policies a:focus {
  color: white;
}

/* WhatsApp Float Button */
.whatsapp-float {
  position: fixed;
  bottom: 30px;
  right: 30px;
  background-color: #25d366;
  color: white;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  text-align: center;
  font-size: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
  transition: var(--transition);
  z-index: 900;
}

.whatsapp-float:hover, .whatsapp-float:focus {
  background-color: #128c7e;
  color: white;
  transform: scale(1.1);
}

/* Breadcrumbs */
.breadcrumbs {
  background-color: var(--light);
  padding: 10px 0;
  border-bottom: 1px solid #e5e5e5;
}

.breadcrumbs ol {
  display: flex;
  list-style: none;
  flex-wrap: wrap;
  align-items: center;
}

.breadcrumbs li {
  display: flex;
  align-items: center;
}

.breadcrumbs li:not(:last-child):after {
  content: '/';
  margin: 0 10px;
  color: var(--medium);
}

.breadcrumbs a {
  color: var(--primary-color);
}

.breadcrumbs a:hover, .breadcrumbs a:focus {
  text-decoration: underline;
}

.breadcrumbs [aria-current="page"] {
  color: var(--medium);
  font-weight: 600;
}

/* Acessibilidade */
.accessibility-toggle {
  position: fixed;
  bottom: 100px;
  right: 30px;
  background-color: var(--primary-color);
  color: white;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  border: none;
  cursor: pointer;
  box-shadow: var(--box-shadow);
  z-index: 899;
}

.accessibility-panel {
  position: fixed;
  right: -300px;
  bottom: 100px;
  width: 280px;
  background-color: white;
  border-radius: var(--border-radius);
  box-shadow: var(--box-shadow);
  padding: 20px;
  transition: right 0.3s ease;
  z-index: 899;
}

.accessibility-panel.show {
  right: 30px;
}

.accessibility-panel h3 {
  margin-bottom: 15px;
  padding-bottom: 10px;
  border-bottom: 1px solid #eee;
}

.accessibility-btn {
  display: block;
  width: 100%;
  text-align: left;
  padding: 10px 15px;
  margin-bottom: 5px;
  border: 1px solid #eee;
  border-radius: var(--border-radius);
  background-color: #f9f9f9;
  cursor: pointer;
  transition: var(--transition);
}

.accessibility-btn:hover, .accessibility-btn:focus {
  background-color: #f0f0f0;
}

/* Alto contraste */
body.high-contrast {
  background-color: black;
  color: white;
}

body.high-contrast .header,
body.high-contrast .blog-card,
body.high-contrast .service-card,
body.high-contrast .testimonial-card,
body.high-contrast .contact-form,
body.high-contrast .accessibility-panel {
  background-color: black;
  color: white;
  border: 1px solid white;
}

body.high-contrast h1,
body.high-contrast h2,
body.high-contrast h3,
body.high-contrast h4,
body.high-contrast h5,
body.high-contrast h6,
body.high-contrast p,
body.high-contrast a,
body.high-contrast .nav-link {
  color: white;
}

body.high-contrast .btn-primary {
  background-color: white;
  color: black;
  border: 2px solid white;
}

body.high-contrast .btn-secondary {
  background-color: yellow;
  color: black;
  border: 2px solid yellow;
}

body.high-contrast .form-control {
  background-color: black;
  color: white;
  border: 1px solid white;
}

/* Fonte para dislexia */
body.dyslexic-font,
body.dyslexic-font p,
body.dyslexic-font h1,
body.dyslexic-font h2,
body.dyslexic-font h3,
body.dyslexic-font h4,
body.dyslexic-font h5,
body.dyslexic-font h6,
body.dyslexic-font a,
body.dyslexic-font input,
body.dyslexic-font textarea,
body.dyslexic-font button {
  font-family: 'OpenDyslexic', var(--font-body);
  line-height: 1.8;
  letter-spacing: 0.05em;
  word-spacing: 0.1em;
}

/* Estilo para foco via teclado */
.keyboard-focus {
  outline: 3px solid var(--primary-color) !important;
  outline-offset: 3px !important;
}

/* Carrossel de depoimentos */
.carousel-wrapper {
  position: relative;
  overflow: hidden;
}

.carousel-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  background-color: white;
  border: none;
  border-radius: 50%;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  color: var(--dark);
  transition: var(--transition);
  z-index: 10;
}

.carousel-nav.prev {
  left: -20px;
}

.carousel-nav.next {
  right: -20px;
}

.carousel-nav:hover {
  background-color: var(--primary-color);
  color: white;
}

.carousel-nav:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* Blog detalhe */
.blog-detail {
  padding: 80px 0;
}

.blog-detail-header {
  margin-bottom: 40px;
}

.blog-detail-header h1 {
  margin-bottom: 15px;
}

.blog-meta {
  color: var(--medium);
  margin-bottom: 20px;
}

.blog-meta span {
  margin-right: 20px;
}

.blog-meta i {
  margin-right: 5px;
}

.blog-featured-image {
  width: 100%;
  height: auto;
  border-radius: var(--border-radius);
  margin-bottom: 30px;
  box-shadow: var(--box-shadow);
}

.blog-content h2 {
  margin-top: 40px;
}

.blog-content p {
  margin-bottom: 20px;
}

.blog-content ul, .blog-content ol {
  margin-bottom: 20px;
  padding-left: 30px;
}

.blog-content li {
  margin-bottom: 10px;
}

.blog-content img {
  max-width: 100%;
  height: auto;
  border-radius: var(--border-radius);
  margin: 20px 0;
}

.blog-content blockquote {
  margin: 30px 0;
  padding: 20px;
  background-color: var(--light);
  border-left: 5px solid var(--primary-color);
  font-style: italic;
}

.blog-content a {
  color: var(--primary-color);
  text-decoration: none;
}

.blog-content a:hover {
  text-decoration: underline;
}

.blog-tags {
  margin-top: 40px;
}

.blog-tags a {
  display: inline-block;
  background-color: var(--light);
  padding: 5px 10px;
  margin-right: 10px;
  margin-bottom: 10px;
  border-radius: var(--border-radius);
  font-size: 0.9rem;
  color: var(--medium);
  transition: var(--transition);
}

.blog-tags a:hover {
  background-color: var(--primary-light);
  color: white;
  text-decoration: none;
}

.blog-share {
  margin-top: 40px;
  display: flex;
  align-items: center;
}

.blog-share span {
  margin-right: 15px;
  font-weight: 600;
}

.blog-share a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 35px;
  height: 35px;
  border-radius: 50%;
  background-color: var(--light);
  color: var(--dark);
  margin-right: 10px;
  transition: var(--transition);
}

.blog-share a:hover {
  transform: translateY(-3px);
}

.blog-share .facebook:hover {
  background-color: #3b5998;
  color: white;
}

.blog-share .twitter:hover {
  background-color: #1da1f2;
  color: white;
}

.blog-share .linkedin:hover {
  background-color: #0077b5;
  color: white;
}

.blog-share .whatsapp:hover {
  background-color: #25d366;
  color: white;
}

.related-posts {
  margin-top: 60px;
}

.related-posts h3 {
  margin-bottom: 30px;
}

/* Paginação */
.pagination {
  display: flex;
  justify-content: center;
  margin-top: 50px;
  list-style: none;
}

.pagination li {
  margin: 0 5px;
}

.pagination a, .pagination span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: var(--light);
  color: var(--dark);
  font-weight: 600;
  transition: var(--transition);
}

.pagination a:hover {
  background-color: var(--primary-light);
  color: white;
  text-decoration: none;
}

.pagination .active a {
  background-color: var(--primary-color);
  color: white;
}

.pagination .disabled span {
  opacity: 0.5;
  cursor: not-allowed;
}

/* 404 Página não encontrada */
.error-page {
  padding: 100px 0;
  text-align: center;
}

.error-code {
  font-size: 8rem;
  font-weight: 700;
  color: var(--primary-color);
  margin-bottom: 30px;
  line-height: 1;
}

.error-page h2 {
  font-size: 2.5rem;
  margin-bottom: 20px;
}

.error-page p {
  font-size: 1.1rem;
  max-width: 600px;
  margin: 0 auto 30px;
}

/* Política de privacidade e termos de uso */
.legal-page {
  padding: 80px 0;
}

.legal-page h1 {
  margin-bottom: 30px;
}

.legal-page h2 {
  margin-top: 40px;
}

.legal-page p, .legal-page li {
  margin-bottom: 15px;
}

.legal-page ul, .legal-page ol {
  margin-bottom: 30px;
  padding-left: 30px;
}

/* Página de Acessibilidade */
.accessibility-page {
  padding: 80px 0;
}

.accessibility-feature {
  margin-bottom: 30px;
  padding-bottom: 30px;
  border-bottom: 1px solid #eee;
}

.accessibility-feature:last-child {
  border-bottom: none;
}

.accessibility-page h2 {
  margin-bottom: 20px;
}

.accessibility-page ul {
  margin-bottom: 20px;
  padding-left: 30px;
}

.accessibility-page li {
  margin-bottom: 10px;
}

/* Animações */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fadeIn {
  animation: fadeIn 0.6s ease forwards;
}

@keyframes pulse {
  0% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.05);
  }
  100% {
    transform: scale(1);
  }
}

.pulse {
  animation: pulse 2s infinite;
}

/* Efeito de carregamento */
.loading {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  transition: opacity 0.3s, visibility 0.3s;
}

body.loaded .loading {
  opacity: 0;
  visibility: hidden;
}

.spinner {
  width: 50px;
  height: 50px;
  border: 5px solid rgba(59, 123, 204, 0.2);
  border-top-color: var(--primary-color);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* Utilitários */
.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }
.mb-5 { margin-bottom: 3rem; }

.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }
.mt-5 { margin-top: 3rem; }

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

.d-flex { display: flex; }
.flex-column { flex-direction: column; }
.justify-content-center { justify-content: center; }
.align-items-center { align-items: center; }
.flex-wrap { flex-wrap: wrap; }
.justify-content-between { justify-content: space-between; }

.container-sm { max-width: 900px; margin-left: auto; margin-right: auto; }
.container-lg { max-width: 1400px; margin-left: auto; margin-right: auto; }

.img-fluid { max-width: 100%; height: auto; }
.rounded { border-radius: var(--border-radius); }
.shadow { box-shadow: var(--box-shadow); }

/* Responsividade */
@media (max-width: 992px) {
  h1 {
    font-size: 2.2rem;
  }
  
  h2 {
    font-size: 1.8rem;
  }
  
  h3 {
    font-size: 1.3rem;
  }
  
  .about-container {
    flex-direction: column;
  }
  
  .about-image, .about-text {
    width: 100%;
  }
  
  .error-code {
    font-size: 6rem;
  }
}

@media (max-width: 768px) {
  html {
    font-size: 15px;
  }
  
  .hero {
    padding: 70px 0;
  }
  
  .hero h1 {
    font-size: 2rem;
  }
  
  .hero p {
    font-size: 1.1rem;
  }
  
  .hamburger {
    display: block;
  }
  
  .nav-list {
    position: fixed;
    top: var(--header-height);
    left: -100%;
    flex-direction: column;
    background-color: white;
    width: 100%;
    height: calc(100vh - var(--header-height));
    overflow-y: auto;
    transition: var(--transition);
    padding: 20px;
    box-shadow: 0 10px 10px rgba(0, 0, 0, 0.1);
  }
  
  .nav-list.show {
    left: 0;
  }
  
  .nav-item {
    margin: 0 0 15px 0;
  }
  
  .nav-link {
    padding: 10px 0;
    font-size: 1.1rem;
  }
  
  .footer-grid {
    flex-direction: column;
    gap: 30px;
  }
  
  .footer-col {
    width: 100%;
  }
  
  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }
  
  .footer-policies {
    justify-content: center;
  }
  
  .blog-meta span {
    display: block;
    margin-bottom: 5px;
  }
  
  .blog-share {
    flex-direction: column;
    align-items: flex-start;
  }
  
  .blog-share span {
    margin-bottom: 10px;
  }
  
  .accessibility-panel {
    width: 250px;
  }
}

@media (max-width: 576px) {
  .container {
    padding: 0 15px;
  }
  
  .service-cards {
    grid-template-columns: 1fr;
  }
  
  .blog-grid {
    grid-template-columns: 1fr;
  }
  
  .contact-container {
    flex-direction: column;
  }
  
  .hero-buttons {
    flex-direction: column;
  }
  
  .hero-buttons .btn {
    width: 100%;
  }
  
  .whatsapp-float {
    width: 50px;
    height: 50px;
    font-size: 24px;
    bottom: 20px;
    right: 20px;
  }
  
  .accessibility-toggle {
    bottom: 80px;
    width: 40px;
    height: 40px;
    font-size: 18px;
  }
  
  .accessibility-panel {
    bottom: 80px;
  }
  
  .error-code {
    font-size: 5rem;
  }
  
  .testimonial-card {
    max-width: 100%;
  }
}

/* Acessibilidade */
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* Modo escuro */
@media (prefers-color-scheme: dark) {
  :root {
    --dark: #f0f0f0;
    --medium: #b0b0b0;
    --light: #202124;
    --white: #18191a;
  }
  
  .header, .blog-card, .service-card {
    background-color: #2a2a2a;
  }
  
  .form-control {
    background-color: #333;
    border-color: #555;
    color: #f0f0f0;
  }
  
  .testimonial-card {
    background-color: #2a2a2a;
  }
  
  img {
    opacity: 0.9;
  }
}