/*
Theme Name: Noor Hospital
Theme URI: https://www.facebook.com/noorhospitallahore/
Author: Noor Hospital Lahore
Description: Professional, colorful WordPress theme for Noor Hospital Lahore.
Version: 4.0.0
License: GNU General Public License v2 or later
Text Domain: noor-hospital
*/

/* ════════════════════════════════════════
   VARIABLES
════════════════════════════════════════ */
:root {
  --green:      #7DC843;
  --green-d:    #5FA832;
  --blue:       #1A27CC;
  --blue-d:     #0F1A99;
  --white:      #FFFFFF;
  --offwhite:   #F0F6FF;
  --gray:       #6B7280;
  --dark:       #0D1117;
  --font-h:     'Playfair Display', Georgia, serif;
  --font-b:     'Nunito Sans', 'Segoe UI', sans-serif;
  --ease:       all 0.3s cubic-bezier(.4,0,.2,1);
  --radius:     14px;
  --shadow:     0 4px 24px rgba(26,39,204,.10);
}

/* ════════════════════════════════════════
   RESET & BASE
════════════════════════════════════════ */
*,*::before,*::after { box-sizing:border-box; margin:0; padding:0; }
html { scroll-behavior:smooth; }
body { font-family:var(--font-b); color:var(--dark); background:#fff; line-height:1.7; overflow-x:hidden; }
img { max-width:100%; height:auto; display:block; }
a { text-decoration:none; color:inherit; transition:var(--ease); }
ul { list-style:none; }
.site { display:flex; flex-direction:column; min-height:100vh; }
.site-content { flex:1; }

/* ════════════════════════════════════════
   TOP BAR
════════════════════════════════════════ */
.nh-topbar {
  background: linear-gradient(90deg, #0F1A99, #1A27CC);
  color: #fff;
  font-size: .79rem;
  padding: 8px 0;
}
.nh-topbar-inner {
  max-width: 1280px; margin: 0 auto; padding: 0 28px;
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 6px;
}
.nh-topbar-left, .nh-topbar-right { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.nh-topbar a { color: #C8D8FF; display: flex; align-items: center; gap: 5px; font-size: .78rem; }
.nh-topbar a:hover { color: var(--green); }
.nh-topbar-divider { color: rgba(255,255,255,.25); }
.nh-topbar-hours { display: flex; align-items: center; gap: 5px; color: rgba(255,255,255,.65); font-size: .78rem; }
.nh-topbar-social { display: flex; align-items: center; gap: 7px; }
.nh-topbar-social a {
  background: rgba(255,255,255,.12); width: 27px; height: 27px;
  border-radius: 50%; display: flex; align-items: center; justify-content: center;
  font-size: .78rem; transition: var(--ease);
}
.nh-topbar-social a:hover { background: var(--green); color: #fff; }

/* ════════════════════════════════════════
   HEADER
════════════════════════════════════════ */
.site-header {
  background: #fff;
  position: sticky; top: 0; z-index: 1000;
  box-shadow: 0 2px 24px rgba(26,39,204,.10);
  transition: var(--ease);
}
.site-header.scrolled { box-shadow: 0 4px 36px rgba(26,39,204,.20); }
.nh-header-inner {
  max-width: 1280px; margin: 0 auto; padding: 0 28px;
  display: flex; align-items: center; justify-content: space-between;
  gap: 20px; height: 82px;
}

/* Logo */
.site-logo a { display: flex; align-items: center; gap: 13px; }
.site-logo img,
.site-logo .custom-logo {
  width: 70px !important; height: 70px !important;
  border-radius: 50% !important; object-fit: contain !important;
  padding: 3px; background: #fff;
  box-shadow: 0 0 0 3px var(--green), 0 4px 18px rgba(125,200,67,.35);
  transition: var(--ease);
}
.site-logo img:hover { transform: scale(1.05); }
.nh-logo-text { line-height: 1.25; }
.nh-logo-name { font-family: var(--font-h); font-size: 1.28rem; font-weight: 700; color: var(--blue); }
.nh-logo-tagline { font-size: .69rem; color: var(--green-d); font-weight: 700; letter-spacing: .07em; text-transform: uppercase; }

/* Navigation */
.main-navigation { display: flex; align-items: center; }
.main-navigation ul { display: flex; align-items: center; gap: 2px; }
.main-navigation ul li a {
  font-size: .87rem; font-weight: 700; color: var(--dark);
  padding: 8px 13px; border-radius: 8px; display: block; position: relative;
  white-space: nowrap;
}
.main-navigation ul li a::after {
  content: ''; position: absolute; bottom: 4px; left: 13px; right: 13px;
  height: 2px; background: var(--green); border-radius: 2px;
  transform: scaleX(0); transition: transform .25s ease; transform-origin: left;
}
.main-navigation ul li a:hover,
.main-navigation ul li.current-menu-item > a { color: var(--blue); }
.main-navigation ul li a:hover::after,
.main-navigation ul li.current-menu-item > a::after { transform: scaleX(1); }
.main-navigation ul li { position: relative; }
.main-navigation ul li ul {
  display: none; position: absolute; top: calc(100% + 8px); left: 0;
  min-width: 210px; background: #fff; border-radius: var(--radius);
  box-shadow: 0 8px 36px rgba(26,39,204,.14); border-top: 3px solid var(--green);
  padding: 8px 0; flex-direction: column; gap: 0; z-index: 100;
}
.main-navigation ul li:hover > ul { display: flex; }
.main-navigation ul li ul li a { padding: 10px 18px; border-radius: 0; font-size: .83rem; }
.main-navigation ul li ul li a::after { display: none; }
.main-navigation ul li ul li a:hover { background: #F0F6FF; color: var(--green-d); }

/* Header CTA */
.nh-header-cta { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.nh-btn {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 10px 20px; border-radius: 50px;
  font-size: .875rem; font-weight: 700; font-family: var(--font-b);
  cursor: pointer; transition: var(--ease);
  border: 2px solid transparent; white-space: nowrap;
}
.nh-btn-primary { background: var(--green); color: #fff; border-color: var(--green); box-shadow: 0 4px 18px rgba(125,200,67,.36); }
.nh-btn-primary:hover { background: var(--green-d); transform: translateY(-2px); box-shadow: 0 8px 26px rgba(125,200,67,.48); }
.nh-btn-outline { background: transparent; color: var(--blue); border-color: var(--blue); }
.nh-btn-outline:hover { background: var(--blue); color: #fff; transform: translateY(-2px); }

/* Mobile toggle */
.menu-toggle {
  display: none; background: none; border: 2px solid var(--blue);
  border-radius: 8px; padding: 7px 11px; cursor: pointer;
  flex-direction: column; gap: 4px;
}
.menu-toggle span { display: block; width: 22px; height: 2px; background: var(--blue); border-radius: 2px; transition: var(--ease); }

/* ════════════════════════════════════════
   HERO — SLIDESHOW
════════════════════════════════════════ */
.nh-hero { position: relative; min-height: 96vh; display: flex; align-items: center; overflow: hidden; }

/* Fixed background — always visible underneath */
.nh-hero-bg-fixed {
  position: absolute; inset: 0; z-index: 0;
  background-size: cover; background-position: center top;
  background-attachment: scroll;
}

/* Slideshow layers on top of fixed bg */
.nh-slideshow { position: absolute; inset: 0; z-index: 1; }
.nh-slide {
  position: absolute; inset: 0;
  background-size: cover; background-position: center;
  opacity: 0; transition: opacity 1.4s ease;
}
.nh-slide.active { opacity: 1; }

/* Dark overlay */
.nh-hero-overlay {
  position: absolute; inset: 0; z-index: 2;
  background: linear-gradient(
    110deg,
    rgba(8,14,70,.92) 0%,
    rgba(8,14,70,.78) 45%,
    rgba(8,14,70,.40) 100%
  );
}
.nh-hero-inner {
  position: relative; z-index: 3; width: 100%;
  max-width: 1280px; margin: 0 auto;
  padding: 100px 40px 80px;
  display: grid; grid-template-columns: 1.1fr .9fr; gap: 56px; align-items: center;
}

/* Slide dots */
.nh-slide-dots {
  position: absolute; bottom: 30px; left: 50%; transform: translateX(-50%);
  z-index: 10; display: flex; gap: 9px;
}
.nh-dot {
  width: 10px; height: 10px; border-radius: 50%;
  background: rgba(255,255,255,.40); border: none; cursor: pointer;
  transition: var(--ease); padding: 0;
}
.nh-dot.active { background: var(--green); transform: scale(1.25); }

/* ════════════════════════════════════════
   SERVICE CARDS — COLORFUL
════════════════════════════════════════ */
.nh-srv-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 22px; }

.nh-srv-card {
  border-radius: 18px; overflow: hidden;
  box-shadow: 0 4px 22px rgba(0,0,0,.09);
  transition: var(--ease); cursor: pointer; position: relative;
}
.nh-srv-card:hover { transform: translateY(-9px); box-shadow: 0 18px 48px rgba(0,0,0,.18); }

.nh-srv-card-img { height: 185px; overflow: hidden; position: relative; }
.nh-srv-card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .55s ease; }
.nh-srv-card:hover .nh-srv-card-img img { transform: scale(1.09); }

.nh-srv-card-body { padding: 18px 16px 20px; text-align: center; }
.nh-srv-icon { font-size: 1.8rem; margin-bottom: 7px; }
.nh-srv-title { font-family: var(--font-h); font-size: .98rem; font-weight: 700; margin-bottom: 6px; }
.nh-srv-desc { font-size: 12.5px; line-height: 1.65; }

/* Color themes per card */
.nh-c-teal   { background: #E0F7FA; } .nh-c-teal   .nh-srv-title { color: #00695C; } .nh-c-teal   .nh-srv-desc { color: #00695C90; }
.nh-c-blue   { background: #E3F2FD; } .nh-c-blue   .nh-srv-title { color: #1565C0; } .nh-c-blue   .nh-srv-desc { color: #1565C090; }
.nh-c-orange { background: #FFF3E0; } .nh-c-orange .nh-srv-title { color: #E65100; } .nh-c-orange .nh-srv-desc { color: #E6510090; }
.nh-c-pink   { background: #FCE4EC; } .nh-c-pink   .nh-srv-title { color: #AD1457; } .nh-c-pink   .nh-srv-desc { color: #AD145790; }
.nh-c-purple { background: #EDE7F6; } .nh-c-purple .nh-srv-title { color: #4527A0; } .nh-c-purple .nh-srv-desc { color: #4527A090; }
.nh-c-cyan   { background: #E0F2F1; } .nh-c-cyan   .nh-srv-title { color: #00695C; } .nh-c-cyan   .nh-srv-desc { color: #00695C90; }
.nh-c-indigo { background: #E8EAF6; } .nh-c-indigo .nh-srv-title { color: #283593; } .nh-c-indigo .nh-srv-desc { color: #28359390; }
.nh-c-red    { background: #FFEBEE; } .nh-c-red    .nh-srv-title { color: #B71C1C; } .nh-c-red    .nh-srv-desc { color: #B71C1C90; }
.nh-c-green  { background: #E8F5E9; } .nh-c-green  .nh-srv-title { color: #2E7D32; } .nh-c-green  .nh-srv-desc { color: #2E7D3290; }

/* ════════════════════════════════════════
   DOCTOR CARDS
════════════════════════════════════════ */
.nh-doc-card {
  background: #fff; border-radius: 20px; overflow: hidden;
  box-shadow: 0 4px 20px rgba(26,39,204,.08);
  transition: var(--ease); cursor: pointer; border: 1.5px solid transparent;
}
.nh-doc-card:hover { transform: translateY(-7px); box-shadow: 0 16px 44px rgba(26,39,204,.16); border-color: rgba(125,200,67,.35); }
.nh-doc-img { height: 220px; overflow: hidden; background: #F0F6FF; }
.nh-doc-img img { width: 100%; height: 100%; object-fit: cover; object-position: top center; transition: transform .4s ease; }
.nh-doc-card:hover .nh-doc-img img { transform: scale(1.06); }
.nh-doc-placeholder { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; font-size: 4.5rem; }
.nh-doc-body { padding: 18px 15px 20px; text-align: center; }
.nh-doc-name { font-family: var(--font-h); font-weight: 700; font-size: .97rem; color: var(--blue-d); margin-bottom: 4px; }
.nh-doc-spec { font-size: 11px; color: var(--green-d); font-weight: 700; text-transform: uppercase; letter-spacing: .05em; margin-bottom: 4px; }
.nh-doc-deg  { font-size: 11px; color: var(--gray); margin-bottom: 6px; }
.nh-doc-time { font-size: 11px; background: rgba(26,39,204,.07); color: var(--blue); padding: 3px 10px; border-radius: 50px; display: inline-block; margin-bottom: 12px; }
.nh-doc-btn  { display: inline-flex; align-items: center; gap: 5px; font-size: 12px; background: #25D366; color: #fff; padding: 6px 14px; border-radius: 50px; font-weight: 700; text-decoration: none; transition: var(--ease); }
.nh-doc-btn:hover { background: #1ebe5c; transform: translateY(-1px); }

/* ════════════════════════════════════════
   SECTION UTILS
════════════════════════════════════════ */
.nh-section { padding: 90px 0; }
.nh-section-alt { background: var(--offwhite); }
.nh-container { max-width: 1280px; margin: 0 auto; padding: 0 40px; }
.nh-section-head { text-align: center; margin-bottom: 56px; }
.nh-eyebrow {
  display: inline-block; color: var(--green-d); font-size: 12px; font-weight: 700;
  letter-spacing: .10em; text-transform: uppercase;
  background: rgba(125,200,67,.13); border-radius: 50px; padding: 5px 16px; margin-bottom: 14px;
}
.nh-section-title { font-family: var(--font-h); font-size: clamp(1.8rem,3vw,2.6rem); font-weight: 700; color: var(--blue-d); margin-bottom: 14px; letter-spacing: -.02em; }
.nh-section-sub { color: var(--gray); font-size: 1rem; max-width: 600px; margin: 0 auto; line-height: 1.8; }

/* Page Header */
.nh-page-header { background: linear-gradient(105deg,#0F1A99,#1A27CC); padding: 80px 40px 70px; text-align: center; position: relative; overflow: hidden; }
.nh-page-header-bg { position: absolute; inset: 0; background-size: cover; background-position: center; opacity: .12; }
.nh-page-header-inner { position: relative; z-index: 1; }
.nh-page-header h1 { font-family: var(--font-h); font-size: clamp(2rem,4vw,3rem); font-weight: 700; color: #fff; margin-bottom: 12px; }
.nh-page-header p { color: rgba(255,255,255,.75); margin-bottom: 10px; }
.nh-breadcrumb { font-size: 13px; color: rgba(255,255,255,.55); }
.nh-breadcrumb a { color: #A8D96B; }

/* Stats band */
.nh-stats-band { background: linear-gradient(120deg,#0F1A99,#1A27CC); padding: 62px 40px; }
.nh-stats-grid { max-width: 1280px; margin: 0 auto; display: grid; grid-template-columns: repeat(5,1fr); gap: 28px; text-align: center; }
.nh-stat-num { font-family: var(--font-h); font-size: 2.6rem; font-weight: 700; color: var(--green); }
.nh-stat-lbl { color: rgba(255,255,255,.72); font-size: .88rem; margin-top: 6px; }

/* Feature items */
.nh-feat-item { display: flex; gap: 13px; align-items: flex-start; padding: 14px; border-radius: 12px; background: var(--offwhite); transition: var(--ease); }
.nh-feat-item:hover { background: #fff; box-shadow: 0 4px 18px rgba(26,39,204,.09); transform: translateX(4px); }
.nh-feat-icon { width: 42px; height: 42px; min-width: 42px; background: linear-gradient(135deg,var(--green),var(--blue)); border-radius: 11px; display: flex; align-items: center; justify-content: center; color: #fff; }

/* Fade-up animation */
.nh-fade-up { opacity: 0; transform: translateY(28px); transition: opacity .6s ease, transform .6s ease; }
.nh-fade-up.visible { opacity: 1; transform: translateY(0); }
@keyframes nhpulse { 0%,100%{opacity:1;transform:scale(1)} 50%{opacity:.6;transform:scale(1.5)} }

/* ════════════════════════════════════════
   WHATSAPP FLOAT — PERFECT CIRCLE
════════════════════════════════════════ */
.nh-wa-float { position: fixed; bottom: 28px; right: 24px; z-index: 99999; display: flex; flex-direction: column; align-items: flex-end; gap: 8px; }
.nh-wa-btn {
  width: 58px; height: 58px; border-radius: 50%;
  background: #25D366; display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 22px rgba(37,211,102,.58);
  text-decoration: none; transition: var(--ease); position: relative;
  border: none; outline: none; overflow: visible;
}
.nh-wa-btn:hover { background: #1ebe5c; transform: scale(1.12); box-shadow: 0 8px 32px rgba(37,211,102,.72); }
.nh-wa-btn svg { width: 32px; height: 32px; fill: #fff; display: block; flex-shrink: 0; }
.nh-wa-pulse {
  position: absolute; inset: -6px; border-radius: 50%;
  border: 3px solid rgba(37,211,102,.55);
  animation: wapulse 2.2s ease-out infinite; pointer-events: none;
}
@keyframes wapulse { 0%{opacity:.8;transform:scale(1)} 100%{opacity:0;transform:scale(1.7)} }
.nh-wa-tip {
  background: #fff; color: var(--dark); font-size: .79rem; font-weight: 700;
  font-family: var(--font-b); padding: 7px 13px; border-radius: 10px;
  box-shadow: 0 4px 18px rgba(0,0,0,.13); white-space: nowrap;
  opacity: 0; transform: translateX(10px); transition: all .25s ease; pointer-events: none;
}
.nh-wa-float:hover .nh-wa-tip { opacity: 1; transform: translateX(0); }

/* ════════════════════════════════════════
   FOOTER
════════════════════════════════════════ */
.site-footer { background: var(--dark); color: rgba(255,255,255,.70); padding: 70px 0 0; }
.nh-footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 44px; margin-bottom: 52px; }
.nh-footer-desc { font-size: .875rem; line-height: 1.8; margin-bottom: 22px; color: rgba(255,255,255,.52); }
.nh-footer-social { display: flex; gap: 9px; flex-wrap: wrap; }
.nh-footer-social a {
  width: 38px; height: 38px; background: rgba(255,255,255,.09);
  border-radius: 10px; display: flex; align-items: center; justify-content: center;
  color: rgba(255,255,255,.70); font-size: 1rem; transition: var(--ease);
}
.nh-footer-social a:hover { background: var(--green); color: #fff; transform: translateY(-2px); }
.nh-footer-col h4 { font-family: var(--font-h); font-size: 1rem; font-weight: 700; color: #fff; margin-bottom: 18px; padding-bottom: 10px; border-bottom: 2px solid var(--green); display: inline-block; }
.nh-footer-col ul { display: flex; flex-direction: column; gap: 9px; }
.nh-footer-col ul li a { font-size: .875rem; color: rgba(255,255,255,.52); display: flex; align-items: center; gap: 6px; transition: var(--ease); }
.nh-footer-col ul li a::before { content: '›'; color: var(--green); font-size: 1.1rem; }
.nh-footer-col ul li a:hover { color: var(--green); padding-left: 4px; }
.nh-footer-bottom { border-top: 1px solid rgba(255,255,255,.08); padding: 18px 0; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 10px; font-size: .79rem; color: rgba(255,255,255,.36); }
.nh-footer-bottom a { color: var(--green); }

/* ════════════════════════════════════════
   RESPONSIVE
════════════════════════════════════════ */
@media(max-width:1024px) {
  .nh-footer-grid { grid-template-columns: 1fr 1fr; }
  .nh-srv-grid    { grid-template-columns: repeat(2,1fr); }
  .nh-stats-grid  { grid-template-columns: repeat(3,1fr); }
}
@media(max-width:768px) {
  .nh-header-inner { height: 68px; }
  .main-navigation { display: none; }
  .main-navigation.open { display: block; position: absolute; top: 68px; left: 0; right: 0; background: #fff; padding: 16px 24px; box-shadow: 0 8px 32px rgba(0,0,0,.12); border-top: 3px solid var(--green); }
  .main-navigation.open ul { flex-direction: column; gap: 2px; }
  .menu-toggle { display: flex; }
  .nh-footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .nh-topbar-right { display: none; }
  .nh-container { padding: 0 20px; }
  .nh-hero-inner { grid-template-columns: 1fr !important; padding: 80px 20px 60px; }
  .nh-hero-right { display: none; }
  .nh-header-cta .nh-btn-outline { display: none; }
  .nh-stats-grid { grid-template-columns: repeat(2,1fr); }
}
@media(max-width:480px) { .nh-srv-grid { grid-template-columns: 1fr; } }
