/* ============================================================
   Khushi Polyclinic & Diagnostic Centre
   Brand: Corporate Deep Blue + Clinical Green
   ============================================================ */

:root {
  --blue-900: #072a57;
  --blue-800: #0b3d7c;
  --blue-700: #0f4c99;
  --blue-600: #1560bd;
  --blue-50:  #eef4fc;
  --green-700: #1d8a51;
  --green-600: #23a35f;
  --green-500: #2fb56b;
  --green-50:  #eafaf1;
  --ink: #1a2433;
  --muted: #5b6b80;
  --line: #e3e9f2;
  --bg: #f7fafd;
  --white: #ffffff;
  --radius: 14px;
  --shadow: 0 4px 24px rgba(11, 61, 124, 0.08);
  --shadow-lg: 0 12px 40px rgba(11, 61, 124, 0.14);
  --font-body: 'Hind Siliguri', 'Poppins', sans-serif;
  --font-head: 'Poppins', 'Hind Siliguri', sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.65;
  font-size: 16.5px;
}

html[lang="bn"] body { font-size: 17.5px; }

img { max-width: 100%; display: block; }
a { color: var(--blue-700); text-decoration: none; }
a:hover { color: var(--blue-600); }
.icon { vertical-align: -0.18em; flex-shrink: 0; }

.container { max-width: 1180px; margin: 0 auto; padding: 0 20px; }

h1, h2, h3, h4 { font-family: var(--font-head); color: var(--blue-900); line-height: 1.25; }
html[lang="bn"] h1, html[lang="bn"] h2, html[lang="bn"] h3, html[lang="bn"] h4 { font-family: var(--font-body); font-weight: 700; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 24px; border-radius: 999px;
  font-weight: 600; font-size: 15.5px; font-family: inherit;
  border: 2px solid transparent; cursor: pointer; transition: all .2s ease;
  white-space: nowrap;
}
.btn-blue { background: var(--blue-800); color: #fff; }
.btn-blue:hover { background: var(--blue-600); color: #fff; transform: translateY(-1px); }
.btn-green { background: var(--green-600); color: #fff; }
.btn-green:hover { background: var(--green-700); color: #fff; transform: translateY(-1px); }
.btn-outline { border-color: rgba(255,255,255,.7); color: #fff; background: transparent; }
.btn-outline:hover { background: rgba(255,255,255,.12); color: #fff; }
.btn-outline-blue { border-color: var(--blue-800); color: var(--blue-800); background: transparent; }
.btn-outline-blue:hover { background: var(--blue-50); }
.btn-whatsapp { background: #25d366; color: #fff; }
.btn-whatsapp:hover { background: #1eb857; color: #fff; }
.btn-sm { padding: 9px 18px; font-size: 14.5px; }
.btn-lg { padding: 15px 32px; font-size: 17px; }

/* ---------- Topbar ---------- */
.topbar { background: var(--blue-900); color: #cfe0f5; font-size: 14px; }
.topbar-inner { display: flex; justify-content: space-between; align-items: center; min-height: 40px; gap: 12px; flex-wrap: wrap; padding-top: 4px; padding-bottom: 4px; }
.topbar-badge { display: inline-flex; align-items: center; gap: 7px; color: #ffd76a; font-weight: 600; }
.topbar-right { display: flex; align-items: center; gap: 18px; }
.topbar-link { color: #cfe0f5; display: inline-flex; align-items: center; gap: 6px; font-weight: 500; }
.topbar-link:hover { color: #fff; }
.lang-toggle {
  display: inline-flex; align-items: center; gap: 6px;
  background: rgba(255,255,255,.12); color: #fff;
  padding: 4px 14px; border-radius: 999px; font-weight: 600; font-size: 13.5px;
  border: 1px solid rgba(255,255,255,.25);
}
.lang-toggle:hover { background: var(--green-600); border-color: var(--green-600); color: #fff; }

/* ---------- Header / Nav ---------- */
.site-header { background: #fff; box-shadow: 0 2px 12px rgba(11,61,124,.07); position: sticky; top: 0; z-index: 100; }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 76px; }
.brand { display: flex; align-items: center; gap: 12px; min-width: 0; }
.brand-mark { display: flex; align-items: center; flex-shrink: 0; }
.brand-mark img { width: 44px; height: 44px; object-fit: contain; border-radius: 8px; }
.footer-brand .brand-mark img { width: 38px; height: 38px; background: #fff; padding: 2px; }
/* Wide logo lockups (uploaded via admin) replace the icon + text pair */
.brand-logo-wide { height: 50px; width: auto; max-width: min(300px, 40vw); object-fit: contain; display: block; }
.footer-logo-wide { display: inline-block; background: #fff; border-radius: 10px; padding: 8px 12px; }
.footer-logo-wide img { height: 40px; width: auto; max-width: 240px; object-fit: contain; display: block; }
.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-text strong { font-family: var(--font-head); font-size: 20px; color: var(--blue-900); letter-spacing: -.2px; }
html[lang="bn"] .brand-text strong { font-family: var(--font-body); }
.brand-text small { font-size: 12px; color: var(--green-700); font-weight: 600; letter-spacing: .4px; text-transform: uppercase; }
html[lang="bn"] .brand-text small { text-transform: none; letter-spacing: 0; font-size: 13px; }
.main-nav { display: flex; align-items: center; gap: 4px; }
.nav-link { padding: 9px 13px; border-radius: 9px; color: var(--ink); font-weight: 500; font-size: 15.5px; }
.nav-link:hover { background: var(--blue-50); color: var(--blue-800); }
.nav-link.active { color: var(--blue-800); background: var(--blue-50); font-weight: 600; }
.nav-cta { margin-left: 10px; }
.nav-burger { display: none; background: none; border: none; color: var(--blue-800); cursor: pointer; padding: 6px; }

/* ---------- Hero ---------- */
.hero {
  background: linear-gradient(120deg, var(--blue-900) 0%, var(--blue-800) 55%, #0d5a35 130%);
  color: #fff; overflow: hidden; position: relative;
}
.hero::after {
  content: ''; position: absolute; right: -120px; top: -120px; width: 480px; height: 480px;
  background: radial-gradient(circle, rgba(47,181,107,.25), transparent 65%); pointer-events: none;
}
.hero-inner { display: grid; grid-template-columns: 1.15fr .85fr; gap: 48px; align-items: center; padding: 72px 0; position: relative; z-index: 1; }
.hero h1 { color: #fff; font-size: clamp(30px, 4.2vw, 46px); margin-bottom: 18px; }
.hero p { color: #d7e4f5; font-size: 18px; max-width: 560px; margin-bottom: 30px; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-badges { display: flex; gap: 22px; margin-top: 36px; flex-wrap: wrap; }
.hero-badge { display: flex; align-items: center; gap: 9px; color: #cfe0f5; font-size: 14.5px; font-weight: 500; }
.hero-badge .icon { color: var(--green-500); }
.hero-art { display: flex; justify-content: center; }
.hero-art svg { width: 100%; max-width: 420px; height: auto; filter: drop-shadow(0 20px 40px rgba(0,0,0,.25)); }

/* ---------- Stats strip ---------- */
.stats-strip { background: #fff; border-bottom: 1px solid var(--line); }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.stat { text-align: center; padding: 26px 12px; }
.stat + .stat { border-left: 1px solid var(--line); }
.stat b { display: block; font-family: var(--font-head); font-size: 30px; color: var(--blue-800); }
.stat span { color: var(--muted); font-size: 14.5px; font-weight: 500; }

/* ---------- Sections ---------- */
.section { padding: 70px 0; }
.section.alt { background: #fff; }
.section-head { text-align: center; max-width: 640px; margin: 0 auto 44px; }
.section-head h2 { font-size: clamp(26px, 3vw, 34px); margin-bottom: 10px; }
.section-head p { color: var(--muted); font-size: 17px; }
.section-head .eyebrow {
  display: inline-block; background: var(--green-50); color: var(--green-700);
  font-size: 13px; font-weight: 700; letter-spacing: 1.2px; text-transform: uppercase;
  padding: 5px 16px; border-radius: 999px; margin-bottom: 14px;
}
html[lang="bn"] .section-head .eyebrow { letter-spacing: 0; font-size: 14px; }
.section-foot { text-align: center; margin-top: 38px; }

/* ---------- Cards ---------- */
.grid { display: grid; gap: 22px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }

.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 28px 24px; transition: all .22s ease; position: relative;
}
.card:hover { box-shadow: var(--shadow-lg); transform: translateY(-4px); border-color: transparent; }
.card-icon {
  width: 56px; height: 56px; border-radius: 14px; display: flex; align-items: center; justify-content: center;
  background: var(--blue-50); color: var(--blue-800); margin-bottom: 18px;
}
.card:hover .card-icon { background: var(--green-50); color: var(--green-700); }
.card h3 { font-size: 18.5px; margin-bottom: 8px; }
.card p { color: var(--muted); font-size: 15px; }
.card .card-tag {
  display: inline-block; font-size: 12.5px; font-weight: 600; color: var(--green-700);
  background: var(--green-50); border-radius: 999px; padding: 3px 12px; margin-bottom: 12px;
}

/* ---------- Doctor cards ---------- */
.doc-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; transition: all .22s ease; display: flex; flex-direction: column;
}
.doc-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-4px); }
.doc-photo { aspect-ratio: 4 / 3.4; background: linear-gradient(135deg, var(--blue-50), #dcebfa); display: flex; align-items: center; justify-content: center; color: var(--blue-800); position: relative; }
.doc-photo img { width: 100%; height: 100%; object-fit: cover; }
.doc-photo .doc-avatar { opacity: .55; }
.doc-body { padding: 22px; flex: 1; display: flex; flex-direction: column; }
.doc-dept { font-size: 13px; font-weight: 700; color: var(--green-700); text-transform: uppercase; letter-spacing: .8px; margin-bottom: 6px; }
html[lang="bn"] .doc-dept { text-transform: none; letter-spacing: 0; font-size: 14px; }
.doc-body h3 { font-size: 19px; margin-bottom: 4px; }
.doc-degrees { color: var(--muted); font-size: 14px; margin-bottom: 14px; }
.doc-schedule { border-top: 1px dashed var(--line); padding-top: 14px; margin-top: auto; font-size: 14px; }
.doc-schedule-row { display: flex; justify-content: space-between; gap: 10px; padding: 3px 0; color: var(--ink); }
.doc-schedule-row .d { font-weight: 600; color: var(--blue-800); }
.doc-schedule-row .t { color: var(--muted); }
.doc-actions { display: flex; gap: 10px; margin-top: 16px; }
.doc-actions .btn { flex: 1; justify-content: center; padding: 10px 12px; font-size: 14.5px; }

/* ---------- Filter bar ---------- */
.filter-bar {
  display: flex; gap: 14px; flex-wrap: wrap; align-items: center;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 16px 18px; margin-bottom: 32px; box-shadow: var(--shadow);
}
.filter-bar label { font-weight: 600; color: var(--blue-900); font-size: 15px; display: flex; align-items: center; gap: 8px; }
.filter-bar select, .filter-bar input[type="text"] {
  font-family: inherit; font-size: 15.5px; padding: 10px 14px;
  border: 1.5px solid var(--line); border-radius: 10px; background: var(--bg); color: var(--ink);
  min-width: 220px;
}
.filter-bar select:focus, .filter-bar input:focus { outline: none; border-color: var(--blue-600); background: #fff; }
.filter-search { flex: 1; min-width: 200px; }
.filter-search input { width: 100%; }

/* ---------- Page hero (inner pages) ---------- */
.page-hero { background: linear-gradient(115deg, var(--blue-900), var(--blue-700)); color: #fff; padding: 52px 0; }
.page-hero h1 { color: #fff; font-size: clamp(26px, 3.4vw, 38px); margin-bottom: 8px; }
.page-hero p { color: #cfe0f5; font-size: 17px; max-width: 640px; }

/* ---------- Appointment ---------- */
.call-bar {
  background: linear-gradient(100deg, var(--green-700), var(--green-600));
  border-radius: var(--radius); color: #fff; padding: 26px 30px;
  display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap;
  box-shadow: var(--shadow-lg); margin-bottom: 34px;
}
.call-bar h3 { color: #fff; font-size: 20px; margin-bottom: 4px; }
.call-bar p { color: #e2f7ec; font-size: 15px; }
.call-bar-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.call-bar-actions .btn { background: #fff; color: var(--green-700); font-weight: 700; }
.call-bar-actions .btn:hover { background: var(--blue-900); color: #fff; }
.call-bar-actions .btn-whatsapp { background: #25d366; color: #fff; }
.call-bar-actions .btn-whatsapp:hover { background: #1eb857; }

.appointment-layout { display: grid; grid-template-columns: 1.5fr 1fr; gap: 34px; align-items: start; }
.form-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 34px; box-shadow: var(--shadow); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form-field { display: flex; flex-direction: column; gap: 7px; }
.form-field.full { grid-column: 1 / -1; }
.form-field label { font-weight: 600; font-size: 15px; color: var(--blue-900); }
.form-field label .req { color: #d33; }
.form-field input, .form-field select, .form-field textarea {
  font-family: inherit; font-size: 16px; padding: 12px 14px;
  border: 1.5px solid var(--line); border-radius: 10px; background: var(--bg); color: var(--ink); width: 100%;
}
.form-field input:focus, .form-field select:focus, .form-field textarea:focus {
  outline: none; border-color: var(--blue-600); background: #fff; box-shadow: 0 0 0 3px rgba(21,96,189,.12);
}
.form-field select:disabled { opacity: .6; cursor: not-allowed; }
.form-submit { grid-column: 1 / -1; margin-top: 6px; }
.form-submit .btn { width: 100%; justify-content: center; }

.alert { border-radius: 12px; padding: 16px 20px; margin-bottom: 22px; font-weight: 500; display: flex; gap: 10px; align-items: flex-start; }
.alert-success { background: var(--green-50); color: var(--green-700); border: 1px solid #bfe8d2; }
.alert-error { background: #fdeeee; color: #b23030; border: 1px solid #f3c9c9; }

.schedule-panel { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; box-shadow: var(--shadow); }
.schedule-panel h3 { font-size: 18px; margin-bottom: 14px; display: flex; align-items: center; gap: 9px; }
.schedule-panel .hint { color: var(--muted); font-size: 14.5px; }
.schedule-list { margin-top: 6px; }
.schedule-list .doc-schedule-row { padding: 7px 0; border-bottom: 1px dashed var(--line); font-size: 15px; }
.schedule-list .doc-schedule-row:last-child { border-bottom: none; }

/* ---------- Facilities ---------- */
.facility-row { display: grid; grid-template-columns: 88px 1fr; gap: 22px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; transition: all .2s ease; }
.facility-row:hover { box-shadow: var(--shadow-lg); }
.facility-row .card-icon { width: 72px; height: 72px; margin: 0; }
.facility-row h3 { font-size: 20px; margin-bottom: 6px; }
.facility-row p { color: var(--muted); }
.facility-list { display: flex; flex-direction: column; gap: 18px; max-width: 860px; margin: 0 auto; }

/* ---------- Doctor profile ---------- */
.profile-layout { display: grid; grid-template-columns: 340px 1fr; gap: 34px; align-items: start; }
.profile-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.profile-card .doc-photo { aspect-ratio: 1 / .95; }
.profile-card-body { padding: 24px; }
.profile-main h1 { font-size: clamp(24px, 3vw, 32px); margin-bottom: 4px; }
.profile-degrees { color: var(--muted); font-size: 16px; margin-bottom: 20px; }
.profile-section { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; margin-bottom: 20px; }
.profile-section h3 { font-size: 18px; margin-bottom: 12px; display: flex; align-items: center; gap: 9px; color: var(--blue-800); }
.meta-row { display: flex; gap: 10px; align-items: center; padding: 6px 0; font-size: 15.5px; }
.meta-row .icon { color: var(--green-600); }

/* ---------- Footer ---------- */
.site-footer { background: var(--blue-900); color: #b9cbe3; margin-top: 70px; }
.footer-grid { display: grid; grid-template-columns: 1.3fr 0.8fr 1.1fr 1fr; gap: 36px; padding: 56px 20px 40px; }
.footer-col h4 { color: #fff; font-size: 17px; margin-bottom: 16px; }
.footer-col p { font-size: 14.5px; margin-bottom: 14px; }
.footer-brand { margin-bottom: 14px; }
.footer-brand .brand-text strong { color: #fff; }
.footer-brand .brand-text small { color: var(--green-500); }
.footer-iso { display: inline-flex; align-items: center; gap: 8px; color: #ffd76a; font-size: 13.5px; font-weight: 600; }
.footer-links { list-style: none; }
.footer-links li { padding: 4px 0; }
.footer-links a { color: #b9cbe3; font-size: 14.5px; }
.footer-links a:hover { color: #fff; }
.footer-contact { list-style: none; margin-bottom: 16px; }
.footer-contact li { display: flex; gap: 10px; padding: 5px 0; font-size: 14.5px; align-items: flex-start; }
.footer-contact .icon { color: var(--green-500); margin-top: 3px; }
.footer-contact a { color: #b9cbe3; }
.footer-contact a:hover { color: #fff; }
.footer-map { border-radius: 12px; overflow: hidden; border: 1px solid rgba(255,255,255,.15); }
.footer-map iframe { width: 100%; height: 150px; border: 0; display: block; }
.footer-directions { display: inline-flex; align-items: center; gap: 6px; color: var(--green-500); font-size: 14px; font-weight: 600; margin-top: 10px; }
.footer-directions:hover { color: #fff; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.12); padding: 18px 0; font-size: 13.5px; text-align: center; }

/* ---------- Floating WhatsApp ---------- */
.float-whatsapp {
  position: fixed; right: 22px; bottom: 22px; z-index: 90;
  width: 56px; height: 56px; border-radius: 50%;
  background: #25d366; color: #fff; display: flex; align-items: center; justify-content: center;
  box-shadow: 0 8px 24px rgba(37, 211, 102, .45); transition: transform .2s ease;
}
.float-whatsapp:hover { transform: scale(1.08); color: #fff; }

/* ---------- CTA band ---------- */
.cta-band { background: linear-gradient(100deg, var(--blue-800), var(--blue-600)); border-radius: 20px; color: #fff; padding: 46px; display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; box-shadow: var(--shadow-lg); }
.cta-band h2 { color: #fff; font-size: clamp(22px, 2.8vw, 30px); margin-bottom: 6px; }
.cta-band p { color: #d7e4f5; }

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .hero-inner { grid-template-columns: 1fr; padding: 52px 0; }
  .hero-art { display: none; }
  .appointment-layout, .profile-layout { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 720px) {
  .grid-3, .grid-2 { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .stat:nth-child(3) { border-left: none; }
  .stat { border-top: 1px solid var(--line); }
  .stat:nth-child(-n+2) { border-top: none; }
  .form-grid { grid-template-columns: 1fr; }
  .facility-row { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .hide-sm { display: none !important; }

  .nav-burger { display: block; }
  .main-nav {
    display: none; position: absolute; top: 100%; left: 0; right: 0;
    background: #fff; flex-direction: column; align-items: stretch;
    padding: 14px 20px 20px; gap: 6px; box-shadow: 0 16px 30px rgba(11,61,124,.15);
    border-top: 1px solid var(--line);
  }
  .main-nav.open { display: flex; }
  .nav-link { padding: 12px 14px; }
  .nav-cta { margin-left: 0; justify-content: center; }
}

@media (max-width: 480px) {
  .grid-4 { grid-template-columns: 1fr; }
  .topbar-inner { justify-content: center; }
}
