/* Homepage: Sanfiqo as an IT and software development partner */
.it-hero {
  position: relative;
  overflow: hidden;
  padding: 10.5rem 0 5.4rem;
  background: radial-gradient(circle at 3% 3%, #e2f7f0 0, transparent 33%), #f9fcfb;
}
.it-hero::before {
  position: absolute;
  right: -22rem;
  top: -26rem;
  width: 44rem;
  height: 44rem;
  border: 1px solid #e1f1ed;
  border-radius: 50%;
  content: '';
}
.it-hero-grid { position: relative; display: grid; grid-template-columns: 1.04fr .96fr; align-items: center; gap: clamp(2.5rem, 5vw, 5rem); }
.it-hero-copy { max-width: 590px; }
.it-kicker { display: inline-flex; align-items: center; gap: .65rem; color: #167f7a; font: 800 .71rem Manrope, sans-serif; letter-spacing: .085em; text-transform: uppercase; }
.it-kicker span { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: #0ca79b; box-shadow: 0 0 0 5px #d9f3e9; }
.it-hero h1 { margin: 1.6rem 0 1.3rem; font-size: clamp(3.25rem, 5.2vw, 5.45rem); font-weight: 800; line-height: 1.065; letter-spacing: -.072em; }
.it-hero-copy > p { max-width: 540px; margin: 0; color: #516b73; font-size: 1.08rem; line-height: 1.78; }
.it-hero-actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 2rem; }
.hero-principles { display: grid; grid-template-columns: repeat(3, 1fr); gap: .75rem; max-width: 540px; margin-top: 3rem; padding-top: 1.25rem; border-top: 1px solid #d9e8e4; }
.hero-principles div { display: flex; flex-direction: column; gap: .55rem; }
.hero-principles b { color: #078e85; font: 800 .69rem Manrope, sans-serif; }
.hero-principles span { max-width: 125px; color: #58727a; font: 700 .73rem/1.45 Manrope, sans-serif; }

.systems-art { position: relative; min-height: 530px; overflow: hidden; border: 1px solid #d9e8e3; border-radius: 23px; background: #d8e9e5; box-shadow: 0 38px 70px -52px #0b5052; }
.hero-photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 56% center; }
.hero-photo-shade { position: absolute; inset: 0; background: linear-gradient(180deg, transparent 45%, rgba(7, 37, 44, .78) 100%); }
.hero-photo-card { position: absolute; right: 2rem; bottom: 2.4rem; left: 2rem; max-width: 420px; color: #fff; }
.hero-photo-card span { display: block; margin-bottom: .7rem; color: #b4f3e5; font: 800 .67rem Manrope, sans-serif; letter-spacing: .14em; text-transform: uppercase; }
.hero-photo-card strong { display: block; max-width: 390px; font: 800 clamp(1.5rem, 2.5vw, 2.1rem)/1.2 Manrope, sans-serif; letter-spacing: -.045em; }
.hero-photo-card small { display: block; margin-top: 1rem; color: #d8f1eb; font: 700 .7rem Manrope, sans-serif; letter-spacing: .04em; }
.photo-disclosure { position: absolute; top: 1rem; right: 1rem; padding: .45rem .65rem; border-radius: 6px; background: rgba(255, 255, 255, .9); color: #31565a; font: 700 .61rem Manrope, sans-serif; }

.capability-section { padding: 6.3rem 0 6.5rem; background: #fff; }
.editorial-heading { display: grid; grid-template-columns: 1.2fr .8fr; align-items: end; gap: 4rem; margin-bottom: 2.6rem; }
.editorial-heading h2, .industry-intro h2, .delivery-intro h2, .tech-heading h2 { margin: 0; font-size: clamp(2.25rem, 3.5vw, 3.25rem); font-weight: 800; line-height: 1.16; letter-spacing: -.055em; }
.editorial-heading > p { max-width: 390px; margin: 0 0 .15rem auto; color: var(--muted); font-size: .95rem; }
.capability-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.capability-card { position: relative; display: flex; flex-direction: column; min-height: 460px; padding: 1.8rem; border: 1px solid #d9e9e4; border-radius: 16px; background: #fbfefd; transition: transform .25s, box-shadow .25s, border-color .25s; }
.capability-card:hover { transform: translateY(-5px); border-color: #92d4c9; box-shadow: 0 25px 42px -30px #0b5b5b; }
.capability-card:nth-child(2) { background: #f4faf8; }
.capability-number { color: #587676; font: 800 .63rem Manrope, sans-serif; letter-spacing: .12em; }
.capability-icon { display: grid; place-items: center; width: 53px; height: 53px; margin: 2rem 0 1.5rem; border: 1px solid #bee5dc; border-radius: 13px; background: #e5f7f1; color: #087e78; }
.capability-icon svg { width: 25px; height: 25px; }
.capability-card h3 { max-width: 280px; margin: 0 0 .7rem; font-size: 1.33rem; font-weight: 800; line-height: 1.28; }
.capability-card p { margin: 0; color: #5d747b; font-size: .84rem; line-height: 1.65; }
.capability-card ul { display: grid; gap: .45rem; margin: 1.3rem 0 1.8rem; padding: 0; list-style: none; color: #49636b; font-size: .75rem; font-weight: 650; }
.capability-card li { display: flex; align-items: center; gap: .6rem; }
.capability-card li::before { width: 5px; height: 5px; border-radius: 50%; background: #17a999; content: ''; }
.capability-link { display: inline-flex; align-items: center; gap: .5rem; margin-top: auto; padding-top: 1rem; border-top: 1px solid #e1ede9; color: #087f7b; font: 800 .78rem Manrope, sans-serif; }
.capability-link svg { width: 15px; height: 15px; transition: transform .2s; }
.capability-card:hover .capability-link svg { transform: translateX(4px); }

.industry-section { padding: 6.2rem 0; background: #f0f8f5; }
.industry-layout { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(3rem, 8vw, 7rem); align-items: center; }
.industry-intro h2 { max-width: 430px; }
.industry-intro > p { max-width: 390px; margin: 1.25rem 0 1.4rem; color: var(--muted); font-size: .94rem; }
.text-link { display: inline-flex; align-items: center; gap: .45rem; color: #087f7b; font: 800 .84rem Manrope, sans-serif; }
.text-link svg { width: 17px; height: 17px; }
.industry-list { border-top: 1px solid #cfe1db; }
.industry-row { display: flex; align-items: center; gap: 1.1rem; min-height: 113px; padding: 1.25rem .4rem; border-bottom: 1px solid #cfe1db; transition: padding .2s, background .2s; }
.industry-row:hover { padding-left: .9rem; background: #e8f5ef; }
.industry-row-icon { display: grid; place-items: center; width: 48px; height: 48px; flex: none; border: 1px solid #c7e7dd; border-radius: 12px; background: #fff; color: #0a9085; }
.industry-row-icon svg { width: 22px; height: 22px; }
.industry-row > span:nth-child(2) { display: grid; gap: .3rem; }
.industry-row strong { color: var(--ink); font: 800 1.02rem Manrope, sans-serif; }
.industry-row small { color: #627b80; font-size: .75rem; line-height: 1.45; }
.industry-arrow { display: grid; place-items: center; width: 18px; height: 18px; flex: none; margin-left: auto; color: #0c8f87; }
.industry-arrow svg { width: 18px; height: 18px; }

.delivery-section { padding: 6.4rem 0; background: #fff; }
.delivery-layout { display: grid; grid-template-columns: .85fr 1.15fr; gap: clamp(3rem, 9vw, 8rem); align-items: start; }
.delivery-intro { position: sticky; top: 110px; }
.delivery-intro h2 { max-width: 430px; }
.delivery-intro p { max-width: 390px; margin: 1.25rem 0 1.75rem; color: var(--muted); font-size: .94rem; }
.delivery-steps { border-top: 1px solid #d7e7e3; }
.delivery-steps > div { display: grid; grid-template-columns: 54px 1fr; gap: 1.5rem; padding: 1.9rem 0; border-bottom: 1px solid #d7e7e3; }
.delivery-steps > div > span { color: #0b9e93; font: 800 1.02rem Manrope, sans-serif; }
.delivery-steps h3 { margin: 0 0 .55rem; font-size: 1.2rem; font-weight: 800; }
.delivery-steps p { max-width: 440px; margin: 0; color: var(--muted); font-size: .88rem; }

.tech-section { padding: 4.7rem 0 5.1rem; border-top: 1px solid #e5efec; background: #f8fbfa; text-align: center; }
.tech-heading h2 { font-size: clamp(1.8rem, 2.8vw, 2.5rem); }
.tech-heading p { margin: .75rem 0 0; color: var(--muted); font-size: .9rem; }
.tech-list { display: flex; flex-wrap: wrap; justify-content: center; gap: .65rem; max-width: 900px; margin: 2.3rem auto 0; }
.tech-list span { padding: .8rem 1.2rem; border: 1px solid #dceae5; border-radius: 9px; background: #fff; color: #47636b; font: 750 .78rem Manrope, sans-serif; }

.home-cta { padding: 5rem 0 6rem; background: #fff; }
.cta-panel { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 2rem; overflow: hidden; padding: 3.3rem; border-radius: 18px; background: #10353d; color: #fff; }
.cta-panel::before { position: absolute; right: -130px; bottom: -250px; width: 500px; height: 500px; border: 1px solid rgba(147, 233, 217, .24); border-radius: 50%; box-shadow: 0 0 0 70px rgba(147, 233, 217, .035), 0 0 0 150px rgba(147, 233, 217, .025); content: ''; }
.cta-panel > * { position: relative; z-index: 1; }
.cta-panel .eyebrow { color: #8de5d5; }
.cta-panel h2 { max-width: 570px; margin: 0; color: #fff; font-size: clamp(2rem, 3vw, 3rem); font-weight: 800; line-height: 1.16; }
.cta-panel p { max-width: 560px; margin: .9rem 0 0; color: #bbd0d1; font-size: .9rem; }
.cta-panel .btn { flex: none; background: #fff; color: #0c474b; }
.cta-panel .btn:hover { background: #def7ef; }

/* Quiet motion gives the page depth without distracting from the content. */
@keyframes heroAppear { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }
@keyframes artAppear { from { opacity: 0; transform: translateY(26px) scale(.98); } to { opacity: 1; transform: translateY(0) scale(1); } }
@media (prefers-reduced-motion: no-preference) {
  .it-hero-copy > * { animation: heroAppear .8s cubic-bezier(.2, .7, .2, 1) backwards; }
  .it-hero-copy > :nth-child(2) { animation-delay: 90ms; }
  .it-hero-copy > :nth-child(3) { animation-delay: 160ms; }
  .it-hero-copy > :nth-child(4) { animation-delay: 230ms; }
  .it-hero-copy > :nth-child(5) { animation-delay: 300ms; }
  .systems-art { animation: artAppear .9s cubic-bezier(.2, .7, .2, 1) 180ms backwards; }
  .hero-photo { animation: photoDrift 14s ease-in-out infinite alternate; }
  .capability-grid > :nth-child(2), .industry-list > :nth-child(2), .delivery-steps > :nth-child(2) { --reveal-delay: 90ms; }
  .capability-grid > :nth-child(3), .industry-list > :nth-child(3), .delivery-steps > :nth-child(3) { --reveal-delay: 180ms; }
  .capability-icon { transition: transform .25s, background .25s; }
  .capability-card:hover .capability-icon { transform: translateY(-3px); background: #d9f4e9; }
  .industry-arrow svg { transition: transform .2s; }
  .industry-row:hover .industry-arrow svg { transform: translateX(4px); }
}

@media (max-width: 1050px) {
  .it-hero-grid { gap: 2rem; }
  .it-hero h1 { font-size: clamp(3rem, 5vw, 4.6rem); }
  .systems-art { min-height: 490px; }
  .capability-card { padding: 1.4rem; }
}
@media (max-width: 820px) {
  .it-hero { padding: 9rem 0 4rem; }
  .it-hero-grid { grid-template-columns: 1fr; gap: 3rem; }
  .it-hero-copy { max-width: 700px; }
  .systems-art { max-width: 660px; min-height: 490px; }
  .editorial-heading { grid-template-columns: 1fr; gap: 1rem; }
  .editorial-heading > p { max-width: 640px; margin: 0; }
  .capability-grid { grid-template-columns: 1fr 1fr; }
  .capability-card:last-child { grid-column: 1 / -1; min-height: 330px; }
  .industry-layout, .delivery-layout { grid-template-columns: 1fr; gap: 2.6rem; }
  .delivery-intro { position: static; }
}
@media (max-width: 640px) {
  .it-hero { padding: 7.8rem 0 3.3rem; }
  .it-hero h1 { font-size: clamp(2.75rem, 11vw, 4rem); }
  .it-hero-copy > p { font-size: .98rem; }
  .it-hero-actions .btn { width: 100%; }
  .hero-principles { margin-top: 2rem; }
  .hero-principles span { font-size: .66rem; }
  .systems-art { min-height: 490px; border-radius: 16px; }
  .hero-photo-card { right: 1.4rem; bottom: 1.6rem; left: 1.4rem; }
  .capability-section, .industry-section, .delivery-section { padding: 4.3rem 0; }
  .editorial-heading { margin-bottom: 2rem; }
  .capability-grid { grid-template-columns: 1fr; }
  .capability-card, .capability-card:last-child { grid-column: auto; min-height: 390px; }
  .industry-row { min-height: 100px; }
  .delivery-steps > div { grid-template-columns: 36px 1fr; gap: .9rem; }
  .tech-section { padding: 4rem 0; }
  .home-cta { padding: 3.5rem 0 4rem; }
  .cta-panel { display: block; padding: 2.2rem 1.5rem; }
  .cta-panel .btn { margin-top: 1.5rem; }
}
@media (max-width: 390px) {
  .it-kicker { font-size: .62rem; }
  .hero-photo-card strong { font-size: 1.5rem; }
}
@keyframes photoDrift { from { transform: scale(1); } to { transform: scale(1.045); } }

.tech-section .text-link { margin-top: 1.6rem; }

.tech-list span { display: inline-flex; align-items: center; gap: .5rem; }
.tech-list span img { flex: none; width: 18px; height: 18px; object-fit: contain; }

/* ===== Homepage hero slider ===== */
.hero-slider { position: relative; overflow: hidden; background: #06242b; color: #fff; }
.hs-viewport { position: relative; min-height: clamp(620px, 86vh, 800px); }
.hs-slide { position: absolute; inset: 0; z-index: 0; visibility: hidden; opacity: 0; transition: opacity .9s ease, visibility .9s; }
.hs-slide.is-active { z-index: 1; visibility: visible; opacity: 1; }
.hs-bg { position: absolute; inset: 0; overflow: hidden; }
.hs-bg img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transform: scale(1.03); transition: transform 9s linear; }
.hs-slide.is-active .hs-bg img { transform: scale(1.12); }
.hs-bg::after { position: absolute; inset: 0; content: ''; background: linear-gradient(90deg, rgba(4, 28, 34, .93) 0%, rgba(4, 28, 34, .78) 42%, rgba(4, 28, 34, .3) 100%), linear-gradient(0deg, rgba(4, 28, 34, .75) 0%, transparent 38%); }
.hs-content { position: relative; display: flex; align-items: center; height: 100%; padding-top: 8.6rem; padding-bottom: 7rem; }
.hs-copy { width: 100%; min-width: 0; max-width: 660px; }
.hs-kicker { display: inline-flex; align-items: center; gap: .65rem; color: #7ee7d6; font: 800 .72rem Manrope, sans-serif; letter-spacing: .12em; text-transform: uppercase; }
.hs-kicker i { width: 8px; height: 8px; border-radius: 50%; background: #2dd4bf; box-shadow: 0 0 0 5px rgba(45, 212, 191, .2); }
.hs-title { margin: 1.3rem 0 1.2rem; color: #fff; font: 800 clamp(2.7rem, 5.3vw, 5rem)/1.06 Manrope, sans-serif; letter-spacing: -.065em; }
.hs-title span { color: #5eead4; }
.hs-copy > p { max-width: 560px; margin: 0; color: #cfe6e2; font-size: 1.1rem; line-height: 1.72; }
.hs-actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 2.1rem; }
.btn-light { border: 1px solid rgba(255, 255, 255, .45); background: rgba(255, 255, 255, .08); color: #fff; backdrop-filter: blur(6px); }
.btn-light:hover { border-color: #fff; background: rgba(255, 255, 255, .18); color: #fff; }
.hs-credit { position: absolute; z-index: 2; top: 6rem; right: 1.2rem; padding: .35rem .6rem; border-radius: 6px; background: rgba(255, 255, 255, .85); color: #31565a; font: 700 .6rem Manrope, sans-serif; }

/* portrait slide */
.hs-slide--portrait { background: radial-gradient(circle at 78% 40%, #0e5a5a 0, transparent 46%), linear-gradient(120deg, #06242b, #0a3a40); }
.hs-split { justify-content: space-between; gap: 3rem; }
.hs-portrait { position: relative; flex: none; width: clamp(280px, 30vw, 420px); aspect-ratio: 1; margin: 0; overflow: hidden; border: 1px solid rgba(255, 255, 255, .25); border-radius: 28px; box-shadow: 0 40px 80px -30px rgba(0, 0, 0, .7); }
.hs-portrait img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 28%; }
.hs-portrait figcaption { position: absolute; right: 0; bottom: 0; left: 0; padding: 2.5rem 1.2rem 1rem; background: linear-gradient(transparent, rgba(4, 28, 34, .85)); font-size: .82rem; color: #d8f1eb; }
.hs-portrait figcaption strong { color: #5eead4; font: 800 1.3rem Manrope, sans-serif; }

/* entrance animation for the active slide */
@media (prefers-reduced-motion: no-preference) {
  .hs-slide .hs-copy > *, .hs-slide .hs-portrait { opacity: 0; transform: translateY(24px); }
  .hs-slide.is-active .hs-copy > *, .hs-slide.is-active .hs-portrait { opacity: 1; transform: none; transition: opacity .8s cubic-bezier(.2, .7, .2, 1), transform .8s cubic-bezier(.2, .7, .2, 1); }
  .hs-slide.is-active .hs-copy > :nth-child(1) { transition-delay: .25s; }
  .hs-slide.is-active .hs-copy > :nth-child(2) { transition-delay: .35s; }
  .hs-slide.is-active .hs-copy > :nth-child(3) { transition-delay: .45s; }
  .hs-slide.is-active .hs-copy > :nth-child(4) { transition-delay: .55s; }
  .hs-slide.is-active .hs-portrait { transition-delay: .4s; }
}

/* controls */
.hs-controls { position: absolute; z-index: 5; right: 0; bottom: 2rem; left: 0; display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.hs-dots { display: flex; gap: .5rem; }
.hs-dot { position: relative; width: 52px; height: 28px; padding: 0; border: 0; background: none; cursor: pointer; }
.hs-dot::before, .hs-dot::after { position: absolute; top: 12px; left: 0; height: 3px; border-radius: 3px; content: ''; }
.hs-dot::before { width: 100%; background: rgba(255, 255, 255, .3); }
.hs-dot::after { width: 0; background: #2dd4bf; }
.hs-dot.is-active::after { width: 100%; animation: hsFill var(--hs-delay, 7s) linear; }
.hs-slider-paused .hs-dot.is-active::after, .hs-static .hs-dot.is-active::after { animation: none; }
@keyframes hsFill { from { width: 0; } to { width: 100%; } }
.hs-buttons { display: flex; align-items: center; gap: .55rem; }
.hs-count { margin-right: .6rem; color: #b4d7d2; font: 800 .78rem Manrope, sans-serif; letter-spacing: .08em; }
.hs-btn { display: grid; place-items: center; width: 44px; height: 44px; padding: 0; border: 1px solid rgba(255, 255, 255, .35); border-radius: 50%; background: rgba(255, 255, 255, .08); color: #fff; cursor: pointer; backdrop-filter: blur(6px); transition: background .2s, border-color .2s; }
.hs-btn:hover, .hs-btn:focus-visible { border-color: #fff; background: rgba(255, 255, 255, .22); }
.hs-btn svg { width: 18px; height: 18px; }
.hs-btn[data-hs-prev] svg { transform: scaleX(-1); }

/* strip under the slider */
.hs-strip { border-bottom: 1px solid #dceae5; background: #fff; }
.hs-strip-grid { display: grid; grid-template-columns: repeat(3, 1fr); }
.hs-strip-grid div { display: flex; flex-direction: column; gap: .15rem; padding: 1.5rem 1.5rem 1.5rem 0; }
.hs-strip-grid div + div { padding-left: 1.5rem; border-left: 1px solid #e3eeea; }
.hs-strip-grid b { color: #087f7b; font: 800 1.25rem Manrope, sans-serif; letter-spacing: -.03em; }
.hs-strip-grid span { color: #58727a; font-size: .82rem; }

@media (max-width: 900px) {
  .hs-portrait { display: none; }
  .hs-bg::after { background: linear-gradient(0deg, rgba(4, 28, 34, .94) 0%, rgba(4, 28, 34, .72) 55%, rgba(4, 28, 34, .5) 100%); }
  .hs-content { align-items: flex-end; }
  .hs-credit { display: none; }
}
@media (max-width: 640px) {
  .hs-viewport { min-height: 640px; }
  .hs-content { padding-top: 7.4rem; padding-bottom: 6.2rem; }
  .hs-title { font-size: clamp(2.35rem, 10vw, 3.3rem); }
  .hs-copy > p { font-size: .98rem; }
  .hs-actions .btn { width: 100%; }
  .hs-count, .hs-btn[data-hs-prev], .hs-btn[data-hs-next] { display: none; }
  .hs-dot { width: 36px; }
  .hs-strip-grid { grid-template-columns: 1fr; }
  .hs-strip-grid div, .hs-strip-grid div + div { padding: 1rem 0; border-left: 0; }
  .hs-strip-grid div + div { border-top: 1px solid #e3eeea; }
}
@media (prefers-reduced-motion: reduce) {
  .hs-slide, .hs-bg img { transition: none; }
  .hs-slide.is-active .hs-bg img { transform: none; }
}

.more-services { display: flex; flex-wrap: wrap; align-items: center; gap: .6rem .5rem; margin: 2rem 0 0; color: #58727a; font-size: .88rem; }
.more-services b { margin-right: .4rem; color: #102c35; font: 800 .8rem Manrope, sans-serif; }
.more-services a { padding: .42rem .85rem; border: 1px solid #d5e8e3; border-radius: 99px; background: #fff; color: #167f7a; font: 700 .78rem Manrope, sans-serif; transition: border-color .2s, background .2s; }
.more-services a:hover { border-color: #0ca79b; background: #eaf8f4; }
