/* ===== Suwaya Hospital — Styles ===== */
:root{
  --brand:#1e90ff;
  --brand-2:#ff7a00;
  --ink:#0f172a;
  --muted:#5b6476;
  --bg:#ffffff;
  --alt:#f6f9ff;
  --card:#ffffff;
  --radius:18px;
  --shadow:0 10px 30px rgba(0,0,0,.08);
}
*{box-sizing:border-box}
html,body{margin:0;padding:0;font-family:'Inter',system-ui,-apple-system,Segoe UI,Roboto,Arial,sans-serif;color:var(--ink);background:var(--bg);scroll-behavior:smooth}
img{max-width:100%;display:block}
a{color:var(--brand);text-decoration:none}
.container{width:min(1120px, 92%);margin:0 auto}
.section{padding:80px 0}
.section-alt{background:var(--alt)}
h1,h2,h3{line-height:1.2;margin:0 0 12px}
h1{font-size:clamp(32px,5vw,44px)}
h2{font-size:clamp(26px,4vw,36px)}
h3{font-size:clamp(18px,2.2vw,22px)}
p{color:var(--ink);opacity:.9}
.muted{color:var(--muted)}
.small{font-size:.9rem}

/* Header */
.site-header{position:sticky;top:0;z-index:1000;background:rgba(255,255,255,.85);backdrop-filter:saturate(180%) blur(10px);border-bottom:1px solid #eef2f9}
.site-header .nav{display:flex;align-items:center;justify-content:space-between;padding:10px 0}
.brand{display:flex;align-items:center;gap:10px;font-weight:700;color:var(--ink)}
.brand img{width:42px;height:42px;object-fit:contain}
.nav-links{display:flex;gap:18px;align-items:center;list-style:none;margin:0;padding:0}
.nav-links a{padding:10px 12px;border-radius:12px}
.nav-links a:hover{background:#eef5ff}
.nav-toggle{display:none;background:none;border:none;font-size:28px}
.btn{display:inline-block;padding:12px 16px;border-radius:14px;font-weight:600;border:2px solid transparent;transition:.2s}
.btn-primary{background:var(--brand);color:#fff}
.btn-primary:hover{filter:brightness(.95)}
.btn-outline{border-color:var(--brand);color:var(--brand);background:transparent}
.btn-outline:hover{background:#e9f3ff}

/* Hero */
.hero{position:relative;min-height:72vh;display:grid;place-items:center;overflow:hidden}
.hero-video{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;filter:brightness(.6)}
.hero-overlay{position:absolute;inset:0;background:linear-gradient(180deg,rgba(0,0,0,.2),rgba(0,0,0,.35))}
.hero-inner{position:relative;text-align:center;color:#fff;padding:60px 0}
.hero-inner p{color:#fff;opacity:.92}
.hero-actions{margin-top:20px;display:flex;gap:12px;justify-content:center;flex-wrap:wrap}

/* Cards and grids */
.card{background:var(--card);border-radius:var(--radius);box-shadow:var(--shadow);padding:18px}
.grid-2{display:grid;grid-template-columns:1.1fr .9fr;gap:30px}
.about-cards{display:grid;grid-template-columns:repeat(3,1fr);gap:16px}
.stat{display:grid;place-items:center;padding:24px}
.stat-number{font-size:28px;font-weight:800;color:var(--brand)}
.stat-label{color:var(--muted)}

.highlights{margin:14px 0 0;padding:0 0 0 18px}
.highlights li{margin:8px 0}

.services-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:16px}
.service h3{margin-bottom:6px;color:var(--ink)}
.service p{color:var(--muted)}

.dept-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:16px}

.gallery-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:10px}
.gallery-grid a{border-radius:16px;overflow:hidden;box-shadow:var(--shadow);display:block}
.gallery-grid img{height:200px;object-fit:cover;width:100%;transition:transform .25s}
.gallery-grid img:hover{transform:scale(1.04)}

/* Contact */
.contact-list{list-style:none;padding:0;margin:0 0 18px}
.contact-list li{margin:8px 0}
.socials{display:flex;gap:12px;font-size:24px}
.socials a{width:42px;height:42px;display:grid;place-items:center;border-radius:12px;background:#eef5ff}
.socials a:hover{background:#dfeeff}
.map-wrap{height:320px;border-radius:18px;overflow:hidden;box-shadow:var(--shadow)}

/* Footer */
.site-footer{background:#0f172a;color:#cbd5e1;padding:26px 0}
.footer-inner{display:flex;align-items:center;justify-content:space-between;gap:14px}
.back-to-top{color:#cbd5e1}
.back-to-top:hover{color:#fff}

/* Lightbox */
.lightbox-modal{position:fixed;inset:0;background:rgba(0,0,0,.85);display:none;align-items:center;justify-content:center;padding:20px;z-index:2000}
.lightbox-modal img{max-width:min(1100px,92vw);max-height:80vh;border-radius:14px;box-shadow:0 20px 60px rgba(0,0,0,.5)}
.lightbox-close{position:absolute;top:12px;right:16px;font-size:36px;background:none;border:none;color:#fff;cursor:pointer}

/* Responsive */
@media (max-width: 1000px){
  .services-grid{grid-template-columns:repeat(2,1fr)}
  .dept-grid{grid-template-columns:repeat(2,1fr)}
  .about-cards{grid-template-columns:repeat(3,1fr)}
}
@media (max-width: 760px){
  .grid-2{grid-template-columns:1fr;gap:22px}
  .gallery-grid{grid-template-columns:repeat(2,1fr)}
  .about-cards{grid-template-columns:repeat(3,1fr)}
  .nav-links{position:absolute;right:4%;top:60px;background:#fff;border:1px solid #eef2f9;border-radius:14px;box-shadow:var(--shadow);padding:12px;display:none;flex-direction:column;align-items:stretch}
  .nav-toggle{display:block}
}



/* ===== Modern responsive base ===== */
* { box-sizing: border-box }
html { scroll-behavior: smooth }
body { margin:0; font-family: system-ui, -apple-system, Segoe UI, Roboto, Inter, Arial, sans-serif; color:#0f172a; background:#ffffff; line-height:1.6 }
.container { max-width: 1100px; margin: 0 auto; padding: 0 16px }

/* Header / Nav */
.site-header { position: sticky; top:0; background:rgba(255,255,255,.85); backdrop-filter:saturate(1.2) blur(8px); border-bottom:1px solid #e5e7eb; z-index:50 }
.nav-wrap { display:flex; align-items:center; justify-content:space-between; gap:12px; padding:10px 0 }
.brand { font-weight: 800; letter-spacing:.2px; text-decoration:none; color:#0f172a }
.nav ul { list-style:none; margin:0; padding:0; display:flex; gap:20px }
.nav a { color:#0f172a; text-decoration:none; font-weight:600 }
.menu-toggle { display:none; background:none; border:1px solid #e2e8f0; padding:6px 10px; border-radius:8px; font-size:18px }
@media (max-width: 800px){
  .nav { position: absolute; left:0; right:0; top:56px; background:white; border-bottom:1px solid #e5e7eb; display:none; padding:8px 16px }
  .nav.open { display:block }
  .nav ul { flex-direction:column; gap:10px }
  .menu-toggle { display:block }
}

/* Hero with background image */
.hero {
  position: relative;
  min-height: clamp(60vh, 70vh, 92vh);
  display:flex; align-items:center;
  background: url('assets/hero.webp') center/cover no-repeat, url('assets/hero.jpg') center/cover no-repeat;
}
.hero::after{ content:''; position:absolute; inset:0; background: linear-gradient(90deg, rgba(15,23,42,.55) 0%, rgba(15,23,42,.25) 45%, rgba(15,23,42,.10) 70%); }
.hero-inner{ position:relative; z-index:1; color:white; max-width: 760px; padding: clamp(20px, 4vw, 32px) }
.hero h1 { font-size: clamp(28px, 5vw, 54px); margin:0 0 10px; letter-spacing:-.02em }
.hero p  { font-size: clamp(15px, 2.5vw, 20px); opacity:.95; margin: 0 0 16px }
.hero-ctas { display:flex; gap:12px; flex-wrap:wrap }
.btn { display:inline-block; padding:12px 16px; border-radius:999px; text-decoration:none; font-weight:700; transition: transform .08s ease, box-shadow .2s ease, background-color .2s ease, color .2s ease }
.btn-primary { background:#0ea5e9; color:white; box-shadow:0 10px 24px rgba(14,165,233,.30) }
.btn-primary:hover { background:#0284c7; transform: translateY(-1px) }
.btn-secondary { background:#e2e8f0; color:#0f172a }
.btn-secondary:hover { background:#cbd5e1; transform: translateY(-1px) }

/* Sections / Cards */
.section { padding: clamp(28px, 6vw, 60px) 0 }
h2 { font-size: clamp(22px, 3vw, 32px); margin: 0 0 14px }
.card-grid { display:grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px }
.card { padding:18px; border-radius:16px; background:white; border:1px solid #e5e7eb; box-shadow:0 8px 20px rgba(2,6,23,.06); transition: transform .12s ease, box-shadow .2s ease }
.card:hover{ transform: translateY(-2px); box-shadow:0 12px 28px rgba(2,6,23,.10) }

/* Footer (if exists) */
.footer { padding:24px 0; color:#64748b; font-size:.95rem }

/* Responsive images */
img { max-width:100%; height:auto; display:block }


/* ===== Info bar below hero ===== */
.info-bar{ position:relative; margin-top:-28px; }
.info-wrap{
  display:flex; flex-direction:column; gap:10px;
  background:#ffffff; border:1px solid #e5e7eb; border-radius:20px;
  padding: clamp(16px, 2.8vw, 26px); box-shadow:0 15px 40px rgba(2,6,23,.10);
}
.info-bar h1{ margin:0; font-size:clamp(26px, 4.2vw, 44px); letter-spacing:-.02em; color:#0f172a }
.info-bar p{ margin:0; color:#475569; font-size:clamp(14px, 2.2vw, 18px) }
@media (min-width: 900px){
  .info-wrap{ flex-direction:row; align-items:center; justify-content:space-between }
  .info-bar h1{ max-width:60% }
}

/* ===== Services tabs ===== */
.tabs{ display:flex; gap:8px; flex-wrap:wrap; margin:12px 0 18px }
.tab{
  padding:8px 12px; border-radius:999px; border:1px solid #e2e8f0; background:#f8fafc;
  font-weight:700; cursor:pointer; transition: background-color .15s ease, transform .08s ease;
}
.tab:hover{ transform: translateY(-1px); background:#eef2f7 }
.tab.active{ background:#0ea5e9; color:#ffffff; border-color:#0284c7 }

.service-card{ position:relative; overflow:hidden }
.service-card .icon{
  width:44px; height:44px; border-radius:12px; background:#f1f5f9; display:flex; align-items:center; justify-content:center;
  font-size:22px; margin-bottom:8px
}
.service-card:hover .icon{ background:#e2e8f0 }


/* Denser services grid on large screens */
@media (min-width: 1100px){
  .services-grid{ grid-template-columns: repeat(4, 1fr) }
}
.service-card h3{ margin:.2rem 0 .2rem }
.service-card p{ margin:0; color:#475569 }


/* === Mobile hero adjustments === */
@media (max-width: 640px){
  .hero{
    min-height: 48vh;
    background: url('assets/hero-mobile.webp') center right/cover no-repeat, url('assets/hero-mobile.jpg') center right/cover no-repeat;
  }
  .hero::after{
    background: linear-gradient(180deg, rgba(15,23,42,.35) 0%, rgba(15,23,42,.18) 40%, rgba(15,23,42,.08) 100%);
  }
  .info-bar{ margin-top: 8px }
}


/* === Mobile-first redesign (no cover photo) === */
.intro-band{
  background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
  border-bottom: 1px solid #e5e7eb;
  padding: clamp(20px, 6vw, 36px) 0;
}
.intro-wrap{ display:flex; flex-direction:column; gap:10px }
.intro-band h1{ font-size: clamp(22px, 4.5vw, 36px); margin:0; letter-spacing:-.015em }
.intro-band p{ margin:0; color:#475569; font-size: clamp(14px, 2.6vw, 18px) }
.cta-row{ display:flex; gap:10px; flex-wrap:wrap; margin-top:6px }

/* Attractive stats band */
.stats-band{ background:#0b1220; color:white; padding: clamp(18px, 5vw, 28px) 0 }
.stats-grid{ display:grid; grid-template-columns:repeat(2,1fr); gap:14px; align-items:center }
.stat{ text-align:center; background:rgba(255,255,255,.06); border:1px solid rgba(255,255,255,.12); border-radius:16px; padding:14px 10px }
.stat-num{ font-size: clamp(22px, 5.5vw, 34px); font-weight:900 }
.stat-label{ opacity:.9; font-size: clamp(12px, 2.2vw, 14px) }
@media (min-width: 820px){
  .stats-grid{ grid-template-columns:repeat(4,1fr) }
}

/* General spacing tighter on mobile */
.section{ padding: clamp(22px, 6vw, 56px) 0 }

/* Nav improvements for mobile clarity */
.site-header .brand{ font-size: clamp(16px, 3.2vw, 20px) }
@media (max-width: 800px){
  .nav{ top:54px }
}


/* ==== Professional light clinic theme ==== */
:root{ --brand:#0ea5e9; --ink:#0f172a; --muted:#475569; --line:#e5e7eb; --bg:#ffffff }
body{ background:var(--bg); color:var(--ink) }
.btn{ border:none }
.btn-outline{ background:transparent; border:1px solid var(--line); color:var(--ink) }
.btn-outline:hover{ background:#f1f5f9 }

/* split hero */
.hero-split{ padding: clamp(22px, 7vw, 48px) 0; border-bottom:1px solid var(--line); background: linear-gradient(180deg,#ffffff 0%,#f8fafc 100%) }
.hero-grid{ display:grid; grid-template-columns: 1.1fr .9fr; gap: clamp(16px, 4vw, 32px); align-items:center }
.hero-text h1{ font-size: clamp(26px, 4.8vw, 44px); margin:0 0 8px; letter-spacing:-.02em }
.hero-text p{ margin:0 0 12px; color:var(--muted); font-size: clamp(14px, 2.4vw, 18px) }
.hero-visual img{ width:100%; height:auto; border-radius:18px; box-shadow:0 12px 40px rgba(2,6,23,.12) }
@media (max-width: 880px){
  .hero-grid{ grid-template-columns: 1fr; }
  .hero-visual{ order:-1 }
}

/* Features row */
.features{ padding-top: clamp(14px,5vw,24px) }
.feature-grid{ display:grid; grid-template-columns:repeat(auto-fit, minmax(220px,1fr)); gap:16px }
.feature{ text-align:center; padding:16px; border:1px solid var(--line); border-radius:16px; background:white; box-shadow:0 8px 20px rgba(2,6,23,.06) }
.feature-icon{ width:52px; height:52px; display:flex; align-items:center; justify-content:center; margin:0 auto 8px; border-radius:14px; background:#eaf6fe; font-size:26px }

/* Services tidy */
.tabs{ margin-top:8px }
.services-grid{ margin-top:8px }


/* Uniform small buttons */
.btn{ display:inline-block; border-radius:999px; font-weight:700; text-decoration:none; transition:transform .08s ease, box-shadow .2s ease }
.btn-sm{ font-size:14px; line-height:1; padding:10px 14px }
.btn-primary{ background:#0ea5e9; color:#fff; box-shadow:0 10px 24px rgba(14,165,233,.30) }
.btn-primary:hover{ background:#0284c7; transform:translateY(-1px) }
.btn-outline{ background:transparent; border:1px solid #e5e7eb; color:#0f172a }
.btn-outline:hover{ background:#f1f5f9; transform:translateY(-1px) }

/* Ensure mobile support */
.cta-row{ display:flex; gap:8px; flex-wrap:wrap }
@media (max-width: 420px){
  .btn-sm{ font-size:13px; padding:9px 12px }
  .hero-text h1{ font-size: clamp(22px, 6vw, 34px) }
  .hero-text p{ font-size: 14px }
}


/* Info bar typography adjustments: no buttons, balanced text */
.info-bar .hero-ctas, .info-bar .cta-row{ display:none !important }
.info-bar h1, .info-bar h2{ font-size: clamp(22px, 4vw, 36px); line-height:1.2; margin: 0 0 6px }
.info-bar p{ font-size: clamp(14px, 2.2vw, 18px); margin:0; color:#475569 }
.info-bar .info-wrap{ gap:10px; align-items:flex-start }
@media (min-width: 900px){
  .info-bar .info-wrap{ flex-direction:row; justify-content:space-between }
  .info-bar h1{ max-width:62% }
}


/* --- Mobile nav: dropdown pushes content, not overlay --- */
@media (max-width: 800px){
  .site-header{ position: sticky; top:0; z-index: 1000; box-shadow: 0 2px 10px rgba(2,6,23,.06) }
  .nav { position: static; display: none; padding: 8px 0; background: #fff; border-bottom: 1px solid #e5e7eb }
  .nav.open { display:block }
  .nav ul { flex-direction: column; gap: 12px; padding: 8px 16px }
  .nav a { padding: 6px 0; display:block }
}
/* Ensure first section never hides under header */
body > header + section { scroll-margin-top: 72px }
