/* ===== Shri Akal Purakh Hospital — styles =====
   Brand blue is taken from the hospital logo. */
:root {
  --blue: #2b87c3;
  --blue-dark: #1b5e8e;
  --navy: #123a52;
  --ink: #22303a;
  --muted: #5b6b76;
  --bg: #ffffff;
  --bg-alt: #eef5fa;
  --line: #d9e5ee;
  --radius: 12px;
  --shadow: 0 6px 20px rgba(18, 58, 82, .10);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
  font-family: 'Source Sans 3', 'Segoe UI', sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
}

h1, h2, h3 { font-family: 'Playfair Display', Georgia, serif; color: var(--navy); line-height: 1.25; }
img { max-width: 100%; display: block; }
a { color: var(--blue-dark); }

.container { max-width: 1100px; margin: 0 auto; padding: 0 20px; }
.center { text-align: center; margin-top: 28px; }

/* Buttons */
.btn {
  display: inline-block; padding: 12px 26px; border-radius: 999px;
  font-weight: 700; text-decoration: none; transition: .2s;
}
.btn-primary { background: var(--blue); color: #fff; }
.btn-primary:hover { background: var(--blue-dark); }
.btn-ghost { border: 2px solid #fff; color: #fff; }
.btn-ghost:hover { background: rgba(255,255,255,.15); }
.btn-call { background: var(--blue); color: #fff; padding: 9px 20px; white-space: nowrap; }
.btn-call:hover { background: var(--blue-dark); }

/* Top emergency strip */
.topbar {
  background: var(--navy); color: #cfe3f2; font-size: .9rem;
  text-align: center; padding: 6px 10px;
}
.topbar a { color: #fff; font-weight: 700; text-decoration: none; }
.topbar-sep { margin: 0 10px; opacity: .5; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: #fff; border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; gap: 18px; padding: 10px 20px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--navy); }
.brand img { width: 52px; height: 52px; border-radius: 50%; }
.brand-text strong { display: block; font-size: 1.05rem; line-height: 1.2; }
.brand-text small { color: var(--muted); }
.site-nav { display: flex; gap: 18px; margin-left: auto; }
.site-nav a { text-decoration: none; color: var(--ink); font-weight: 600; }
.site-nav a:hover { color: var(--blue); }
.nav-toggle {
  display: none; background: none; border: none; font-size: 1.6rem;
  color: var(--navy); cursor: pointer;
}

/* Hero */
.hero {
  position: relative; min-height: 520px; display: flex; align-items: center;
  background: url('../images/building.jpg') center 30% / cover no-repeat;
}
.hero-overlay { position: absolute; inset: 0; background: linear-gradient(100deg, rgba(11,42,61,.88) 30%, rgba(11,42,61,.45)); }
.hero-content { position: relative; color: #fff; padding: 70px 20px; }
.hero-kicker { text-transform: uppercase; letter-spacing: 2px; font-weight: 700; color: #9ed0f0; margin-bottom: 10px; }
.hero h1 { color: #fff; font-size: clamp(2rem, 5vw, 3.2rem); margin-bottom: 14px; }
.hero-sub { font-size: 1.15rem; max-width: 560px; margin-bottom: 26px; color: #e2eef7; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }

/* Highlights */
.highlights { background: var(--blue); color: #fff; }
.highlight-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 26px; padding: 34px 20px; }
.highlight h3 { color: #fff; font-size: 1.1rem; margin-bottom: 6px; }
.highlight p { font-size: .95rem; color: #e3f0f9; }

/* Sections */
.section { padding: 70px 0; }
.section-alt { background: var(--bg-alt); }
.section-title { font-size: 2rem; text-align: center; margin-bottom: 10px; }
.section-sub { text-align: center; color: var(--muted); margin-bottom: 40px; }

/* About */
.about-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 44px; align-items: center; }
.about-text h2 { font-size: 2rem; margin-bottom: 16px; }
.about-text p { margin-bottom: 14px; }
.about-text .btn { margin-top: 8px; }
.about-photo img { border-radius: var(--radius); box-shadow: var(--shadow); }

/* Departments */
.dept-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.dept-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px; box-shadow: var(--shadow);
}
.dept-icon { font-size: 2.2rem; margin-bottom: 10px; }
.dept-card h3 { font-size: 1.2rem; margin-bottom: 10px; }
.dept-card p { font-size: .95rem; color: var(--muted); margin-bottom: 10px; }
.dept-doctor { color: var(--ink) !important; background: var(--bg-alt); padding: 10px 12px; border-radius: 8px; }

/* Facilities */
.facility-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.facility-grid figure { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); background: #fff; }
.facility-grid img { width: 100%; height: 220px; object-fit: cover; }
.facility-grid figcaption { padding: 12px; text-align: center; font-weight: 700; color: var(--navy); }

/* Gallery */
.gallery-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.gallery-grid img {
  width: 100%; height: 200px; object-fit: cover; border-radius: 10px;
  transition: transform .2s; box-shadow: var(--shadow);
}
.gallery-grid a:hover img { transform: scale(1.03); }

/* Downloads */
.download-list { list-style: none; max-width: 620px; margin: 0 auto; }
.download-list li { margin-bottom: 12px; }
.download-list a {
  display: block; background: #fff; border: 1px solid var(--line); border-radius: 10px;
  padding: 14px 18px; text-decoration: none; font-weight: 600; color: var(--navy);
  transition: .2s; box-shadow: var(--shadow);
}
.download-list a:hover { border-color: var(--blue); color: var(--blue); }

/* Contact */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: start; }
.contact-info h2 { font-size: 2rem; margin-bottom: 16px; }
.contact-info p { margin-bottom: 16px; }
.contact-list { list-style: none; }
.contact-list li { margin-bottom: 10px; }
.contact-map iframe {
  width: 100%; height: 340px; border: 0; border-radius: var(--radius); box-shadow: var(--shadow);
}

/* Footer */
.site-footer { background: var(--navy); color: #cfe3f2; text-align: center; padding: 22px 0; font-size: .95rem; }

/* ===== Mobile ===== */
@media (max-width: 900px) {
  .highlight-grid { grid-template-columns: repeat(2, 1fr); }
  .dept-grid, .facility-grid, .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .about-grid, .contact-grid { grid-template-columns: 1fr; }
  .brand-text small { display: none; }
}

@media (max-width: 640px) {
  .topbar { font-size: .8rem; }
  .topbar-sep { margin: 0 5px; }
  .nav-toggle { display: block; margin-left: auto; }
  .btn-call { display: none; }
  .site-nav {
    display: none; position: absolute; top: 100%; left: 0; right: 0;
    background: #fff; flex-direction: column; padding: 16px 22px; gap: 14px;
    border-bottom: 1px solid var(--line); box-shadow: var(--shadow);
  }
  .site-nav.open { display: flex; }
  .highlight-grid, .dept-grid, .facility-grid { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .gallery-grid img { height: 150px; }
  .hero { min-height: 440px; }
}
