/* ==========================================================================
   VETCLIN - Clínica Veterinária em Jarinu, SP
   Código 100% nativo, ultra-rápido e otimizado para Core Web Vitals
   ========================================================================== */

:root {
  /* Cores da Marca (extraídas fielmente do tema original) */
  --color-base: #FFFFFF;
  --color-base-text: #000000;
  --color-secondary: #005e90;
  --color-secondary-text: #FFFFFF;
  --color-card: #074c73;
  --color-card-text: #FFFFFF;
  --color-accent: #ffaa33;
  --color-accent-hover: #e68600;
  --color-accent-text: #FFFFFF;
  --color-border-gold: #ffd788;
  --color-muted: #f3f3f3;
  --color-dark: #242424;

  /* Botão Flutuante do WhatsApp */
  --whatsapp-bg: #00c800;
  --whatsapp-hover: #009600;
  --whatsapp-icon: #ffffff;

  /* Tipografia */
  --font-main: "Inter Tight", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-main);
  background-color: var(--color-base);
  color: var(--color-base-text);
  line-height: 1.2;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

a {
  text-decoration: none;
  color: inherit;
}

/* Container Padrão (980px Desktop como no layout original) */
.container {
  width: 100%;
  max-width: 980px;
  margin: 0 auto;
  position: relative;
}

/* ==========================================================================
   Componente: Botão de Conversão (CTA WhatsApp)
   ========================================================================== */
.btn-whatsapp {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 280px;
  height: 60px;
  background-color: var(--color-accent);
  color: var(--color-accent-text);
  border: 2px solid var(--color-border-gold);
  border-radius: 100px;
  font-family: var(--font-main);
  font-size: 18px;
  font-weight: 600;
  line-height: 1.3;
  text-align: center;
  cursor: pointer;
  transition: background-color 0.2s ease, transform 0.15s ease;
  user-select: none;
}

.btn-whatsapp:hover {
  background-color: var(--color-accent-hover);
  color: var(--color-accent-text);
}

.btn-whatsapp:active {
  transform: scale(0.98);
}

/* ==========================================================================
   1. CABEÇALHO / NAVBAR (Desktop)
   ========================================================================== */
.site-header {
  background-color: var(--color-base);
  height: 80px;
  position: relative;
  z-index: 50;
}

.header-inner {
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 10px;
}

.header-logo {
  width: 160px;
  height: 107px;
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.header-logo img {
  width: 160px;
  height: 106px;
  object-fit: fill;
}

.header-nav {
  display: flex;
  align-items: center;
}

.header-nav-link {
  width: 150px;
  height: 54px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  font-weight: 400;
  color: var(--color-base-text);
  transition: background-color 0.2s ease;
}

.header-nav-link:hover {
  background-color: rgba(0, 0, 0, 0.06);
}

/* ==========================================================================
   2. DOBRA PRINCIPAL (HERO)
   ========================================================================== */
.hero-section {
  background-color: var(--color-base);
  height: 550px;
  position: relative;
  overflow: visible;
}

.hero-mobile-logo {
  display: none;
}

.hero-content {
  position: relative;
  z-index: 20;
  padding-top: 120px;
  padding-left: 10px;
  max-width: 430px;
}

.hero-title {
  font-size: 50px;
  font-weight: 600;
  line-height: 1;
  letter-spacing: 0;
  color: var(--color-base-text);
  margin-bottom: 20px;
}

.hero-subtitle {
  font-size: 20px;
  font-weight: 400;
  line-height: 1;
  color: var(--color-base-text);
  max-width: 300px;
  margin-bottom: 20px;
}

.hero-image-wrap {
  position: absolute;
  left: 482px;
  top: 22px;
  width: 466px;
  height: 700px;
  z-index: 15;
  pointer-events: none;
}

.hero-image-wrap img {
  width: 100%;
  height: 100%;
  object-fit: fill;
}

/* ==========================================================================
   3. SEÇÃO SERVIÇOS ("Veterinária completa para atender seu pet")
   ========================================================================== */
.services-section {
  background-color: var(--color-base);
  height: 620px;
  position: relative;
  overflow: visible;
}

.services-photo-box {
  position: absolute;
  left: 80px;
  top: 100px;
  width: 350px;
  height: 420px;
  border-radius: 20px;
  border: 2px solid var(--color-border-gold);
  overflow: hidden;
  background-color: var(--color-base);
  z-index: 11;
}

.services-photo-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 100% 37.2%;
}

.services-content {
  position: absolute;
  left: 510px;
  top: 195px;
  width: 390px;
  z-index: 20;
}

.services-title {
  font-size: 35px;
  font-weight: 600;
  line-height: 1;
  color: var(--color-base-text);
  max-width: 354px;
  margin-bottom: 18px;
}

.services-description {
  font-size: 20px;
  font-weight: 400;
  line-height: 1;
  color: var(--color-base-text);
  max-width: 390px;
  margin-bottom: 20px;
}

/* ==========================================================================
   4. SEÇÃO ESTRUTURA / DIFERENCIAIS ("Por que escolher a Vetclin?")
   ========================================================================== */
.features-section {
  background-color: var(--color-secondary);
  min-height: 780px;
  padding: 45px 0 45px;
  position: relative;
}

.features-header {
  text-align: center;
  margin-bottom: 26px;
}

.features-title {
  font-size: 35px;
  font-weight: 600;
  line-height: 1;
  color: var(--color-secondary-text);
  max-width: 624px;
  margin: 0 auto 20px;
}

.features-subtitle {
  font-size: 20px;
  font-weight: 400;
  line-height: 1;
  color: var(--color-secondary-text);
  max-width: 712px;
  margin: 0 auto;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(2, 340px);
  column-gap: 15px;
  row-gap: 15px;
  justify-content: center;
  margin-bottom: 30px;
}

.feature-card {
  width: 340px;
  height: 230px;
  background-color: var(--color-base);
  border: 2px solid var(--color-border-gold);
  border-radius: 20px;
  padding: 28px 20px 24px 22px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
}

.feature-icon {
  width: 60px;
  height: 60px;
  object-fit: cover;
  margin-bottom: 12px;
  flex-shrink: 0;
}

.feature-card-title {
  font-size: 26px;
  font-weight: 600;
  line-height: 1.1;
  color: var(--color-base-text);
  margin-bottom: 10px;
  white-space: nowrap;
}

.feature-card-text {
  font-size: 18px;
  font-weight: 400;
  line-height: 1;
  color: var(--color-base-text);
  max-width: 265px;
}

.features-cta {
  display: flex;
  justify-content: center;
}

/* ==========================================================================
   5. SEÇÃO DEPOIMENTOS ("Veja o que nossos clientes dizem")
   ========================================================================== */
.testimonials-section {
  background-color: var(--color-base);
  padding: 65px 0 65px; /* Espaçamento idêntico em cima e embaixo para equilíbrio visual perfeito */
  position: relative;
}

.testimonials-header {
  text-align: center;
  margin-bottom: 35px;
}

.testimonials-title {
  font-size: 35px;
  font-weight: 600;
  line-height: 1.15;
  color: var(--color-dark);
  max-width: 555px;
  margin: 0 auto 13px;
}

.testimonials-subtitle {
  font-size: 20px;
  font-weight: 400;
  line-height: 1.25;
  color: var(--color-base-text);
  max-width: 460px;
  margin: 0 auto;
}

.testimonials-body {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 50px;
  position: relative;
}

/* Google Rating Summary (Esquerda no Desktop) */
.google-rating-box {
  width: 320px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  flex-shrink: 0;
}

.google-rating-label {
  font-size: 25px;
  font-weight: 800;
  line-height: 1.2;
  color: var(--color-dark);
  margin-bottom: 9px;
}

.google-stars {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  margin-bottom: 10px;
}

.google-stars img {
  width: 24.25px;
  height: 24.25px;
  object-fit: cover;
}

.google-rating-count {
  font-size: 18px;
  font-weight: 400;
  line-height: 1;
  color: var(--color-dark);
  margin-bottom: 9px;
}

.google-rating-count strong {
  font-weight: 700;
}

.google-logo {
  width: 130px;
  height: 44px;
  object-fit: fill;
}

/* Linha Divisória Vertical */
.testimonials-divider {
  width: 2px;
  height: 230px;
  background-color: var(--color-muted);
  flex-shrink: 0;
}

/* Carrossel de Depoimentos (Direita no Desktop) */
.testimonial-slider {
  width: 340px;
  height: 350px;
  border-radius: 20px;
  border: 2px solid var(--color-border-gold);
  overflow: hidden;
  background-color: var(--color-base);
  user-select: none;
  flex-shrink: 0;
}

.slider-track {
  display: flex;
  width: 100%;
  height: 100%;
  transition: transform 0.45s cubic-bezier(0.25, 0.8, 0.25, 1);
  will-change: transform;
}

.slider-slide {
  min-width: 100%;
  height: 100%;
  flex-shrink: 0;
}

.slider-slide picture,
.slider-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* ==========================================================================
   6. SEÇÃO CONTATO & LOCALIZAÇÃO ("Venha nos conhecer")
   ========================================================================== */
.contact-section {
  background-color: var(--color-secondary);
  height: 460px;
  position: relative;
}

.contact-map-box {
  position: absolute;
  left: 30px;
  top: 55px;
  width: 500px;
  height: 350px;
  border-radius: 20px;
  border: 2px solid var(--color-border-gold);
  overflow: hidden;
  background-color: var(--color-base);
}

.contact-map-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 59% 46.1%;
}

.contact-info {
  position: absolute;
  left: 580px;
  top: 97px;
  width: 370px;
}

.contact-title {
  font-size: 35px;
  font-weight: 600;
  line-height: 1;
  color: var(--color-secondary-text);
  margin-bottom: 22px;
}

.contact-list {
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 19px;
}

.contact-icon-circle {
  width: 45px;
  height: 45px;
  border-radius: 50%;
  background-color: var(--color-accent);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 4px;
}

.contact-icon-circle img {
  width: 25px;
  height: 25px;
  object-fit: cover;
}

.contact-item-body h4 {
  font-size: 18px;
  font-weight: 600;
  line-height: 1;
  color: var(--color-secondary-text);
  margin-bottom: 4px;
}

.contact-item-body p {
  font-size: 18px;
  font-weight: 400;
  line-height: 1.05;
  color: var(--color-secondary-text);
  max-width: 260px;
}

/* ==========================================================================
   7. CHAMADA FINAL (CTA Bottom)
   ========================================================================== */
.final-cta-section {
  background-color: var(--color-secondary);
  height: 366px;
  position: relative;
  overflow: visible;
}

.final-cta-content {
  position: absolute;
  left: 30px;
  top: 58px;
  width: 390px;
  z-index: 20;
}

.final-cta-title {
  font-size: 35px;
  font-weight: 600;
  line-height: 1;
  color: var(--color-secondary-text);
  margin-bottom: 20px;
}

.final-cta-text {
  font-size: 20px;
  font-weight: 400;
  line-height: 1;
  color: var(--color-secondary-text);
  max-width: 340px;
  margin-bottom: 20px;
}

.final-cta-image-wrap {
  position: absolute;
  left: 544px;
  top: -56px;
  width: 359px;
  height: 435px;
  z-index: 15;
  pointer-events: none;
}

.final-cta-image-wrap img {
  position: absolute;
  left: 0;
  top: -65px;
  width: 359px;
  height: 538px;
  max-width: none;
  object-fit: fill;
}

/* ==========================================================================
   8. RODAPÉ (FOOTER)
   ========================================================================== */
.site-footer {
  background-color: var(--color-card);
  height: 160px;
  position: relative;
  z-index: 30;
}

.footer-inner {
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  padding-top: 10px;
}

.footer-logo {
  width: 160px;
  height: 107px;
  object-fit: fill;
}

.footer-copy {
  font-size: 18px;
  font-weight: 400;
  line-height: 1;
  color: var(--color-base);
  text-align: center;
  margin-top: -16px;
}

/* ==========================================================================
   9. BOTÃO FLUTUANTE DO WHATSAPP (.float)
   ========================================================================== */
.float {
  position: fixed;
  cursor: pointer;
  width: 60px;
  height: 60px;
  bottom: 40px;
  right: 40px;
  transition: background-color 0.3s ease, transform 0.2s ease;
  background-color: var(--whatsapp-bg);
  border-radius: 50px;
  animation: pulse 3s infinite;
  -webkit-animation: pulse 3s infinite;
  z-index: 99999;
  display: block;
}

.float:hover {
  background-color: var(--whatsapp-hover);
}

.float .icon {
  width: 48px;
  height: 48px;
  transform: scale(0.6) translate(20%, 20%);
  fill: var(--whatsapp-icon);
  pointer-events: none;
}

@keyframes pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(0, 200, 0, 1);
  }
  70% {
    box-shadow: 0 0 0 20px rgba(0, 200, 0, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(0, 200, 0, 0);
  }
}

/* ==========================================================================
   RESPONSIVIDADE MOBILE (Até 800px - Fiel ao design mobile original)
   ========================================================================== */
@media (max-width: 800px) {
  .container {
    max-width: 360px;
  }

  /* 1. Oculta navbar desktop e exibe logo centralizada no topo do Hero */
  .site-header {
    display: none;
  }

  /* 2. Hero Mobile */
  .hero-section {
    height: 700px;
    text-align: center;
  }

  .hero-mobile-logo {
    display: block;
    position: absolute;
    left: 90px;
    top: 33px;
    width: 180px;
    height: 121px;
    z-index: 25;
  }

  .hero-mobile-logo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }

  .hero-content {
    padding-top: 154px;
    padding-left: 0;
    max-width: 360px;
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .hero-title {
    font-size: 35px;
    width: 330px;
    margin-bottom: 15px;
  }

  .hero-subtitle {
    font-size: 18px;
    width: 300px;
    margin-bottom: 15px;
  }

  .hero-image-wrap {
    left: 37px;
    top: 385px;
    width: 287px;
    height: 430px;
  }

  /* 3. Serviços Mobile */
  .services-section {
    height: 390px;
    text-align: center;
  }

  .services-photo-box {
    display: none;
  }

  .services-content {
    position: relative;
    left: auto;
    top: auto;
    width: 100%;
    padding-top: 124px;
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .services-title {
    font-size: 27px;
    max-width: 300px;
    margin-bottom: 15px;
  }

  .services-description {
    font-size: 18px;
    max-width: 280px;
    margin-bottom: 22px;
  }

  /* 4. Estrutura / Diferenciais Mobile */
  .features-section {
    min-height: 1270px;
    padding: 34px 0 40px;
  }

  .features-title {
    font-size: 27px;
    max-width: 240px;
    margin-bottom: 16px;
  }

  .features-subtitle {
    font-size: 18px;
    max-width: 320px;
  }

  .features-grid {
    grid-template-columns: 320px;
    row-gap: 16px;
    margin-bottom: 25px;
  }

  .feature-card {
    width: 320px;
    height: 230px;
    padding: 29px 20px 24px 22px;
  }

  .feature-card-title {
    font-size: 22px;
  }

  .feature-card-text {
    font-size: 15px;
    max-width: 220px;
  }

  /* 5. Depoimentos Mobile */
  .testimonials-section {
    padding: 50px 0 50px;
    height: auto;
  }

  .testimonials-header {
    margin-bottom: 25px;
  }

  .testimonials-title {
    font-size: 27px;
    max-width: 320px;
    margin-bottom: 12px;
  }

  .testimonials-subtitle {
    font-size: 18px;
    max-width: 320px;
  }

  .testimonials-body {
    flex-direction: column;
    gap: 25px;
  }

  .google-rating-box {
    width: 320px;
    position: static;
    left: auto;
    top: auto;
  }

  .google-rating-count {
    font-size: 15px;
  }

  .testimonials-divider {
    display: none;
  }

  .testimonial-slider {
    position: static;
    left: auto;
    top: auto;
    width: 300px;
    height: 300px;
    border-radius: 12px;
    border-color: var(--color-muted);
  }

  /* 6. Contato & Localização Mobile */
  .contact-section {
    height: 670px;
  }

  .contact-info {
    left: 0;
    top: 44px;
    width: 360px;
  }

  .contact-title {
    font-size: 27px;
    text-align: center;
    margin-bottom: 22px;
  }

  .contact-list {
    padding-left: 53px;
    gap: 16px;
  }

  .contact-item {
    gap: 9px;
  }

  .contact-icon-circle {
    width: 36.32px;
    height: 36.32px;
  }

  .contact-icon-circle img {
    width: 20.18px;
    height: 20.18px;
  }

  .contact-item-body p {
    font-size: 15px;
    max-width: 215px;
  }

  .contact-map-box {
    left: 10px;
    top: 312px;
    width: 340px;
    height: 340px;
  }

  .contact-map-box img {
    object-position: 54.3% 51.2%;
  }

  /* 7. Chamada Final Mobile */
  .final-cta-section {
    height: 730px;
    overflow: hidden;
  }

  .final-cta-content {
    left: 30px;
    top: 36px;
    width: 300px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .final-cta-title {
    font-size: 27px;
    width: 250px;
    margin-bottom: 16px;
  }

  .final-cta-text {
    font-size: 18px;
    width: 300px;
    margin-bottom: 18px;
  }

  .final-cta-image-wrap {
    left: -30px;
    top: 322px;
    width: 420px;
    height: 530px;
  }

  .final-cta-image-wrap img {
    width: 420px;
    height: 628px;
    top: -70px;
  }

  /* 8. Rodapé Mobile */
  .site-footer {
    height: 180px;
  }

  .footer-inner {
    padding-top: 45px;
  }

  .footer-copy {
    font-size: 15px;
    margin-top: -16px;
  }

  /* Botão Flutuante Mobile */
  .float {
    bottom: 24px;
    right: 24px;
  }
}
