/* ===================================
   VARIÁVEIS E RESET
   =================================== */

:root {
  --primary-dark: #0d3d52;
  --primary-medium: #1a5f7a;
  --primary-light: #20b2aa;
  --accent: #17a2b8;
  --white: #ffffff;
  --gray-light: #f8f9fa;
  --gray-medium: #e9ecef;
  --gray-dark: #495057;
  --text-dark: #212529;
  --success: #28a745;
  --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.1);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.15);
  --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.2);
  --transition: all 0.3s ease;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  line-height: 1.6;
  color: var(--text-dark);
  background-color: var(--white);
}

/* ===================================
   TIPOGRAFIA
   =================================== */

h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 1rem;
}

h1 {
  font-size: 3rem;
}

h2 {
  font-size: 2.5rem;
  color: var(--primary-dark);
}

h3 {
  font-size: 1.75rem;
  color: var(--primary-medium);
}

p {
  margin-bottom: 1rem;
  font-size: 1rem;
}

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

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

/* ===================================
   CONTAINER E LAYOUT
   =================================== */

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

section {
  padding: 80px 0;
}

section:nth-child(even) {
  background-color: var(--gray-light);
}

/* ===================================
   HEADER E NAVEGAÇÃO
   =================================== */

header {
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary-medium) 100%);
  color: var(--white);
  padding: 1rem 0;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: var(--shadow-md);
}

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

.logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--white);
}

.logo svg {
  width: 40px;
  height: 40px;
}

.logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.logo-text strong {
  font-size: 1.1rem;
}

.logo-text small {
  font-size: 0.7rem;
  opacity: 0.9;
}

nav {
  display: flex;
  gap: 2rem;
  align-items: center;
}

nav a {
  color: var(--white);
  font-weight: 500;
  position: relative;
  transition: var(--transition);
}

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

nav a:hover::after {
  width: 100%;
}

.btn-header {
  background-color: var(--primary-light);
  color: var(--white);
  padding: 0.75rem 1.5rem;
  border-radius: 50px;
  font-weight: 600;
  transition: var(--transition);
}

.btn-header:hover {
  background-color: var(--accent);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

/* ===================================
   HERO SECTION
   =================================== */

.hero {
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary-medium) 100%);
  color: var(--white);
  padding: 120px 0;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -10%;
  width: 600px;
  height: 600px;
  background: rgba(32, 178, 170, 0.1);
  border-radius: 50%;
  z-index: 0;
}

.hero-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
  position: relative;
  z-index: 1;
}

.hero-text h1 {
  color: var(--white);
  margin-bottom: 1.5rem;
  font-size: 3.5rem;
}

.hero-text p {
  font-size: 1.25rem;
  margin-bottom: 2rem;
  opacity: 0.95;
}

.hero-image {
  position: relative;
  z-index: 2;
}

.hero-image img {
  width: 100%;
  height: auto;
  border-radius: 20px;
  box-shadow: var(--shadow-lg);
  object-fit: cover;
}

/* ===================================
   BOTÕES
   =================================== */

.btn {
  display: inline-block;
  padding: 1rem 2rem;
  border-radius: 50px;
  font-weight: 600;
  text-align: center;
  transition: var(--transition);
  cursor: pointer;
  border: none;
  text-decoration: none;
  font-size: 1rem;
}

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

.btn-primary:hover {
  background-color: var(--accent);
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
}

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

.btn-secondary:hover {
  background-color: var(--primary-light);
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
}

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

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

.btn-group {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-top: 2rem;
}

/* ===================================
   SEÇÃO DE CREDENCIAIS
   =================================== */

.credentials {
  background: var(--white);
  padding: 60px 0;
}

.credentials-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

.credentials-image {
  position: relative;
}

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

.credentials-text h2 {
  margin-bottom: 1.5rem;
}

.credential-item {
  display: flex;
  gap: 1rem;
  margin-bottom: 1.5rem;
  padding: 1rem;
  background-color: var(--gray-light);
  border-left: 4px solid var(--primary-light);
  border-radius: 8px;
}

.credential-item strong {
  color: var(--primary-dark);
  min-width: 150px;
}

/* ===================================
   SEÇÃO DE ESPECIALIDADES
   =================================== */

.specialties {
  background-color: var(--gray-light);
  padding: 80px 0;
}

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

.section-title h2 {
  margin-bottom: 1rem;
}

.section-title p {
  font-size: 1.1rem;
  color: var(--gray-dark);
  max-width: 600px;
  margin: 0 auto;
}

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

.specialty-card {
  background: var(--white);
  border-radius: 15px;
  overflow: hidden;
  box-shadow: var(--shadow-md);
  transition: var(--transition);
  display: flex;
  flex-direction: column;
}

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

.specialty-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.specialty-content {
  padding: 2rem;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.specialty-content h3 {
  margin-bottom: 1rem;
  color: var(--primary-dark);
}

.specialty-content p {
  flex-grow: 1;
  margin-bottom: 1.5rem;
  color: var(--gray-dark);
}

.specialty-content .btn {
  align-self: flex-start;
}

/* ===================================
   SEÇÃO DE VÍDEO
   =================================== */

.video-section {
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary-medium) 100%);
  padding: 80px 0;
}

.video-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

.video-wrapper {
  width: 100%;
}

.video-wrapper video {
  width: 100%;
  height: auto;
  display: block;
}

.video-content {
  color: var(--white);
}

.video-content h2 {
  font-size: 2.5rem;
  margin-bottom: 1.5rem;
  color: var(--white);
}

.video-content p {
  font-size: 1.1rem;
  line-height: 1.8;
  margin-bottom: 1.5rem;
  color: rgba(255, 255, 255, 0.95);
}

.video-content .btn {
  margin-top: 1rem;
}

@media (max-width: 768px) {
  .video-container {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .video-content h2 {
    font-size: 1.8rem;
  }

  .video-content p {
    font-size: 1rem;
  }
}

/* ===================================
   SEÇÃO DE CONVÊNIOS
   =================================== */

.convenios {
  background: var(--white);
  padding: 80px 0;
}

.convenios-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}

.convenio-item {
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary-medium) 100%);
  color: var(--white);
  padding: 1.5rem;
  border-radius: 10px;
  text-align: center;
  font-weight: 600;
  box-shadow: var(--shadow-md);
  transition: var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100px;
}

.convenio-item:nth-child(1) { background: linear-gradient(135deg, #d4214d 0%, #f0395f 100%); } /* BRADESCO */
.convenio-item:nth-child(2) { background: linear-gradient(135deg, #003d82 0%, #0052cc 100%); } /* CASSI */
.convenio-item:nth-child(3) { background: linear-gradient(135deg, #00a3e0 0%, #00c9ff 100%); } /* SUL AMÉRICA */
.convenio-item:nth-child(4) { background: linear-gradient(135deg, #1e3a8a 0%, #3b82f6 100%); } /* FISCO SAÚDE */
.convenio-item:nth-child(5) { background: linear-gradient(135deg, #0066cc 0%, #0099ff 100%); } /* AMEPE */
.convenio-item:nth-child(6) { background: linear-gradient(135deg, #003d82 0%, #0052cc 100%); } /* CORREIROS */
.convenio-item:nth-child(7) { background: linear-gradient(135deg, #003d82 0%, #0052cc 100%); } /* GEAP */
.convenio-item:nth-child(8) { background: linear-gradient(135deg, #1e40af 0%, #3b82f6 100%); } /* MEDSERVICE */
.convenio-item:nth-child(9) { background: linear-gradient(135deg, #0066cc 0%, #0099ff 100%); } /* SAÚDE CAIXA */
.convenio-item:nth-child(10) { background: linear-gradient(135deg, #00a3e0 0%, #00c9ff 100%); } /* UNIMED */
.convenio-item:nth-child(11) { background: linear-gradient(135deg, #d4214d 0%, #f0395f 100%); } /* PETROBRAS */
.convenio-item:nth-child(12) { background: linear-gradient(135deg, #003d82 0%, #0052cc 100%); } /* FACHESF */
.convenio-item:nth-child(13) { background: linear-gradient(135deg, #1e40af 0%, #3b82f6 100%); } /* CAMED */
.convenio-item:nth-child(14) { background: linear-gradient(135deg, #0066cc 0%, #0099ff 100%); } /* CAPE SAÚDE */
.convenio-item:nth-child(15) { background: linear-gradient(135deg, #003d82 0%, #0052cc 100%); } /* ASSEFAZ */
.convenio-item:nth-child(16) { background: linear-gradient(135deg, #1e3a8a 0%, #3b82f6 100%); } /* EMBRATEL */

.convenio-item:hover {
  transform: scale(1.05);
  box-shadow: var(--shadow-lg);
}

/* ===================================
   SEÇÃO INSTAGRAM FEED
   =================================== */

.instagram-section {
  background-color: var(--gray-light);
  padding: 80px 0;
}

.instagram-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  margin-top: 2rem;
}

.instagram-post {
  position: relative;
  overflow: hidden;
  border-radius: 15px;
  box-shadow: var(--shadow-md);
  transition: var(--transition);
  aspect-ratio: 9 / 16;
}

@media (max-width: 1200px) {
  .instagram-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .instagram-grid {
    grid-template-columns: 1fr;
  }
}

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

.instagram-post:hover img {
  transform: scale(1.1);
}

.instagram-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(13, 61, 82, 0.8);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: var(--transition);
  color: var(--white);
  text-align: center;
  padding: 1rem;
}

.instagram-post:hover .instagram-overlay {
  opacity: 1;
}

.instagram-icon {
  font-size: 2rem;
  margin-bottom: 0.5rem;
  display: none;
}

/* ===================================
   SEÇÃO DE LOCAIS DE ATENDIMENTO
   =================================== */

.locations {
  background: var(--white);
  padding: 80px 0;
}

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

.location-card {
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary-medium) 100%);
  color: var(--white);
  padding: 2rem;
  border-radius: 15px;
  box-shadow: var(--shadow-md);
  transition: var(--transition);
}

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

.location-card h3 {
  color: var(--primary-light);
  margin-bottom: 1rem;
}

.location-info {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.location-info-item {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
}

.location-info-item strong {
  min-width: 80px;
  color: var(--primary-light);
}

.location-info-item p {
  margin: 0;
  font-size: 0.95rem;
}

/* ===================================
   SEÇÃO CTA FINAL
   =================================== */

.cta-final {
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary-medium) 100%);
  color: var(--white);
  padding: 80px 0;
  text-align: center;
}

.cta-final h2 {
  color: var(--white);
  margin-bottom: 1.5rem;
  font-size: 2.5rem;
}

.cta-final p {
  font-size: 1.25rem;
  margin-bottom: 2rem;
  opacity: 0.95;
}

.cta-buttons {
  display: flex;
  gap: 1.5rem;
  justify-content: center;
  flex-wrap: wrap;
}

.cta-whatsapp {
  background-color: #25d366;
  color: var(--white);
  padding: 1.25rem 2.5rem;
  border-radius: 50px;
  font-weight: 700;
  font-size: 1.1rem;
  transition: var(--transition);
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  border: none;
  cursor: pointer;
  text-decoration: none;
}

.cta-whatsapp:hover {
  background-color: #20ba5a;
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
}

.cta-phone {
  background-color: var(--primary-light);
  color: var(--white);
  padding: 1.25rem 2.5rem;
  border-radius: 50px;
  font-weight: 700;
  font-size: 1.1rem;
  transition: var(--transition);
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
}

.cta-phone:hover {
  background-color: var(--accent);
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
}

/* ===================================
   FOOTER
   =================================== */

footer {
  background-color: var(--primary-dark);
  color: var(--white);
  padding: 3rem 0 1rem;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin-bottom: 2rem;
}

.footer-section h4 {
  color: var(--primary-light);
  margin-bottom: 1rem;
}

.footer-section ul {
  list-style: none;
}

.footer-section ul li {
  margin-bottom: 0.5rem;
}

.footer-section a {
  color: var(--white);
  opacity: 0.8;
}

.footer-section a:hover {
  opacity: 1;
  color: var(--primary-light);
}

.social-links {
  display: flex;
  gap: 1rem;
  margin-top: 1rem;
}

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

.social-links a:hover {
  background-color: var(--primary-light);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 1rem;
  text-align: center;
  opacity: 0.8;
}

/* ===================================
   RESPONSIVIDADE
   =================================== */

@media (max-width: 768px) {
  h1 {
    font-size: 2rem;
  }

  h2 {
    font-size: 1.75rem;
  }

  h3 {
    font-size: 1.5rem;
  }

  section {
    padding: 50px 0;
  }

  nav {
    gap: 1rem;
    font-size: 0.9rem;
  }

  nav a::after {
    display: none;
  }

  .hero {
    padding: 60px 0;
  }

  .hero-content {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .hero-text h1 {
    font-size: 2rem;
  }

  .hero-text p {
    font-size: 1rem;
  }

  .credentials-container {
    grid-template-columns: 1fr;
  }

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

  .convenios-grid {
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  }

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

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

  .cta-buttons {
    flex-direction: column;
  }

  .cta-buttons .btn {
    width: 100%;
  }

  .btn-group {
    flex-direction: column;
  }

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

@media (max-width: 480px) {
  .container {
    padding: 0 15px;
  }

  h1 {
    font-size: 1.5rem;
  }

  h2 {
    font-size: 1.25rem;
  }

  h3 {
    font-size: 1.1rem;
  }

  nav {
    display: none;
  }

  .btn-header {
    padding: 0.6rem 1.2rem;
    font-size: 0.9rem;
  }

  .hero {
    padding: 40px 0;
  }

  .hero-text h1 {
    font-size: 1.5rem;
  }

  .hero-text p {
    font-size: 0.95rem;
  }

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

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

  .cta-final h2 {
    font-size: 1.5rem;
  }

  .cta-final p {
    font-size: 1rem;
  }

  .cta-whatsapp,
  .cta-phone {
    padding: 1rem 1.5rem;
    font-size: 1rem;
  }
}
