/* ============================================================
   Siragugal Charitable Trust — Modern Theme
   Palette: Blue + Gold + White (clean, trustworthy)
   Responsive, mobile-first. Replaces the old dark template.

   Note: token names below kept as --saffron / --green for
   stability, but they now hold BLUE (primary) and GOLD (accent).
   ============================================================ */

/* ---------- Design tokens ---------- */
:root {
  --saffron:        #1B5FA8;   /* primary : blue      */
  --saffron-dark:   #134B86;   /* primary : blue dark */
  --saffron-soft:   #DCEAF8;   /* primary : blue soft */
  --green:          #D9A317;   /* accent  : gold      */
  --green-dark:     #9A6A00;   /* accent  : gold dark */
  --green-soft:     #FBEFD0;   /* accent  : gold soft */
  --cream:          #F4F8FD;   /* near-white page bg  */
  --card:           #FFFFFF;
  --ink:            #14304B;   /* deep navy text      */
  --ink-soft:       #5C6B7A;
  --line:           #DEE7F1;
  --gold:           #E6A817;

  --radius:         16px;
  --radius-sm:      10px;
  --shadow:         0 10px 30px rgba(46, 37, 25, 0.10);
  --shadow-sm:      0 4px 14px rgba(46, 37, 25, 0.08);
  --maxw:           1160px;
  --header-h:       76px;

  --font-head: "Poppins", "Segoe UI", system-ui, sans-serif;
  --font-body: "Mukta", "Segoe UI", system-ui, sans-serif;
}

/* ---------- Reset-ish ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.7;
  color: var(--ink);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--saffron-dark); text-decoration: none; transition: color .2s ease; }
a:hover { color: var(--saffron); }
h1, h2, h3, h4, h5 { font-family: var(--font-head); color: var(--ink); line-height: 1.2; margin: 0 0 .5em; font-weight: 700; }
p { margin: 0 0 1rem; }
ul { margin: 0; padding: 0; }
section { display: block; }

/* ---------- Layout helpers ---------- */
.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 20px; }
.section { padding: 72px 0; }
.section--tight { padding: 48px 0; }
.section--cream { background: var(--cream); }
.section--white { background: #fff; }
.section--soft  { background: linear-gradient(180deg, #fff 0%, var(--saffron-soft) 100%); }

.section-head { text-align: center; max-width: 720px; margin: 0 auto 48px; }
.section-head .eyebrow {
  display: inline-block;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 13px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--green-dark);
  background: var(--green-soft);
  padding: 6px 16px;
  border-radius: 999px;
  margin-bottom: 16px;
}
.section-head h2 { font-size: clamp(28px, 4vw, 40px); }
.section-head p { color: var(--ink-soft); font-size: 18px; }

.grid { display: grid; gap: 28px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-head); font-weight: 600; font-size: 16px;
  padding: 13px 26px; border-radius: 999px; border: 0; cursor: pointer;
  transition: transform .15s ease, box-shadow .2s ease, background .2s ease;
  line-height: 1;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--saffron); color: #fff; box-shadow: 0 8px 20px rgba(27,95,168,.32); }
.btn-primary:hover { background: var(--saffron-dark); color: #fff; box-shadow: 0 10px 26px rgba(19,75,134,.42); }
.btn-green { background: var(--green); color: var(--ink); box-shadow: 0 8px 20px rgba(217,163,23,.32); }
.btn-green:hover { background: var(--green-dark); color: #fff; }
.btn-ghost { background: transparent; color: var(--ink); border: 2px solid var(--line); }
.btn-ghost:hover { border-color: var(--saffron); color: var(--saffron-dark); }
.btn-sm { padding: 9px 18px; font-size: 14px; }

/* ---------- Header / Nav ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255, 248, 238, .92);
  backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav {
  height: var(--header-h);
  display: flex; align-items: center; justify-content: space-between;
}
.brand { display: flex; align-items: center; gap: 12px; }
.brand img { height: 46px; width: auto; }
.brand-text { font-family: var(--font-head); font-weight: 700; font-size: 18px; color: var(--ink); line-height: 1.1; }
.brand-text small { display: block; font-weight: 500; font-size: 12px; color: var(--green-dark); letter-spacing: .04em; }

.nav-links { display: flex; align-items: center; gap: 4px; list-style: none; }
.nav-links a {
  display: block; padding: 10px 16px; border-radius: 999px;
  font-family: var(--font-head); font-weight: 500; font-size: 16px; color: var(--ink);
}
.nav-links a:hover { background: var(--saffron-soft); color: var(--saffron-dark); }
.nav-links a.active { background: var(--saffron); color: #fff; }
.nav-actions { display: flex; align-items: center; gap: 12px; }

.nav-toggle {
  display: none; background: none; border: 0; cursor: pointer;
  width: 44px; height: 44px; border-radius: 12px;
}
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after {
  content: ""; display: block; width: 24px; height: 2.5px; background: var(--ink);
  border-radius: 2px; transition: .25s; position: relative; margin: 0 auto;
}
.nav-toggle span::before { position: absolute; top: -7px; }
.nav-toggle span::after  { position: absolute; top: 7px; }
.nav-toggle.open span { background: transparent; }
.nav-toggle.open span::before { transform: rotate(45deg); top: 0; }
.nav-toggle.open span::after  { transform: rotate(-45deg); top: 0; }

/* ---------- Hero / Slider ---------- */
.hero { position: relative; overflow: hidden; }
.hero-slides { position: relative; height: clamp(420px, 64vh, 620px); }
.hero-slide {
  position: absolute; inset: 0; opacity: 0; transition: opacity .9s ease;
  background-size: cover; background-position: center;
}
.hero-slide.active { opacity: 1; }
.hero-slide::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(15,30,52,.80) 0%, rgba(15,30,52,.48) 45%, rgba(15,30,52,.12) 100%);
}
.hero-content {
  position: absolute; inset: 0; z-index: 2;
  display: flex; flex-direction: column; justify-content: center;
}
.hero-content .container { color: #fff; }
.hero-content .eyebrow {
  display: inline-block; background: var(--saffron); color: #fff;
  font-family: var(--font-head); font-weight: 600; font-size: 13px;
  letter-spacing: .12em; text-transform: uppercase; padding: 7px 16px; border-radius: 999px;
}
.hero-content h1 {
  color: #fff; font-size: clamp(32px, 5.2vw, 58px); max-width: 760px; margin: 18px 0 14px;
  text-shadow: 0 2px 18px rgba(0,0,0,.35);
}
.hero-content p { font-size: clamp(17px, 2vw, 21px); max-width: 560px; color: #f3eadf; opacity: .95; }
.hero-content .hero-cta { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 26px; }

.hero-dots { position: absolute; bottom: 22px; left: 0; right: 0; z-index: 3; display: flex; justify-content: center; gap: 10px; }
.hero-dots button {
  width: 11px; height: 11px; border-radius: 50%; border: 0; cursor: pointer;
  background: rgba(255,255,255,.5); transition: .2s;
}
.hero-dots button.active { background: var(--saffron); transform: scale(1.25); }

/* Donation bank strip under hero */
.bank-strip {
  background: var(--ink); color: #fff; font-family: var(--font-head); font-weight: 500;
}
.bank-strip .container { display: flex; flex-wrap: wrap; gap: 8px 32px; justify-content: center; padding: 14px 20px; font-size: 15px; }
.bank-strip strong { color: var(--gold); }

/* ---------- Cards ---------- */
.card {
  background: var(--card); border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow-sm); border: 1px solid var(--line);
  transition: transform .2s ease, box-shadow .2s ease;
  display: flex; flex-direction: column;
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.card-media { aspect-ratio: 4 / 3; overflow: hidden; }
.card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.card:hover .card-media img { transform: scale(1.06); }
.card-body { padding: 22px 22px 24px; flex: 1; display: flex; flex-direction: column; }
.card-tag {
  align-self: flex-start; font-family: var(--font-head); font-size: 12px; font-weight: 600;
  letter-spacing: .08em; text-transform: uppercase; padding: 5px 12px; border-radius: 999px; margin-bottom: 12px;
}
.tag-saffron { background: var(--saffron-soft); color: var(--saffron-dark); }
.tag-green   { background: var(--green-soft);   color: var(--green-dark); }
.tag-gold    { background: #FBEFD0;             color: #9a6a00; }
.card-body h3 { font-size: 21px; }
.card-body p { color: var(--ink-soft); font-size: 16px; }
.card-body .read-more { margin-top: auto; font-family: var(--font-head); font-weight: 600; color: var(--saffron-dark); }
.card-body .read-more:hover { color: var(--saffron); }
.card-date { font-family: var(--font-head); font-weight: 600; color: var(--green-dark); font-size: 14px; margin-bottom: 6px; }

/* ---------- Mission / split sections ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.split .media img { border-radius: var(--radius); box-shadow: var(--shadow); }
.lead { font-size: 20px; color: var(--ink-soft); }
.objectives { columns: 2; column-gap: 40px; list-style: none; }
.objectives li {
  break-inside: avoid; padding: 8px 0 8px 34px; position: relative; color: var(--ink-soft); font-size: 16px;
}
.objectives li::before {
  content: "✓"; position: absolute; left: 0; top: 8px;
  width: 22px; height: 22px; line-height: 22px; text-align: center; border-radius: 50%;
  background: var(--green-soft); color: var(--green-dark); font-size: 13px; font-weight: 700;
}

/* ---------- Impact stats ---------- */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.stat { text-align: center; padding: 28px 16px; background: #fff; border-radius: var(--radius); box-shadow: var(--shadow-sm); border: 1px solid var(--line); }
.stat .num { font-family: var(--font-head); font-weight: 800; font-size: 40px; color: var(--saffron); line-height: 1; }
.stat .label { color: var(--ink-soft); font-size: 15px; margin-top: 8px; }

/* ---------- Donation / QR section ---------- */
.donate-box {
  background: linear-gradient(135deg, var(--saffron) 0%, var(--saffron-dark) 100%);
  color: #fff; border-radius: var(--radius); padding: 40px;
  display: grid; grid-template-columns: 1.4fr 1fr; gap: 36px; align-items: center;
  box-shadow: var(--shadow);
}
.donate-box h2 { color: #fff; }
.donate-box .bank-detail { display: grid; grid-template-columns: auto 1fr; gap: 6px 16px; font-size: 16px; margin-top: 18px; }
.donate-box .bank-detail span:nth-child(odd) { opacity: .85; }
.donate-box .bank-detail span:nth-child(even) { font-weight: 600; }
.donate-qr { text-align: center; background: #fff; border-radius: var(--radius); padding: 18px; }
.donate-qr img { width: 180px; margin: 0 auto 8px; border-radius: 8px; }
.donate-qr small { color: var(--ink-soft); }

/* ---------- News tabs ---------- */
.year-tabs { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-bottom: 36px; }
.year-tabs a {
  font-family: var(--font-head); font-weight: 600; font-size: 16px;
  padding: 9px 22px; border-radius: 999px; background: #fff; border: 1px solid var(--line); color: var(--ink);
}
.year-tabs a.selected, .year-tabs a:hover { background: var(--saffron); color: #fff; border-color: var(--saffron); }
.tab-content { display: none; }
.tab-content.active { display: block; }
.news-item { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; margin-bottom: 22px; box-shadow: var(--shadow-sm); }
.news-item .gallery { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 14px; }
.news-item .gallery a img { width: 150px; height: 100px; object-fit: cover; border-radius: var(--radius-sm); border: 1px solid var(--line); }
.news-item .gallery a img.hide { display: none; }

/* ---------- Contact / forms ---------- */
.form-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 32px; box-shadow: var(--shadow-sm); }
.field { margin-bottom: 16px; }
.field label { display: block; font-family: var(--font-head); font-weight: 500; font-size: 14px; margin-bottom: 6px; color: var(--ink); }
.field input, .field textarea {
  width: 100%; padding: 12px 14px; border: 1px solid var(--line); border-radius: var(--radius-sm);
  font-family: var(--font-body); font-size: 16px; background: var(--cream); color: var(--ink); transition: border .2s, box-shadow .2s;
}
.field input:focus, .field textarea:focus { outline: 0; border-color: var(--saffron); box-shadow: 0 0 0 3px var(--saffron-soft); background: #fff; }
.field textarea { min-height: 130px; resize: vertical; }
.form-actions { display: flex; gap: 12px; margin-top: 8px; }
.alert { padding: 16px 20px; border-radius: var(--radius-sm); margin-bottom: 24px; font-family: var(--font-head); }
.alert-success { background: #E3F3E1; color: #1B7A3D; border: 1px solid #bfe3ba; }
.alert-error { background: #FDECEC; color: #B3261E; border: 1px solid #f3c5c2; }
.contact-info { font-size: 17px; }
.contact-info strong { color: var(--ink); }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: #d9cfbf; padding: 56px 0 0; }
.site-footer a { color: #d9cfbf; }
.site-footer a:hover { color: var(--saffron); }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1.3fr; gap: 40px; padding-bottom: 40px; }
.footer-brand .brand-text, .footer-brand .brand-text small { color: #fff; }
.footer-brand p { color: #b3a594; margin-top: 14px; max-width: 320px; }
.footer-col h4 { color: #fff; font-size: 16px; letter-spacing: .04em; text-transform: uppercase; margin-bottom: 16px; }
.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 10px; }
.footer-social { display: flex; gap: 12px; margin-top: 18px; }
.footer-social a { width: 42px; height: 42px; border-radius: 50%; background: rgba(255,255,255,.08); display: flex; align-items: center; justify-content: center; }
.footer-social a:hover { background: var(--saffron); }
.footer-social img { width: 20px; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.1); padding: 22px 0; text-align: center; color: #9b8e7d; font-size: 14px; }

/* ---------- Decorative kolam divider ---------- */
.kolam-divider { height: 26px; background: url(../images/theme/kolam-divider.svg) center/auto 26px repeat-x; opacity: .55; margin: 0; }

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .objectives { columns: 1; }
}
@media (max-width: 860px) {
  .grid-3 { grid-template-columns: 1fr 1fr; }
  .split { grid-template-columns: 1fr; gap: 32px; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .donate-box { grid-template-columns: 1fr; text-align: center; }
  .donate-box .bank-detail { justify-content: center; }

  .nav-toggle { display: block; }
  .nav-links {
    position: fixed; top: var(--header-h); left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--cream); border-bottom: 1px solid var(--line);
    padding: 12px 20px 20px; transform: translateY(-120%); transition: transform .3s ease; box-shadow: var(--shadow);
  }
  .nav-links.open { transform: translateY(0); }
  .nav-links a { padding: 14px 12px; border-radius: var(--radius-sm); }
  .nav-actions .btn-donate-text { display: inline; }
}
@media (max-width: 560px) {
  body { font-size: 16px; }
  .section { padding: 52px 0; }
  .grid-3, .grid-2 { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .stats { grid-template-columns: 1fr 1fr; }
  .donate-box { padding: 28px; }
  .brand-text { font-size: 15px; }
  .brand-text small { font-size: 11px; }
}
