/*
Theme Name: OftalmoAqui
Theme URI: https://oftalmoaqui.com.br
Author: OftalmoAqui
Author URI: https://oftalmoaqui.com.br
Description: Tema customizado para OftalmoAqui - Teleoftalmologia
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: oftalmoaqui
*/

/* ========================================
   CSS Variables / Design Tokens
======================================== */
:root {
  /* Brand Colors */
  --primary: 210 100% 35%;
  --primary-light: 210 100% 45%;
  --primary-dark: 210 100% 25%;
  --secondary: 28 100% 50%;
  --secondary-light: 28 100% 60%;
  
  /* Backgrounds */
  --background: 210 40% 98%;
  --foreground: 210 40% 10%;
  --card: 0 0% 100%;
  --card-foreground: 210 40% 10%;
  --muted: 210 30% 96%;
  --muted-foreground: 210 20% 40%;
  
  /* UI Elements */
  --border: 210 20% 90%;
  --ring: 210 100% 35%;
  --radius: 0.75rem;
  
  /* Gradients */
  --gradient-hero: linear-gradient(135deg, hsl(210 100% 35%) 0%, hsl(210 100% 25%) 100%);
  --gradient-cta: linear-gradient(135deg, hsl(28 100% 50%) 0%, hsl(28 100% 40%) 100%);
  
  /* Shadows */
  --shadow-card: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --shadow-card-hover: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -5px rgba(0, 0, 0, 0.04);
}

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

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

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background-color: hsl(var(--background));
  color: hsl(var(--foreground));
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

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

/* ========================================
   Typography
======================================== */
h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: 1.2;
  color: hsl(var(--foreground));
}

h1 { font-size: 3rem; }
h2 { font-size: 2.25rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.25rem; }

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

/* ========================================
   Layout
======================================== */
.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1rem;
}

@media (min-width: 640px) {
  .container { padding: 0 1.5rem; }
}

@media (min-width: 1024px) {
  .container { padding: 0 2rem; }
}

.section-padding {
  padding: 4rem 0;
}

@media (min-width: 768px) {
  .section-padding { padding: 6rem 0; }
}

/* ========================================
   Buttons
======================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  font-size: 0.875rem;
  font-weight: 600;
  border-radius: var(--radius);
  border: none;
  cursor: pointer;
  transition: all 0.2s ease;
  text-decoration: none;
}

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

.btn-primary:hover {
  opacity: 0.9;
  transform: translateY(-2px);
}

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

.btn-secondary:hover {
  opacity: 0.9;
  transform: translateY(-2px);
}

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

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

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

/* ========================================
   Header / Navigation
======================================== */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  background: white;
  box-shadow: var(--shadow-card);
  transition: all 0.3s ease;
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 90px;
}

.site-logo img {
  height: 96px;
  width: auto;
}

.site-header .btn {
  align-self: center;
}

.main-nav {
  display: none;
}

@media (min-width: 1024px) {
  .main-nav {
    display: flex;
    align-items: center;
    gap: 2rem;
  }
}

.main-nav a {
  font-size: 0.875rem;
  font-weight: 500;
  color: hsl(var(--muted-foreground));
  transition: color 0.2s;
}

.main-nav a:hover {
  color: hsl(var(--primary));
}

.mobile-menu-toggle {
  display: flex;
  padding: 0.5rem;
  background: none;
  border: none;
  cursor: pointer;
}

@media (min-width: 1024px) {
  .mobile-menu-toggle { display: none; }
}

.mobile-nav {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: white;
  padding: 1rem;
  box-shadow: var(--shadow-card);
}

.mobile-nav.active {
  display: block;
}

.mobile-nav a {
  display: block;
  padding: 0.75rem 1rem;
  color: hsl(var(--foreground));
}

/* ========================================
   Hero Section
======================================== */
.hero-section {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: flex-start;
  background: var(--gradient-hero);
  padding-top: 90px;
  overflow: hidden;
}

.hero-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url('assets/images/hero-bg.jpg') center/cover no-repeat;
  opacity: 0.15;
}

@media (max-width: 768px) {
  .hero-section .container {
    padding-top: 50px; /* gap entre header e badge */
  }
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 700px;
  color: white;
  padding-top: 0;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  background: rgba(255, 255, 255, 0.15);
  border-radius: 9999px;
  font-size: 0.875rem;
  margin-bottom: 1.5rem;
  backdrop-filter: blur(8px);
}

.hero-title {
  font-size: 3rem;
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 1.5rem;
  color: white;
}

@media (min-width: 768px) {
  .hero-title { font-size: 3.5rem; }
}

@media (min-width: 1024px) {
  .hero-title { font-size: 4rem; }
}

.hero-title span {
  color: hsl(var(--secondary));
}

.hero-description {
  font-size: 1.125rem;
  opacity: 0.9;
  margin-bottom: 2rem;
  max-width: 500px;
}

.hero-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 3rem;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  padding-top: 2rem;
  padding-bottom: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.hero-stat {
  text-align: center;
}

.hero-stat-value {
  font-size: 1.5rem;
  font-weight: 700;
  color: hsl(var(--secondary));
}

.hero-stat-label {
  font-size: 0.875rem;
  opacity: 0.8;
}

/* ========================================
   About Section
======================================== */
.about-section {
  background: hsl(var(--background));
}

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

/* Vídeo no About */
.about-video {
  margin-bottom: 4rem;
}

.video-wrapper video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: inherit;
}

.video-wrapper {
  position: relative;
  width: 100%;
  max-width: 900px;
  margin: 0 auto;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-card);
}

.video-wrapper iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.section-subtitle {
  display: inline-block;
  padding: 0.25rem 1rem;
  background: hsl(var(--primary) / 0.1);
  color: hsl(var(--primary));
  border-radius: 9999px;
  font-size: 0.875rem;
  font-weight: 600;
  margin-bottom: 1rem;
}

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

.section-description {
  color: hsl(var(--muted-foreground));
  font-size: 1.125rem;
}

/* Values Grid */
.values-grid {
  display: grid;
  grid-template-columns: repeat(1, 1fr);
  gap: 1.5rem;
  margin-bottom: 4rem;
}

@media (min-width: 768px) {
  .values-grid { grid-template-columns: repeat(3, 1fr); }
}

.value-card {
  background: hsl(var(--card));
  padding: 2rem;
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
  text-align: center;
  transition: all 0.3s ease;
}

.value-card:hover {
  box-shadow: var(--shadow-card-hover);
  transform: translateY(-4px);
}

.value-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 1rem;
  background: hsl(var(--primary) / 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: hsl(var(--primary));
}

.value-title {
  margin-bottom: 0.5rem;
}

.value-description {
  color: hsl(var(--muted-foreground));
  font-size: 0.875rem;
}

/* Team Grid */
.team-grid {
  display: grid;
  grid-template-columns: repeat(1, 1fr);
  gap: 2rem;
  margin-bottom: 4rem;
}

@media (min-width: 768px) {
  .team-grid { grid-template-columns: repeat(2, 1fr); }
}

.team-card {
  background: hsl(var(--card));
  padding: 2rem;
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
  text-align: center;
}

.team-avatar {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  object-fit: cover;
  margin: 0 auto 1rem;
  border: 4px solid hsl(var(--primary) / 0.2);
}

.team-name {
  margin-bottom: 0.25rem;
}

.team-role {
  color: hsl(var(--primary));
  font-size: 0.875rem;
  font-weight: 500;
}

/* ========================================
   How It Works Section
======================================== */
.how-it-works-section {
  background: linear-gradient(180deg, hsl(var(--muted)) 0%, hsl(var(--background)) 100%);
}

.steps-grid {
  display: grid;
  grid-template-columns: repeat(1, 1fr);
  gap: 2rem;
}

@media (min-width: 768px) {
  .steps-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 1024px) {
  .steps-grid { grid-template-columns: repeat(4, 1fr); }
}

.step-card {
  position: relative;
  background: hsl(var(--card));
  padding: 2rem;
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
  text-align: center;
}

.step-number {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  width: 32px;
  height: 32px;
  background: hsl(var(--primary));
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.875rem;
}

.step-icon {
  width: 80px;
  height: 80px;
  margin: 1rem auto;
  background: hsl(var(--primary) / 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: hsl(var(--primary));
}

.step-title {
  margin-bottom: 0.5rem;
}

.step-description {
  color: hsl(var(--muted-foreground));
  font-size: 0.875rem;
}

/* ========================================
   Services Section
======================================== */
.services-section {
  background: hsl(var(--background));
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(1, 1fr);
  gap: 1.5rem;
}

@media (min-width: 640px) {
  .services-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 1024px) {
  .services-grid { grid-template-columns: repeat(3, 1fr); }
}

.service-card {
  background: hsl(var(--card));
  padding: 1.5rem;
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;  
}

.service-card:hover {
  box-shadow: var(--shadow-card-hover);
  transform: translateY(-4px);
}

.service-icon {
  width: 48px;
  height: 48px;
  background: hsl(var(--primary) / 0.1);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  color: hsl(var(--primary));
  margin-bottom: 1rem;
}

.service-title {
  margin-bottom: 0.5rem;
}

.service-description {
  color: hsl(var(--muted-foreground));
  font-size: 0.875rem;
  margin-bottom: 1rem;
}

.service-card .btn {
  margin-top: auto;       
}

/* ========================================
   Technology Section
======================================== */
.technology-section {
  background: var(--gradient-hero);
  color: white;
}

.technology-section .section-subtitle {
  background: rgba(255, 255, 255, 0.15);
  color: white;
}

.technology-section .section-title {
  color: white;
}

.technology-section .section-description {
  color: rgba(255, 255, 255, 0.8);
}

.tech-grid {
  display: grid;
  grid-template-columns: repeat(1, 1fr);
  gap: 1.5rem;
}

@media (min-width: 768px) {
  .tech-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 1024px) {
  .tech-grid { grid-template-columns: repeat(3, 1fr); }
}

.tech-card {
  background: rgba(255, 255, 255, 0.1);
  padding: 1.5rem;
  border-radius: var(--radius);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.tech-icon {
  width: 48px;
  height: 48px;
  background: rgba(255, 255, 255, 0.15);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
}

.tech-title {
  color: white;
  margin-bottom: 0.5rem;
}

.tech-description {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.875rem;
}

/* ========================================
   Target Audience Section
======================================== */
.audience-section {
  background: hsl(var(--background));
}

.audience-grid {
  display: grid;
  grid-template-columns: repeat(1, 1fr);
  gap: 2rem;
}

@media (min-width: 768px) {
  .audience-grid { grid-template-columns: repeat(3, 1fr); }
}

.audience-card {
  background: hsl(var(--card));
  padding: 2rem;
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
  text-align: center;
  transition: all 0.3s ease;
  display: flex;          /* 🔑 */
  flex-direction: column
}

.audience-card:hover {
  box-shadow: var(--shadow-card-hover);
  transform: translateY(-4px);
}

.audience-icon {
  width: 80px;
  height: 80px;
  margin: 0 auto 1.5rem;
  background: hsl(var(--primary) / 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: hsl(var(--primary));
}

.audience-title {
  margin-bottom: 0.5rem;
}

.audience-description {
  color: hsl(var(--muted-foreground));
  font-size: 0.875rem;
  margin-bottom: 1rem;
}

.audience-features {
  list-style: none;
  text-align: left;
  margin-top: auto;
}

.audience-features li {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.25rem 0;
  font-size: 0.875rem;
  color: hsl(var(--muted-foreground));
}

.audience-features li::before {
  content: '✓';
  color: hsl(var(--primary));
  font-weight: 700;
}

/* ========================================
   Booking Section
======================================== */
.booking-section {
  background: linear-gradient(180deg, hsl(var(--background)) 0%, hsl(var(--muted)) 100%);
}

.booking-wrapper {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  align-items: start;
}

@media (min-width: 1024px) {
  .booking-wrapper { grid-template-columns: 1fr 1fr; }
}

.booking-info h2 {
  margin-bottom: 1rem;
}

.booking-info p {
  color: hsl(var(--muted-foreground));
  margin-bottom: 2rem;
}

.booking-benefits {
  list-style: none;
}

.booking-benefits li {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 0;
  border-bottom: 1px solid hsl(var(--border));
}

.booking-benefits li:last-child {
  border-bottom: none;
}

.benefit-icon {
  width: 40px;
  height: 40px;
  background: hsl(var(--primary) / 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: hsl(var(--primary));
  flex-shrink: 0;
}

.booking-form {
  background: hsl(var(--card));
  padding: 2rem;
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  font-size: 0.875rem;
  font-weight: 500;
  margin-bottom: 0.5rem;
  color: hsl(var(--foreground));
}

.form-group input,
.form-group select {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid hsl(var(--border));
  border-radius: var(--radius);
  font-size: 1rem;
  background: hsl(var(--background));
  color: hsl(var(--foreground));
  transition: border-color 0.2s, box-shadow 0.2s;
}

.form-group input:focus,
.form-group select:focus {
  outline: none;
  border-color: hsl(var(--primary));
  box-shadow: 0 0 0 3px hsl(var(--primary) / 0.1);
}

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

.form-submit {
  width: 100%;
}

/* ========================================
   Footer
======================================== */
.site-footer {
  background: hsl(210 40% 10%);
  color: white;
  padding: 4rem 0 2rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(1, 1fr);
  gap: 2rem;
  margin-bottom: 3rem;
}

@media (min-width: 768px) {
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 1024px) {
  .footer-grid { grid-template-columns: 2fr 1fr 1fr 1fr; }
}

.footer-brand img {
  height: 96px;
  margin-bottom: 1rem;
}

.footer-brand p {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.875rem;
  max-width: 300px;
}

.footer-heading {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 1rem;
  color: white;
}

.footer-links {
  list-style: none;
}

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

.footer-links a {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.875rem;
  transition: color 0.2s;
}

.footer-links a:hover {
  color: white;
}

.footer-contact li {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.875rem;
}

.footer-bottom {
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  flex-direction: column;
  gap: 1rem;
  align-items: center;
  text-align: center;
}

@media (min-width: 768px) {
  .footer-bottom {
    flex-direction: row;
    justify-content: space-between;
    text-align: left;
  }
}

.technical-responsible {
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.6);
  text-align: center;
}

@media (min-width: 768px) {
  .technical-responsible {
    text-align: right;
  }
}

.footer-bottom .technical-responsible {
  margin-left: auto;
  text-align: right;
}

@media (max-width: 767px) {
  .footer-bottom .technical-responsible {
    margin-left: 0;
    text-align: center;
  }
}

.footer-bottom p {
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.875rem;
}

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

.social-links a {
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  transition: background 0.2s;
}

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

/* ========================================
   WhatsApp Button
======================================== */
.whatsapp-btn {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 60px;
  height: 60px;
  background: #25D366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  box-shadow: 0 4px 12px rgba(37, 211, 102, 0.4);
  z-index: 100;
  transition: transform 0.2s, box-shadow 0.2s;
}

.whatsapp-btn:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 20px rgba(37, 211, 102, 0.5);
}

.whatsapp-btn svg {
  width: 32px;
  height: 32px;
}

/* ========================================
   Animations
======================================== */
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.animate-fade-in {
  animation: fadeIn 0.6s ease-out forwards;
}

.animate-fade-in-up {
  animation: fadeInUp 0.6s ease-out forwards;
}

.delay-100 { animation-delay: 0.1s; }
.delay-200 { animation-delay: 0.2s; }
.delay-300 { animation-delay: 0.3s; }
.delay-400 { animation-delay: 0.4s; }

/* ========================================
   Utilities
======================================== */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.mb-0 { margin-bottom: 0; }
.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }

.hidden { display: none; }

@media (min-width: 768px) {
  .md-show { display: block; }
  .md-hide { display: none; }
}

@media (min-width: 1024px) {
  .lg-show { display: block; }
  .lg-hide { display: none; }
}

.legal-page {
  padding-top: 120px; /* igual ao header fixo */
}

.legal-container {
  max-width: 900px;
}

.legal-content {
  background: hsl(var(--card));
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
  padding: 2.5rem;
}

.legal-content h1 {
  font-size: 2rem;
  font-weight: 800;
  margin-bottom: 1.25rem;
}

.legal-content p {
  margin: 1rem 0;
  line-height: 1.75;
  color: hsl(var(--muted-foreground));
}

.legal-content h2, .legal-content h3 {
  margin-top: 2rem;
  margin-bottom: 0.75rem;
}