/* =============================================
   HARVEST COMMUNITY — Styles
   Template 18 · Outreach
   Palette: Olive Green + Terracotta
   Fonts: Literata (display) + Figtree (body)
   ============================================= */

@import url('https://fonts.googleapis.com/css2?family=Literata:ital,opsz,wght@0,7..72,400;0,7..72,500;0,7..72,600;0,7..72,700;0,7..72,800;1,7..72,400&family=Figtree:wght@300;400;500;600;700&display=swap');

/* ---------- Design Tokens ---------- */
:root {
  --hc-olive:         #556b2f;
  --hc-dark:          #2c3517;
  --hc-terracotta:    #c2703e;
  --hc-warm-sand:     #f5e6d0;
  --hc-cream:         #faf6f0;
  --hc-brown:         #5c4033;
  --hc-white:         #ffffff;
  --hc-text:          #3d3426;
  --hc-text-light:    #8a7e6e;
  --hc-olive-light:   #7a9a44;
  --hc-terracotta-light: #d9956e;

  --hc-font-display:  'Literata', serif;
  --hc-font-body:     'Figtree', sans-serif;

  --hc-nav-height:    72px;
  --hc-banner-height: 36px;
  --hc-radius:        12px;
  --hc-radius-lg:     20px;
  --hc-shadow:        0 4px 24px rgba(92, 64, 51, .08);
  --hc-shadow-lg:     0 12px 40px rgba(92, 64, 51, .12);
  --hc-transition:    .3s ease;
}

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

body {
  font-family: var(--hc-font-body);
  color: var(--hc-text);
  background: var(--hc-cream);
  line-height: 1.7;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5 {
  font-family: var(--hc-font-display);
  line-height: 1.2;
  font-weight: 700;
}

img { max-width: 100%; height: auto; display: block; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }

.hc-container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
}

/* ---------- Demo Banner ---------- */
.hc-demo-banner {
  background: var(--hc-dark);
  color: var(--hc-terracotta-light);
  text-align: center;
  padding: 8px 16px;
  font-family: var(--hc-font-body);
  font-size: .85rem;
  font-weight: 600;
  height: var(--hc-banner-height);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
}

.hc-demo-banner a {
  color: var(--hc-terracotta);
  text-decoration: underline;
}

/* ---------- Navigation ---------- */
.hc-nav {
  position: fixed;
  top: var(--hc-banner-height);
  left: 0;
  width: 100%;
  height: var(--hc-nav-height);
  z-index: 960;
  display: flex;
  align-items: center;
  transition: background var(--hc-transition), box-shadow var(--hc-transition);
  background: transparent;
}

.hc-nav.scrolled {
  background: rgba(250, 246, 240, .95);
  backdrop-filter: blur(12px);
  box-shadow: 0 2px 16px rgba(92, 64, 51, .08);
}

.hc-nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
}

.hc-logo {
  font-family: var(--hc-font-display);
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--hc-olive);
  display: flex;
  align-items: center;
  gap: 10px;
}

.hc-logo-icon {
  font-size: 1.5rem;
}

.hc-nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
}

.hc-nav-links a {
  font-family: var(--hc-font-body);
  font-size: .9rem;
  font-weight: 600;
  color: var(--hc-brown);
  transition: color var(--hc-transition);
}

.hc-nav-links a:hover {
  color: var(--hc-terracotta);
}

.hc-nav-cta {
  background: var(--hc-terracotta) !important;
  color: var(--hc-white) !important;
  padding: 10px 24px;
  border-radius: 50px;
  transition: all var(--hc-transition) !important;
}

.hc-nav-cta:hover {
  background: #a85d32 !important;
  transform: translateY(-2px);
}

/* Hamburger */
.hc-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  z-index: 970;
}

.hc-hamburger span {
  width: 26px;
  height: 3px;
  background: var(--hc-olive);
  border-radius: 3px;
  transition: var(--hc-transition);
}

.hc-hamburger.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 6px); }
.hc-hamburger.active span:nth-child(2) { opacity: 0; }
.hc-hamburger.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -6px); }

/* ---------- Hero: Photo Mosaic ---------- */
.hc-hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: calc(var(--hc-banner-height) + var(--hc-nav-height) + 40px) 0 80px;
  background: var(--hc-dark);
  overflow: hidden;
}

.hc-hero-mosaic {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-template-rows: repeat(3, 1fr);
  gap: 4px;
  opacity: .3;
  z-index: 1;
}

.hc-mosaic-tile {
  overflow: hidden;
}

.hc-mosaic-tile img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hc-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(44, 53, 23, .75) 0%, rgba(85, 107, 47, .6) 100%);
  z-index: 2;
}

.hc-hero-content {
  position: relative;
  z-index: 3;
  max-width: 640px;
}

.hc-hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(194, 112, 62, .2);
  border: 1px solid rgba(194, 112, 62, .3);
  border-radius: 50px;
  padding: 8px 20px;
  font-family: var(--hc-font-body);
  font-size: .8rem;
  font-weight: 600;
  color: var(--hc-terracotta-light);
  margin-bottom: 24px;
  text-transform: uppercase;
  letter-spacing: .5px;
}

.hc-hero h1 {
  font-size: clamp(2.4rem, 5vw, 3.6rem);
  color: var(--hc-white);
  margin-bottom: 20px;
}

.hc-hero h1 span {
  color: var(--hc-terracotta-light);
}

.hc-hero-text {
  font-size: 1.1rem;
  color: rgba(255, 255, 255, .7);
  margin-bottom: 32px;
  max-width: 500px;
  line-height: 1.8;
}

.hc-hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.hc-btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--hc-terracotta);
  color: var(--hc-white);
  font-family: var(--hc-font-body);
  font-size: .95rem;
  font-weight: 700;
  padding: 14px 32px;
  border-radius: 50px;
  transition: all var(--hc-transition);
  border: none;
  cursor: pointer;
}

.hc-btn-primary:hover {
  background: #a85d32;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(194, 112, 62, .3);
}

.hc-btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: transparent;
  color: var(--hc-white);
  font-family: var(--hc-font-body);
  font-size: .95rem;
  font-weight: 600;
  padding: 14px 32px;
  border-radius: 50px;
  border: 2px solid rgba(255, 255, 255, .25);
  transition: all var(--hc-transition);
  cursor: pointer;
}

.hc-btn-secondary:hover {
  border-color: var(--hc-terracotta);
  color: var(--hc-terracotta-light);
  transform: translateY(-2px);
}

/* ---------- Section Defaults ---------- */
.hc-section {
  padding: 100px 0;
}

.hc-section-header {
  text-align: center;
  margin-bottom: 60px;
}

.hc-section-label {
  display: inline-block;
  font-family: var(--hc-font-body);
  font-size: .8rem;
  font-weight: 700;
  color: var(--hc-terracotta);
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 12px;
}

.hc-section-header h2 {
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  color: var(--hc-olive);
  margin-bottom: 16px;
}

.hc-section-header p {
  font-size: 1.05rem;
  color: var(--hc-text-light);
  max-width: 600px;
  margin: 0 auto;
}

/* ---------- Projects / Tracker ---------- */
.hc-projects {
  background: var(--hc-white);
}

.hc-project-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.hc-project-card {
  background: var(--hc-cream);
  border-radius: var(--hc-radius-lg);
  overflow: hidden;
  box-shadow: var(--hc-shadow);
  transition: transform var(--hc-transition), box-shadow var(--hc-transition);
}

.hc-project-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--hc-shadow-lg);
}

.hc-project-image {
  height: 200px;
  overflow: hidden;
  position: relative;
}

.hc-project-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .5s ease;
}

.hc-project-card:hover .hc-project-image img {
  transform: scale(1.05);
}

.hc-project-season {
  position: absolute;
  top: 16px;
  left: 16px;
  background: var(--hc-olive);
  color: var(--hc-white);
  font-family: var(--hc-font-body);
  font-size: .7rem;
  font-weight: 700;
  padding: 4px 14px;
  border-radius: 50px;
  text-transform: uppercase;
  letter-spacing: .5px;
}

.hc-project-body {
  padding: 28px;
}

.hc-project-body h3 {
  font-size: 1.15rem;
  color: var(--hc-olive);
  margin-bottom: 12px;
}

.hc-project-body p {
  font-size: .95rem;
  color: var(--hc-text-light);
  margin-bottom: 16px;
}

.hc-project-timeline {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: .85rem;
  font-weight: 600;
  color: var(--hc-terracotta);
}

/* ---------- Food Bank ---------- */
.hc-foodbank {
  background: var(--hc-cream);
}

.hc-foodbank-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.hc-foodbank-content h2 {
  font-size: 2rem;
  color: var(--hc-olive);
  margin-bottom: 16px;
}

.hc-foodbank-content p {
  color: var(--hc-text-light);
  font-size: 1.05rem;
  margin-bottom: 24px;
}

.hc-schedule-list {
  margin-bottom: 28px;
}

.hc-schedule-item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px;
  background: var(--hc-white);
  border-radius: var(--hc-radius);
  margin-bottom: 12px;
  border: 1px solid rgba(85, 107, 47, .08);
  transition: all var(--hc-transition);
}

.hc-schedule-item:hover {
  border-color: rgba(194, 112, 62, .2);
}

.hc-schedule-day {
  min-width: 60px;
  text-align: center;
}

.hc-schedule-day strong {
  display: block;
  font-family: var(--hc-font-display);
  font-size: 1.2rem;
  color: var(--hc-olive);
}

.hc-schedule-day span {
  font-size: .75rem;
  color: var(--hc-text-light);
}

.hc-schedule-info h4 {
  font-size: .95rem;
  color: var(--hc-brown);
  margin-bottom: 2px;
}

.hc-schedule-info p {
  font-size: .85rem;
  color: var(--hc-text-light);
  margin-bottom: 0;
}

.hc-foodbank-image {
  border-radius: var(--hc-radius-lg);
  overflow: hidden;
}

.hc-foodbank-image img {
  width: 100%;
  height: 400px;
  object-fit: cover;
}

/* ---------- Partners ---------- */
.hc-partners {
  background: var(--hc-dark);
  color: var(--hc-white);
}

.hc-partners .hc-section-label {
  color: var(--hc-terracotta-light);
}

.hc-partners .hc-section-header h2 {
  color: var(--hc-white);
}

.hc-partners .hc-section-header p {
  color: rgba(255, 255, 255, .6);
}

.hc-partner-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.hc-partner-card {
  background: rgba(255, 255, 255, .05);
  border: 1px solid rgba(194, 112, 62, .15);
  border-radius: var(--hc-radius);
  padding: 32px 20px;
  text-align: center;
  transition: all var(--hc-transition);
}

.hc-partner-card:hover {
  background: rgba(255, 255, 255, .08);
  transform: translateY(-4px);
}

.hc-partner-icon {
  font-size: 2.2rem;
  margin-bottom: 12px;
}

.hc-partner-card h4 {
  font-size: .95rem;
  color: var(--hc-white);
  margin-bottom: 8px;
}

.hc-partner-card p {
  font-size: .85rem;
  color: rgba(255, 255, 255, .6);
  line-height: 1.6;
}

/* ---------- CTA ---------- */
.hc-cta {
  background: var(--hc-warm-sand);
  padding: 80px 0;
  text-align: center;
}

.hc-cta h2 {
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  color: var(--hc-olive);
  margin-bottom: 16px;
}

.hc-cta p {
  color: var(--hc-text-light);
  font-size: 1.1rem;
  margin-bottom: 32px;
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
}

.hc-cta-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

.hc-btn-olive {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--hc-olive);
  color: var(--hc-white);
  font-family: var(--hc-font-body);
  font-size: .95rem;
  font-weight: 700;
  padding: 14px 32px;
  border-radius: 50px;
  transition: all var(--hc-transition);
}

.hc-btn-olive:hover {
  background: var(--hc-dark);
  transform: translateY(-2px);
}

/* ---------- Footer ---------- */
.hc-footer {
  background: var(--hc-dark);
  color: rgba(255, 255, 255, .5);
  padding: 60px 0 30px;
}

.hc-footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}

.hc-footer-brand h3 {
  font-family: var(--hc-font-display);
  font-size: 1.3rem;
  color: var(--hc-white);
  margin-bottom: 12px;
}

.hc-footer-brand p {
  font-size: .9rem;
  line-height: 1.7;
  max-width: 280px;
}

.hc-footer h4 {
  font-family: var(--hc-font-body);
  font-size: .8rem;
  font-weight: 700;
  color: var(--hc-terracotta-light);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 16px;
}

.hc-footer ul li { margin-bottom: 10px; }
.hc-footer ul li a { font-size: .9rem; transition: color var(--hc-transition); }
.hc-footer ul li a:hover { color: var(--hc-terracotta-light); }

.hc-footer-bottom {
  border-top: 1px solid rgba(194, 112, 62, .1);
  padding-top: 24px;
  text-align: center;
  font-size: .85rem;
  font-family: var(--hc-font-body);
}

/* ---------- Scroll Reveal ---------- */
.hc-reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity .6s ease, transform .6s ease;
}

.hc-reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .hc-foodbank-grid { grid-template-columns: 1fr; }
  .hc-partner-grid { grid-template-columns: repeat(2, 1fr); }
  .hc-footer-grid { grid-template-columns: repeat(2, 1fr); }
  .hc-hero-mosaic { grid-template-columns: repeat(3, 1fr); grid-template-rows: repeat(2, 1fr); }
}

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

  .hc-nav-links {
    position: fixed; top: 0; right: -100%; width: 75%; max-width: 320px;
    height: 100vh; background: var(--hc-cream); flex-direction: column;
    justify-content: center; gap: 24px; transition: right var(--hc-transition);
    box-shadow: -4px 0 20px rgba(92, 64, 51, .15); z-index: 950;
  }

  .hc-nav-links.open { right: 0; }
  .hc-nav-links a { font-size: 1.1rem; color: var(--hc-olive); }

  .hc-project-grid { grid-template-columns: 1fr; max-width: 400px; margin: 0 auto; }
  .hc-hero-mosaic { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 480px) {
  .hc-section { padding: 70px 0; }
  .hc-partner-grid { grid-template-columns: 1fr; max-width: 300px; margin: 0 auto; }
  .hc-footer-grid { grid-template-columns: 1fr; }
}
