/* ========================
   ABOUT HERO
======================== */

.about-hero {
  position: relative;
  width: 100%;
  height: 100vh; /* full screen */
  overflow: hidden;
}

/* IMAGE */
.about-hero-img {
  position: absolute;
  inset: 0;
  z-index: 1;
}

.about-hero-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* OVERLAY CENTER BOX */
.about-hero-overlay {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);

  background: rgba(29, 29, 29, 0.2); /* #1D1D1D with 20% opacity */
  padding: 20px 60px;

  z-index: 2;
}

/* TEXT */
.about-hero-overlay h1 {
  font-size: 64px;
  color: #fff;
  text-align: center;
}

/* ========================
   FADE EFFECT (REUSABLE)
======================== */

/* DEFAULT VISIBLE (SAFE) */
.fade-in {
  opacity: 1;
  transform: translateY(0);
}

/* ONLY animate when JS adds this */
.fade-in.animate {
  opacity: 0;
  transform: translateY(20px);
}

/* FINAL STATE */
.fade-in.show {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

/* ========================
   RESPONSIVE
======================== */

@media (max-width: 768px) {

  .about-hero {
    height: 70vh; /* better for mobile */
  }

  .about-hero-overlay {
    padding: 12px 12px;
  }

  .about-hero-overlay h1 {
    font-size: 40px;
  }
}


/* ========================
   OUR STORY
======================== */

.our-story {
  padding: 40px 0 0;
}

/* TEXT CONTAINER */
.our-story-text {
  max-width: 100%; /* keeps it premium readable */
}

/* TITLE */
.our-story-text h2 {
  font-size: 48px;
  margin-bottom: 16px;
}

/* DESCRIPTION */
.our-story-text p {
  font-size: 24px;
  line-height: 1.5;
  margin-bottom: 10px;
}

/* IMAGE */
.our-story-img {
  margin-top: 12px;
}

.our-story-img img {
  width: 100%;
  height: auto;
  object-fit: cover;
}

/* ========================
   RESPONSIVE
======================== */

@media (max-width: 768px) {

  .our-story {
    padding: 60px 0 0;
  }

  .our-story-text h2 {
    font-size: 32px;
  }

  .our-story-text p {
    font-size: 14px;
  }

}


/* ========================
   OUR VISION
======================== */

/* ========================
   OUR VISION (FINAL FIX)
======================== */

.our-vision {
  background: #FFF4DA; /* 👈 your beige tone */
  padding: 40px 20px;
}

/* LAYOUT */
.our-vision-inner {
  display: flex;
  align-items: center; /* 🔥 aligns text with image vertically */
  gap: 40px; /* 🔥 controlled spacing */
}

/* TEXT */
.vision-text {
  flex: 0.8;
  max-width: 420px;
}

/* TITLE */
.vision-text h2 {
  font-size: 48px;
  margin-bottom: 16px;
}

/* DESCRIPTION */
.vision-text p {
  font-size: 24px;
  line-height: 1.6;
}

/* IMAGE */
.vision-img {
  flex: 1.2; /* 🔥 bigger image */
}

.vision-img img {
  width: 100%;
  aspect-ratio: 5 / 3;
  object-fit: cover;
  
}

/* ========================
   RESPONSIVE
======================== */

@media (max-width: 768px) {

  .our-vision-inner {
    flex-direction: column;
    text-align: center;
    gap: 20px;
  }

  .vision-text {
    max-width: 100%;
  }

  .vision-text h2 {
    font-size: 32px;
  }

  .vision-text p {
    font-size: 14px;
  }

  .vision-img img {
    height: auto;
  }
}


/* ========================
   OUR PRINCIPLES
======================== */

.our-principles {
  background: #FFFAEE;
  padding: 40px 0 20px;
}

/* HEADER */
.principles-header {
  text-align: center;
  max-width: 800px;
  margin: 0 auto 40px;
}

.principles-header h2 {
  font-size: 48px;
  margin-bottom: 16px;
}

.principles-header p {
  font-size: 24px;
  line-height: 1.6;
}

/* ========================
   GRID (NO GAP)
======================== */

.principles-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px; /* 👈 THIS */
  padding: 0 20px;
}

/* CARD */
.principle-card {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 10; 
}

/* IMAGE */
.principle-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* OVERLAY */
.overlay {
  position: absolute;
  inset: 0;

  display: flex;
  align-items: center;
  justify-content: center;

    background: linear-gradient(
    to bottom,
    rgba(0,0,0,0.2),
    rgba(0,0,0,0.5)
  );
}

/* TEXT */
.overlay span {
  color: #fff;
  font-size: 28px;
  text-align: center;
  padding: 10px 20px;

  background: rgba(0, 0, 0, 0.35); /* subtle rectangle */
}

/* ========================
   RESPONSIVE
======================== */

@media (max-width: 768px) {

  .principles-header h2 {
    font-size: 32px;
  }

  .principles-header p {
    font-size: 14px;
  }

  /* 1 column layout */
  .principles-grid {
    grid-template-columns: 1fr;
    gap: 12px; /* keep same */
    padding: 0 20px;
  }

  .overlay span {
    font-size: 20px;
  }
}