/* ========================================
   Gecko Charity Fund — style.css
   ======================================== */

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

:root {
  --green: #007F39;
  --green-dark: #006630;
  --green-light: #e8f5ee;
  --text: #1a1a1a;
  --text-light: #666;
  --bg: #ffffff;
  --bg-header: #f5f5f5;
  --border: #e0e0e0;
  --max-w: 820px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    "Helvetica Neue", Arial, sans-serif;
}

html { scroll-behavior: smooth; }

/* Tap highlight & focus */
* { -webkit-tap-highlight-color: transparent; }
a:focus-visible, button:focus-visible, summary:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible {
  outline: 2px solid var(--green);
  outline-offset: 3px;
  border-radius: 3px;
}

body {
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.7;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

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

/* --- Header --- */
.site-header { background: var(--bg); padding: 12px 0; position: sticky; top: 0; z-index: 100; border-bottom: 1px solid var(--border); }
.site-header .container { display: flex; align-items: center; justify-content: space-between; }
.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--text); }
.logo-img { height: 32px; width: auto; }
.logo-text { font-size: 15px; font-weight: 600; letter-spacing: 0.5px; color: var(--text); line-height: 1.2; }
.logo-text span { color: var(--green); }
nav { display: flex; gap: 28px; align-items: center; }
nav a { color: var(--green); text-decoration: none; font-size: 15px; font-weight: 500; transition: opacity 0.2s; }
nav a:hover { opacity: 0.7; }

/* --- Hero --- */
.hero { padding: 32px 0 60px; }
.hero-title { font-size: 42px; font-weight: 800; line-height: 1.15; margin-bottom: 8px; }
.hero-title span { color: var(--green); }
.hero-headline { font-size: 28px; font-weight: 700; line-height: 1.3; margin-bottom: 8px; }
.hero-sub { font-size: 17px; color: var(--text-light); margin-bottom: 0; }

/* --- Section shared --- */
.section { padding: 50px 0; }
.section--border { border-top: 1px solid var(--border); }
.section-title { font-size: 26px; font-weight: 700; margin-bottom: 20px; }

/* --- Prose --- */
.prose { margin-bottom: 24px; }
.prose p { margin-bottom: 16px; }
.prose a { color: var(--green); text-decoration: underline; }
.prose a:hover { opacity: 0.7; }
.prose strong { font-weight: 600; }

/* --- Focus Areas --- */
.focus-areas { display: flex; flex-wrap: wrap; gap: 10px; margin: 20px 0 28px; }
.focus-tag { background: var(--green-light); color: var(--green-dark); padding: 6px 16px; border-radius: 20px; font-size: 14px; font-weight: 500; }

/* --- CTA Button --- */
.btn { display: inline-block; background: var(--green); color: #fff; padding: 16px 40px; border-radius: 6px; text-decoration: none; font-size: 16px; font-weight: 600; border: none; cursor: pointer; transition: background 0.2s; margin-top: 16px; }
.btn:hover { background: var(--green-dark); }

/* --- FAQ Accordion --- */
.faq-fold { border-bottom: 1px solid var(--border); }
.faq-fold summary { font-size: 18px; font-weight: 700; padding: 20px 0; cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: center; }
.faq-fold summary::-webkit-details-marker { display: none; }
.faq-fold summary::after { content: '+'; font-size: 22px; font-weight: 400; color: var(--green); flex-shrink: 0; margin-left: 16px; transition: transform 0.2s; }
.faq-fold[open] summary::after { content: '−'; }
.faq-fold p { padding: 0 0 20px; margin: 0; color: var(--text); line-height: 1.7; }
.faq-fold p + p { padding-top: 0; }
.faq-fold a { color: var(--green); }

/* --- Footer --- */
.hero .container { max-width: var(--max-w); }

.header--nav-only .container { justify-content: flex-end; }

.site-footer { border-top: 1px solid var(--border); padding: 32px 0; margin-top: 40px; }
.site-footer .container { text-align: center; }
.footer-text { font-size: 14px; color: var(--text-light); }
.footer-text a { color: var(--green); text-decoration: none; }
.footer-text a:hover { text-decoration: underline; }

/* --- Apply Page: Form --- */
.form-intro { margin-bottom: 36px; }
.apply-form { max-width: 600px; }
.form-group { margin-bottom: 24px; }
.form-group label { display: block; font-weight: 600; font-size: 15px; margin-bottom: 6px; }
.form-group .hint { display: block; font-size: 13px; color: var(--text-light); margin-bottom: 6px; }
.form-group input, .form-group select, .form-group textarea { width: 100%; padding: 12px 14px; border: 1px solid var(--border); border-radius: 6px; font-family: var(--font); font-size: 16px; color: var(--text); background: var(--bg); transition: border-color 0.2s; }
.form-group input:focus, .form-group select:focus, .form-group textarea:focus { outline: none; border-color: var(--green); }
.form-group textarea { min-height: 140px; resize: vertical; }
.form-note { font-size: 14px; color: var(--text-light); margin-top: 16px; }

/* --- Responsive --- */
@media (max-width: 640px) {
  body { font-size: 16px; }

  /* Header: stack logo above nav */
  .site-header .container { flex-direction: column; align-items: flex-start; gap: 10px; }
  .site-header { padding: 14px 0; }

  /* Larger touch targets for nav links */
  nav { gap: 0; }
  nav a { padding: 10px 16px 10px 0; min-height: 44px; display: inline-flex; align-items: center; font-size: 16px; }

  /* Hero */
  .hero { padding: 24px 0 36px; }
  .hero-title { font-size: 30px; }
  .hero-headline { font-size: 21px; }
  .section-title { font-size: 22px; }

  /* Full-width CTA button on mobile */
  .btn { display: block; text-align: center; padding: 16px 24px; }

  /* Sections tighter on mobile */
  .section { padding: 36px 0; }
}

/* --- Hero two-column layout --- */
.hero-layout {
  display: flex;
  align-items: stretch;
  gap: 24px;
}

.hero-logo-col {
  flex-shrink: 0;
  display: flex;
  align-items: center;
}

.hero-logo-img {
  width: auto;
  height: 100%;
  max-height: 160px;
  object-fit: contain;
  display: block;
}

.hero-text-col {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.hero .hero-sub { margin-top: 6px; }

@media (max-width: 640px) {
  /* Logo beside title+headline, hero-sub full width below */
  .hero-layout { display: flex; flex-direction: row; align-items: center; gap: 16px; }
  .hero-logo-col { float: none; margin: 0; flex-shrink: 0; }
  .hero-logo-img { max-height: 88px; width: auto; }
  .hero-text-col { overflow: visible; }
  /* Remove desktop indent on mobile */
  .hero .hero-sub { padding-left: 0; margin-top: 12px; }
}


