/* Homepage sequence follows the supplied content, using Bay Capital's visual language. */
.capabilities-section { padding-bottom: 78px; }
.capabilities-section .home-services-heading { align-items: end; margin-bottom: 36px; }
.capabilities-section .home-services-heading h2 { font-size: clamp(2rem,3vw,2.75rem); }
.capabilities-intro { max-width: 475px; }
.capabilities-intro p { font-size: 1rem; margin-bottom: 16px; }
.capabilities-intro .text-link { font-size: .9rem; }
.capabilities-grid { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 22px; }
.capability { padding: 28px 25px; border: 1px solid #e6ebf1; border-radius: 6px 30px 6px 6px; background: linear-gradient(145deg,#fff,#fbfcfd); box-shadow: 0 7px 24px #0b345608; position: relative; transition: transform .4s,box-shadow .4s; }
.capability:hover { transform: translateY(-5px); box-shadow: 0 14px 32px #0b345611; }
.capability > .icon { width: 37px; height: 40px; margin-bottom: 21px; }
.capability h3 { font-size: 1.08rem; margin-bottom: 12px; }
.capability p { font-size: .94rem; line-height: 1.75; }
.company-story { background: #fff; border-top: 1px solid #e9edf2; }
.company-story h2 span { color: #b78630; }
.company-story .copy p { font-size: 1rem; }
.company-values { display: flex; gap: 20px; border-top: 1px solid #e7ebf0; margin: 27px 0; padding-top: 23px; }
.company-values > div { flex: 1; display: flex; flex-direction: column; align-items: start; gap: 10px; }
.company-values .icon { width: 26px; height: 28px; }
.company-values span { font-size: .84rem; line-height: 1.55; font-weight: 600; }
.products-section { background: #082a44; color: white; position: relative; isolation: isolate; overflow: hidden; }
.products-backdrop { position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg,#082a44f5,#082a44c9),url('/assets/refinery.jpg') center/cover; opacity: .8; }
.products-section:after { content: ''; width: 800px; height: 800px; position: absolute; inset-inline-end: -500px; top: 15%; border: 1px solid #d9b26529; border-radius: 50%; z-index: -1; pointer-events: none; }
.products-heading { display: flex; align-items: end; justify-content: space-between; gap: 7%; }
.products-section .eyebrow { color: #efc879; }
.products-heading > p { max-width: 470px; color: #c4d2dd; margin: 0; font-size: 1rem; }
.products-heading h2 { font-size: clamp(2.15rem,3.4vw,3.1rem); }
.product-filters { display: flex; flex-wrap: wrap; gap: 11px; margin: 35px 0 26px; }
.product-filters button { background: #ffffff06; border: 1px solid #c5d5df46; color: #dce5ec; padding: 10px 20px; border-radius: 24px; font: inherit; font-size: .88rem; cursor: pointer; transition: background .25s,color .25s; min-height: 44px; }
.product-filters button:hover { background: #ffffff18; }
.product-filters button[aria-pressed=true] { background: #e5b65c; border-color: #e5b65c; color: #082944; }
.product-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 18px; }
.product-card { display: flex; align-items: center; gap: 18px; color: var(--navy); padding: 25px 23px; border: 1px solid #ffffff70; border-radius: 12px; background: linear-gradient(120deg,#fff,#f2f5f8); min-height: 118px; box-shadow: 0 10px 28px #00182d1f; transition: background .3s,transform .3s; }
.product-card[hidden] { display: none; }
.product-card:hover { transform: translateY(-4px); background: #fff; }
.product-symbol { flex: 0 0 39px; }
.product-symbol .icon { width: 32px; height: 35px; }
.product-card h3 { font-size: 1.1rem; margin-bottom: 8px; }
.product-card p { font-size: .83rem; line-height: 1.6; }
.product-plus { margin-inline-start: auto; color: #b88630; font-size: 1.35rem; }
.product-footnote { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-top: 24px; }
.product-footnote p,.product-count { color: #bdcdd8; font-size: .8rem; line-height: 1.7; }
.product-count { white-space: nowrap; }
/* A rising route, then a vertical timeline on smaller screens. */
.journey-section { background: linear-gradient(140deg,#f7f9fc,#f0f4f8); }
.journey-section .section-heading { margin-bottom: 45px; }
.journey-section .procurement-grid { align-items: start; gap: 27px; }
.journey-section .procurement-stage { margin-top: var(--step-lift); padding-top: 55px; }
.journey-section .procurement-card { height: auto; border-radius: 12px; padding: 25px 21px; min-height: 310px; position: relative; z-index: 2; }
.journey-section .procurement-card:before { display: none; }
.journey-section .procurement-card h3 { font-size: 1.2rem; }
.journey-section .process-step { margin-bottom: 20px; }
.journey-node { position: absolute; top: 0; inset-inline-start: 26px; width: 22px; height: 22px; border: 5px solid #f7f9fc; border-radius: 50%; background: var(--gold); box-shadow: 0 0 0 1px #c8984255; z-index: 3; transition: opacity .5s,box-shadow .5s; }
.process-cinema-ready [data-process-state=pending] .journey-node { opacity: .3; }
.process-cinema-ready [data-process-state=entering] .journey-node { box-shadow: 0 0 0 7px #d9aa4920; }
.journey-section .process-arrow { position: absolute; inset: auto; display: block; pointer-events: none; z-index: 1; }
.journey-section .process-arrow svg,html[dir=rtl] .journey-section .process-arrow svg { transform: none; }
.journey-section .arrow-track { opacity: .22; }
.journey-section .process-arrow path { stroke-width: 1.6; }
/* The map remains geographically oriented in both language layouts. */
.locations-section { background: #07263f; color: #fff; overflow: hidden; }
.locations-section .section-heading { max-width: 800px; }
.locations-section .eyebrow { color: #efc879; }
.locations-section h2 span { color: #efc879; }
.locations-section .section-heading p { color: #bdccd8; max-width: 710px; }
.locations-layout { display: grid; grid-template-columns: 1.8fr 1fr; gap: 6%; align-items: center; }
.regional-map-wrap { position: relative; direction: ltr; aspect-ratio: 820/500; min-width: 0; isolation: isolate; border: 1px solid #6c8a9e24; border-radius: 20px; background: radial-gradient(ellipse at 63% 45%,#103a55,#052136); overflow: hidden; }
.regional-map,.map-connection { position: absolute; inset: 0; width: 100%; height: 100%; }
.map-connection { pointer-events: none; fill: none; stroke: #edbe66; stroke-width: 1.7; }
.map-route-base { opacity: .35; }
.map-route-flow { stroke-dasharray: 4 9; animation: map-flow 6s linear infinite; }
@keyframes map-flow { to { stroke-dashoffset: -78; } }
.map-country { position: absolute; color: #9cb3c3; font-size: .62rem; letter-spacing: .1em; pointer-events: none; transform: translate(-50%,-50%); }
.map-saudi { left: 50%; top: 66%; }.map-iran { left: 79%; top: 29%; }.map-oman { left: 83%; top: 87%; }
.map-pin { position: absolute; width: 44px; height: 44px; padding: 0; border: 0; background: transparent; color: white; transform: translate(-50%,-50%); cursor: pointer; }
.pin-iraq { left: 50.49%; top: 27.2%; }.pin-dubai { left: 78.66%; top: 59.2%; }
.pin-point { position: absolute; width: 14px; height: 14px; border-radius: 50%; background: #efbe64; border: 3px solid #fff; left: 15px; top: 15px; box-shadow: 0 3px 12px #0005; }
.pin-pulse { position: absolute; border: 1px solid #edbe6680; inset: 7px; border-radius: 50%; animation: pin-breathe 3.2s ease-in-out infinite; }
.map-pin[aria-pressed=true] .pin-point { background: #fff; box-shadow: 0 0 0 6px #f2c67433,0 0 24px #f2c67466; }
.map-pin[aria-pressed=true] .pin-label { color: #f8d58f; }
.pin-label { position: absolute; top: 40px; left: 50%; transform: translateX(-50%); font: 700 1rem 'Manrope','Cairo',sans-serif; white-space: nowrap; background: #06243cd9; padding: 3px 11px; border-radius: 5px; }
@keyframes pin-breathe { 50% { transform: scale(1.35); opacity: .4; } }
.map-caption { position: absolute; bottom: 14px; left: 18px; right: 18px; text-align: left; color: #a4bac9; font-size: .68rem; }
.location-selectors { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.location-selectors button { border: 1px solid #a1bcc33a; background: #ffffff05; color: #fff; border-radius: 10px; padding: 20px 16px; font: inherit; text-align: start; cursor: pointer; display: flex; flex-direction: column; gap: 15px; transition: background .3s,border-color .3s; }
.location-selectors button[aria-pressed=true] { background: #d9ad4e12; border-color: #cfa24f; }
.location-selectors .icon { width: 25px; height: 28px; }
.location-selectors button > span { font-weight: 650; }
.location-selectors small { display: block; color: #afc4d3; font-size: .78rem; font-weight: 400; margin-top: 9px; line-height: 1.55; }
.location-details { padding-top: 28px; }
.location-details h3 { font-size: 1.2rem; margin-bottom: 15px; }
.location-details p { color: #bdcdd9; font-size: 1rem; }
.location-details .text-link { color: #f0cb87; margin-top: 24px; }
.location-details [hidden] { display: none; }
html[lang=ar] .map-country { font-size: .8rem; letter-spacing: 0; }
html[lang=ar] .pin-label { font-family: 'Cairo',sans-serif; }
@media(max-width:1200px) {
  .capability { padding: 25px 20px; }.capability p { font-size: .9rem; }
  .locations-layout { gap: 4%; grid-template-columns: 1.5fr 1fr; }
  .product-card { padding: 22px 18px; gap: 12px; }.product-symbol { flex-basis: 32px; }
}
@media(max-width:1100px) {
  .journey-section .procurement-grid { gap: 30px; }
  .journey-section .procurement-stage { margin-top: 0; padding-top: 0; padding-inline-start: 70px; }
  .journey-section .journey-node { top: 0; }
  .journey-section .procurement-card { min-height: 0; padding: 25px; }
  .journey-section .process-step { margin-bottom: 12px; }
  .journey-section .procurement-card > .icon { width: 32px; height: 35px; }
  .journey-section .procurement-card p { font-size: 1rem; }
}
@media(max-width:900px) {
  .capabilities-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .capabilities-intro { max-width: 360px; }.capabilities-section .home-services-heading { align-items: start; gap: 30px; }
  .products-heading { display: block; }.products-heading > p { margin-top: 25px; max-width: 680px; }
  .product-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .locations-layout { grid-template-columns: 1fr; gap: 32px; }.locations-copy { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; align-items: start; }.location-details { padding: 0; }
}
@media(max-width:580px) {
  .capabilities-section { padding-top: 13px; padding-bottom: 52px; }
  .capabilities-section .home-services-heading { display: block; margin-bottom: 27px; }
  .capabilities-section .home-services-heading h2 { font-size: 1.9rem; }
  .capabilities-intro { margin-top: 25px; max-width: none; }.capabilities-intro p { font-size: .95rem; }
  .capabilities-grid { gap: 14px; }.capability { padding: 23px 16px; border-radius: 5px 22px 5px 5px; }.capability > .icon { width: 29px; height: 32px; margin-bottom: 18px; }.capability h3 { font-size: 1rem; line-height: 1.45; }.capability p { font-size: .875rem; }
  .company-values { gap: 12px; }.company-values span { font-size: .78rem; }
  .products-heading h2 { font-size: 2rem; }.product-filters { gap: 8px; margin-top: 28px; }.product-filters button { padding: 9px 14px; font-size: .8rem; }
  .product-grid { grid-template-columns: 1fr; gap: 13px; }.product-card { min-height: 104px; padding: 23px; gap: 18px; }.product-card p { font-size: .9rem; }
  .product-footnote { align-items: start; }.product-footnote p { max-width: 230px; font-size: .75rem; }.product-count { font-size: .72rem; }
  .journey-section .procurement-stage { padding-inline-start: 58px; }.journey-section .procurement-card { padding: 23px 19px; }.journey-section .procurement-card p { font-size: .94rem; }.journey-section .procurement-card h3 { font-size: 1.15rem; }.journey-section .procurement-card > .icon { width: 27px; }
  .journey-section .journey-node { inset-inline-start: 26px; }
  .locations-copy { grid-template-columns: 1fr; gap: 26px; }.regional-map-wrap { aspect-ratio: 820/580; }.regional-map,.map-connection { height: 86.207%; }.pin-iraq { top: 23.45%; }.pin-dubai { top: 51.03%; }.map-saudi { top: 56.9%; }.map-iran { top: 25%; }.map-oman { top: 75%; }
  .map-country { font-size: .48rem; }.map-caption { font-size: .59rem; bottom: 12px; left: 12px; right: 12px; }.pin-label { font-size: .8rem; padding: 2px 8px; top: 36px; }.pin-point { width: 12px; height: 12px; left: 16px; top: 16px; }.pin-pulse { inset: 10px; }
  html[lang=ar] .map-country { font-size: .62rem; }
}
