/* ============================================
   PRIME Philippines — Our Expertise Page
   Styles specific to the expertise landing page
   ============================================ */

/* --- Two-Column Intro Section (text + image) --- */
.prime-expertise-intro {
  background: var(--prime-warm-white);
  padding: var(--section-py) var(--section-px);
  padding-top: 48px;
  position: relative;
  overflow: hidden;
}

/* Diagonal background panel — subtle warm-to-cool split */
.prime-expertise-intro__diagonal {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, transparent 52%, rgba(0, 51, 102, 0.025) 52%);
  z-index: 0;
  pointer-events: none;
}

/* Watermark chevron — large, faint */
.prime-expertise-intro__watermark {
  position: absolute;
  bottom: -60px;
  right: -30px;
  font-family: var(--font-heading);
  font-size: 380px;
  line-height: 1;
  color: rgba(0, 51, 102, 0.025);
  z-index: 0;
  pointer-events: none;
  user-select: none;
}

.prime-expertise-intro__inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 80px;
  align-items: stretch;
  position: relative;
  z-index: 2;
}

/* ---- Text column ---- */
.prime-expertise-intro__content {
  position: relative;
  display: flex;
  gap: 28px;
}

/* Vertical gold accent bar — removed per design update */
.prime-expertise-intro__bar {
  display: none;
}

.prime-expertise-intro__content-body .prime-section-header {
  text-align: left;
  margin-bottom: 32px;
}

.prime-expertise-intro__content-body .prime-section-header__rule {
  margin: 16px 0;
}

.prime-expertise-intro__text {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 16px;
  line-height: 1.75;
  color: var(--prime-gray);
  margin-bottom: 20px;
}

.prime-expertise-intro__text:last-of-type {
  margin-bottom: 0;
}

/* Rich-text variant: WYSIWYG output wraps each paragraph in <p>.
   Neutralise the inner margins so the wrapper div's spacing wins,
   and brand inline links with the PRIME gold accent. */
.prime-expertise-intro__text--rich > p {
  margin: 0 0 12px;
}
.prime-expertise-intro__text--rich > p:last-child {
  margin-bottom: 0;
}
.prime-expertise-intro__text--rich a {
  color: var(--prime-blue);
  text-decoration: underline;
  text-decoration-color: var(--prime-gold);
  text-underline-offset: 3px;
  transition: color 0.2s ease;
}
.prime-expertise-intro__text--rich a:hover {
  color: var(--prime-gold);
}

/* ---- Image column ---- */
.prime-expertise-intro__image-col {
  position: relative;
  /* extra padding for geometric frames that extend beyond */
  padding: 20px 20px 20px 0;
}

.prime-expertise-intro__image-wrap {
  position: relative;
  z-index: 1;
  height: 100%;
}

.prime-expertise-intro__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  position: relative;
  z-index: 1;
  /* Angular clip — notch on bottom-right corner */
  clip-path: polygon(0 0, 100% 0, 100% 85%, 85% 100%, 0 100%);
}

/* Gold triangle filling the clipped corner */
.prime-expertise-intro__corner-fill {
  position: absolute;
  bottom: 0;
  right: 0;
  width: 15%;
  height: 15%;
  background: var(--prime-gold);
  clip-path: polygon(100% 0, 100% 100%, 0 100%);
  z-index: 0;
}

/* Gold offset border accent — also clipped to match image */
.prime-expertise-intro__image-accent {
  position: absolute;
  bottom: -14px;
  right: -14px;
  width: 100%;
  height: 100%;
  border: 2px solid var(--prime-gold);
  clip-path: polygon(0 0, 100% 0, 100% 85%, 85% 100%, 0 100%);
  z-index: 0;
}

/* Dot grid pattern behind image */
.prime-expertise-intro__image-wrap::after {
  content: '';
  position: absolute;
  top: -25px;
  left: 50%;
  width: 120px;
  height: 120px;
  background-image: radial-gradient(circle, rgba(201, 171, 76, 0.2) 1.2px, transparent 1.2px);
  background-size: 14px 14px;
  z-index: 0;
  pointer-events: none;
}

/* Stacked geometric frames behind image */
.prime-expertise-intro__geo-frame {
  position: absolute;
  border: 2px solid rgba(201, 171, 76, 0.2);
  z-index: 0;
  pointer-events: none;
}

.prime-expertise-intro__geo-frame--1 {
  width: 160px;
  height: 160px;
  top: -15px;
  right: -10px;
  transform: rotate(45deg);
}

.prime-expertise-intro__geo-frame--2 {
  width: 100px;
  height: 100px;
  bottom: 30px;
  left: -30px;
  transform: rotate(20deg);
  border-color: rgba(0, 51, 102, 0.08);
}

/* Floating stats badge */
.prime-expertise-intro__badge {
  position: absolute;
  bottom: 40px;
  left: -30px;
  z-index: 3;
  background: var(--prime-blue);
  padding: 16px 20px;
  display: flex;
  align-items: center;
  gap: 12px;
  box-shadow: 0 8px 32px rgba(0, 51, 102, 0.25);
}

.prime-expertise-intro__badge::before {
  content: '';
  position: absolute;
  top: -3px;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--prime-gold);
}

.prime-expertise-intro__badge-number {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 44px;
  line-height: 1;
  letter-spacing: 0.05em;
  color: var(--prime-gold);
}

.prime-expertise-intro__badge-label {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--prime-warm-white);
  line-height: 1.5;
}


/* --- Services Grid Section --- */
.prime-expertise-grid-section {
  background: #F4F1EC;
  padding: var(--section-py) var(--section-px);
}

.prime-expertise-grid-section__inner {
  max-width: var(--max-width);
  margin: 0 auto;
}

.prime-expertise-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
}


/* --- Service Card --- */
.prime-expertise-card {
  background: var(--prime-warm-white);
  padding: 40px 36px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
  border-top: 3px solid transparent;
  transition: border-color 0.3s ease, box-shadow 0.3s ease, transform 0.3s ease;
  display: flex;
  flex-direction: column;
}

.prime-expertise-card:hover {
  border-top-color: var(--prime-gold);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
  transform: translateY(-4px);
}

.prime-expertise-card__icon {
  width: 52px;
  height: 52px;
  margin-bottom: 20px;
}

.prime-expertise-card__icon svg {
  width: 100%;
  height: 100%;
}

.prime-expertise-card__title {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 18px;
  color: var(--prime-gray);
  margin-bottom: 12px;
}

.prime-expertise-card__desc {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 14px;
  line-height: 1.7;
  color: rgba(27, 29, 30, 0.7);
  margin-bottom: 16px;
}

.prime-expertise-card__bullets {
  list-style: none;
  padding: 0;
  margin: 0 0 16px 0;
}

.prime-expertise-card__bullets li {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 13px;
  line-height: 1.6;
  color: var(--prime-gray);
  padding: 4px 0 4px 20px;
  position: relative;
}

.prime-expertise-card__bullets li::before {
  content: "\00BB";
  position: absolute;
  left: 0;
  color: var(--prime-gold);
  font-weight: 600;
  font-size: 16px;
  line-height: 1.3;
}

.prime-expertise-card__tagline {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 13px;
  font-style: italic;
  line-height: 1.6;
  color: var(--prime-blue);
  margin-bottom: 20px;
  margin-top: auto;
  padding-top: 4px;
}

.prime-expertise-card__link {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--prime-blue);
  text-decoration: none;
  transition: color 0.25s ease;
}

.prime-expertise-card__link:hover {
  color: var(--prime-gold);
}

.prime-expertise-card__link span {
  color: var(--prime-gold);
  margin-left: 4px;
  transition: margin-left 0.25s ease;
}

.prime-expertise-card__link:hover span {
  margin-left: 8px;
}


/* --- Why Choose PRIME Philippines — Premium Card Layout --- */
.prime-expertise-why {
  position: relative;
  background:
    linear-gradient(180deg, var(--prime-warm-white) 0%, #f7f4ef 100%);
  overflow: hidden;
}

.prime-expertise-why .prime-service-why__inner {
  max-width: 1200px;
  position: relative;
  z-index: 2;
}

/* Decorative oversized background arrow mark */
.prime-expertise-why__bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  overflow: hidden;
}

.prime-expertise-why__bg-mark {
  position: absolute;
  top: 50%;
  right: -80px;
  transform: translateY(-50%);
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 520px;
  line-height: 1;
  color: var(--prime-gold);
  opacity: 0.035;
  user-select: none;
}

/* Grid */
.prime-expertise-why__list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
  margin-top: 60px;
  margin-bottom: 72px;
}

/* Card */
.prime-expertise-why__item {
  position: relative;
  display: grid;
  grid-template-columns: auto 1fr;
  grid-template-rows: auto auto;
  column-gap: 24px;
  row-gap: 8px;
  align-items: start;
  background: var(--prime-warm-white);
  padding: 36px 36px 32px 36px;
  border-top: 3px solid rgba(201, 171, 76, 0.25);
  box-shadow: 0 4px 20px rgba(12, 12, 14, 0.05);
  transition: transform 0.35s ease, box-shadow 0.35s ease, border-top-color 0.35s ease;
  overflow: hidden;
}

.prime-expertise-why__item::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 0;
  height: 3px;
  background: var(--prime-gold);
  transition: width 0.5s ease;
}

.prime-expertise-why__item:hover {
  transform: translateY(-6px);
  box-shadow: 0 18px 40px rgba(0, 51, 102, 0.12);
  border-top-color: transparent;
}

.prime-expertise-why__item:hover::before {
  width: 100%;
}

/* Number badge */
.prime-expertise-why__number {
  position: absolute;
  top: 20px;
  right: 24px;
  font-family: "Bebas Neue", var(--font-body), sans-serif;
  font-size: 24px;
  letter-spacing: 0.08em;
  color: rgba(201, 171, 76, 0.35);
  transition: color 0.35s ease;
}

.prime-expertise-why__item:hover .prime-expertise-why__number {
  color: var(--prime-gold);
}

/* Icon well */
.prime-expertise-why__icon {
  grid-column: 1;
  grid-row: 1 / span 2;
  width: 64px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, rgba(201, 171, 76, 0.12) 0%, rgba(0, 51, 102, 0.06) 100%);
  border: 1px solid rgba(201, 171, 76, 0.3);
  flex-shrink: 0;
  transition: background 0.35s ease, border-color 0.35s ease;
}

.prime-expertise-why__icon svg {
  width: 36px;
  height: 36px;
}

.prime-expertise-why__item:hover .prime-expertise-why__icon {
  background: linear-gradient(135deg, rgba(201, 171, 76, 0.22) 0%, rgba(0, 51, 102, 0.1) 100%);
  border-color: var(--prime-gold);
}

/* Text */
.prime-expertise-why__text {
  grid-column: 2;
  grid-row: 1;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 17px;
  line-height: 1.35;
  color: var(--prime-blue);
  margin: 0;
  padding-right: 32px;
}

.prime-expertise-why__desc {
  grid-column: 2;
  grid-row: 2;
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 14px;
  line-height: 1.65;
  color: rgba(27, 29, 30, 0.7);
  margin: 0;
}

/* Decorative corner accent */
.prime-expertise-why__corner {
  position: absolute;
  bottom: 0;
  right: 0;
  width: 40px;
  height: 40px;
  background: linear-gradient(135deg, transparent 50%, rgba(201, 171, 76, 0.12) 50%);
  transition: background 0.35s ease;
}

.prime-expertise-why__item:hover .prime-expertise-why__corner {
  background: linear-gradient(135deg, transparent 50%, var(--prime-gold) 50%);
}

/* Closing paragraph */
.prime-expertise-why__closing-wrap {
  text-align: center;
  max-width: 680px;
  margin: 0 auto;
}

.prime-expertise-why__closing-rule {
  width: 60px;
  height: 2px;
  background-color: var(--prime-gold);
  margin: 0 auto 24px;
}

.prime-expertise-why__closing {
  font-family: var(--font-display);
  font-weight: 300;
  font-style: italic;
  font-size: 22px;
  line-height: 1.5;
  color: var(--prime-blue);
  margin: 0;
}


/* ============================================
   Responsive
   ============================================ */

/* Tablet */
@media (max-width: 1024px) {
  .prime-expertise-intro__inner {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .prime-expertise-intro__content {
    justify-content: center;
  }

  .prime-expertise-intro__content-body .prime-section-header {
    text-align: center;
  }

  .prime-expertise-intro__content-body .prime-section-header__rule {
    margin: 16px auto;
  }

  .prime-expertise-intro__text {
    text-align: center;
  }

  .prime-expertise-intro__bar {
    display: none;
  }

  .prime-expertise-intro__image-col {
    max-width: 480px;
    margin: 0 auto;
    padding: 20px;
  }

  .prime-expertise-intro__badge {
    left: 0;
    bottom: 20px;
  }

  .prime-expertise-intro__watermark {
    font-size: 200px;
  }

  .prime-expertise-grid {
    gap: 24px;
  }

  .prime-expertise-card {
    padding: 32px 28px;
  }

  .prime-expertise-why__list {
    grid-template-columns: 1fr;
    gap: 20px;
    margin-top: 48px;
    margin-bottom: 56px;
  }

  .prime-expertise-why__item {
    padding: 32px 28px 28px;
  }

  .prime-expertise-why__bg-mark {
    font-size: 360px;
    right: -100px;
  }
}

/* Large Mobile */
@media (min-width: 481px) and (max-width: 767px) {
  .prime-expertise-grid {
    grid-template-columns: 1fr;
  }
}

/* Mobile */
@media (max-width: 480px) {
  .prime-expertise-intro__geo-frame--1 {
    width: 100px;
    height: 100px;
    top: -8px;
    right: -5px;
  }

  .prime-expertise-intro__geo-frame--2 {
    width: 70px;
    height: 70px;
    left: -15px;
  }

  .prime-expertise-intro__image-wrap::after {
    width: 80px;
    height: 80px;
    top: -15px;
  }

  .prime-expertise-intro__image-accent {
    bottom: -8px;
    right: -8px;
  }

  .prime-expertise-intro__badge {
    padding: 12px 16px;
    gap: 10px;
  }

  .prime-expertise-intro__badge-number {
    font-size: 32px;
  }

  .prime-expertise-intro__badge-label {
    font-size: 9px;
  }

  .prime-expertise-intro__watermark {
    font-size: 140px;
    bottom: -20px;
  }

  .prime-expertise-grid {
    grid-template-columns: 1fr;
  }

  .prime-expertise-card {
    padding: 28px 24px;
  }

  .prime-expertise-why__list {
    grid-template-columns: 1fr;
    gap: 16px;
    margin-top: 40px;
    margin-bottom: 48px;
  }

  .prime-expertise-why__item {
    padding: 28px 22px 24px;
    column-gap: 18px;
  }

  .prime-expertise-why__icon {
    width: 52px;
    height: 52px;
  }

  .prime-expertise-why__icon svg {
    width: 28px;
    height: 28px;
  }

  .prime-expertise-why__text {
    font-size: 15px;
    padding-right: 30px;
  }

  .prime-expertise-why__desc {
    font-size: 13px;
  }

  .prime-expertise-why__number {
    font-size: 20px;
    top: 16px;
    right: 18px;
  }

  .prime-expertise-why__closing {
    font-size: 17px;
  }

  .prime-expertise-why__bg-mark {
    font-size: 240px;
    right: -60px;
  }
}
