/* ============================================================
   Rock Creek Agroforestry — Stylesheet
   ============================================================ */

/* --- Custom Properties --- */
:root {
  --teal: #24525f;
  --teal-dark: #1b3e4a;
  --red: #c73f3f;
  --cream: #faf8f0;
  --dark: #2c2c2c;
  --sage: #6b8c5a;
  --sage-light: #e8f0e2;
  --white: #ffffff;
  --gray-100: #f5f5f5;
  --gray-200: #e0e0e0;
  --gray-600: #666;
  --gray-700: #444;
  --shadow: 0 2px 12px rgba(0,0,0,.1);
  --shadow-lg: 0 8px 30px rgba(0,0,0,.12);
  --radius: 8px;
  --transition: .3s ease;
  --max-width: 1200px;
}

/* --- Reset --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Lato', sans-serif;
  color: var(--dark);
  background: var(--cream);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--teal); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--teal-dark); }
ul, ol { list-style: none; }
h1, h2, h3, h4 { font-family: 'Playfair Display', serif; color: var(--dark); line-height: 1.3; }
h1 { font-size: clamp(2rem, 5vw, 3.2rem); }
h2 { font-size: clamp(1.6rem, 4vw, 2.4rem); }
h3 { font-size: clamp(1.2rem, 3vw, 1.6rem); }
p + p { margin-top: 1em; }

/* --- Utility --- */
.container { max-width: var(--max-width); margin: 0 auto; padding: 0 1.5rem; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); }
.text-center { text-align: center; }
.section { padding: 5rem 0; }
.section--alt { background: var(--white); }
.section--sage { background: var(--sage-light); }
.section--teal { background: var(--teal); color: var(--white); }
.section--teal h2, .section--teal h3 { color: var(--white); }
.section__header { margin-bottom: 3rem; text-align: center; }
.section__header p { max-width: 700px; margin: 1rem auto 0; color: var(--gray-600); font-size: 1.1rem; }
.btn {
  display: inline-block; padding: .8rem 2rem; border-radius: var(--radius);
  font-weight: 700; font-size: 1rem; text-transform: uppercase; letter-spacing: .05em;
  transition: all var(--transition); cursor: pointer; border: none;
}
.btn--primary { background: var(--teal); color: var(--white); }
.btn--primary:hover { background: var(--teal-dark); color: var(--white); transform: translateY(-2px); box-shadow: var(--shadow); }
.btn--outline { background: transparent; color: var(--teal); border: 2px solid var(--teal); }
.btn--outline:hover { background: var(--teal); color: var(--white); }
.btn--white { background: var(--white); color: var(--teal); }
.btn--white:hover { background: var(--cream); transform: translateY(-2px); }

/* --- Header / Nav --- */
.header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  background: rgba(255,255,255,.97); backdrop-filter: blur(8px);
  box-shadow: 0 1px 4px rgba(0,0,0,.08); transition: background var(--transition);
}
.header__inner {
  display: flex; align-items: center; justify-content: space-between;
  max-width: var(--max-width); margin: 0 auto; padding: .6rem 1.5rem;
}
.header__logo { display: flex; align-items: center; gap: .6rem; }
.header__logo img { height: 48px; width: auto; }
.header__logo span {
  font-family: 'Playfair Display', serif; font-size: 1.15rem;
  font-weight: 700; color: var(--dark);
}
.nav { display: flex; align-items: center; gap: 0; }
.nav__list { display: flex; gap: .2rem; }
.nav__link {
  display: block; padding: .5rem .9rem; border-radius: var(--radius);
  font-size: .92rem; font-weight: 600; color: var(--dark);
  transition: all var(--transition);
}
.nav__link:hover, .nav__link--active { color: var(--teal); background: var(--sage-light); }
.hamburger {
  display: none; background: none; border: none; cursor: pointer;
  width: 36px; height: 36px; position: relative;
}
.hamburger span {
  display: block; width: 24px; height: 2px; background: var(--dark);
  position: absolute; left: 6px; transition: all var(--transition);
}
.hamburger span:nth-child(1) { top: 10px; }
.hamburger span:nth-child(2) { top: 17px; }
.hamburger span:nth-child(3) { top: 24px; }
.hamburger.active span:nth-child(1) { top: 17px; transform: rotate(45deg); }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { top: 17px; transform: rotate(-45deg); }

/* --- Hero --- */
.hero {
  position: relative; min-height: 85vh; display: flex; align-items: center;
  justify-content: center; text-align: center; color: var(--white);
  background-size: cover; background-position: center; background-repeat: no-repeat;
  margin-top: 68px;
}
.hero::before {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,.45) 0%, rgba(0,0,0,.55) 100%);
}
.hero__content { position: relative; z-index: 1; max-width: 800px; padding: 2rem; }
.hero__content h1 { color: var(--white); margin-bottom: 1rem; font-size: clamp(2.2rem, 6vw, 3.8rem); }
.hero__content p { font-size: clamp(1.1rem, 2.5vw, 1.4rem); margin-bottom: 2rem; opacity: .95; }
.hero--small { min-height: 45vh; margin-top: 68px; }

/* --- Cards --- */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 2rem; }
.card {
  background: var(--white); border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow); transition: transform var(--transition), box-shadow var(--transition);
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.card__img { width: 100%; height: 220px; object-fit: cover; }
.card__body { padding: 1.5rem; }
.card__body h3 { margin-bottom: .5rem; }
.card__body p { color: var(--gray-600); font-size: .95rem; }

/* --- Timeline --- */
.timeline { position: relative; padding-left: 2.5rem; }
.timeline::before {
  content: ''; position: absolute; left: .75rem; top: 0; bottom: 0;
  width: 3px; background: var(--teal); border-radius: 2px;
}
.timeline__item { position: relative; margin-bottom: 2.5rem; }
.timeline__item::before {
  content: ''; position: absolute; left: -2.5rem; top: .4rem;
  width: 14px; height: 14px; border-radius: 50%;
  background: var(--teal); border: 3px solid var(--cream);
}
.timeline__year {
  font-family: 'Playfair Display', serif; font-weight: 700;
  color: var(--teal); font-size: 1.2rem; margin-bottom: .3rem;
}
.timeline__text { color: var(--gray-700); }

/* --- Partner Strip --- */
.partners-strip {
  display: flex; flex-wrap: wrap; justify-content: center;
  align-items: center; gap: 2.5rem; padding: 2rem 0;
}
.partners-strip span {
  font-size: 1rem; font-weight: 700; color: var(--gray-600);
  text-transform: uppercase; letter-spacing: .05em; white-space: nowrap;
}

/* --- Gallery --- */
.gallery {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1rem;
}
.gallery__item {
  position: relative; overflow: hidden; border-radius: var(--radius);
  cursor: pointer; aspect-ratio: 4/3;
}
.gallery__item img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform var(--transition);
}
.gallery__item:hover img { transform: scale(1.05); }

/* --- Lightbox --- */
.lightbox {
  display: none; position: fixed; inset: 0; z-index: 2000;
  background: rgba(0,0,0,.92); align-items: center; justify-content: center;
}
.lightbox.active { display: flex; }
.lightbox__img { max-width: 90vw; max-height: 85vh; border-radius: var(--radius); }
.lightbox__close, .lightbox__prev, .lightbox__next {
  position: absolute; background: none; border: none; color: var(--white);
  font-size: 2.5rem; cursor: pointer; padding: .5rem; transition: opacity var(--transition);
  line-height: 1;
}
.lightbox__close:hover, .lightbox__prev:hover, .lightbox__next:hover { opacity: .7; }
.lightbox__close { top: 1.5rem; right: 1.5rem; }
.lightbox__prev { left: 1.5rem; top: 50%; transform: translateY(-50%); }
.lightbox__next { right: 1.5rem; top: 50%; transform: translateY(-50%); }

/* --- Bio / Two-Column --- */
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: start; }
.two-col--reverse { direction: rtl; }
.two-col--reverse > * { direction: ltr; }
.bio { margin-bottom: 2rem; }
.bio h3 { color: var(--teal); margin-bottom: .5rem; }
.bio p { color: var(--gray-700); }

/* --- Feature List --- */
.feature-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 2rem; }
.feature-item { padding: 1.5rem; background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow); }
.feature-item h3 { color: var(--teal); margin-bottom: .5rem; font-size: 1.2rem; }
.feature-item p { color: var(--gray-700); font-size: .95rem; }

/* --- Map Embed --- */
.map-embed { width: 100%; height: 400px; border: none; border-radius: var(--radius); }

/* --- Contact Form --- */
.form { max-width: 600px; margin: 0 auto; }
.form__group { margin-bottom: 1.5rem; }
.form__group label {
  display: block; margin-bottom: .4rem; font-weight: 700;
  font-size: .9rem; color: var(--dark);
}
.form__group input, .form__group textarea, .form__group select {
  width: 100%; padding: .8rem 1rem; border: 2px solid var(--gray-200);
  border-radius: var(--radius); font-family: inherit; font-size: 1rem;
  transition: border-color var(--transition); background: var(--white);
}
.form__group input:focus, .form__group textarea:focus {
  outline: none; border-color: var(--teal);
}
.form__group textarea { min-height: 150px; resize: vertical; }

/* --- Footer --- */
.footer {
  background: var(--dark); color: rgba(255,255,255,.8);
  padding: 3rem 0 1.5rem; font-size: .9rem;
}
.footer__inner {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem; margin-bottom: 2rem;
}
.footer h4 { color: var(--white); margin-bottom: 1rem; font-size: 1.1rem; }
.footer a { color: rgba(255,255,255,.8); }
.footer a:hover { color: var(--white); }
.footer__links li + li { margin-top: .4rem; }
.footer__bottom { text-align: center; padding-top: 1.5rem; border-top: 1px solid rgba(255,255,255,.15); }

/* --- Scroll Animations --- */
.fade-in {
  opacity: 0; transform: translateY(20px);
  transition: opacity .6s ease, transform .6s ease;
}
.fade-in.visible { opacity: 1; transform: translateY(0); }

/* --- Responsive --- */
@media (max-width: 768px) {
  .hamburger { display: block; }
  .nav__list {
    display: none; flex-direction: column; position: absolute;
    top: 100%; left: 0; right: 0; background: var(--white);
    box-shadow: var(--shadow); padding: 1rem;
  }
  .nav__list.open { display: flex; }
  .nav__link { padding: .7rem 1rem; }
  .two-col { grid-template-columns: 1fr; }
  .two-col--reverse { direction: ltr; }
  .hero { min-height: 65vh; }
  .hero--small { min-height: 35vh; }
  .section { padding: 3rem 0; }
  .cards { grid-template-columns: 1fr; }
  .gallery { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); }
  .partners-strip { gap: 1.5rem; }
}

@media (max-width: 480px) {
  .header__logo span { font-size: .95rem; }
  .hero__content h1 { font-size: 1.8rem; }
  .btn { padding: .65rem 1.5rem; font-size: .9rem; }
}
