/* ============================================================
   DR. PEU — SHARED DESIGN SYSTEM
   One stylesheet for every page. Edit design tokens in :root.
   ============================================================ */

/* ── DESIGN TOKENS ── */
:root {
  /* Brand palette (built around the Dr. Peu logo blue) */
  --blue:        #4B6BF5;
  --blue-dark:   #2D44B8;
  --blue-light:  #6B85FF;
  --blue-pale:   #EEF1FF;
  --blue-mist:   #F4F6FF;
  --blue-mid:    #C7D0FF;

  --ink:         #0B1733;   /* near-black navy for text */
  --ink-soft:    #34426B;
  --ink-faint:   #6B7A99;
  --line:        #E6EAF6;

  --white:       #FFFFFF;
  --paper:       #F8F9FF;
  --gold:        #C9A227;
  --green:       #1FA971;
  --red:         #E5484D;

  /* Typography */
  --font-display: 'Fraunces', Georgia, serif;
  --font-body:    'Plus Jakarta Sans', system-ui, sans-serif;
  --font-bn:      'Hind Siliguri', sans-serif;

  /* Depth */
  --sh-sm: 0 2px 10px rgba(11,23,51,0.05);
  --sh-md: 0 8px 30px rgba(75,107,245,0.10);
  --sh-lg: 0 20px 60px rgba(11,23,51,0.14);
  --sh-blue: 0 10px 30px rgba(75,107,245,0.30);

  /* Geometry */
  --r-sm: 10px;
  --r-md: 16px;
  --r-lg: 24px;
  --r-pill: 999px;

  --maxw: 1180px;
  --nav-h: 74px;

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* ── RESET ── */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--white);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
.bn { font-family: var(--font-bn); }

/* ── LANGUAGE VISIBILITY ──
   Default = English. body.lang-bn flips to Bangla. */
.bn-inline, .bn-content { display: none; }
.lang-bn .en-inline, .lang-bn .en-content { display: none; }
.lang-bn .bn-inline { display: inline; }
.lang-bn .bn-content { display: block; }

/* ── UTILITIES ── */
.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
.eyebrow {
  display: inline-block;
  font-size: 12px; font-weight: 700;
  letter-spacing: 2.5px; text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 14px;
}
.h-section {
  font-family: var(--font-display);
  font-size: clamp(28px, 3.6vw, 44px);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin-bottom: 16px;
}
.lead {
  font-size: clamp(15px, 1.4vw, 17px);
  color: var(--ink-soft);
  max-width: 600px;
  line-height: 1.7;
}
section { padding: clamp(56px, 8vw, 100px) 0; }

/* ── SCROLL REVEAL ── */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
  will-change: opacity, transform;
}
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* ── BUTTONS ── */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-body);
  font-weight: 600; font-size: 15px;
  padding: 14px 26px;
  border-radius: var(--r-pill);
  text-decoration: none;
  border: none; cursor: pointer;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), background 0.25s;
  white-space: nowrap;
}
.btn-primary { background: var(--blue); color: #fff; box-shadow: var(--sh-blue); }
.btn-primary:hover { background: var(--blue-dark); transform: translateY(-2px); box-shadow: 0 16px 36px rgba(75,107,245,0.4); }
.btn-ghost { background: transparent; color: var(--ink); border: 1.5px solid var(--line); }
.btn-ghost:hover { border-color: var(--blue); color: var(--blue); transform: translateY(-2px); }
.btn-light { background: rgba(255,255,255,0.12); color: #fff; border: 1.5px solid rgba(255,255,255,0.3); backdrop-filter: blur(6px); }
.btn-light:hover { background: rgba(255,255,255,0.2); border-color: #fff; transform: translateY(-2px); }

/* ── HEADER / NAV ── */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 900;
  height: var(--nav-h);
  display: flex; align-items: center;
  background: rgba(255,255,255,0.82);
  backdrop-filter: blur(16px) saturate(140%);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  border-bottom: 1px solid rgba(230,234,246,0.8);
  transition: box-shadow 0.3s;
}
.site-header.scrolled { box-shadow: var(--sh-sm); }
.nav-inner { display: flex; align-items: center; width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; gap: 20px; }
.brand { display: flex; align-items: center; gap: 11px; text-decoration: none; flex-shrink: 0; }
.brand-mark {
  width: 42px; height: 42px; border-radius: 12px;
  background: linear-gradient(135deg, var(--blue), var(--blue-light));
  display: grid; place-items: center;
  color: #fff; font-family: var(--font-display); font-weight: 600; font-size: 20px;
  box-shadow: var(--sh-blue);
}
.brand-text { font-family: var(--font-display); font-weight: 600; font-size: 17px; line-height: 1.05; color: var(--ink); letter-spacing: -0.01em; }
.brand-text small { display: block; font-family: var(--font-body); font-weight: 500; font-size: 10.5px; letter-spacing: 0.5px; color: var(--ink-faint); text-transform: uppercase; margin-top: 2px; }
.nav-links { display: flex; align-items: center; gap: 4px; margin-left: auto; list-style: none; }
.nav-links a { text-decoration: none; font-size: 14.5px; font-weight: 500; color: var(--ink-soft); padding: 8px 14px; border-radius: var(--r-pill); transition: color 0.2s, background 0.2s; }
.nav-links a:hover, .nav-links a.active { color: var(--blue); background: var(--blue-pale); }
.nav-actions { display: flex; align-items: center; gap: 10px; margin-left: 8px; }

.lang-btn {
  display: inline-flex; align-items: center; gap: 6px;
  background: #fff; border: 1.5px solid var(--line);
  color: var(--ink-soft); font-family: var(--font-body);
  font-weight: 600; font-size: 13px;
  padding: 7px 13px; border-radius: var(--r-pill); cursor: pointer;
  transition: all 0.2s;
}
.lang-btn:hover { border-color: var(--blue); color: var(--blue); }

.menu-toggle { display: none; background: none; border: none; cursor: pointer; padding: 8px; flex-shrink: 0; }
.menu-toggle span { display: block; width: 24px; height: 2px; background: var(--ink); border-radius: 2px; transition: 0.3s; }
.menu-toggle span + span { margin-top: 6px; }

/* Mobile nav drawer */
.mobile-drawer { position: fixed; inset: 0; z-index: 950; visibility: hidden; }
.mobile-drawer.open { visibility: visible; }
.drawer-scrim { position: absolute; inset: 0; background: rgba(11,23,51,0.5); opacity: 0; transition: opacity 0.3s; }
.mobile-drawer.open .drawer-scrim { opacity: 1; }
.drawer-panel {
  position: absolute; top: 0; right: 0; bottom: 0;
  width: min(82vw, 340px);
  background: #fff; padding: 28px 24px;
  transform: translateX(100%); transition: transform 0.36s var(--ease);
  display: flex; flex-direction: column; gap: 6px;
  box-shadow: var(--sh-lg);
}
.mobile-drawer.open .drawer-panel { transform: none; }
.drawer-panel a { text-decoration: none; font-size: 17px; font-weight: 600; color: var(--ink); padding: 14px 12px; border-radius: var(--r-sm); transition: background 0.2s; }
.drawer-panel a:hover { background: var(--blue-pale); color: var(--blue); }
.drawer-close { align-self: flex-end; background: none; border: none; font-size: 26px; color: var(--ink-faint); cursor: pointer; margin-bottom: 8px; }

/* ── FLOATING CALL ── */
.float-call {
  position: fixed; bottom: 22px; right: 22px; z-index: 800;
  display: inline-flex; align-items: center; gap: 9px;
  background: var(--green); color: #fff; text-decoration: none;
  font-weight: 700; font-size: 15px;
  padding: 14px 22px; border-radius: var(--r-pill);
  box-shadow: 0 10px 30px rgba(31,169,113,0.4);
  transition: transform 0.25s var(--ease);
}
.float-call:hover { transform: translateY(-3px) scale(1.03); }
.float-call svg { width: 19px; height: 19px; }

/* ── FOOTER ── */
.site-footer { background: var(--ink); color: rgba(255,255,255,0.65); padding: 56px 0 32px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; margin-bottom: 40px; }
.footer-brand { display: flex; align-items: center; gap: 11px; margin-bottom: 16px; }
.footer-brand .brand-mark { box-shadow: none; }
.footer-brand-text { font-family: var(--font-display); font-weight: 600; font-size: 18px; color: #fff; }
.site-footer p { font-size: 14px; line-height: 1.7; }
.footer-col h4 { color: #fff; font-size: 14px; font-weight: 700; letter-spacing: 0.5px; margin-bottom: 16px; text-transform: uppercase; }
.footer-col a { display: block; text-decoration: none; color: rgba(255,255,255,0.6); font-size: 14px; padding: 5px 0; transition: color 0.2s; }
.footer-col a:hover { color: var(--blue-light); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.12); padding-top: 24px; display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between; align-items: center; font-size: 13px; }
.footer-bottom a { color: rgba(255,255,255,0.7); text-decoration: none; }
.footer-bottom a:hover { color: #fff; }

/* ── COOKIE CONSENT ── */
.cookie-bar {
  position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 1000;
  max-width: 560px; margin: 0 auto;
  background: #fff; border: 1px solid var(--line);
  border-radius: var(--r-md); box-shadow: var(--sh-lg);
  padding: 20px 22px;
  transform: translateY(150%); transition: transform 0.5s var(--ease);
}
.cookie-bar.show { transform: none; }
.cookie-bar p { font-size: 13.5px; color: var(--ink-soft); margin-bottom: 14px; line-height: 1.6; }
.cookie-bar a { color: var(--blue); }
.cookie-actions { display: flex; gap: 10px; }
.cookie-actions .btn { padding: 10px 20px; font-size: 14px; flex: 1; justify-content: center; }

/* ── PAGE HERO (sub-pages) ── */
.page-hero {
  margin-top: var(--nav-h);
  padding: clamp(48px, 7vw, 84px) 0 clamp(40px, 5vw, 56px);
  background:
    radial-gradient(1200px 400px at 80% -20%, var(--blue-pale), transparent),
    var(--blue-mist);
  border-bottom: 1px solid var(--line);
}
.crumb { font-size: 13px; color: var(--ink-faint); margin-bottom: 18px; }
.crumb a { color: var(--blue); text-decoration: none; }
.crumb a:hover { text-decoration: underline; }
.page-hero h1 { font-family: var(--font-display); font-size: clamp(30px, 4.5vw, 50px); font-weight: 600; letter-spacing: -0.02em; line-height: 1.1; color: var(--ink); margin-bottom: 14px; }
.page-hero p { font-size: 16px; color: var(--ink-soft); max-width: 620px; }

/* ── RESPONSIVE NAV ── */
@media (max-width: 940px) {
  .nav-links { display: none; }
  .menu-toggle { display: block; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
}
@media (max-width: 600px) {
  .float-call { padding: 12px 18px; font-size: 14px; }
  .cookie-actions { flex-direction: column; }
}
