/* assets/css/style.css */

/* 1. Variables & Resets */
:root {
  --navy: #14213D;
  --olive: #6B8E23;
  --beige: #F4EAD5;
  --green: #2F5D3A;
  --rust: #A63931;
  --font-heading: 'Merriweather', serif;
  --font-body: 'Open Sans', sans-serif;
}
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
body {
  font-family: var(--font-body);
  color: var(--navy);
  background: var(--beige);
  line-height: 1.6;
}

/* 2. Utility */
.container {
  width: 90%;
  max-width: 1200px;
  margin: auto;
}
.btn {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  border-radius: 4px;
  text-decoration: none;
}
.btn-primary { background: var(--green); color: #fff; }
.btn-secondary { background: var(--olive); color: #fff; }
.btn-tertiary { background: var(--rust); color: #fff; }

/* 3. Header */
.site-header {
  background: #fff;
  padding: 1rem 0;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}
.logo img { height: 40px; }
.site-nav ul {
  list-style: none;
  display: flex;
  gap: 1rem;
}
.site-nav a {
  color: var(--navy);
  text-decoration: none;
  font-weight: bold;
}

/* 4. Hero */
.hero {
  position: relative;
  height: 40vh;       /* instead of 70vh */
  min-height: 300px;
  background: url('../images/hero-image.png') center/cover no-repeat;
  display: flex;
  align-items: center;
  color: #fff;
}
.hero .overlay {
  position: absolute; inset: 0;
  background: rgba(20,33,61,0.6);
}
.hero-content {
  position: relative;
  text-align: center;
  max-width: 800px;
  margin: auto;
}
.hero h1 {
  font-family: var(--font-heading);
  font-size: 3rem;
  margin-bottom: 0.5rem;
}
.hero .tagline {
  font-size: 1.25rem;
  margin-bottom: 1rem;
}

/* 5. Sections */
.section {
  padding: 4rem 0;
}
.section h2 {
  font-family: var(--font-heading);
  font-size: 2rem;
  margin-bottom: 1rem;
}
.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
}
.history-list,
.timeline-list {
  list-style: none;
  padding-left: 1rem;
}
.history-list li::before,
.timeline-list li::before {
  content: "• ";
  color: var(--rust);
}

/* 6. Cards */
.cards {
  display: flex;
  gap: 2rem;
  flex-wrap: wrap;
}
.card {
  background: #fff;
  padding: 1.5rem;
  border-radius: 8px;
  flex: 1 1 200px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}

/* 7. Newsletter */
.newsletter-form {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}
.newsletter-form input {
  padding: 0.75rem;
  flex: 1;
  border: 1px solid #ccc;
  border-radius: 4px;
}

/* 8. Footer */
.site-footer {
  background: var(--navy);
  color: #fff;
  padding: 2rem 0;
}
.site-footer a { color: var(--beige); text-decoration: none; }
.site-footer .footer-info,
.site-footer .footer-nav {
  display: inline-block;
  vertical-align: top;
}
.site-footer .footer-nav ul {
  list-style: none;
}
.site-footer .footer-nav li {
  margin-bottom: 0.5rem;
}


/* Vision Section Image */
.vision .two-col {
  display: grid;
  grid-template-columns: 1fr 600px !important;  /* first column fluid, second fixed */
  gap: 2rem;
  align-items: start;
}

.vision-image {
  width: 100% !important;    /* take up full width of that 600px column */
  max-width: 300px !important;
  justify-self: center;
}

.vision-image img {
  display: block;
  width: 100% !important;
  height: auto !important;
  border-radius: 8px;
}

/* Community Voices Carousel */
.voices .swiper-container {
  position: relative;
  padding: 2rem 0;
}
.voices .swiper-slide {
  display: flex;
  justify-content: center;
}
.voices blockquote {
  font-style: italic;
  max-width: 700px;
  text-align: center;
  margin: auto;
  line-height: 1.5;
}
.voices cite {
  display: block;
  margin-top: 0.5rem;
  font-weight: bold;
  color: var(--rust);
}
/* Customize pagination bullets */
.voices .swiper-pagination-bullet {
  background: var(--olive);
  opacity: 0.7;
}
.voices .swiper-pagination-bullet-active {
  opacity: 1;
}

/* Style navigation arrows */
.voices .swiper-button-next,
.voices .swiper-button-prev {
  color: var(--green);
  top: 50%;
  width: 2rem;
  height: 2rem;
}

/* History page images */
.history-detail .history-image {
  /* center each image block */
  display: flex;
  justify-content: center;
  margin-bottom: 1.5rem;
}

/* ─── Force uniform sizing & rounding on History page ─── */
.history-detail .history-image img {
  display: block !important;
  width: 100% !important;        /* fill container */
  max-width: 400px !important;    /* cap width */
  height: auto !important;        /* keep aspect ratio */
  object-fit: cover !important;   /* crop if needed */
  border-radius: 8px !important;  /* rounded corners */
  margin: 0 auto !important;      /* center */
}

/* History Page Timeline */
.history-timeline .timeline {
  list-style: none;
  position: relative;
  padding-left: 40px;
  margin-top: 2rem;
}
.history-timeline .timeline::before {
  content: '';
  position: absolute;
  left: 20px;
  top: 0;
  bottom: 0;
  width: 4px;
  background: var(--rust);
}
.history-timeline .timeline-item {
  position: relative;
  margin-bottom: 2rem;
}
.history-timeline .timeline-item:last-child {
  margin-bottom: 0;
}
.history-timeline .timeline-date {
  position: absolute;
  left: -5px;
  top: 0;
  width: 50px;
  font-weight: bold;
  color: var(--olive);
  text-align: right;
}
.history-timeline .timeline-content {
  margin-left: 60px;
}
.history-timeline .timeline-content h3 {
  font-family: var(--font-heading);
  margin-bottom: 0.5rem;
}
.history-timeline .timeline-content p {
  margin: 0;
  line-height: 1.5;
}

/* Timeline Thumbnails */
.history-timeline .timeline-thumb {
  position: absolute;
  left: -90px;           /* shifted left for space from the line */
  top: 0;
  width: 60px;
  height: 60px;
  overflow: hidden;
  border-radius: 8px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
 
}
.history-timeline .timeline-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.history-timeline .timeline-item {
  padding-left: 100px;   /* accommodate thumbnail + gap */
}

/* ─── Contact Page Styles ─── */
.contact-detail .two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  align-items: start;
}

.contact-form, 
.contact-map {
  background: #fff;
  padding: 2rem;
  border-radius: 8px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}

.contact-form h2,
.contact-map h2 {
  font-family: var(--font-heading);
  margin-bottom: 1rem;
}

/* Make sure the HubSpot form fills its container */
.contact-form .hs-form-frame {
  width: 100% !important;
}

/* Responsive map embed */
.map-wrapper {
  position: relative;
  padding-bottom: 56.25%; /* 16:9 aspect ratio */
  height: 0;
  overflow: hidden;
  border-radius: 8px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}

.map-wrapper iframe {
  position: absolute;
  top:0;
  left:0;
  width:100%;
  height:100%;
  border:0;
}

/* Mobile adjustments */
@media (max-width: 768px) {
  .contact-detail .two-col {
    grid-template-columns: 1fr;
  }
  .contact-form,
  .contact-map {
    padding: 1.5rem;
  }
}

/* ─── Hero Video Fix & Layering for Report Page ─── */
.report-hero {
  position: relative;       /* establish stacking context */
  overflow: hidden;         /* ensure nothing spills out */
}

.report-hero .overlay {
  z-index: 1;               /* sit above the background image */
}

.report-hero .hero-content {
  position: relative;
  z-index: 2;               /* above the overlay */
  max-width: 800px;         /* constrain content width */
  margin: 0 auto;
}

/* ─── Report Page Video Constraint ─── */
.report-video {
  text-align: center;           /* center the video container */
}

.report-video .hero-video {
  display: inline-block;
  width: 100% !important;       /* fill up to the max-width */
  max-width: 800px !important;   /* cap at 600px wide */
  height: auto !important;
  border-radius: 8px !important;/* rounded corners */
  box-shadow: 0 2px 6px rgba(0,0,0,0.1) !important;
  margin-bottom: 1.5rem !important;
}

/* ─── Updates Page Timeline (Grid Layout) ─── */
.updates-list .timeline {
  list-style: none;
  padding: 0;
  margin-top: 2rem;
}

.updates-list .timeline-item {
  display: grid;
  grid-template-columns: 100px 60px 1fr;
  column-gap: 1rem;
  margin-bottom: 2rem;
  align-items: start;
}

.updates-list .timeline-date {
  font-weight: bold;
  color: var(--olive);
  text-align: right;
}

.updates-list .timeline-thumb {
  width: 60px;
  height: 60px;
  overflow: hidden;
}

.updates-list .timeline-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 8px;
}

.updates-list .timeline-content h3 {
  margin-top: 0;
  margin-bottom: 0.5rem;
}

/* Thumbnail for report video */
.hero-video-thumbnail {
  width: 100%;
  max-width: 600px;           /* match your desired cap */
  height: auto;
  border-radius: 8px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
  cursor: pointer;
  display: block;
  margin: 0 auto 1.5rem;      /* spacing below */
  
  /* Thumbnail for report video */
.hero-video-thumbnail {
  width: 100%;
  max-width: 600px;           /* match your desired cap */
  height: auto;
  border-radius: 8px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
  cursor: pointer;
  display: block;
  margin: 0 auto 1.5rem;      /* spacing below */
}
}