/* ====================================
   ABOUT PAGE STYLES
   Pixel-perfect match to Figma design
   ==================================== */

/* Header for About Page - Transparent, Overlaying Hero */
.about-page .header {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background: transparent;
}

.about-page .header .navbar {
  background: transparent;
}

/* ====================================
   CHAIRMAN'S MESSAGE SECTION
   
   Figma layout (1440px viewport):
   - Outer dark card: 1214×492px, left=53px, top offset ~31px, rounded-13
   - Inner light card: 1292×462px, left=68px, rounded-21
   - Dark border visible: ~15px left, ~15px top, ~30px bottom
   - Chairman image: 523×508px, right=23px, top=0, overlaps both cards
   - Text: 16px Tajawal, tight line-height, #380606, max-width ~840px
   ==================================== */
.chairman-section {
  background-color: var(--bg-page);
  padding: var(--section-spacing) 0;
}

.chairman-section .section-title {
  color: var(--primary-color);
  margin-bottom: 40px;
}

.chairman-card-wrapper {
  position: relative;
  max-width: 100%;
  margin: 0 auto;
  padding: 0 23px;
  min-height: 520px;
  overflow: visible;
}

/* Outer dark card is hidden — we use CSS border instead */
.chairman-card-bg {
  display: none;
}

/* Inner light card with dark maroon BORDER */
.chairman-card-inner {
  position: relative;
  z-index: 2;
  background-color: var(--bg-page);
  border-radius: 21px;
  border: 15px solid var(--primary-color);
  margin-left: 45px;
  margin-top: 16px;
  margin-right: 140px;
  padding: 40px 25px 35px 22px;
  min-height: 462px;
  box-sizing: border-box;
}

.chairman-text-area {
  max-width: 810px;
}

/* Quote icon — 72×65px, dark maroon color */
.chairman-quote-icon {
  width: 72px;
  height: 65px;
  object-fit: contain;
  margin-bottom: 12px;
  display: block;
}

/* Text — Figma: 16px Tajawal Regular, #380606, TIGHT line-height */
.chairman-paragraphs {
  font-family: "Tajawal", var(--font-body);
  font-weight: 400;
  font-size: 16px;
  color: var(--primary-color);
  line-height: 22px;
}

.chairman-paragraphs p {
  font-family: "Tajawal", var(--font-body);
  font-weight: 400;
  font-size: 16px;
  color: var(--primary-color);
  line-height: 22px;
  margin-bottom: 0;
}

/* Chairman image — aligned to inner card bottom, flush right */
.chairman-image-float {
  position: absolute;
  right: 0;
  bottom: 2.8125rem;
  z-index: 3;
  width: 523px;
  height: 508px;
}

.chairman-image-float img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
}

/* ====================================
   EVERY METER HAS A STORY SECTION
   ==================================== */
.story-section {
  background-color: var(--bg-page);
  padding: var(--section-spacing) 0 30px;
}

.story-section .section-title {
  color: var(--primary-color);
  margin-bottom: 20px;
}

.story-section > .container {
  max-width: 100%;
  padding-left: 23px;
  padding-right: 23px;
}

.story-intro {
  font-family: "Tajawal", var(--font-body);
  font-weight: 400;
  font-size: 16px;
  color: var(--text-dark);
  text-align: center;
  max-width: 1363px;
  margin: 0 auto;
  line-height: 22px;
}

/* ====================================
   STORY DETAIL SECTION (Dark/Maroon)
   bg: #380606 + about-section-bg.png texture
   ==================================== */
.story-detail-section {
  position: relative;
  padding: 30px 0;
  overflow: hidden;
}

/* Base solid color */
.story-detail-section::before {
  content: "";
  position: absolute;
  inset: 0;
  background-color: var(--primary-color);
  z-index: 0;
}

/* Texture image overlay */
.story-detail-section::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("../about/section-bg.png");
  background-size: cover;
  background-position: center;
  opacity: 1;
  z-index: 1;
}

.story-detail-section > .container {
  position: relative;
  z-index: 2;
  max-width: 100%;
  padding-left: 23px;
  padding-right: 23px;
}

.story-image img {
  width: 100%;
  height: 378px;
  object-fit: cover;
}

.story-content {
  padding-left: 40px;
}

.story-number {
  font-family: var(--font-heading);
  font-size: 36px;
  font-weight: 700;
  color: var(--accent-color);
  line-height: 1;
  margin-bottom: 5px;
}

.story-subtitle {
  font-family: "Tajawal", var(--font-body);
  font-weight: 400;
  font-size: 24px;
  color: var(--accent-color);
  margin-bottom: 20px;
  line-height: 1.2;
}

.story-description {
  font-family: "Tajawal", var(--font-body);
  font-weight: 400;
  font-size: 16px;
  color: rgba(204, 204, 204, 0.8);
  line-height: 22px;
  margin-bottom: 20px;
}

.story-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.story-list li {
  font-family: "Tajawal", var(--font-body);
  font-weight: 400;
  font-size: 16px;
  color: #ccc;
  margin-bottom: 8px;
  line-height: 22px;
}

/* ====================================
   UNIQUE DESIGN IDENTITY SECTION
   ==================================== */
.design-identity-section {
  background-color: var(--bg-page);
  padding: var(--section-spacing) 0;
}

.design-identity-section > .container {
  max-width: 100%;
  padding-left: 23px;
  padding-right: 23px;
}

.design-identity-section .section-title {
  color: var(--primary-color);
  margin-bottom: 25px;
}

.design-identity-text {
  font-family: "Tajawal", var(--font-body);
  font-weight: 400;
  font-size: 16px;
  color: var(--text-dark);
  line-height: 22px;
  text-align: center;
  max-width: 1326px;
  margin: 0 auto;
}

/* ====================================
   OUR VALUES SECTION (Dark/Maroon)
   bg: #380606 + about-section-bg.png texture
   ==================================== */
.values-section {
  position: relative;
  padding: var(--section-spacing) 0;
  overflow: hidden;
}

/* Base solid color */
.values-section::before {
  content: "";
  position: absolute;
  inset: 0;
  background-color: var(--primary-color);
  z-index: 0;
}

/* Texture image overlay */
.values-section::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("../about/section-bg.png");
  background-size: cover;
  background-position: center;
  opacity: 1;
  z-index: 1;
}

.values-section > .container {
  position: relative;
  z-index: 2;
  max-width: 100%;
  padding-left: 23px;
  padding-right: 23px;
}

.values-section .section-title {
  color: var(--accent-color);
  margin-bottom: 50px;
}

.values-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 55px 40px;
  max-width: 1100px;
  margin: 0 auto;
}

.value-item {
  text-align: center;
}

/* Circle icon container — 118px diameter, thin gold border */
.value-icon {
  width: 118px;
  height: 118px;
  border: 1.5px solid var(--accent-color);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 15px;
  transition: all 0.3s ease;
  background: transparent;
}

/* Icons are GOLD (#F3C986) — CSS filter to tint icons gold */
.value-icon img {
  width: 50px;
  height: 50px;
  object-fit: contain;
  filter: brightness(0) saturate(100%) invert(84%) sepia(25%) saturate(700%)
    hue-rotate(334deg) brightness(100%) contrast(93%);
}

/* Label text — Figma: 18px Trajan Pro Bold, #F3C986, uppercase */
.value-item h5 {
  font-family: var(--font-heading);
  font-size: 18px;
  font-weight: 700;
  color: var(--accent-color);
  letter-spacing: 0.5px;
  text-transform: uppercase;
  margin: 0;
  line-height: 1.45;
}

.value-item:hover .value-icon {
  background-color: rgba(243, 201, 134, 0.1);
  transform: scale(1.05);
}

/* ====================================
   GALLERY OVERRIDES FOR ABOUT PAGE
   ==================================== */
.about-page .gallery-section > .container {
  max-width: 100%;
  padding-left: 100px;
  padding-right: 100px;
}

.about-page .gallery-section .section-title {
  font-family: var(--font-body);
}

.about-page .gallery-image img {
  height: 450px;
}

/* Gallery carousel arrows at bottom */
.about-page .gallery-section .gallery-nav {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 15px;
}

.about-page .gallery-section .gallery-arrow {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: none;
  background: transparent;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  padding: 0;
}

.about-page .gallery-section .gallery-arrow img {
  width: 50%;
  height: 50%;
  object-fit: contain;
}

.about-page .gallery-section .gallery-arrow:hover {
  opacity: 0.7;
}

/* ====================================
   RESPONSIVE STYLES
   ==================================== */

/* --- XL screens (< 1400px) --- */
@media (max-width: 1399.98px) {
  .chairman-card-inner {
    margin-left: 40px;
    margin-right: 100px;
  }

  .chairman-image-float {
    width: 440px;
    height: 500px;
  }
}

/* --- Hide chairman image below 1100px --- */
@media (max-width: 1100px) {
  .chairman-image-float {
    display: none;
  }

  .chairman-card-inner {
    margin-right: 30px;
  }
}

/* --- LG screens (< 1200px) --- */
@media (max-width: 1199.98px) {
  .chairman-image-float {
    width: 370px;
    height: 410px;
  }

  .chairman-card-inner {
    margin-right: 0;
    margin-left: 30px;
  }

  .chairman-paragraphs p,
  .chairman-paragraphs {
    font-size: 14px;
    line-height: 22px;
  }

  .values-grid {
    gap: 40px 30px;
  }

  .value-icon {
    width: 100px;
    height: 100px;
  }

  .value-icon img {
    width: 42px;
    height: 42px;
  }

  .value-item h5 {
    font-size: 16px;
  }
}

/* --- MD screens / tablet (< 992px) --- */
@media (max-width: 991.98px) {
  .chairman-card-wrapper {
    min-height: auto;
  }

  .chairman-card-inner {
    margin-left: 15px;
    margin-right: 15px;
    margin-top: 16px;
    padding: 35px 25px;
    min-height: auto;
    border-width: 12px;
  }

  .chairman-text-area {
    max-width: 100%;
  }

  .chairman-image-float {
    position: relative;
    right: auto;
    top: auto;
    width: 100%;
    height: 350px;
    margin-top: 20px;
  }

  .chairman-image-float img {
    border-radius: 13px;
    object-position: top;
  }

  .chairman-paragraphs p,
  .chairman-paragraphs {
    font-size: 14px;
  }

  /* Story section */
  .story-content {
    padding-left: 0;
    margin-top: 30px;
  }

  .story-image img {
    height: 300px;
  }

  /* Values */
  .values-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 35px 25px;
  }

  .value-icon {
    width: 90px;
    height: 90px;
  }

  .value-icon img {
    width: 38px;
    height: 38px;
  }

  .value-item h5 {
    font-size: 14px;
  }
}

/* --- SM screens / mobile (< 768px) --- */
@media (max-width: 767.98px) {
  .chairman-card-inner {
    margin-left: 10px;
    margin-right: 10px;
    margin-top: 10px;
    padding: 30px 15px;
    border-radius: 13px;
    border-width: 10px;
  }

  .chairman-quote-icon {
    width: 50px;
    height: auto;
  }

  .chairman-paragraphs p,
  .chairman-paragraphs {
    font-size: 13px;
    line-height: 22px;
  }

  .chairman-image-float {
    height: 280px;
  }

  .story-image img {
    height: 250px;
  }

  .story-number {
    font-size: 28px;
  }

  .story-subtitle {
    font-size: 20px;
  }

  .story-description {
    font-size: 14px;
  }

  .story-list li {
    font-size: 14px;
  }

  .design-identity-text {
    font-size: 14px;
  }

  .story-intro {
    font-size: 14px;
  }

  /* Values 2-col on mobile */
  .values-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 30px 20px;
  }

  .value-icon {
    width: 80px;
    height: 80px;
  }

  .value-icon img {
    width: 32px;
    height: 32px;
  }

  .value-item h5 {
    font-size: 12px;
  }

  /* Gallery 1-col on mobile */
  .about-page .gallery-section .row > [class*="col-"] {
    width: 100%;
    flex: 0 0 100%;
    max-width: 100%;
  }

  /* Wide containers reset */
  .story-section > .container,
  .design-identity-section > .container,
  .values-section > .container,
  .about-page .gallery-section > .container {
    padding-left: 15px;
    padding-right: 15px;
  }
}

/* --- XS screens (< 576px) --- */
@media (max-width: 575.98px) {
  .chairman-card-inner {
    margin-left: 5px;
    margin-right: 5px;
    padding: 25px 12px;
    border-width: 8px;
  }

  .chairman-paragraphs p,
  .chairman-paragraphs {
    font-size: 12px;
    line-height: 22px;
  }

  .chairman-quote-icon {
    width: 40px;
  }

  .chairman-image-float {
    height: 220px;
  }

  .values-grid {
    gap: 25px 15px;
  }

  .value-icon {
    width: 70px;
    height: 70px;
  }

  .value-icon img {
    width: 28px;
    height: 28px;
  }

  .value-item h5 {
    font-size: 11px;
  }
}
