/* ==========================================
   HIG — SERVICES PAGE
   Premium visual system
========================================== */

.services-page-hero {
  position: relative;
  overflow: hidden;
  min-height: 430px;
  display: flex;
  align-items: center;
  background: linear-gradient(115deg, #0C1B27 0%, #18324A 58%, #294B67 100%);
  border-bottom: 4px solid #CDA06C;
}

.services-page-hero::before {
  content: "";
  position: absolute;
  inset: 0 0 0 auto;
  width: 49%;
  background:
    linear-gradient(90deg, #18324A 0%, rgba(24,50,74,.58) 20%, rgba(24,50,74,.04) 72%),
    url("assets/services-hero.webp") 64% 48% / cover no-repeat;
}

.services-page-hero::after {
  content: "";
  position: absolute;
  width: 500px;
  height: 500px;
  left: -360px;
  top: -230px;
  border: 1px solid rgba(205,160,108,.28);
  border-radius: 50%;
}

.services-page-hero .container { position: relative; z-index: 2; }
.services-page-hero-inner { max-width: 720px; padding: 82px 0; }

.services-eyebrow,
.services-small-title,
.services-section-heading > span,
.expertise-heading > span,
.standards-heading > span,
.services-page-cta span {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
  color: #AD8F6C;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 1.8px;
}

.services-eyebrow { color: #DFC3A3; }

.services-eyebrow::before,
.services-small-title::before,
.services-section-heading > span::before,
.expertise-heading > span::before,
.standards-heading > span::before {
  content: "";
  width: 32px;
  height: 2px;
  background: #CDA06C;
}

.services-page-hero h1,
.services-intro h2,
.services-section-heading h2,
.expertise-heading h2,
.standards-heading h2,
.services-page-cta h2 {
  margin: 0;
  color: #18324A;
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 400;
  line-height: 1.16;
}

.services-page-hero h1 {
  color: #FFFFFF;
  margin-bottom: 16px;
  font-size: clamp(50px, 5vw, 68px);
  line-height: 1.06;
}

.services-page-hero p {
  max-width: 650px;
  margin: 0;
  color: rgba(255,255,255,.82);
  font-size: 18px;
  line-height: 1.72;
}

/* INTRO */

.services-intro {
  padding: 92px 0;
  background:
    radial-gradient(circle at 88% 18%, rgba(205,160,108,.11), transparent 24%),
    #F8F2EB;
}

.services-intro-grid {
  display: grid;
  grid-template-columns: .72fr .78fr 1.05fr;
  gap: 48px;
  align-items: center;
}

.services-intro h2 { font-size: clamp(38px, 4vw, 52px); }

.services-intro-visual {
  position: relative;
  min-height: 280px;
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(18,34,46,.02), rgba(18,34,46,.28)),
    url("assets/services-intro-final.webp") center / cover no-repeat;
  border-radius: 18px 180px 18px 18px;
  border: 1px solid rgba(205,160,108,.38);
  box-shadow: 0 24px 60px rgba(24,50,74,.14);
}

.services-intro-visual::before {
  content: "";
  position: absolute;
  left: 22px;
  bottom: 22px;
  width: 110px;
  height: 110px;
  border: 1px solid rgba(255,255,255,.60);
  border-radius: 50%;
}

.services-visual-grid {
  position: absolute;
  inset: 20px;
  border: 1px solid rgba(255,255,255,.40);
  border-radius: 12px 160px 12px 12px;
}

.services-intro-content p {
  margin: 0 0 18px;
  color: #263746;
  font-size: 17px;
  line-height: 1.82;
}

.services-statement {
  margin-top: 27px !important;
  padding: 22px 24px 22px 28px;
  background: rgba(255,255,255,.58);
  border: 1px solid rgba(205,160,108,.30);
  border-left: 4px solid #CDA06C;
  color: #18324A !important;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 20px !important;
  line-height: 1.55 !important;
  box-shadow: 0 14px 35px rgba(24,50,74,.06);
}

/* CORE SERVICES */

.service-pillars {
  padding: 96px 0 104px;
  background: #FFFFFF;
}

.services-section-heading,
.expertise-heading {
  max-width: 800px;
  margin: 0 auto 54px;
  text-align: center;
}

.services-section-heading > span,
.expertise-heading > span { justify-content: center; }
.services-section-heading h2,
.expertise-heading h2 { font-size: clamp(38px, 4vw, 52px); }

.service-pillars-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.service-pillar {
  position: relative;
  overflow: hidden;
  min-height: 430px;
  display: flex;
  flex-direction: column;
  padding: 150px 32px 32px;
  background: linear-gradient(180deg, #FFFFFF 0%, #FBF7F2 100%);
  border: 1px solid #E4D6C8;
  border-radius: 10px;
  box-shadow: 0 14px 34px rgba(24,50,74,.06);
  transition: transform .28s ease, box-shadow .28s ease, border-color .28s ease;
}

.service-pillar::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 120px;
  background: linear-gradient(0deg, rgba(18,34,46,.18), transparent 70%);
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  transition: transform .45s ease;
}

.service-pillar--quality::before { background-image: linear-gradient(0deg, rgba(18,34,46,.18), transparent 70%), url("assets/core-final-1.webp"); }
.service-pillar--compliance::before { background-image: linear-gradient(0deg, rgba(18,34,46,.18), transparent 70%), url("assets/core-final-2.webp"); }
.service-pillar--digital::before {
  background-image: linear-gradient(0deg, rgba(18,34,46,.08), transparent 78%), url("assets/core-final-3.webp");
  background-position: center center;
  background-size: cover;
  background-repeat: no-repeat;
}
.service-pillar--training::before { background-image: linear-gradient(0deg, rgba(18,34,46,.18), transparent 70%), url("assets/core-final-4.webp"); }

.service-pillar::after {
  content: "";
  position: absolute;
  top: 116px;
  left: 32px;
  width: 48px;
  height: 3px;
  background: #CDA06C;
}

.service-pillar:hover {
  transform: translateY(-8px);
  border-color: rgba(205,160,108,.72);
  box-shadow: 0 24px 56px rgba(24,50,74,.13);
}

.service-pillar:hover::before { transform: scale(1.035); }

.service-pillar-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 22px;
}

.service-pillar-top > span { display: none; }

.service-pillar-icon {
  width: 58px;
  height: 58px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(145deg, #18324A, #294B67);
  border: 1px solid rgba(223,195,163,.50);
  border-radius: 50%;
  box-shadow: 0 10px 22px rgba(24,50,74,.14);
}

.service-pillar-icon svg {
  width: 26px;
  height: 26px;
  fill: none;
  stroke: #DFC3A3;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.service-pillar h3 {
  max-width: 590px;
  margin: 0 0 12px;
  color: #18324A;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 27px;
  font-weight: 400;
  line-height: 1.24;
}

.service-pillar > p {
  max-width: 620px;
  margin: 0 0 22px;
  color: #6F7780;
  font-size: 15px;
  line-height: 1.72;
}

.service-tags {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 0;
  margin-top: auto;
  padding-top: 19px;
  border-top: 1px solid rgba(173,143,108,.24);
}

.service-tags span {
  position: relative;
  padding: 3px 18px 3px 0;
  margin-right: 13px;
  color: #765F4B;
  font-size: 16px !important;
  font-weight: 800;
  line-height: 1.55;
}

.service-tags span::after {
  content: "•";
  position: absolute;
  right: 0;
  color: #CDA06C;
}

.service-tags span:last-child { padding-right: 0; margin-right: 0; }
.service-tags span:last-child::after { display: none; }

/* EXPERTISE — DESIGN-HEAVY */

.expertise-section {
  position: relative;
  overflow: hidden;
  padding: 96px 0 108px;
  background:
    radial-gradient(circle at 7% 15%, rgba(205,160,108,.12), transparent 25%),
    linear-gradient(180deg, #F2E4D4 0%, #F8F2EB 100%);
}

.expertise-section::before {
  content: "";
  position: absolute;
  width: 520px;
  height: 520px;
  right: -350px;
  top: -280px;
  border: 1px solid rgba(173,143,108,.25);
  border-radius: 50%;
  box-shadow: 0 0 0 54px rgba(205,160,108,.025), 0 0 0 108px rgba(205,160,108,.018);
}

.expertise-list {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  max-width: 1220px;
  margin: 0 auto;
}

.expertise-item {
  position: relative;
  overflow: hidden;
  min-height: 260px;
  display: flex;
  align-items: flex-end;
  padding: 158px 25px 26px;
  background: #FFFFFF;
  border: 1px solid rgba(205,160,108,.32);
  border-radius: 10px;
  box-shadow: 0 14px 32px rgba(24,50,74,.08);
  transition: transform .28s ease, box-shadow .28s ease, border-color .28s ease;
}

.expertise-item::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 138px;
  background: linear-gradient(0deg, rgba(18,34,46,.24), transparent 72%);
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  transition: transform .42s ease;
}

.expertise-item:nth-child(1)::before { background-image: linear-gradient(0deg, rgba(18,34,46,.24), transparent 72%), url("assets/expertise-final-1.webp"); }
.expertise-item:nth-child(2)::before { background-image: linear-gradient(0deg, rgba(18,34,46,.24), transparent 72%), url("assets/expertise-final-2.webp"); }
.expertise-item:nth-child(3)::before { background-image: linear-gradient(0deg, rgba(18,34,46,.24), transparent 72%), url("assets/expertise-final-3.webp"); }
.expertise-item:nth-child(4)::before { background-image: linear-gradient(0deg, rgba(18,34,46,.24), transparent 72%), url("assets/expertise-final-4.webp"); }
.expertise-item:nth-child(5)::before { background-image: linear-gradient(0deg, rgba(18,34,46,.24), transparent 72%), url("assets/expertise-final-5.webp"); }
.expertise-item:nth-child(6)::before { background-image: linear-gradient(0deg, rgba(18,34,46,.24), transparent 72%), url("assets/expertise-final-6.webp"); }

.expertise-item::after {
  content: "→";
  position: absolute;
  right: 22px;
  bottom: 22px;
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border: 1px solid #CDA06C;
  border-radius: 50%;
  color: #AD8F6C;
  font-size: 17px;
  background: #FFFDF9;
}

.expertise-item:hover {
  transform: translateY(-8px);
  border-color: #CDA06C;
  box-shadow: 0 24px 52px rgba(24,50,74,.14);
}

.expertise-item:hover::before { transform: scale(1.05); }

.expertise-item span {
  position: relative;
  z-index: 2;
  max-width: calc(100% - 52px);
  color: #18324A;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 22px;
  font-weight: 400;
  line-height: 1.28;
}

/* STANDARDS */

.standards-section {
  position: relative;
  padding: 98px 0;
  background: #FFFFFF;
}

.standards-grid {
  display: grid;
  grid-template-columns: .78fr 1.22fr;
  gap: 78px;
  align-items: center;
}

.standards-heading {
  position: relative;
  padding: 34px 0 34px 34px;
  border-left: 3px solid #CDA06C;
}

.standards-heading::after {
  content: "ISO";
  position: absolute;
  right: -12px;
  bottom: -18px;
  color: rgba(24,50,74,.035);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 118px;
  font-weight: 700;
  letter-spacing: -5px;
  z-index: 0;
}

.standards-heading > * { position: relative; z-index: 1; }
.standards-heading h2 { font-size: clamp(38px, 4vw, 52px); }

.standards-heading p {
  max-width: 490px;
  margin-top: 16px;
  color: #6F7780;
  font-size: 16px;
  line-height: 1.72;
}

.standards-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.standard-item {
  min-height: 128px;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 24px 26px;
  background: linear-gradient(145deg, #FCF9F5, #F8F2EB);
  border: 1px solid #E4D6C8;
  border-radius: 8px;
  transition: transform .22s ease, border-color .22s ease, box-shadow .22s ease;
}

.standard-item::before {
  content: "";
  position: absolute;
  width: 70px;
  height: 70px;
  right: -22px;
  top: -22px;
  border: 1px solid rgba(205,160,108,.34);
  border-radius: 50%;
}

.standard-item:hover {
  transform: translateY(-4px);
  border-color: #CDA06C;
  box-shadow: 0 14px 32px rgba(24,50,74,.08);
}

.standard-item strong {
  margin-bottom: 5px;
  color: #AD8F6C;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 23px;
  font-weight: 400;
}

.standard-item span {
  color: #18324A;
  font-size: 14px;
  font-weight: 800;
}

/* CTA */

.services-page-cta {
  position: relative;
  overflow: hidden;
  padding: 76px 0;
  background:
    radial-gradient(circle at 88% 30%, rgba(205,160,108,.17), transparent 28%),
    linear-gradient(90deg, #0C1B27 0%, #18324A 100%);
  border-top: 3px solid #CDA06C;
}

.services-page-cta-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 55px;
}

.services-page-cta span { color: #DFC3A3; }
.services-page-cta h2 { max-width: 760px; color: #FFFFFF; font-size: clamp(32px, 3.8vw, 46px); }

/* RTL */

html[dir="rtl"] .services-statement {
  border-left: 1px solid rgba(205,160,108,.30);
  border-right: 4px solid #CDA06C;
}

html[dir="rtl"] .service-tags span {
  padding-left: 18px;
  padding-right: 0;
  margin-left: 13px;
  margin-right: 0;
}

html[dir="rtl"] .service-tags span::after { right: auto; left: 0; }
html[dir="rtl"] .standards-heading { padding-left: 0; padding-right: 34px; border-left: 0; border-right: 3px solid #CDA06C; }
html[dir="rtl"] .expertise-item::after { right: auto; left: 22px; content: "←"; }

/* RESPONSIVE */

@media (max-width: 1100px) {
  .services-intro-grid { grid-template-columns: 1fr 1fr; }
  .services-intro-content { grid-column: 1 / -1; max-width: 900px; }
  .expertise-list { grid-template-columns: repeat(2, 1fr); }
  .standards-grid { grid-template-columns: 1fr; gap: 45px; }
}

@media (max-width: 820px) {
  .services-page-hero::before { width: 62%; opacity: .48; }
  .services-intro-grid { grid-template-columns: 1fr; }
  .services-intro-visual { min-height: 400px; max-width: 680px; }
  .service-pillars-grid { grid-template-columns: 1fr; }
  .expertise-list { grid-template-columns: 1fr; max-width: 720px; }
  .standards-list { grid-template-columns: 1fr; }
  .services-page-cta-inner { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 600px) {
  .services-page-hero { min-height: 390px; }
  .services-page-hero::before { width: 100%; opacity: .22; }
  .services-page-hero-inner { padding: 64px 0; }
  .services-page-hero h1 { font-size: 44px; }
  .services-page-hero p { font-size: 16px; }
  .services-intro,
  .service-pillars,
  .expertise-section,
  .standards-section { padding: 70px 0; }
  .services-intro-visual { min-height: 330px; }
  .service-pillar { padding: 145px 24px 28px; min-height: 0; }
  .service-pillar h3 { font-size: 24px; }
  .expertise-item { min-height: 240px; }
  .standards-heading { padding-left: 20px; }
  .services-page-cta { background: linear-gradient(120deg, #0C1B27, #18324A); }
}

/* ==========================================
   CLICKABLE EXPERTISE CARDS
========================================== */

.expertise-item {
  color: inherit;
  text-decoration: none;
  cursor: pointer;
}

.expertise-item:focus-visible {
  outline: 3px solid #CDA06C;
  outline-offset: 4px;
}
/* ==========================================
   RESPONSIVE POLISH — SERVICES
========================================== */
@media (min-width: 681px) and (max-width: 980px) {
  .services-intro-grid { grid-template-columns: .9fr 1.1fr; gap: 34px; }
  .services-intro-content { grid-column: 1 / -1; }
  .service-pillars-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .expertise-list { grid-template-columns: repeat(2, minmax(0, 1fr)); max-width: none; }
  .service-pillar { min-height: 430px; }
  .expertise-item { min-height: 250px; }
}

@media (max-width: 680px) {
  .services-page-hero { min-height: 420px; }
  .services-page-hero::before {
    width: 100%;
    opacity: 1;
    background: linear-gradient(90deg, rgba(12,27,39,.97) 0%, rgba(24,50,74,.90) 55%, rgba(24,50,74,.76) 100%);
  }
  .services-page-hero-inner { max-width: 92%; padding: 58px 0; }
  .services-page-hero h1 { font-size: clamp(42px, 10vw, 54px); }

  .services-intro,
  .service-pillars,
  .expertise-section,
  .standards-section { padding: 66px 0 72px; }

  .services-intro-grid { gap: 28px; }
  .services-intro-visual { min-height: 300px; border-radius: 16px 105px 16px 16px; }
  .services-intro h2,
  .services-section-heading h2,
  .expertise-heading h2,
  .standards-heading h2 { font-size: clamp(34px, 8.5vw, 44px); }

  .service-pillars-grid,
  .expertise-list { gap: 16px; }
  .service-pillar { padding: 132px 20px 24px; border-radius: 16px; }
  .service-pillar::before { height: 118px; }
  .service-pillar h3 { font-size: 25px; }
  .service-tags { gap: 8px 12px; }

  .expertise-item {
    min-height: 215px;
    border-radius: 16px;
  }
  .expertise-item span { left: 20px; right: 64px; bottom: 23px; font-size: 24px; }
  html[dir="rtl"] .expertise-item span { right: 20px; left: 64px; }

  .standards-grid { gap: 28px; }
  .standards-heading { padding-left: 0; }
  html[dir="rtl"] .standards-heading { padding-right: 0; }
  .standard-item { padding: 20px 18px; }

  .services-page-cta { padding: 58px 0; }
  .services-page-cta h2 { font-size: 34px; }
}
