/* ===========================================================
   BLCC — Bangladesh Language and Cultural Center
   Design system: warm editorial palette inspired by the
   Bangladesh flag (deep terracotta red + forest green),
   Fraunces (display serif) + Inter (body sans).
   =========================================================== */

:root {
  --color-bg: #fbf7ef;
  --color-bg-alt: #f3ecdc;
  --color-surface: #ffffff;
  --color-text: #2a211c;
  --color-text-muted: #6b5d53;
  --color-primary: #b8382b;
  --color-primary-dark: #8f2a20;
  --color-primary-soft: #f4e1dc;
  --color-secondary: #1f5c46;
  --color-secondary-soft: #dfe9e2;
  --color-accent: #d9a441;
  --color-accent-soft: #f6e9cd;
  --color-border: #e8dfd0;

  --font-display: "Fraunces", "Georgia", serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  --container-w: 1180px;
  --radius-sm: 10px;
  --radius-md: 18px;
  --radius-lg: 28px;
  --shadow-sm: 0 2px 10px rgba(42, 33, 28, 0.06);
  --shadow-md: 0 12px 32px rgba(42, 33, 28, 0.10);
  --shadow-lg: 0 24px 60px rgba(42, 33, 28, 0.16);

  --space-section: clamp(4rem, 8vw, 7.5rem);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}
body {
  margin: 0;
  background: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-body);
  font-size: 1.05rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.12;
  margin: 0 0 0.6em;
  color: var(--color-text);
}
p { margin: 0 0 1em; }
.container {
  width: 100%;
  max-width: var(--container-w);
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* ---------- Typography scale ---------- */
.eyebrow {
  display: inline-block;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.8rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-primary);
  margin-bottom: 0.9rem;
}
h1 { font-size: clamp(2.6rem, 5.5vw, 4.4rem); letter-spacing: -0.01em; }
h2.section-title { font-size: clamp(2rem, 4vw, 2.9rem); }
h3 { font-size: 1.3rem; }
.lead {
  font-size: clamp(1.05rem, 1.4vw, 1.25rem);
  color: var(--color-text-muted);
}
.section-head { max-width: 640px; margin-bottom: 3rem; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 0.85rem 1.7rem;
  border-radius: 999px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, color 0.2s ease;
}
.btn-primary {
  background: var(--color-primary);
  color: #fff;
  box-shadow: var(--shadow-sm);
}
.btn-primary:hover { background: var(--color-primary-dark); transform: translateY(-2px); box-shadow: var(--shadow-md); }
.btn-ghost {
  background: transparent;
  color: var(--color-text);
  border-color: var(--color-border);
}
.btn-ghost:hover { border-color: var(--color-primary); color: var(--color-primary); }
.btn-sm { padding: 0.6rem 1.2rem; font-size: 0.85rem; }

/* ---------- Header / Nav ---------- */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 1.1rem 0;
  transition: background 0.3s ease, box-shadow 0.3s ease, padding 0.3s ease;
}
.site-header.scrolled {
  background: rgba(251, 247, 239, 0.9);
  backdrop-filter: blur(10px);
  box-shadow: var(--shadow-sm);
  padding: 0.7rem 0;
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.brand { display: flex; align-items: center; }
.brand img { height: 42px; width: auto; transition: height 0.3s ease; }
.site-header.scrolled .brand img { height: 36px; }
.nav-links {
  display: flex;
  align-items: center;
  gap: 2rem;
}
.nav-links a {
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--color-text);
  position: relative;
  padding: 0.25rem 0;
}
.nav-links a::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -2px;
  height: 2px;
  background: var(--color-primary);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s ease;
}
.nav-links a:hover::after { transform: scaleX(1); }
.nav-cta { display: none; }
.nav-toggle {
  display: none;
  width: 42px; height: 42px;
  border-radius: 50%;
  border: 1px solid var(--color-border);
  background: var(--color-surface);
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 110;
}
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after {
  content: "";
  display: block;
  width: 18px; height: 2px;
  background: var(--color-text);
  position: relative;
  transition: transform 0.25s ease, opacity 0.25s ease;
}
.nav-toggle span::before { position: absolute; top: -6px; }
.nav-toggle span::after { position: absolute; top: 6px; }
.nav-toggle.active span { background: transparent; }
.nav-toggle.active span::before { transform: translateY(6px) rotate(45deg); }
.nav-toggle.active span::after { transform: translateY(-6px) rotate(-45deg); }

@media (max-width: 900px) {
  .nav-links {
    position: fixed;
    inset: 0;
    background: var(--color-bg);
    flex-direction: column;
    justify-content: center;
    gap: 1.6rem;
    transform: translateX(100%);
    transition: transform 0.35s ease;
  }
  .nav-links.open { transform: translateX(0); }
  .nav-links a { font-size: 1.3rem; }
  .nav-toggle { display: flex; }
}

/* ---------- Hero ---------- */
.hero {
  padding: clamp(7rem, 14vw, 10rem) 0 5rem;
  overflow: hidden;
}
.hero .container {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 3rem;
  align-items: center;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  padding: 0.45rem 1rem;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--color-secondary);
  margin-bottom: 1.5rem;
}
.hero-badge .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--color-accent); }
.hero h1 span.hl {
  color: var(--color-primary);
  font-style: italic;
}
.hero-actions { display: flex; align-items: center; gap: 1.2rem; margin-top: 2.2rem; flex-wrap: wrap; }
.hero-actions .muted-link { font-weight: 600; font-size: 0.92rem; border-bottom: 2px solid var(--color-accent); }

.hero-visual { position: relative; height: 100%; min-height: 380px; }
.hero-visual .photo-main {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  height: 420px;
}
.hero-visual .photo-main img { height: 100%; width: 100%; object-fit: cover; }
.hero-visual .photo-card {
  position: absolute;
  bottom: -2rem;
  left: -2.2rem;
  width: 46%;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  border: 6px solid var(--color-bg);
}
.hero-visual .photo-card img { width: 100%; aspect-ratio: 4/3; object-fit: cover; }
.hero-visual .stat-chip {
  position: absolute;
  top: -1.6rem;
  right: -1rem;
  background: var(--color-secondary);
  color: #fff;
  padding: 1rem 1.3rem;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  text-align: center;
  line-height: 1.1;
}
.hero-visual .stat-chip strong { display: block; font-family: var(--font-display); font-size: 1.7rem; }
.hero-visual .stat-chip span { font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.08em; opacity: 0.85; }

@media (max-width: 900px) {
  .hero .container { grid-template-columns: 1fr; }
  .hero-visual { order: -1; margin-bottom: 3rem; min-height: unset; }
  .hero-visual .photo-card { left: 0; }
  .hero-visual .stat-chip { right: 0; }
}

/* ---------- Sections ---------- */
section { padding: var(--space-section) 0; }
.bg-alt { background: var(--color-bg-alt); }
.bg-surface { background: var(--color-surface); }

/* ---------- Feature cards ---------- */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.75rem;
}
.feature-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 2rem 1.75rem;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.feature-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.icon-badge {
  width: 56px; height: 56px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 1.25rem;
}
.icon-badge img { width: 26px; height: 26px; object-fit: contain; }
.icon-badge.tone-red { background: var(--color-primary-soft); }
.icon-badge.tone-green { background: var(--color-secondary-soft); }
.icon-badge.tone-gold { background: var(--color-accent-soft); }
.icon-badge.tone-plum { background: #e8e5f5; }
.feature-card h4 { font-family: var(--font-body); font-size: 1.05rem; font-weight: 700; margin-bottom: 0.5rem; }
.feature-card p { color: var(--color-text-muted); font-size: 0.95rem; margin: 0; }

@media (max-width: 800px) { .feature-grid { grid-template-columns: 1fr; } }

/* ---------- Split (image + text) ---------- */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}
.split.reverse .split-media { order: 2; }
.split-media img {
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  width: 100%;
  aspect-ratio: 4/3.1;
  object-fit: cover;
}
.stat-row { display: flex; gap: 2.5rem; margin-top: 2rem; flex-wrap: wrap; }
.stat-row .stat strong {
  display: block;
  font-family: var(--font-display);
  font-size: 2.4rem;
  color: var(--color-primary);
  line-height: 1;
}
.stat-row .stat span { font-size: 0.85rem; color: var(--color-text-muted); }
.pill-tag {
  position: absolute;
  background: var(--color-surface);
  box-shadow: var(--shadow-md);
  border-radius: 999px;
  padding: 0.6rem 1.1rem;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--color-secondary);
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}
.split-media { position: relative; }
.split-media .pill-tag { bottom: -1rem; right: 1.5rem; }

@media (max-width: 900px) {
  .split, .split.reverse { grid-template-columns: 1fr; gap: 2rem; }
  .split.reverse .split-media { order: 0; }
}

/* ---------- Courses ---------- */
.course-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  align-items: stretch;
}
.course-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 2.2rem 1.7rem;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}
.course-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); border-color: transparent; }
.course-card h4 { font-family: var(--font-display); font-size: 1.2rem; margin-bottom: 0.7rem; }
.course-desc { color: var(--color-text-muted); font-size: 0.92rem; margin-bottom: 1.1rem; }
.course-points li {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--color-text);
  padding-left: 1.1rem;
  position: relative;
  margin-bottom: 0.5rem;
}
.course-points li::before {
  content: "\2022";
  position: absolute;
  left: 0;
  color: var(--color-primary);
}

@media (max-width: 1000px) { .course-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .course-grid { grid-template-columns: 1fr; } }

/* ---------- Discover Bangladesh cards ---------- */
.explore-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
}
.explore-card {
  background: var(--color-surface);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.explore-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }
.explore-card .photo { height: 230px; overflow: hidden; }
.explore-card .photo img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
.explore-card:hover .photo img { transform: scale(1.06); }
.explore-card .body { padding: 1.8rem; }
.explore-card h4 { font-family: var(--font-display); font-size: 1.3rem; margin-bottom: 1rem; }
.explore-card ul li { display: flex; gap: 0.6rem; font-size: 0.93rem; margin-bottom: 0.7rem; align-items: flex-start; }
.explore-card ul li .mark { color: var(--color-secondary); flex: none; margin-top: 0.15rem; }

@media (max-width: 800px) { .explore-grid { grid-template-columns: 1fr; } }

/* ---------- Pricing & approach ---------- */
.approach-wrap { display: grid; grid-template-columns: 1fr 1.15fr; gap: 3.5rem; align-items: center; }
.approach-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.4rem; }
.approach-card {
  border-radius: var(--radius-md);
  padding: 1.6rem;
}
.approach-card h4 { font-size: 1rem; font-weight: 700; margin-bottom: 0.6rem; font-family: var(--font-body); }
.approach-card p { font-size: 0.9rem; margin: 0; color: var(--color-text-muted); }
.tone-a { background: var(--color-accent-soft); }
.tone-b { background: var(--color-primary-soft); }
.tone-c { background: var(--color-secondary-soft); }
.tone-d { background: #e8e5f5; }

@media (max-width: 900px) {
  .approach-wrap { grid-template-columns: 1fr; }
  .approach-wrap .approach-grid { order: -1; }
}
@media (max-width: 560px) { .approach-grid { grid-template-columns: 1fr; } }

/* ---------- Reviews ---------- */
.review-grid {
  columns: 3;
  column-gap: 1.5rem;
}
.review-card {
  break-inside: avoid;
  margin-bottom: 1.5rem;
  background: var(--color-surface);
  border-left: 3px solid var(--color-accent);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  padding: 1.8rem;
  box-shadow: var(--shadow-sm);
}
.review-card .quote-mark { font-family: var(--font-display); font-size: 2.6rem; color: var(--color-accent); line-height: 0.5; display: block; margin-bottom: 0.8rem; }
.review-card p.body-text { font-size: 0.95rem; color: var(--color-text); margin-bottom: 1rem; }
.review-card h5 { margin: 0; font-size: 0.9rem; font-weight: 700; }
.review-card .role { font-size: 0.8rem; color: var(--color-text-muted); }

@media (max-width: 900px) { .review-grid { columns: 2; } }
@media (max-width: 600px) { .review-grid { columns: 1; } }

/* ---------- Gallery ---------- */
.gallery-grid {
  columns: 4;
  column-gap: 0.9rem;
}
.gallery-grid figure {
  margin: 0 0 0.9rem;
  break-inside: avoid;
  border-radius: var(--radius-sm);
  overflow: hidden;
  cursor: zoom-in;
  position: relative;
}
.gallery-grid img { width: 100%; display: block; transition: transform 0.4s ease; }
.gallery-grid figure:hover img { transform: scale(1.05); }
.gallery-grid figure::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(0deg, rgba(0,0,0,0.25), transparent 40%);
  opacity: 0;
  transition: opacity 0.3s ease;
}
.gallery-grid figure:hover::after { opacity: 1; }

@media (max-width: 900px) { .gallery-grid { columns: 3; } }
@media (max-width: 600px) { .gallery-grid { columns: 2; } }

.lightbox {
  position: fixed; inset: 0;
  background: rgba(20, 16, 13, 0.92);
  display: flex; align-items: center; justify-content: center;
  z-index: 200;
  padding: 4vh 4vw;
  opacity: 0; pointer-events: none;
  transition: opacity 0.25s ease;
}
.lightbox.open { opacity: 1; pointer-events: auto; }
.lightbox img { max-width: 100%; max-height: 92vh; border-radius: var(--radius-sm); box-shadow: var(--shadow-lg); }
.lightbox-close {
  position: absolute; top: 1.5rem; right: 1.5rem;
  width: 44px; height: 44px; border-radius: 50%;
  background: rgba(255,255,255,0.12); color: #fff;
  border: none; font-size: 1.3rem; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
}

/* ---------- Contact ---------- */
.contact-wrap { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 3rem; }
.contact-media { display: flex; flex-direction: column; gap: 1.2rem; }
.contact-media .logo-card {
  background: var(--color-surface);
  border-radius: var(--radius-md);
  padding: 2.4rem;
  display: flex; align-items: center; justify-content: center;
  box-shadow: var(--shadow-sm);
}
.contact-media .logo-card img { width: auto; height: 90px; max-width: 100%; }
.contact-media .map-card { border-radius: var(--radius-md); overflow: hidden; box-shadow: var(--shadow-sm); }
.contact-media .map-card iframe { display: block; width: 100%; height: 260px; border: 0; }

.contact-list { display: flex; flex-direction: column; gap: 1.6rem; }
.contact-item { display: flex; gap: 1.1rem; align-items: flex-start; }
.contact-item .icon-badge { flex: none; }
.contact-item h5 { margin: 0 0 0.3rem; font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--color-text-muted); }
.contact-item p { margin: 0; font-size: 1.05rem; font-weight: 600; }
.contact-item .whatsapp-link { display: inline-flex; align-items: center; gap: 0.4rem; margin-top: 0.35rem; font-size: 0.9rem; font-weight: 600; color: var(--color-secondary); }

@media (max-width: 900px) { .contact-wrap { grid-template-columns: 1fr; } }

/* ---------- Footer ---------- */
.site-footer { background: var(--color-text); color: #eee6da; padding: 3rem 0 2rem; }
.footer-inner { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 1.5rem; }
.footer-inner .brand-name { font-family: var(--font-display); font-size: 1.3rem; color: #fff; }
.footer-links { display: flex; gap: 1.6rem; flex-wrap: wrap; }
.footer-links a { font-size: 0.88rem; color: #cfc3b3; }
.footer-links a:hover { color: #fff; }
.footer-bottom { margin-top: 2rem; padding-top: 1.5rem; border-top: 1px solid rgba(255,255,255,0.12); font-size: 0.8rem; color: #a7998a; text-align: center; }

/* ---------- Scroll reveal ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.in-view { opacity: 1; transform: translateY(0); }
