/* =========================================================
   HopeBridge Sri Lanka — brand tokens
   Colors sampled from Logo.png (blue/red hands, gold teardrop)
   ========================================================= */
:root {
  --blue: #1E86C8;
  --blue-dark: #146094;
  --red: #E8452C;
  --red-dark: #C4341E;
  --gold: #F2A93B;
  --gold-dark: #D98E1E;
  --ink: #263542;
  --ink-soft: #4B5B68;
  --paper: #FBFAF7;
  --paper-tint: #F1F6F9;
  --line: #E3E8EA;
  --white: #FFFFFF;

  --gradient-brand: linear-gradient(100deg, var(--blue) 0%, var(--red) 100%);

  --font-head: 'Poppins', 'Segoe UI', sans-serif;
  --font-body: 'Inter', 'Segoe UI', sans-serif;
  --font-accent: 'Playfair Display', Georgia, serif;

  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 12px 32px -14px rgba(38, 53, 66, 0.22);
  --shadow-sm: 0 4px 14px -6px rgba(38, 53, 66, 0.18);
  --container: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { font-family: var(--font-head); font-weight: 700; line-height: 1.2; margin: 0 0 .5em; color: var(--ink); }
p { margin: 0 0 1em; color: var(--ink-soft); }
ul { list-style: none; margin: 0; padding: 0; }

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

.eyebrow {
  font-family: var(--font-head);
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  font-size: .78rem;
  color: var(--red);
  margin: 0 0 .6em;
}
.eyebrow-light { color: var(--gold); }

.text-accent {
  background: var(--gradient-brand);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.placeholder-tag {
  display: inline-block;
  font-size: .68rem;
  font-weight: 600;
  letter-spacing: .03em;
  text-transform: uppercase;
  color: var(--gold-dark);
  background: rgba(242, 169, 59, 0.15);
  border: 1px dashed var(--gold);
  border-radius: 999px;
  padding: .15em .7em;
  margin-left: .5em;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5em;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: .95rem;
  padding: .8em 1.6em;
  border-radius: 999px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease, color .15s ease;
  white-space: nowrap;
}
.btn-primary {
  background: var(--gradient-brand);
  color: var(--white);
  box-shadow: var(--shadow-sm);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.btn-outline {
  background: transparent;
  border-color: var(--ink);
  color: var(--ink);
}
.btn-outline:hover { background: var(--ink); color: var(--white); }
.btn-lg { padding: 1em 2em; font-size: 1rem; }
.btn-block { width: 100%; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(251, 250, 247, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: 84px;
}
.brand { display: flex; align-items: center; gap: 12px; }
.brand-logo { height: 48px; width: auto; }
.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-name { font-family: var(--font-head); font-weight: 700; font-size: 1.15rem; color: var(--ink); }
.brand-name em { font-style: normal; color: var(--blue); }
.brand-tagline { font-family: var(--font-accent); font-style: italic; font-size: .78rem; color: var(--ink-soft); }

.main-nav { display: flex; align-items: center; gap: 28px; }
.main-nav a {
  font-family: var(--font-head);
  font-weight: 500;
  font-size: .92rem;
  color: var(--ink-soft);
  position: relative;
  padding: 4px 0;
}
.main-nav a:hover { color: var(--red); }

.header-actions { display: flex; align-items: center; gap: 16px; }

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  background: none;
  border: none;
  cursor: pointer;
}
.nav-toggle span { display: block; height: 2px; width: 22px; background: var(--ink); margin: 0 auto; transition: transform .2s ease, opacity .2s ease; }

/* ---------- Hero ---------- */
.hero { padding: 72px 0 88px; overflow: hidden; }
.hero-inner {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: 56px;
  align-items: center;
}
.hero h1 { font-size: clamp(2.1rem, 3.6vw, 3.15rem); margin-bottom: .45em; }
.hero .lead { font-size: 1.05rem; max-width: 46ch; }
.hero-cta { display: flex; gap: 16px; margin-top: 1.6em; flex-wrap: wrap; }
.hero-media img { border-radius: var(--radius); }

/* ---------- Sections ---------- */
.section { padding: 96px 0; }
.section-tint { background: var(--paper-tint); }
.section-dark { background: var(--ink); }
.section-dark h2, .section-dark p, .section-dark a:not(.btn) { color: var(--white); }
.section-dark .contact-list a { color: var(--gold); }
.section-dark .placeholder-tag { color: var(--gold); border-color: var(--gold); background: rgba(242,169,59,.12); }

.section-head { max-width: 640px; margin: 0 auto 56px; text-align: center; }
.section-head h2 { font-size: clamp(1.7rem, 2.6vw, 2.3rem); }
.section-sub { font-size: 1.02rem; }

/* ---------- Mission / Vision ---------- */
.mv-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px; }
.mv-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 36px;
}
.mv-icon { color: var(--blue); width: 48px; height: 48px; margin-bottom: 18px; }
.mv-card:nth-child(2) .mv-icon { color: var(--red); }
.mv-icon svg { width: 100%; height: 100%; }

/* ---------- Causes ---------- */
.cause-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.cause-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 32px 28px;
  box-shadow: var(--shadow-sm);
  transition: transform .18s ease, box-shadow .18s ease;
}
.cause-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.cause-card-wide { grid-column: span 1; }
.cause-icon { width: 44px; height: 44px; margin-bottom: 16px; }
.cause-icon svg { width: 100%; height: 100%; }
.icon-blue { color: var(--blue); }
.icon-orange { color: var(--red); }
.icon-gold { color: var(--gold-dark); }
.cause-card h3 { font-size: 1.08rem; }
.cause-card p { font-size: .93rem; margin-bottom: 0; }

/* ---------- Give / Donate ---------- */
.give-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; align-items: start; }
.give-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 32px;
  height: 100%;
}
.give-card h3 { font-size: 1.15rem; }
.give-card p { font-size: .93rem; }
.give-card-featured {
  border: none;
  background: var(--ink);
  color: var(--white);
  box-shadow: var(--shadow);
}
.give-card-featured h3, .give-card-featured p { color: var(--white); }
.give-badge {
  display: inline-block;
  font-size: .68rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .05em;
  background: var(--gold);
  color: var(--ink);
  padding: .3em .8em;
  border-radius: 999px;
  margin-bottom: 16px;
}
.give-note { font-size: .8rem; margin-top: 12px; margin-bottom: 0; opacity: .85; }
.give-note a { color: var(--gold); text-decoration: underline; }

.bank-details { display: flex; flex-direction: column; gap: 10px; margin-top: 18px; }
.bank-details div { display: flex; justify-content: space-between; gap: 12px; border-bottom: 1px dashed var(--line); padding-bottom: 8px; font-size: .88rem; }
.bank-details dt { color: var(--ink-soft); font-weight: 500; }
.bank-details dd { margin: 0; text-align: right; font-weight: 600; }

/* ---------- Team ---------- */
.team-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; text-align: center; }
.team-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 32px 20px;
  box-shadow: var(--shadow-sm);
}
.team-avatar {
  width: 76px;
  height: 76px;
  margin: 0 auto 16px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--white);
  background: var(--avatar-color, var(--blue));
}
.team-card h3 { font-size: 1rem; margin-bottom: .2em; }
.team-role { font-size: .85rem; color: var(--red); font-weight: 500; margin: 0; }

/* ---------- Blog ---------- */
.blog-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.blog-card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform .18s ease, box-shadow .18s ease;
}
.blog-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.blog-media { aspect-ratio: 16/10; overflow: hidden; background: var(--paper-tint); }
.blog-media img { width: 100%; height: 100%; object-fit: cover; }
.blog-body { padding: 22px 22px 26px; }
.blog-date { font-size: .74rem; text-transform: uppercase; letter-spacing: .05em; color: var(--gold-dark); font-weight: 600; margin-bottom: .5em; }
.blog-body h3 { font-size: 1.02rem; }
.blog-body p { font-size: .88rem; }
.blog-link { font-weight: 600; font-size: .88rem; color: var(--red); }

/* ---------- Contact ---------- */
.contact-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: start; }
.contact-copy h2 { font-size: clamp(1.7rem, 2.6vw, 2.2rem); }
.contact-list { display: flex; flex-direction: column; gap: 10px; margin: 20px 0 24px; }
.contact-list a { text-decoration: underline; }
.social-links { display: flex; gap: 12px; }
.social-links a {
  width: 40px; height: 40px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,.3);
  display: flex; align-items: center; justify-content: center;
  font-size: .75rem; font-weight: 700;
  color: var(--white);
}
.social-links a:hover { background: var(--gradient-brand); border-color: transparent; }

.contact-form {
  background: var(--white);
  border-radius: var(--radius);
  padding: 32px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.contact-form label { font-family: var(--font-head); font-size: .85rem; font-weight: 600; color: var(--ink); display: flex; flex-direction: column; gap: 6px; }
.contact-form input, .contact-form textarea {
  font-family: var(--font-body);
  font-size: .95rem;
  padding: .8em 1em;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
  background: var(--paper);
  color: var(--ink);
  resize: vertical;
}
.contact-form input:focus, .contact-form textarea:focus { outline: 2px solid var(--blue); outline-offset: 1px; }

.form-status { font-size: .88rem; margin: 0; min-height: 1.2em; }
.form-status.is-success { color: var(--blue-dark); font-weight: 600; }
.form-status.is-error { color: var(--red-dark); }
.form-status a { text-decoration: underline; }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: rgba(255,255,255,.7); padding: 40px 0; border-top: 1px solid rgba(255,255,255,.08); }
.footer-inner { display: flex; flex-direction: column; align-items: center; gap: 8px; text-align: center; }
.brand-footer .brand-name { color: var(--white); }
.brand-footer .brand-name em { color: var(--gold); }
.footer-tagline { font-family: var(--font-accent); font-style: italic; color: rgba(255,255,255,.6); margin: 4px 0; }
.footer-copy { font-size: .82rem; margin: 0; }

/* =========================================================
   Responsive
   ========================================================= */
@media (max-width: 980px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-media { order: -1; }
  .mv-grid { grid-template-columns: 1fr; }
  .cause-grid { grid-template-columns: repeat(2, 1fr); }
  .give-grid { grid-template-columns: 1fr; }
  .team-grid { grid-template-columns: repeat(2, 1fr); }
  .blog-grid { grid-template-columns: 1fr; }
  .contact-inner { grid-template-columns: 1fr; }
}

@media (max-width: 760px) {
  .main-nav {
    position: absolute;
    top: 84px;
    left: 0;
    right: 0;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    padding: 8px 24px 20px;
    transform: translateY(-8px);
    opacity: 0;
    pointer-events: none;
    transition: opacity .18s ease, transform .18s ease;
  }
  .main-nav.is-open { opacity: 1; transform: translateY(0); pointer-events: auto; }
  .main-nav a { width: 100%; padding: 12px 0; border-bottom: 1px solid var(--line); }
  .header-actions .btn-primary { display: none; }
  .nav-toggle { display: flex; }
  .cause-grid { grid-template-columns: 1fr; }
  .team-grid { grid-template-columns: 1fr; }
  .brand-tagline { display: none; }
}

.nav-toggle.is-active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.is-active span:nth-child(2) { opacity: 0; }
.nav-toggle.is-active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
