/* ============ Colour & type tokens ============ */
:root {
  --white:      #FFFFFF;
  --blush:      #FDF1F4;   /* soft pink background */
  --rose-200:   #F5D3DD;   /* borders, dividers */
  --rose-400:   #E39AB0;   /* light accent */
  --rose-700:   #A8325E;   /* main accent (buttons, links) */
  --rose-800:   #86244A;   /* hover */
  --ink:        #3A1F2B;   /* headings */
  --text:       #4E3A43;   /* body text */
  --muted:      #6F5963;

  --font-head: "Marcellus", Georgia, "Times New Roman", serif;
  --font-body: "Nunito Sans", "Hind Siliguri", "Segoe UI", system-ui, sans-serif;
  --font-bangla: "Hind Siliguri", "Nunito Sans", system-ui, sans-serif;

  --radius-lg: 22px;
  --radius-md: 14px;
  --header-h: 76px;
}

/* ============ Base ============ */
*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); }

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.65;
  color: var(--text);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }

h1, h2, h3 { font-family: var(--font-head); font-weight: 400; color: var(--ink); line-height: 1.2; margin: 0; }
h3 { font-family: var(--font-body); font-weight: 700; }

/* Bengali: Marcellus has no Bengali glyphs, so use a Bengali display font */
html[lang="bn"] h1, html[lang="bn"] h2,
html[lang="bn"] .chamber h3, html[lang="bn"] .qual-card dt { font-family: var(--font-bangla); font-weight: 600; }
p  { margin: 0; }

a { color: var(--rose-700); }
a:hover { color: var(--rose-800); }

:focus-visible { outline: 3px solid var(--rose-400); outline-offset: 3px; border-radius: 6px; }

.container { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 24px; }
.section { padding: 88px 0; }
.ph { color: var(--rose-700); font-weight: 600; }   /* placeholder text – remove when filled */

svg { width: 22px; height: 22px; flex-shrink: 0; fill: none; stroke: var(--rose-700); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

/* ============ Buttons ============ */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 48px; padding: 12px 26px;
  border-radius: 999px; font-weight: 700; font-size: 16px;
  text-decoration: none; transition: background .2s, color .2s;
}
.btn-sm { min-height: 44px; padding: 10px 20px; font-size: 15px; }
.btn-primary { background: var(--rose-700); color: var(--white); }
.btn-primary:hover { background: var(--rose-800); color: var(--white); }
.btn-outline { border: 2px solid var(--rose-700); color: var(--rose-700); }
.btn-outline:hover { background: var(--blush); }
.btn-light { background: var(--white); color: var(--rose-800); }
.btn-light:hover { background: var(--blush); color: var(--rose-800); }

/* ============ Header ============ */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.96);
  border-bottom: 1px solid var(--rose-200);
  backdrop-filter: blur(6px);
}
.header-inner { height: var(--header-h); display: flex; align-items: center; justify-content: space-between; gap: 16px; }

.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; min-width: 0; }
.brand-mark {
  width: 44px; height: 44px; border-radius: 50%; flex-shrink: 0;
  background: var(--rose-700); color: var(--white);
  display: grid; place-items: center; font-family: var(--font-head); font-size: 17px;
}
.brand-text { display: flex; flex-direction: column; min-width: 0; line-height: 1.25; }
.brand-text strong { color: var(--ink); font-size: 16px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.brand-text small { color: var(--muted); font-size: 13px; }

.brand { order: 1; }
.main-nav { display: flex; align-items: center; gap: 28px; order: 2; }
.header-actions { order: 3; }
.main-nav a:not(.btn) { color: var(--ink); text-decoration: none; font-weight: 600; font-size: 15px; }
.main-nav a:not(.btn):hover, .main-nav a.active { color: var(--rose-700); }

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

.lang-toggle {
  min-height: 40px; padding: 8px 16px;
  border: 1.5px solid var(--rose-200); border-radius: 999px;
  background: var(--white); color: var(--rose-700);
  font-family: var(--font-body); font-weight: 700; font-size: 14px;
  cursor: pointer; transition: background .2s, border-color .2s;
  white-space: nowrap;
}
.lang-toggle:hover { background: var(--blush); border-color: var(--rose-400); }

.menu-toggle {
  display: none; width: 46px; height: 46px; border: 1px solid var(--rose-200);
  border-radius: 12px; background: var(--white); cursor: pointer;
  flex-direction: column; align-items: center; justify-content: center; gap: 5px;
}
.menu-toggle span { width: 20px; height: 2px; background: var(--ink); border-radius: 2px; transition: transform .25s, opacity .2s; }
.menu-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.menu-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ============ Hero ============ */
.hero { background: linear-gradient(180deg, var(--blush) 0%, var(--white) 100%); padding: 72px 0 88px; }
.hero-grid { display: grid; grid-template-columns: 1.15fr 1fr; gap: 56px; align-items: center; }
.hero-text { display: flex; flex-direction: column; gap: 18px; }
.hero-role { color: var(--rose-700); font-weight: 700; font-size: 16px; }
.hero h1 { font-size: clamp(38px, 5.4vw, 64px); }
.hero-degree { font-weight: 800; color: var(--ink); font-size: 19px; }
.hero-lead { font-size: 18px; max-width: 34em; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; padding-top: 8px; }

.hero-photo { position: relative; display: flex; justify-content: center; }
.hero-photo img,
.photo-placeholder {
  width: 100%; max-width: 420px; aspect-ratio: 4 / 5;
  border-radius: 210px 210px var(--radius-lg) var(--radius-lg);
  object-fit: cover;
}
.photo-placeholder {
  background: var(--rose-200); color: var(--rose-800);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; font-weight: 700;
}
.photo-placeholder svg { width: 70px; height: 70px; stroke: var(--rose-800); stroke-width: 1.3; }

.experience-badge {
  position: absolute; left: 0; bottom: 28px;
  display: flex; align-items: center; gap: 12px;
  background: var(--white); border: 1px solid var(--rose-200);
  border-radius: var(--radius-md); padding: 14px 20px;
  box-shadow: 0 12px 30px rgba(168, 50, 94, .12);
}
.experience-badge strong { font-family: var(--font-head); font-size: 38px; color: var(--rose-700); font-weight: 400; }
.experience-badge span { font-size: 14px; line-height: 1.35; color: var(--text); }

/* ============ About ============ */
.about { background: var(--white); border-top: 1px solid var(--rose-200); }
.about-grid { display: grid; grid-template-columns: 1fr 1.6fr; gap: 56px; }
.about h2 { font-size: clamp(30px, 3.4vw, 40px); }
.about-text { display: flex; flex-direction: column; gap: 18px; font-size: 18px; }

/* ============ Section heads ============ */
.section-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; margin-bottom: 40px; flex-wrap: wrap; }
.section-head h2 { font-size: clamp(30px, 3.6vw, 42px); }
.section-head p { color: var(--muted); max-width: 30em; }

/* ============ Expertise ============ */
.expertise { background: var(--blush); }
.expertise-list {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
  border-top: 1px solid var(--rose-200); border-left: 1px solid var(--rose-200);
  background: var(--white); border-radius: var(--radius-lg); overflow: hidden;
}
.expertise-list li {
  display: flex; gap: 16px; padding: 30px 28px;
  border-right: 1px solid var(--rose-200); border-bottom: 1px solid var(--rose-200);
}
.expertise-list svg { width: 30px; height: 30px; margin-top: 2px; }
.expertise-list h3 { font-size: 19px; margin-bottom: 6px; }
.expertise-list p { font-size: 16px; color: var(--muted); }

/* ============ Qualifications ============ */
.qual-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.qual-card { border: 1px solid var(--rose-200); border-radius: var(--radius-lg); padding: 36px; }
.qual-card h2 { font-size: 28px; margin-bottom: 20px; }
.qual-card dl { margin: 0; display: flex; flex-direction: column; }
.qual-card dl > div { padding: 16px 0; border-top: 1px solid var(--rose-200); }
.qual-card dt { font-family: var(--font-head); font-size: 23px; color: var(--ink); }
.qual-card dd { margin: 4px 0 0; }
.qual-meta { display: inline-block; margin-top: 4px; color: var(--muted); font-size: 15px; }

/* ============ Chambers ============ */
.chambers { background: var(--blush); }
.chamber-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.chamber {
  background: var(--white); border: 1px solid var(--rose-200);
  border-radius: var(--radius-lg); padding: 34px;
  display: flex; flex-direction: column; gap: 18px;
}
.chamber h3 { font-family: var(--font-head); font-weight: 400; font-size: 27px; }
.chamber ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 14px; }
.chamber li { display: flex; gap: 12px; align-items: flex-start; }
.chamber li svg { margin-top: 3px; }
.map-link { font-weight: 700; }

/* ============ Blog ============ */
.blog { background: var(--white); }
.blog-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.post-card {
  display: flex; flex-direction: column; gap: 12px;
  background: var(--white); border: 1px solid var(--rose-200);
  border-radius: var(--radius-lg); padding: 30px 28px;
  transition: box-shadow .2s, transform .2s;
}
.post-card:hover { box-shadow: 0 14px 34px rgba(168, 50, 94, .12); transform: translateY(-3px); }
.post-card-meta { display: flex; flex-wrap: wrap; gap: 8px 12px; align-items: center; font-size: 13px; }
.post-cat { background: var(--blush); color: var(--rose-700); font-weight: 700; padding: 4px 12px; border-radius: 999px; }
.post-date { color: var(--muted); }
.post-card h3 { font-size: 21px; line-height: 1.3; }
.post-card-excerpt { color: var(--muted); font-size: 16px; }
.post-card-link {
  margin-top: auto; align-self: flex-start;
  background: none; border: none; padding: 6px 0 0; cursor: pointer;
  font-family: var(--font-body); font-weight: 700; font-size: 16px; color: var(--rose-700);
}
.post-card-link:hover { color: var(--rose-800); }
.blog-empty { color: var(--muted); }

/* Blog pagination */
.blog-pagination { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 8px; margin-top: 40px; }
.blog-pagination:empty { margin-top: 0; }
.page-btn {
  min-width: 44px; min-height: 44px; padding: 8px 14px;
  border: 1.5px solid var(--rose-200); border-radius: 12px;
  background: var(--white); color: var(--ink);
  font-family: var(--font-body); font-weight: 700; font-size: 15px;
  cursor: pointer; transition: background .2s, border-color .2s, color .2s;
}
.page-btn:hover:not(:disabled) { background: var(--blush); border-color: var(--rose-400); }
.page-btn.active { background: var(--rose-700); border-color: var(--rose-700); color: var(--white); }
.page-btn:disabled { opacity: .45; cursor: default; }
.page-nav { color: var(--rose-700); }

/* Blog post modal */
body.modal-open { overflow: hidden; }
.post-modal { position: fixed; inset: 0; z-index: 100; display: flex; align-items: center; justify-content: center; padding: 24px; }
.post-modal[hidden] { display: none; }
.post-modal-backdrop { position: absolute; inset: 0; background: rgba(58, 31, 43, .55); backdrop-filter: blur(2px); }
.post-modal-panel {
  position: relative; z-index: 1;
  width: 100%; max-width: 720px; max-height: 88vh; overflow-y: auto;
  background: var(--white); border-radius: var(--radius-lg);
  padding: 44px 48px; box-shadow: 0 30px 80px rgba(58, 31, 43, .3);
}
.post-modal-close {
  position: absolute; top: 16px; right: 18px;
  width: 40px; height: 40px; border: none; border-radius: 50%;
  background: var(--blush); color: var(--rose-800);
  font-size: 26px; line-height: 1; cursor: pointer;
}
.post-modal-close:hover { background: var(--rose-200); }
.post-meta { color: var(--rose-700); font-weight: 700; font-size: 14px; margin-bottom: 8px; }
.post-modal-panel h2 { font-size: clamp(26px, 3.4vw, 34px); margin-bottom: 20px; }
.post-body { display: flex; flex-direction: column; gap: 16px; }
.post-body h3 { font-size: 19px; margin-top: 6px; }
.post-body ul { margin: 0; padding-left: 22px; display: flex; flex-direction: column; gap: 8px; }
.post-body a { font-weight: 700; }

/* ============ Contact ============ */
.contact-box {
  background: var(--rose-700); color: var(--white);
  border-radius: 28px; padding: 56px;
  display: flex; align-items: center; justify-content: space-between; gap: 32px;
}
.contact-box h2 { color: var(--white); font-size: clamp(28px, 3.6vw, 40px); margin-bottom: 10px; }
.contact-box p { color: #FBE3EA; font-size: 18px; }
.contact-box .btn { flex-shrink: 0; }

/* ============ Footer ============ */
.site-footer { border-top: 1px solid var(--rose-200); padding: 28px 0 36px; font-size: 14px; color: var(--muted); }
.footer-inner { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }

/* ============ Tablet (≤ 960px) ============ */
@media (max-width: 960px) {
  .menu-toggle { display: flex; }

  .main-nav {
    position: fixed; top: var(--header-h); left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--white); border-bottom: 1px solid var(--rose-200);
    padding: 8px 24px 24px;
    box-shadow: 0 16px 30px rgba(58, 31, 43, .08);
    transform: translateY(-8px); opacity: 0; visibility: hidden;
    transition: opacity .2s, transform .2s, visibility .2s;
  }
  .main-nav.open { transform: none; opacity: 1; visibility: visible; }
  .main-nav a:not(.btn) { padding: 14px 0; border-bottom: 1px solid var(--rose-200); font-size: 17px; }
  .main-nav .btn { margin-top: 16px; }

  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .hero-photo { order: -1; }
  .hero-photo img, .photo-placeholder { max-width: 320px; }
  .experience-badge { left: calc(50% - 200px); }

  .about-grid { grid-template-columns: 1fr; gap: 20px; }
  .expertise-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .blog-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .contact-box { flex-direction: column; align-items: flex-start; padding: 40px; }
}

/* ============ Mobile (≤ 600px) ============ */
@media (max-width: 600px) {
  :root { --header-h: 68px; }
  body { font-size: 16px; }
  .container { padding: 0 18px; }
  .section { padding: 60px 0; }

  .brand-mark { width: 40px; height: 40px; font-size: 15px; }
  .brand-text strong { font-size: 14px; }
  .brand-text small { font-size: 12px; }

  .hero { padding: 40px 0 56px; }
  .hero-text { text-align: center; align-items: center; }
  .hero-lead { font-size: 16px; }
  .hero-actions { flex-direction: column; width: 100%; }
  .hero-actions .btn { width: 100%; }
  .hero-photo img, .photo-placeholder { max-width: 260px; }
  .experience-badge { position: static; transform: none; margin-top: -36px; }
  .hero-photo { flex-direction: column; align-items: center; }

  .about-text { font-size: 16px; }
  .expertise-list { grid-template-columns: 1fr; }
  .expertise-list li { padding: 22px 20px; }

  .qual-grid, .chamber-grid, .blog-grid { grid-template-columns: 1fr; }
  .qual-card, .chamber { padding: 26px 22px; }
  .post-modal { padding: 0; }
  .post-modal-panel { max-height: 100vh; border-radius: 0; padding: 60px 24px 40px; }

  .contact-box { padding: 32px 24px; border-radius: 22px; }
  .contact-box .btn { width: 100%; }

  .footer-inner { flex-direction: column; text-align: center; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
