/* ================================================================
   MICHAEL'S CREEK FARMS — about.css
   Specific styles for the About Us page
================================================================ */

/* ================================================================
   1. PAGE HEADER (Hero for inner pages)
================================================================ */
.page-header {
  position: relative;
  min-height: 50vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding-block: var(--sp-20) var(--sp-12);
  margin-top: -1px; /* seamless pull up to header */
}

.page-header-bg {
  position: absolute;
  inset: 0;
  z-index: var(--z-back);
}

.page-header-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 40%;
  transform: scale(1.05);
  animation: subtlePan 15s ease-out forwards;
}

@keyframes subtlePan {
  from { transform: scale(1.05) translateY(0); }
  to   { transform: scale(1) translateY(-2%); }
}

.page-header-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(10, 22, 9, 0.7) 0%,
    rgba(20, 40, 18, 0.5) 100%
  );
}

.page-header-content {
  position: relative;
  z-index: 1;
  max-width: 800px;
}

.page-title {
  font-family: var(--font-heading);
  font-size: clamp(var(--fs-4xl), 6vw, var(--fs-6xl));
  font-weight: var(--fw-bold);
  color: var(--clr-white);
  margin-bottom: var(--sp-4);
  line-height: 1.1;
}

.page-title em {
  color: var(--clr-gold-400);
  font-style: italic;
}

.page-subtitle {
  font-size: var(--fs-lg);
  color: rgba(255, 255, 255, 0.85);
  line-height: var(--lh-loose);
  max-width: 50ch;
  margin-inline: auto;
}


/* ================================================================
   2. FARM STORY SECTION
================================================================ */
.story-visual {
  position: relative;
  padding: 1rem;
}

/* Decorative background frame for the story image */
.story-visual::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 90%;
  height: 90%;
  border: 2px solid var(--clr-gold-400);
  border-radius: var(--radius-lg);
  z-index: 0;
  transform: translate(5%, -5%);
}

.story-img {
  position: relative;
  z-index: 1;
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  transition: transform 0.5s ease;
}

.story-visual:hover .story-img {
  transform: translateY(-8px);
}


/* ================================================================
   3. MISSION & VISION SECTION
================================================================ */
.mission-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--sp-8);
  max-width: 1000px;
  margin-inline: auto;
}

.mission-card {
  background: var(--clr-white);
  border-radius: var(--radius-xl);
  padding: var(--sp-10);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--clr-border);
  transition: var(--transition-base);
  text-align: center;
}

.mission-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
  border-color: transparent;
}

.mission-icon {
  width: 72px;
  height: 72px;
  margin-inline: auto;
  background: var(--clr-green-100);
  color: var(--clr-primary);
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: var(--fs-2xl);
  margin-bottom: var(--sp-6);
  transition: var(--transition-base);
}

.mission-card:hover .mission-icon {
  background: var(--clr-primary);
  color: var(--clr-white);
  transform: scale(1.05);
}

.mission-title {
  font-family: var(--font-heading);
  font-size: var(--fs-2xl);
  color: var(--clr-text);
  margin-bottom: var(--sp-4);
}

.mission-card p {
  color: var(--clr-text-mid);
  line-height: var(--lh-loose);
  margin: 0;
}


/* ================================================================
   4. TEAM SECTION
================================================================ */
.team-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--sp-6);
}

.team-card {
  background: var(--clr-white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--clr-border);
  transition: var(--transition-slow);
}

.team-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
}

.team-img-wrap {
  width: 100%;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background: var(--clr-bg-alt);
}

.team-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.team-card:hover .team-img-wrap img {
  transform: scale(1.08);
}

.team-info {
  padding: var(--sp-6) var(--sp-5);
  text-align: center;
}

.team-name {
  font-family: var(--font-heading);
  font-size: var(--fs-xl);
  color: var(--clr-text);
  margin-bottom: var(--sp-1);
}

.team-role {
  display: block;
  font-size: var(--fs-xs);
  font-weight: var(--fw-bold);
  letter-spacing: var(--ls-wide);
  text-transform: uppercase;
  color: var(--clr-accent);
  margin-bottom: var(--sp-4);
}

.team-bio {
  font-size: var(--fs-sm);
  color: var(--clr-text-muted);
  line-height: var(--lh-loose);
  margin: 0;
}


/* ================================================================
   5. RESPONSIVE ADJUSTMENTS
================================================================ */

/* Tablet (≤ 1024px) */
@media (max-width: 1024px) {
  .mission-grid {
    gap: var(--sp-6);
  }
}

/* Mobile (≤ 768px) */
@media (max-width: 768px) {
  .page-header {
    min-height: 40vh;
  }
  
  .mission-grid {
    grid-template-columns: 1fr;
    max-width: 500px;
  }
  
  .team-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Small Mobile (≤ 480px) */
@media (max-width: 480px) {
  .team-grid {
    grid-template-columns: 1fr;
    max-width: 380px;
    margin-inline: auto;
  }
  
  .story-visual::before {
    display: none; /* Simplify layout on very small screens */
  }
}