/* =====================================================
   Dr. Nowroj Ahmed Rayhan — Website Stylesheet
   ===================================================== */

:root {
  --color-primary: #1E7A4C;
  --color-primary-dark: #145C38;
  --color-accent: #4FBFA8;
  --color-bg: #F7FAFB;
  --color-surface: #FFFFFF;
  --color-text: #1F2A33;
  --color-text-secondary: #5B6B75;
  --color-border: #DCEAE2;
  --color-success: #3FA66C;

  --font-bn: 'Hind Siliguri', 'Noto Sans Bengali', sans-serif;
  --font-bn-digits: 'Noto Sans Bengali', 'Hind Siliguri', sans-serif;
  --font-heading: 'Poppins', 'Hind Siliguri', sans-serif;
  --font-body: 'Inter', 'Hind Siliguri', sans-serif;

  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 22px;
  --shadow-sm: 0 2px 10px rgba(20, 92, 56, 0.06);
  --shadow-md: 0 8px 28px rgba(20, 92, 56, 0.10);
  --shadow-lg: 0 16px 44px rgba(20, 92, 56, 0.14);
  --container: 1180px;
  --header-h: 76px;
}

/* ---------- Reset ---------- */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  background: var(--color-bg);
  color: var(--color-text);
  line-height: 1.6;
  overflow-x: hidden;
}
html.lang-bn body, html.lang-bn { font-family: var(--font-bn); }
html.lang-en body, html.lang-en { font-family: var(--font-body); }

img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
h1, h2, h3, h4 { font-family: var(--font-heading); font-weight: 600; line-height: 1.25; color: var(--color-text); }
html.lang-bn h1, html.lang-bn h2, html.lang-bn h3, html.lang-bn h4 { font-family: var(--font-bn); font-weight: 700; }

.container { max-width: var(--container); margin: 0 auto; padding: 0 24px; }
section { padding: 88px 0; }
@media (max-width: 768px) { section { padding: 56px 0; } }

.eyebrow {
  display: inline-block;
  color: var(--color-primary);
  font-weight: 600;
  font-size: 0.85rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 10px;
}
html.lang-bn .eyebrow { text-transform: none; letter-spacing: 0; }

.section-head { max-width: 640px; margin: 0 auto 48px; text-align: center; }
.section-head h2 { font-size: clamp(1.6rem, 3vw, 2.3rem); margin-bottom: 12px; }
.section-head p { color: var(--color-text-secondary); font-size: 1.02rem; }

/* nowrap number spans (Hind Siliguri digit fix) */
.num-nowrap {
  white-space: nowrap;
  font-family: var(--font-bn-digits);
}
html.lang-en .num-nowrap { font-family: var(--font-body); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 28px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.98rem;
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease, color 180ms ease;
  white-space: nowrap;
}
.btn-primary { background: var(--color-primary); color: #fff; box-shadow: var(--shadow-sm); }
.btn-primary:hover { background: var(--color-primary-dark); transform: translateY(-2px) scale(1.02); box-shadow: var(--shadow-md); }
.btn-outline { background: transparent; color: var(--color-primary); border: 1.5px solid var(--color-primary); }
.btn-outline:hover { background: var(--color-primary); color: #fff; transform: translateY(-2px); }
.btn-sm { padding: 9px 18px; font-size: 0.88rem; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 500;
  height: var(--header-h);
  background: rgba(247, 250, 251, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--color-border);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 100%; gap: 20px; }
.brand { display: flex; align-items: center; gap: 12px; }
.brand-photo {
  width: 46px; height: 46px; border-radius: 50%;
  object-fit: cover; border: 2px solid var(--color-primary);
  flex-shrink: 0;
}
.brand-text { display: flex; flex-direction: column; line-height: 1.2; }
.brand-name { font-family: var(--font-heading); font-weight: 700; font-size: 1.05rem; color: var(--color-text); }
html.lang-bn .brand-name { font-family: var(--font-bn); }
.brand-sub { font-size: 0.72rem; color: var(--color-text-secondary); }
@media (max-width: 768px) { .brand-sub { display: none; } }

.main-nav { display: flex; }
.main-nav ul { display: flex; gap: 32px; }
.main-nav a {
  font-weight: 500; font-size: 0.96rem; color: var(--color-text);
  position: relative; padding: 6px 0;
  transition: color 150ms ease;
}
.main-nav a::after {
  content: ""; position: absolute; left: 0; bottom: -2px;
  width: 0; height: 2px; background: var(--color-primary);
  transition: width 200ms ease;
}
.main-nav a:hover, .main-nav a.active { color: var(--color-primary); }
.main-nav a:hover::after, .main-nav a.active::after { width: 100%; }

.header-actions { display: flex; align-items: center; gap: 14px; }

.lang-toggle {
  display: flex; background: var(--color-surface); border: 1px solid var(--color-border);
  border-radius: 999px; padding: 3px; position: relative;
}
.lang-toggle button {
  padding: 6px 14px; font-size: 0.82rem; font-weight: 600; border-radius: 999px;
  color: var(--color-text-secondary); position: relative; z-index: 1;
  transition: color 200ms ease;
}
.lang-toggle button.active { color: #fff; }
.lang-toggle-thumb {
  position: absolute; top: 3px; bottom: 3px; left: 3px;
  width: calc(50% - 3px); background: var(--color-primary);
  border-radius: 999px; transition: transform 220ms ease;
}
html.lang-en .lang-toggle-thumb { transform: translateX(100%); }

.hamburger { display: none; flex-direction: column; gap: 5px; width: 26px; }
.hamburger span { height: 2px; background: var(--color-text); border-radius: 2px; transition: transform 200ms ease, opacity 200ms ease; }

@media (max-width: 1024px) {
  .main-nav { position: fixed; top: var(--header-h); left: 0; right: 0; bottom: 0;
    background: var(--color-surface); transform: translateX(100%);
    transition: transform 260ms ease; padding: 32px 24px; z-index: 400; }
  .main-nav.open { transform: translateX(0); }
  .main-nav ul { flex-direction: column; gap: 6px; }
  .main-nav a { display: block; padding: 14px 8px; font-size: 1.1rem; border-bottom: 1px solid var(--color-border); }
  .hamburger { display: flex; }
  .hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .hamburger.open span:nth-child(2) { opacity: 0; }
  .hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  .header-actions .btn-primary.desktop-only { display: none; }
}
@media (min-width: 1025px) { .header-actions .mobile-cta { display: none; } }

/* ---------- Footer ---------- */
.site-footer { background: var(--color-primary-dark); color: #EAF3EC; padding: 64px 0 0; margin-top: 100px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; padding-bottom: 48px; }
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr; } }
.footer-col h4 { color: #fff; font-size: 1rem; margin-bottom: 16px; }
.footer-col p, .footer-col a, .footer-col li { color: #C9DED0; font-size: 0.92rem; margin-bottom: 8px; display: block; }
.footer-col a:hover { color: #fff; }
.footer-tagline { margin-top: 6px; opacity: 0.85; font-size: 0.85rem; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.12);
  padding: 20px 0; text-align: center; font-size: 0.82rem; color: #B7D2BF;
}

/* ---------- Hero ---------- */
.hero { padding: 64px 0 40px; overflow: hidden; }
.hero-inner { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 48px; align-items: center; }
@media (max-width: 900px) { .hero-inner { grid-template-columns: 1fr; text-align: center; } }
.hero-text .eyebrow { }
.hero-text h1 { font-size: clamp(2rem, 4.4vw, 3.2rem); margin-bottom: 16px; }
.hero-text .hero-role { font-size: 1.08rem; color: var(--color-primary-dark); font-weight: 600; margin-bottom: 14px; }
.hero-text .hero-sub { color: var(--color-text-secondary); font-size: 1.05rem; margin-bottom: 30px; max-width: 520px; }
@media (max-width: 900px) { .hero-text .hero-sub { margin-inline: auto; } }
.hero-cta { display: flex; gap: 16px; flex-wrap: wrap; }
@media (max-width: 900px) { .hero-cta { justify-content: center; } }

.hero-visual { position: relative; display: flex; justify-content: center; align-items: center; }
.hero-photo-wrap {
  position: relative; width: 320px; height: 320px; border-radius: 50%;
  overflow: hidden; box-shadow: var(--shadow-lg); border: 6px solid #fff;
}
.hero-photo-wrap img { width: 100%; height: 100%; object-fit: cover; }
.lungs-badge {
  position: absolute; bottom: -14px; right: -14px;
  width: 108px; height: 108px; background: #fff; border-radius: 50%;
  box-shadow: var(--shadow-md); display: flex; align-items: center; justify-content: center;
  padding: 14px;
}
.lungs-badge svg { width: 100%; height: 100%; }

/* breathing lungs animation */
.lung-shape { animation: breathe 3.4s ease-in-out infinite; transform-origin: center; }
@keyframes breathe {
  0%, 100% { transform: scale(0.94); }
  50% { transform: scale(1.05); }
}
.lung-fill { transition: fill 1.7s ease; }

/* ---------- Credentials strip ---------- */
.cred-strip { background: var(--color-surface); border-top: 1px solid var(--color-border); border-bottom: 1px solid var(--color-border); padding: 26px 0; }
.cred-strip .container { display: flex; flex-wrap: wrap; gap: 12px 28px; justify-content: center; }
.cred-item { display: flex; align-items: center; gap: 8px; font-size: 0.88rem; font-weight: 500; color: var(--color-text-secondary); }
.cred-item .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--color-accent); flex-shrink: 0; }

/* ---------- Specialties grid ---------- */
.specialty-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
@media (max-width: 900px) { .specialty-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .specialty-grid { grid-template-columns: 1fr; } }
.specialty-card {
  background: var(--color-surface); border-radius: var(--radius-md); overflow: hidden;
  box-shadow: var(--shadow-sm); border: 1px solid var(--color-border);
  transition: transform 200ms ease, box-shadow 200ms ease;
}
.specialty-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); }
.specialty-card img { height: 150px; width: 100%; object-fit: cover; }
.specialty-card .specialty-body { padding: 18px 20px 22px; }
.specialty-card h3 { font-size: 1.02rem; }
.specialty-card.featured {
  border: 1.5px solid var(--color-primary);
  grid-column: span 2;
  position: relative;
}
@media (max-width: 900px) { .specialty-card.featured { grid-column: span 2; } }
@media (max-width: 560px) { .specialty-card.featured { grid-column: span 1; } }
.specialty-card.featured .badge {
  position: absolute; top: 14px; right: 14px;
  background: var(--color-primary); color: #fff; font-size: 0.7rem; font-weight: 700;
  padding: 5px 11px; border-radius: 999px; letter-spacing: 0.03em;
}

/* ---------- Chambers preview ---------- */
.chamber-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
@media (max-width: 700px) { .chamber-grid { grid-template-columns: 1fr; } }
.chamber-card {
  background: var(--color-surface); border-radius: var(--radius-lg);
  padding: 32px; border: 1px solid var(--color-border); box-shadow: var(--shadow-sm);
  transition: box-shadow 200ms ease, transform 200ms ease;
}
.chamber-card:hover { box-shadow: var(--shadow-md); transform: translateY(-4px); }
.chamber-card h3 { font-size: 1.35rem; color: var(--color-primary-dark); margin-bottom: 14px; }
.chamber-card p { color: var(--color-text-secondary); margin-bottom: 6px; font-size: 0.96rem; }
.chamber-card .chamber-cta { margin-top: 18px; }

/* ---------- Reviews ---------- */
.reviews-wrap { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-bottom: 44px; }
@media (max-width: 900px) { .reviews-wrap { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .reviews-wrap { grid-template-columns: 1fr; } }
.review-card {
  background: var(--color-surface); border-radius: var(--radius-md); padding: 24px;
  border: 1px solid var(--color-border); box-shadow: var(--shadow-sm);
}
.review-stars { color: #E8A227; letter-spacing: 2px; margin-bottom: 10px; }
.review-card p.review-text { color: var(--color-text-secondary); font-size: 0.94rem; margin-bottom: 12px; }
.review-name { font-weight: 600; font-size: 0.9rem; }
.review-date { font-size: 0.78rem; color: var(--color-text-secondary); }
.empty-state { text-align: center; color: var(--color-text-secondary); padding: 40px 20px; font-size: 0.98rem; }

.review-form {
  background: var(--color-surface); border-radius: var(--radius-lg); padding: 36px;
  border: 1px solid var(--color-border); max-width: 560px; margin: 0 auto; box-shadow: var(--shadow-sm);
}
.star-rating { display: flex; gap: 6px; font-size: 1.6rem; color: #DCE3DF; margin-bottom: 4px; cursor: pointer; }
.star-rating .star.active, .star-rating .star:hover, .star-rating .star.hover { color: #E8A227; }

/* ---------- CTA banner ---------- */
.cta-banner {
  background: linear-gradient(120deg, var(--color-primary), var(--color-primary-dark));
  border-radius: var(--radius-lg); padding: 56px 40px; text-align: center;
  color: #fff; margin: 0 24px; max-width: calc(var(--container) - 48px); margin-inline: auto;
  position: relative; overflow: hidden;
}
.cta-banner h2 { color: #fff; font-size: clamp(1.4rem, 3vw, 2rem); margin-bottom: 24px; max-width: 640px; margin-inline: auto; }
.cta-banner .btn-primary { background: #fff; color: var(--color-primary-dark); }
.cta-banner .btn-primary:hover { background: #EAF3EC; }

/* ---------- Forms (generic) ---------- */
.form-field { margin-bottom: 20px; text-align: left; }
.form-field label { display: block; font-weight: 600; font-size: 0.9rem; margin-bottom: 7px; }
.form-field input, .form-field select, .form-field textarea {
  width: 100%; padding: 12px 14px; border-radius: var(--radius-sm);
  border: 1.5px solid var(--color-border); font-family: inherit; font-size: 0.96rem;
  background: var(--color-bg); color: var(--color-text);
  transition: border-color 150ms ease, box-shadow 150ms ease;
}
.form-field input:focus, .form-field select:focus, .form-field textarea:focus {
  outline: none; border-color: var(--color-primary); box-shadow: 0 0 0 3px rgba(30,122,76,0.14);
}
.form-field textarea { resize: vertical; min-height: 100px; }
.form-helper { font-size: 0.85rem; color: var(--color-primary-dark); margin-top: 8px; background: #EAF3EC; padding: 10px 14px; border-radius: var(--radius-sm); }
.form-note { font-size: 0.84rem; color: var(--color-text-secondary); margin-top: 18px; }

.success-box { text-align: center; padding: 20px 10px; }
.checkmark-circle {
  width: 68px; height: 68px; border-radius: 50%; background: var(--color-success);
  display: flex; align-items: center; justify-content: center; margin: 0 auto 18px;
}
.checkmark-circle svg { width: 34px; height: 34px; }
.checkmark-path {
  stroke-dasharray: 48; stroke-dashoffset: 48;
  animation: draw-check 500ms ease forwards 150ms;
}
@keyframes draw-check { to { stroke-dashoffset: 0; } }
.success-box.hidden, .form-el.hidden { display: none; }

/* ---------- Page hero (inner pages) ---------- */
.page-hero { padding: 56px 0 20px; text-align: center; }
.page-hero h1 { font-size: clamp(1.8rem, 3.6vw, 2.6rem); margin-bottom: 10px; }
.page-hero p { color: var(--color-text-secondary); max-width: 560px; margin: 0 auto; }

/* ---------- About page ---------- */
.about-top { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: 48px; align-items: center; }
@media (max-width: 860px) { .about-top { grid-template-columns: 1fr; } }
.about-photo { border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-md); }
.about-bio p { color: var(--color-text-secondary); font-size: 1.03rem; }

.timeline { position: relative; max-width: 680px; margin: 0 auto; padding-left: 28px; }
.timeline::before { content: ""; position: absolute; left: 6px; top: 6px; bottom: 6px; width: 2px; background: var(--color-border); }
.timeline-item { position: relative; padding-bottom: 26px; padding-left: 22px; }
.timeline-item::before {
  content: ""; position: absolute; left: -28px; top: 4px; width: 14px; height: 14px;
  border-radius: 50%; background: var(--color-primary); border: 3px solid #fff; box-shadow: 0 0 0 2px var(--color-border);
}
.timeline-item.current::before { background: var(--color-accent); }
.timeline-item p { font-weight: 500; }
.timeline-item.current p { color: var(--color-primary-dark); font-weight: 700; }

.condition-group { margin-bottom: 40px; }
.condition-group h3 { color: var(--color-primary-dark); margin-bottom: 16px; font-size: 1.15rem; }
.condition-chips { display: flex; flex-wrap: wrap; gap: 10px; }
.chip {
  background: var(--color-surface); border: 1px solid var(--color-border);
  padding: 9px 16px; border-radius: 999px; font-size: 0.9rem; color: var(--color-text);
  display: flex; align-items: center; gap: 8px;
}
.chip img { width: 22px; height: 22px; border-radius: 50%; object-fit: cover; }
.chip.highlight { border-color: var(--color-primary); background: #EAF3EC; font-weight: 600; color: var(--color-primary-dark); }

/* ---------- Contact page ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-bottom: 20px; }
@media (max-width: 760px) { .contact-grid { grid-template-columns: 1fr; } }
.contact-card {
  background: var(--color-surface); border-radius: var(--radius-lg); padding: 30px;
  border: 1px solid var(--color-border); box-shadow: var(--shadow-sm);
}
.contact-card h3 { color: var(--color-primary-dark); font-size: 1.25rem; margin-bottom: 14px; }
.contact-card address { font-style: normal; color: var(--color-text-secondary); margin-bottom: 10px; line-height: 1.5; }
.contact-card .call-btn { margin-top: 12px; }
.urgent-note {
  text-align: center; margin-top: 36px; padding: 18px; background: #EAF3EC;
  border-radius: var(--radius-sm); color: var(--color-primary-dark); font-weight: 500;
}

/* ---------- Blog page ---------- */
.filter-bar { display: flex; gap: 10px; justify-content: center; margin-bottom: 40px; flex-wrap: wrap; }
.filter-btn {
  padding: 10px 22px; border-radius: 999px; border: 1.5px solid var(--color-border);
  font-weight: 600; font-size: 0.9rem; color: var(--color-text-secondary);
  transition: all 180ms ease;
}
.filter-btn.active, .filter-btn:hover { background: var(--color-primary); border-color: var(--color-primary); color: #fff; }
.blog-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
@media (max-width: 900px) { .blog-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .blog-grid { grid-template-columns: 1fr; } }
.blog-card {
  background: var(--color-surface); border-radius: var(--radius-md); overflow: hidden;
  border: 1px solid var(--color-border); box-shadow: var(--shadow-sm);
  transition: transform 200ms ease, box-shadow 200ms ease;
}
.blog-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); }
.blog-thumb { position: relative; height: 170px; background: var(--color-border); }
.blog-thumb img { width: 100%; height: 100%; object-fit: cover; }
.blog-badge {
  position: absolute; top: 12px; left: 12px; background: rgba(255,255,255,0.94);
  padding: 5px 12px; border-radius: 999px; font-size: 0.76rem; font-weight: 700;
}
.blog-body { padding: 18px 20px 22px; }
.blog-date { font-size: 0.78rem; color: var(--color-text-secondary); margin-bottom: 6px; }
.blog-body h3 { font-size: 1.02rem; margin-bottom: 8px; }
.blog-excerpt { color: var(--color-text-secondary); font-size: 0.9rem; margin-bottom: 14px; }
.blog-body .btn { width: 100%; justify-content: center; }
.load-more-wrap { text-align: center; margin-top: 40px; }

/* ---------- Utility / AOS fallback ---------- */
[data-aos] { }
@media (prefers-reduced-motion: reduce) {
  * { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
}

/* focus visibility */
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: 2px solid var(--color-primary); outline-offset: 2px;
}
