/* Reset & CSS Variables */
:root {
  --primary-blue: #1d4ed8;
  --primary-blue-hover: #1e40af;
  --green-whatsapp: #25d366;
  --green-whatsapp-hover: #1da851;
  --text-main: #0f172a;
  --text-secondary: #475569;
  --bg-light: #f8fafc;
  --bg-card: #ffffff;
  --border-color: #e2e8f0;
  --card-shadow: 0 4px 20px -2px rgba(0, 0, 0, 0.05);
  --font-family: 'Inter', system-ui, -apple-system, sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-family);
  color: var(--text-main);
  background-color: var(--bg-light);
  line-height: 1.6;
}

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

img, video {
  max-width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}

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

/* Section Styling */
section {
  padding: 4.5rem 0;
}

.section-header {
  text-align: center;
  max-width: 800px;
  margin: 0 auto 3rem auto;
}

.section-header h2 {
  font-size: 2.1rem;
  font-weight: 800;
  color: var(--text-main);
  letter-spacing: -0.02em;
  text-transform: uppercase;
  margin-bottom: 0.75rem;
}

.section-header p {
  font-size: 1.1rem;
  color: var(--text-secondary);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  padding: 0.85rem 1.6rem;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.95rem;
  transition: all 0.25s ease;
  cursor: pointer;
  border: none;
}

.btn-blue {
  background-color: var(--primary-blue);
  color: #fff;
}

.btn-blue:hover {
  background-color: var(--primary-blue-hover);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(29, 78, 216, 0.25);
}

.btn-green {
  background-color: var(--green-whatsapp);
  color: #fff;
}

.btn-green:hover {
  background-color: var(--green-whatsapp-hover);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(37, 211, 102, 0.25);
}

/* Header / Navbar */
.header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background-color: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border-color);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.03);
}

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

.logo {
  display: flex;
  flex-direction: column;
}

.logo-main {
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--text-main);
}

.logo-sub {
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--primary-blue);
  letter-spacing: 0.2em;
  margin-top: -3px;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.nav-links {
  display: flex;
  gap: 1.25rem;
  list-style: none;
}

.nav-links a {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-secondary);
  transition: color 0.2s;
}

.nav-links a:hover {
  color: var(--primary-blue);
}

.mobile-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.5rem;
  color: var(--text-main);
  cursor: pointer;
}

/* Hero Section */
.hero {
  padding: 5rem 0;
  background: linear-gradient(180deg, #f1f5f9 0%, #f8fafc 100%);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 3.5rem;
  align-items: center;
}

.hero-media {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
  width: 100%;
}

.hero-media img {
  width: 100%;
  height: 420px;
  object-fit: cover;
  border-radius: 16px;
  display: block;
}

/* Ajuste específico para Telas Menores e Celulares */
@media (max-width: 768px) {
  .hero {
    padding: 2.5rem 0;
  }

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

  .hero-media img {
    height: auto; /* Mantém a proporção real da arte no celular */
    max-height: 380px;
    object-fit: contain; /* Garante que a imagem inteira apareça sem cortes */
  }
}

/* Highlight Banner */
.highlight-banner {
  background-color: #ffffff;
  text-align: center;
  padding: 4rem 1.5rem;
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
}

.highlight-banner h2 {
  font-size: 2rem;
  font-weight: 800;
  text-transform: uppercase;
  margin-bottom: 1rem;
}

.highlight-banner p {
  max-width: 800px;
  margin: 0 auto;
  font-size: 1.15rem;
  color: var(--text-secondary);
}

/* Rotinas / Segmentos Cards */
.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.card-routine {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--card-shadow);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  text-align: center;
}

.card-routine:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 30px -5px rgba(0, 0, 0, 0.08);
}

.card-routine-img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  display: block;
}

.card-routine-body {
  padding: 1.75rem 1.25rem;
}

.card-routine-title {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.card-routine-body p {
  font-size: 0.95rem;
  color: var(--text-secondary);
}

/* Diferenciais Grid */
.grid-2x2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 1.75rem;
  display: flex;
  align-items: flex-start;
  gap: 1.25rem;
  box-shadow: var(--card-shadow);
}

.feature-icon {
  font-size: 1.8rem;
  color: var(--primary-blue);
  background: #eff6ff;
  width: 54px;
  height: 54px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.feature-text h3 {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 0.35rem;
}

.feature-text p {
  font-size: 0.95rem;
  color: var(--text-secondary);
}

/* Soluções / Serviços */
.service-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--card-shadow);
}

.service-card img {
  height: 200px;
  width: 100%;
  object-fit: cover;
}

.service-card-body {
  padding: 1.5rem;
}

.service-card-title {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.service-card-title i {
  color: var(--primary-blue);
}

.service-card-body p {
  font-size: 0.9rem;
  color: var(--text-secondary);
}

/* Galeria de Fotos com Lightbox */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.gallery-item {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  height: 240px;
  cursor: pointer;
  box-shadow: var(--card-shadow);
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.gallery-overlay {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
  color: #fff;
  font-weight: 600;
  gap: 0.5rem;
}

.gallery-item:hover img {
  transform: scale(1.06);
}

.gallery-item:hover .gallery-overlay {
  opacity: 1;
}

/* Modal / Lightbox */
.modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 2000;
  background-color: rgba(0, 0, 0, 0.85);
  align-items: center;
  justify-content: center;
  padding: 2rem;
}

.modal.active {
  display: flex;
}

.modal-content {
  max-width: 90%;
  max-height: 85vh;
  border-radius: 8px;
}

.modal-close {
  position: absolute;
  top: 2rem;
  right: 2rem;
  color: #fff;
  font-size: 2.5rem;
  cursor: pointer;
}

/* Vídeos em Formato Reels (Vertical 9:16) */
.video-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--card-shadow);
  display: flex;
  flex-direction: column;
}

.video-container {
  position: relative;
  width: 100%;
  aspect-ratio: 9 / 16; /* Força a proporção exata de Reels/TikTok */
  max-height: 520px;
  background: #000;
  overflow: hidden;
}

.video-container video {
  width: 100%;
  height: 100%;
  object-fit: cover; /* Preenche toda a tela do Reels sem esticar */
  display: block;
}

.video-info {
  padding: 1.25rem;
  background: #fff;
}

.video-info h3 {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 0.25rem;
}

.video-info p {
  font-size: 0.85rem;
  color: var(--text-secondary);
}

/* Como Funciona */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1rem;
}

.step-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 1.5rem 1rem;
  text-align: center;
  box-shadow: var(--card-shadow);
  position: relative;
}

.step-number {
  width: 36px;
  height: 36px;
  background: #dbeafe;
  color: var(--primary-blue);
  font-weight: 800;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem auto;
  font-size: 1.1rem;
}

.step-card h3 {
  font-size: 1rem;
  font-weight: 700;
  text-transform: uppercase;
  margin-bottom: 0.5rem;
}

.step-card p {
  font-size: 0.85rem;
  color: var(--text-secondary);
}

/* Instagram Feed */
.insta-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1rem;
  margin-bottom: 2rem;
}

.insta-item {
  height: 160px;
  border-radius: 10px;
  overflow: hidden;
}

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

/* Sobre a Protechlar */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3.5rem;
  align-items: center;
}

.about-text h2 {
  font-size: 2.2rem;
  font-weight: 800;
  margin-bottom: 1rem;
}

.about-text p {
  color: var(--text-secondary);
  margin-bottom: 1rem;
  font-size: 1rem;
}

.pill-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 2rem;
  justify-content: center;
}

.pill {
  background: #e2e8f0;
  padding: 0.5rem 1rem;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-main);
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

/* PLANOS E VALORES */
.plans-section {
  background-color: #f1f5f9;
  border-top: 1px solid var(--border-color);
}

.plans-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  align-items: stretch;
}

.plan-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 2.5rem 2rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  box-shadow: var(--card-shadow);
  transition: transform 0.3s ease;
}

.plan-card.featured {
  border: 2px solid var(--primary-blue);
  transform: scale(1.03);
  box-shadow: 0 10px 30px rgba(29, 78, 216, 0.15);
}

.featured-badge {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--primary-blue);
  color: #fff;
  padding: 0.3rem 1.2rem;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.plan-header h3 {
  font-size: 1.5rem;
  font-weight: 800;
  margin-bottom: 0.25rem;
}

.plan-subtitle {
  font-size: 0.9rem;
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
}

.plan-price {
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--text-main);
  margin-bottom: 1.5rem;
}

.plan-price span {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-secondary);
}

.plan-badge-highlight {
  background: #eff6ff;
  color: var(--primary-blue);
  padding: 0.5rem 0.8rem;
  border-radius: 6px;
  font-weight: 700;
  font-size: 0.85rem;
  margin-bottom: 1.5rem;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.plan-features {
  list-style: none;
  margin-bottom: 2rem;
}

.plan-features li {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  font-size: 0.95rem;
  color: var(--text-secondary);
  margin-bottom: 0.85rem;
}

.plan-features li i {
  color: var(--green-whatsapp);
  margin-top: 0.2rem;
}

/* Footer */
.footer {
  background: var(--text-main);
  color: #94a3b8;
  padding: 3rem 0 1.5rem 0;
  font-size: 0.9rem;
}

.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid #334155;
  padding-bottom: 2rem;
  margin-bottom: 1.5rem;
}

.footer-logo {
  color: #fff;
  font-size: 1.4rem;
  font-weight: 800;
}

.footer-copyright {
  text-align: center;
  font-size: 0.8rem;
}

/* WhatsApp Floating Button */
.whatsapp-float {
  position: fixed;
  bottom: 25px;
  right: 25px;
  width: 60px;
  height: 60px;
  background-color: var(--green-whatsapp);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  z-index: 1500;
  transition: all 0.3s ease;
}

.whatsapp-float:hover {
  transform: scale(1.1);
  background-color: var(--green-whatsapp-hover);
}

/* Responsividade */
@media (max-width: 1024px) {
  .grid-3, .plans-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .plan-card.featured {
    transform: scale(1);
  }
  .steps-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .insta-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 768px) {
  .hero-grid, .about-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
  .grid-3, .grid-2x2, .gallery-grid, .plans-grid {
    grid-template-columns: 1fr;
  }
  .steps-grid {
    grid-template-columns: 1fr;
  }
  .insta-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .hero-text h1 {
    font-size: 2.2rem;
  }

  /* Mobile Navigation Menu */
  .mobile-toggle {
    display: block;
  }
  .nav-menu {
    position: absolute;
    top: 80px;
    left: 0;
    width: 100%;
    background: #fff;
    flex-direction: column;
    padding: 2rem;
    border-bottom: 1px solid var(--border-color);
    box-shadow: 0 10px 20px rgba(0,0,0,0.05);
    display: none;
  }
  .nav-menu.active {
    display: flex;
  }
  .nav-links {
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
  }
}

/* Fallback visual suave */
.img-placeholder {
  background: #cbd5e1;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #64748b;
  font-weight: 600;
  font-size: 0.85rem;
  text-align: center;
  padding: 1rem;
}