/* =============================================
   OUR STORY PAGE — our-story.css
   font-family: "Poppins", Sans-serif; (global via body)
   ============================================= */

/* -----------------------------------------------
   ACTIVE NAV LINK
----------------------------------------------- */
.active-link {
  color: var(--red) !important;
  font-weight: 600;
}

/* -----------------------------------------------
   HERO BANNER
----------------------------------------------- */
.os-hero {
  position: relative;
  top: 55px;
  height: 380px;
  background: url('../images/our-story-bg.jpg') center center / cover no-repeat;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.os-hero-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.52);
}
.os-hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
}
.os-hero-content h1 {
  font-family: "Poppins", Sans-serif;
  font-size: 48px;
  font-weight: 700;
  color: #ffffff;
  letter-spacing: 0.02em;
  margin: 0;
  text-shadow: 0 2px 16px rgba(0,0,0,0.4);
}

/* -----------------------------------------------
   SHARED SECTION LABEL
----------------------------------------------- */
.os-section-label {
  margin-bottom: 36px;
}
.os-section-label h2 {
  font-family: "Poppins", Sans-serif;
  font-size: 30px;
  font-weight: 700;
  color: #1a1a1a;
  margin-bottom: 10px;
}
.os-red-line {
  width: 60px;
  height: 3px;
  background: var(--red);
  border-radius: 2px;
}

/* -----------------------------------------------
   SECTION 1 — OUR STORY TEXT
----------------------------------------------- */
.os-story-section {
  padding: 72px 0 64px;
  background: #ffffff;
}
.os-story-body {
  width: 100%;
}
.os-story-body p {
  font-family: "Poppins", Sans-serif;
  font-size: 15px;
  color: #555555;
  line-height: 1.85;
  margin-bottom: 20px;
  text-align: justify;
  width: 100%;
}
.os-story-body p strong {
  color: #1a1a1a;
  font-weight: 600;
}

/* Stats Row */
.os-stats-row {
  display: flex;
  gap: 0;
  margin-top: 48px;
  border: 1px solid #eeeeee;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0,0,0,0.06);
}
.os-stat {
  flex: 1;
  text-align: center;
  padding: 28px 16px;
  border-right: 1px solid #eeeeee;
  transition: background 0.25s ease;
}
.os-stat:last-child { border-right: none; }
.os-stat:hover { background: #fdf1f1; }
.os-stat-num {
  display: block;
  font-family: "Poppins", Sans-serif;
  font-size: 32px;
  font-weight: 700;
  color: var(--red);
  line-height: 1.1;
  margin-bottom: 6px;
}
.os-stat-label {
  display: block;
  font-family: "Poppins", Sans-serif;
  font-size: 13px;
  font-weight: 500;
  color: #888888;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

/* -----------------------------------------------
   SECTION 2 — BRANDS GRID
----------------------------------------------- */
.os-brands-section {
  padding: 64px 0 72px;
  background: #f9f9f9;
}
.os-brands-title {
  font-family: "Poppins", Sans-serif;
  font-size: 20px;
  font-weight: 700;
  color: #1a1a1a;
  margin-bottom: 36px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--red);
  display: block;
  width: 100%;
}
.os-brands-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-bottom: 52px;
  width: 100%;
}
/* Center last 2 orphan tiles when 11 items fill 3-col grid */
.os-brands-grid .os-brand-tile:nth-child(10),
.os-brands-grid .os-brand-tile:nth-child(11) {
  /* last row has 2 tiles — shift them to center using col positioning */
}
.os-brand-tile {
  background: #ffffff;
  border: 1px solid #eeeeee;
  border-radius: 10px;
  padding: 28px 20px 24px;
  text-align: center;
  transition: all 0.28s ease;
  box-shadow: 0 2px 10px rgba(0,0,0,0.04);
}
.os-brand-tile:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 32px rgba(214, 40, 40, 0.12);
  border-color: var(--red);
}
.os-brand-tile img {
  width: 90px;
  height: 90px;
  object-fit: contain;
  display: block;
  margin: 0 auto 16px;
}
.os-brand-tile h4 {
  font-family: "Poppins", Sans-serif;
  font-size: 15px;
  font-weight: 600;
  color: var(--red);
  margin-bottom: 10px;
  line-height: 1.3;
}
.os-brand-tile p {
  font-family: "Poppins", Sans-serif;
  font-size: 13px;
  color: #777777;
  line-height: 1.65;
  margin: 0;
}

/* Promise text */
.os-promise-text {
  width: 100%;
  padding-top: 8px;
}
.os-promise-text p {
  font-family: "Poppins", Sans-serif;
  font-size: 14px;
  color: #666666;
  line-height: 1.85;
  margin-bottom: 16px;
  text-align: justify;
  width: 100%;
}

/* -----------------------------------------------
   SECTION 3 — MISSION & VISION
----------------------------------------------- */
.os-mv-section {
  padding: 72px 0;
  background: #f1f1f1;
}
.os-mv-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  width: 100%;
}
.os-mv-card {
  background: #ffffff;
  border: 1px solid #e8e8e8;
  border-radius: 10px;
  padding: 40px 36px;
  transition: box-shadow 0.28s ease, transform 0.28s ease;
  width: 100%;
}
.os-mv-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 36px rgba(0,0,0,0.10);
}
.os-mv-icon {
  width: 52px;
  height: 52px;
  color: var(--red);
  margin-bottom: 18px;
}
.os-mv-icon svg {
  width: 100%;
  height: 100%;
}
.os-mv-card h3 {
  font-family: "Poppins", Sans-serif;
  font-size: 22px;
  font-weight: 700;
  color: #1a1a1a;
  margin-bottom: 12px;
  text-transform: capitalize;
}
.os-mv-line {
  width: 48px;
  height: 3px;
  background: var(--red);
  border-radius: 2px;
  margin-bottom: 20px;
}
.os-mv-card p {
  font-family: "Poppins", Sans-serif;
  font-size: 14px;
  color: #666666;
  line-height: 1.8;
  margin: 0;
  text-align: justify;
}

/* -----------------------------------------------
   SECTION 4 — CORE VALUES (flip cards)
----------------------------------------------- */
.os-values-section {
  padding: 72px 0 80px;
  background: #ffffff;
}
.os-values-section .os-section-label {
  margin-bottom: 44px;
}
.os-values-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 20px;
  width: 100%;
}

/* Flip card container — full width of its grid cell */
.os-value-card {
  width: 100%;
  aspect-ratio: 1 / 1;
  border-radius: 8px;
  position: relative;
  cursor: pointer;
  perspective: 900px;
}
.ov-front,
.ov-back {
  position: absolute;
  inset: 0;
  border-radius: 8px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 20px 16px;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  transition: transform 0.55s cubic-bezier(0.4, 0.2, 0.2, 1);
  text-align: center;
}
.ov-front { transform: rotateY(0deg); }
.ov-back  {
  transform: rotateY(180deg);
  background: rgba(0,0,0,0.82) !important;
}
.os-value-card:hover .ov-front { transform: rotateY(-180deg); }
.os-value-card:hover .ov-back  { transform: rotateY(0deg); }

/* Card colours */
.ov-red  .ov-front { background: #c0392b; }
.ov-green .ov-front { background: #27a860; }
.ov-lime  .ov-front { background: #5cb85c; }
.ov-dark  .ov-front { background: #2c3e50; }
.ov-orange .ov-front { background: #e67e22; }

.ov-icon {
  width: 44px;
  height: 44px;
  margin-bottom: 14px;
}
.ov-icon svg {
  width: 100%;
  height: 100%;
}
.ov-front h4 {
  font-family: "Poppins", Sans-serif;
  font-size: 14px;
  font-weight: 600;
  color: #ffffff;
  line-height: 1.3;
  margin: 0;
}
.ov-back h4 {
  font-family: "Poppins", Sans-serif;
  font-size: 13px;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 10px;
  line-height: 1.3;
}
.ov-back p {
  font-family: "Poppins", Sans-serif;
  font-size: 12px;
  color: rgba(255,255,255,0.88);
  line-height: 1.6;
  margin: 0;
}

/* -----------------------------------------------
   RESPONSIVE
----------------------------------------------- */
@media (max-width: 1024px) {
  .os-values-grid { grid-template-columns: repeat(5, 1fr); gap: 14px; }
}
@media (max-width: 900px) {
  .os-brands-grid { grid-template-columns: repeat(2, 1fr); }
  .os-mv-grid     { grid-template-columns: 1fr; }
  .os-hero-content h1 { font-size: 36px; }
  .os-values-grid { grid-template-columns: repeat(3, 1fr); gap: 16px; }
}
@media (max-width: 768px) {
  .os-hero { height: 280px; }
  .os-hero-content h1 { font-size: 30px; }
  .os-stats-row { flex-wrap: wrap; }
  .os-stat { flex: 0 0 50%; border-bottom: 1px solid #eee; }
  .os-values-grid { grid-template-columns: repeat(3, 1fr); gap: 12px; }
}
@media (max-width: 540px) {
  .os-brands-grid { grid-template-columns: 1fr; }
  .os-values-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .os-hero-content h1 { font-size: 26px; }
}
