/* Ma Print Gallery — Phase 2 stylesheet
   Mirrors the Phase 1 visual system: royal blue, orange/gold accent,
   white, light gray, dark charcoal. Plain CSS (no build step needed). */

:root {
  --royal: #123a8f;
  --royal-deep: #0c2a68;
  --accent: #f28c14;
  --gold: #f5b542;
  --white: #ffffff;
  --gray: #f3f5f9;
  --border: #e2e6ef;
  --charcoal: #1d2333;
  --muted: #5d6579;
  --radius: 14px;
  --shadow: 0 12px 32px rgba(18, 58, 143, 0.10);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 88px; }
body.mpg-body {
  margin: 0;
  overflow-x: hidden;
  font-family: "Noto Sans Bengali", "Inter", system-ui, -apple-system, sans-serif;
  color: var(--charcoal);
  background: var(--white);
  line-height: 1.75;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

.mpg-container { width: min(1200px, 92%); margin-inline: auto; }
.mpg-narrow { width: min(820px, 92%); }
.mpg-muted { color: var(--muted); }

/* Announcement bar */
.mpg-announce { background: var(--royal-deep); color: #eaf0ff; font-size: 0.85rem; }
.mpg-announce .mpg-container { display: flex; gap: 12px; justify-content: space-between; flex-wrap: wrap; padding: 8px 0; }

/* Navbar */
.mpg-nav { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,0.96); backdrop-filter: blur(8px); border-bottom: 1px solid var(--border); }
.mpg-nav.is-stuck { box-shadow: var(--shadow); }
.mpg-nav-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 12px 0; }
.mpg-logo-bn { font-weight: 700; font-size: 1.15rem; color: var(--royal); display: block; }
.mpg-logo-en { font-family: Inter, system-ui, sans-serif; font-size: 0.72rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--accent); }
.mpg-menu { display: flex; align-items: center; gap: 20px; font-size: 0.95rem; }
.mpg-menu a:hover { color: var(--royal); }
.mpg-burger { display: none; background: none; border: 0; padding: 10px; cursor: pointer; }
.mpg-burger span { display: block; width: 24px; height: 2px; background: var(--charcoal); margin: 5px 0; transition: 0.2s; }

/* Buttons */
.mpg-btn { display: inline-block; padding: 12px 22px; border-radius: 999px; font-weight: 600; font-size: 0.95rem; transition: transform .2s, box-shadow .2s, background .2s; min-height: 44px; }
.mpg-btn:hover { transform: translateY(-1px); }
.mpg-btn-accent { background: linear-gradient(135deg, var(--accent), var(--gold)); color: #241300; box-shadow: 0 10px 24px rgba(242,140,20,.28); }
.mpg-btn-ghost { border: 1px solid rgba(255,255,255,.7); color: #fff; }
.mpg-btn-light { background: #fff; color: var(--royal); }
.mpg-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.mpg-link { color: var(--royal); font-weight: 600; }

/* Hero */
.mpg-hero { position: relative; background: var(--royal-deep); color: #fff; overflow: hidden; }
.mpg-slides { position: relative; min-height: 520px; }
.mpg-slide { position: absolute; inset: 0; opacity: 0; transition: opacity .7s ease; display: flex; align-items: center; pointer-events: none; }
.mpg-slide.is-active { opacity: 1; pointer-events: auto; position: relative; }
.mpg-slide-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .38; }
.mpg-slide-body { position: relative; padding: 80px 0; max-width: 720px; }
.mpg-slide-body h1 { font-size: clamp(1.7rem, 4vw, 3rem); line-height: 1.45; margin: 14px 0; }
.mpg-badge { display: inline-block; padding: 6px 14px; border-radius: 999px; background: rgba(245,181,66,.18); color: var(--gold); font-size: .8rem; }
.mpg-badge-muted { background: var(--gray); color: var(--muted); }
.mpg-arrow { position: absolute; top: 50%; transform: translateY(-50%); z-index: 3; width: 44px; height: 44px; border-radius: 50%; border: 0; background: rgba(255,255,255,.18); color: #fff; font-size: 1.6rem; cursor: pointer; }
.mpg-prev { left: 12px; } .mpg-next { right: 12px; }
.mpg-dots { position: absolute; bottom: 18px; left: 50%; transform: translateX(-50%); display: flex; gap: 8px; z-index: 3; }
.mpg-dot { width: 10px; height: 10px; border-radius: 50%; border: 0; background: rgba(255,255,255,.4); cursor: pointer; }
.mpg-dot.is-active { background: var(--gold); width: 26px; border-radius: 999px; }

/* Sections */
.mpg-section { padding: 72px 0; }
.mpg-section-alt { background: var(--gray); }
.mpg-title { font-size: clamp(1.4rem, 2.6vw, 2.1rem); color: var(--royal); margin: 0 0 12px; }
.mpg-lead { max-width: 760px; color: var(--muted); margin-bottom: 28px; }
.mpg-grid { display: grid; gap: 20px; margin-top: 24px; }
.mpg-grid-3 { grid-template-columns: repeat(3, 1fr); }
.mpg-grid-4 { grid-template-columns: repeat(4, 1fr); }
.mpg-card { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 22px; transition: transform .2s, box-shadow .2s; }
.mpg-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.mpg-card h3 { font-size: 1.05rem; margin: 10px 0 6px; }
.mpg-card img { border-radius: 10px; aspect-ratio: 16/10; object-fit: cover; width: 100%; }
.mpg-card-center { text-align: center; }
.mpg-step { font-family: Inter, sans-serif; font-size: 1.6rem; font-weight: 700; color: var(--accent); }
.mpg-avatar { width: 100%; height: auto; aspect-ratio: 4/3; border-radius: 10px; object-fit: contain; object-position: center bottom; margin: 0 auto; background: var(--gray); }
.mpg-avatar-empty { background: var(--gray); border: 1px dashed var(--border); }

/* Portfolio */
.mpg-filters { display: flex; flex-wrap: wrap; gap: 10px; margin: 20px 0; }
.mpg-chip { border: 1px solid var(--border); background: #fff; border-radius: 999px; padding: 8px 18px; cursor: pointer; min-height: 40px; font: inherit; }
.mpg-chip.is-active { background: var(--royal); color: #fff; border-color: var(--royal); }
.mpg-gallery { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.mpg-tile { margin: 0; background: #fff; border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.mpg-tile img { aspect-ratio: 4/3; object-fit: cover; width: 100%; }
.mpg-tile figcaption { padding: 12px; font-size: .92rem; }

/* Stats */
.mpg-stats { background: var(--royal); color: #fff; }
.mpg-stats strong { display: block; font-family: Inter, sans-serif; font-size: 2.2rem; color: var(--gold); }
.mpg-stats .mpg-grid-4 { text-align: center; margin: 0; }

/* Chairman */
.mpg-chairman { display: grid; grid-template-columns: 260px 1fr; gap: 32px; align-items: center; }
.mpg-portrait { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: var(--radius); }
.mpg-chairman blockquote { margin: 16px 0 0; padding-left: 16px; border-left: 3px solid var(--accent); font-size: 1.05rem; }

/* Accordion */
.mpg-acc-item { background: #fff; border: 1px solid var(--border); border-radius: 12px; margin-bottom: 10px; overflow: hidden; }
.mpg-acc-head { width: 100%; text-align: right; display: flex; justify-content: space-between; gap: 12px; align-items: center; background: none; border: 0; padding: 16px 18px; font: inherit; cursor: pointer; text-align: start; }
.mpg-acc-body { max-height: 0; overflow: hidden; transition: max-height .3s ease; padding: 0 18px; }
.mpg-acc-item.is-open .mpg-acc-body { max-height: 400px; padding-bottom: 16px; }
.mpg-acc-item.is-open .mpg-acc-head span { transform: rotate(45deg); display: inline-block; }

/* CTA */
.mpg-cta { background: linear-gradient(135deg, var(--royal-deep), var(--royal)); color: #fff; padding: 64px 0; text-align: center; }
.mpg-cta h2 { font-size: clamp(1.3rem, 2.4vw, 2rem); margin-bottom: 22px; }
.mpg-cta .mpg-actions { justify-content: center; }

/* Contact */
.mpg-contact { display: grid; grid-template-columns: 1fr 1fr; gap: 36px; }
.mpg-form { display: grid; gap: 14px; background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 24px; }
.mpg-form label { display: grid; gap: 6px; font-size: .92rem; }
.mpg-form input, .mpg-form select, .mpg-form textarea { width: 100%; padding: 12px 14px; border: 1px solid var(--border); border-radius: 10px; font: inherit; min-height: 44px; }
.mpg-form input:focus, .mpg-form select:focus, .mpg-form textarea:focus { outline: 2px solid var(--royal); outline-offset: 1px; }
.mpg-hp { position: absolute; left: -9999px; opacity: 0; height: 0; }
.mpg-form-msg { min-height: 22px; font-size: .9rem; margin: 0; }
.mpg-form-msg.is-ok { color: #16794a; }
.mpg-form-msg.is-error { color: #b3261e; }

/* Map */
.mpg-map iframe { width: 100%; height: 380px; border: 0; display: block; }
.mpg-map-open { margin: 10px 0 0; text-align: right; }
.mpg-map-open a { font-size: 14px; font-weight: 700; color: var(--primary); text-decoration: none; }
.mpg-map-open a:hover { text-decoration: underline; }
.mpg-map-placeholder { height: 240px; display: grid; place-items: center; background: var(--gray); color: var(--muted); text-align: center; padding: 20px; }

/* Footer */
.mpg-footer { background: var(--charcoal); color: #cfd4e0; padding: 56px 0 0; }
.mpg-footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 28px; }
.mpg-footer h4 { color: #fff; margin: 0 0 12px; font-size: 1rem; }
.mpg-footer a { display: block; padding: 4px 0; color: #cfd4e0; }
.mpg-footer a:hover { color: var(--gold); }
.mpg-footer .mpg-logo-bn { color: #fff; }
.mpg-social { display: flex; gap: 14px; margin-top: 10px; }
.mpg-social a { display: inline-block; }
.mpg-copy { margin-top: 40px; border-top: 1px solid rgba(255,255,255,.12); padding: 18px 0; text-align: center; font-size: .85rem; }

/* Responsive */
@media (max-width: 1024px) {
  .mpg-grid-4, .mpg-gallery { grid-template-columns: repeat(2, 1fr); }
  .mpg-grid-3 { grid-template-columns: repeat(2, 1fr); }
  .mpg-footer-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 820px) {
  .mpg-burger { display: block; }
  .mpg-menu { position: fixed; inset: 64px 0 auto; flex-direction: column; align-items: stretch; gap: 0; background: #fff; border-bottom: 1px solid var(--border); padding: 12px 6%; display: none; }
  .mpg-menu.is-open { display: flex; }
  .mpg-menu a { padding: 12px 0; border-bottom: 1px solid var(--border); }
  .mpg-menu-cta { text-align: center; margin-top: 12px; border-bottom: 0; }
  .mpg-chairman, .mpg-contact { grid-template-columns: 1fr; }
  .mpg-slides { min-height: 460px; }
  .mpg-slide-body { padding: 60px 0; }
}
@media (max-width: 560px) {
  .mpg-grid-3, .mpg-grid-4, .mpg-gallery, .mpg-footer-grid { grid-template-columns: 1fr; }
  .mpg-section { padding: 52px 0; }
  .mpg-arrow { display: none; }
}

/* Phase 4: dynamic logo image + hero subtitle */
.mpg-logo { display:flex; align-items:center; gap:10px; }
.mpg-logo-img { height:44px; width:auto; display:block; }
.mpg-logo-text { display:flex; flex-direction:column; line-height:1.2; }
.mpg-logo-img--light { background:#fff; padding:5px 12px; border-radius:10px; margin-bottom:10px; }
.mpg-slide-sub { font-weight:600; opacity:.95; margin-bottom:4px; }

/* Phase 6 — quote form heading */
.mpg-form-title { font-size: 1.35rem; margin: 0 0 4px; color: var(--mpg-blue, #12327a); }

/* Announcement bar live clock */
.mpg-announce .mpg-clock { white-space: nowrap; opacity: 0.85; }
