/* ============ OPHTHALMOLOGY PAGE STYLES ============ */

/* ---- Hero ---- */
.oph-hero {
  position: relative;
  padding: 100px 0 80px;
  background: linear-gradient(135deg, #0d4f5a 0%, #0b1f3a 100%);
  overflow: hidden;
  min-height: 480px;
  display: flex;
  align-items: center;
}
.oph-hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.oph-hero-bg::before {
  content: '';
  position: absolute;
  top: -40%;
  right: -15%;
  width: 550px;
  height: 550px;
  background: radial-gradient(circle, rgba(232,116,42,0.1) 0%, transparent 65%);
  border-radius: 50%;
}
.oph-hero-bg::after {
  content: '';
  position: absolute;
  bottom: -30%;
  left: -10%;
  width: 450px;
  height: 450px;
  background: radial-gradient(circle, rgba(26,122,138,0.12) 0%, transparent 65%);
  border-radius: 50%;
}
.oph-hero .container {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 50px;
  align-items: center;
}
.oph-hero-content {
  color: var(--white);
}
.oph-hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(232,116,42,0.15);
  border: 1px solid rgba(232,116,42,0.3);
  color: var(--accent);
  padding: 8px 18px;
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 22px;
  backdrop-filter: blur(10px);
}
.oph-hero-content h1 {
  font-size: 3rem;
  font-weight: 800;
  line-height: 1.12;
  margin-bottom: 8px;
  letter-spacing: -0.5px;
}
.oph-hero-content h1 span {
  color: var(--accent);
}
.oph-hero-content h2 {
  font-size: 1.15rem;
  font-weight: 500;
  color: rgba(255,255,255,0.55);
  margin-bottom: 20px;
  letter-spacing: 0.2px;
}
.oph-hero-content p {
  font-size: 1.02rem;
  color: rgba(255,255,255,0.72);
  margin-bottom: 30px;
  max-width: 540px;
  line-height: 1.75;
}
.oph-hero-buttons {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}
.oph-hero-visual {
  display: flex;
  justify-content: center;
  align-items: center;
}
.oph-hero-icon-ring {
  width: 180px;
  height: 180px;
  background: rgba(255,255,255,0.05);
  border: 2px solid rgba(255,255,255,0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  animation: float-badge 3s ease-in-out infinite;
  backdrop-filter: blur(8px);
  position: relative;
}
.oph-hero-icon-ring::before {
  content: '';
  position: absolute;
  inset: -12px;
  border: 1px solid rgba(255,255,255,0.05);
  border-radius: 50%;
}
.oph-hero-icon-ring::after {
  content: '';
  position: absolute;
  inset: -24px;
  border: 1px solid rgba(255,255,255,0.03);
  border-radius: 50%;
}

/* ---- Sub-Services ---- */
.oph-services {
  padding: 100px 0;
  background: var(--off-white);
}
.oph-services .section-header {
  text-align: center;
  margin-bottom: 20px;
}
.oph-services .section-subtitle {
  justify-content: center;
}
.oph-services .section-subtitle::before {
  display: none;
}
.oph-section-desc {
  text-align: center;
  max-width: 600px;
  margin: 0 auto 50px;
  color: var(--gray-600);
  font-size: 1rem;
  line-height: 1.7;
}
.oph-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.oph-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 30px 26px;
  border: 1px solid var(--gray-200);
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}
.oph-card.has-img {
  padding: 0;
}
.oph-card.has-img .oph-card-body {
  padding: 22px 24px 26px;
}
.oph-card-img {
  width: 100%;
  max-height: 240px;
  overflow: hidden;
  position: relative;
}
.oph-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
  transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.oph-card:hover .oph-card-img img {
  transform: scale(1.08);
}
.oph-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--teal-gradient);
  transform: scaleX(0);
  transition: var(--transition);
  z-index: 2;
}
.oph-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
  border-color: transparent;
}
.oph-card:hover::before {
  transform: scaleX(1);
}
.oph-card-icon {
  width: 52px;
  height: 52px;
  background: linear-gradient(135deg, rgba(13,79,90,0.08), rgba(26,122,138,0.12));
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
  color: var(--primary);
  transition: var(--transition);
}
.oph-card:hover .oph-card-icon {
  background: var(--teal-gradient);
  color: var(--white);
}
.oph-card h4 {
  font-size: 1.02rem;
  font-weight: 700;
  margin-bottom: 10px;
  color: var(--gray-800);
}
.oph-card p {
  font-size: 0.9rem;
  color: var(--gray-600);
  line-height: 1.7;
}

/* ---- Testimonials ---- */
.oph-testimonials {
  padding: 100px 0;
  background: var(--white);
}
.oph-testimonials .section-header {
  text-align: center;
  margin-bottom: 50px;
}
.oph-testimonials .section-subtitle {
  justify-content: center;
}
.oph-testimonials .section-subtitle::before {
  display: none;
}

/* ---- FAQ ---- */
.oph-faq {
  padding: 100px 0;
  background: var(--off-white);
}
.oph-faq .section-header {
  text-align: center;
  margin-bottom: 50px;
}
.oph-faq .section-subtitle {
  justify-content: center;
}
.oph-faq .section-subtitle::before {
  display: none;
}
.faq-list {
  max-width: 780px;
  margin: 0 auto;
}
.faq-item {
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  margin-bottom: 12px;
  overflow: hidden;
  transition: var(--transition);
  background: var(--white);
}
.faq-item:hover {
  border-color: var(--primary-light);
}
.faq-item.active {
  border-color: var(--primary);
  box-shadow: var(--shadow-md);
}
.faq-question {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 24px;
  background: transparent;
  border: none;
  cursor: pointer;
  font-family: inherit;
  text-align: left;
}
.faq-question span {
  font-size: 1rem;
  font-weight: 600;
  color: var(--gray-800);
  flex: 1;
  padding-right: 16px;
}
.faq-chevron {
  color: var(--gray-400);
  transition: transform 0.3s ease;
  flex-shrink: 0;
}
.faq-item.active .faq-chevron {
  transform: rotate(180deg);
  color: var(--primary);
}
.faq-item.active .faq-question span {
  color: var(--primary);
}
.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1), padding 0.3s ease;
  padding: 0 24px;
}
.faq-item.active .faq-answer {
  max-height: 200px;
  padding: 0 24px 20px;
}
.faq-answer p {
  font-size: 0.93rem;
  color: var(--gray-600);
  line-height: 1.75;
}

/* ---- Bottom CTA Buttons ---- */
.oph-cta-buttons {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}
.btn-cta-whatsapp {
  background: #25D366;
  color: var(--white);
  padding: 16px 40px;
  border-radius: 50px;
  font-weight: 700;
  font-size: 1.05rem;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  transition: var(--transition);
  border: none;
  cursor: pointer;
  box-shadow: 0 6px 25px rgba(37,211,102,0.35);
}
.btn-cta-whatsapp:hover {
  background: #20bd5a;
  transform: translateY(-3px);
  box-shadow: 0 10px 35px rgba(37,211,102,0.45);
}

/* ---- Floating WhatsApp ---- */
.whatsapp-float {
  position: fixed;
  bottom: 28px;
  right: 28px;
  width: 60px;
  height: 60px;
  background: #25D366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  box-shadow: 0 6px 24px rgba(37,211,102,0.4);
  z-index: 999;
  transition: var(--transition);
  animation: wa-pulse 2.5s ease-in-out infinite;
}
.whatsapp-float:hover {
  transform: scale(1.1);
  box-shadow: 0 8px 32px rgba(37,211,102,0.55);
}
@keyframes wa-pulse {
  0%, 100% { box-shadow: 0 6px 24px rgba(37,211,102,0.4); }
  50% { box-shadow: 0 6px 24px rgba(37,211,102,0.4), 0 0 0 12px rgba(37,211,102,0.1); }
}

/* ---- Responsive ---- */
@media (max-width: 1024px) {
  .oph-hero .container {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 30px;
  }
  .oph-hero-content p {
    margin: 0 auto 30px;
  }
  .oph-hero-buttons {
    justify-content: center;
  }
  .oph-hero-visual {
    display: none;
  }
  .oph-hero-content h1 {
    font-size: 2.4rem;
  }
  .oph-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 768px) {
  .oph-hero {
    padding: 80px 0 60px;
    min-height: auto;
  }
  .oph-hero-content h1 {
    font-size: 2rem;
  }
  .oph-hero-content h2 {
    font-size: 1rem;
  }
  .oph-grid {
    grid-template-columns: 1fr 1fr;
  }
  .oph-cta-buttons {
    flex-direction: column;
    align-items: center;
  }
  .oph-cta-buttons a {
    width: 100%;
    max-width: 320px;
    text-align: center;
    justify-content: center;
  }
  .whatsapp-float {
    bottom: 20px;
    right: 20px;
    width: 54px;
    height: 54px;
  }
}
@media (max-width: 480px) {
  .oph-hero-content h1 {
    font-size: 1.65rem;
  }
  .oph-grid {
    grid-template-columns: 1fr;
  }
  .faq-question {
    padding: 16px 18px;
  }
  .faq-question span {
    font-size: 0.93rem;
  }
  .oph-hero-buttons {
    flex-direction: column;
    align-items: center;
  }
  .oph-hero-buttons a {
    width: 100%;
    max-width: 280px;
    text-align: center;
    justify-content: center;
  }
}
