/*
Theme Name: BMRF Theme
Theme URI: https://bmrf-bd.org
Author: Bir Sreshtho Matiur Rahman Foundation
Author URI: https://bmrf-bd.org
Description: Official bilingual theme for the Bir Sreshtho Matiur Rahman Foundation — a humanitarian nonprofit honoring the legacy of Liberation War martyr Flight Lieutenant Matiur Rahman.
Version: 1.3.4
Requires at least: 6.3
Tested up to: 6.7
Requires PHP: 8.0
License: Private — All Rights Reserved
Text Domain: bmrf-theme
Tags: nonprofit, bilingual, accessibility-ready
*/

/* ============================================================
   DESIGN TOKENS — CSS Custom Properties
   ============================================================ */
:root {
  /* ----------------------------------------------------------------
     Brand palette — three official colors, used at a ~79 : 14 : 7 ratio
     (green : red : gold) across the site.

       • GREEN  rgb(0, 103, 71)   #006747  — dominant ~79%: header nav,
         footer, hero/page-hero overlays, primary buttons, links, section
         tints, and 10 of the 12 program accents. The default brand color.
       • RED    rgb(176, 32, 22)  #B02016  — secondary ~14%: the Education
         focus accent, secondary hero CTA, data-quality alerts, a few badges.
       • GOLD   rgb(244, 195, 0)  #F4C300  — sparing ~7%: donate CTAs,
         footer headings, hero label, and the Zakat focus accent.
     Keep this distribution in mind when adding new colored elements.
     ---------------------------------------------------------------- */
  --green-light:   #00A370;
  --green-primary: #006747;   /* rgb(0, 103, 71)  */
  --green-dark:    #005238;
  --red-light:     #D14B40;
  --red-primary:   #B02016;   /* rgb(176, 32, 22) */
  --red-dark:      #8A1911;
  --gold-light:    #FFD633;
  --gold-primary:  #F4C300;   /* rgb(244, 195, 0) */
  --gold-dark:     #D9AE00;
  --text-primary:  #252323;
  --pure-black:    #000000;
  --pure-white:    #FFFFFF;

  /* Derived / semantic */
  --surface-glass:       rgba(255, 255, 255, 0.62);
  --surface-glass-dark:  rgba(0, 82, 56, 0.72);
  --surface-tint:        rgba(0, 103, 71, 0.05);
  --border-subtle:       rgba(0, 103, 71, 0.14);
  --border-glass:        1px solid rgba(255, 255, 255, 0.38);
  --blur-glass:          blur(14px);
  --blur-heavy:          blur(24px);

  /* Spatial */
  --radius-sm:   8px;
  --radius-md:   16px;
  --radius-lg:   28px;
  --radius-pill: 9999px;

  /* Elevation */
  --shadow-card:     0 2px 16px rgba(0, 103, 71, 0.09), 0 1px 3px rgba(0,0,0,0.06);
  --shadow-elevated: 0 8px 40px rgba(0, 103, 71, 0.16), 0 2px 8px rgba(0,0,0,0.08);
  --shadow-hero:     0 20px 80px rgba(0, 82, 56, 0.3);

  /* Motion */
  --ease-default: cubic-bezier(0.4, 0, 0.2, 1);
  --ease-spring:  cubic-bezier(0.34, 1.56, 0.64, 1);
  --duration-fast:   200ms;
  --duration-base:   280ms;
  --duration-slow:   500ms;

  /* Typography */
  --font-display: 'Cormorant Garamond', Georgia, serif;
  --font-body:    'DM Sans', system-ui, sans-serif;
  --font-bengali: 'Noto Sans Bengali', 'DM Sans', system-ui, sans-serif;
}

/* ============================================================
   RESET & BASE
   ============================================================ */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.68;
  color: var(--text-primary);
  background: var(--pure-white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img, video {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--green-primary);
  text-decoration: none;
  transition: color var(--duration-fast) var(--ease-default);
}

a:hover {
  color: var(--green-dark);
}

ul, ol {
  list-style: none;
}

button {
  cursor: pointer;
  border: none;
  background: none;
  font-family: inherit;
}

table {
  border-collapse: collapse;
  width: 100%;
}

/* ============================================================
   TYPOGRAPHY
   ============================================================ */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  line-height: 1.2;
  color: var(--text-primary);
}

h1 {
  font-size: clamp(2.4rem, 5vw, 4.2rem);
  font-weight: 600;
}

h2 {
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  font-weight: 600;
}

h3 {
  font-size: 1.4rem;
  font-family: var(--font-body);
  font-weight: 600;
}

p {
  font-size: 1rem;
  line-height: 1.68;
  margin-bottom: 1em;
}

p:last-child {
  margin-bottom: 0;
}

.text-large {
  font-size: 1.125rem;
}

.text-caption {
  font-size: 0.85rem;
  font-weight: 400;
  opacity: 0.7;
}

/* Bengali language typography */
.lang-bn,
[lang="bn"],
:lang(bn) {
  font-family: var(--font-bengali);
}

/* ============================================================
   REDUCED MOTION
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}
