/* =============================================
   Access Clinic Muwailah - Custom Styles
   ============================================= */

/* ---- Base & Resets ---- */
*, *::before, *::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  color: #1f2937;
  background-color: #f9fafb;
}

/* ---- Animations ---- */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInLeft {
  from {
    opacity: 0;
    transform: translateX(-30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes fadeInRight {
  from {
    opacity: 0;
    transform: translateX(30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

@keyframes pulse-soft {
  0%, 100% { transform: scale(1); }
  50%       { transform: scale(1.03); }
}

/* ---- Scroll-triggered fade-in ---- */
.fade-in-up {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.fade-in-up.visible {
  opacity: 1;
  transform: translateY(0);
}

.fade-in-left {
  opacity: 0;
  transform: translateX(-30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.fade-in-left.visible {
  opacity: 1;
  transform: translateX(0);
}

.fade-in-right {
  opacity: 0;
  transform: translateX(30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.fade-in-right.visible {
  opacity: 1;
  transform: translateX(0);
}

.fade-in {
  opacity: 0;
  transition: opacity 0.7s ease;
}

.fade-in.visible {
  opacity: 1;
}

/* ---- Stagger delays ---- */
.delay-100 { transition-delay: 0.1s; }
.delay-200 { transition-delay: 0.2s; }
.delay-300 { transition-delay: 0.3s; }
.delay-400 { transition-delay: 0.4s; }
.delay-500 { transition-delay: 0.5s; }

/* ---- Navigation ---- */
.nav-link {
  position: relative;
  text-decoration: none;
  padding-bottom: 2px;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background-color: #0d9488;
  transition: width 0.3s ease;
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}

.nav-scrolled {
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
  background-color: #ffffff !important;
}

/* ---- Hero Section ---- */
.hero-overlay {
  background: linear-gradient(
    135deg,
    rgba(13, 148, 136, 0.82) 0%,
    rgba(6, 78, 59, 0.75) 100%
  );
}

.hero-title {
  text-shadow: 0 2px 8px rgba(0,0,0,0.3);
  animation: fadeInUp 0.9s ease both;
  animation-delay: 0.2s;
}

.hero-subtitle {
  animation: fadeInUp 0.9s ease both;
  animation-delay: 0.45s;
}

.hero-cta {
  animation: fadeInUp 0.9s ease both;
  animation-delay: 0.65s;
}

/* ---- Buttons ---- */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background-color: #0d9488;
  color: #ffffff;
  padding: 0.75rem 1.75rem;
  border-radius: 0.5rem;
  font-weight: 600;
  text-decoration: none;
  transition: background-color 0.25s ease, transform 0.2s ease, box-shadow 0.25s ease;
  cursor: pointer;
  border: none;
}

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

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background-color: transparent;
  color: #0d9488;
  padding: 0.75rem 1.75rem;
  border-radius: 0.5rem;
  font-weight: 600;
  text-decoration: none;
  border: 2px solid #0d9488;
  transition: background-color 0.25s ease, color 0.25s ease, transform 0.2s ease;
  cursor: pointer;
}

.btn-secondary:hover {
  background-color: #0d9488;
  color: #ffffff;
  transform: translateY(-2px);
}

.btn-white {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background-color: #ffffff;
  color: #0d9488;
  padding: 0.75rem 1.75rem;
  border-radius: 0.5rem;
  font-weight: 700;
  text-decoration: none;
  transition: background-color 0.25s ease, transform 0.2s ease, box-shadow 0.25s ease;
}

.btn-white:hover {
  background-color: #f0fdfa;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(255,255,255,0.3);
}

/* ---- Cards ---- */
.card {
  background: #ffffff;
  border-radius: 0.75rem;
  box-shadow: 0 1px 4px rgba(0,0,0,0.06), 0 4px 16px rgba(0,0,0,0.06);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  overflow: hidden;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 30px rgba(0,0,0,0.12);
}

/* ---- Service Cards ---- */
.service-icon-wrap {
  width: 3.5rem;
  height: 3.5rem;
  border-radius: 50%;
  background-color: #f0fdfa;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: background-color 0.3s ease;
}

.service-card:hover .service-icon-wrap {
  background-color: #0d9488;
}

.service-card:hover .service-icon-wrap i {
  color: #ffffff !important;
}

/* ---- Review Stars ---- */
.stars {
  display: inline-flex;
  gap: 2px;
}

.star-full {
  color: #f59e0b;
}

.star-half {
  color: #f59e0b;
}

.star-empty {
  color: #d1d5db;
}

/* ---- Lightbox ---- */
.lightbox-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.92);
  z-index: 9999;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.lightbox-overlay.open {
  display: flex;
  animation: fadeIn 0.3s ease;
}

.lightbox-img {
  max-width: 90vw;
  max-height: 85vh;
  border-radius: 0.5rem;
  object-fit: contain;
  box-shadow: 0 25px 60px rgba(0,0,0,0.5);
  animation: fadeInUp 0.35s ease;
}

.lightbox-close {
  position: fixed;
  top: 1.25rem;
  right: 1.25rem;
  background: rgba(255,255,255,0.15);
  border: none;
  color: #ffffff;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.2s ease;
  z-index: 10000;
}

.lightbox-close:hover {
  background: rgba(255,255,255,0.3);
}

.lightbox-prev,
.lightbox-next {
  position: fixed;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255,255,255,0.15);
  border: none;
  color: #ffffff;
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.2s ease;
  z-index: 10000;
}

.lightbox-prev { left: 1rem; }
.lightbox-next { right: 1rem; }

.lightbox-prev:hover,
.lightbox-next:hover {
  background: rgba(255,255,255,0.3);
}

.lightbox-caption {
  position: fixed;
  bottom: 1.5rem;
  left: 50%;
  transform: translateX(-50%);
  color: rgba(255,255,255,0.8);
  font-size: 0.9rem;
  text-align: center;
  z-index: 10000;
}

/* ---- Gallery Grid ---- */
.gallery-item {
  overflow: hidden;
  border-radius: 0.75rem;
  cursor: pointer;
  position: relative;
}

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

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

.gallery-overlay {
  position: absolute;
  inset: 0;
  background: rgba(13, 148, 136, 0.0);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.3s ease;
  border-radius: 0.75rem;
}

.gallery-item:hover .gallery-overlay {
  background: rgba(13, 148, 136, 0.45);
}

.gallery-overlay i {
  color: #ffffff;
  opacity: 0;
  transform: scale(0.7);
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.gallery-item:hover .gallery-overlay i {
  opacity: 1;
  transform: scale(1);
}

/* ---- Section Headings ---- */
.section-tag {
  display: inline-block;
  background-color: #f0fdfa;
  color: #0d9488;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.35rem 1rem;
  border-radius: 9999px;
  margin-bottom: 0.75rem;
}

/* ---- Stats Bar ---- */
.stat-number {
  font-size: 2.25rem;
  font-weight: 800;
  color: #0d9488;
  line-height: 1;
}

/* ---- Map Embed ---- */
.map-container {
  border-radius: 0.75rem;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}

/* ---- Review Card ---- */
.review-card {
  background: #ffffff;
  border-radius: 0.75rem;
  padding: 1.5rem;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
  border-left: 4px solid #0d9488;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.review-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.1);
}

.reviewer-avatar {
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 50%;
  background: linear-gradient(135deg, #0d9488, #14b8a6);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  font-weight: 700;
  font-size: 1.05rem;
  flex-shrink: 0;
}

/* ---- Team Member ---- */
.team-card {
  background: #ffffff;
  border-radius: 0.75rem;
  padding: 1.5rem;
  text-align: center;
  box-shadow: 0 2px 10px rgba(0,0,0,0.07);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.team-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 28px rgba(0,0,0,0.12);
}

.team-avatar {
  width: 4.5rem;
  height: 4.5rem;
  border-radius: 50%;
  background: linear-gradient(135deg, #0d9488, #059669);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  font-size: 1.6rem;
  margin: 0 auto 0.85rem;
}

/* ---- Footer ---- */
footer {
  background-color: #064e3b;
}

.footer-link {
  color: #a7f3d0;
  text-decoration: none;
  transition: color 0.2s ease;
}

.footer-link:hover {
  color: #ffffff;
}

/* ---- Mobile Menu ---- */
#mobile-menu {
  display: none;
  flex-direction: column;
  gap: 0.5rem;
  padding: 1rem;
  background: #ffffff;
  border-top: 1px solid #e5e7eb;
}

#mobile-menu.open {
  display: flex;
}

/* ---- Breadcrumb ---- */
.page-hero {
  background: linear-gradient(135deg, #0d9488 0%, #064e3b 100%);
  padding: 5rem 1rem 3rem;
  text-align: center;
  color: #ffffff;
}

.page-hero h1 {
  font-size: clamp(1.75rem, 4vw, 2.75rem);
  font-weight: 800;
  margin-bottom: 0.5rem;
}

.page-hero p {
  font-size: 1.1rem;
  color: rgba(255,255,255,0.85);
}

/* ---- Scrollbar ---- */
::-webkit-scrollbar {
  width: 6px;
}

::-webkit-scrollbar-track {
  background: #f1f5f9;
}

::-webkit-scrollbar-thumb {
  background: #0d9488;
  border-radius: 3px;
}

/* ---- Utility ---- */
.text-primary { color: #0d9488; }
.bg-primary   { background-color: #0d9488; }

.partial-star-wrapper {
  position: relative;
  display: inline-block;
  color: #d1d5db;
}

.partial-star-fill {
  position: absolute;
  top: 0;
  left: 0;
  overflow: hidden;
  color: #f59e0b;
  white-space: nowrap;
}

