/* ==========================================================================
   KMIL SÊNIOR CARE - DESIGN SYSTEM & STYLESHEET
   Aesthetics requested by Traffic Manager
   ========================================================================== */

/* --- CSS Variables / Design Tokens --- */
:root {
  --care-primary: #52AEC0;        /* Azul / Turquesa KMIL */
  --care-primary-dark: #378696;
  --care-accent: #E5BD42;         /* Amarelo / Dourado KMIL */
  --care-accent-hover: #d1a733;
  --care-text-dark: #1F2937;
  --care-text-light: #6B7280;
  --care-bg-light: #F4F4F2;
  --care-white: #FFFFFF;
  --care-shadow: 0 14px 40px rgba(82, 174, 192, 0.12);
  --care-font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  --accent-whatsapp: #28C825;
  --accent-whatsapp-hover: #20a01d;
  --transition-fast: 0.25s ease;
  --transition-smooth: 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

/* --- Base & Reset --- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

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

body {
  font-family: var(--care-font);
  color: var(--care-text-dark);
  background-color: var(--care-bg-light);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

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

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

ul {
  list-style: none;
}

/* --- Typography Helpers --- */
h1, h2, h3, h4 {
  font-family: var(--care-font);
  font-weight: 700;
  line-height: 1.25;
}

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

.section-tag {
  display: inline-block;
  font-size: 0.875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--care-accent);
  background-color: rgba(197, 168, 128, 0.15);
  padding: 6px 16px;
  border-radius: 50px;
  margin-bottom: 0.75rem;
}

.section-tag.light {
  color: var(--care-accent);
  background-color: rgba(197, 168, 128, 0.2);
}

.section-title {
  font-size: 2.25rem;
  color: var(--care-primary);
}

.section-title.light {
  color: var(--care-white);
}

/* --- Container --- */
.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 16px 36px;
  font-size: 1rem;
  font-weight: 700;
  border-radius: 50px;
  border: none;
  cursor: pointer;
  transition: var(--transition-smooth);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

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

.btn-primary:hover {
  background-color: var(--care-primary-dark);
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(82, 174, 192, 0.4);
}

.btn-whatsapp {
  background-color: var(--accent-whatsapp);
  color: var(--care-white);
}

.btn-whatsapp:hover {
  background-color: var(--accent-whatsapp-hover);
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(40, 200, 37, 0.4);
}

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

.btn-secondary:hover {
  background-color: var(--care-accent-hover);
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(229, 189, 66, 0.4);
}

/* --- Hero Logo (Sem Navbar para Foco Total em Conversão) --- */
.care-hero-logo {
  margin-bottom: 1.5rem;
  display: flex;
  justify-content: center;
}

.care-hero-logo img {
  height: 180px;
  max-height: 200px;
  width: auto;
  object-fit: contain;
  filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.35));
}

/* --- Traffic Manager Hero Section --- */
.care-hero {
  position: relative;
  background-image: url('assets/imagens/nova imagem plano de fundo.png');
  background-size: cover;
  background-position: center 20%;
  background-repeat: no-repeat;
  padding: 60px 20px 80px 20px;
  min-height: 100vh;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
}

.care-hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to bottom, rgba(18, 38, 50, 0.88) 0%, rgba(82, 174, 192, 0.65) 100%);
  z-index: 1;
}

.care-hero-content {
  position: relative;
  z-index: 2;
  max-width: 900px;
  margin: 0 auto;
}

.care-h1 {
  font-size: clamp(1.85rem, 4.5vw, 3.25rem);
  font-weight: 800;
  color: var(--care-white);
  line-height: 1.2;
  margin-bottom: 14px;
  letter-spacing: -0.02em;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.care-h2 {
  font-size: clamp(1rem, 2.2vw, 1.35rem);
  font-weight: 400;
  color: rgba(255, 255, 255, 0.95);
  line-height: 1.5;
  max-width: 800px;
  margin: 0 auto 16px auto;
  text-shadow: 0 1px 5px rgba(0, 0, 0, 0.2);
}

/* --- Traffic Manager Testimonials Section --- */
.care-testimonials-section {
  position: relative;
  z-index: 3;
  max-width: 1200px;
  margin: -50px auto 60px auto;
  padding: 0 20px;
}

.care-testimonials-container {
  display: flex;
  gap: 20px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-padding: 20px;
  -webkit-overflow-scrolling: touch;
  padding-bottom: 24px;
  padding-top: 10px;
  -ms-overflow-style: none;
  scrollbar-width: none;
}

.care-testimonials-container::-webkit-scrollbar {
  display: none;
}

.care-card {
  background: var(--care-white);
  border-radius: 16px;
  padding: 40px 32px;
  box-shadow: var(--care-shadow);
  flex: 0 0 85vw;
  scroll-snap-align: center;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border-top: 4px solid var(--care-accent);
  position: relative;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.care-card-arrow {
  position: absolute;
  top: 24px;
  right: 24px;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background-color: rgba(197, 168, 128, 0.15);
  color: var(--care-accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  animation: care-pulse-arrow 2s infinite ease-in-out;
}

@keyframes care-pulse-arrow {
  0%, 100% { transform: translateX(0); opacity: 0.7; }
  50% { transform: translateX(4px); opacity: 1; }
}

.care-quote-icon {
  font-size: 4rem;
  color: var(--care-accent);
  opacity: 0.4;
  margin-bottom: -10px;
  margin-top: -20px;
  line-height: 1;
  font-family: 'Playfair Display', Georgia, serif;
  font-weight: bold;
}

.care-card-text {
  font-size: 1.05rem;
  color: var(--care-text-dark);
  font-style: italic;
  margin-bottom: 24px;
  flex-grow: 1;
}

.care-card-author {
  font-weight: 700;
  font-size: 1rem;
  color: var(--care-primary);
  display: flex;
  align-items: center;
  gap: 12px;
}

.care-author-status {
  width: 8px;
  height: 8px;
  background-color: var(--care-accent);
  border-radius: 50%;
  display: inline-block;
}

/* --- Section General Styling --- */
section {
  padding: 5rem 0;
}

/* --- Quem Somos --- */
.about {
  background-color: var(--care-white);
  color: var(--care-text-dark);
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.about-image {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--care-shadow);
}

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

.about-image:hover img {
  transform: scale(1.03);
}

.about-text h2 {
  font-size: 2.25rem;
  color: var(--care-text-dark);
  margin-bottom: 1.5rem;
  text-transform: uppercase;
}

.about-text p {
  font-size: 1.1rem;
  line-height: 1.8;
  margin-bottom: 1rem;
  color: #374151;
}

.highlight-span {
  font-weight: 700;
  color: var(--care-primary-dark);
}

/* --- Banner Phrase --- */
.banner-phrase {
  background-color: #1E293B;
  color: #FFFFFF;
  text-align: center;
  padding: 3.5rem 0;
}

.banner-phrase p {
  font-size: 1.35rem;
  font-weight: 700;
  max-width: 900px;
  margin: 0 auto;
  line-height: 1.6;
  color: #FFFFFF;
}

.banner-phrase p span {
  color: var(--care-accent);
}

/* --- Por Que Nós --- */
.why-us {
  background-color: var(--care-bg-light);
}

.why-us-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3.5rem;
  align-items: center;
}

.why-us-content h2 {
  font-size: 2.25rem;
  color: var(--care-primary);
  margin-bottom: 1.5rem;
  text-transform: uppercase;
}

.why-us-content p {
  font-size: 1.05rem;
  line-height: 1.8;
  color: var(--care-text-dark);
}

.why-us-image {
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--care-shadow);
}

/* --- Serviços (O Que Fazemos) --- */
.services {
  background-color: var(--care-white);
}

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

.service-card {
  background-color: var(--care-white);
  border-radius: 16px;
  padding: 2.5rem 1.75rem;
  box-shadow: var(--care-shadow);
  transition: var(--transition-smooth);
  border: 1px solid #EAEAEA;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background-color: var(--care-accent);
  transition: var(--transition-fast);
}

.service-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(44, 34, 30, 0.15);
}

.service-icon-box {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  background-color: rgba(82, 174, 192, 0.15);
  color: var(--care-primary-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  margin-bottom: 1.5rem;
}

.service-card h3 {
  font-size: 1.2rem;
  margin-bottom: 1rem;
  text-transform: uppercase;
  color: var(--care-text-dark);
}

.service-card p {
  font-size: 0.95rem;
  color: #4B5563;
  line-height: 1.6;
}

/* --- Nossos Cuidadores --- */
.caregivers {
  background-color: var(--care-bg-light);
  text-align: center;
}

.caregivers-content {
  max-width: 900px;
  margin: 0 auto;
}

.caregivers-content p {
  font-size: 1.1rem;
  line-height: 1.8;
  color: var(--care-text-dark);
  margin-bottom: 2.5rem;
}

/* --- Benefícios --- */
.benefits {
  background-color: #1E293B;
  color: var(--care-white);
}

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

.benefit-card {
  background: rgba(255, 255, 255, 0.07);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(229, 189, 66, 0.35);
  border-radius: 16px;
  padding: 2rem 1.5rem;
  text-align: center;
  transition: var(--transition-smooth);
}

.benefit-card:hover {
  background: rgba(255, 255, 255, 0.12);
  transform: translateY(-5px);
}

.benefit-icon {
  font-size: 2.5rem;
  color: var(--care-accent);
  margin-bottom: 1rem;
}

.benefit-card h3 {
  font-size: 1.15rem;
  margin-bottom: 0.75rem;
  color: #FFFFFF;
}

/* --- Missão, Visão e Valores --- */
.mvv {
  background-color: var(--care-white);
}

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

.mvv-card {
  background-color: var(--care-bg-light);
  border-radius: 16px;
  padding: 2.5rem 2rem;
  border-left: 4px solid var(--care-accent);
  box-shadow: var(--care-shadow);
}

.mvv-card h3 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  color: var(--care-primary);
}

.mvv-card p {
  font-size: 1rem;
  color: var(--care-text-light);
  line-height: 1.7;
}

.values-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-top: 1rem;
}

.values-list li {
  font-size: 0.95rem;
  line-height: 1.5;
  color: var(--care-text-dark);
}

.values-list strong {
  color: var(--care-primary-dark);
}

/* --- Destaque 2 Anos --- */
.years-highlight {
  background-color: var(--care-accent);
  color: #111827;
  text-align: center;
  padding: 2.5rem 0;
}

.years-highlight h2 {
  font-size: 2.25rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: #111827;
}

/* --- Formulário de Contato --- */
.contact-section {
  background-color: var(--care-bg-light);
}

.contact-wrapper {
  max-width: 800px;
  margin: 0 auto;
  background-color: var(--care-white);
  border-radius: 24px;
  padding: 3rem 2.5rem;
  box-shadow: var(--care-shadow);
}

.contact-form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.form-group.full-width {
  grid-column: span 2;
}

.form-group label {
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--care-text-dark);
}

.form-control {
  padding: 14px 18px;
  border-radius: 8px;
  border: 1px solid #DDD;
  font-family: var(--care-font);
  font-size: 1rem;
  transition: var(--transition-fast);
  background-color: #FAFAFA;
}

.form-control:focus {
  outline: none;
  border-color: var(--care-accent);
  background-color: var(--care-white);
  box-shadow: 0 0 0 3px rgba(197, 168, 128, 0.2);
}

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

.contact-form-btn {
  grid-column: span 2;
  margin-top: 1rem;
  width: 100%;
}

/* --- Floating WhatsApp Button --- */
.floating-whatsapp {
  position: fixed;
  bottom: 25px;
  right: 25px;
  width: 60px;
  height: 60px;
  background-color: var(--accent-whatsapp);
  color: var(--care-white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  box-shadow: 0 4px 20px rgba(40, 200, 37, 0.5);
  z-index: 999;
  transition: var(--transition-smooth);
  animation: pulse 2s infinite;
}

.floating-whatsapp:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 25px rgba(40, 200, 37, 0.7);
}

@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(40, 200, 37, 0.6); }
  70% { box-shadow: 0 0 0 18px rgba(40, 200, 37, 0); }
  100% { box-shadow: 0 0 0 0 rgba(40, 200, 37, 0); }
}

/* --- Footer Completo --- */
.footer {
  background-color: #1a2332;
  color: #c9d1d9;
  padding: 0;
  border-top: none;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1.3fr;
  gap: 3rem;
  padding: 4rem 0 3rem 0;
}

.footer-col {
  display: flex;
  flex-direction: column;
}

/* Coluna da marca */
.footer-logo {
  margin-bottom: 1.25rem;
}

.footer-logo img {
  height: 70px;
  width: auto;
  object-fit: contain;
}

.footer-description {
  font-size: 0.95rem;
  line-height: 1.7;
  color: #9ca3af;
  margin-bottom: 1.5rem;
}

.footer-cnpj {
  display: inline-block;
  background-color: rgba(82, 174, 192, 0.15);
  border: 1px solid rgba(82, 174, 192, 0.3);
  color: var(--accent-whatsapp);
  font-size: 0.85rem;
  font-weight: 600;
  padding: 10px 18px;
  border-radius: 8px;
  letter-spacing: 0.3px;
}

/* Títulos das colunas */
.footer-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--care-accent);
  margin-bottom: 1.5rem;
  letter-spacing: 0.5px;
}

/* Links Úteis */
.footer-links {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.footer-links li a {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.95rem;
  color: #c9d1d9;
  transition: var(--transition-fast);
}

.footer-links li a i {
  font-size: 0.7rem;
  color: var(--care-accent);
  transition: var(--transition-fast);
}

.footer-links li a:hover {
  color: var(--care-accent);
  padding-left: 4px;
}

.footer-links li a:hover i {
  color: var(--care-accent);
}

/* Atendimento & Localização */
.footer-contact {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.footer-contact li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 0.95rem;
  color: #c9d1d9;
  line-height: 1.5;
}

.footer-contact li > i {
  color: var(--care-accent);
  font-size: 1rem;
  margin-top: 3px;
  flex-shrink: 0;
}

.footer-contact li strong {
  color: #f1f5f9;
  font-weight: 700;
}

.footer-whatsapp-link {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--accent-whatsapp) !important;
  font-weight: 600;
  transition: var(--transition-fast);
}

.footer-whatsapp-link i {
  color: var(--accent-whatsapp);
  font-size: 1.1rem;
}

.footer-whatsapp-link:hover {
  opacity: 0.8;
  text-decoration: underline;
}

/* Divisória */
.footer-divider {
  width: 100%;
  height: 1px;
  background: rgba(255, 255, 255, 0.08);
}

/* Bottom bar */
.footer-bottom {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  text-align: center;
  padding: 1.5rem 0;
}

.footer-bottom p {
  font-size: 0.9rem;
  color: #6b7280;
  font-weight: 400;
}

.developer-credit {
  color: var(--care-accent) !important;
  font-weight: 700 !important;
  letter-spacing: 0.5px;
  font-size: 0.9rem;
}

/* --- Responsive Media Queries --- */
@media (max-width: 767px) {
  .care-hero {
    background-size: cover;
    background-position: center center;
    min-height: calc(100dvh - 80px);
    padding: 40px 16px 60px 16px;
  }

  .care-hero-logo {
    margin-bottom: 1rem;
  }

  .care-hero-logo img {
    height: 80px;
    max-height: 95px;
  }

  .care-h1 {
    font-size: 1.55rem;
    line-height: 1.2;
    margin-bottom: 8px;
  }

  .care-h2 {
    font-size: 0.88rem;
    line-height: 1.4;
    margin-bottom: 14px;
    padding: 0 4px;
  }

  /* Redesign elegante dos botões no mobile */
  .btn {
    padding: 13px 20px;
    font-size: 0.9rem;
    gap: 8px;
    width: 100%;
    max-width: 340px;
  }

  .btn-whatsapp {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background: linear-gradient(135deg, #25D366 0%, #1EBE57 100%);
    color: #FFFFFF;
    font-size: 0.88rem;
    font-weight: 800;
    letter-spacing: 0.3px;
    line-height: 1.3;
    padding: 14px 18px;
    border-radius: 50px;
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.45);
    text-transform: uppercase;
    word-break: break-word;
  }

  .btn-whatsapp i {
    font-size: 1.3rem;
    flex-shrink: 0;
  }

  /* Posicionamento perfeito para revelação do topo dos depoimentos no mobile */
  .care-testimonials-section {
    margin: -40px auto 40px auto;
    padding: 0 16px;
  }

  .care-card {
    flex: 0 0 88vw;
    padding: 26px 20px;
    border-radius: 16px;
  }

  .care-quote-icon {
    font-size: 3rem;
    margin-top: -15px;
    margin-bottom: -5px;
  }

  .care-card-text {
    font-size: 0.93rem;
    line-height: 1.5;
    margin-bottom: 16px;
  }

  .care-card-arrow {
    top: 18px;
    right: 18px;
    width: 26px;
    height: 26px;
  }

  .floating-whatsapp {
    bottom: 20px;
    right: 16px;
    width: 54px;
    height: 54px;
    font-size: 1.8rem;
  }

  .contact-form { grid-template-columns: 1fr; }
  .form-group.full-width { grid-column: span 1; }
  .contact-form-btn { 
    grid-column: span 1; 
    margin-top: 0.75rem;
  }
  .about-grid, .why-us-grid, .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
}

@media (min-width: 768px) {
  .care-testimonials-section {
    margin-top: 40px;
  }
  .care-testimonials-container {
    overflow-x: visible;
    flex-wrap: nowrap;
    scroll-snap-type: none;
  }
  .care-card {
    flex: 1;
  }
  .care-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 50px rgba(44, 34, 30, 0.14);
  }
  .care-card-arrow {
    animation: none;
    opacity: 0.5;
  }
}
