/* --- GLOBAIS E VARIÁVEIS DE COR --- */

@import url("https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700;800&display=swap");

:root {
  --black: #1a1a1a;
  --blue: #0097b2;
  --white: #ffffff;
  --gray-light: #f0f0f0;
  --gray-border: #e9eef1;
  --degrade-BB: linear-gradient(90deg, #3d3b3a, #0097b2);
  --degrade-BlueDark: linear-gradient(135deg, #007c91, #005a6b);

  /* Variáveis para modo claro (padrão) */
  --bg-primary: #ffffff;
  --bg-secondary: #f0f0f0;
  --text-primary: #333333;
  --text-secondary: #555555;
  --card-bg: #ffffff;
  --border-color: #e9eef1;
  --shadow-light: rgba(0, 0, 0, 0.05);
  --shadow-medium: rgba(0, 0, 0, 0.08);
}

/* Variáveis para modo escuro */
@media (prefers-color-scheme: dark) {
  :root {
    --bg-primary: #1a1a1a;
    --bg-secondary: #2a2a2a;
    --text-primary: #ffffff;
    --text-secondary: #cccccc;
    --card-bg: #2d2d2d;
    --border-color: #404040;
    --shadow-light: rgba(0, 0, 0, 0.3);
    --shadow-medium: rgba(0, 0, 0, 0.4);
    --gray-light: #2a2a2a;
    --gray-border: #404040;
  }
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* --- FUNDO DO SITE --- */
body {
  font-family: "Poppins", sans-serif;
  color: var(--text-primary);
  line-height: 1.6;
  background-image: url("img/fundo-geral.png");
  background-color: var(--bg-primary);
  background-size: cover;
  background-attachment: fixed;
  font-size: 16px;
}

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 20px;
}

/* --- RESPONSIVIDADE DO CONTAINER --- */
@media (max-width: 1200px) {
  .container {
    max-width: 960px;
    padding: 0 25px;
  }
}

@media (max-width: 992px) {
  .container {
    max-width: 720px;
    padding: 0 20px;
  }
}

@media (max-width: 768px) {
  .container {
    max-width: 100%;
    padding: 0 15px;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 12px;
  }
}

/* --- TÍTULOS DE SEÇÃO RESPONSIVOS --- */
.section-title,
.section-title-left {
  font-size: clamp(1.8rem, 4vw, 2.5rem);
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.2;
  margin-bottom: 40px;
}

.section-title span,
.section-title-left span {
  display: block;
  font-size: clamp(0.8rem, 1.5vw, 0.9rem);
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 5px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.section-title {
  text-align: center;
}

.section-title-left {
  text-align: left;
}

@media (max-width: 768px) {
  .section-title,
  .section-title-left {
    margin-bottom: 30px;
    text-align: center;
  }

  .section-title-left {
    text-align: center;
  }
}

/* --- COMPONENTES RESPONSIVOS --- */
.btn-gradient {
  padding: 12px 28px;
  color: var(--white);
  border: none;
  cursor: pointer;
  background-image: var(--degrade-BB);
  font-weight: 600;
  border-radius: 25px;
  transition: all 0.3s ease;
  font-size: clamp(0.9rem, 1.8vw, 1rem);
  display: inline-block;
  text-align: center;
  min-width: 140px;
  text-decoration: none;
}

.btn-gradient:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 6px 15px rgba(0, 151, 178, 0.3);
}

@media (max-width: 768px) {
  .btn-gradient {
    padding: 12px 24px;
    width: auto;
    max-width: 250px;
  }
}

@media (max-width: 480px) {
  .btn-gradient {
    padding: 12px 20px;
    font-size: 0.95rem;
  }
}

/* --- HEADER RESPONSIVO --- */
.main-header {
  background: var(--card-bg);
  backdrop-filter: blur(10px);
  padding: 12px 0;
  box-shadow: 0 2px 4px var(--shadow-light);
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid var(--border-color);
}

@media (prefers-color-scheme: dark) {
  .main-header {
    background: rgba(42, 42, 42, 0.95);
    border-bottom: 1px solid #404040;
  }
}

.main-header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
}

.logo {
  display: flex;
  align-items: center;
  font-size: clamp(1.1rem, 2.5vw, 1.3rem);
  font-weight: 700;
  color: var(--text-primary);
}

.logo img {
  height: clamp(32px, 4vw, 36px);
  width: clamp(32px, 4vw, 36px);
  margin-right: 10px;
  border-radius: 50%;
  object-fit: cover;
}

@media (max-width: 480px) {
  .main-header {
    padding: 10px 0;
  }

  .logo {
    font-size: 1.2rem;
  }

  .logo img {
    height: 30px;
    width: 30px;
    margin-right: 8px;
  }
}

/* --- SEÇÃO HERO RESPONSIVA --- */
.hero-section {
  position: relative;
  color: var(--white);
  min-height: 85vh;
  padding: clamp(60px, 10vw, 100px) 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-background {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: var(--black);
  background-image: url("img/Fundo.jpg");
  background-size: cover;
  background-position: center;
  z-index: -2;
}

.hero-section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(26, 26, 26, 0.75);
  z-index: -1;
}

.hero-content {
  z-index: 1;
  text-align: center;
  max-width: 700px;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
}

.hero-content .hero-image {
  max-width: min(350px, 80vw);
  width: 100%;
  height: auto;
}

.hero-content .hero-title {
  font-size: clamp(2rem, 6vw, 2.8rem);
  line-height: 1.2;
  font-weight: 800;
  margin-top: clamp(-30px, -4vw, -40px);
  position: relative;
  z-index: 2;
}

.highlight-blue {
  background-color: var(--blue);
  color: var(--white);
  padding: clamp(5px, 1.5vw, 7px) clamp(12px, 3vw, 16px);
  border-radius: 0;
  display: inline-block;
  text-shadow: none;
}

.tagline-after {
  display: block;
  font-size: clamp(1.5rem, 4.5vw, 2rem);
  margin-top: 8px;
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
}

.hero-content .subtitle {
  font-size: clamp(0.95rem, 2.5vw, 1.1rem);
  font-weight: 300;
  margin: 20px auto 30px;
  opacity: 0.9;
  max-width: min(500px, 85vw);
  padding: 0 10px;
  line-height: 1.5;
}

.btn-hero {
  padding: clamp(12px, 2.5vw, 15px) clamp(25px, 5vw, 32px);
  font-size: clamp(0.95rem, 2.2vw, 1.1rem);
}

@media (max-width: 768px) {
  .hero-section {
    min-height: 75vh;
    padding: 50px 0;
  }

  .hero-content .hero-image {
    max-width: 280px;
  }

  .hero-content .hero-title {
    margin-top: -25px;
  }
}

@media (max-width: 480px) {
  .hero-section {
    min-height: 70vh;
    padding: 40px 0;
  }

  .hero-content .hero-image {
    max-width: 240px;
  }

  .hero-content .hero-title {
    margin-top: -15px;
  }

  .hero-content .subtitle {
    margin: 15px auto 25px;
  }
}

/* --- SEÇÕES GENÉRICAS RESPONSIVAS --- */
.solution-section,
.about-us-section {
  padding: clamp(50px, 8vw, 80px) 0;
  background-color: var(--bg-primary);
}

.social-proof-section,
.faq-section {
  padding: clamp(50px, 8vw, 80px) 0;
  background-color: var(--bg-secondary);
}

/* --- SEÇÃO PROBLEM RESPONSIVA --- */
.problem-section {
  padding: clamp(50px, 8vw, 80px) 0;
  position: relative;
  background-color: transparent;
}

.problem-section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(26, 26, 26, 0.9);
  z-index: -1;
}

.problem-section .section-title {
  color: var(--white);
}

.problem-gallery {
  display: flex;
  gap: clamp(15px, 2.5vw, 25px);
  overflow-x: auto;
  padding-bottom: 15px;
  -ms-overflow-style: none;
  scrollbar-width: none;
  scroll-snap-type: x mandatory;
}

.problem-gallery::-webkit-scrollbar {
  display: none;
}

.problem-section .card {
  background-color: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-top: 3px solid var(--blue);
  border-radius: 10px;
  padding: clamp(20px, 4vw, 30px) clamp(18px, 3.5vw, 25px);
  text-align: start;
  transition: all 0.3s ease;
  flex: 0 0 clamp(260px, 55vw, 280px);
  scroll-snap-align: start;
  min-height: 200px;
}

@media (prefers-color-scheme: dark) {
  .problem-section .card {
    background-color: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
  }

  .problem-section .card:hover {
    background-color: rgba(255, 255, 255, 0.15);
    transform: translateY(-5px);
  }
}

.problem-section .card:hover {
  transform: translateY(-5px);
  background-color: rgba(255, 255, 255, 0.1);
}

.problem-section .card img {
  height: clamp(35px, 6vw, 42px);
  margin-bottom: 18px;
  filter: brightness(0) saturate(100%) invert(52%) sepia(87%) saturate(3477%)
    hue-rotate(159deg) brightness(100%) contrast(101%);
}

.problem-section .card h3 {
  color: var(--white);
  font-size: clamp(1.1rem, 3vw, 1.3rem);
  margin-bottom: 12px;
  line-height: 1.3;
}

.problem-section .card p {
  color: rgba(255, 255, 255, 0.8);
  line-height: 1.5;
  font-size: clamp(0.85rem, 2.2vw, 0.95rem);
}

@media (max-width: 768px) {
  .problem-gallery {
    gap: 18px;
    padding-left: 5px;
    padding-right: 5px;
  }

  .problem-section .card {
    flex: 0 0 75vw;
    max-width: 300px;
  }
}

@media (max-width: 480px) {
  .problem-section .card {
    flex: 0 0 85vw;
    padding: 20px 16px;
  }
}

/* --- SEÇÃO SOLUTION RESPONSIVA --- */
.solution-section .container {
  max-width: 750px;
}

.solution-image {
  text-align: left;
  margin-bottom: 18px;
}

.solution-image img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
}

.solution-text ul {
  list-style: none;
  padding-left: 0;
  margin-top: 25px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.solution-text li {
  background-color: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: 10px;
  padding: clamp(12px, 3vw, 16px) clamp(16px, 4vw, 20px);
  font-size: clamp(0.9rem, 2.2vw, 1rem);
  display: flex;
  align-items: flex-start;
  gap: 12px;
  color: var(--text-primary);
  line-height: 1.5;
}

.solution-text li::before {
  content: "✔";
  color: var(--blue);
  font-weight: bold;
  font-size: 1.1rem;
  margin-top: 1px;
  flex-shrink: 0;
}

@media (max-width: 768px) {
  .solution-image {
    text-align: center;
    margin-bottom: 25px;
  }

  .solution-text li {
    text-align: left;
    padding: 15px 18px;
  }
}

/* --- TESTIMONIALS RESPONSIVOS --- */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: clamp(20px, 4vw, 30px);
}

.testimonial-card {
  background: var(--card-bg);
  padding: clamp(20px, 4vw, 30px);
  padding-left: clamp(18px, 3.5vw, 25px);
  border-radius: 10px;
  border-left: 6px solid var(--blue);
  box-shadow: 0 8px 25px var(--shadow-medium);
  position: relative;
  overflow: hidden;
  color: var(--text-primary);
}

.testimonial-card .quote-icon {
  position: absolute;
  top: 8px;
  right: 15px;
  font-size: clamp(4rem, 10vw, 6rem);
  color: var(--border-color);
  line-height: 1;
  z-index: 1;
  font-weight: 800;
}

@media (prefers-color-scheme: dark) {
  .testimonial-card .quote-icon {
    color: #404040;
  }
}

.testimonial-card blockquote {
  font-size: clamp(0.9rem, 2.2vw, 1.05rem);
  font-weight: 500;
  margin-bottom: 15px;
  position: relative;
  z-index: 2;
  color: var(--text-primary);
  line-height: 1.5;
}

.testimonial-card cite {
  display: block;
  font-weight: 600;
  font-style: normal;
  text-align: left;
  position: relative;
  z-index: 2;
  color: var(--text-secondary);
  font-size: clamp(0.85rem, 1.8vw, 0.95rem);
}

@media (max-width: 768px) {
  .testimonials-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .testimonial-card {
    padding: 25px 20px;
  }

  .testimonial-card .quote-icon {
    font-size: 4.5rem;
    right: 12px;
  }
}

@media (max-width: 480px) {
  .testimonials-grid {
    grid-template-columns: minmax(250px, 1fr);
  }
}

/* --- ABOUT US RESPONSIVO --- */
.about-us-section .container {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: clamp(40px, 8vw, 70px);
  align-items: center;
}

.about-us-image {
  text-align: center;
  background-color: var(--bg-secondary);
  border-radius: 12px;
  padding: clamp(12px, 2.5vw, 16px);
  box-shadow: 0 6px 12px var(--shadow-light);
}

.about-us-image img {
  width: 100%;
  max-width: 350px;
  border-radius: 8px;
}

.about-us-text p {
  margin-bottom: 12px;
  font-size: clamp(0.9rem, 2.2vw, 1rem);
  color: var(--text-primary);
  line-height: 1.6;
}

.about-us-section .section-title-left {
  color: var(--blue);
}

@media (max-width: 768px) {
  .about-us-section .container {
    grid-template-columns: 1fr;
    gap: 30px;
    text-align: center;
  }

  .about-us-image {
    order: -1;
    margin-bottom: 15px;
  }
}

/* --- FAQ RESPONSIVO --- */
.faq-list {
  max-width: 700px;
  margin: 0 auto;
}

.faq-item {
  background: var(--card-bg);
  margin-bottom: 12px;
  border-radius: 10px;
  border: 1px solid var(--border-color);
  box-shadow: 0 3px 8px var(--shadow-light);
  transition: all 0.3s ease;
}

.faq-item:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 15px var(--shadow-medium);
}

.faq-question {
  padding: clamp(16px, 3.5vw, 20px);
  cursor: pointer;
  font-size: clamp(0.95rem, 2.5vw, 1.1rem);
  margin: 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: 600;
  color: var(--text-primary);
  line-height: 1.4;
}

.faq-question::after {
  content: "+";
  font-size: clamp(1.3rem, 3.5vw, 1.5rem);
  color: var(--blue);
  transition: transform 0.3s ease;
  flex-shrink: 0;
  margin-left: 12px;
}

.faq-item.open .faq-question::after {
  transform: rotate(45deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease-out;
}

.faq-answer p {
  padding: 0 clamp(16px, 3.5vw, 20px) clamp(16px, 3.5vw, 20px);
  color: var(--text-secondary);
  border-top: 1px solid var(--border-color);
  margin-top: -8px;
  padding-top: 16px;
  font-size: clamp(0.85rem, 2.2vw, 0.95rem);
  line-height: 1.5;
}

@media (max-width: 480px) {
  .faq-question {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }

  .faq-question::after {
    align-self: flex-end;
    margin-left: 0;
  }
}

/* --- SEÇÃO CTA RESPONSIVA --- */
.cta-section {
  text-align: center;
  color: var(--white);
  background-image: var(--degrade-BlueDark);
  padding: clamp(50px, 8vw, 80px) 0;
}

.cta-section h2 {
  font-size: clamp(1.7rem, 5vw, 2.3rem);
  margin-bottom: 15px;
  color: var(--white);
  line-height: 1.2;
}

.cta-section p {
  font-size: clamp(0.95rem, 2.5vw, 1.1rem);
  margin-bottom: 25px;
  opacity: 0.9;
  max-width: min(500px, 85vw);
  margin: 0 auto 25px;
  line-height: 1.5;
  padding: 0 12px;
}

.btn-cta {
  font-size: clamp(1rem, 2.5vw, 1.15rem);
}

/* --- FOOTER RESPONSIVO --- */
.main-footer {
  color: var(--white);
  text-align: center;
  padding: clamp(25px, 5vw, 35px) 0;
  position: relative;
  background-color: transparent;
}

.main-footer::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(26, 26, 26, 0.95);
  z-index: -1;
}

.main-footer p {
  font-size: clamp(0.85rem, 2vw, 0.95rem);
}

/* --- MODAL RESPONSIVO --- */
.modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  justify-content: center;
  align-items: center;
  padding: 15px;
}

.modal-content {
  background: var(--card-bg);
  padding: clamp(20px, 5vw, 30px);
  border-radius: 8px;
  width: 100%;
  max-width: 450px;
  position: relative;
  color: var(--text-primary);
  max-height: 85vh;
  overflow-y: auto;
}

.close-button {
  position: absolute;
  top: 12px;
  right: 15px;
  font-size: clamp(1.3rem, 3.5vw, 1.6rem);
  color: var(--text-secondary);
  cursor: pointer;
}

.form-group {
  display: grid;
  grid-template-columns: 100px 1fr;
  gap: 12px;
  align-items: center;
  margin-bottom: 15px;
}

.form-group label {
  font-weight: 500;
  text-align: right;
  color: var(--text-primary);
  font-size: clamp(0.85rem, 2.2vw, 0.95rem);
}

.form-group input,
.form-group select {
  width: 100%;
  padding: clamp(8px, 2.2vw, 10px);
  border: 1px solid var(--border-color);
  border-radius: 6px;
  background-color: var(--bg-primary);
  color: var(--text-primary);
  font-size: clamp(0.85rem, 2.2vw, 0.95rem);
}

@media (prefers-color-scheme: dark) {
  .form-group input,
  .form-group select {
    background-color: #2a2a2a;
  }

  .form-group input:focus,
  .form-group select:focus {
    background-color: #333333;
  }
}

@media (max-width: 768px) {
  .form-group {
    grid-template-columns: 1fr;
    gap: 6px;
  }

  .form-group label {
    text-align: left;
  }
}

/* --- SEÇÃO DE FORMULÁRIO DE CONTATO RESPONSIVA --- */
#contact-form-section {
  padding: clamp(50px, 8vw, 80px) 0;
  background-color: var(--bg-secondary);
  text-align: center;
}

@media (prefers-color-scheme: dark) {
  #contact-form-section {
    background-color: #232323;
  }
}

#contact-form-section .container {
  max-width: 500px;
  background-color: var(--card-bg);
  padding: clamp(25px, 6vw, 35px);
  border-radius: 12px;
  box-shadow: 0 10px 30px var(--shadow-medium);
}

#contact-form-section .section-title {
  margin-bottom: clamp(20px, 4vw, 25px);
  font-size: clamp(1.6rem, 4vw, 2rem);
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.2;
}

#contact-form-section .section-title span {
  display: block;
  font-size: clamp(0.8rem, 1.8vw, 0.9rem);
  font-weight: 400;
  color: var(--text-secondary);
  margin-top: 5px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

#contactFormSection {
  display: flex;
  flex-direction: column;
  gap: clamp(12px, 3vw, 16px);
}

#contactFormSection .form-group {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
  text-align: left;
}

#contactFormSection label {
  font-weight: 600;
  color: var(--text-primary);
  font-size: clamp(0.9rem, 2.2vw, 1rem);
  margin-bottom: 2px;
}

#contactFormSection input {
  width: 100%;
  padding: clamp(12px, 2.5vw, 14px);
  border: 1.5px solid var(--border-color);
  border-radius: 8px;
  font-size: clamp(0.9rem, 2.2vw, 1rem);
  transition: all 0.3s ease;
  background-color: var(--bg-secondary);
  color: var(--text-primary);
  box-sizing: border-box;
}

@media (prefers-color-scheme: dark) {
  #contactFormSection input {
    background-color: #2a2a2a;
    border-color: #404040;
  }
}

#contactFormSection input:focus {
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(0, 151, 178, 0.12);
  background-color: var(--bg-primary);
}

@media (prefers-color-scheme: dark) {
  #contactFormSection input:focus {
    background-color: #333333;
  }
}

#contactFormSection input::placeholder {
  color: var(--text-secondary);
  opacity: 0.7;
  font-size: clamp(0.85rem, 2vw, 0.95rem);
}

#contactFormSection .btn-gradient {
  width: 100%;
  padding: clamp(14px, 3vw, 16px);
  font-size: clamp(1rem, 2.5vw, 1.1rem);
  font-weight: 600;
  margin-top: clamp(12px, 3vw, 16px);
  letter-spacing: 0.5px;
  border-radius: 8px;
  transition: all 0.3s ease;
}

#contactFormSection .btn-gradient:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 151, 178, 0.25);
}

/* --- AJUSTES ESPECÍFICOS PARA MOBILE --- */
@media (max-width: 768px) {
  #contact-form-section {
    padding: 40px 0;
  }

  #contact-form-section .container {
    margin: 0 15px;
    padding: 25px 20px;
    max-width: none;
  }

  #contact-form-section .section-title {
    font-size: 1.5rem;
    margin-bottom: 20px;
  }

  #contactFormSection {
    gap: 14px;
  }

  #contactFormSection label {
    font-size: 0.95rem;
  }

  #contactFormSection input {
    padding: 13px;
    font-size: 0.95rem;
  }

  #contactFormSection .btn-gradient {
    padding: 15px;
    font-size: 1rem;
    margin-top: 15px;
  }
}

@media (max-width: 480px) {
  #contact-form-section .container {
    margin: 0 12px;
    padding: 22px 18px;
  }

  #contact-form-section .section-title {
    font-size: 1.4rem;
  }

  #contactFormSection input {
    padding: 12px;
    font-size: 0.9rem;
  }

  #contactFormSection .btn-gradient {
    padding: 14px;
    font-size: 0.95rem;
  }
}

/* --- ANIMAÇÕES RESPONSIVAS --- */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.5s ease-out, transform 0.5s ease-out;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* --- RESPONSIVIDADE ADICIONAL PARA DISPOSITIVOS ESPECÍFICOS --- */

/* Tablets em paisagem */
@media (min-width: 769px) and (max-width: 1024px) {
  .container {
    max-width: 90%;
  }

  .hero-content .hero-title {
    font-size: 2.5rem;
  }

  .testimonials-grid {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  }
}

/* Tablets em retrato */
@media (min-width: 481px) and (max-width: 768px) {
  .problem-gallery {
    justify-items: center;
  }

  .problem-section .card {
    flex: 0 0 min(350px, 70vw);
  }

  .hero-content .hero-image {
    max-width: 320px;
  }
}

/* Celulares pequenos */
@media (max-width: 320px) {
  .container {
    padding: 0 10px;
  }

  .hero-content .hero-title {
    font-size: 1.6rem;
  }

  .tagline-after {
    font-size: 1.3rem;
  }

  .btn-gradient {
    padding: 10px 18px;
    font-size: 0.85rem;
  }

  .problem-section .card {
    flex: 0 0 92vw;
    padding: 18px 14px;
  }

  .testimonial-card {
    padding: 20px 16px;
  }

  .faq-question {
    padding: 14px;
  }

  #contact-form-section .container {
    padding: 20px;
  }
}

/* Ajustes para telas muito grandes */
@media (min-width: 1440px) {
  .container {
    max-width: 1200px;
  }

  .hero-content .hero-title {
    font-size: 3.2rem;
  }

  .section-title,
  .section-title-left {
    font-size: 2.8rem;
  }
}

/* Otimizações para performance em telas pequenas */
@media (max-width: 768px) {
  body {
    background-attachment: scroll; /* Remove parallax em mobile para melhor performance */
  }

  .hero-background {
    background-attachment: scroll;
  }

  /* Reduz animações em dispositivos móveis para melhor performance */
  .btn-gradient:hover {
    transform: translateY(-1px);
  }

  .faq-item:hover {
    transform: translateY(-2px);
  }

  .testimonial-card:hover,
  .problem-section .card:hover {
    transform: translateY(-3px);
  }
}

/* Ajustes para impressão */
@media print {
  .main-header,
  .btn-gradient,
  .modal {
    display: none !important;
  }

  body {
    background: white !important;
    color: black !important;
  }

  .hero-section::before,
  .problem-section::before,
  .main-footer::before {
    display: none;
  }
}

/* Melhorias de acessibilidade */
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .fade-in {
    transition: none;
  }

  .btn-gradient:hover,
  .faq-item:hover,
  .testimonial-card:hover,
  .problem-section .card:hover {
    transform: none;
  }
}

/* Suporte para telas de alta densidade */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
  .hero-background,
  body {
    background-size: cover;
    background-position: center;
  }
}

/* Orientação específica para tablets */
@media (orientation: landscape) and (max-height: 600px) {
  .hero-section {
    min-height: 100vh;
    padding: 30px 0;
  }

  .hero-content .hero-image {
    max-width: 250px;
  }

  .hero-content .hero-title {
    margin-top: -15px;
  }
}

/* Melhorias para navegação por teclado */
.btn-gradient:focus,
.faq-question:focus,
#contactFormSection input:focus,
.form-group input:focus,
.form-group select:focus {
  outline: 2px solid var(--blue);
  outline-offset: 2px;
}

/* Ajustes finais para consistência cross-browser */
input,
select,
button {
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
}

button {
  border: none;
  background: none;
  cursor: pointer;
}

img {
  max-width: 100%;
  height: auto;
}
