/* ============================================================
   PRINCHIPEH GIVES — gives.css
   Extends main.css
   ============================================================ */

.gives-eyebrow { color: var(--burgundy); }
.nav-links a.nav-active { color: var(--amber); }

/* ============================================================
   GIVES LISTING — HERO
   ============================================================ */
.gives-hero {
  position: relative;
  min-height: 60vh;
  display: flex;
  align-items: center;
  background-image: url('https://images.unsplash.com/photo-1488521787991-ed7bbaae773c?w=1600&q=80');
  background-size: cover;
  background-position: center top;
}

.gives-hero-overlay {
  position: absolute;
  inset: 0;
  background: rgba(60, 36, 21, 0.72);
}

.gives-hero-content {
  position: relative;
  z-index: 1;
  max-width: 720px;
  padding: 0 64px;
  padding-top: 80px;
}

.gives-hero-content h1 {
  font-family: 'DM Serif Display', serif;
  font-size: clamp(36px, 5vw, 54px);
  font-weight: 400;
  color: var(--white);
  line-height: 1.18;
  margin-bottom: 20px;
  margin-top: 16px;
}

.gives-hero-sub {
  font-size: 17px;
  font-weight: 300;
  color: rgba(255,255,255,0.82);
  max-width: 520px;
  line-height: 1.8;
}

/* ============================================================
   MISSION STRIP
   ============================================================ */
.gives-mission {
  background: var(--burgundy);
  padding: 40px 64px;
  text-align: center;
}

.gives-mission p {
  font-size: 18px;
  font-weight: 300;
  color: rgba(255,255,255,0.9);
  max-width: 780px;
  margin: 0 auto;
  line-height: 1.85;
}

/* ============================================================
   PROJECTS LISTING
   ============================================================ */
.gives-projects { background: var(--offwhite); }

.gives-listing-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 48px;
  flex-wrap: wrap;
}

.gives-listing-header h2 {
  font-family: 'DM Serif Display', serif;
  font-size: clamp(30px, 4vw, 42px);
  color: var(--navy);
  margin-top: 8px;
}

.gives-filters {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.filter-label {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--charcoal);
  opacity: 0.5;
  margin-right: 4px;
}

.filter-btn {
  appearance: none;
  background: transparent;
  cursor: pointer;
  font-family: 'Lato', sans-serif;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  padding: 6px 14px;
  border-radius: 20px;
  border: 1.5px solid rgba(13, 27, 42, 0.2);
  color: var(--navy);
  transition: all 0.2s;
}

.filter-btn:hover,
.filter-active {
  background: var(--burgundy);
  border-color: var(--burgundy);
  color: var(--white);
}

/* ── Project Cards Grid ── */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
}

.project-card {
  background: var(--white);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 24px rgba(13, 27, 42, 0.07);
  transition: transform 0.25s, box-shadow 0.25s;
}

.project-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 40px rgba(13, 27, 42, 0.13);
}

.project-card-image {
  position: relative;
  height: 260px;
  overflow: hidden;
}

.project-card-image img {
  height: 100%;
  transition: transform 0.4s;
}

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

.project-category-tag {
  position: absolute;
  top: 16px;
  left: 16px;
  background: var(--burgundy);
  color: var(--white);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 4px;
}

.project-card-body {
  padding: 28px 32px 32px;
}

.project-meta {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 12px;
}

.project-location,
.project-date {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--charcoal);
  opacity: 0.55;
  display: flex;
  align-items: center;
  gap: 4px;
}

.project-card-body h3 {
  font-family: 'DM Serif Display', serif;
  font-size: 22px;
  color: var(--navy);
  margin-bottom: 12px;
  line-height: 1.3;
}

.project-card-body h3 a {
  color: var(--navy);
  transition: color 0.2s;
}

.project-card-body h3 a:hover { color: var(--burgundy); }

.project-card-body p {
  font-size: 15px;
  color: var(--charcoal);
  line-height: 1.75;
  margin-bottom: 20px;
}

.project-read-more {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--burgundy);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: gap 0.2s;
}

.project-read-more:hover { gap: 10px; }

/* ============================================================
   GIVES CTA SECTION
   ============================================================ */
.gives-cta {
  background: var(--navy);
  padding: 80px 64px;
  text-align: center;
}

.gives-cta h2 {
  font-family: 'DM Serif Display', serif;
  font-size: clamp(28px, 4vw, 42px);
  color: var(--white);
  margin: 12px 0 16px;
}

.gives-cta p {
  font-size: 17px;
  font-weight: 300;
  color: rgba(255,255,255,0.7);
  max-width: 520px;
  margin: 0 auto 32px;
  line-height: 1.8;
}

/* ============================================================
   PROJECT INDIVIDUAL — HERO
   ============================================================ */
.project-hero {
  position: relative;
  height: 70vh;
  min-height: 480px;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
}

.project-hero-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.project-hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(to top, rgba(13,27,42,0.92) 0%, rgba(13,27,42,0.45) 55%, rgba(13,27,42,0.15) 100%);
}

.project-hero-content .eyebrow {
  color: var(--amber);
}

.project-hero-content {
  position: relative;
  z-index: 2;
  padding: 0 64px 56px;
  max-width: 800px;
}

.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
  font-size: 13px;
  color: rgba(255,255,255,0.55);
}

.breadcrumb a {
  color: rgba(255,255,255,0.55);
  transition: color 0.2s;
}

.breadcrumb a:hover { color: var(--amber); }

.project-hero-content h1 {
  font-family: 'DM Serif Display', serif;
  font-size: clamp(36px, 5vw, 56px);
  color: var(--white);
  line-height: 1.15;
  margin: 10px 0 8px;
}

.project-hero-sub {
  font-size: 16px;
  font-weight: 300;
  color: rgba(255,255,255,0.7);
  letter-spacing: 0.5px;
}

/* ============================================================
   PROJECT DETAILS BAR
   ============================================================ */
.project-details-bar {
  background: var(--cream);
  border-bottom: 1px solid rgba(13,27,42,0.08);
  padding: 28px 64px;
}

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

.detail-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.detail-label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--burgundy);
}

.detail-value {
  font-size: 14px;
  color: var(--navy);
  font-weight: 400;
  line-height: 1.4;
}

/* ============================================================
   PROJECT STORY
   ============================================================ */
.project-story { background: var(--white); }

.project-story-inner {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 64px;
  align-items: start;
}

.project-story-text .eyebrow { margin-bottom: 12px; }

.project-story-text h2 {
  font-family: 'DM Serif Display', serif;
  font-size: clamp(30px, 4vw, 42px);
  color: var(--navy);
  margin-bottom: 32px;
}

.project-story-text p {
  font-size: 17px;
  color: var(--charcoal);
  line-height: 1.9;
  margin-bottom: 20px;
}

.project-quote {
  border-left: 3px solid var(--burgundy);
  padding-left: 24px;
  margin: 32px 0 0;
  font-family: 'DM Serif Display', serif;
  font-style: italic;
  font-size: 20px;
  color: var(--burgundy);
  line-height: 1.6;
}

/* ── Aside impact card ── */
.project-impact-card {
  background: var(--navy);
  border-radius: 8px;
  padding: 32px;
  position: sticky;
  top: 96px;
}

.project-impact-card h4 {
  font-family: 'Lato', sans-serif;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--amber);
  margin-bottom: 24px;
}

.project-impact-card ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.project-impact-card li {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding-bottom: 24px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.project-impact-card li:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.aside-stat {
  font-family: 'DM Serif Display', serif;
  font-size: 32px;
  color: var(--white);
  line-height: 1;
}

.aside-label {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: rgba(255,255,255,0.5);
}

/* ============================================================
   PHOTO GALLERY
   ============================================================ */
.project-gallery { background: var(--offwhite); }

.project-gallery h2 {
  font-family: 'DM Serif Display', serif;
  font-size: clamp(28px, 4vw, 40px);
  color: var(--navy);
  margin: 8px 0 12px;
}

.gallery-intro {
  font-size: 14px;
  color: var(--charcoal);
  opacity: 0.6;
  margin-bottom: 40px;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 12px;
}

.gallery-item {
  overflow: hidden;
  border-radius: 6px;
}

.gallery-item img {
  width: 100%;
  height: 260px;
  object-fit: cover;
  display: block;
  transition: transform 0.4s;
}

.gallery-item:hover img { transform: scale(1.03); }

/* ============================================================
   PROJECT NAV BAR
   ============================================================ */
.project-nav-bar {
  background: var(--cream);
  padding: 24px 64px;
  border-top: 1px solid rgba(13,27,42,0.08);
}

.project-nav-bar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.project-nav-back {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--navy);
  opacity: 0.6;
  transition: opacity 0.2s;
}

.project-nav-back:hover { opacity: 1; }

/* ── Back to projects ── */
.back-to-projects {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--navy);
  text-decoration: none;
  margin-bottom: 40px;
  transition: gap 0.2s;
}

.back-to-projects:hover {
  gap: 10px;
  color: var(--burgundy);
}

.back-to-projects svg {
  flex-shrink: 0;
  transition: transform 0.2s;
}

.back-to-projects:hover svg {
  transform: translateX(-3px);
}

/* ── Video embed ── */
.project-video { background: var(--cream); }
.project-video h2 { margin-bottom: 8px; }

.video-embed {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
  overflow: hidden;
  border-radius: 8px;
  box-shadow: 0 8px 32px rgba(13, 27, 42, 0.12);
  margin-top: 32px;
}

.video-embed iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border-radius: 8px;
}

/* ============================================================
   RESPONSIVE — 768px
   ============================================================ */
@media (max-width: 768px) {
  .gives-hero-content,
  .gives-mission,
  .gives-cta,
  .project-details-bar,
  .project-hero-content,
  .project-nav-bar { padding-left: 24px; padding-right: 24px; }

  .gives-hero-content { padding-top: 80px; }

  .gives-listing-header { flex-direction: column; align-items: flex-start; }
  .projects-grid { grid-template-columns: 1fr; }

  .project-hero { height: 55vh; }
  .project-details-bar { padding: 24px; }
  .project-details-grid { grid-template-columns: 1fr 1fr; gap: 20px; }
  .project-story-inner { grid-template-columns: 1fr; gap: 40px; }
  .project-impact-card { position: static; }
}

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