/* ===== RESET & BASE ===== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --green:       #2e7d5e;
  --green-light: #3a9970;
  --green-dark:  #1f5941;
  --cream:       #f7f4ef;
  --white:       #ffffff;
  --navy:        #2c3550;
  --navy-dark:   #1e2540;
  --text:        #333333;
  --text-light:  #555555;
  --border:      #e0dcd4;
  --shadow:      0 4px 20px rgba(0,0,0,0.10);
  --radius:      10px;
  --font-body:   'Lato', sans-serif;
  --font-heading:'Merriweather', serif;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  color: var(--text);
  background: var(--white);
  line-height: 1.7;
  font-size: 1rem;
  -webkit-tap-highlight-color: transparent;
}

a { color: var(--green); text-decoration: none; touch-action: manipulation; }
a:hover { color: var(--green-dark); }

img { max-width: 100%; height: auto; display: block; }

/* ===== TYPOGRAPHY ===== */
h1, h2, h3, h4 {
  font-family: var(--font-heading);
  line-height: 1.3;
  color: var(--navy);
}

h1 { font-size: clamp(2rem, 5vw, 3.2rem); }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.4rem); margin-bottom: 1rem; }
h3 { font-size: 1.3rem; margin-bottom: 0.5rem; }

p { margin-bottom: 1rem; color: var(--text-light); }
p:last-child { margin-bottom: 0; }

/* ===== LAYOUT HELPERS ===== */
.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.section {
  padding: 5rem 0;
}

.section--alt {
  background: var(--cream);
}

.section__label {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--green);
  margin-bottom: 0.75rem;
}

.section__heading {
  margin-bottom: 1.25rem;
}

.section__intro {
  font-size: 1.1rem;
  max-width: 600px;
  margin-bottom: 2.5rem;
}

.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

@media (max-width: 768px) {
  .grid-2 { grid-template-columns: 1fr; gap: 2rem; }
  .grid-2--reverse > *:first-child { order: 2; }
  .grid-2--reverse > *:last-child  { order: 1; }
}

/* ===== NAV ===== */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--white);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.5rem;
  padding-left: calc(1.5rem + env(safe-area-inset-left));
  padding-right: calc(1.5rem + env(safe-area-inset-right));
  max-width: 1100px;
  margin: 0 auto;
}

.nav__logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
}

.nav__logo-icon {
  width: 42px;
  height: 42px;
  background: var(--green);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.nav__logo-icon svg {
  width: 28px;
  height: 28px;
  fill: none;
  stroke: var(--white);
  stroke-width: 2;
}

.nav__logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.nav__logo-text span:first-child {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--green-dark);
}

.nav__logo-text span:last-child {
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-light);
}

.nav__links {
  display: flex;
  align-items: center;
  gap: 2rem;
  list-style: none;
}

.nav__links a {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text);
  transition: color 0.2s;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.nav__links a:hover { color: var(--green); }

.nav__cta {
  background: var(--green) !important;
  color: var(--white) !important;
  padding: 0.5rem 1.2rem;
  border-radius: 6px;
  transition: background 0.2s !important;
}

.nav__cta:hover { background: var(--green-dark) !important; }

.nav__toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  min-width: 44px;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  touch-action: manipulation;
}

.nav__toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text);
  margin: 5px 0;
  transition: all 0.3s;
}

@media (max-width: 768px) {
  .nav__toggle { display: flex; }

  .nav__links {
    display: none;
    flex-direction: column;
    gap: 0;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--white);
    border-bottom: 1px solid var(--border);
    padding: 0.5rem 0 1rem;
    padding-left: env(safe-area-inset-left);
    padding-right: env(safe-area-inset-right);
  }

  .nav__links.open { display: flex; }

  .nav__links li { width: 100%; }

  .nav__links a {
    display: block;
    padding: 0.85rem 1.5rem;
    min-height: 44px;
  }

  .nav__cta {
    margin: 0.5rem 1.5rem 0;
    text-align: center;
    border-radius: 6px;
  }
}

/* ===== HERO ===== */
.hero {
  background:
    url("https://github.com/user-attachments/assets/68d0ba31-35e0-48c5-aeec-d7230370ccbf") center/cover no-repeat;
  color: var(--white);
  padding: 7rem 0 5rem;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.hero__inner {
  position: relative;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 3rem;
  align-items: center;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.hero__tag {
  display: inline-block;
  background: rgba(255,255,255,0.15);
  color: rgba(255,255,255,0.9);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 0.35rem 0.9rem;
  border-radius: 50px;
  border: 1px solid rgba(255,255,255,0.25);
  margin-bottom: 1.25rem;
}

.hero h1 {
  color: var(--white);
  margin-bottom: 1.25rem;
}

.hero h1 em {
  font-style: italic;
  color: rgba(255,255,255,0.85);
}

.hero__desc {
  font-size: 1.15rem;
  color: rgba(255,255,255,0.88);
  max-width: 520px;
  margin-bottom: 2rem;
}

.hero__desc p { color: rgba(255,255,255,0.88); margin-bottom: 0; }

.hero__actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.hero__logo-box {
  background: var(--white);
  border-radius: 16px;
  padding: 2rem;
  width: 220px;
  box-shadow: var(--shadow);
  flex-shrink: 0;
}

.hero__logo-box img {
  width: 100%;
  border-radius: 8px;
}

.hero__logo-fallback {
  background: var(--green);
  border-radius: 8px;
  padding: 1.5rem 1rem;
  text-align: center;
  color: var(--white);
}

.hero__logo-fallback .roof-icon {
  font-size: 3rem;
  margin-bottom: 0.5rem;
}

.hero__logo-fallback .logo-title {
  font-family: var(--font-heading);
  font-style: italic;
  font-size: 0.75rem;
  opacity: 0.85;
}

.hero__logo-fallback .logo-main {
  font-family: var(--font-heading);
  font-size: 1.9rem;
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.hero__logo-fallback .logo-sub {
  font-size: 0.75rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  opacity: 0.85;
  margin-top: 0.4rem;
}

@media (max-width: 768px) {
  .hero__inner {
    grid-template-columns: 1fr;
  }
  .hero__logo-box {
    width: 160px;
    margin: 0 auto;
    padding: 1.25rem;
  }
}

/* ===== BUTTONS ===== */
.btn {
  display: inline-block;
  padding: 0.75rem 1.75rem;
  border-radius: 8px;
  font-weight: 700;
  font-size: 0.95rem;
  cursor: pointer;
  transition: all 0.2s;
  text-align: center;
  letter-spacing: 0.03em;
  border: 2px solid transparent;
  min-height: 44px;
  touch-action: manipulation;
}

.btn--primary {
  background: var(--white);
  color: var(--green-dark);
  border-color: var(--white);
}

.btn--primary:hover {
  background: transparent;
  color: var(--white);
}

.btn--outline {
  background: transparent;
  color: var(--white);
  border-color: rgba(255,255,255,0.7);
}

.btn--outline:hover {
  background: rgba(255,255,255,0.15);
  border-color: var(--white);
  color: var(--white);
}

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

.btn--green:hover {
  background: var(--green-dark);
  border-color: var(--green-dark);
  color: var(--white);
}

.btn--ghost {
  background: transparent;
  color: var(--green);
  border-color: var(--green);
}

.btn--ghost:hover {
  background: var(--green);
  color: var(--white);
}


/* ===== ABOUT ===== */
.about__image-wrap {
  position: relative;
}

.about__image-wrap img {
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  width: 100%;
  object-fit: cover;
  height: 380px;
}

.about__image-placeholder {
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  width: 100%;
  height: 380px;
  background: linear-gradient(135deg, var(--green-dark), var(--green-light));
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.7);
  font-size: 5rem;
  gap: 0.5rem;
}

.about__image-placeholder span {
  font-size: 1rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-weight: 600;
}

.about__badge {
  position: absolute;
  bottom: -1.2rem;
  right: -1rem;
  background: var(--green);
  color: var(--white);
  padding: 0.9rem 1.2rem;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  font-family: var(--font-heading);
  font-size: 0.88rem;
  line-height: 1.4;
  text-align: center;
  max-width: 140px;
}

.about__badge strong {
  display: block;
  font-size: 1.5rem;
}

/* ===== MISSION ===== */
.mission__cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem;
  margin-top: 2.5rem;
}

.mission-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.75rem;
  transition: box-shadow 0.2s, transform 0.2s;
}

.mission-card:hover {
  box-shadow: var(--shadow);
  transform: translateY(-3px);
}

.mission-card__icon {
  font-size: 2.2rem;
  margin-bottom: 0.9rem;
}

.mission-card h3 {
  color: var(--navy);
}

.mission-card p {
  font-size: 0.95rem;
}

/* ===== HOW TO HELP ===== */
.help__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.75rem;
  margin-top: 2.5rem;
}

.help-card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(0,0,0,0.07);
  display: flex;
  flex-direction: column;
}

.help-card__top {
  background: var(--green);
  padding: 2rem 1.75rem 1.5rem;
  color: var(--white);
}

.help-card__top.alt { background: var(--navy); }
.help-card__top.alt2 { background: var(--green-dark); }

.help-card__icon { font-size: 2.5rem; margin-bottom: 0.75rem; }

.help-card__top h3 {
  color: var(--white);
  font-size: 1.25rem;
}

.help-card__body {
  padding: 1.5rem 1.75rem;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.help-card__body p { font-size: 0.95rem; }

/* ===== VOLUNTEER NEEDS ===== */
.needs__list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
  margin-top: 2rem;
}

.need-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 0.9rem 1.1rem;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--navy);
}

.need-item__dot {
  width: 10px;
  height: 10px;
  background: var(--green);
  border-radius: 50%;
  flex-shrink: 0;
}

/* ===== QUOTE ===== */
.quote-section {
  background: linear-gradient(135deg, var(--green-dark), var(--green));
  padding: 5rem 0;
  text-align: center;
  color: var(--white);
}

.quote-section blockquote {
  font-family: var(--font-heading);
  font-size: clamp(1.3rem, 3vw, 1.9rem);
  font-style: italic;
  max-width: 760px;
  margin: 0 auto 1.25rem;
  color: rgba(255,255,255,0.95);
  line-height: 1.5;
}

.quote-section cite {
  font-size: 0.9rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.65);
}

/* ===== CONTACT ===== */
.contact__grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 3rem;
  align-items: start;
}

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

.contact__info p { font-size: 1rem; }

.contact__item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.contact__item-icon {
  font-size: 1.5rem;
  flex-shrink: 0;
  margin-top: 0.1rem;
}

.contact__item-label {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--green);
  margin-bottom: 0.2rem;
}

.contact__item-value {
  font-size: 1rem;
  color: var(--text);
  margin: 0;
}

.contact__form {
  background: var(--cream);
  border-radius: var(--radius);
  padding: 2rem;
}

.contact__form h3 {
  margin-bottom: 1.25rem;
  color: var(--navy);
}

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

.form-group label {
  display: block;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 0.35rem;
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 0.7rem 0.9rem;
  border: 1px solid var(--border);
  border-radius: 6px;
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--text);
  background: var(--white);
  transition: border-color 0.2s;
  -webkit-appearance: none;
  appearance: none;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--green);
}

.form-group textarea { resize: vertical; min-height: 110px; }

.input-error {
  border-color: #c0392b !important;
}

.field-error {
  display: block;
  font-size: 0.82rem;
  color: #c0392b;
  margin-top: 0.3rem;
}

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

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

/* ===== FOOTER ===== */
.footer {
  background: var(--navy-dark);
  color: rgba(255,255,255,0.65);
  padding: 3.5rem 0 1.5rem;
  padding-bottom: calc(1.5rem + env(safe-area-inset-bottom));
}

.footer__grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 2.5rem;
  padding-bottom: 2.5rem;
  border-bottom: 1px solid rgba(255,255,255,0.1);
  margin-bottom: 1.5rem;
}

@media (max-width: 768px) {
  .footer__grid { grid-template-columns: 1fr; gap: 2rem; }
}

.footer__brand p {
  color: rgba(255,255,255,0.55);
  font-size: 0.9rem;
  margin-top: 0.75rem;
  max-width: 280px;
}

.footer__logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.footer__logo-icon {
  width: 36px;
  height: 36px;
  background: var(--green);
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.footer__logo-icon svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: var(--white);
  stroke-width: 2;
}

.footer__logo span {
  font-family: var(--font-heading);
  font-size: 1.05rem;
  color: var(--white);
}

.footer__col h4 {
  color: var(--white);
  font-size: 0.82rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 1rem;
  font-family: var(--font-body);
  font-weight: 700;
}

.footer__col ul {
  list-style: none;
}

.footer__col ul li { margin-bottom: 0.5rem; }

.footer__col ul a {
  color: rgba(255,255,255,0.55);
  font-size: 0.9rem;
  transition: color 0.2s;
}

.footer__col ul a:hover { color: var(--white); }

.footer__social {
  display: flex;
  gap: 0.75rem;
  margin-top: 1rem;
}

.footer__social a {
  width: 36px;
  height: 36px;
  background: rgba(255,255,255,0.08);
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.6);
  font-size: 1rem;
  transition: background 0.2s, color 0.2s;
}

.footer__social a:hover {
  background: var(--green);
  color: var(--white);
}

.footer__bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.82rem;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.footer__bottom p { color: rgba(255,255,255,0.4); margin: 0; }

.footer__bottom a {
  color: rgba(255,255,255,0.4);
  transition: color 0.2s;
}

.footer__bottom a:hover { color: rgba(255,255,255,0.8); }

/* ===== NOTICE BANNER ===== */
.notice-banner {
  background: var(--green);
  color: var(--white);
  text-align: center;
  padding: 0.6rem 1.5rem;
  padding-left: calc(1.5rem + env(safe-area-inset-left));
  padding-right: calc(1.5rem + env(safe-area-inset-right));
  font-size: 0.88rem;
  font-weight: 600;
}

.notice-banner a { color: var(--white); text-decoration: underline; }

/* ===== TOAST ===== */
.toast {
  position: fixed;
  bottom: calc(2rem + env(safe-area-inset-bottom));
  right: calc(2rem + env(safe-area-inset-right));
  background: var(--navy);
  color: var(--white);
  padding: 1rem 1.5rem;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  font-size: 0.95rem;
  display: none;
  z-index: 999;
  border-left: 4px solid var(--green);
}

.toast.show { display: block; animation: fadeIn 0.3s ease; }

@keyframes fadeIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }

/* ===== SCROLL TO TOP ===== */
.scroll-top {
  position: fixed;
  bottom: calc(2rem + env(safe-area-inset-bottom));
  left: calc(2rem + env(safe-area-inset-left));
  width: 44px;
  height: 44px;
  background: var(--green);
  border: none;
  border-radius: 50%;
  color: var(--white);
  font-size: 1.2rem;
  cursor: pointer;
  box-shadow: var(--shadow);
  opacity: 0;
  transition: opacity 0.3s;
  z-index: 999;
  touch-action: manipulation;
}

.scroll-top.visible { opacity: 1; }
.scroll-top:hover { background: var(--green-dark); }
