/* ============================================
   Cancer DriveLine Society - Stylesheet
   Styled to match the original site closely
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Open+Sans:wght@400;600;700&display=swap');

/* --- Reset & Base --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: 'Open Sans', Arial, sans-serif;
  font-size: 15px;
  color: #333333;
  background: #ffffff;
  line-height: 1.7;
}

a { color: #0066cc; text-decoration: none; }
a:hover { text-decoration: underline; color: #004499; }

h1, h2, h3, h4, h5 {
  font-family: 'Open Sans', Arial, sans-serif;
  color: #333333;
  line-height: 1.3;
  font-weight: 700;
}

h1 { font-size: 1.8rem; margin-bottom: 1rem; }
h2 { font-size: 1.4rem; margin-bottom: 0.75rem; }
h3 { font-size: 1.15rem; margin-bottom: 0.5rem; }
h4 { font-size: 1rem; margin-bottom: 0.4rem; }

p { margin-bottom: 1rem; }
ul, ol { margin-left: 1.5rem; margin-bottom: 1rem; }
li { margin-bottom: 0.3rem; }
strong { font-weight: 700; }
em { font-style: italic; }

/* --- Outer wrapper --- */
.site-wrapper {
  max-width: 1000px;
  margin: 0 auto;
  background: #ffffff;
}

/* --- Header --- */
header {
  background: #ffffff;
  border-bottom: 1px solid #dddddd;
  padding: 15px 20px;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.logo img {
  height: 70px;
  width: auto;
  display: block;
}

.logo-text {
  font-size: 1.3rem;
  font-weight: 700;
  color: #333333;
  text-decoration: none;
}

.logo-text:hover { text-decoration: none; color: #333333; }

/* --- Navigation --- */
nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0;
  align-items: center;
}

nav ul li { position: relative; }

nav ul li a {
  display: block;
  padding: 6px 12px;
  color: #333333;
  font-size: 0.88rem;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
}

nav ul li a:hover,
nav ul li a.active {
  color: #0066cc;
  text-decoration: none;
}

/* Dropdown */
nav ul li ul {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: #ffffff;
  border: 1px solid #cccccc;
  min-width: 170px;
  z-index: 200;
  box-shadow: 0 2px 6px rgba(0,0,0,0.12);
}

nav ul li:hover ul { display: block; }
nav ul li ul li a { padding: 6px 14px; font-size: 0.85rem; border-bottom: 1px solid #eeeeee; }
nav ul li ul li:last-child a { border-bottom: none; }

/* Hamburger */
.nav-toggle {
  display: none;
  background: none;
  border: 1px solid #cccccc;
  cursor: pointer;
  flex-direction: column;
  gap: 4px;
  padding: 6px 8px;
  border-radius: 3px;
}
.nav-toggle span { display: block; width: 22px; height: 2px; background: #333; border-radius: 1px; }

/* --- Page title area --- */
.page-header {
  padding: 20px 20px 10px;
  border-bottom: 1px solid #eeeeee;
  margin-bottom: 20px;
}

.page-header h1 {
  font-size: 1.6rem;
  color: #333333;
  margin: 0;
}

/* --- Main content --- */
main {
  padding: 20px 20px 40px;
  max-width: 860px;
}

main p, main li { color: #333333; }

/* --- Ride request bar --- */
.ride-bar {
  background: #f5f5f5;
  border: 1px solid #dddddd;
  padding: 12px 20px;
  margin: 0 0 20px 0;
  font-size: 0.95rem;
}

/* --- Cards / sections --- */
.card {
  margin-bottom: 24px;
}

/* --- Mission list --- */
.mission-list {
  list-style: decimal;
  margin-left: 1.5rem;
}

.mission-list li {
  margin-bottom: 0.75rem;
  padding-left: 0.25rem;
}

/* --- FAQ --- */
.faq-item {
  margin-bottom: 1.25rem;
}

.faq-item .question {
  font-weight: 700;
  font-style: italic;
  margin-bottom: 0.25rem;
}

.faq-item .answer { margin: 0; }

/* --- Info box --- */
.info-box {
  background: #f9f9f9;
  border: 1px solid #dddddd;
  padding: 15px 18px;
  margin-bottom: 20px;
}

/* --- Volunteer form --- */
.form-section {
  margin-bottom: 24px;
  border: 1px solid #dddddd;
}

.form-toggle {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #f5f5f5;
  border: none;
  padding: 12px 16px;
  cursor: pointer;
  font-family: 'Open Sans', Arial, sans-serif;
  font-size: 1rem;
  font-weight: 700;
  color: #333333;
  text-align: left;
}

.form-toggle:hover { background: #ececec; }

.form-toggle-icon {
  font-size: 1.3rem;
  color: #555555;
  line-height: 1;
}

.form-body {
  padding: 20px;
  border-top: 1px solid #dddddd;
  background: #ffffff;
}

.form-group {
  margin-bottom: 14px;
}

.form-group label {
  display: block;
  font-weight: 600;
  margin-bottom: 4px;
  font-size: 0.9rem;
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="tel"],
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 6px 8px;
  border: 1px solid #cccccc;
  font-size: 0.9rem;
  font-family: 'Open Sans', Arial, sans-serif;
  color: #333333;
  background: #ffffff;
  border-radius: 2px;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: #0066cc;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.checkbox-group, .radio-group {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 4px;
}

.checkbox-group label,
.radio-group label {
  display: flex;
  align-items: center;
  gap: 5px;
  font-weight: 400;
  cursor: pointer;
  font-size: 0.9rem;
}

.checkbox-group input,
.radio-group input { width: auto; }

.btn-submit {
  background: #0066cc;
  color: #ffffff;
  border: none;
  padding: 8px 22px;
  font-size: 0.9rem;
  font-weight: 700;
  font-family: 'Open Sans', Arial, sans-serif;
  cursor: pointer;
  border-radius: 2px;
  margin-top: 6px;
}

.btn-submit:hover { background: #004499; }
.btn-submit:disabled { background: #888888; cursor: not-allowed; }

/* --- Two-column layout --- */
.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-bottom: 24px;
}

.two-col h2 { font-size: 1.15rem; border-bottom: 1px solid #dddddd; padding-bottom: 6px; margin-bottom: 10px; }

/* --- Financials tables --- */
.financials-table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 1rem;
  font-size: 0.93rem;
}

.financials-table th,
.financials-table td {
  padding: 7px 12px;
  text-align: left;
  border: 1px solid #cccccc;
}

.financials-table th {
  background: #f0f0f0;
  font-weight: 700;
  color: #333333;
}

.financials-table td:last-child { text-align: right; font-variant-numeric: tabular-nums; }
.financials-table th:last-child { text-align: right; }

.financials-table tr:last-child td {
  font-weight: 700;
  background: #f5f5f5;
  border-top: 2px solid #999999;
}

.financials-table tbody tr:nth-child(even) td { background: #fafafa; }
.financials-table tbody tr:last-child td { background: #f5f5f5; }

.financial-review-link {
  display: inline-block;
  margin-top: 8px;
  color: #0066cc;
  font-size: 0.9rem;
  text-decoration: underline;
}

.financial-review-link:hover { color: #004499; }

.section-title {
  font-size: 1.15rem;
  border-bottom: 1px solid #dddddd;
  padding-bottom: 6px;
  margin-bottom: 14px;
}

.notes {
  background: #f9f9f9;
  border-left: 3px solid #cccccc;
  padding: 10px 14px;
  margin-top: 12px;
  font-size: 0.88rem;
  color: #555555;
}

.notes p:last-child { margin-bottom: 0; }

/* --- Donate button in nav --- */
.btn-donate {
  color: #333333 !important;
  font-weight: 600 !important;
}

/* --- Footer --- */
footer {
  background: #f5f5f5;
  border-top: 1px solid #dddddd;
  padding: 20px;
  margin-top: 20px;
  font-size: 0.85rem;
  color: #555555;
}

.footer-inner {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 20px;
  margin-bottom: 16px;
}

footer h4 {
  font-size: 0.88rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 8px;
  color: #333333;
}

footer a { color: #0066cc; font-size: 0.85rem; }
footer a:hover { text-decoration: underline; }
footer ul { list-style: none; margin: 0; padding: 0; }
footer ul li { margin-bottom: 4px; }
footer p { margin-bottom: 4px; font-size: 0.85rem; }

.footer-bottom {
  border-top: 1px solid #dddddd;
  padding-top: 10px;
  font-size: 0.8rem;
  color: #888888;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 4px;
}

/* --- Responsive --- */
@media (max-width: 700px) {
  .nav-toggle { display: flex; }
  nav { display: none; width: 100%; }
  nav.open { display: block; }
  nav ul { flex-direction: column; }
  nav ul li ul { position: static; box-shadow: none; }
  nav ul li:hover ul { display: none; }
  nav ul li.open ul { display: block; }
  .header-inner { flex-wrap: wrap; }
  .two-col, .form-row { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; }
}
