/* =========================================================
   ABOUT PAGE SPECIFIC STYLES - OPTIMIZED
   ========================================================= */

/* --- 1. PAGE HERO --- */
.page-hero {
  height: 75vh;
  background:
    linear-gradient(to bottom, rgba(5, 20, 36, 0.4), rgba(5, 20, 36, 1)),
    url("about-hero-bg.png");
  background-size: cover;
  background-position: center 20%;
  display: flex;
  align-items: center;
  position: relative;
  margin-top: 0;
  padding-top: 80px;
}

.page-hero h1 {
  font-size: 4rem;
  color: var(--text-white);
  margin-bottom: 20px;
  text-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.section-subtitle {
  color: var(--brand-yellow);
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 10px;
  text-shadow: 0 0 10px rgba(255, 216, 77, 0.6);
  font-size: 0.9rem;
  font-weight: 600;
}

/* --- BRAND TEXT STYLING --- */
.brand-text {
  font-family: "Inter", "Roboto", sans-serif;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--text-white);
}

.brand-text span {
  color: var(--brand-yellow);
  text-shadow: 0 0 15px rgba(255, 216, 77, 0.4);
}

.brand-text.inline-brand {
  font-size: 1em;
}

/* --- 2. GLOBAL GRID VISIBILITY --- */
.text-block,
.mission-values-section,
.sustain-section,
.why-centered-section {
  background-color: transparent;
}

/* --- 3. VISION SECTION --- */
.text-block {
  padding: 100px 0;
}

.text-block p {
  font-size: 1.1rem;
  margin-bottom: 30px;
  color: var(--text-grey);
  line-height: 1.8;
}

/* ADDED: Yellow Line for Our Vision Header */
.vision-text-content h2 {
  position: relative;
}

.vision-text-content p {
  text-align: justify;
  text-justify: inter-word;
}

.vision-text-content h2::before {
  content: "";
  display: block;
  width: 60px;
  height: 4px;
  background: var(--brand-yellow);
  margin-bottom: 20px;
  box-shadow: 0 0 15px var(--brand-yellow);
}

.highlight-text {
  color: var(--brand-yellow);
  font-weight: 700;
  font-size: 1.5rem;
  border-left: 4px solid var(--brand-yellow);
  padding-left: 20px;
  margin: 40px 0;
  text-shadow: 0 0 15px rgba(255, 216, 77, 0.3);
  background: linear-gradient(
    90deg,
    rgba(255, 216, 77, 0.05) 0%,
    transparent 100%
  );
}

/* --- VISION IMAGE LAYOUT --- */
.vision-layout {
  display: grid;
  grid-template-columns: 1fr 1.2 fr;
  gap: 60px;
  align-items: center;
}

.vision-img-wrapper {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: flex-start;
  justify-content: center;
}

.stretch-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 14px;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.45);
  border: 1px solid rgba(255, 255, 255, 0.1);
  object-position: 50% 50%;
}

/* --- 4. MISSION & VALUES SECTION --- */
.mission-values-section {
  padding: 80px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.mission-container {
  text-align: center;
  max-width: 1000px;
  margin: 0 auto 40px auto;
}

.center-line {
  width: 60px;
  height: 4px;
  background: var(--brand-yellow);
  margin: 0 auto 20px auto;
  box-shadow: 0 0 15px var(--brand-yellow);
}

/* FIX: Hide manual lines if inside a section-title */
.section-title .center-line,
.section-title .tech-line {
  display: none !important;
}

.mission-container h2 {
  font-size: 3rem;
  color: var(--text-white);
  margin-bottom: 25px;
}

.mission-statement {
  font-size: 1.25rem;
  color: var(--text-grey);
  line-height: 1.8;
  text-align: justify;
  text-justify: inter-word;
}

/* --- CORE VALUES GRID --- */
.values-header {
  text-align: center;
  font-size: 2rem;
  color: var(--text-white);
  margin-bottom: 40px;
  font-family: "Inter", "Roboto", sans-serif;
}

.values-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 30px;
}

.value-card {
  flex: 1 1 300px;
  max-width: 380px;
  background: rgba(7, 27, 47, 0.7);
  border: 1px solid rgba(0, 91, 172, 0.3);
  padding: 40px 25px;
  border-radius: 16px;
  text-align: center;
  transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  backdrop-filter: blur(8px);
  display: flex;
  flex-direction: column;
  align-items: center;
  height: 100%;
  box-shadow:
    0 10px 30px rgba(0, 0, 0, 0.3),
    0 0 0 1px rgba(255, 255, 255, 0.05) inset,
    0 0 20px rgba(0, 91, 172, 0.1);
}

.value-card:hover {
  transform: translateY(-10px);
  border-color: var(--brand-yellow);
  background: rgba(10, 35, 57, 0.9);
  box-shadow:
    0 20px 40px rgba(0, 0, 0, 0.5),
    0 0 30px rgba(255, 216, 77, 0.15),
    0 0 10px rgba(0, 91, 172, 0.4);
}

.value-icon {
  font-size: 2.5rem;
  color: var(--brand-yellow);
  margin-bottom: 25px;
  filter: drop-shadow(0 0 8px rgba(255, 216, 77, 0.4));
  transition: transform 0.3s ease;
}

.value-card:hover .value-icon {
  transform: scale(1.1);
  filter: drop-shadow(0 0 15px rgba(255, 216, 77, 0.8));
}

.value-card h4 {
  color: var(--brand-yellow);
  font-size: 1.35rem;
  margin-bottom: 15px;
  text-transform: uppercase;
  letter-spacing: 2px;
  font-weight: 700;
  text-shadow: 0 0 15px rgba(255, 216, 77, 0.3);
}

.value-card p {
  color: var(--text-grey);
  font-family: "Inter", "Roboto", sans-serif;
  font-size: 1rem;
  color: #e2e8f0;
  margin: 0;
  line-height: 1.7;
  font-weight: 300;
}

/* --- 5. SUSTAINABILITY PROTOCOL PANEL --- */
.sustain-section {
  padding: 100px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.sustain-wrapper {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 80px;
  align-items: start;
}

.sustain-intro .tech-line {
  width: 50px;
  height: 4px;
  background: var(--brand-yellow);
  margin-bottom: 20px;
  box-shadow: 0 0 15px var(--brand-yellow);
}

.sustain-intro h2 {
  font-size: 3rem;
  color: var(--text-white);
  margin-bottom: 20px;
  line-height: 1.1;
}

.sustain-intro h2 span {
  color: var(--brand-blue);
}

.sustain-intro p {
  color: var(--text-grey);
  font-size: 1.1rem;
  line-height: 1.7;
}

.sustain-list-container {
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.protocol-item {
  display: flex;
  gap: 25px;
  align-items: flex-start;
  padding: 25px;
  background: linear-gradient(
    90deg,
    rgba(255, 216, 77, 0.2) 0%,
    rgba(255, 216, 77, 0.05) 50%,
    transparent 100%
  );
  border-left: 4px solid #ffd84d;
  border-top: 1px solid rgba(255, 216, 77, 0.4);
  border-bottom: 1px solid rgba(255, 216, 77, 0.1);
  border-right: 1px solid rgba(255, 216, 77, 0.05);
  box-shadow:
    inset 0 0 30px rgba(255, 216, 77, 0.1),
    0 0 15px rgba(255, 216, 77, 0.3),
    0 0 40px rgba(255, 216, 77, 0.1);
  transition: 0.3s ease;
  backdrop-filter: blur(5px);
  margin-bottom: 20px;
}

.protocol-item:hover {
  background: linear-gradient(
    90deg,
    rgba(255, 216, 77, 0.3) 0%,
    rgba(255, 216, 77, 0.1) 100%
  );
  box-shadow:
    inset 0 0 40px rgba(255, 216, 77, 0.2),
    0 0 30px rgba(255, 216, 77, 0.5),
    0 0 60px rgba(255, 216, 77, 0.2);
  transform: translateX(10px);
  border-color: #ffd84d;
}

.protocol-status {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  color: var(--brand-yellow);
  font-size: 1.5rem;
  width: 40px;
}

.status-dot {
  width: 8px;
  height: 8px;
  background: var(--brand-yellow);
  border-radius: 50%;
  box-shadow: 0 0 10px var(--brand-yellow);
  animation: pulse 2s infinite;
}

.protocol-detail h4 {
  color: var(--text-white);
  font-size: 1.2rem;
  margin-bottom: 8px;
}

.protocol-detail p {
  color: var(--text-grey);
  margin: 0;
  font-size: 0.95rem;
}

@keyframes pulse {
  0% {
    opacity: 0.5;
    transform: scale(1);
  }
  50% {
    opacity: 1;
    transform: scale(1.3);
  }
  100% {
    opacity: 0.5;
    transform: scale(1);
  }
}

/* =========================================================
   6. WHY CHOOSE US - NUMBERED LIST
   ========================================================= */
.why-centered-section {
  padding: 100px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.why-centered-section .center-line {
  margin-bottom: 25px;
}

.why-list-stack {
  display: flex;
  flex-direction: column;
  gap: 25px;
  max-width: 900px;
  margin: 0 auto;
}

.why-list-item {
  display: flex;
  align-items: center;
  padding: 40px 50px;
  background: linear-gradient(
    90deg,
    rgba(10, 35, 57, 0.95) 0%,
    rgba(10, 35, 57, 0.8) 100%
  );
  border: 1px solid rgba(255, 216, 77, 0.3);
  border-left: 5px solid var(--brand-yellow);
  border-radius: 8px;
  backdrop-filter: blur(10px);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4);
  position: relative;
  overflow: hidden;
  transition: transform 0.3s ease;
}

.why-list-item:hover {
  transform: translateX(10px);
  background: linear-gradient(
    90deg,
    rgba(15, 45, 75, 1) 0%,
    rgba(10, 35, 57, 0.9) 100%
  );
}

.why-number {
  flex-shrink: 0;
  font-family: "Inter", "Roboto", sans-serif;
  font-size: 3.5rem;
  font-weight: 700;
  color: var(--brand-yellow);
  margin-right: 50px;
  line-height: 1;
  text-shadow: 0 0 20px rgba(255, 216, 77, 0.4);
  opacity: 0.9;
  width: 80px;
  text-align: center;
}

.why-list-content {
  text-align: left;
}

.why-list-content h4 {
  color: var(--text-white);
  font-size: 1.4rem;
  margin-bottom: 8px;
  font-family: "Inter", "Roboto", sans-serif;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.why-list-content p {
  color: var(--text-grey);
  font-size: 1.05rem;
  margin: 0;
  line-height: 1.6;
}

/* =========================================================
   RESPONSIVE & MOBILE FIXES
   ========================================================= */

/* 1. TABLET (1024px down) */
@media (max-width: 1024px) {
  .page-hero h1 {
    font-size: 3.5rem;
  }

  .protocol-item p {
    align-items: center !important;
    text-align: justify;
  }

  .sustain-wrapper {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .vision-layout {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .vision-img-wrapper {
    width: auto;
  }
}

/* 2. MOBILE STANDARD (768px down) */
@media (max-width: 768px) {
  .page-hero {
    height: 60vh;
    padding-top: 60px;
    align-items: center !important;
  }

  .protocol-item p {
    align-items: center !important;
    text-align: justify;
  }

  .vision-layout {
    display: flex;
    flex-direction: column;
    gap: 0px;
  }

  .vision-img-wrapper {
    order: 2;
    width: 100%;
    height: auto;
    margin-bottom: 5px !important;
  }

  .text-block p,
  .vision-text-content p,
  .mission-statement,
  .sustain-intro p {
    margin-bottom: 0px !important;
    line-height: 1.5 !important;
  }

  .sustain-intro .tech-line {
    margin-left: auto !important;
    margin-right: auto !important;
    margin-bottom: 10px !important;
  }

  .page-hero h1 {
    font-size: 2.8rem;
    line-height: 1.2;
    padding: 0 15px;
    text-align: center;
  }

  .section-subtitle {
    font-size: 0.9rem;
    text-align: center;
    display: block;
  }

  .vision-text-content h2,
  .mission-container h2,
  .sustain-intro h2,
  .values-header,
  .section-title h2 {
    text-align: center !important;
  }

  .vision-text-content p,
  .mission-statement,
  .sustain-intro p {
    text-align: justify;
    text-justify: inter-word;
    font-size: 1.1rem;
  }

  .highlight-text {
    text-align: left;
    font-size: 1.1rem;
  }

  .highlight-text p {
    color: var(--text-grey);
    font-family: "Inter", "Roboto", sans-serif;
  }

  /* --- VISION SECTION MOBILE LAYOUT FIX --- */
  .vision-layout {
    display: flex;
    flex-direction: column;
  }

  /* 1. Un-wrap the text container contents */
  .vision-text-content {
    display: contents;
  }

  .vision-text-content p {
    text-align: justify;
    text-justify: inter-word;
  }
  /* 2. Order: Header first */
  .vision-text-content h2 {
    order: 1;
    margin-bottom: 30px;
  }

  /* 3. Center the Yellow Line in Header */
  .vision-text-content h2::before {
    margin-left: auto !important;
    margin-right: auto !important;
    margin-bottom: 20px;
  }
  /* 4. Order: Image Second */
  .vision-img-wrapper {
    order: 2;
    width: 100%;
    height: auto;
    margin-bottom: 30px;
  }

  /* 5. Order: Text Paragraphs Last */
  .vision-text-content p {
    order: 3;
    margin-top: 20px;
  }

  .stretch-image {
    width: 100%;
    height: auto;
  }

  /* Why List Mobile */
  .why-list-item {
    flex-direction: row;
    align-items: flex-start;
    padding: 30px 20px;
  }

  .why-number {
    font-size: 2.5rem;
    margin-right: 25px;
    width: 50px;
    text-align: left;
  }

  .why-list-content h4 {
    font-size: 1.2rem;
  }
}

/* 3. MOBILE SMALL (400px down) */
@media (max-width: 400px) {
  .page-hero h1 {
    font-size: 2rem !important;
    word-wrap: break-word;
  }

  .protocol-item p {
    align-items: center !important;
    text-align: justify;
  }

  .page-hero {
    height: auto;
    min-height: 55vh;
    padding-bottom: 40px;
    padding-top: 100px;
  }

  .why-list-item {
    flex-direction: column;
    text-align: center;
    border-left: 1px solid rgba(255, 216, 77, 0.3);
    border-top: 5px solid var(--brand-yellow);
  }

  .why-number {
    margin-right: 0;
    margin-bottom: 15px;
    width: 100%;
    text-align: center;
  }

  .why-list-content {
    text-align: center;
  }
}
