/* ═══════════════════════════════════════════
   RTN Foundation — Global Stylesheet
   assets/css/style.css
═══════════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=Barlow+Condensed:wght@400;600;700;800&family=Inter:wght@400;500;600&display=swap');

/* ── Tokens ── */
:root {
  --teal:        #2a9d8f;
  --teal-dark:   #085041;
  --teal-light:  #e1f5ee;
  --teal-mid:    #9fe1cb;
  --orange:      #e87722;
  --orange-dark: #c9650e;
  --orange-light:#fff3e8;
  --white:       #ffffff;
  --off:         #f4f9f8;
  --text:        #1a3c3a;
  --muted:       #5a7a78;
  --border:      #d0e8e4;
  --dark:        #0d2421;
  --error-bg:    #fff3f2;
  --error-txt:   #a32d2d;
  --error-bdr:   #f09595;
  --success-bg:  #e1f5ee;
  --success-txt: #085041;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: 'Inter', sans-serif; color: var(--text); background: var(--white); min-height: 100vh; }
h1, h2, h3, h4 { font-family: 'Barlow Condensed', sans-serif; font-weight: 700; line-height: 1.1; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

/* ══════════════════════════
   NAV
══════════════════════════ */
nav {
  position: sticky; top: 0; z-index: 100;
  background: var(--white); border-bottom: 1px solid var(--border);
  padding: 0 2rem; display: flex; align-items: center;
  justify-content: space-between; height: 64px;
}
.nav-logo { display: flex; align-items: center; gap: 10px; }
.tiles    { display: flex; flex-direction: column; gap: 2px; }
.tile {
  border-radius: 4px; display: flex; align-items: center; justify-content: center;
  font-family: 'Barlow Condensed', sans-serif; font-weight: 800; color: #fff;
  width: 22px; height: 22px; font-size: .7rem;
}
.tile.r { background: var(--teal); }
.tile.t { background: var(--orange); margin-left: 6px; }
.tile.n { background: var(--teal);   margin-left: 12px; }
.nav-brand .b1 { font-family: 'Barlow Condensed', sans-serif; color: var(--orange); font-size: .85rem; font-weight: 800; letter-spacing: 1.5px; text-transform: uppercase; line-height: 1.2; }
.nav-brand .b2 { font-family: 'Barlow Condensed', sans-serif; color: var(--teal);   font-size: .85rem; font-weight: 700; letter-spacing: 1.5px; text-transform: uppercase; line-height: 1.2; }

.nav-right  { display: flex; align-items: center; gap: .75rem; }
.nav-links  { display: flex; align-items: center; }
.nav-links a {
  padding: 0 .85rem; height: 64px; display: flex; align-items: center;
  font-size: .82rem; font-weight: 500; color: var(--muted);
  border-bottom: 2px solid transparent;
  transition: color .15s, border-color .15s;
}
.nav-links a:hover, .nav-links a.active { color: var(--teal); border-bottom-color: var(--teal); }
.nav-donate {
  padding: .45rem 1.1rem; background: var(--orange); color: #fff !important;
  border-radius: 6px; font-size: .82rem; font-weight: 600;
  transition: background .15s; border: none; cursor: pointer;
}
.nav-donate:hover { background: var(--orange-dark) !important; }

.hamburger { display: none; flex-direction: column; gap: 4px; cursor: pointer; background: none; border: none; padding: 4px; }
.hamburger span { width: 22px; height: 2px; background: var(--text); border-radius: 2px; display: block; }

.mobile-menu {
  display: none; position: fixed; top: 64px; left: 0; right: 0;
  background: var(--white); border-bottom: 1px solid var(--border);
  flex-direction: column; z-index: 99; padding: .5rem 0;
}
.mobile-menu.open { display: flex; }
.mobile-menu a { padding: .75rem 2rem; font-size: .9rem; font-weight: 500; color: var(--text); border-left: 3px solid transparent; }
.mobile-menu a:hover { color: var(--teal); border-left-color: var(--teal); background: var(--off); }
.mobile-donate { color: var(--orange) !important; font-weight: 700 !important; }

/* ══════════════════════════
   LAYOUT HELPERS
══════════════════════════ */
.container  { max-width: 1100px; margin: 0 auto; padding: 0 1.5rem; }
.section    { padding: 5rem 0; }
.section-sm { padding: 3rem 0; }
.section-dark { background: var(--dark); color: #fff; }
.section-off  { background: var(--off); }
.section-teal { background: var(--teal); color: #fff; }

.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.5rem; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.25rem; }

/* ══════════════════════════
   TYPOGRAPHY
══════════════════════════ */
.eyebrow {
  font-size: .65rem; font-weight: 700; letter-spacing: 3px;
  text-transform: uppercase; color: var(--orange); margin-bottom: .6rem;
}
.eyebrow.light { color: var(--teal-mid); }
.section-title { font-size: clamp(2rem, 4vw, 3rem); color: var(--text); margin-bottom: 1rem; }
.section-title.light { color: #fff; }
.section-sub   { font-size: .95rem; color: var(--muted); line-height: 1.8; max-width: 560px; }
.section-sub.light { color: rgba(255,255,255,.75); }
.divider { width: 48px; height: 4px; background: var(--orange); border-radius: 2px; margin: 1.25rem 0; }
.divider.teal { background: var(--teal); }

/* ══════════════════════════
   BUTTONS
══════════════════════════ */
.btn {
  display: inline-flex; align-items: center; gap: 7px;
  padding: .7rem 1.6rem; border-radius: 7px;
  font-size: .88rem; font-weight: 600; cursor: pointer;
  border: none; transition: background .15s, transform .1s;
  font-family: inherit;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--orange); color: #fff; }
.btn-primary:hover { background: var(--orange-dark); }
.btn-outline  { background: transparent; color: var(--teal); border: 1.5px solid var(--teal); }
.btn-outline:hover { background: var(--teal-light); }
.btn-white    { background: #fff; color: var(--teal-dark); }
.btn-white:hover  { background: var(--teal-light); }
.btn-teal     { background: var(--teal); color: #fff; }
.btn-teal:hover   { background: var(--teal-dark); }
.btn-block    { width: 100%; justify-content: center; }

.wa-btn {
  display: inline-flex; align-items: center; gap: .6rem;
  background: #25D366; color: #fff; border: none; border-radius: 8px;
  padding: .65rem 1.4rem; font-size: .88rem; font-weight: 600;
  cursor: pointer; transition: background .15s; font-family: inherit;
}
.wa-btn:hover { background: #1ebe59; }

/* ══════════════════════════
   CARDS & TAGS
══════════════════════════ */
.card {
  background: var(--white); border: 1px solid var(--border);
  border-radius: 12px; overflow: hidden;
  transition: box-shadow .2s, transform .2s;
}
.card:hover { box-shadow: 0 8px 32px rgba(42,157,143,.13); transform: translateY(-2px); }

.tag { display: inline-block; padding: 3px 10px; border-radius: 99px; font-size: .68rem; font-weight: 600; letter-spacing: .5px; text-transform: uppercase; }
.tag-teal   { background: var(--teal-light); color: var(--teal-dark); }
.tag-orange { background: var(--orange-light); color: var(--orange-dark); }
.reg-badge  { display: inline-block; font-size: .68rem; background: rgba(42,157,143,.15); border: 1px solid rgba(42,157,143,.25); border-radius: 99px; padding: 3px 10px; color: var(--teal-mid); font-weight: 500; }

/* ══════════════════════════
   PAGE HERO (inner pages)
══════════════════════════ */
.page-hero {
  background: var(--dark); padding: 4rem 0 3.5rem;
  position: relative; overflow: hidden;
}
.page-hero::after {
  content: ''; position: absolute; right: -5%; top: -10%; bottom: -10%;
  width: 45%; background: radial-gradient(ellipse, rgba(42,157,143,.15) 0%, transparent 70%);
  pointer-events: none;
}
.page-hero .eyebrow { color: var(--teal-mid); }
.page-hero h1  { font-size: clamp(2.2rem, 5vw, 3.8rem); color: #fff; margin-bottom: .75rem; }
.page-hero p   { color: rgba(255,255,255,.65); font-size: .95rem; line-height: 1.75; max-width: 540px; }

/* ══════════════════════════
   FORMS
══════════════════════════ */
.form-group { margin-bottom: 1.1rem; }
.form-group label { display: block; font-size: .78rem; font-weight: 600; color: var(--text); margin-bottom: .35rem; }
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%; padding: .65rem .9rem;
  border: 1.5px solid var(--border); border-radius: 8px;
  font-size: .88rem; color: var(--text); background: var(--white);
  font-family: inherit; outline: none; transition: border-color .18s;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus { border-color: var(--teal); }
.form-group textarea { min-height: 110px; resize: vertical; }
.form-row   { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.form-note  { font-size: .72rem; color: var(--muted); margin-top: .4rem; }
.form-error { font-size: .75rem; color: var(--error-txt); margin-top: .3rem; }

.checkbox-group { display: flex; flex-direction: column; gap: .5rem; }
.checkbox-item  { display: flex; align-items: center; gap: .6rem; font-size: .85rem; color: var(--text); cursor: pointer; }
.checkbox-item input[type="checkbox"] { width: auto; accent-color: var(--teal); }

/* Flash messages */
.flash { padding: .75rem 1rem; border-radius: 8px; font-size: .85rem; margin-bottom: 1rem; }
.flash-success { background: var(--success-bg); color: var(--success-txt); border: 1px solid var(--teal-mid); }
.flash-error   { background: var(--error-bg);   color: var(--error-txt);   border: 1px solid var(--error-bdr); }

/* ══════════════════════════
   ABOUT PAGE
══════════════════════════ */
.info-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; margin: 2.5rem 0; }
.info-card { background: var(--off); border: 1px solid var(--border); border-radius: 10px; padding: 1.25rem; }
.info-card .label { font-size: .65rem; font-weight: 700; letter-spacing: 2px; text-transform: uppercase; color: var(--muted); margin-bottom: .4rem; }
.info-card .value { font-family: 'Barlow Condensed', sans-serif; font-size: 1.2rem; font-weight: 700; color: var(--text); }

.mv-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; margin: 2.5rem 0; }
.mv-card { border-radius: 12px; padding: 1.75rem; background: var(--white); border: 1px solid var(--border); }
.mv-card.mission { border-left: 4px solid var(--orange); }
.mv-card.vision  { border-left: 4px solid var(--teal); }
.mv-card h3 { font-size: 1.1rem; margin-bottom: .6rem; color: var(--text); }
.mv-card p  { font-size: .88rem; color: var(--muted); line-height: 1.75; }

.value-card { background: var(--off); border-radius: 10px; padding: 1.1rem; border-left: 3px solid var(--teal); }
.value-card h4 { font-size: .85rem; font-weight: 700; color: var(--teal-dark); margin-bottom: 3px; }
.value-card p  { font-size: .78rem; color: var(--muted); line-height: 1.55; }

.timeline { position: relative; padding-left: 2rem; }
.timeline::before { content: ''; position: absolute; left: 6px; top: 8px; bottom: 8px; width: 2px; background: var(--border); }
.timeline-item { position: relative; margin-bottom: 2rem; }
.timeline-dot  { position: absolute; left: -1.75rem; top: 4px; width: 14px; height: 14px; border-radius: 50%; background: var(--teal); border: 3px solid var(--white); box-shadow: 0 0 0 2px var(--teal); }
.timeline-item .date { font-size: .7rem; font-weight: 700; color: var(--orange); letter-spacing: 1px; margin-bottom: .25rem; text-transform: uppercase; }
.timeline-item h4 { font-size: 1rem; margin-bottom: .3rem; color: var(--text); }
.timeline-item p  { font-size: .83rem; color: var(--muted); line-height: 1.65; }

/* ══════════════════════════
   PROGRAMS PAGE
══════════════════════════ */
.program-full { border: 1px solid var(--border); border-radius: 14px; overflow: hidden; margin-bottom: 1.5rem; background: var(--white); }
.program-header { padding: 1.5rem 1.75rem; display: flex; align-items: flex-start; gap: 1rem; border-bottom: 1px solid var(--border); background: var(--off); }
.program-header-icon { width: 52px; height: 52px; border-radius: 10px; display: flex; align-items: center; justify-content: center; font-size: 1.4rem; flex-shrink: 0; }
.program-header-icon.teal   { background: var(--teal-light); }
.program-header-icon.orange { background: var(--orange-light); }
.program-header h3 { font-size: 1.35rem; color: var(--text); margin-bottom: .25rem; }
.program-header p  { font-size: .82rem; color: var(--muted); line-height: 1.6; }
.program-body { padding: 1.5rem 1.75rem; }
.program-photos { display: grid; grid-template-columns: repeat(4, 1fr); gap: .5rem; margin-top: 1rem; }
.program-photo  { height: 90px; border-radius: 6px; overflow: hidden; }
.program-photo img { width: 100%; height: 100%; object-fit: cover; }

/* ══════════════════════════
   NEWS PAGE
══════════════════════════ */
.news-layout { display: grid; grid-template-columns: 2fr 1fr; gap: 2rem; align-items: start; }
.news-card  { padding: 1.5rem; }
.news-date  { font-size: .72rem; font-weight: 600; color: var(--orange); letter-spacing: 1px; text-transform: uppercase; margin-bottom: .5rem; }
.news-card h3 { font-size: 1.2rem; margin-bottom: .5rem; color: var(--text); }
.news-card p  { font-size: .83rem; color: var(--muted); line-height: 1.7; }
.read-more    { font-size: .78rem; color: var(--teal); font-weight: 600; margin-top: .75rem; display: inline-block; }

.event-calendar { background: var(--white); border: 1px solid var(--border); border-radius: 12px; overflow: hidden; }
.cal-header { background: var(--teal); color: #fff; padding: .75rem 1rem; display: flex; align-items: center; justify-content: space-between; }
.cal-header h4 { font-size: .95rem; }
.cal-nav { background: none; border: none; color: #fff; cursor: pointer; font-size: 1.1rem; padding: 0 .25rem; }
.cal-grid  { padding: .75rem; }
.cal-days  { display: grid; grid-template-columns: repeat(7, 1fr); text-align: center; }
.cal-day-label { font-size: .65rem; font-weight: 700; color: var(--muted); padding: .35rem 0; }
.cal-day       { font-size: .78rem; padding: .3rem; border-radius: 6px; cursor: default; text-align: center; }
.cal-day.today      { background: var(--teal); color: #fff; font-weight: 700; }
.cal-day.has-event  { color: var(--orange); font-weight: 600; }
.cal-day.other-month { color: #ccc; }

.event-item { padding: .75rem; border-left: 3px solid var(--teal); margin-bottom: .6rem; background: var(--off); border-radius: 0 8px 8px 0; }
.event-item .ev-date { font-size: .68rem; font-weight: 700; color: var(--orange); text-transform: uppercase; letter-spacing: .5px; }
.event-item h5 { font-size: .85rem; color: var(--text); margin-top: 2px; }

/* ══════════════════════════
   GALLERY PAGE
══════════════════════════ */
.gallery-filters { display: flex; gap: .5rem; flex-wrap: wrap; margin-bottom: 2rem; }
.filter-btn { padding: .4rem 1rem; border-radius: 99px; font-size: .78rem; font-weight: 600; border: 1.5px solid var(--border); background: var(--white); color: var(--muted); cursor: pointer; transition: all .15s; }
.filter-btn.active, .filter-btn:hover { background: var(--teal); color: #fff; border-color: var(--teal); }

.gallery-grid { columns: 3; gap: .75rem; }
.gallery-item { break-inside: avoid; margin-bottom: .75rem; border-radius: 10px; overflow: hidden; position: relative; cursor: pointer; }
.gallery-item img { width: 100%; display: block; transition: transform .3s; }
.gallery-item:hover img { transform: scale(1.03); }
.gallery-overlay { position: absolute; inset: 0; background: rgba(8,80,65,.75); display: flex; align-items: center; justify-content: center; opacity: 0; transition: opacity .2s; border-radius: 10px; }
.gallery-item:hover .gallery-overlay { opacity: 1; }
.gallery-overlay span { font-size: 1.5rem; color: #fff; }

/* Placeholder for missing images */
.img-ph { background: linear-gradient(135deg, var(--teal-light), var(--teal-mid)); display: flex; align-items: center; justify-content: center; font-size: 2rem; color: var(--teal); }

/* ══════════════════════════
   VOLUNTEER PAGE
══════════════════════════ */
.vol-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: start; }
.vol-benefit { display: flex; gap: .75rem; margin-bottom: 1rem; align-items: flex-start; }
.vol-benefit-icon { width: 36px; height: 36px; border-radius: 8px; background: var(--teal-light); display: flex; align-items: center; justify-content: center; font-size: 1rem; flex-shrink: 0; }
.vol-benefit-text h4 { font-size: .9rem; font-weight: 600; margin-bottom: 2px; }
.vol-benefit-text p  { font-size: .78rem; color: var(--muted); line-height: 1.5; }

/* ══════════════════════════
   DONATE PAGE
══════════════════════════ */
.donate-hero { background: var(--orange); padding: 4rem 0; text-align: center; }
.donate-hero h1 { font-size: clamp(2.2rem, 5vw, 3.5rem); color: #fff; margin-bottom: .75rem; }
.donate-hero p  { color: rgba(255,255,255,.85); font-size: .95rem; max-width: 500px; margin: 0 auto; line-height: 1.75; }
.donate-card { border: 1px solid var(--border); border-radius: 14px; padding: 2rem; background: var(--white); }
.donate-card h3 { font-size: 1.3rem; margin-bottom: .5rem; color: var(--text); }
.donate-card p  { font-size: .83rem; color: var(--muted); line-height: 1.7; margin-bottom: 1.25rem; }
.why-card { background: var(--off); border-radius: 10px; padding: 1.25rem; text-align: center; }
.why-card .wi { font-size: 2rem; margin-bottom: .6rem; }
.why-card h4 { font-size: .95rem; margin-bottom: .3rem; color: var(--text); }
.why-card p  { font-size: .78rem; color: var(--muted); line-height: 1.5; }

/* ══════════════════════════
   PARTNERS PAGE
══════════════════════════ */
.ps-card { border: 1px solid var(--border); border-radius: 10px; padding: 1.5rem; text-align: center; background: var(--white); transition: box-shadow .2s; }
.ps-card:hover { box-shadow: 0 4px 20px rgba(0,0,0,.08); }
.ps-logo { height: 60px; display: flex; align-items: center; justify-content: center; margin-bottom: .75rem; }
.ps-logo-text { font-family: 'Barlow Condensed', sans-serif; font-size: 1.1rem; font-weight: 800; color: var(--muted); }
.ps-card p { font-size: .75rem; color: var(--muted); line-height: 1.5; }
.become-partner { background: var(--dark); border-radius: 16px; padding: 3rem; display: grid; grid-template-columns: 1fr auto; gap: 2rem; align-items: center; }
.become-partner h3 { font-size: 1.8rem; color: #fff; margin-bottom: .5rem; }
.become-partner p  { color: rgba(255,255,255,.65); font-size: .88rem; line-height: 1.65; }

/* ══════════════════════════
   CONTACT PAGE
══════════════════════════ */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; }
.contact-info-item { display: flex; gap: 1rem; margin-bottom: 1.5rem; align-items: flex-start; }
.contact-icon { width: 44px; height: 44px; border-radius: 10px; background: var(--teal-light); display: flex; align-items: center; justify-content: center; font-size: 1.15rem; flex-shrink: 0; color: var(--teal); }
.contact-info-item h4 { font-size: .85rem; font-weight: 600; margin-bottom: 3px; color: var(--text); }
.contact-info-item p  { font-size: .83rem; color: var(--muted); line-height: 1.6; }
.contact-info-item a  { color: var(--teal); }
.office-hours { background: var(--off); border-radius: 12px; padding: 1.5rem; }
.office-hours h4 { font-size: .9rem; font-weight: 700; margin-bottom: .75rem; color: var(--text); }
.oh-row { display: flex; justify-content: space-between; font-size: .82rem; padding: .35rem 0; border-bottom: 1px solid var(--border); color: var(--muted); }
.oh-row:last-child { border-bottom: none; }
.oh-row span:last-child { color: var(--text); font-weight: 500; }

/* ══════════════════════════
   TESTIMONIAL
══════════════════════════ */
.testimonial-block { background: var(--teal-light); border-left: 4px solid var(--teal); border-radius: 0 12px 12px 0; padding: 1.5rem; }
.testimonial-block blockquote { font-size: .95rem; color: var(--text); line-height: 1.7; font-style: italic; }
.testimonial-block cite { display: block; margin-top: .6rem; font-size: .78rem; font-weight: 600; color: var(--teal-dark); font-style: normal; }

/* ══════════════════════════
   FOOTER
══════════════════════════ */
footer { background: var(--dark); color: rgba(255,255,255,.6); padding: 3.5rem 0 1.5rem; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 2rem; margin-bottom: 2.5rem; }
.footer-logo-tiles { display: flex; flex-direction: column; gap: 2px; margin-bottom: .5rem; }
.footer-logo-tiles .tile { width: 20px; height: 20px; font-size: .6rem; }
.footer-logo-tiles .tile.t { margin-left: 5px; }
.footer-logo-tiles .tile.n { margin-left: 10px; }
.footer-name    { color: #fff; font-family: 'Barlow Condensed', sans-serif; font-size: 1.1rem; font-weight: 700; letter-spacing: 1px; margin-bottom: .4rem; }
.footer-tagline { font-size: .82rem; line-height: 1.7; color: rgba(255,255,255,.5); margin-bottom: .75rem; max-width: 220px; }
.footer-col h5  { font-size: .75rem; font-weight: 700; letter-spacing: 2px; text-transform: uppercase; color: rgba(255,255,255,.9); margin-bottom: .9rem; }
.footer-col a   { display: block; font-size: .82rem; color: rgba(255,255,255,.5); padding: .2rem 0; cursor: pointer; transition: color .15s; }
.footer-col a:hover { color: var(--teal-mid); }
.footer-bottom  { border-top: 1px solid rgba(255,255,255,.08); padding-top: 1.25rem; display: flex; align-items: center; justify-content: space-between; font-size: .75rem; flex-wrap: wrap; gap: .5rem; }

/* ══════════════════════════
   RESPONSIVE
══════════════════════════ */
@media (max-width: 900px) {
  .nav-links   { display: none; }
  .hamburger   { display: flex; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .info-grid   { grid-template-columns: 1fr; }
  .mv-grid     { grid-template-columns: 1fr; }
  .news-layout { grid-template-columns: 1fr; }
  .gallery-grid { columns: 2; }
  .vol-grid    { grid-template-columns: 1fr; }
  .contact-grid{ grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand-col { grid-column: 1 / -1; }
  .become-partner   { grid-template-columns: 1fr; }
  .program-photos   { grid-template-columns: repeat(2,1fr); }
}
@media (max-width: 600px) {
  nav { padding: 0 1rem; }
  .gallery-grid { columns: 1; }
  .form-row     { grid-template-columns: 1fr; }
  .footer-grid  { grid-template-columns: 1fr; }
}
