/* ============================================
   VidaPet - Clínica Veterinária
   Estilos principais - Design institucional
   ============================================ */

/* ---------- Variáveis CSS ---------- */
:root {
  /* Paleta: azul e verde (confiança e saúde) */
  --color-primary: #0d9488;
  --color-primary-dark: #0f766e;
  --color-primary-light: #14b8a6;
  --color-secondary: #0284c7;
  --color-secondary-dark: #0369a1;
  
  /* Neutros e detalhes */
  --color-beige: #f5f0e8;
  --color-beige-dark: #e8e2d6;
  --color-white: #ffffff;
  --color-text: #1e293b;
  --color-text-muted: #64748b;
  
  /* Tipografia */
  --font-heading: 'Outfit', sans-serif;
  --font-body: 'Source Sans 3', sans-serif;
  
  /* Espaçamentos */
  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 1.5rem;
  --space-lg: 2.5rem;
  --space-xl: 4rem;
  --space-2xl: 6rem;
  
  /* Transições */
  --transition-fast: 0.2s ease;
  --transition-normal: 0.3s ease;
  --transition-slow: 0.5s ease;
  
  /* Sombras */
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.08);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 10px 40px rgba(0, 0, 0, 0.12);
}

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

html {
  scroll-behavior: smooth;
}

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

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

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

ul {
  list-style: none;
}

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

/* ---------- Botões ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-xs);
  padding: 0.75rem 1.5rem;
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 600;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: all var(--transition-normal);
}

.btn--primary {
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-secondary) 100%);
  color: var(--color-white);
  box-shadow: var(--shadow-sm);
}

.btn--primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(13, 148, 136, 0.4);
}

.btn--outline {
  background: transparent;
  color: var(--color-primary);
  border: 2px solid var(--color-primary);
}

.btn--outline:hover {
  background: var(--color-primary);
  color: var(--color-white);
  transform: translateY(-2px);
}

.btn--lg {
  padding: 1rem 2rem;
  font-size: 1.1rem;
}

.btn--full {
  width: 100%;
}

.btn--success {
  background: #10b981 !important;
}

/* ---------- Header ---------- */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: var(--space-sm) 0;
  background: var(--color-white);
  box-shadow: none;
  transition: all var(--transition-normal);
}

.header.scrolled {
  box-shadow: var(--shadow-md);
}

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

.logo {
  display: flex;
  align-items: center;
  gap: var(--space-xs);
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--color-primary);
}

.logo__icon {
  font-size: 1.75rem;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 6px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.nav-toggle span {
  width: 24px;
  height: 2px;
  background: var(--color-text);
  border-radius: 2px;
  transition: var(--transition-fast);
}

.nav {
  display: flex;
  align-items: center;
  gap: var(--space-lg);
}

.nav__list {
  display: flex;
  align-items: center;
  gap: var(--space-md);
}

.nav__link {
  font-family: var(--font-heading);
  font-weight: 500;
  color: var(--color-text);
  padding: 0.25rem 0;
  position: relative;
}

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

.nav__link:hover::after,
.nav__link.active::after {
  width: 100%;
}

.nav__link:hover,
.nav__link.active {
  color: var(--color-primary);
}

.btn--nav {
  padding: 0.6rem 1.25rem;
  font-size: 0.95rem;
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: calc(80px + var(--space-xl)) var(--space-md) var(--space-xl);
  overflow: hidden;
}

.hero__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.hero__overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: rgba(0, 0, 0, 0.55);
}

.hero__content {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 720px;
}

.hero__title {
  font-family: var(--font-heading);
  font-size: clamp(1.875rem, 4.5vw, 3rem);
  font-weight: 600;
  line-height: 1.35;
  letter-spacing: -0.025em;
  color: var(--color-white);
  margin-bottom: 1.25rem;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.4);
}

.hero__title span {
  color: rgba(255, 255, 255, 0.95);
  font-weight: 500;
}

.hero__subtitle {
  font-size: 1.125rem;
  font-weight: 400;
  line-height: 1.7;
  letter-spacing: 0.015em;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 2rem;
  max-width: 480px;
  margin-left: auto;
  margin-right: auto;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
}

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

.hero__actions .btn--primary:hover {
  background: var(--color-beige);
  color: var(--color-primary-dark);
}

.hero__actions .btn--outline {
  border-color: rgba(255, 255, 255, 0.8);
  color: var(--color-white);
}

.hero__actions .btn--outline:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: var(--color-white);
}

.hero__scroll {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
}

.hero__scroll-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  color: rgba(255, 255, 255, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: 50%;
}

.hero__scroll-link:hover {
  color: var(--color-white);
  border-color: rgba(255, 255, 255, 0.6);
}

@keyframes bounce {
  0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
  40% { transform: translateY(-8px); }
  60% { transform: translateY(-4px); }
}

/* ---------- Seções comuns ---------- */
.section {
  padding: var(--space-2xl) 0;
}

.section--alt {
  background: var(--color-beige);
}

.section__header {
  text-align: center;
  max-width: 600px;
  margin: 0 auto var(--space-xl);
}

.section__tag {
  display: inline-block;
  font-family: var(--font-heading);
  font-size: 0.875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-primary);
  margin-bottom: var(--space-sm);
}

.section__title {
  font-family: var(--font-heading);
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 700;
  color: var(--color-text);
  margin-bottom: var(--space-sm);
}

.section__subtitle {
  color: var(--color-text-muted);
  font-size: 1.1rem;
}

/* ---------- Sobre ---------- */
.sobre__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-xl);
  align-items: center;
}

.sobre__image {
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.sobre__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.sobre__content .section__title {
  text-align: left;
}

.sobre__text {
  margin-bottom: var(--space-md);
  color: var(--color-text-muted);
}

.sobre__valores {
  margin-top: var(--space-lg);
}

.sobre__valores li {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  padding: var(--space-xs) 0;
  font-weight: 500;
}

.sobre__valores i {
  color: var(--color-primary);
  font-size: 1.25rem;
}

/* ---------- Serviços ---------- */
.servicos__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-lg);
}

.servico-card {
  background: var(--color-white);
  padding: var(--space-lg);
  border-radius: 16px;
  text-align: center;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-normal);
}

.servico-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
}

.servico-card__icon {
  width: 72px;
  height: 72px;
  margin: 0 auto var(--space-md);
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-secondary) 100%);
  color: var(--color-white);
  font-size: 1.75rem;
  border-radius: 16px;
}

.servico-card__title {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--color-text);
  margin-bottom: var(--space-sm);
}

.servico-card__desc {
  color: var(--color-text-muted);
  font-size: 0.95rem;
}

/* ---------- Equipe ---------- */
.equipe__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-lg);
}

.equipe-card {
  text-align: center;
  transition: transform var(--transition-normal);
}

.equipe-card:hover {
  transform: translateY(-4px);
}

.equipe-card__photo {
  width: 200px;
  height: 200px;
  margin: 0 auto var(--space-md);
  border-radius: 50%;
  overflow: hidden;
  border: 4px solid var(--color-beige);
  box-shadow: var(--shadow-md);
}

.equipe-card__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.equipe-card__name {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--color-text);
  margin-bottom: var(--space-xs);
}

.equipe-card__especialidade {
  color: var(--color-primary);
  font-size: 0.95rem;
}

/* ---------- Depoimentos ---------- */
.depoimentos__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-lg);
}

.depoimento-card {
  background: var(--color-white);
  padding: var(--space-lg);
  border-radius: 16px;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-normal);
}

.depoimento-card:hover {
  box-shadow: var(--shadow-md);
}

.depoimento-card__stars {
  color: #f59e0b;
  margin-bottom: var(--space-md);
}

.depoimento-card__stars i {
  margin-right: 2px;
}

.depoimento-card__text {
  font-style: italic;
  color: var(--color-text-muted);
  margin-bottom: var(--space-md);
}

.depoimento-card__autor {
  display: flex;
  flex-direction: column;
}

.depoimento-card__nome {
  font-weight: 600;
  color: var(--color-text);
}

.depoimento-card__pet {
  font-size: 0.9rem;
  color: var(--color-text-muted);
}

/* ---------- Contato ---------- */
.contato__grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: var(--space-xl);
  margin-bottom: var(--space-xl);
}

.contato__item {
  display: flex;
  gap: var(--space-md);
  margin-bottom: var(--space-lg);
}

.contato__item i {
  font-size: 1.5rem;
  color: var(--color-primary);
  flex-shrink: 0;
}

.contato__item strong {
  display: block;
  margin-bottom: var(--space-xs);
  font-family: var(--font-heading);
}

.contato__item p,
.contato__horario p {
  color: var(--color-text-muted);
}

.contato__horario {
  margin-top: var(--space-lg);
}

.contato__horario strong {
  display: block;
  margin-bottom: var(--space-xs);
  font-family: var(--font-heading);
}

.contato__form {
  background: var(--color-beige);
  padding: var(--space-lg);
  border-radius: 16px;
}

.form-group {
  margin-bottom: var(--space-md);
}

.form-group label {
  display: block;
  font-weight: 600;
  margin-bottom: var(--space-xs);
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid var(--color-beige-dark);
  border-radius: 8px;
  font-family: var(--font-body);
  font-size: 1rem;
  transition: border-color var(--transition-fast);
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--color-primary);
}

.contato__map {
  border-radius: 16px;
  overflow: hidden;
  height: 300px;
}

.contato__map iframe {
  width: 100%;
  height: 100%;
  border: none;
}

/* ---------- Footer ---------- */
.footer {
  background: var(--color-text);
  color: var(--color-white);
  padding: var(--space-xl) 0 var(--space-md);
}

.footer__grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: var(--space-xl);
  margin-bottom: var(--space-xl);
}

.logo--footer {
  color: var(--color-white);
}

.footer__slogan {
  margin: var(--space-md) 0;
  color: rgba(255, 255, 255, 0.8);
  max-width: 280px;
}

.footer__social {
  display: flex;
  gap: var(--space-sm);
}

.footer__social a {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  transition: all var(--transition-fast);
}

.footer__social a:hover {
  background: var(--color-primary);
  transform: translateY(-2px);
}

.footer__links h4,
.footer__contato h4 {
  font-family: var(--font-heading);
  margin-bottom: var(--space-md);
  font-size: 1.1rem;
}

.footer__links ul li {
  margin-bottom: var(--space-xs);
}

.footer__links a:hover {
  color: var(--color-primary-light);
}

.footer__contato p {
  display: flex;
  align-items: center;
  gap: var(--space-xs);
  margin-bottom: var(--space-sm);
  color: rgba(255, 255, 255, 0.9);
}

.footer__contato i {
  color: var(--color-primary-light);
}

.footer__bottom {
  padding-top: var(--space-md);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  text-align: center;
}

.footer__bottom p {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.6);
}

/* ---------- Responsividade: Tablet ---------- */
@media (max-width: 992px) {
  .servicos__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .sobre__grid {
    grid-template-columns: 1fr;
    gap: var(--space-lg);
  }

  .sobre__image {
    order: -1;
    max-height: 400px;
  }

  .equipe__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .depoimentos__grid {
    grid-template-columns: 1fr;
  }

  .contato__grid {
    grid-template-columns: 1fr;
  }

  .footer__grid {
    grid-template-columns: 1fr 1fr;
  }
}

/* ---------- Responsividade: Mobile ---------- */
@media (max-width: 768px) {
  .nav-toggle {
    display: flex;
  }

  .nav {
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    height: 100vh;
    background: var(--color-white);
    flex-direction: column;
    align-items: flex-start;
    padding: calc(80px + var(--space-lg)) var(--space-lg) var(--space-lg);
    box-shadow: -10px 0 30px rgba(0, 0, 0, 0.1);
    transition: right var(--transition-normal);
  }

  .nav.active {
    right: 0;
  }

  .nav__list {
    flex-direction: column;
    align-items: flex-start;
    width: 100%;
  }

  .nav__link {
    padding: var(--space-sm) 0;
  }

  .nav-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
  }

  .nav-toggle.active span:nth-child(2) {
    opacity: 0;
  }

  .nav-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
  }

  .servicos__grid {
    grid-template-columns: 1fr;
  }

  .equipe__grid {
    grid-template-columns: 1fr;
  }

  .equipe-card__photo {
    width: 160px;
    height: 160px;
  }

  .hero__actions {
    flex-direction: column;
  }

  .hero__actions .btn {
    width: 100%;
  }

  .footer__grid {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .footer__slogan {
    margin-left: auto;
    margin-right: auto;
  }

  .footer__social {
    justify-content: center;
  }
}

@media (max-width: 480px) {
  .section {
    padding: var(--space-xl) 0;
  }

  .section__title {
    font-size: 1.5rem;
  }
}
