/* ============================================
   Dr. Mohammed Arman — Custom CSS
   Physical Medicine Specialist Website
   ============================================ */

/* ---- Font Families ---- */
.font-playfair { font-family: 'Playfair Display', serif; }
.font-poppins  { font-family: 'Poppins', sans-serif; }
.font-nunito   { font-family: 'Nunito Sans', sans-serif; }

/* ---- Smooth Scroll ---- */
html {
  scroll-behavior: smooth;
}

/* ---- Body Base ---- */
body {
  font-family: 'Nunito Sans', sans-serif;
  overflow-x: hidden;
}

/* ---- Navbar Scroll Shadow ---- */
#navbar.scrolled {
  box-shadow: 0 4px 20px rgba(13, 71, 161, 0.1);
}

/* ---- Hero Blobs ---- */
.hero-blob-1 {
  position: absolute;
  top: -100px;
  right: -100px;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(227,242,253,0.7) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

.hero-blob-2 {
  position: absolute;
  bottom: -80px;
  left: -80px;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(225,245,254,0.5) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

/* ---- Counter animation ---- */
.counter, .counter2 {
  display: inline-block;
  transition: all 0.3s ease;
}

/* ---- Nav Active State ---- */
.nav-link.active {
  color: #1565C0;
  border-bottom: 2px solid #1565C0;
  padding-bottom: 2px;
}

/* ---- Qualification Items - staggered animation ---- */
.qual-item {
  transition: all 0.3s ease;
}
.qual-item:hover {
  transform: translateX(4px);
  border-color: #1565C0;
  background: #E3F2FD;
}

/* ---- Specialty Cards hover ---- */
.specialty-card:hover {
  transform: translateY(-4px);
}

/* ---- Chamber Cards ---- */
.chamber-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

/* ---- Testimonial Cards ---- */
.testimonial-card {
  transition: all 0.3s ease;
}
.testimonial-card:hover {
  transform: translateY(-3px);
}

/* ---- Gallery Items ---- */
.gallery-item {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.gallery-item:hover {
  box-shadow: 0 20px 40px rgba(21, 101, 192, 0.2);
}

/* ---- Time Pill Selection ---- */
.time-pill input:checked + span {
  border-color: #1565C0;
  background-color: #1565C0;
  color: white;
}

.time-pill span {
  transition: all 0.2s ease;
}

.time-pill input:checked + span:hover {
  background-color: #0D47A1;
}

/* ---- Venue Card Selection ---- */
.venue-card:has(input:checked) {
  border-color: #1565C0;
  background-color: #EFF6FF;
}

/* ---- Appointment Form Inputs Focus ---- */
#appointment-form input:focus,
#appointment-form textarea:focus {
  box-shadow: 0 0 0 3px rgba(21, 101, 192, 0.1);
}

/* ---- Back to Top Button ---- */
#back-to-top {
  opacity: 0;
  pointer-events: none;
  transition: all 0.3s ease;
}
#back-to-top.visible {
  opacity: 1;
  pointer-events: auto;
}

/* ---- Floating WhatsApp ---- */
.fixed[href*="wa.me"] {
  animation: pulse-green 2.5s infinite;
}

@keyframes pulse-green {
  0%, 100% { box-shadow: 0 0 0 0 rgba(72, 187, 120, 0.5); }
  50% { box-shadow: 0 0 0 12px rgba(72, 187, 120, 0); }
}

/* ---- Section Padding Responsive ---- */
@media (max-width: 640px) {
  #hero { padding-top: 80px; }
  .font-playfair { line-height: 1.2; }
}

/* ---- AOS Custom Timing ---- */
[data-aos] {
  pointer-events: none;
}
[data-aos].aos-animate {
  pointer-events: auto;
}

/* ---- Scrollbar Styling ---- */
::-webkit-scrollbar {
  width: 6px;
}
::-webkit-scrollbar-track {
  background: #f1f5f9;
}
::-webkit-scrollbar-thumb {
  background: #1565C0;
  border-radius: 3px;
}
::-webkit-scrollbar-thumb:hover {
  background: #0D47A1;
}

/* ---- Print Styles ---- */
@media print {
  #navbar, .fixed, #back-to-top { display: none !important; }
  body { padding-top: 0 !important; }
  section { page-break-inside: avoid; }
}

/* ---- Selection Color ---- */
::selection {
  background: #1565C0;
  color: white;
}

/* ---- Mobile Menu Animation ---- */
#mobile-menu {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}
#mobile-menu.open {
  max-height: 500px;
}

/* ---- SweetAlert2 Custom ---- */
.swal2-popup {
  font-family: 'Poppins', sans-serif !important;
  border-radius: 20px !important;
}
.swal2-title {
  font-family: 'Playfair Display', serif !important;
  color: #0D47A1 !important;
}

/* ---- Stats Section Number ---- */
.stat-number {
  background: linear-gradient(135deg, #1565C0, #0D47A1);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ---- Appointment step numbers ---- */
.step-num {
  width: 28px;
  height: 28px;
  background: #1565C0;
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 700;
  font-family: 'Poppins', sans-serif;
  flex-shrink: 0;
}

/* ---- Footer smooth hover ---- */
footer a {
  transition: color 0.2s ease;
}

/* ---- Map iframe ---- */
iframe {
  display: block;
}

/* ---- Responsive Nav ---- */
@media (max-width: 1023px) {
  #mobile-menu {
    display: none;
  }
  #mobile-menu.open {
    display: block;
  }
}

/* ---- Hero section photo ring ---- */
.photo-ring {
  position: absolute;
  inset: -8px;
  border-radius: inherit;
  border: 2px dashed rgba(21, 101, 192, 0.3);
  animation: spin-slow 20s linear infinite;
}

@keyframes spin-slow {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

/* ---- Service item hover ---- */
.service-item {
  transition: all 0.2s ease;
}

/* ---- Focus visible for accessibility ---- */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: 2px solid #1565C0;
  outline-offset: 2px;
}

/* ---- Utilities ---- */
.text-balance { text-wrap: balance; }
