/* =============================================
   Kauai North Shore Food Pantry - Main Styles
   ============================================= */

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

:root {
  --green-dark:   #1a5c2a;
  --green-mid:    #2e8b57;
  --green-light:  #4caf50;
  --green-pale:   #e8f5e9;
  --orange:       #f57c00;
  --orange-light: #fff3e0;
  --text-dark:    #1b2b1f;
  --text-mid:     #3d5a44;
  --text-light:   #6e9478;
  --white:        #ffffff;
  --gray-bg:      #f7faf8;
  --shadow:       0 4px 20px rgba(0,0,0,0.10);
  --radius:       12px;
  --transition:   0.3s ease;
  --font-main:    'Segoe UI', Arial, sans-serif;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-main);
  color: var(--text-dark);
  background: var(--white);
  line-height: 1.7;
  font-size: 16px;
}

/* --- Typography --- */
h1, h2, h3, h4 { line-height: 1.25; font-weight: 700; }
h1 { font-size: clamp(2rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.4rem); }
h3 { font-size: clamp(1.2rem, 2.5vw, 1.6rem); }
p  { margin-bottom: 1rem; color: var(--text-mid); }
a  { color: var(--green-mid); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--green-dark); }

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

.container {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 24px;
}

/* --- Buttons --- */
.btn {
  display: inline-block;
  padding: 14px 32px;
  border-radius: 50px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition);
  border: 2px solid transparent;
  text-align: center;
}
.btn-primary {
  background: var(--green-mid);
  color: var(--white);
  border-color: var(--green-mid);
}
.btn-primary:hover {
  background: var(--green-dark);
  border-color: var(--green-dark);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(46,139,87,0.35);
}
.btn-outline {
  background: transparent;
  color: var(--white);
  border-color: var(--white);
}
.btn-outline:hover {
  background: var(--white);
  color: var(--green-dark);
  transform: translateY(-2px);
}
.btn-orange {
  background: var(--orange);
  color: var(--white);
  border-color: var(--orange);
}
.btn-orange:hover {
  background: #e65100;
  border-color: #e65100;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(245,124,0,0.35);
}

/* --- Section Utility --- */
.section {
  padding: 80px 0;
}
.section-alt {
  background: var(--gray-bg);
}
.section-title {
  text-align: center;
  margin-bottom: 16px;
  color: var(--green-dark);
}
.section-subtitle {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 48px;
  color: var(--text-mid);
  font-size: 1.1rem;
}
.divider {
  width: 60px;
  height: 4px;
  background: var(--green-mid);
  border-radius: 2px;
  margin: 12px auto 24px;
}

/* =============================================
   NAVBAR
   ============================================= */
.navbar {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--white);
  box-shadow: 0 2px 12px rgba(0,0,0,0.08);
  transition: background var(--transition);
}
.navbar .container {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 32px;
  height: 72px;
}
.nav-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  flex-shrink: 0;
}
.nav-logo img {
  width: 48px;
  height: 48px;
  object-fit: contain;
}
.nav-logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}
.nav-logo-text strong {
  font-size: 1rem;
  color: var(--green-dark);
}
.nav-logo-text span {
  font-size: 0.75rem;
  color: var(--text-light);
}
.nav-links {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 8px;
  list-style: none;
}
.nav-links li:last-child {
  margin-left: auto;
}
.nav-links a {
  padding: 8px 14px;
  border-radius: 8px;
  color: var(--text-dark);
  font-weight: 500;
  font-size: 0.95rem;
  transition: all var(--transition);
}
.nav-links a:hover,
.nav-links a.active {
  background: var(--green-pale);
  color: var(--green-dark);
}
.nav-donate-btn {
  background: var(--orange) !important;
  color: var(--white) !important;
  border-radius: 50px !important;
  padding: 8px 20px !important;
}
.nav-donate-btn:hover {
  background: #e65100 !important;
  transform: translateY(-1px);
}
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 4px;
}
.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--green-dark);
  border-radius: 2px;
  transition: all var(--transition);
}

/* --- Mobile Nav --- */
@media (max-width: 768px) {
  .navbar .container { justify-content: space-between; }
  .nav-toggle { display: flex; }
  .nav-links {
    display: none;
    position: absolute;
    top: 72px; left: 0; right: 0;
    background: var(--white);
    flex-direction: column;
    padding: 16px 24px 24px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.1);
    gap: 4px;
  }
  .nav-links.open { display: flex; }
  .nav-links li:last-child { margin-left: 0; margin-top: 8px; }
  .nav-links a { display: block; padding: 10px 16px; }
}

/* =============================================
   HERO
   ============================================= */
.hero {
  background: linear-gradient(135deg, var(--green-dark) 0%, var(--green-mid) 60%, #66bb6a 100%);
  color: var(--white);
  padding: 100px 0 80px;
  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.04'%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-content {
  position: relative;
  z-index: 1;
  max-width: 700px;
}
.hero-badge {
  display: inline-block;
  background: rgba(255,255,255,0.15);
  border: 1px solid rgba(255,255,255,0.3);
  color: var(--white);
  padding: 6px 18px;
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.5px;
  margin-bottom: 20px;
  text-transform: uppercase;
}
.hero h1 { color: var(--white); margin-bottom: 20px; }
.hero p  { color: rgba(255,255,255,0.88); font-size: 1.15rem; margin-bottom: 36px; }
.hero-buttons { display: flex; gap: 16px; flex-wrap: wrap; }
.hero-stats {
  display: flex;
  gap: 40px;
  margin-top: 56px;
  flex-wrap: wrap;
}
.hero-stat strong {
  display: block;
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--white);
  line-height: 1;
}
.hero-stat span {
  font-size: 0.9rem;
  color: rgba(255,255,255,0.75);
}

/* =============================================
   CARDS
   ============================================= */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 28px;
}
.card {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  transition: transform var(--transition), box-shadow var(--transition);
}
.card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 36px rgba(0,0,0,0.13);
}
.card-icon {
  width: 56px;
  height: 56px;
  background: var(--green-pale);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  margin-bottom: 16px;
}
.card-body { padding: 28px; }
.card-body h3 { color: var(--green-dark); margin-bottom: 10px; }

/* =============================================
   IMPACT BANNER
   ============================================= */
.impact-banner {
  background: linear-gradient(90deg, var(--green-dark), var(--green-mid));
  color: var(--white);
  padding: 60px 0;
}
.impact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 32px;
  text-align: center;
}
.impact-item strong {
  display: block;
  font-size: 2.8rem;
  font-weight: 800;
}
.impact-item span { font-size: 1rem; opacity: 0.85; }

/* =============================================
   FOOTER
   ============================================= */
.footer {
  background: var(--green-dark);
  color: rgba(255,255,255,0.8);
  padding: 60px 0 24px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr repeat(3, 1fr);
  gap: 40px;
  margin-bottom: 40px;
}
@media (max-width: 768px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 480px) {
  .footer-grid { grid-template-columns: 1fr; }
}
.footer h4 { color: var(--white); font-size: 1rem; margin-bottom: 16px; }
.footer ul { list-style: none; }
.footer ul li { margin-bottom: 8px; }
.footer ul a { color: rgba(255,255,255,0.7); font-size: 0.9rem; transition: color var(--transition); }
.footer ul a:hover { color: var(--white); }
.footer-desc { font-size: 0.9rem; line-height: 1.7; margin-bottom: 20px; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.12);
  padding-top: 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 0.85rem;
}
.social-links { display: flex; gap: 12px; }
.social-links a {
  display: flex; align-items: center; justify-content: center;
  width: 36px; height: 36px;
  border-radius: 50%;
  background: rgba(255,255,255,0.1);
  color: var(--white);
  font-size: 1rem;
  transition: background var(--transition);
  text-decoration: none;
}
.social-links a:hover { background: var(--green-mid); }

/* =============================================
   PAGE HEADER (inner pages)
   ============================================= */
.page-header {
  background: linear-gradient(135deg, var(--green-dark), var(--green-mid));
  color: var(--white);
  padding: 70px 0 50px;
  text-align: center;
}
.page-header h1 { color: var(--white); margin-bottom: 12px; }
.page-header p  { color: rgba(255,255,255,0.85); font-size: 1.1rem; max-width: 580px; margin: 0 auto; }
.breadcrumb {
  font-size: 0.85rem;
  opacity: 0.75;
  margin-bottom: 16px;
}
.breadcrumb a { color: rgba(255,255,255,0.8); }

/* =============================================
   FORMS
   ============================================= */
.form-group { margin-bottom: 20px; }
.form-group label {
  display: block;
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 6px;
  font-size: 0.95rem;
}
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 12px 16px;
  border: 1.5px solid #dde8e0;
  border-radius: 8px;
  font-size: 1rem;
  color: var(--text-dark);
  background: var(--white);
  transition: border-color var(--transition), box-shadow var(--transition);
  font-family: var(--font-main);
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--green-mid);
  box-shadow: 0 0 0 3px rgba(46,139,87,0.15);
}
.form-group textarea { resize: vertical; min-height: 120px; }
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
@media (max-width: 600px) { .form-row { grid-template-columns: 1fr; } }

/* =============================================
   ALERT / NOTIFICATION
   ============================================= */
.alert {
  padding: 16px 20px;
  border-radius: var(--radius);
  font-size: 0.95rem;
  font-weight: 500;
  display: none;
  margin-top: 16px;
}
.alert-success { background: var(--green-pale); color: var(--green-dark); border: 1px solid #a5d6a7; }
.alert-info    { background: var(--orange-light); color: #e65100; border: 1px solid #ffcc80; }

/* =============================================
   RESPONSIVE UTILITIES
   ============================================= */
@media (max-width: 768px) {
  .section { padding: 56px 0; }
  .hero { padding: 70px 0 56px; }
  .hero-stats { gap: 24px; }
  .impact-item strong { font-size: 2rem; }
}
