/* ============================================================
   TOTES OF LOVE — Shared Stylesheet
   Food Pantry | Florence, KY
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;700;800&family=Nunito:wght@300;400;500;600;700;800&display=swap');

:root {
  --teal:          #68ccd1;
  --teal-dark:     #1a6b7c;
  --teal-deeper:   #0d4a57;
  --rose:          #e85d7a;
  --rose-dark:     #c73060;
  --gold:          #f5c842;
  --cream:         #f8fafb;
  --white:         #ffffff;
  --text-dark:     #1c2b30;
  --text-mid:      #4a6470;
  --text-light:    #8aa5af;
  --bg-light:      #eef7f8;
  --shadow-sm:     0 2px 12px rgba(26,107,124,0.10);
  --shadow-md:     0 8px 30px rgba(26,107,124,0.15);
  --shadow-lg:     0 20px 50px rgba(26,107,124,0.20);
  --radius:        14px;
  --radius-lg:     24px;
  --transition:    all 0.3s cubic-bezier(0.25,0.8,0.25,1);
}

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

html { scroll-behavior: smooth; }

body {
  font-family: 'Nunito', sans-serif;
  background: var(--white);
  color: var(--text-dark);
  line-height: 1.7;
  overflow-x: hidden;
}

h1,h2,h3,h4,h5 {
  font-family: 'Playfair Display', serif;
  line-height: 1.25;
}

a { text-decoration: none; color: inherit; }

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

/* ─── NAVBAR ─── */
.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 5%;
  background: var(--white);
  box-shadow: 0 2px 20px rgba(26,107,124,0.12);
  position: sticky;
  top: 0;
  z-index: 1000;
  height: 80px;
}

.logo-link {
  display: flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
  flex-shrink: 0;
}

.logo-img {
  width: 62px;
  height: 62px;
  object-fit: contain;
}

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

.logo-text .brand-name {
  font-family: 'Playfair Display', serif;
  font-size: 22px;
  font-weight: 800;
  color: var(--teal-dark);
  letter-spacing: 0.5px;
}

.logo-text .brand-sub {
  font-size: 11px;
  font-weight: 600;
  color: var(--teal);
  letter-spacing: 1.5px;
  text-transform: uppercase;
}

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 6px;
  border: none;
  background: none;
  z-index: 1100;
}

.hamburger span {
  display: block;
  width: 26px;
  height: 2.5px;
  background: var(--teal-dark);
  border-radius: 2px;
  transition: var(--transition);
}

.hamburger.open span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

/* Nav links */
.nav-links {
  display: flex;
  align-items: center;
  gap: 6px;
}

.nav-links a {
  font-family: 'Nunito', sans-serif;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-dark);
  padding: 6px 10px;
  border-radius: 8px;
  transition: var(--transition);
  white-space: nowrap;
  letter-spacing: 0.2px;
}

.nav-links a:hover {
  color: var(--teal-dark);
  background: var(--bg-light);
}

.nav-links .btn-donate {
  background: var(--gold);
  color: var(--text-dark) !important;
  padding: 9px 20px !important;
  border-radius: 50px;
  font-weight: 700 !important;
  font-size: 14px !important;
  box-shadow: 0 4px 14px rgba(245,200,66,0.4);
  animation: btnPulse 3s ease infinite;
}

.nav-links .btn-donate:hover {
  background: #e0b530 !important;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(245,200,66,0.5) !important;
}

.nav-links .btn-volunteer {
  background: var(--rose) !important;
  color: white !important;
  padding: 9px 20px !important;
  border-radius: 50px;
  font-weight: 700 !important;
  font-size: 14px !important;
  box-shadow: 0 4px 14px rgba(232,93,122,0.35);
}

.nav-links .btn-volunteer:hover {
  background: var(--rose-dark) !important;
  transform: translateY(-2px);
}

@keyframes btnPulse {
  0%,100% { box-shadow: 0 4px 14px rgba(245,200,66,0.4); }
  50% { box-shadow: 0 6px 22px rgba(245,200,66,0.65), 0 0 0 4px rgba(245,200,66,0.15); }
}

/* ─── SECTION TITLES ─── */
.section-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(28px, 4vw, 42px);
  color: var(--teal-dark);
  text-align: center;
  margin-bottom: 12px;
  position: relative;
  padding-bottom: 18px;
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: 0; left: 50%;
  transform: translateX(-50%);
  width: 70px; height: 4px;
  background: linear-gradient(90deg, var(--teal), var(--rose));
  border-radius: 2px;
}

.section-subtitle {
  text-align: center;
  color: var(--text-mid);
  font-size: 17px;
  margin-bottom: 50px;
  max-width: 640px;
  margin-left: auto;
  margin-right: auto;
}

/* ─── BUTTONS ─── */
.btn {
  display: inline-block;
  padding: 14px 36px;
  border-radius: 50px;
  font-family: 'Nunito', sans-serif;
  font-weight: 700;
  font-size: 16px;
  transition: var(--transition);
  cursor: pointer;
  border: none;
  letter-spacing: 0.3px;
}

.btn-primary {
  background: var(--teal-dark);
  color: var(--white);
  box-shadow: 0 6px 20px rgba(26,107,124,0.35);
}

.btn-primary:hover {
  background: var(--teal-deeper);
  transform: translateY(-3px);
  box-shadow: 0 12px 28px rgba(26,107,124,0.45);
}

.btn-secondary {
  background: transparent;
  color: var(--teal-dark);
  border: 2.5px solid var(--teal-dark);
}

.btn-secondary:hover {
  background: var(--teal-dark);
  color: white;
  transform: translateY(-3px);
}

.btn-rose {
  background: var(--rose);
  color: white;
  box-shadow: 0 6px 20px rgba(232,93,122,0.35);
}

.btn-rose:hover {
  background: var(--rose-dark);
  transform: translateY(-3px);
  box-shadow: 0 12px 28px rgba(199,48,96,0.45);
}

/* ─── PAGE HEADER ─── */
.page-header {
  background: linear-gradient(135deg, var(--teal-deeper) 0%, var(--teal-dark) 60%, #1a8a96 100%);
  padding: 60px 5%;
  text-align: center;
  color: white;
  position: relative;
  overflow: hidden;
}

.page-header::before {
  content: '';
  position: absolute;
  top: -50%; right: -10%;
  width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(104,204,209,0.2) 0%, transparent 70%);
  border-radius: 50%;
}

.page-header h1 {
  font-size: clamp(32px,5vw,54px);
  margin-bottom: 12px;
  text-shadow: 0 3px 12px rgba(0,0,0,0.3);
}

.page-header p {
  font-size: 18px;
  opacity: 0.9;
  max-width: 600px;
  margin: 0 auto;
}

/* ─── FOOTER ─── */
footer {
  background: var(--teal-deeper);
  color: #b8d8dc;
  padding: 60px 5% 30px;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 40px;
  max-width: 1200px;
  margin: 0 auto 40px;
}

.footer-section h3 {
  font-family: 'Playfair Display', serif;
  font-size: 18px;
  color: white;
  margin-bottom: 20px;
  padding-bottom: 10px;
  position: relative;
}

.footer-section h3::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0;
  width: 40px; height: 3px;
  background: var(--teal);
  border-radius: 2px;
}

.footer-section p,
.footer-section a {
  color: #9ecdd4;
  font-size: 14px;
  line-height: 2.2;
  transition: color 0.2s;
}

.footer-section a:hover { color: white; }

.footer-bottom {
  text-align: center;
  padding-top: 25px;
  border-top: 1px solid rgba(104,204,209,0.2);
  color: #6a9da4;
  font-size: 13px;
}

/* ─── FORMS ─── */
.form-group { margin-bottom: 22px; }

.form-group label {
  display: block;
  margin-bottom: 7px;
  font-weight: 600;
  color: var(--text-dark);
  font-size: 14px;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 13px 16px;
  border: 2px solid #d4e8eb;
  border-radius: var(--radius);
  font-family: 'Nunito', sans-serif;
  font-size: 15px;
  color: var(--text-dark);
  background: white;
  transition: var(--transition);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--teal);
  box-shadow: 0 0 0 4px rgba(104,204,209,0.18);
}

/* ─── ALERTS ─── */
.alert {
  padding: 14px 18px;
  border-radius: var(--radius);
  margin-bottom: 20px;
  font-weight: 600;
  font-size: 14px;
}

.alert-error { background: #fdecea; color: #c0392b; border-left: 4px solid #e74c3c; }
.alert-success { background: #eafaf1; color: #1e8449; border-left: 4px solid #27ae60; }

/* ─── MOBILE NAV ─── */
@media (max-width: 900px) {
  .hamburger { display: flex; }

  .nav-links {
    position: fixed;
    top: 0; right: -100%;
    width: min(320px, 85vw);
    height: 100vh;
    background: white;
    flex-direction: column;
    align-items: flex-start;
    padding: 90px 30px 40px;
    box-shadow: -4px 0 30px rgba(0,0,0,0.15);
    gap: 4px;
    transition: right 0.35s cubic-bezier(0.4,0,0.2,1);
    overflow-y: auto;
    z-index: 1050;
  }

  .nav-links.open { right: 0; }

  .nav-links a {
    width: 100%;
    padding: 12px 16px;
    font-size: 16px;
    border-radius: 10px;
  }

  .nav-links .btn-donate,
  .nav-links .btn-volunteer {
    width: 100%;
    text-align: center;
    margin-top: 6px;
  }

  .nav-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.4);
    z-index: 1040;
  }

  .nav-overlay.show { display: block; }
}

@media (max-width: 500px) {
  .navbar { height: 68px; }
  .logo-img { width: 50px; height: 50px; }
  .logo-text .brand-name { font-size: 18px; }
}
