/* Kashihwi Investment Limited */

:root {
  --k-navy: #13295B;
  --k-navy-deep: #0C1B3F;
  --k-orange: #F26B1D;
  --k-orange-light: #FF8A3D;
  --k-orange-text: #C24A08; /* orange that stays readable as small text on white */
  --k-slate: #5B6780;
  --k-ink: #1D2740;
  --k-tint: #F3F6FB;
  --k-line: #E2E7F0;
  --k-radius: 14px;
  --k-heading: 'Montserrat', system-ui, sans-serif;
  --k-shadow: 0 18px 44px -24px rgba(19, 41, 91, .34);
  --nav-h: 68px;
  --action-h: 64px;

  --bs-body-font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --bs-body-color: var(--k-ink);
  --bs-link-color-rgb: 19, 41, 91;
  --bs-link-hover-color-rgb: 194, 74, 8;
  --bs-primary: #13295B;
  --bs-primary-rgb: 19, 41, 91;
}

@media (min-width: 992px) {
  :root { --nav-h: 88px; }
}

html { scroll-padding-top: calc(var(--nav-h) + 16px); }
body { overflow-x: clip; padding-bottom: calc(var(--action-h) + env(safe-area-inset-bottom)); background: #fff; }
@media (min-width: 992px) { body { padding-bottom: 0; } }

h1, h2, h3 { font-family: var(--k-heading); color: var(--k-navy); }
img { max-width: 100%; height: auto; }
a { text-decoration: none; }
:focus-visible { outline: 3px solid var(--k-orange); outline-offset: 2px; }
.svc-detail__title:focus, .form-success:focus { outline: none; }

.skip-link { position: absolute; left: 12px; top: -60px; z-index: 2000; padding: .6rem 1rem; background: var(--k-navy); color: #fff; border-radius: 8px; }
.skip-link:focus { top: 12px; color: #fff; }

/* Buttons */
.btn { --bs-btn-font-family: var(--k-heading); --bs-btn-font-weight: 700; --bs-btn-font-size: .95rem; --bs-btn-border-radius: 8px; display: inline-flex; align-items: center; justify-content: center; gap: .55rem; min-height: 54px; padding: .8rem 1.6rem; transition: background-color .2s, color .2s, border-color .2s, transform .2s, box-shadow .2s; }
.btn .bi-arrow-right { transition: transform .2s; }
.btn:hover .bi-arrow-right { transform: translateX(4px); }
.btn-k { --bs-btn-bg: var(--k-orange); --bs-btn-color: var(--k-navy-deep); --bs-btn-border-color: var(--k-orange); --bs-btn-hover-bg: var(--k-orange-light); --bs-btn-hover-color: var(--k-navy-deep); --bs-btn-hover-border-color: var(--k-orange-light); --bs-btn-active-bg: var(--k-orange); --bs-btn-active-color: var(--k-navy-deep); --bs-btn-active-border-color: var(--k-orange); --bs-btn-disabled-bg: var(--k-orange); --bs-btn-disabled-border-color: var(--k-orange); --bs-btn-disabled-color: var(--k-navy-deep); }
.btn-k:hover { box-shadow: 0 12px 26px -12px rgba(242, 107, 29, .75); }
.btn-k--sm { min-height: 46px; padding: .5rem 1.25rem; --bs-btn-font-size: .875rem; }
.btn-k-outline { --bs-btn-color: var(--k-navy); --bs-btn-border-color: var(--k-navy); --bs-btn-border-width: 2px; --bs-btn-hover-bg: var(--k-navy); --bs-btn-hover-border-color: var(--k-navy); --bs-btn-hover-color: #fff; --bs-btn-active-bg: var(--k-navy); --bs-btn-active-border-color: var(--k-navy); --bs-btn-active-color: #fff; }
.btn-k-ghost { --bs-btn-color: #fff; --bs-btn-border-color: rgba(255, 255, 255, .45); --bs-btn-border-width: 2px; --bs-btn-hover-bg: #fff; --bs-btn-hover-border-color: #fff; --bs-btn-hover-color: var(--k-navy); --bs-btn-active-bg: #fff; --bs-btn-active-border-color: #fff; --bs-btn-active-color: var(--k-navy); }

.link-arrow { display: inline-flex; align-items: center; gap: .5rem; min-height: 44px; font-family: var(--k-heading); font-weight: 700; color: var(--k-orange-text); }
.link-arrow i { transition: transform .2s; }
.link-arrow:hover i { transform: translateX(4px); }

/* Header */
.site-nav { background: rgba(255, 255, 255, .96); -webkit-backdrop-filter: saturate(180%) blur(12px); backdrop-filter: saturate(180%) blur(12px); transition: box-shadow .25s; z-index: 1030; }
.site-nav.is-scrolled { box-shadow: 0 8px 26px -18px rgba(19, 41, 91, .55); }
.site-nav nav { height: var(--nav-h); }
.site-logo img { display: block; width: auto; height: 46px; }
@media (min-width: 992px) { .site-logo img { height: 54px; } }

.site-links { list-style: none; gap: 2rem; margin: 0; padding: 0; }
.site-links a { position: relative; display: block; padding: .5rem 0; font-family: var(--k-heading); font-weight: 600; font-size: .92rem; color: var(--k-navy); }
.site-links a::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: var(--k-orange); transform: scaleX(0) skewX(-30deg); transform-origin: left; transition: transform .25s; }
.site-links a:hover::after, .site-links a.active::after { transform: scaleX(1) skewX(-30deg); }
.nav-phone { display: inline-flex; gap: .5rem; align-items: center; font-weight: 600; font-size: .9rem; color: var(--k-navy); white-space: nowrap; }
.nav-phone i { color: var(--k-orange-text); }
@media (max-width: 1199.98px) { .nav-phone { display: none; } .site-links { gap: 1.5rem; } }

.nav-toggle { display: inline-flex; flex-direction: column; justify-content: center; align-items: flex-end; gap: 7px; width: 48px; height: 48px; padding: 0 8px; margin-right: -8px; background: none; border: 0; }
.nav-toggle span { display: block; width: 28px; height: 3px; background: var(--k-navy); border-radius: 2px; transform: skewX(-30deg); }
.nav-toggle span:last-child { width: 19px; background: var(--k-orange); }

/* Mobile menu */
.mobile-menu { --bs-offcanvas-width: min(100vw, 430px); --bs-offcanvas-bg: var(--k-navy); --bs-offcanvas-color: #fff; display: flex; flex-direction: column; background-image: linear-gradient(115deg, transparent 72%, rgba(242, 107, 29, .95) 72% 74%, rgba(255, 255, 255, .05) 74%); padding: max(1rem, env(safe-area-inset-top)) 1.5rem max(1.5rem, env(safe-area-inset-bottom)); overflow-y: auto; }
.mobile-menu__top { display: flex; justify-content: space-between; align-items: center; min-height: 52px; }
.mobile-menu__close { width: 48px; height: 48px; margin-right: -8px; color: #fff; font-size: 1.3rem; background: none; border: 0; }
.mobile-menu__links { display: flex; flex-direction: column; margin: auto 0; padding: 2rem 0; }
.mobile-menu__links a { display: flex; align-items: baseline; gap: 1rem; padding: .85rem 0; color: #fff; font-family: var(--k-heading); font-weight: 700; font-size: 1.75rem; line-height: 1.2; }
.mobile-menu__links a span { min-width: 1.75rem; color: var(--k-orange-light); font-size: .85rem; letter-spacing: .08em; }
.mobile-menu__links a.active { color: var(--k-orange-light); }
.mobile-menu__foot { color: rgba(255, 255, 255, .75); font-size: .9rem; }
.mobile-menu__phone { display: flex; gap: .55rem; justify-content: center; align-items: center; min-height: 48px; margin-top: .5rem; color: #fff; font-weight: 600; }
.mobile-menu__foot p { margin: 0; text-align: center; }

/* Hero */
.hero { position: relative; overflow: hidden; background: #fff; }
.hero__inner { position: relative; z-index: 2; }
.hero__copy { padding: 2.5rem 0 2.25rem; }
.hero__eyebrow, .sec-eyebrow, .page-hero__eyebrow, .pillars__banner { font-family: var(--k-heading); font-weight: 700; font-size: .78rem; letter-spacing: .2em; text-transform: uppercase; }
.hero__eyebrow { color: var(--k-orange-text); margin-bottom: 1rem; }
.hero h1 { font-weight: 800; font-size: clamp(2.7rem, 12vw, 4rem); line-height: 1.04; letter-spacing: -.02em; margin-bottom: 1.25rem; }
.hero h1 em { font-style: normal; color: var(--k-orange); }
.hero__lead { max-width: 33rem; margin-bottom: 1.75rem; color: var(--k-slate); font-size: 1.08rem; line-height: 1.65; }

.hero__visual { position: relative; order: 2; height: min(74vw, 520px); background: var(--k-navy); clip-path: polygon(0 11%, 100% 0, 100% 100%, 0 100%); }
.hero { display: flex; flex-direction: column; }
.hero__inner { order: 1; }
.hero__collage { display: grid; grid-template-columns: 1fr 1fr; grid-template-rows: 1fr 1fr; gap: 5px; height: 100%; }
.hero__collage img { width: 100%; height: 100%; object-fit: cover; min-height: 0; }
.hero__collage img:nth-child(3) { object-position: 72% 50%; }
.hero__collage img:nth-child(4) { object-position: 62% 50%; }

@media (min-width: 992px) {
  .hero { display: block; min-height: clamp(540px, calc(100svh - var(--nav-h) - 215px), 720px); }
  .hero__inner { display: flex; align-items: center; min-height: inherit; }
  .hero__copy { width: 50%; max-width: 590px; padding: 3.5rem 0; }
  .hero h1 { font-size: clamp(3.5rem, 5.7vw, 5.5rem); }
  .hero__visual { position: absolute; inset: 0 0 0 auto; width: 56%; height: auto; background: none; clip-path: none; }
  .hero__visual::before, .hero__visual::after { content: ''; position: absolute; inset: 0; z-index: 1; }
  .hero__visual::before { background: var(--k-orange); clip-path: polygon(14% 0, 17% 0, 3% 100%, 0 100%); }
  .hero__visual::after { background: var(--k-navy); clip-path: polygon(17% 0, 24% 0, 10% 100%, 3% 100%); }
  .hero__collage { position: absolute; inset: 0; background: var(--k-navy); clip-path: polygon(24% 0, 100% 0, 100% 100%, 10% 100%); grid-template-columns: 1.1fr 1fr; }
}

.pillars { background: var(--k-navy); color: #fff; padding: 2.25rem 0 2.5rem; }
.pillars__banner { display: none; color: var(--k-orange-light); margin-bottom: 1.5rem; }
.pillars__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem 1.25rem; }
.pillar { display: block; color: #fff; }
.pillar:hover { color: #fff; }
.pillar h2 { color: #fff; font-size: 1rem; font-weight: 700; line-height: 1.3; margin: .9rem 0 .35rem; }
.pillar p { color: rgba(255, 255, 255, .72); font-size: .85rem; line-height: 1.5; margin: 0; }
.pillar .icon-tile { transition: transform .25s; }
.pillar:hover .icon-tile { transform: translateY(-3px) rotate(-4deg); }
@media (min-width: 768px) {
  .pillars { padding: 2.25rem 0 2.75rem; }
  .pillars__banner { display: block; }
  .pillars__grid { grid-template-columns: repeat(4, 1fr); gap: 0; }
  .pillar { padding: 1.5rem 1.5rem 0 0; border-top: 1px solid rgba(255, 255, 255, .2); margin-right: 1.5rem; }
  .pillar:last-child { margin-right: 0; }
  .pillar h2 { font-size: 1.05rem; }
}

.icon-tile { display: inline-flex; align-items: center; justify-content: center; flex: none; width: 50px; height: 50px; border-radius: 12px; background: var(--k-orange); color: #fff; font-size: 1.4rem; }
.icon-tile--sm { width: 44px; height: 44px; border-radius: 10px; font-size: 1.15rem; }

/* Sections */
.section { padding: clamp(3.75rem, 8vw, 7rem) 0; }
.section--compact { padding: clamp(2.5rem, 5vw, 4.5rem) 0; }
.section--tint { background: var(--k-tint); }
.section--navy { background: var(--k-navy); color: #fff; }

.sec-head { display: flex; align-items: center; gap: .85rem; margin-bottom: 1.5rem; }
.sec-num { flex: none; font-family: var(--k-heading); font-weight: 800; font-size: clamp(2.5rem, 5vw, 3.5rem); line-height: 1; color: var(--k-orange); }
.sec-slash { flex: none; width: 4px; height: 3.25rem; background: var(--k-orange); transform: skewX(-16deg); }
.sec-eyebrow { color: var(--k-orange-text); margin: 0 0 .25rem; }
.sec-title { font-weight: 800; font-size: clamp(1.6rem, 3.6vw, 2.5rem); line-height: 1.14; letter-spacing: -.01em; margin: 0; }
.sec-head--dark .sec-eyebrow { color: var(--k-orange-light); }
.sec-head--dark .sec-title { color: #fff; }

.section-lead { color: var(--k-slate); font-size: 1.15rem; line-height: 1.65; }
.section-lead strong { color: var(--k-navy); font-weight: 700; }
.section-copy { line-height: 1.75; max-width: 40rem; }
.section-copy--narrow { max-width: 44rem; }
.section--navy .section-copy { color: rgba(255, 255, 255, .82); margin: 0; }

.about-visual { position: relative; padding-bottom: 3.5rem; }
.about-visual > img { display: block; width: 100%; aspect-ratio: 5 / 4; object-fit: cover; object-position: 50% 62%; border-radius: var(--k-radius); }
.fact-pair { position: absolute; left: 1rem; right: 1rem; bottom: 0; display: grid; grid-template-columns: 1fr 1fr; gap: .75rem; }
.fact { padding: 1.1rem 1.15rem; border-radius: var(--k-radius); box-shadow: var(--k-shadow); }
.fact strong { display: block; font-family: var(--k-heading); font-size: 1.9rem; font-weight: 800; line-height: 1.1; }
.fact span { font-size: .84rem; line-height: 1.35; display: block; margin-top: .2rem; }
.fact--navy { background: var(--k-navy); color: #fff; }
.fact--navy strong { color: var(--k-orange-light); }
.fact--orange { background: var(--k-orange); color: var(--k-navy-deep); }

/* Service cards */
.snap-row { display: grid; grid-auto-flow: column; grid-auto-columns: 80%; gap: 1rem; margin-inline: calc(var(--bs-gutter-x, 1.5rem) * -.5); padding: .25rem calc(var(--bs-gutter-x, 1.5rem) * .5) 1rem; scroll-padding-inline: calc(var(--bs-gutter-x, 1.5rem) * .5); overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
.snap-row::-webkit-scrollbar { display: none; }
.snap-row > * { scroll-snap-align: start; }
@media (min-width: 768px) {
  .snap-row { grid-auto-flow: row; grid-template-columns: 1fr 1fr; gap: 1.5rem; margin: 0; padding: 0; overflow: visible; }
}
@media (min-width: 1200px) { .snap-row { grid-template-columns: repeat(4, 1fr); } }

.svc-card { display: flex; flex-direction: column; overflow: hidden; background: #fff; border: 1px solid var(--k-line); border-radius: var(--k-radius); color: var(--k-ink); transition: transform .28s, box-shadow .28s; }
.svc-card:hover { transform: translateY(-6px); box-shadow: var(--k-shadow); color: var(--k-ink); }
.svc-card__media { position: relative; aspect-ratio: 16 / 10; overflow: hidden; background: #fff; }
.svc-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.svc-card:hover .svc-card__media img { transform: scale(1.05); }
.svc-card__body { display: flex; flex-direction: column; flex: 1; padding: 1.25rem 1.25rem 1.35rem; }
.svc-card__body h3 { font-size: 1.1rem; font-weight: 700; margin-bottom: .5rem; }
.svc-card__body p { flex: 1; font-size: .92rem; line-height: 1.6; color: var(--k-slate); margin-bottom: 1rem; }
.svc-card__more { font-family: var(--k-heading); font-size: .88rem; font-weight: 700; color: var(--k-orange-text); }
.num-tab { position: absolute; top: 0; left: 0; z-index: 1; padding: .45rem 1.45rem .45rem .85rem; background: var(--k-orange); color: var(--k-navy-deep); font-family: var(--k-heading); font-weight: 800; clip-path: polygon(0 0, 100% 0, 80% 100%, 0 100%); }

/* Capacity */
.strength-grid { display: grid; grid-template-columns: 1fr 1fr; gap: .85rem; }
.strength { padding: 1.35rem 1rem; text-align: center; background: rgba(255, 255, 255, .07); border: 1px solid rgba(255, 255, 255, .14); border-radius: var(--k-radius); }
.strength i { font-size: 1.75rem; color: var(--k-orange-light); }
.strength h3 { color: #fff; font-size: .95rem; font-weight: 700; line-height: 1.35; margin: .65rem 0 0; }

/* Call to action */
.cta-band { position: relative; padding: clamp(3.75rem, 8vw, 6.5rem) 0; color: #fff; background: var(--k-navy-deep); overflow: hidden; }
.cta-band__image { position: absolute; inset: 0; }
.cta-band__image img { width: 100%; height: 100%; object-fit: cover; opacity: .3; }
.cta-band::after { content: ''; position: absolute; right: -6%; bottom: 0; width: 42%; height: 22px; background: var(--k-orange); transform: skewX(-40deg); }
.cta-band .sec-eyebrow { color: var(--k-orange-light); margin-bottom: .75rem; }
.cta-band h2 { max-width: 44rem; color: #fff; font-weight: 800; font-size: clamp(1.7rem, 4vw, 2.75rem); line-height: 1.18; }

/* Footer */
.site-footer { padding: 3.75rem 0 1.75rem; background: var(--k-navy-deep); color: rgba(255, 255, 255, .74); font-size: .93rem; }
.site-footer__logo { width: 190px; height: auto; }
.site-footer__tag { max-width: 22rem; line-height: 1.65; }
.site-footer h3 { font-size: .8rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--k-orange-light); margin-bottom: 1rem; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: .55rem; line-height: 1.45; }
.site-footer a { color: rgba(255, 255, 255, .84); }
.site-footer a:hover { color: #fff; }
.site-footer__contact li { display: flex; gap: .65rem; overflow-wrap: anywhere; }
.site-footer__contact i { color: var(--k-orange-light); }
.site-footer__bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .5rem 2rem; margin-top: 2.75rem; padding-top: 1.5rem; border-top: 1px solid rgba(255, 255, 255, .13); font-size: .82rem; }

/* Mobile quick contact bar */
.action-bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 1020; display: grid; grid-template-columns: 1fr 1fr 1.3fr; background: #fff; border-top: 1px solid var(--k-line); padding-bottom: env(safe-area-inset-bottom); box-shadow: 0 -10px 26px -18px rgba(19, 41, 91, .5); }
.action-bar a { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .15rem; height: var(--action-h); font-family: var(--k-heading); font-size: .76rem; font-weight: 700; color: var(--k-navy); }
.action-bar i { font-size: 1.15rem; color: var(--k-orange-text); }
.action-bar a[target] i { color: #128C4A; }
.action-bar__quote { background: var(--k-orange); color: var(--k-navy-deep) !important; }
.action-bar__quote i { color: var(--k-navy-deep); }

/* Inner page header */
.page-hero { position: relative; overflow: hidden; padding: 2.75rem 0 3.25rem; background: var(--k-navy); color: #fff; }
.page-hero__visual { position: absolute; inset: 0; }
.page-hero__visual::after { content: ''; position: absolute; inset: 0; background: linear-gradient(100deg, rgba(19, 41, 91, .96) 0%, rgba(19, 41, 91, .86) 60%, rgba(19, 41, 91, .62) 100%); }
.page-hero__visual img { width: 100%; height: 100%; object-fit: cover; }
.page-hero::after { content: ''; position: absolute; left: 0; bottom: 0; width: 34%; height: 7px; background: var(--k-orange); clip-path: polygon(0 0, 100% 0, 98% 100%, 0 100%); }
.page-hero__eyebrow { color: var(--k-orange-light); margin-bottom: .75rem; }
.page-hero h1 { max-width: 44rem; color: #fff; font-weight: 800; font-size: clamp(2.1rem, 6vw, 3.75rem); line-height: 1.08; letter-spacing: -.02em; margin-bottom: 1rem; }
.page-hero__lead { max-width: 37rem; margin: 0; color: rgba(255, 255, 255, .84); font-size: 1.05rem; line-height: 1.65; }
@media (min-width: 992px) {
  .page-hero { padding: 5.25rem 0 5.75rem; }
  .page-hero__visual { inset: 0 0 0 auto; width: 56%; clip-path: polygon(26% 0, 100% 0, 100% 100%, 8% 100%); }
  .page-hero__visual::after { display: none; }
  .page-hero h1, .page-hero__lead { max-width: 50%; }
}

/* About */
.info-stack { display: grid; gap: .85rem; }
.info-row { display: flex; gap: .9rem; padding: 1.1rem; background: var(--k-tint); border-radius: var(--k-radius); }
.info-row h3 { font-size: 1rem; font-weight: 700; margin-bottom: .25rem; }
.info-row p { margin: 0; color: var(--k-slate); font-size: .9rem; line-height: 1.55; }

.statement { height: 100%; padding: clamp(1.75rem, 3.5vw, 2.75rem); background: #fff; border-radius: var(--k-radius); border: 1px solid var(--k-line); }
.statement i { font-size: 2rem; color: var(--k-orange-text); }
.statement h3 { font-size: 1.5rem; font-weight: 800; margin: .85rem 0 .65rem; }
.statement p { margin: 0; line-height: 1.7; color: var(--k-slate); }
.statement--navy { background: var(--k-navy); border-color: var(--k-navy); }
.statement--navy i { color: var(--k-orange-light); }
.statement--navy h3 { color: #fff; }
.statement--navy p { color: rgba(255, 255, 255, .85); }

.values { margin-top: 2.5rem; }
.values__title { font-size: 1.15rem; font-weight: 700; margin-bottom: 1rem; }
.values__list { list-style: none; display: grid; grid-template-columns: 1fr 1fr; gap: .75rem 1rem; margin: 0; padding: 0; }
.values__list li { display: flex; align-items: center; gap: .55rem; font-family: var(--k-heading); font-size: .92rem; font-weight: 600; color: var(--k-navy); }
.values__list i { color: var(--k-orange); }
@media (min-width: 992px) { .values__list { grid-template-columns: repeat(6, auto); justify-content: space-between; } }

.leader { display: flex; align-items: center; gap: 1.15rem; padding: 1.4rem; background: #fff; border: 1px solid var(--k-line); border-top: 4px solid var(--k-navy); border-radius: var(--k-radius); }
.leader__avatar { display: inline-flex; align-items: center; justify-content: center; flex: none; width: 72px; height: 72px; border-radius: 50%; font-family: var(--k-heading); font-weight: 800; font-size: 1.3rem; }
.leader__avatar--navy { background: var(--k-navy); color: #fff; }
.leader__avatar--orange { background: var(--k-orange); color: var(--k-navy-deep); }
.leader h3 { font-size: 1.15rem; font-weight: 700; margin-bottom: .2rem; }
.leader p { margin: 0; font-family: var(--k-heading); font-size: .76rem; font-weight: 700; letter-spacing: .13em; text-transform: uppercase; color: var(--k-orange-text); }

/* Services page */
.svc-rail { position: sticky; top: var(--nav-h); z-index: 1010; background: #fff; border-bottom: 1px solid var(--k-line); }
.svc-rail__scroll { display: flex; gap: .5rem; padding: .7rem 0; overflow-x: auto; scrollbar-width: none; position: relative; }
.svc-rail__scroll::-webkit-scrollbar { display: none; }
.svc-rail a { display: inline-flex; flex: 1 0 auto; align-items: center; justify-content: center; gap: .5rem; min-height: 46px; padding: .4rem 1rem; border-radius: 8px; font-family: var(--k-heading); font-size: .86rem; font-weight: 700; color: var(--k-navy); background: var(--k-tint); white-space: nowrap; transition: background-color .2s, color .2s; }
.svc-rail a:hover { background: #E4EAF5; color: var(--k-navy); }
.svc-rail a.active { background: var(--k-navy); color: #fff; }
.svc-rail a.active i { color: var(--k-orange-light); }

.svc-panel { transition: opacity .18s; }
.svc-panel.is-loading { opacity: .35; pointer-events: none; }
.svc-detail { animation: svc-in .35s ease both; }
@keyframes svc-in { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
.svc-detail__media { position: relative; overflow: hidden; border-radius: var(--k-radius); border: 1px solid var(--k-line); background: #fff; }
.svc-detail__media img { display: block; width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.svc-detail__title { font-weight: 800; font-size: clamp(1.7rem, 3.6vw, 2.5rem); line-height: 1.14; margin-bottom: .75rem; }
.svc-detail__intro { color: var(--k-slate); font-size: 1.08rem; line-height: 1.65; }

.check-list { list-style: none; display: grid; gap: .65rem; margin: 1.25rem 0 0; padding: 0; }
.check-list li { position: relative; padding-left: 1.9rem; line-height: 1.5; font-weight: 500; }
.check-list li::before { content: '\F26A'; font-family: 'bootstrap-icons'; position: absolute; left: 0; top: 0; color: var(--k-orange); font-size: 1.1rem; }

/* Commitments */
.commit-media img { display: block; width: 100%; aspect-ratio: 4 / 3.4; object-fit: cover; border-radius: var(--k-radius); }

/* Contact */
.contact-card { height: 100%; padding: clamp(1.5rem, 3vw, 2.5rem); background: var(--k-navy); color: #fff; border-radius: var(--k-radius); }
.contact-card h2 { color: #fff; font-size: 1.5rem; font-weight: 800; margin-bottom: 1.5rem; }
.contact-card ul { list-style: none; display: grid; gap: 1.4rem; margin: 0; padding: 0; }
.contact-card li { display: flex; gap: .9rem; }
.contact-card li > div { min-width: 0; overflow-wrap: anywhere; font-weight: 500; line-height: 1.5; }
.contact-card small { display: block; margin-bottom: .2rem; font-family: var(--k-heading); font-size: .7rem; font-weight: 700; letter-spacing: .15em; text-transform: uppercase; color: var(--k-orange-light); }
.contact-card a { display: flex; align-items: center; min-height: 40px; margin-top: -.35rem; color: #fff; }
.contact-card small + a { margin-top: -.45rem; }
.contact-card .contact-card__map { gap: .35rem; }
.contact-card a:hover { color: var(--k-orange-light); }
.contact-card .contact-card__map { color: var(--k-orange-light); font-weight: 600; font-size: .92rem; }

.form-card { padding: clamp(1.5rem, 3vw, 2.5rem); background: #fff; border: 1px solid var(--k-line); border-radius: var(--k-radius); box-shadow: var(--k-shadow); }
.form-card h2 { font-size: 1.6rem; font-weight: 800; margin-bottom: .35rem; }
.form-card__intro { color: var(--k-slate); margin-bottom: 1.5rem; }
.form-control, .form-select { font-size: 16px; border-color: #C9D2E1; border-radius: 8px; }
.form-control:focus, .form-select:focus { border-color: var(--k-navy); box-shadow: 0 0 0 3px rgba(19, 41, 91, .14); }
.form-control--message { height: 150px !important; resize: vertical; }
.form-floating > label { color: var(--k-slate); }
.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-success { padding: 2rem 0; text-align: center; }
.form-success__icon { display: inline-flex; align-items: center; justify-content: center; width: 76px; height: 76px; margin-bottom: 1rem; border-radius: 50%; background: var(--k-orange); color: var(--k-navy-deep); font-size: 2.2rem; }
.form-success p { color: var(--k-slate); margin-bottom: 1.5rem; }

/* Reveal on scroll: only when JavaScript is running */
.js .reveal { opacity: 0; transform: translateY(22px); transition: opacity .65s ease, transform .65s ease; }
.js .reveal.is-in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .js .reveal { opacity: 1; transform: none; }
}

/* Phone hero: keep both buttons on one row where they fit */
@media (max-width: 575.98px) {
  .hero__copy .btn { flex: 1 1 auto; padding-inline: 1rem; }
}

/* Phones: touch behaviour and spacing */
a, button { -webkit-tap-highlight-color: transparent; touch-action: manipulation; }

.snap-progress { position: relative; height: 4px; margin-top: .25rem; background: #DCE3EF; border-radius: 2px; overflow: hidden; }
.snap-progress span { display: block; height: 100%; background: var(--k-orange); border-radius: 2px; }

@media (hover: none) {
  .svc-card:hover { transform: none; box-shadow: none; }
  .svc-card:hover .svc-card__media img, .pillar:hover .icon-tile, .btn:hover .bi-arrow-right, .link-arrow:hover i { transform: none; }
  .btn-k:hover { box-shadow: none; }
  .btn:active, .svc-card:active, .pillar:active, .action-bar a:active, .svc-rail a:active { transform: scale(.97); }
  .svc-card, .pillar, .action-bar a { transition: transform .12s; }
}

/* The keyboard needs the room while a form field is being filled in */
@media (max-width: 991.98px) {
  body:has(.form-card input:focus, .form-card textarea:focus, .form-card select:focus) .action-bar { display: none; }
}

@media (max-width: 991.98px) {
  .svc-rail__scroll { display: grid; grid-template-columns: repeat(4, 1fr); gap: .35rem; padding: .5rem 0; overflow: visible; }
}

@media (max-width: 767.98px) {
  .svc-rail a { flex-direction: column; gap: .1rem; min-height: 56px; padding: .3rem .1rem; font-size: .7rem; }
  .svc-rail a i { font-size: 1.15rem; line-height: 1.2; }
  .commit-media img { aspect-ratio: 16 / 10; object-position: 50% 22%; }
}

@media (max-width: 575.98px) {
  .container { --bs-gutter-x: 2.5rem; }
  .section-lead { font-size: 1.06rem; }
  .svc-detail__intro { font-size: 1rem; }
  .sec-head { gap: .7rem; margin-bottom: 1.25rem; }
  .sec-slash { height: 2.9rem; }
  .sec-num { font-size: 2.25rem; }
  .sec-title { font-size: 1.5rem; }
  .pillars__grid { gap: 1.5rem 1rem; }
  .info-row { padding: .95rem; }
  .strength { padding: 1.1rem .75rem; }
  .statement { padding: 1.5rem; }
  .form-card, .contact-card { padding: 1.35rem; }
  .contact-card li > div { font-size: .95rem; }
  .cta-band__image img { opacity: .2; }
  .cta-band .btn, .svc-detail .btn { flex: 1 1 auto; }
  .site-footer { padding-top: 3rem; }
}

/* Phones turned sideways */
@media (max-height: 500px) and (orientation: landscape) and (max-width: 991.98px) {
  :root { --action-h: 48px; }
  .container { padding-inline: max(calc(var(--bs-gutter-x) * .5), env(safe-area-inset-left), env(safe-area-inset-right)); }
  .hero__visual { height: 300px; }
  .action-bar a { flex-direction: row; gap: .45rem; font-size: .82rem; }
  .svc-rail { position: static; }
  .mobile-menu__links { margin: 0; padding: .5rem 0; }
  .mobile-menu__links a { font-size: 1.25rem; padding: .5rem 0; }
}
