/* Ensure [hidden] always wins over any display:flex/grid rules */
[hidden] { display: none !important; }

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --teal: #2A9D8F;
  --teal-dark: #1f7a6e;
  --teal-light: #e8f5f3;
  --teal-mid: #c0e4df;
  --coral: #E76F51;
  --coral-dark: #c75a3e;
  --coral-light: #fdf0eb;
  --coral-mid: #f5c4b5;
  --sand: #F4A261;
  --charcoal: #264653;
  --charcoal-mid: #3d6670;
  --text-primary: #1a2e35;
  --text-secondary: #4a6572;
  --text-muted: #7a9099;
  --bg-white: #ffffff;
  --bg-light: #f8faf9;
  --bg-warm: #fdf6f0;
  --border: #e2ebe9;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.06), 0 1px 2px rgba(0,0,0,0.04);
  --shadow-md: 0 4px 16px rgba(0,0,0,0.08), 0 2px 6px rgba(0,0,0,0.04);
  --shadow-lg: 0 12px 40px rgba(0,0,0,0.10), 0 4px 12px rgba(0,0,0,0.06);
  --shadow-teal: 0 8px 24px rgba(42,157,143,0.25);
  --shadow-coral: 0 8px 24px rgba(231,111,81,0.25);
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --font-body: 'Inter', sans-serif;
  --font-display: 'Playfair Display', serif;
  --transition: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-body);
  color: var(--text-primary);
  background: var(--bg-white);
  line-height: 1.6;
  overflow-x: hidden;
}

.skip-link {
  position: absolute;
  top: -100%;
  left: 1rem;
  background: var(--teal);
  color: white;
  padding: 0.5rem 1rem;
  border-radius: 0 0 var(--radius-sm) var(--radius-sm);
  font-weight: 600;
  z-index: 9999;
  text-decoration: none;
  transition: top var(--transition);
}

.skip-link:focus {
  top: 0;
}

.container {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.section-pad {
  padding: 6rem 0;
}

.section-header {
  text-align: center;
  margin-bottom: 3.5rem;
}

.section-label {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--teal);
  background: var(--teal-light);
  padding: 0.35rem 0.9rem;
  border-radius: 100px;
  margin-bottom: 0.9rem;
}

.section-label-light {
  color: var(--teal-light);
  background: rgba(255,255,255,0.15);
}

.section-header h2 {
  font-family: var(--font-display);
  font-size: clamp(1.9rem, 4vw, 2.8rem);
  color: var(--text-primary);
  line-height: 1.2;
  margin-bottom: 0.75rem;
}

.section-header-light h2 {
  color: white;
}

.section-sub {
  font-size: 1.05rem;
  color: var(--text-secondary);
  max-width: 500px;
  margin: 0 auto;
}

.section-sub-light {
  color: rgba(255,255,255,0.75);
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.85rem 1.75rem;
  border-radius: 100px;
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: transform var(--transition), box-shadow var(--transition), background var(--transition);
  white-space: nowrap;
}

.btn:focus-visible {
  outline: 3px solid currentColor;
  outline-offset: 3px;
}

.btn-lg {
  padding: 1rem 2rem;
  font-size: 1.05rem;
}

.btn-teal {
  background: var(--teal);
  color: white;
}

.btn-teal:hover {
  background: var(--teal-dark);
  box-shadow: var(--shadow-teal);
  transform: translateY(-2px);
}

.btn-coral {
  background: var(--coral);
  color: white;
}

.btn-coral:hover {
  background: var(--coral-dark);
  box-shadow: var(--shadow-coral);
  transform: translateY(-2px);
}

.btn-full {
  width: 100%;
  justify-content: center;
  border-radius: var(--radius-md);
  padding: 1rem 1.5rem;
}

.btn-full:hover {
  transform: translateY(-2px);
}

.fade-section {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}

.fade-section.visible {
  opacity: 1;
  transform: translateY(0);
}

.nav-wrapper {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(255,255,255,0.9);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  transition: box-shadow var(--transition);
}

.nav-wrapper.scrolled {
  box-shadow: var(--shadow-md);
}

.nav {
  display: flex;
  align-items: center;
  height: 68px;
  gap: 2rem;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--charcoal);
  flex-shrink: 0;
}

.nav-logo span {
  letter-spacing: -0.02em;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  list-style: none;
  margin-left: auto;
}

.nav-link {
  display: block;
  padding: 0.5rem 0.85rem;
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-secondary);
  text-decoration: none;
  border-radius: var(--radius-sm);
  transition: color var(--transition), background var(--transition);
}

.nav-link:hover {
  color: var(--teal);
  background: var(--teal-light);
}

.nav-cta {
  display: inline-flex;
  align-items: center;
  padding: 0.55rem 1.2rem;
  font-size: 0.95rem;
  font-weight: 600;
  color: white;
  background: var(--teal);
  text-decoration: none;
  border-radius: 100px;
  margin-left: 0.5rem;
  transition: background var(--transition), box-shadow var(--transition), transform var(--transition);
}

.nav-cta:hover {
  background: var(--teal-dark);
  box-shadow: var(--shadow-teal);
  transform: translateY(-1px);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  margin-left: auto;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--charcoal);
  border-radius: 2px;
  transition: transform var(--transition), opacity var(--transition);
}

.nav-toggle.open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-toggle.open span:nth-child(2) {
  opacity: 0;
}

.nav-toggle.open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: 68px;
  background: linear-gradient(155deg, var(--teal-light) 0%, #ffffff 45%, var(--coral-light) 100%);
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.bridge-svg {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: auto;
}

.hero-content {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 4rem 1.5rem;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--teal);
  background: white;
  border: 1.5px solid var(--teal-mid);
  padding: 0.4rem 1rem;
  border-radius: 100px;
  margin-bottom: 1.5rem;
  box-shadow: var(--shadow-sm);
  animation: fadeSlideDown 0.7s ease both;
}

.hero-heading {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 6vw, 4.2rem);
  line-height: 1.1;
  color: var(--charcoal);
  margin-bottom: 1.25rem;
  letter-spacing: -0.02em;
  animation: fadeSlideDown 0.7s 0.1s ease both;
}

.hero-heading em {
  font-style: italic;
  color: var(--teal);
}

.hero-tagline {
  font-size: clamp(1rem, 2.2vw, 1.25rem);
  color: var(--text-secondary);
  max-width: 520px;
  margin-bottom: 2.5rem;
  animation: fadeSlideDown 0.7s 0.2s ease both;
}

.hero-ctas {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  justify-content: center;
  margin-bottom: 1.25rem;
  animation: fadeSlideDown 0.7s 0.3s ease both;
}

.hero-note {
  font-size: 0.85rem;
  color: var(--text-muted);
  animation: fadeSlideDown 0.7s 0.4s ease both;
}

@keyframes fadeSlideDown {
  from {
    opacity: 0;
    transform: translateY(-16px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.trust-bar {
  background: var(--charcoal);
  padding: 1.4rem 0;
}

.trust-list {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2.5rem;
  list-style: none;
  flex-wrap: wrap;
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  color: rgba(255,255,255,0.88);
  font-size: 0.9rem;
  font-weight: 500;
}

.trust-item svg {
  flex-shrink: 0;
}

.trust-item svg path,
.trust-item svg circle,
.trust-item svg polyline,
.trust-item svg line {
  stroke: var(--teal-mid);
}

.how-it-works {
  background: var(--bg-light);
}

.hiw-tabs {
  display: flex;
  gap: 0.5rem;
  justify-content: center;
  margin-bottom: 3rem;
  background: white;
  border-radius: 100px;
  padding: 0.35rem;
  width: fit-content;
  margin-left: auto;
  margin-right: auto;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
}

.tab-btn {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.65rem 1.5rem;
  border-radius: 100px;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 600;
  background: none;
  border: none;
  color: var(--text-secondary);
  cursor: pointer;
  transition: background var(--transition), color var(--transition), box-shadow var(--transition);
}

.tab-btn.tab-active {
  background: var(--teal);
  color: white;
  box-shadow: var(--shadow-teal);
}

.tab-btn:not(.tab-active):hover {
  background: var(--teal-light);
  color: var(--teal);
}

.hiw-panel-hidden {
  display: none;
}

.hiw-steps {
  display: flex;
  align-items: flex-start;
  gap: 0;
  justify-content: center;
}

.hiw-step {
  flex: 1;
  max-width: 280px;
  text-align: center;
  padding: 2rem 1.5rem;
  background: white;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  position: relative;
}

.hiw-step h3 {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
  margin-top: 1rem;
}

.hiw-step p {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

.hiw-step-num {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--teal);
  color: white;
  font-size: 0.8rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hiw-step-num-coral {
  background: var(--coral);
}

.hiw-step-icon {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 60px;
  height: 60px;
  background: var(--teal-light);
  border-radius: 50%;
  margin: 0 auto 0.5rem;
}

.hiw-step-icon-coral {
  background: var(--coral-light);
}

.hiw-connector {
  flex-shrink: 0;
  width: 60px;
  height: 2px;
  background: linear-gradient(90deg, var(--teal-mid), var(--teal-light));
  margin-top: 82px;
  position: relative;
}

.hiw-connector::after {
  content: '';
  position: absolute;
  right: -5px;
  top: -4px;
  width: 10px;
  height: 10px;
  border-top: 2px solid var(--teal);
  border-right: 2px solid var(--teal);
  transform: rotate(45deg);
}

.hiw-connector-coral {
  background: linear-gradient(90deg, var(--coral-mid), var(--coral-light));
}

.hiw-connector-coral::after {
  border-top-color: var(--coral);
  border-right-color: var(--coral);
}

.activities {
  background: var(--bg-white);
}

.activities-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 1.25rem;
}

.activity-card {
  background: white;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.75rem 1.5rem;
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
  position: relative;
  overflow: hidden;
}

.activity-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--teal-light), transparent);
  opacity: 0;
  transition: opacity var(--transition);
}

.activity-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--teal-mid);
}

.activity-card:hover::before {
  opacity: 1;
}

.activity-icon {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 56px;
  height: 56px;
  border-radius: var(--radius-md);
  margin-bottom: 1rem;
  position: relative;
}

.activity-icon-teal {
  background: var(--teal-light);
  color: var(--teal);
}

.activity-icon-coral {
  background: var(--coral-light);
  color: var(--coral);
}

.activity-card h3 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.4rem;
  position: relative;
}

.activity-card p {
  font-size: 0.875rem;
  color: var(--text-secondary);
  line-height: 1.55;
  position: relative;
}

.activity-tag {
  display: inline-block;
  margin-top: 0.75rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--teal);
  background: var(--teal-light);
  padding: 0.25rem 0.65rem;
  border-radius: 100px;
  position: relative;
}

.profiles {
  background: var(--bg-warm);
}

.profiles-match {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  justify-content: center;
  flex-wrap: wrap;
}

.profile-card {
  flex: 1;
  min-width: 280px;
  max-width: 380px;
  background: white;
  border-radius: var(--radius-xl);
  padding: 2rem;
  box-shadow: var(--shadow-md);
  border: 1.5px solid var(--border);
  transition: transform var(--transition-slow), box-shadow var(--transition-slow);
  cursor: default;
}

.profile-card:hover {
  transform: translateY(-6px) scale(1.01);
  box-shadow: var(--shadow-lg);
}

.profile-senior {
  border-top: 4px solid var(--coral);
}

.profile-teen {
  border-top: 4px solid var(--teal);
}

.profile-avatar {
  margin-bottom: 1rem;
}

.profile-name {
  font-family: var(--font-display);
  font-size: 1.35rem;
  color: var(--text-primary);
  margin-bottom: 0.2rem;
}

.profile-age {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 1.25rem;
}

.profile-needs,
.profile-offers {
  margin-bottom: 1rem;
}

.profile-need {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 0.5rem;
}

.needs-label {
  color: var(--coral);
}

.offers-label {
  color: var(--teal);
}

.profile-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  list-style: none;
}

.tag {
  font-size: 0.8rem;
  font-weight: 500;
  padding: 0.25rem 0.7rem;
  border-radius: 100px;
}

.tag-need {
  background: var(--coral-light);
  color: var(--coral-dark);
}

.tag-offer {
  background: var(--teal-light);
  color: var(--teal-dark);
}

.profile-quote {
  font-size: 0.875rem;
  font-style: italic;
  color: var(--text-secondary);
  border-left: 3px solid var(--border);
  padding-left: 0.85rem;
  margin-top: 1rem;
  line-height: 1.6;
}

.match-arrow {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.match-arrow-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
}

.match-label {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--teal);
}

.profiles-note {
  text-align: center;
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 2.5rem;
}

.bay-map {
  background: var(--bg-white);
}

.leaflet-map-container {
  height: 420px;
  max-width: 760px;
  margin: 0 auto 3rem;
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  border: 1.5px solid var(--border);
}

.volunteer-hours {
  background: var(--bg-light);
}

.vh-how {
  display: flex;
  align-items: flex-start;
  gap: 0;
  justify-content: center;
  margin-bottom: 3rem;
  flex-wrap: wrap;
}

.vh-step {
  flex: 1;
  min-width: 200px;
  max-width: 260px;
  text-align: center;
  padding: 0 1rem;
}

.vh-step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--teal);
  color: white;
  font-weight: 800;
  font-size: 1rem;
  margin: 0 auto 0.75rem;
}

.vh-step h3 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.4rem;
}

.vh-step p {
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

.vh-arrow {
  align-self: center;
  font-size: 1.4rem;
  color: var(--teal);
  padding: 0 0.5rem;
  margin-top: -1.5rem;
}

.schools-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1.25rem;
  margin-bottom: 1.5rem;
}

.school-card {
  background: white;
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  border: 1.5px solid var(--border);
  box-shadow: var(--shadow-sm);
}

.school-city {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--teal);
  margin-bottom: 0.75rem;
}

.school-card ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.school-card li {
  font-size: 0.875rem;
  color: var(--text-primary);
  padding-left: 1rem;
  position: relative;
}

.school-card li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--teal);
  font-size: 0.75rem;
  top: 1px;
}

.schools-note {
  text-align: center;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.schools-note a {
  color: var(--teal);
  text-decoration: none;
  font-weight: 600;
}

.schools-note a:hover {
  text-decoration: underline;
}

.map-stats {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

.map-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  background: white;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.5rem 2rem;
  min-width: 140px;
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition), box-shadow var(--transition);
}

.map-stat:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.stat-num {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 700;
  color: var(--teal);
  line-height: 1;
  margin-bottom: 0.4rem;
}

.stat-label {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-muted);
  text-align: center;
}

.safety {
  background: linear-gradient(135deg, var(--charcoal) 0%, #1a3a42 50%, #0f2830 100%);
  position: relative;
  overflow: hidden;
}

.safety::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -20%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(42,157,143,0.12) 0%, transparent 70%);
  pointer-events: none;
}

.safety::after {
  content: '';
  position: absolute;
  bottom: -30%;
  right: -10%;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(231,111,81,0.08) 0%, transparent 70%);
  pointer-events: none;
}

.safety-inner {
  position: relative;
  z-index: 1;
}

.safety-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 1.25rem;
}

.safety-card {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius-lg);
  padding: 2rem 1.75rem;
  backdrop-filter: blur(8px);
  transition: background var(--transition), transform var(--transition), box-shadow var(--transition);
}

.safety-card:hover {
  background: rgba(255,255,255,0.1);
  transform: translateY(-3px);
  box-shadow: 0 8px 32px rgba(0,0,0,0.2);
}

.safety-icon {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 60px;
  height: 60px;
  background: rgba(42,157,143,0.2);
  border-radius: var(--radius-md);
  margin-bottom: 1.25rem;
  color: var(--teal-mid);
}

.safety-card h3 {
  font-size: 1.05rem;
  font-weight: 700;
  color: white;
  margin-bottom: 0.6rem;
}

.safety-card p {
  font-size: 0.875rem;
  color: rgba(255,255,255,0.65);
  line-height: 1.65;
}

.signup {
  background: var(--bg-light);
}

.signup-forms {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 0;
  align-items: start;
  max-width: 960px;
  margin: 0 auto;
}

.signup-form-wrap {
  background: white;
  border-radius: var(--radius-xl);
  padding: 2.25rem;
  box-shadow: var(--shadow-md);
  border: 1.5px solid var(--border);
}

.signup-teen {
  border-top: 4px solid var(--teal);
}

.signup-senior {
  border-top: 4px solid var(--coral);
}

.signup-divider {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 0 1.5rem;
  min-height: 200px;
  align-self: stretch;
}

.signup-divider::before,
.signup-divider::after {
  content: '';
  flex: 1;
  width: 1px;
  background: var(--border);
}

.signup-divider span {
  padding: 0.5rem 0;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.form-header {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 1.75rem;
  padding-bottom: 1.25rem;
  border-bottom: 1.5px solid var(--border);
}

.form-icon {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 48px;
  height: 48px;
  background: var(--teal-light);
  border-radius: var(--radius-md);
  flex-shrink: 0;
}

.form-icon-coral {
  background: var(--coral-light);
}

.form-header h3 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.2rem;
}

.form-header p {
  font-size: 0.82rem;
  color: var(--text-muted);
}

.form-group {
  margin-bottom: 1.1rem;
}

.form-group label {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 0.4rem;
}

.form-group label span {
  color: var(--coral);
}

.form-group input,
.form-group select {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--text-primary);
  background: white;
  transition: border-color var(--transition), box-shadow var(--transition);
  appearance: none;
  -webkit-appearance: none;
}

.form-group input::placeholder {
  color: var(--text-muted);
}

.form-group input:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(42,157,143,0.15);
}

.form-group input.error,
.form-group select.error {
  border-color: var(--coral);
  box-shadow: 0 0 0 3px rgba(231,111,81,0.12);
}

.form-group select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%237a9099' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6,9 12,15 18,9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.75rem center;
  padding-right: 2.5rem;
}

.form-error {
  display: block;
  font-size: 0.8rem;
  color: var(--coral);
  margin-top: 0.3rem;
  min-height: 1rem;
  font-weight: 500;
}

.form-row {
  display: flex;
  gap: 0.75rem;
}

.form-group-grow {
  flex: 1;
}

.form-note {
  text-align: center;
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-top: 0.75rem;
}

.form-success {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 2rem 1rem;
  gap: 0.75rem;
}

.form-success h3 {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text-primary);
}

.form-success p {
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.footer {
  background: var(--charcoal);
  color: rgba(255,255,255,0.75);
  padding: 4rem 0 2rem;
}

.footer-top {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 4rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid rgba(255,255,255,0.1);
  margin-bottom: 2rem;
}

.footer-logo span {
  color: white;
}

.footer-tagline {
  font-size: 0.9rem;
  color: rgba(255,255,255,0.6);
  margin-top: 0.75rem;
  line-height: 1.6;
}

.footer-hackathon {
  margin-top: 1rem;
  font-size: 0.8rem;
  color: var(--teal-mid);
  font-weight: 500;
}

.footer-hackathon strong {
  color: var(--teal-mid);
  font-weight: 700;
}

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

.footer-nav-col h4 {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: white;
  margin-bottom: 1rem;
}

.footer-nav-col ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.footer-nav-col a {
  font-size: 0.875rem;
  color: rgba(255,255,255,0.6);
  text-decoration: none;
  transition: color var(--transition);
}

.footer-nav-col a:hover {
  color: var(--teal-mid);
}

.footer-location {
  font-size: 0.875rem;
  color: rgba(255,255,255,0.4);
}

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

.footer-bottom p {
  font-size: 0.825rem;
  color: rgba(255,255,255,0.4);
}

.footer-links {
  display: flex;
  gap: 1.5rem;
}

.footer-links a {
  font-size: 0.825rem;
  color: rgba(255,255,255,0.4);
  text-decoration: none;
  transition: color var(--transition);
}

.footer-links a:hover {
  color: rgba(255,255,255,0.75);
}

@media (max-width: 900px) {
  .hiw-steps {
    flex-direction: column;
    align-items: center;
  }

  .hiw-step {
    max-width: 100%;
    width: 100%;
  }

  .hiw-connector {
    width: 2px;
    height: 40px;
    margin: 0;
  }

  .hiw-connector::after {
    right: -4px;
    top: auto;
    bottom: -5px;
    border-top: none;
    border-right: none;
    border-bottom: 2px solid var(--teal);
    border-left: 2px solid var(--teal);
    transform: rotate(-45deg);
  }

  .hiw-connector-coral::after {
    border-bottom-color: var(--coral);
    border-left-color: var(--coral);
  }

  .profiles-match {
    flex-direction: column;
    align-items: center;
  }

  .match-arrow {
    transform: rotate(90deg);
  }

  .profile-card {
    max-width: 100%;
    width: 100%;
  }

  .signup-forms {
    grid-template-columns: 1fr;
  }

  .signup-divider {
    flex-direction: row;
    min-height: auto;
    padding: 0;
  }

  .signup-divider::before,
  .signup-divider::after {
    flex: 1;
    height: 1px;
    width: auto;
  }

  .signup-divider span {
    padding: 0 1rem;
  }

  .footer-top {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .footer-nav {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 700px) {
  .section-pad {
    padding: 4rem 0;
  }

  .nav-toggle {
    display: flex;
  }

  .nav-menu {
    position: fixed;
    top: 68px;
    left: 0;
    right: 0;
    background: white;
    flex-direction: column;
    align-items: stretch;
    padding: 1rem;
    gap: 0.25rem;
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow-lg);
    transform: translateY(-110%);
    transition: transform var(--transition-slow);
    z-index: 99;
  }

  .nav-menu.nav-open {
    transform: translateY(0);
  }

  .nav-link {
    padding: 0.75rem 1rem;
    font-size: 1rem;
  }

  .nav-cta {
    text-align: center;
    justify-content: center;
    margin: 0.25rem 0 0;
    padding: 0.85rem;
    border-radius: var(--radius-sm);
  }

  .hero-ctas {
    flex-direction: column;
    width: 100%;
    max-width: 320px;
  }

  .btn-lg {
    justify-content: center;
  }

  .activities-grid {
    grid-template-columns: 1fr 1fr;
  }

  .safety-grid {
    grid-template-columns: 1fr;
  }

  .map-stats {
    gap: 0.75rem;
  }

  .map-stat {
    min-width: 120px;
    padding: 1.1rem 1.25rem;
  }

  .footer-nav {
    grid-template-columns: 1fr 1fr;
  }

  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }
}

@media (max-width: 480px) {
  .activities-grid {
    grid-template-columns: 1fr;
  }

  .trust-list {
    gap: 1rem 1.5rem;
  }

  .form-row {
    flex-direction: column;
  }

  .footer-nav {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .fade-section {
    opacity: 1;
    transform: none;
  }

  html {
    scroll-behavior: auto;
  }
}

/* =========================
   Auth Nav Chip (post sign-in only)
   ========================= */
.auth-area {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 4px 10px 4px 4px;
  background: var(--bg-light);
  border: 1.5px solid var(--border);
  border-radius: 100px;
  margin-left: 8px;
}

.user-chip-photo {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  object-fit: cover;
  display: block;
}

.user-chip-name {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--charcoal);
  max-width: 120px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* In-form Google sign-in button */
.form-google-divider {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin: 1rem 0 0.75rem;
  color: var(--text-muted);
  font-size: 0.8rem;
  font-weight: 500;
}
.form-google-divider::before,
.form-google-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border);
}

.btn-google-form {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 0.7rem 1rem;
  background: white;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-primary);
  cursor: pointer;
  transition: background var(--transition), border-color var(--transition), box-shadow var(--transition);
}
.btn-google-form:hover {
  background: #f8f9fa;
  border-color: #aaa;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}
.btn-google-form:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.btn-google {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 0.9rem;
  background: #fff;
  color: #3c4043;
  border: 1.5px solid #dadce0;
  border-radius: 999px;
  font-family: inherit;
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  transition: box-shadow 0.2s ease, border-color 0.2s ease;
}

.btn-google:hover {
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
  border-color: #2A9D8F;
}

.user-info {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.3rem 0.6rem 0.3rem 0.3rem;
  background: #f6f9f8;
  border: 1.5px solid #e8f5f3;
  border-radius: 999px;
}

.user-info img {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  object-fit: cover;
}

.user-info #user-name {
  font-size: 0.9rem;
  font-weight: 600;
  color: #264653;
}

.signout-btn {
  background: transparent;
  border: none;
  color: #E76F51;
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  padding: 0.2rem 0.5rem;
}

.signout-btn:hover {
  text-decoration: underline;
}

/* Mobile: stack sign-in button in the mobile nav */
@media (max-width: 768px) {
  .auth-area {
    justify-content: center;
    margin-top: 0.75rem;
  }
}
.problem-chip {
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid #c0e4df;
  background: #e8f5f3;
  cursor: pointer;
  font-size: 0.8rem;
  font-weight: 600;
  color: #2A9D8F;
  transition: all 0.2s ease;
}

.problem-chip:hover {
  background: #d7f0ec;
  transform: translateY(-1px);
}
/* =========================
   Google Sign-In in Nav
   ========================= */
.auth-area {
  display: flex;
  align-items: center;
}

.btn-google {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 0.9rem;
  background: #fff;
  color: #3c4043;
  border: 1.5px solid #dadce0;
  border-radius: 999px;
  font-family: inherit;
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  transition: box-shadow 0.2s ease, border-color 0.2s ease;
}

.btn-google:hover {
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
  border-color: #2A9D8F;
}

.user-info {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.3rem 0.6rem 0.3rem 0.3rem;
  background: #f6f9f8;
  border: 1.5px solid #e8f5f3;
  border-radius: 999px;
}

.user-info img {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  object-fit: cover;
}

.user-info #user-name {
  font-size: 0.9rem;
  font-weight: 600;
  color: #264653;
}

.signout-btn {
  background: transparent;
  border: none;
  color: #E76F51;
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  padding: 0.2rem 0.5rem;
}

.signout-btn:hover {
  text-decoration: underline;
}

/* Mobile: stack sign-in button in the mobile nav */
@media (max-width: 768px) {
  .auth-area {
    justify-content: center;
    margin-top: 0.75rem;
  }
}