/* ===================================
   HackHawaii — High-End Nonprofit CSS
   =================================== */

@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,400;0,500;0,600;1,400;1,500&family=Outfit:wght@300;400;500;600&display=swap');

:root {
  --sand:        #F7F3EC;
  --sand-mid:    #EDE6D8;
  --sand-border: #D8CFBC;
  --forest:      #1E3A1F;
  --forest-mid:  #2D5530;
  --forest-light:#4A7C50;
  --sage:        #8BAF8E;
  --sage-light:  #C5D9C7;
  --sage-pale:   #E8F0E9;
  --ink:         #1A1812;
  --ink-mid:     #3D3A30;
  --ink-light:   #6B6659;
  --ink-faint:   #9E9A8E;
  --cream:       #FDFAF5;
  --white:       #FFFFFF;
  --display:     'Cormorant Garamond', Georgia, serif;
  --body:        'Outfit', system-ui, sans-serif;
  --max-w:       1100px;
  --section-v:   6rem;
}

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: var(--body);
  background: var(--sand);
  color: var(--ink);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

/* Utilities */
.inner { max-width: var(--max-w); margin: 0 auto; padding: 0 2rem; }
.eyebrow {
  font-size: 0.7rem; font-weight: 600; letter-spacing: 0.18em;
  text-transform: uppercase; color: var(--forest-light);
  display: block; margin-bottom: 0.75rem;
}
.divider { width: 40px; height: 2px; background: var(--forest-light); margin: 1.5rem 0; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; gap: 0.5rem;
  font-family: var(--body); font-size: 0.85rem; font-weight: 600;
  letter-spacing: 0.04em; text-decoration: none; border-radius: 2px;
  cursor: pointer; transition: all 0.2s ease; border: none;
  padding: 0.85rem 2rem;
}
.btn-forest { background: var(--forest); color: var(--cream); }
.btn-forest:hover { background: var(--forest-mid); transform: translateY(-1px); box-shadow: 0 6px 20px rgba(30,58,31,0.25); }
.btn-outline { background: transparent; color: var(--forest); border: 1.5px solid var(--forest); }
.btn-outline:hover { background: var(--forest); color: var(--cream); }
.btn-full { width: 100%; justify-content: center; padding: 1rem 2rem; font-size: 0.9rem; }
.btn-arrow::after { content: '→'; font-size: 1rem; transition: transform 0.2s; }
.btn-arrow:hover::after { transform: translateX(4px); }

/* Navigation */
nav {
  position: sticky; top: 0; z-index: 200;
  background: rgba(253,250,245,0.96);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--sand-border);
}
.nav-inner {
  max-width: var(--max-w); margin: 0 auto; padding: 0 2rem;
  height: 68px; display: flex; align-items: center; justify-content: space-between;
}
.nav-logo { text-decoration: none; display: flex; flex-direction: column; line-height: 1; }
.nav-logo-main { font-family: var(--display); font-size: 1.5rem; font-weight: 600; color: var(--forest); letter-spacing: -0.01em; }
.nav-logo-sub { font-size: 0.6rem; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; color: var(--ink-faint); margin-top: 1px; }
.nav-menu { display: flex; align-items: center; gap: 2.5rem; list-style: none; }
.nav-menu a { font-size: 0.82rem; font-weight: 500; color: var(--ink-mid); text-decoration: none; letter-spacing: 0.02em; transition: color 0.2s; }
.nav-menu a:hover { color: var(--forest); }
.nav-menu .nav-cta { background: var(--forest); color: var(--cream); padding: 0.5rem 1.25rem; border-radius: 2px; font-weight: 600; letter-spacing: 0.04em; transition: background 0.2s, box-shadow 0.2s; }
.nav-menu .nav-cta:hover { background: var(--forest-mid); box-shadow: 0 4px 14px rgba(30,58,31,0.22); }
.nav-hamburger { display: none; background: none; border: none; cursor: pointer; padding: 4px; flex-direction: column; gap: 5px; }
.nav-hamburger span { display: block; width: 22px; height: 1.5px; background: var(--ink); transition: all 0.25s; }

/* Hero */
.hero { background: var(--cream); padding: 7rem 2rem 6rem; position: relative; overflow: hidden; }
.hero::before {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background-image: radial-gradient(circle at 80% 20%, rgba(139,175,142,0.12) 0%, transparent 50%), radial-gradient(circle at 10% 90%, rgba(196,217,199,0.1) 0%, transparent 45%);
}
.hero::after { content: ''; position: absolute; top: 0; bottom: 0; left: 0; width: 4px; background: linear-gradient(to bottom, var(--forest), var(--sage), transparent); opacity: 0.5; }
.hero-inner { max-width: var(--max-w); margin: 0 auto; display: grid; grid-template-columns: 1fr 420px; gap: 5rem; align-items: center; position: relative; z-index: 1; }
.hero-tag { display: inline-flex; align-items: center; gap: 0.5rem; background: var(--sage-pale); border: 1px solid var(--sage-light); border-radius: 2px; padding: 0.35rem 0.9rem; margin-bottom: 2rem; }
.hero-tag-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--forest-light); flex-shrink: 0; }
.hero-tag-text { font-size: 0.7rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--forest); }
.hero h1 { font-family: var(--display); font-size: clamp(3rem,5vw,4.8rem); font-weight: 500; line-height: 1.05; color: var(--ink); margin-bottom: 1.5rem; letter-spacing: -0.02em; }
.hero h1 em { font-style: italic; color: var(--forest-mid); }
.hero-sub { font-size: 1.05rem; font-weight: 300; color: var(--ink-light); line-height: 1.8; max-width: 480px; margin-bottom: 2.5rem; }
.hero-actions { display: flex; gap: 1rem; flex-wrap: wrap; }
.hero-note { margin-top: 1.5rem; font-size: 0.8rem; color: var(--ink-faint); display: flex; align-items: center; gap: 0.5rem; }
.hero-note::before { content: ''; display: inline-block; width: 16px; height: 1px; background: var(--sand-border); }

/* Hero card */
.hero-card { background: var(--white); border: 1px solid var(--sand-border); border-radius: 4px; overflow: hidden; box-shadow: 0 16px 48px rgba(30,58,31,0.1), 0 2px 8px rgba(0,0,0,0.04); }
.hero-card-header { background: var(--forest); padding: 1.5rem 1.75rem; color: var(--cream); }
.hero-card-header .eyebrow { color: var(--sage); margin-bottom: 0.4rem; }
.hero-card-title { font-family: var(--display); font-size: 1.4rem; font-weight: 500; color: var(--cream); line-height: 1.2; }
.hero-card-body { padding: 1.75rem; }

/* Form fields shared */
.form-label { display: block; font-size: 0.72rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-mid); margin-bottom: 0.35rem; }
.field-group { margin-bottom: 1rem; }
.form-privacy { margin-top: 0.75rem; font-size: 0.75rem; color: var(--ink-faint); text-align: center; line-height: 1.5; }

.hero-form-field, .event-form-field, .apply-field {
  width: 100%; border-radius: 2px; padding: 0.78rem 1rem;
  font-family: var(--body); font-size: 0.875rem; font-weight: 400;
  color: var(--ink); outline: none; transition: border-color 0.2s, background 0.2s, box-shadow 0.2s;
  -webkit-appearance: none;
}
.hero-form-field::placeholder, .event-form-field::placeholder, .apply-field::placeholder { color: var(--ink-faint); }

.hero-form-field { background: var(--sand); border: 1px solid var(--sand-border); }
.hero-form-field:focus { border-color: var(--forest-light); background: var(--white); }

.event-form-field { background: var(--white); border: 1px solid var(--sand-border); }
.event-form-field:focus { border-color: var(--forest-light); box-shadow: 0 0 0 3px rgba(74,124,80,0.1); }

.apply-field { background: var(--sand); border: 1px solid var(--sand-border); }
.apply-field:focus { border-color: var(--forest-light); background: var(--white); box-shadow: 0 0 0 3px rgba(74,124,80,0.08); }

textarea.hero-form-field, textarea.event-form-field, textarea.apply-field { resize: vertical; min-height: 80px; line-height: 1.6; }

.hero-card-footer { padding: 0 1.75rem 1.75rem; }

/* Trust bar */
.trust-bar { background: var(--forest); padding: 1.5rem 2rem; }
.trust-inner { max-width: var(--max-w); margin: 0 auto; display: flex; align-items: center; justify-content: center; gap: 3rem; flex-wrap: wrap; }
.trust-item { display: flex; align-items: center; gap: 0.75rem; color: rgba(253,250,245,0.75); }
.trust-icon { width: 28px; height: 28px; flex-shrink: 0; }
.trust-item-text { font-size: 0.82rem; font-weight: 400; letter-spacing: 0.01em; line-height: 1.3; }
.trust-item-text strong { display: block; color: var(--cream); font-weight: 600; font-size: 0.78rem; letter-spacing: 0.08em; text-transform: uppercase; margin-bottom: 1px; }
.trust-sep { width: 1px; height: 28px; background: rgba(253,250,245,0.15); }

/* About */
.about-section { background: var(--cream); padding: var(--section-v) 2rem; }
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 6rem; align-items: center; }
.about-text p { font-size: 0.95rem; font-weight: 300; color: var(--ink-light); line-height: 1.9; margin-bottom: 1.2rem; }
.stat-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--sand-border); border: 1px solid var(--sand-border); border-radius: 4px; overflow: hidden; }
.stat-cell { background: var(--white); padding: 1.75rem 1.5rem; transition: background 0.2s; }
.stat-cell:hover { background: var(--sage-pale); }
.stat-number { font-family: var(--display); font-size: 2.6rem; font-weight: 500; color: var(--forest); line-height: 1; margin-bottom: 0.4rem; letter-spacing: -0.02em; }
.stat-desc { font-size: 0.8rem; font-weight: 400; color: var(--ink-light); line-height: 1.4; }

/* Programs */
.programs-section { background: var(--sand); padding: var(--section-v) 2rem; }
.programs-header { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: end; margin-bottom: 3.5rem; }
.programs-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--sand-border); border: 1px solid var(--sand-border); border-radius: 4px; overflow: hidden; }
.prog-card { background: var(--cream); padding: 2rem 1.75rem; transition: background 0.25s; position: relative; }
.prog-card::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px; background: var(--forest); transform: scaleX(0); transform-origin: left; transition: transform 0.3s ease; }
.prog-card:hover { background: var(--white); }
.prog-card:hover::before { transform: scaleX(1); }
.prog-number { font-family: var(--display); font-size: 2.5rem; font-weight: 400; color: var(--sage); line-height: 1; margin-bottom: 1.25rem; letter-spacing: -0.02em; }
.prog-card h3 { font-family: var(--display); font-size: 1.2rem; font-weight: 500; color: var(--ink); margin-bottom: 0.75rem; line-height: 1.25; }
.prog-card p { font-size: 0.85rem; font-weight: 300; color: var(--ink-light); line-height: 1.75; }
.prog-tag { display: inline-block; margin-top: 1.25rem; font-size: 0.68rem; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--forest-light); border-bottom: 1px solid var(--sage); padding-bottom: 1px; }

/* Event section */
.event-section { background: var(--forest); padding: var(--section-v) 2rem; position: relative; overflow: hidden; }
.event-section::before { content: ''; position: absolute; top: -120px; right: -120px; width: 480px; height: 480px; border-radius: 50%; background: radial-gradient(circle, rgba(74,124,80,0.15) 0%, transparent 60%); pointer-events: none; }
.event-eyebrow { color: var(--sage) !important; }
.event-heading { font-family: var(--display); font-size: clamp(2.2rem,4vw,3.6rem); font-weight: 500; color: var(--cream); line-height: 1.1; margin-bottom: 1.25rem; letter-spacing: -0.015em; }
.event-sub { font-size: 1rem; font-weight: 300; color: rgba(253,250,245,0.65); line-height: 1.8; max-width: 440px; margin-bottom: 2.5rem; }
.event-grid { display: grid; grid-template-columns: 1fr 420px; gap: 5rem; align-items: start; }

.agenda { list-style: none; border-top: 1px solid rgba(253,250,245,0.12); }
.agenda-row { display: grid; grid-template-columns: 64px 1fr; gap: 1.5rem; padding: 1.25rem 0; border-bottom: 1px solid rgba(253,250,245,0.12); align-items: start; }
.agenda-time { font-size: 0.72rem; font-weight: 600; letter-spacing: 0.1em; color: var(--sage); padding-top: 0.2rem; text-transform: uppercase; }
.agenda-title { font-size: 0.9rem; font-weight: 500; color: var(--cream); margin-bottom: 0.2rem; }
.agenda-desc { font-size: 0.82rem; font-weight: 300; color: rgba(253,250,245,0.5); line-height: 1.6; }

.event-card { background: var(--cream); border-radius: 4px; overflow: hidden; box-shadow: 0 24px 64px rgba(0,0,0,0.25); }
.event-card-top { background: var(--sand-mid); padding: 1.5rem 1.75rem; border-bottom: 1px solid var(--sand-border); }
.event-card-top h3 { font-family: var(--display); font-size: 1.35rem; font-weight: 500; color: var(--ink); margin-bottom: 0.3rem; }
.event-card-top p { font-size: 0.82rem; font-weight: 300; color: var(--ink-light); line-height: 1.6; }
.event-card-form { padding: 1.75rem; }
.event-card-form .field-group { margin-bottom: 0.85rem; }
.event-card-footer { padding: 0 1.75rem 1.75rem; display: flex; flex-direction: column; gap: 0.75rem; }
.location-note { display: flex; align-items: flex-start; gap: 0.6rem; background: var(--sage-pale); border: 1px solid var(--sage-light); border-radius: 2px; padding: 0.75rem 1rem; font-size: 0.78rem; color: var(--forest); line-height: 1.5; }
.location-note svg { flex-shrink: 0; margin-top: 1px; }

/* Apply section */
.apply-section { background: var(--cream); padding: var(--section-v) 2rem; }
.apply-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 5rem; align-items: start; }
.apply-left h2 { font-family: var(--display); font-size: clamp(2rem,3.5vw,3rem); font-weight: 500; color: var(--ink); line-height: 1.15; margin-bottom: 1.25rem; }
.apply-left p { font-size: 0.95rem; font-weight: 300; color: var(--ink-light); line-height: 1.85; margin-bottom: 1rem; }
.eligibility-heading { font-size: 0.7rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-mid); margin: 2rem 0 0.75rem; }
.eligibility-list { list-style: none; display: flex; flex-direction: column; gap: 0.6rem; }
.eligibility-list li { font-size: 0.875rem; font-weight: 400; color: var(--ink-mid); display: flex; align-items: flex-start; gap: 0.75rem; line-height: 1.5; }
.check-icon { width: 16px; height: 16px; flex-shrink: 0; margin-top: 1px; color: var(--forest-light); }

.apply-form-wrap { background: var(--white); border: 1px solid var(--sand-border); border-radius: 4px; overflow: hidden; }
.apply-form-header { background: var(--sand-mid); padding: 1.5rem 2rem; border-bottom: 1px solid var(--sand-border); }
.apply-form-header h3 { font-family: var(--display); font-size: 1.35rem; font-weight: 500; color: var(--ink); margin-bottom: 0.25rem; }
.apply-form-header p { font-size: 0.82rem; font-weight: 300; color: var(--ink-light); }
.apply-form-body { padding: 1.75rem 2rem; }
.apply-form-body .field-group { margin-bottom: 0.85rem; }
.apply-form-footer { padding: 0 2rem 1.75rem; display: flex; flex-direction: column; gap: 0.75rem; }
.form-disclaimer { font-size: 0.73rem; color: var(--ink-faint); text-align: center; line-height: 1.5; }

/* Footer */
footer { background: var(--ink); padding: 4rem 2rem 2.5rem; }
.footer-inner { max-width: var(--max-w); margin: 0 auto; }
.footer-top { display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: 4rem; padding-bottom: 3rem; border-bottom: 1px solid rgba(255,255,255,0.08); margin-bottom: 2rem; }
.footer-brand-name { font-family: var(--display); font-size: 1.5rem; font-weight: 500; color: var(--cream); margin-bottom: 0.25rem; }
.footer-brand-tag { font-size: 0.68rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--sage); margin-bottom: 1rem; }
.footer-brand-desc { font-size: 0.85rem; font-weight: 300; color: rgba(253,250,245,0.45); line-height: 1.75; max-width: 280px; }
.footer-col-heading { font-size: 0.68rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: rgba(253,250,245,0.4); margin-bottom: 1rem; }
.footer-col-links { list-style: none; display: flex; flex-direction: column; gap: 0.6rem; }
.footer-col-links a { font-size: 0.85rem; font-weight: 300; color: rgba(253,250,245,0.6); text-decoration: none; transition: color 0.2s; }
.footer-col-links a:hover { color: var(--cream); }
.footer-bottom { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 1rem; }
.footer-copy { font-size: 0.78rem; color: rgba(253,250,245,0.3); }
.footer-501c { display: flex; align-items: center; gap: 0.5rem; font-size: 0.72rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: rgba(253,250,245,0.3); border: 1px solid rgba(255,255,255,0.1); padding: 0.3rem 0.8rem; border-radius: 2px; }

/* Toast */
.toast { position: fixed; bottom: 2rem; left: 50%; transform: translateX(-50%) translateY(80px); background: var(--forest); color: var(--cream); padding: 0.9rem 2rem; border-radius: 2px; font-size: 0.875rem; font-weight: 400; z-index: 999; opacity: 0; transition: transform 0.35s ease, opacity 0.35s ease; pointer-events: none; white-space: nowrap; border-left: 3px solid var(--sage); box-shadow: 0 8px 24px rgba(0,0,0,0.2); }
.toast.show { transform: translateX(-50%) translateY(0); opacity: 1; }

/* Responsive */
@media (max-width: 900px) {
  .hero-inner, .event-grid, .apply-grid, .about-grid, .programs-header { grid-template-columns: 1fr; gap: 3rem; }
  .programs-grid { grid-template-columns: 1fr 1fr; }
  .footer-top { grid-template-columns: 1fr 1fr; }
  .hero { padding: 4rem 2rem 3rem; }
  :root { --section-v: 4rem; }
}
@media (max-width: 600px) {
  .nav-menu { display: none; flex-direction: column; position: absolute; top: 68px; left: 0; right: 0; background: var(--cream); border-bottom: 1px solid var(--sand-border); padding: 1.5rem 2rem; gap: 1.25rem; z-index: 199; }
  .nav-menu.open { display: flex; }
  .nav-hamburger { display: flex; }
  .programs-grid { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr; gap: 2.5rem; }
  .trust-inner { gap: 1.5rem; }
  .trust-sep { display: none; }
  .hero-actions { flex-direction: column; }
  .btn { text-align: center; justify-content: center; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
}
