/* =========================================================
   Tilaboni Ambassador Charitable Society (ACS)
   Design System - main.css
   ========================================================= */

:root {
  --emerald-950: #0a2e25;
  --emerald-900: #11443a;
  --emerald-800: #0d5846;
  --emerald-700: #0f6b4f;
  --emerald-600: #17805f;
  --emerald-500: #2c9a72;
  --emerald-100: #e3f1ea;
  --emerald-50:  #f2f8f5;

  --gold-600: #b8860b;
  --gold-500: #d4a137;
  --gold-400: #e2b54a;
  --gold-100: #faf0d7;

  --ink:   #21332d;
  --ink-2: #33473f;
  --muted: #5c6f68;
  --cream: #faf7f1;
  --white: #ffffff;

  --font-head: 'Playfair Display', serif;
  --font-body: 'Inter', system-ui, -apple-system, sans-serif;

  --shadow-sm: 0 4px 14px rgba(17, 68, 58, 0.08);
  --shadow-md: 0 12px 34px rgba(17, 68, 58, 0.12);
  --shadow-lg: 0 24px 60px rgba(17, 68, 58, 0.18);

  --radius: 18px;
  --radius-sm: 12px;
}

/* ---------- Base ---------- */
* { -webkit-tap-highlight-color: transparent; }

html { scroll-behavior: smooth; scroll-padding-top: 90px; overflow-x: hidden; }

body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--white);
  line-height: 1.7;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-head);
  font-weight: 700;
  color: var(--ink);
  line-height: 1.2;
}

a { color: var(--emerald-700); text-decoration: none; transition: color .2s; }
a:hover { color: var(--emerald-600); }

p { color: var(--muted); }
.text-muted-2 { color: var(--muted) !important; }

img { max-width: 100%; }

.section { padding: 90px 0; }
.section-sm { padding: 56px 0; }
.bg-cream { background: var(--cream); }
.bg-emerald { background: var(--emerald-900); }
.bg-soft { background: var(--emerald-50); }

/* Section headings */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: .82rem;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--gold-600);
  margin-bottom: 14px;
}
.eyebrow::before {
  content: "";
  width: 26px; height: 2px;
  background: var(--gold-500);
  border-radius: 2px;
}
.section-title {
  font-size: clamp(1.7rem, 3.4vw, 2.6rem);
  margin-bottom: 16px;
}
.section-lead { max-width: 720px; }
.section-head { margin-bottom: 48px; }
.section-head.center .section-lead { margin-left: auto; margin-right: auto; }

/* ---------- Buttons ---------- */
.btn {
  font-family: var(--font-body);
  font-weight: 600;
  letter-spacing: .02em;
  border-radius: 60px;
  padding: 12px 28px;
  transition: all .25s ease;
}
.btn-brand {
  background: var(--emerald-700);
  color: #fff;
  border: 1px solid var(--emerald-700);
}
.btn-brand:hover { background: var(--emerald-900); border-color: var(--emerald-900); color:#fff; transform: translateY(-2px); box-shadow: var(--shadow-md); }
.btn-gold {
  background: var(--gold-500);
  color: #fff;
  border: 1px solid var(--gold-500);
}
.btn-gold:hover { background: var(--gold-600); border-color: var(--gold-600); color:#fff; transform: translateY(-2px); box-shadow: var(--shadow-md); }
.btn-outline-light {
  border: 1.5px solid rgba(255,255,255,.85);
  color: #fff;
}
.btn-outline-light:hover { background: #fff; color: var(--emerald-900); }
.btn-outline-brand {
  border: 1.5px solid var(--emerald-700);
  color: var(--emerald-700);
}
.btn-outline-brand:hover { background: var(--emerald-700); color:#fff; }
.btn-lg { padding: 15px 36px; font-size: 1rem; }

/* ---------- Navbar ---------- */
.navbar {
  transition: all .35s ease;
  padding: 18px 0;
  background: transparent;
  z-index: 1050;
}
.navbar .navbar-brand { display: flex; align-items: center; gap: 12px; }
.navbar .brand-logo {
  width: 48px; height: 48px;
  object-fit: contain;
  border-radius: 10px;
  background: #fff;
  padding: 4px;
  box-shadow: var(--shadow-sm);
}
.navbar .brand-text { line-height: 1.05; }
.navbar .brand-name {
  font-family: var(--font-head);
  font-weight: 700;
  color: #fff;
  font-size: 1.12rem;
}
.navbar .brand-sub {
  font-size: .66rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: rgba(255,255,255,.8);
}
.navbar .nav-link {
  color: rgba(255,255,255,.92) !important;
  font-weight: 500;
  margin: 0 4px;
  position: relative;
}
.navbar .nav-link::after {
  content: "";
  position: absolute;
  left: 10px; right: 10px; bottom: 2px;
  height: 2px;
  background: var(--gold-400);
  border-radius: 2px;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .25s ease;
}
.navbar .nav-link:hover::after,
.navbar .nav-link.active::after { transform: scaleX(1); }
.navbar .nav-link.active { color: #fff !important; }

/* Solid after scroll / on inner pages */
.navbar.scrolled,
.navbar.solid {
  background: var(--emerald-900);
  box-shadow: 0 6px 24px rgba(10,46,37,.35);
  padding: 10px 0;
}
.navbar .navbar-toggler { border-color: rgba(255,255,255,.4); }
.navbar .navbar-toggler:focus { box-shadow: none; }
.navbar .navbar-toggler-icon {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba(255,255,255,1)' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  color: #fff;
  overflow: hidden;
}
.hero-bg {
  position: absolute; inset: 0;
  background-size: cover;
  background-position: center;
  z-index: -2;
}
.hero::before {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(115deg, rgba(8,38,31,.94) 0%, rgba(13,88,70,.82) 48%, rgba(10,46,37,.55) 100%);
  z-index: -1;
}
.hero .eyebrow { color: var(--gold-400); }
.hero .eyebrow::before { background: var(--gold-400); }
.hero h1 {
  color: #fff;
  font-size: clamp(2.1rem, 5vw, 3.9rem);
  font-weight: 800;
  letter-spacing: -.01em;
}
.hero h1 .accent { color: var(--gold-400); }
.hero .lead {
  color: rgba(255,255,255,.9);
  font-size: 1.12rem;
  max-width: 560px;
}
.hero .hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255,255,255,.12);
  border: 1px solid rgba(255,255,255,.22);
  padding: 8px 16px;
  border-radius: 60px;
  font-size: .85rem;
  backdrop-filter: blur(4px);
  margin-bottom: 6px;
}
.hero .scroll-hint {
  position: absolute;
  bottom: 28px; left: 50%;
  transform: translateX(-50%);
  color: rgba(255,255,255,.85);
  font-size: .8rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  display: flex; flex-direction: column; align-items: center; gap: 6px;
}
.hero .scroll-hint .mouse {
  width: 24px; height: 38px;
  border: 2px solid rgba(255,255,255,.7);
  border-radius: 14px;
  position: relative;
}
.hero .scroll-hint .mouse::after {
  content:"";
  position: absolute; top: 7px; left: 50%;
  width: 4px; height: 8px;
  margin-left: -2px;
  background: var(--gold-400);
  border-radius: 3px;
  animation: scrollDown 1.8s infinite;
}
@keyframes scrollDown {
  0% { opacity: 1; transform: translateY(0); }
  70% { opacity: 0; transform: translateY(12px); }
  100% { opacity: 0; transform: translateY(12px); }
}

/* page header (inner pages) */
.page-header {
  position: relative;
  padding: 160px 0 90px;
  color: #fff;
  text-align: center;
  background-size: cover;
  background-position: center;
  overflow: hidden;
}
.page-header::before {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(120deg, rgba(8,38,31,.9), rgba(13,88,70,.78), rgba(10,46,37,.62));
}
.page-header .container { position: relative; z-index: 1; }
.page-header h1 { color: #fff; font-size: clamp(2rem, 4.4vw, 3.1rem); }
.page-header nav { color: rgba(255,255,255,.85); font-size: .95rem; }
.page-header nav a { color: var(--gold-400); }
.page-header .crumb-sep { margin: 0 8px; opacity: .7; }

/* ---------- Feature / icon cards ---------- */
.feature-card {
  background: #fff;
  border: 1px solid #eeeae2;
  border-radius: var(--radius);
  padding: 34px 28px;
  height: 100%;
  transition: all .3s ease;
  box-shadow: var(--shadow-sm);
}
.feature-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-md);
  border-color: var(--emerald-100);
}
.feature-icon {
  width: 62px; height: 62px;
  border-radius: 16px;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 1.6rem;
  color: #fff;
  background: linear-gradient(135deg, var(--emerald-600), var(--emerald-800));
  margin-bottom: 20px;
}
.feature-icon.gold { background: linear-gradient(135deg, var(--gold-400), var(--gold-600)); }
.feature-card h5 { margin-bottom: 12px; }

/* ---------- Program cards ---------- */
.program-card {
  background: #fff;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  height: 100%;
  transition: all .3s ease;
  border: 1px solid #eeeae2;
}
.program-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-lg); }
.program-card .pc-img {
  position: relative;
  aspect-ratio: 4/3;
  overflow: hidden;
}
.program-card .pc-img img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .6s ease;
}
.program-card:hover .pc-img img { transform: scale(1.06); }
.program-card .pc-body { padding: 26px; }
.program-card h5 { margin-bottom: 10px; }
.program-card .pc-link { font-weight: 600; }
.program-card .pc-link i { transition: transform .25s; }
.program-card .pc-link:hover i { transform: translateX(4px); }
.program-badge {
  position: absolute; bottom: 14px; left: 14px;
  background: var(--gold-500);
  color: #fff;
  font-size: .72rem; font-weight: 700;
  letter-spacing: .08em; text-transform: uppercase;
  padding: 6px 14px; border-radius: 40px;
  box-shadow: var(--shadow-sm);
}

/* ---------- Stats ---------- */
.stat-box {
  text-align: center;
  padding: 30px 16px;
  border-radius: var(--radius);
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.12);
  height: 100%;
}
.stat-box .num {
  font-family: var(--font-head);
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--gold-400);
  line-height: 1;
}
.stat-box .label {
  margin-top: 8px;
  color: rgba(255,255,255,.85);
  font-size: .9rem;
}

/* ---------- Gallery ---------- */
.gallery-item {
  display: block;
  border-radius: var(--radius-sm);
  overflow: hidden;
  position: relative;
  cursor: pointer;
  aspect-ratio: 1/1;
  box-shadow: var(--shadow-sm);
}
.gallery-item img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .55s ease;
}
.gallery-item:hover img { transform: scale(1.08); }
.gallery-item .gl-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(8,38,31,.75), rgba(8,38,31,0) 60%);
  opacity: 0;
  transition: opacity .35s ease;
  display: flex; align-items: flex-end; padding: 18px;
}
.gallery-item:hover .gl-overlay { opacity: 1; }
.gallery-item .gl-overlay i {
  color: #fff; font-size: 1.5rem;
  margin-left: auto;
}

/* Lightbox (custom) */
.lightbox {
  position: fixed; inset: 0;
  background: rgba(8,32,26,.92);
  display: none; align-items: center; justify-content: center;
  z-index: 2000;
  padding: 24px;
  opacity: 0;
  transition: opacity .3s ease;
}
.lightbox.open { display: flex; opacity: 1; }
.lightbox img {
  max-width: 92vw; max-height: 84vh;
  border-radius: 8px;
  box-shadow: 0 20px 60px rgba(0,0,0,.6);
}
.lightbox .lb-close {
  position: absolute; top: 20px; right: 24px;
  background: none; border: none;
  color: #fff; font-size: 2.4rem; cursor: pointer; line-height: 1;
}
.lightbox .lb-nav {
  position: absolute; top: 50%; transform: translateY(-50%);
  background: rgba(255,255,255,.14);
  border: none; color: #fff; font-size: 2rem;
  width: 52px; height: 52px; border-radius: 50%;
  cursor: pointer; line-height: 1;
  transition: background .2s;
}
.lightbox .lb-nav:hover { background: rgba(255,255,255,.3); }
.lightbox .lb-prev { left: 20px; }
.lightbox .lb-next { right: 20px; }
.lightbox .lb-caption {
  position: absolute; bottom: 22px; left: 0; right: 0;
  text-align: center; color: rgba(255,255,255,.85); font-size: .95rem;
}

/* ---------- Lists (about/programs) ---------- */
.about-list { list-style: none; padding: 0; margin: 0; }
.about-list li {
  display: flex; gap: 12px;
  padding: 9px 0;
  border-bottom: 1px dashed #e6e0d4;
  color: var(--ink-2);
}
.about-list li i { color: var(--gold-600); font-size: 1.05rem; margin-top: 3px; }
.about-list li:last-child { border-bottom: 0; }

.check-list { list-style: none; padding: 0; margin: 0; columns: 2; column-gap: 40px; }
.check-list li {
  display: flex; gap: 10px; align-items: flex-start;
  padding: 7px 0;
  break-inside: avoid;
  color: var(--ink-2);
}
.check-list li i { color: var(--emerald-600); margin-top: 4px; }
@media (max-width: 575px) { .check-list { columns: 1; } }

/* steps / timeline */
.step {
  position: relative;
  padding: 20px 0 20px 56px;
  border-left: 2px solid var(--emerald-100);
  margin-left: 18px;
}
.step::before {
  content: "";
  position: absolute; left: -10px; top: 24px;
  width: 18px; height: 18px;
  border-radius: 50%;
  background: var(--emerald-700);
  border: 3px solid #fff;
  box-shadow: 0 0 0 2px var(--emerald-100);
}

/* ---------- Accordion (FAQ / details) ---------- */
.accordion .accordion-item { border: 1px solid #ece7dc; border-radius: var(--radius-sm) !important; overflow: hidden; margin-bottom: 14px; }
.accordion .accordion-button {
  font-weight: 600;
  color: var(--ink);
  background: #fff;
  padding: 18px 22px;
}
.accordion .accordion-button:not(.collapsed) {
  background: var(--emerald-700);
  color: #fff;
  box-shadow: none;
}
.accordion .accordion-button:focus { box-shadow: none; }
.accordion .accordion-body { color: var(--muted); }

/* ---------- Documents ---------- */
.doc-card {
  background: #fff;
  border: 1px solid #eeeae2;
  border-radius: var(--radius-sm);
  padding: 20px;
  display: flex; gap: 16px; align-items: center;
  height: 100%;
  transition: all .25s ease;
  box-shadow: var(--shadow-sm);
}
.doc-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: var(--emerald-100); }
.doc-icon {
  flex: 0 0 52px; width: 52px; height: 52px;
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.5rem;
  color: #c62828;
  background: #fdeaea;
}
.doc-name { font-weight: 600; color: var(--ink); margin-bottom: 2px; line-height: 1.3; }
.doc-meta { font-size: .8rem; color: var(--muted); }

/* ---------- Forms ---------- */
.form-control, .form-select {
  border: 1px solid #e2dccd;
  border-radius: 12px;
  padding: 13px 16px;
  background: #fff;
  color: var(--ink);
}
.form-control:focus, .form-select:focus {
  border-color: var(--emerald-500);
  box-shadow: 0 0 0 .2rem rgba(44,154,114,.15);
}
.form-label { font-weight: 600; color: var(--ink); font-size: .92rem; }
.form-check-input:checked { background-color: var(--emerald-700); border-color: var(--emerald-700); }

/* ---------- Quote / president ---------- */
.president-card {
  background: #fff;
  border-radius: var(--radius);
  padding: 40px;
  box-shadow: var(--shadow-md);
  border: 1px solid #eeeae2;
  position: relative;
}
.president-card .quote-mark {
  font-family: var(--font-head);
  font-size: 5rem;
  color: var(--gold-400);
  line-height: .6;
  height: 30px;
}
.president-card blockquote { font-family: var(--font-head); font-size: 1.3rem; color: var(--ink-2); font-style: italic; }

/* ---------- CTA band ---------- */
.cta-band {
  background: linear-gradient(120deg, var(--emerald-900), var(--emerald-700));
  border-radius: var(--radius);
  padding: 56px 44px;
  color: #fff;
  position: relative;
  overflow: hidden;
}
.cta-band::after {
  content: "";
  position: absolute; right: -60px; top: -60px;
  width: 260px; height: 260px;
  border-radius: 50%;
  background: rgba(255,255,255,.06);
}
.cta-band h2 { color: #fff; }

/* ---------- Footer ---------- */
.footer {
  background: var(--emerald-950);
  color: rgba(255,255,255,.82);
  padding: 70px 0 0;
}
.footer h6 {
  color: #fff;
  font-family: var(--font-body);
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  font-size: .9rem;
  margin-bottom: 20px;
}
.footer a { color: rgba(255,255,255,.78); }
.footer a:hover { color: var(--gold-400); }
.footer .f-link {
  display: flex; align-items: center; gap: 8px;
  padding: 4px 0;
  font-size: .95rem;
}
.footer .f-link i { color: var(--gold-400); font-size: .8rem; }
.footer .footer-logo {
  width: 84px; height: 84px;
  object-fit: contain;
  background: #fff;
  border-radius: 14px;
  padding: 6px;
  margin-bottom: 16px;
}
.footer .social a {
  width: 40px; height: 40px;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 50%;
  background: rgba(255,255,255,.1);
  margin-right: 8px;
  transition: all .25s;
}
.footer .social a:hover { background: var(--gold-500); color: #fff; transform: translateY(-3px); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.12);
  padding: 22px 0;
  margin-top: 40px;
  color: rgba(255,255,255,.6);
  font-size: .9rem;
}
.footer .contact-line { display: flex; gap: 12px; padding: 8px 0; }
.footer .contact-line i { color: var(--gold-400); margin-top: 3px; }


/* ---------- Scroll reveal ---------- */
.reveal, .reveal-up, .reveal-left, .reveal-right, .reveal-zoom {
  opacity: 0;
  transition: opacity .8s ease, transform .8s cubic-bezier(.2,.7,.2,1);
  will-change: opacity, transform;
}
.reveal { transform: translateY(0); }
.reveal-up { transform: translateY(34px); }
.reveal-left { transform: translateX(-40px); }
.reveal-right { transform: translateX(40px); }
.reveal-zoom { transform: scale(.92); }
.reveal.in-view, .reveal-up.in-view, .reveal-left.in-view,
.reveal-right.in-view, .reveal-zoom.in-view {
  opacity: 1;
  transform: none;
}
.delay-1 { transition-delay: .12s; }
.delay-2 { transition-delay: .24s; }
.delay-3 { transition-delay: .36s; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  overflow-x: hidden;
  .reveal, .reveal-up, .reveal-left, .reveal-right, .reveal-zoom { opacity: 1; transform: none; }
  * { animation: none !important; transition: none !important; }
}

/* ---------- Misc helpers ---------- */
.rounded-20 { border-radius: var(--radius); }
.shadow-soft { box-shadow: var(--shadow-md); }
.hover-lift { transition: transform .3s ease, box-shadow .3s ease; }
.hover-lift:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.object-cover { object-fit: cover; }

/* Navbar responsive collapse */
@media (max-width: 991.98px) {
  .navbar .navbar-collapse {
    background: var(--emerald-900);
    border-radius: var(--radius-sm);
    padding: 16px;
    margin-top: 12px;
  }
  .navbar .nav-link { color: #fff !important; padding: 10px 8px; }
}
