/* ============================================================
   BAJA REHAB — Classic Web 2.0 Stylesheet
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Trebuchet+MS&family=Verdana&display=swap');

/* ===== RESET ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: Verdana, Geneva, sans-serif;
  font-size: 13px;
  color: #333;
  background: #c8dce8 url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="4" height="4"><rect width="4" height="4" fill="%23c8dce8"/><rect width="1" height="1" fill="%23b8ccd8" opacity="0.4"/></svg>') repeat;
  line-height: 1.6;
}
a { text-decoration: none; color: #1a6ea8; }
a:hover { text-decoration: underline; color: #e05c00; }
img { max-width: 100%; display: block; }
ul { list-style: none; }

/* ===== PAGE WRAPPER ===== */
#wrapper {
  max-width: 980px;
  margin: 0 auto;
  background: #f0f4f8;
  box-shadow: 0 0 18px rgba(0,0,0,.35);
}

/* ===== TOP BAR ===== */
#topbar {
  background: linear-gradient(to bottom, #2a7ab8 0%, #1a5a90 100%);
  padding: 5px 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 2px solid #0e3d66;
}
#topbar p { color: rgba(255,255,255,.8); font-size: 11px; }
#topbar a { color: #a8d8ff; font-size: 11px; margin-left: 12px; }
#topbar a:hover { color: #fff; text-decoration: none; }

/* ===== HEADER ===== */
#header {
  background: linear-gradient(to bottom, #ffffff 0%, #ddeeff 40%, #aaccee 100%);
  padding: 18px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 3px solid #1a5a90;
  position: relative;
  overflow: hidden;
}
#header::after {
  content: '';
  position: absolute; top: 0; left: 0; right: 0;
  height: 50%;
  background: linear-gradient(to bottom, rgba(255,255,255,.5), transparent);
  pointer-events: none;
}
.header-logo { display: flex; align-items: center; gap: 12px; z-index: 1; }
.header-logo img { height: 60px; width: auto; }
.logo-text h1 {
  font-family: 'Trebuchet MS', sans-serif;
  font-size: 26px;
  color: #1a4a7a;
  text-shadow: 1px 1px 0 rgba(255,255,255,.8), 0 2px 4px rgba(0,0,0,.2);
  letter-spacing: -0.5px;
}
.logo-text p { font-size: 11px; color: #4a7aaa; font-style: italic; }
.header-badge {
  z-index: 1;
  background: linear-gradient(135deg, #ff9900 0%, #ff6600 100%);
  border: 2px solid #cc4400;
  border-radius: 8px;
  padding: 8px 14px;
  text-align: center;
  box-shadow: 2px 2px 6px rgba(0,0,0,.3), inset 0 1px 0 rgba(255,255,255,.4);
}
.header-badge strong { display: block; color: #fff; font-size: 15px; text-shadow: 1px 1px 2px rgba(0,0,0,.4); }
.header-badge span { color: #ffe0b0; font-size: 10px; }

/* ===== NAVIGATION ===== */
#navbar {
  background: linear-gradient(to bottom, #3a9ad0 0%, #1a6aaa 50%, #0e4a88 100%);
  border-bottom: 3px solid #0a3060;
  border-top: 1px solid #5abce8;
  position: relative;
}
#navbar::after {
  content: '';
  position: absolute; top: 0; left: 0; right: 0; height: 50%;
  background: linear-gradient(to bottom, rgba(255,255,255,.18), transparent);
  pointer-events: none;
}
#navbar ul { display: flex; flex-wrap: wrap; }
#navbar ul li a {
  display: block;
  padding: 11px 18px;
  color: #e8f4ff;
  font-size: 12px;
  font-weight: bold;
  font-family: 'Trebuchet MS', sans-serif;
  text-shadow: 0 1px 2px rgba(0,0,0,.5);
  border-right: 1px solid rgba(255,255,255,.12);
  transition: background .15s;
  position: relative; z-index: 1;
  letter-spacing: .02em;
}
#navbar ul li a:hover, #navbar ul li a.active {
  background: linear-gradient(to bottom, rgba(255,255,255,.25), rgba(255,255,255,.08));
  color: #fff;
  text-decoration: none;
}
#navbar ul li a.active { border-bottom: 2px solid #ffcc00; }
.nav-toggle {
  display: none; background: none; border: none; cursor: pointer;
  padding: 10px 16px; color: white; font-size: 18px; z-index: 1; position: relative;
}

/* ===== LAYOUT ===== */
#content-area {
  display: flex;
  gap: 0;
}
#main { flex: 1; padding: 18px; min-width: 0; }
#sidebar {
  width: 210px;
  flex-shrink: 0;
  padding: 14px;
  background: #e4eef6;
  border-left: 1px solid #b0c8dc;
}

/* ===== PANEL / BOX ===== */
.panel {
  background: #fff;
  border: 1px solid #a8c0d8;
  border-radius: 8px;
  margin-bottom: 16px;
  overflow: hidden;
  box-shadow: 2px 3px 8px rgba(0,0,0,.12), inset 0 1px 0 rgba(255,255,255,.9);
}
.panel-head {
  background: linear-gradient(to bottom, #4aaee0 0%, #1a7ac0 100%);
  padding: 8px 14px;
  position: relative;
  overflow: hidden;
}
.panel-head::after {
  content: '';
  position: absolute; top: 0; left: 0; right: 0; height: 50%;
  background: linear-gradient(to bottom, rgba(255,255,255,.25), transparent);
  pointer-events: none;
}
.panel-head h2, .panel-head h3 {
  color: #fff;
  font-family: 'Trebuchet MS', sans-serif;
  font-size: 14px;
  text-shadow: 0 1px 3px rgba(0,0,0,.4);
  position: relative; z-index: 1;
}
.panel-body { padding: 14px; }
.panel-green .panel-head { background: linear-gradient(to bottom, #66cc44 0%, #338800 100%); }
.panel-orange .panel-head { background: linear-gradient(to bottom, #ffaa33 0%, #cc6600 100%); }
.panel-red .panel-head { background: linear-gradient(to bottom, #ee4444 0%, #aa1111 100%); }
.panel-teal .panel-head { background: linear-gradient(to bottom, #33bbaa 0%, #1a7a6a 100%); }

/* ===== HERO BANNER ===== */
.hero-banner {
  position: relative;
  background: linear-gradient(135deg, #1a5a90 0%, #0e3060 100%),
              url('https://images.unsplash.com/photo-1506905925346-21bda4d32df4?w=1200&q=80') center/cover;
  background-blend-mode: multiply;
  padding: 48px 32px;
  margin-bottom: 16px;
  border-radius: 8px;
  border: 2px solid #0a2848;
  overflow: hidden;
  box-shadow: 3px 4px 12px rgba(0,0,0,.3);
}
.hero-banner::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0; height: 50%;
  background: linear-gradient(to bottom, rgba(255,255,255,.12), transparent);
  pointer-events: none;
}
.hero-banner h2 {
  font-family: 'Trebuchet MS', sans-serif;
  font-size: 28px;
  color: #fff;
  text-shadow: 2px 2px 6px rgba(0,0,0,.6);
  margin-bottom: 10px;
  position: relative; z-index: 1;
}
.hero-banner p {
  color: #c8e4ff;
  font-size: 13px;
  max-width: 560px;
  line-height: 1.7;
  margin-bottom: 20px;
  position: relative; z-index: 1;
}
.hero-stats {
  display: flex; gap: 24px; flex-wrap: wrap;
  position: relative; z-index: 1;
  border-top: 1px solid rgba(255,255,255,.2);
  padding-top: 18px; margin-top: 4px;
}
.hero-stat strong { display: block; font-size: 22px; color: #ffdd88; font-family: 'Trebuchet MS', sans-serif; }
.hero-stat span { font-size: 10px; color: rgba(255,255,255,.65); text-transform: uppercase; letter-spacing: .06em; }

/* ===== BUTTONS ===== */
.btn {
  display: inline-block;
  padding: 9px 20px;
  border-radius: 6px;
  font-family: 'Trebuchet MS', sans-serif;
  font-size: 12px;
  font-weight: bold;
  cursor: pointer;
  border: none;
  text-align: center;
  position: relative;
  overflow: hidden;
  transition: filter .15s, transform .1s;
  box-shadow: 1px 2px 5px rgba(0,0,0,.3), inset 0 1px 0 rgba(255,255,255,.4);
  text-shadow: 0 1px 2px rgba(0,0,0,.3);
}
.btn::after {
  content: '';
  position: absolute; top: 0; left: 0; right: 0; height: 50%;
  background: linear-gradient(to bottom, rgba(255,255,255,.35), transparent);
  border-radius: 6px 6px 0 0;
  pointer-events: none;
}
.btn:hover { filter: brightness(1.1); transform: translateY(-1px); text-decoration: none; }
.btn:active { transform: translateY(1px); }
.btn-blue { background: linear-gradient(to bottom, #4aaad8 0%, #1a6ab0 100%); color: #fff; }
.btn-green { background: linear-gradient(to bottom, #66cc44 0%, #338800 100%); color: #fff; }
.btn-orange { background: linear-gradient(to bottom, #ffaa33 0%, #dd6600 100%); color: #fff; }
.btn-red { background: linear-gradient(to bottom, #ee5544 0%, #bb1100 100%); color: #fff; }
.btn-gray { background: linear-gradient(to bottom, #ccddee 0%, #99aabb 100%); color: #334; }
.btn-lg { padding: 12px 28px; font-size: 14px; }
.btn-sm { padding: 5px 12px; font-size: 11px; }

/* ===== SERVICE CARDS ===== */
.service-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-bottom: 16px; }
.service-card {
  background: #fff;
  border: 1px solid #aac8e0;
  border-radius: 8px;
  padding: 16px;
  box-shadow: 2px 3px 7px rgba(0,0,0,.1), inset 0 1px 0 rgba(255,255,255,.9);
  transition: box-shadow .2s;
}
.service-card:hover { box-shadow: 3px 5px 14px rgba(0,0,0,.18); }
.service-card-icon {
  width: 44px; height: 44px;
  background: linear-gradient(135deg, #4aaad8, #1a6ab0);
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 10px;
  box-shadow: 1px 2px 5px rgba(0,0,0,.2), inset 0 1px 0 rgba(255,255,255,.3);
}
.service-card-icon svg { color: white; }
.service-card h3 { font-family: 'Trebuchet MS', sans-serif; font-size: 13px; color: #1a4a7a; margin-bottom: 6px; }
.service-card p { font-size: 12px; color: #556; line-height: 1.6; }

/* ===== TESTIMONIAL ===== */
.testimonial {
  background: linear-gradient(to bottom, #f8fcff, #eef4fa);
  border: 1px solid #b0cce0;
  border-left: 4px solid #2a9ad0;
  border-radius: 0 8px 8px 0;
  padding: 14px 16px;
  margin-bottom: 12px;
  box-shadow: 1px 2px 6px rgba(0,0,0,.08);
}
.testimonial p { font-size: 12px; color: #334; font-style: italic; line-height: 1.7; margin-bottom: 8px; }
.testimonial-author { display: flex; align-items: center; gap: 8px; }
.testimonial-avatar {
  width: 32px; height: 32px; border-radius: 50%;
  background: linear-gradient(135deg, #4aaad8, #1a5a90);
  display: flex; align-items: center; justify-content: center;
  color: white; font-size: 12px; font-weight: bold;
  box-shadow: 1px 1px 4px rgba(0,0,0,.2);
  flex-shrink: 0;
}
.testimonial-author strong { font-size: 11px; color: #1a4a7a; display: block; }
.testimonial-author span { font-size: 10px; color: #778; }
.stars { color: #ffaa00; font-size: 13px; letter-spacing: 1px; }

/* ===== SIDEBAR WIDGETS ===== */
.widget {
  background: #fff;
  border: 1px solid #aac4dc;
  border-radius: 6px;
  margin-bottom: 14px;
  overflow: hidden;
  box-shadow: 1px 2px 5px rgba(0,0,0,.1);
}
.widget-head {
  background: linear-gradient(to bottom, #3a9ad0 0%, #1a6aaa 100%);
  padding: 7px 12px;
  position: relative; overflow: hidden;
}
.widget-head::after {
  content: '';
  position: absolute; top: 0; left: 0; right: 0; height: 50%;
  background: linear-gradient(to bottom, rgba(255,255,255,.2), transparent);
  pointer-events: none;
}
.widget-head h4 {
  color: #fff; font-size: 12px;
  font-family: 'Trebuchet MS', sans-serif;
  text-shadow: 0 1px 2px rgba(0,0,0,.4);
  position: relative; z-index: 1;
}
.widget-body { padding: 10px 12px; font-size: 11px; }
.widget-body ul li {
  padding: 4px 0;
  border-bottom: 1px dotted #ccd8e4;
}
.widget-body ul li:last-child { border-bottom: none; }
.widget-body ul li a { color: #1a6ea8; font-size: 11px; }
.widget-body ul li::before { content: '» '; color: #2a9ad0; }

/* ===== FREE BADGE ===== */
.free-badge {
  display: inline-block;
  background: linear-gradient(135deg, #ff6600 0%, #cc3300 100%);
  color: #fff;
  font-family: 'Trebuchet MS', sans-serif;
  font-weight: bold;
  font-size: 11px;
  padding: 3px 9px;
  border-radius: 10px;
  box-shadow: 1px 1px 4px rgba(0,0,0,.3), inset 0 1px 0 rgba(255,255,255,.3);
  text-shadow: 0 1px 1px rgba(0,0,0,.4);
  text-transform: uppercase;
  letter-spacing: .04em;
  vertical-align: middle;
}
.ribbon {
  display: inline-block;
  background: linear-gradient(135deg, #22aa44, #116622);
  color: #fff;
  font-size: 10px; font-weight: bold;
  padding: 3px 10px;
  border-radius: 3px;
  box-shadow: 1px 1px 3px rgba(0,0,0,.3);
  text-transform: uppercase; letter-spacing: .06em;
}

/* ===== NOTICE BOXES ===== */
.notice {
  padding: 10px 14px;
  border-radius: 6px;
  font-size: 12px;
  margin-bottom: 14px;
  border-left: 4px solid;
}
.notice-blue { background: #ddeeff; border-color: #2a7ac0; color: #1a3a60; }
.notice-green { background: #ddf5dd; border-color: #338833; color: #1a4a1a; }
.notice-orange { background: #fff0dd; border-color: #cc7700; color: #553300; }
.notice-red { background: #ffeeee; border-color: #cc2222; color: #660000; }

/* ===== FORMS ===== */
.form-table { width: 100%; border-collapse: collapse; }
.form-table tr td { padding: 7px 6px; vertical-align: top; }
.form-table tr td:first-child { width: 140px; font-weight: bold; font-size: 12px; color: #334; padding-top: 9px; }
.form-input, .form-select, .form-textarea {
  width: 100%;
  padding: 6px 9px;
  border: 1px solid #99b0cc;
  border-radius: 4px;
  font-family: Verdana, sans-serif;
  font-size: 12px;
  background: linear-gradient(to bottom, #f0f4fa, #fff);
  box-shadow: inset 0 1px 3px rgba(0,0,0,.1);
  color: #333;
  outline: none;
  transition: border-color .15s, box-shadow .15s;
}
.form-input:focus, .form-select:focus, .form-textarea:focus {
  border-color: #2a8ad0;
  box-shadow: inset 0 1px 3px rgba(0,0,0,.1), 0 0 0 2px rgba(42,138,208,.2);
}
.form-textarea { resize: vertical; min-height: 90px; }

/* ===== DIVIDERS ===== */
.divider {
  border: none;
  border-top: 1px solid #b8cce0;
  border-bottom: 1px solid #fff;
  margin: 14px 0;
}
.section-divider {
  background: linear-gradient(to right, transparent, #88aac8, transparent);
  height: 2px; border: none; margin: 18px 0;
}

/* ===== BREADCRUMB ===== */
.breadcrumb {
  font-size: 11px; color: #667;
  padding: 6px 0 10px;
  border-bottom: 1px dotted #b8cce0;
  margin-bottom: 14px;
}
.breadcrumb a { color: #1a6ea8; }
.breadcrumb span { color: #99aabb; margin: 0 5px; }

/* ===== PAGE TITLE ===== */
.page-title {
  font-family: 'Trebuchet MS', sans-serif;
  font-size: 20px;
  color: #1a3a6a;
  text-shadow: 1px 1px 0 rgba(255,255,255,.8);
  border-bottom: 2px solid #2a8ad0;
  padding-bottom: 8px;
  margin-bottom: 16px;
}

/* ===== DONATE TIERS ===== */
.donate-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-bottom: 16px; }
.donate-card {
  background: #fff;
  border: 2px solid #aac8e0;
  border-radius: 8px;
  padding: 18px 14px;
  text-align: center;
  box-shadow: 2px 3px 8px rgba(0,0,0,.1);
  transition: transform .2s, box-shadow .2s;
  position: relative;
  overflow: hidden;
}
.donate-card:hover { transform: translateY(-3px); box-shadow: 3px 6px 16px rgba(0,0,0,.18); }
.donate-card.featured { border-color: #ff8800; }
.donate-card.featured::before {
  content: '⭐ Most Popular';
  position: absolute; top: 0; right: 0;
  background: linear-gradient(135deg, #ff8800, #cc5500);
  color: white; font-size: 10px; font-weight: bold;
  padding: 4px 10px;
  border-bottom-left-radius: 8px;
}
.donate-amount {
  font-family: 'Trebuchet MS', sans-serif;
  font-size: 32px; color: #1a5a90; font-weight: bold;
  text-shadow: 1px 1px 0 rgba(255,255,255,.8);
}
.donate-label { font-size: 11px; color: #667; margin: 4px 0 12px; }
.donate-perks { font-size: 11px; color: #445; line-height: 1.8; margin-bottom: 14px; }

/* ===== STATS ROW ===== */
.stats-row {
  display: flex; flex-wrap: wrap;
  background: linear-gradient(to bottom, #1a6ab0, #0e3a78);
  border: 2px solid #0a2a5a;
  border-radius: 8px;
  overflow: hidden;
  margin-bottom: 16px;
  box-shadow: 2px 3px 10px rgba(0,0,0,.2);
}
.stat-cell {
  flex: 1; min-width: 100px;
  padding: 16px 12px; text-align: center;
  border-right: 1px solid rgba(255,255,255,.12);
  position: relative;
}
.stat-cell::after {
  content: '';
  position: absolute; top: 0; left: 0; right: 0; height: 50%;
  background: linear-gradient(to bottom, rgba(255,255,255,.1), transparent);
}
.stat-cell:last-child { border-right: none; }
.stat-cell strong { display: block; font-size: 22px; color: #ffdd88; font-family: 'Trebuchet MS', sans-serif; }
.stat-cell span { font-size: 10px; color: rgba(255,255,255,.65); text-transform: uppercase; letter-spacing: .06em; }

/* ===== TEAM CARD ===== */
.team-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.team-card {
  background: #fff;
  border: 1px solid #aac0d8;
  border-radius: 8px;
  padding: 14px;
  text-align: center;
  box-shadow: 1px 2px 6px rgba(0,0,0,.1);
}
.team-avatar {
  width: 70px; height: 70px; border-radius: 50%;
  background: linear-gradient(135deg, #4aaad8, #1a5a90);
  margin: 0 auto 10px;
  display: flex; align-items: center; justify-content: center;
  font-size: 26px; color: white; font-weight: bold;
  border: 3px solid #88c0e8;
  box-shadow: 0 3px 8px rgba(0,0,0,.2);
}
.team-card h4 { font-family: 'Trebuchet MS', sans-serif; font-size: 12px; color: #1a3a6a; margin-bottom: 3px; }
.team-card .role { font-size: 10px; color: #2a9ad0; font-style: italic; margin-bottom: 6px; }
.team-card p { font-size: 11px; color: #556; line-height: 1.5; }

/* ===== TIMELINE ===== */
.timeline { position: relative; padding-left: 24px; }
.timeline::before { content: ''; position: absolute; left: 8px; top: 0; bottom: 0; width: 2px; background: linear-gradient(to bottom, #2a9ad0, #88ccee); }
.timeline-item { position: relative; margin-bottom: 18px; }
.timeline-item::before {
  content: '';
  position: absolute; left: -20px; top: 4px;
  width: 14px; height: 14px; border-radius: 50%;
  background: linear-gradient(135deg, #4aaad8, #1a6ab0);
  border: 2px solid #fff;
  box-shadow: 0 1px 4px rgba(0,0,0,.3);
}
.timeline-year { font-size: 10px; font-weight: bold; color: #2a9ad0; text-transform: uppercase; letter-spacing: .08em; }
.timeline-item h4 { font-family: 'Trebuchet MS', sans-serif; font-size: 13px; color: #1a3a6a; margin: 2px 0 4px; }
.timeline-item p { font-size: 11px; color: #556; line-height: 1.5; }

/* ===== FOOTER ===== */
#footer {
  background: linear-gradient(to bottom, #1a3a6a 0%, #0e2248 100%);
  border-top: 3px solid #0a1830;
  padding: 0;
}
.footer-top {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 0;
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.footer-col {
  padding: 20px 18px;
  border-right: 1px solid rgba(255,255,255,.06);
}
.footer-col:last-child { border-right: none; }
.footer-col h4 {
  font-family: 'Trebuchet MS', sans-serif;
  font-size: 12px; color: #88c8f0;
  text-transform: uppercase; letter-spacing: .1em;
  margin-bottom: 10px;
  padding-bottom: 6px;
  border-bottom: 1px solid rgba(255,255,255,.1);
}
.footer-col p { font-size: 11px; color: rgba(255,255,255,.5); line-height: 1.7; }
.footer-col ul li { padding: 3px 0; }
.footer-col ul li a { font-size: 11px; color: rgba(255,255,255,.5); }
.footer-col ul li a:hover { color: #88c8f0; text-decoration: none; }
.footer-col ul li::before { content: '› '; color: #2a9ad0; }
.footer-bottom {
  padding: 10px 18px;
  display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 8px;
}
.footer-bottom p { font-size: 10px; color: rgba(255,255,255,.35); }
.footer-bottom a { color: rgba(255,255,255,.4); }

/* ===== MOBILE ===== */
@media (max-width: 700px) {
  #sidebar { display: none; }
  .service-grid, .donate-grid, .team-grid { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr 1fr; }
  .nav-toggle { display: block; }
  #navbar ul { display: none; flex-direction: column; }
  #navbar ul.open { display: flex; }
  #navbar ul li a { border-right: none; border-bottom: 1px solid rgba(255,255,255,.1); }
  .stats-row { flex-direction: column; }
  .hero-banner { padding: 28px 18px; }
}
@media (max-width: 440px) {
  .footer-top { grid-template-columns: 1fr; }
}
