/* =============================================
   PATHAK HOSPITAL — MAIN STYLESHEET
   style.css
   ============================================= */

/* RESET & ROOT */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  --blue: #0a5eb0;
  --blue-dark: #083d7a;
  --blue-light: #1a73e8;
  --teal: #00a99d;
  --orange: #f97316;
  --white: #ffffff;
  --offwhite: #f4f7fb;
  --gray: #6b7280;
  --text: #1e2d3d;
  --border: #e2e8f0;
}

html { scroll-behavior: smooth; }
body { font-family: 'Poppins', sans-serif; color: var(--text); background: #fff; overflow-x: hidden; }
a { text-decoration: none; }
img { max-width: 100%; }


/* =============================================
   TOP BAR
   ============================================= */
.top-bar {
  background: var(--blue-dark);
  color: rgba(255,255,255,0.85);
  font-size: 0.78rem;
  padding: 7px 5%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
}
.top-bar a { color: rgba(255,255,255,0.85); }
.top-bar a:hover { color: #fff; }
.top-bar-left, .top-bar-right { display: flex; align-items: center; gap: 20px; }
.top-bar i { margin-right: 5px; color: #90cdf4; }


/* =============================================
   HEADER
   ============================================= */
header {
  background: #fff;
  border-bottom: 1px solid var(--border);
  padding: 14px 5%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 12px rgba(0,0,0,0.07);
}
.logo { display: flex; align-items: center; gap: 14px; }
.logo-icon {
  width: 52px; height: 52px;
  background: linear-gradient(135deg, var(--blue), var(--teal));
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-size: 1.5rem;
}
.logo-text { line-height: 1.2; }
.logo-text h1 { font-size: 1.3rem; font-weight: 700; color: var(--blue-dark); }
.logo-text p { font-size: 0.7rem; color: var(--gray); font-weight: 400; }

nav { display: flex; align-items: center; gap: 4px; }
nav a {
  font-size: 0.83rem; font-weight: 500;
  color: var(--text);
  padding: 8px 14px;
  border-radius: 6px;
  transition: all 0.2s;
}
nav a:hover, nav a.active { background: var(--blue); color: #fff; }
.nav-appt {
  background: var(--orange) !important;
  color: #fff !important;
  font-weight: 600 !important;
  padding: 9px 18px !important;
}
.nav-appt:hover { background: #ea6c0a !important; }

.hamburger {
  display: none;
  background: none; border: none; cursor: pointer;
  font-size: 1.4rem; color: var(--blue-dark);
}

#mob-nav {
  display: none;
  background: #fff;
  border-bottom: 1px solid var(--border);
  padding: 10px 5%;
}
#mob-nav.open { display: block; }
#mob-nav a {
  display: block; padding: 11px 10px;
  font-size: 0.9rem; font-weight: 500; color: var(--text);
  border-bottom: 1px solid var(--border);
}
#mob-nav a:last-child { border: none; color: var(--orange); font-weight: 600; }


/* =============================================
   HERO SLIDER
   ============================================= */
.hero { position: relative; overflow: hidden; height: 540px; }
.slides { display: flex; height: 100%; transition: transform 0.75s cubic-bezier(0.65,0,0.35,1); }
.slide {
  min-width: 100%; height: 100%;
  position: relative;
  display: flex; align-items: center;
}
.slide-bg {
  position: absolute; inset: 0;
  background-size: cover; background-position: center;
}
.slide-1-bg { background: linear-gradient(135deg, #0a3a6e 0%, #0d5ca8 40%, #0e7dc7 100%); }
.slide-2-bg { background: linear-gradient(135deg, #0a4a3a 0%, #0a7a6a 50%, #0099aa 100%); }
.slide-3-bg { background: linear-gradient(135deg, #1a0a4a 0%, #2d1b7a 50%, #0a5eb0 100%); }
.slide-overlay { position: absolute; inset: 0; background: rgba(0,0,0,0.35); }

.slide-deco {
  position: absolute; right: 8%; top: 50%;
  transform: translateY(-50%);
  width: 380px; height: 380px;
  border-radius: 50%;
  background: rgba(255,255,255,0.06);
  border: 2px solid rgba(255,255,255,0.1);
}
.slide-deco::after {
  content: '';
  position: absolute; inset: 30px;
  border-radius: 50%;
  border: 2px solid rgba(255,255,255,0.08);
}

.slide-content {
  position: relative; z-index: 2;
  padding: 0 6% 0 6%;
  max-width: 680px;
  opacity: 0; transform: translateY(28px);
  transition: opacity 0.6s ease 0.2s, transform 0.6s ease 0.2s;
}
.slide.active .slide-content { opacity: 1; transform: translateY(0); }

.slide-tag {
  display: inline-block;
  background: rgba(255,255,255,0.15);
  border: 1px solid rgba(255,255,255,0.3);
  color: #fff;
  font-size: 0.7rem; font-weight: 600;
  letter-spacing: 0.12em; text-transform: uppercase;
  padding: 5px 14px; border-radius: 100px;
  margin-bottom: 18px;
}
.slide-content h2 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.9rem, 4vw, 3rem);
  font-weight: 800; color: #fff;
  line-height: 1.2; margin-bottom: 16px;
}
.slide-content h2 span { color: #7dd3fc; }
.slide-content p {
  font-size: 0.95rem; color: rgba(255,255,255,0.82);
  line-height: 1.7; margin-bottom: 28px;
  max-width: 460px;
}
.slide-btns { display: flex; gap: 12px; flex-wrap: wrap; }
.btn-hero {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 26px; border-radius: 6px;
  font-size: 0.87rem; font-weight: 600;
  transition: all 0.22s;
}
.btn-hero-primary { background: var(--orange); color: #fff; }
.btn-hero-primary:hover { background: #ea6c0a; transform: translateY(-2px); box-shadow: 0 8px 24px rgba(249,115,22,0.4); }
.btn-hero-outline { background: transparent; color: #fff; border: 2px solid rgba(255,255,255,0.5); }
.btn-hero-outline:hover { background: rgba(255,255,255,0.15); border-color: #fff; }

.slide-arrow {
  position: absolute; top: 50%; transform: translateY(-50%);
  z-index: 10; width: 44px; height: 44px;
  background: rgba(255,255,255,0.15); border: 1px solid rgba(255,255,255,0.3);
  border-radius: 50%; color: #fff; font-size: 0.95rem;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; transition: all 0.2s;
}
.slide-arrow:hover { background: var(--blue); border-color: var(--blue); }
.arrow-prev { left: 18px; }
.arrow-next { right: 18px; }

.slide-dots {
  position: absolute; bottom: 20px; left: 50%;
  transform: translateX(-50%);
  display: flex; gap: 8px; z-index: 10;
}
.dot {
  width: 10px; height: 10px; border-radius: 50%;
  background: rgba(255,255,255,0.4); cursor: pointer;
  transition: all 0.3s;
}
.dot.active { background: #fff; width: 28px; border-radius: 5px; }


/* =============================================
   QUICK INFO BAR
   ============================================= */
.quick-bar {
  background: var(--blue);
  display: flex; justify-content: center; flex-wrap: wrap;
  gap: 0;
}
.quick-item {
  display: flex; align-items: center; gap: 10px;
  padding: 16px 36px;
  border-right: 1px solid rgba(255,255,255,0.15);
  color: #fff;
}
.quick-item:last-child { border-right: none; }
.quick-item i { font-size: 1.3rem; color: #90cdf4; }
.quick-item-label { font-size: 0.7rem; color: rgba(255,255,255,0.65); text-transform: uppercase; letter-spacing: 0.05em; }
.quick-item-val { font-size: 0.9rem; font-weight: 600; }


/* =============================================
   SECTION COMMONS
   ============================================= */
section { padding: 75px 5%; }

.sec-tag {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 0.72rem; font-weight: 700; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--blue);
  margin-bottom: 10px;
}
.sec-tag::before { content: ''; width: 22px; height: 2px; background: var(--blue); }
.sec-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.6rem, 3vw, 2.3rem);
  font-weight: 700; color: var(--text);
  line-height: 1.25; margin-bottom: 12px;
}
.sec-title span { color: var(--blue); }
.sec-sub { font-size: 0.92rem; color: var(--gray); line-height: 1.7; max-width: 560px; }


/* =============================================
   ABOUT
   ============================================= */
.about { background: var(--offwhite); }
.about-inner {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 70px; align-items: center;
  max-width: 1200px; margin: 0 auto;
}
.about-img-wrap { position: relative; }
.about-img-wrap img {
  width: 100%; border-radius: 12px;
  display: block; height: 420px; object-fit: cover;
  box-shadow: 0 20px 50px rgba(0,0,0,0.12);
}
.exp-badge {
  position: absolute; bottom: -20px; right: -20px;
  background: var(--blue); color: #fff;
  border-radius: 12px; padding: 22px 26px;
  text-align: center;
  box-shadow: 0 10px 30px rgba(10,94,176,0.35);
}
.exp-num { font-family: 'Playfair Display', serif; font-size: 2.8rem; font-weight: 800; line-height: 1; }
.exp-label { font-size: 0.73rem; opacity: 0.85; margin-top: 4px; }
.about-text p { font-size: 0.9rem; color: var(--gray); line-height: 1.8; margin-bottom: 16px; }
.about-checks { display: flex; flex-direction: column; gap: 12px; margin: 22px 0 28px; }
.check-item { display: flex; align-items: center; gap: 10px; font-size: 0.88rem; color: var(--text); font-weight: 500; }
.check-item i { color: var(--teal); font-size: 1rem; }
.btn-blue {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--blue); color: #fff;
  padding: 12px 26px; border-radius: 6px;
  font-size: 0.87rem; font-weight: 600;
  transition: all 0.2s;
}
.btn-blue:hover { background: var(--blue-dark); transform: translateY(-2px); box-shadow: 0 8px 24px rgba(10,94,176,0.3); }


/* =============================================
   DEPARTMENTS
   ============================================= */
.depts { background: #fff; }
.depts-header { text-align: center; margin-bottom: 50px; }
.depts-header .sec-tag { justify-content: center; }
.depts-header .sec-tag::before { display: none; }
.depts-header .sec-sub { margin: 0 auto; text-align: center; }

.depts-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 24px; max-width: 1100px; margin: 0 auto;
}
.dept-card {
  border: 1px solid var(--border); border-radius: 10px;
  padding: 32px 28px; background: #fff;
  transition: all 0.28s; position: relative; overflow: hidden;
}
.dept-card::before {
  content: ''; position: absolute;
  top: 0; left: 0; right: 0; height: 3px;
  background: var(--blue); transform: scaleX(0);
  transform-origin: left; transition: transform 0.3s ease;
}
.dept-card:hover { box-shadow: 0 14px 40px rgba(0,0,0,0.1); transform: translateY(-5px); }
.dept-card:hover::before { transform: scaleX(1); }
.dept-icon {
  width: 58px; height: 58px;
  background: rgba(10,94,176,0.08); border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.4rem; color: var(--blue); margin-bottom: 18px;
  transition: all 0.25s;
}
.dept-card:hover .dept-icon { background: var(--blue); color: #fff; }
.dept-card h3 { font-size: 1rem; font-weight: 600; color: var(--text); margin-bottom: 10px; }
.dept-card p { font-size: 0.82rem; color: var(--gray); line-height: 1.7; margin-bottom: 16px; }
.dept-link { font-size: 0.8rem; font-weight: 600; color: var(--blue); display: flex; align-items: center; gap: 6px; transition: gap 0.2s; cursor: pointer; }
.dept-card:hover .dept-link { gap: 10px; }


/* =============================================
   STATS
   ============================================= */
.stats { background: var(--blue); padding: 60px 5%; }
.stats-inner {
  max-width: 1000px; margin: 0 auto;
  display: flex; justify-content: space-around; flex-wrap: wrap; gap: 30px;
}
.stat-item { text-align: center; color: #fff; }
.stat-num {
  font-family: 'Playfair Display', serif;
  font-size: 3rem; font-weight: 800;
  line-height: 1; color: #fff;
}
.stat-num sup { font-size: 1.2rem; vertical-align: top; margin-top: 8px; display: inline-block; }
.stat-label { font-size: 0.8rem; color: rgba(255,255,255,0.7); margin-top: 6px; font-weight: 500; }


/* =============================================
   APPOINTMENT
   ============================================= */
.appt-section { background: var(--offwhite); padding: 75px 5%; }
.appt-inner {
  max-width: 1100px; margin: 0 auto;
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 60px; align-items: center;
}
.appt-text .sec-sub { max-width: 420px; }
.appt-features { display: flex; flex-direction: column; gap: 16px; margin-top: 28px; }
.appt-feat { display: flex; align-items: flex-start; gap: 14px; }
.appt-feat-icon {
  width: 42px; height: 42px; border-radius: 10px;
  background: rgba(10,94,176,0.1);
  display: flex; align-items: center; justify-content: center;
  color: var(--blue); font-size: 1rem; flex-shrink: 0;
}
.appt-feat-title { font-size: 0.87rem; font-weight: 600; color: var(--text); margin-bottom: 2px; }
.appt-feat-desc { font-size: 0.78rem; color: var(--gray); line-height: 1.5; }

.appt-form {
  background: #fff; border-radius: 14px;
  padding: 36px; box-shadow: 0 8px 40px rgba(0,0,0,0.08);
}
.appt-form h3 { font-size: 1.15rem; font-weight: 700; color: var(--text); margin-bottom: 8px; }
.appt-form p { font-size: 0.8rem; color: var(--gray); margin-bottom: 24px; }

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form-group { display: flex; flex-direction: column; gap: 5px; margin-bottom: 14px; }
.form-group label { font-size: 0.75rem; font-weight: 600; color: var(--text); }
.form-group input,
.form-group select,
.form-group textarea {
  padding: 10px 14px; border: 1px solid var(--border);
  border-radius: 7px; font-family: 'Poppins', sans-serif;
  font-size: 0.83rem; color: var(--text);
  transition: border-color 0.2s;
  background: var(--offwhite);
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none; border-color: var(--blue);
  background: #fff; box-shadow: 0 0 0 3px rgba(10,94,176,0.08);
}
.btn-submit {
  width: 100%; background: var(--blue); color: #fff;
  padding: 13px; border: none; border-radius: 7px;
  font-family: 'Poppins', sans-serif; font-size: 0.9rem;
  font-weight: 600; cursor: pointer; transition: all 0.2s;
  display: flex; align-items: center; justify-content: center; gap: 8px;
}
.btn-submit:hover { background: var(--blue-dark); transform: translateY(-1px); box-shadow: 0 6px 20px rgba(10,94,176,0.3); }


/* =============================================
   DOCTORS
   ============================================= */
.doctors { background: #fff; }
.doctors-header { text-align: center; margin-bottom: 48px; }
.doctors-header .sec-tag { justify-content: center; }
.doctors-header .sec-tag::before { display: none; }

.doctors-grid {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 24px; max-width: 1100px; margin: 0 auto;
}
.doc-card {
  border: 1px solid var(--border); border-radius: 12px;
  overflow: hidden; background: #fff;
  transition: all 0.28s;
}
.doc-card:hover { box-shadow: 0 16px 40px rgba(0,0,0,0.1); transform: translateY(-6px); }
.doc-img {
  width: 100%; height: 210px;
  object-fit: cover; object-position: top;
  display: block;
}
.doc-info { padding: 18px 18px 20px; }
.doc-name { font-size: 0.97rem; font-weight: 700; color: var(--text); margin-bottom: 4px; }
.doc-cred { font-size: 0.74rem; color: var(--gray); line-height: 1.5; margin-bottom: 8px; }
.doc-tag {
  display: inline-block; background: rgba(10,94,176,0.08);
  color: var(--blue); font-size: 0.7rem; font-weight: 600;
  padding: 3px 10px; border-radius: 100px; margin-bottom: 14px;
}
.doc-btn {
  display: flex; align-items: center; justify-content: space-between;
  color: var(--blue); font-size: 0.78rem; font-weight: 600;
  padding-top: 12px; border-top: 1px solid var(--border);
}
.doc-btn:hover { color: var(--blue-dark); }


/* =============================================
   CTA STRIP
   ============================================= */
.cta-strip {
  background: linear-gradient(135deg, var(--blue-dark), var(--blue));
  padding: 60px 5%;
  text-align: center;
  position: relative; overflow: hidden;
}
.cta-strip h2 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.5rem, 3vw, 2.2rem); color: #fff; margin-bottom: 12px;
}
.cta-strip p { color: rgba(255,255,255,0.75); font-size: 0.92rem; margin-bottom: 28px; }
.btn-orange {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--orange); color: #fff;
  padding: 14px 32px; border-radius: 6px;
  font-size: 0.9rem; font-weight: 600; transition: all 0.2s;
}
.btn-orange:hover { background: #ea6c0a; transform: translateY(-2px); box-shadow: 0 10px 28px rgba(249,115,22,0.45); }


/* =============================================
   CONTACT
   ============================================= */
.contact { background: var(--offwhite); }
.contact-inner {
  max-width: 1100px; margin: 0 auto;
  display: grid; grid-template-columns: 1fr 1.2fr;
  gap: 50px; align-items: start;
}
.contact-info .sec-sub { margin-bottom: 30px; }
.cinfo-items { display: flex; flex-direction: column; gap: 18px; }
.cinfo-item { display: flex; align-items: flex-start; gap: 15px; }
.cinfo-icon {
  width: 42px; height: 42px; border-radius: 10px;
  background: rgba(10,94,176,0.1);
  display: flex; align-items: center; justify-content: center;
  color: var(--blue); font-size: 1rem; flex-shrink: 0;
}
.cinfo-label { font-size: 0.7rem; color: var(--gray); font-weight: 600; text-transform: uppercase; letter-spacing: 0.07em; margin-bottom: 3px; }
.cinfo-val { font-size: 0.88rem; color: var(--text); font-weight: 500; line-height: 1.5; }
.hours-table { margin-top: 6px; }
.hours-row { display: flex; justify-content: space-between; font-size: 0.82rem; color: var(--gray); padding: 4px 0; border-bottom: 1px dashed var(--border); gap: 20px; }
.hours-row:last-child { border: none; }
.map-wrap { border-radius: 12px; overflow: hidden; box-shadow: 0 8px 30px rgba(0,0,0,0.08); height: 100%; min-height: 380px; }
.map-wrap iframe { width: 100%; height: 100%; border: none; display: block; min-height: 380px; }


/* =============================================
   FOOTER
   ============================================= */
footer { background: var(--text); color: rgba(255,255,255,0.7); }
.footer-top {
  padding: 55px 5% 40px;
  display: grid; grid-template-columns: 2fr 1fr 1fr;
  gap: 50px; max-width: 1200px; margin: 0 auto;
}
.footer-brand .logo-text h1 { color: #fff; font-size: 1.2rem; }
.footer-brand .logo-text p { color: rgba(255,255,255,0.45); }
.footer-brand > p { font-size: 0.82rem; line-height: 1.8; margin: 16px 0 20px; }

.footer-col h4 { font-size: 0.9rem; font-weight: 700; color: #fff; margin-bottom: 16px; }
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 8px; }
.footer-col ul li a { font-size: 0.8rem; color: rgba(255,255,255,0.55); transition: color 0.2s; }
.footer-col ul li a:hover { color: #fff; }
.footer-col ul li a::before { content: '→ '; font-size: 0.7rem; }

.footer-contact-items { display: flex; flex-direction: column; gap: 10px; }
.footer-contact-item { display: flex; align-items: flex-start; gap: 10px; font-size: 0.78rem; color: rgba(255,255,255,0.55); line-height: 1.5; }
.footer-contact-item i { color: #90cdf4; margin-top: 2px; flex-shrink: 0; }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.07);
  padding: 18px 5%;
  text-align: center;
  font-size: 0.75rem;
  color: rgba(255,255,255,0.3);
}


/* =============================================
   ANIMATIONS
   ============================================= */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity 0.55s ease, transform 0.55s ease; }
.reveal.visible { opacity: 1; transform: none; }


/* =============================================
   RESPONSIVE
   ============================================= */
@media (max-width: 960px) {
  nav { display: none; }
  .hamburger { display: block; }
  .about-inner { grid-template-columns: 1fr; gap: 50px; }
  .about-img-wrap img { height: 300px; }
  .exp-badge { right: 10px; bottom: -14px; }
  .depts-grid { grid-template-columns: repeat(2, 1fr); }
  .doctors-grid { grid-template-columns: repeat(2, 1fr); }
  .appt-inner { grid-template-columns: 1fr; }
  .contact-inner { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr 1fr; }
  .hero { height: 460px; }
}

@media (max-width: 600px) {
  .top-bar-left { display: none; }
  .depts-grid { grid-template-columns: 1fr; }
  .doctors-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr; }
  .quick-bar { flex-direction: column; align-items: stretch; }
  .quick-item { border-right: none; border-bottom: 1px solid rgba(255,255,255,0.1); justify-content: center; }
  .stats-inner { gap: 24px; }
  .hero { height: 500px; }
}