/**
 * About Turnwell — page-specific UI enhancements
 */

.page-about .page-hero--premium .page-hero__overlay {
  background: linear-gradient(
    105deg,
    var(--color-navy) 0%,
    rgba(7, 29, 73, 0.92) 32%,
    rgba(7, 29, 73, 0.72) 62%,
    rgba(7, 29, 73, 0.48) 100%
  );
}

.page-about .page-hero__bg-image {
  object-position: center 42%;
  transform: scale(1.05);
}

.page-about .page-hero--premium .page-hero__content {
  max-width: 50rem;
}

.page-about .page-hero--premium .type-page-title {
  font-size: clamp(2.125rem, 4.8vw, 3.5rem);
  line-height: 1.08;
}

.page-about .page-hero__intro {
  margin-top: clamp(1.125rem, 2.5vw, 1.5rem);
  font-size: clamp(1.125rem, 2.2vw, 1.375rem);
  line-height: 1.72;
  max-width: 42rem;
}

/* About Us — featured introduction */
.page-about .about-feature {
  position: relative;
  padding-bottom: clamp(3.5rem, 7vw, 5.5rem);
  background: linear-gradient(
    180deg,
    var(--color-white) 0%,
    rgba(248, 249, 252, 0.6) 100%
  );
  overflow: hidden;
}

.page-about .about-feature__bg {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(33, 69, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(33, 69, 255, 0.035) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: linear-gradient(180deg, transparent 0%, rgba(0, 0, 0, 0.65) 20%, rgba(0, 0, 0, 0.45) 80%, transparent 100%);
  pointer-events: none;
}

.page-about .about-feature__stage {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.95fr);
  align-items: center;
  min-height: clamp(26rem, 42vw, 36rem);
}

.page-about .about-feature__media {
  position: relative;
  z-index: 1;
  margin-right: clamp(-2rem, -4vw, -3.5rem);
}

.page-about .about-feature__image {
  position: relative;
  min-height: clamp(26rem, 44vw, 38rem);
  overflow: hidden;
  border-radius: var(--radius-md);
  border: 1px solid rgba(217, 219, 227, 0.55);
  box-shadow:
    0 32px 80px rgba(7, 29, 73, 0.16),
    0 12px 32px rgba(7, 29, 73, 0.08);
}

.page-about .about-feature__image::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    transparent 55%,
    rgba(7, 29, 73, 0.12) 100%
  );
  pointer-events: none;
}

.page-about .about-feature__image img {
  width: 100%;
  height: 100%;
  min-height: clamp(26rem, 44vw, 38rem);
  object-fit: cover;
  object-position: center;
  display: block;
  transition: transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}

.page-about .about-feature__media:hover .about-feature__image img {
  transform: scale(1.03);
}

.page-about .about-feature__card {
  position: relative;
  z-index: 2;
  margin-left: clamp(-1.5rem, -3vw, -2.5rem);
  padding: clamp(2rem, 4vw, 2.75rem) clamp(2rem, 3.5vw, 2.5rem);
  background: var(--color-white);
  border: 1px solid rgba(217, 219, 227, 0.7);
  border-radius: var(--radius-md);
  box-shadow:
    0 24px 64px rgba(7, 29, 73, 0.12),
    0 8px 24px rgba(7, 29, 73, 0.06),
    inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.page-about .about-feature__card::before {
  content: '';
  position: absolute;
  left: 0;
  top: clamp(1.5rem, 3vw, 2rem);
  bottom: clamp(1.5rem, 3vw, 2rem);
  width: 3px;
  background: linear-gradient(
    180deg,
    var(--color-yellow) 0%,
    var(--color-electric-blue) 100%
  );
  border-radius: 0 2px 2px 0;
}

.page-about .about-feature__header {
  margin-bottom: clamp(1.25rem, 2.5vw, 1.75rem);
  padding-left: 0.75rem;
}

.page-about .about-feature__title {
  margin: 0;
  font-size: clamp(1.875rem, 3.5vw, 2.5rem);
  line-height: 1.12;
  letter-spacing: -0.02em;
}

.page-about .about-feature__title::after {
  content: '';
  display: block;
  width: 2.25rem;
  height: 2px;
  margin-top: 0.875rem;
  background: var(--color-yellow);
}

.page-about .about-feature__prose {
  padding-left: 0.75rem;
  max-width: none;
}

.page-about .about-feature__prose p {
  margin: 0;
  font-size: clamp(1.0625rem, 1.8vw, 1.125rem);
  line-height: 1.78;
  color: var(--color-navy);
}

.page-about .about-feature__prose p + p {
  margin-top: var(--space-md);
}

/* Mission & Vision — full-width parallax */
.page-about .about-mv-banner {
  position: relative;
  padding-block: clamp(4rem, 8vw, 6.5rem);
  background-color: var(--color-navy);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-attachment: fixed;
  overflow: hidden;
}

.page-about .about-mv-banner__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    165deg,
    rgba(7, 29, 73, 0.92) 0%,
    rgba(7, 29, 73, 0.82) 40%,
    rgba(7, 29, 73, 0.88) 100%
  );
  pointer-events: none;
}

.page-about .about-mv-banner__overlay::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 198, 41, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(33, 69, 255, 0.08) 1px, transparent 1px);
  background-size: 56px 56px;
  opacity: 0.7;
}

.page-about .about-mv-banner__inner {
  position: relative;
  z-index: 1;
}

.page-about .about-mv-banner__panels {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(1.25rem, 2.5vw, 1.75rem);
  align-items: stretch;
}

.page-about .about-mv-banner__panel {
  display: flex;
  flex-direction: column;
  gap: clamp(1rem, 2vw, 1.375rem);
  min-height: clamp(16rem, 24vw, 20rem);
  padding: clamp(2.25rem, 4.5vw, 3.25rem);
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: var(--radius-md);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow:
    0 20px 48px rgba(7, 29, 73, 0.25),
    inset 0 1px 0 rgba(255, 255, 255, 0.12);
  transition:
    transform 0.4s cubic-bezier(0.22, 1, 0.36, 1),
    border-color 0.4s ease,
    background 0.4s ease;
}

.page-about .about-mv-banner__panel:hover {
  transform: translate3d(0, -4px, 0);
  background: rgba(255, 255, 255, 0.14);
  border-color: rgba(255, 255, 255, 0.28);
}

.page-about .about-mv-banner__panel--mission {
  border-top: 3px solid var(--color-electric-blue);
}

.page-about .about-mv-banner__panel--vision {
  border-top: 3px solid var(--color-yellow);
}

.page-about .about-mv-banner__title {
  margin: 0;
  font-size: clamp(1.5rem, 2.8vw, 2rem);
  font-weight: var(--font-weight-bold);
  line-height: 1.2;
  letter-spacing: -0.015em;
  color: var(--color-white);
}

.page-about .about-mv-banner__title::after {
  content: '';
  display: block;
  width: 2rem;
  height: 2px;
  margin-top: 0.75rem;
  background: var(--color-yellow);
}

.page-about .about-mv-banner__panel--vision .about-mv-banner__title::after {
  background: var(--color-electric-blue);
}

.page-about .about-mv-banner__text {
  margin: 0;
  font-size: clamp(1.125rem, 2vw, 1.3125rem);
  line-height: 1.72;
  color: rgba(255, 255, 255, 0.92);
  flex-grow: 1;
}

/* Legacy section styles (hidden blocks) */
.page-about .statement-section--parallax {
  position: relative;
  min-height: clamp(20rem, 45vh, 32rem);
  max-height: 100svh;
  padding-block: clamp(3.5rem, 10vw, 6rem);
  background-color: var(--color-navy);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-attachment: fixed;
  overflow: hidden;
}

.page-about .statement-section--parallax .statement-section__overlay {
  position: absolute;
  inset: 0;
  z-index: 0;
  background: linear-gradient(
    105deg,
    rgba(7, 29, 73, 0.92) 0%,
    rgba(7, 29, 73, 0.84) 42%,
    rgba(7, 29, 73, 0.76) 100%
  );
  pointer-events: none;
}

.page-about .statement-section--parallax.statement-section--textured::before,
.page-about .statement-section--parallax.statement-section--textured::after {
  z-index: 1;
}

.page-about .about-statement {
  padding-block: clamp(3rem, 8vw, 5rem);
}

.page-about .about-statement.statement-section--textured::before {
  opacity: 0.65;
}

.page-about .statement-section__inner {
  position: relative;
  z-index: 2;
  max-width: 52rem;
  padding-inline: clamp(1rem, 3vw, 2rem);
}

.page-about .statement-section__quote {
  font-size: clamp(1.625rem, 3.8vw, 2.5rem);
  line-height: 1.28;
  letter-spacing: -0.015em;
}

.page-about .statement-section__quote::before {
  width: 2.5rem;
  margin-bottom: clamp(1.25rem, 2.5vw, 1.75rem);
}

.page-about .about-adnoc {
  background: linear-gradient(180deg, var(--color-white) 0%, rgba(248, 249, 252, 0.92) 100%);
}

.page-about .about-adnoc .inner-centered__body {
  max-width: 44rem;
  gap: clamp(1.25rem, 2.5vw, 1.75rem);
}

.page-about .about-adnoc .inner-section-header {
  margin-bottom: 0;
}

.page-about .about-adnoc .inner-centered__logo {
  max-width: 12.5rem;
  max-height: 3rem;
}

.page-about .about-adnoc .prose p {
  font-size: clamp(1.0625rem, 1.8vw, 1.125rem);
  line-height: 1.78;
}

/* Responsive */
@media (max-width: 992px) {
  .page-about .about-feature__stage {
    grid-template-columns: 1fr;
    min-height: 0;
    gap: 0;
  }

  .page-about .about-feature__media {
    margin-right: 0;
  }

  .page-about .about-feature__image,
  .page-about .about-feature__image img {
    min-height: clamp(18rem, 48vw, 24rem);
  }

  .page-about .about-feature__card {
    margin-left: 0;
    margin-top: clamp(-3rem, -8vw, -2rem);
    width: calc(100% - clamp(1rem, 4vw, 2rem));
    margin-inline: auto;
  }

  .page-about .about-mv-banner__panels {
    grid-template-columns: 1fr;
  }

  .page-about .about-mv-banner {
    background-attachment: scroll;
  }
}

@media (max-width: 768px) {
  .page-about .about-feature {
    padding-block: clamp(2.5rem, 6vw, 3.5rem);
  }

  .page-about .about-feature__card {
    margin-top: -1.5rem;
    padding: clamp(1.5rem, 4vw, 2rem);
  }

  .page-about .about-mv-banner {
    padding-block: clamp(3rem, 8vw, 4.5rem);
  }

  .page-about .statement-section--parallax {
    background-attachment: scroll;
  }
}

@media (prefers-reduced-motion: reduce) {
  .page-about .about-feature__image img,
  .page-about .about-mv-banner__panel {
    transition: none;
  }

  .page-about .about-feature__media:hover .about-feature__image img,
  .page-about .about-mv-banner__panel:hover {
    transform: none;
  }

  .page-about .about-mv-banner,
  .page-about .statement-section--parallax {
    background-attachment: scroll;
  }
}
