/* Header */
.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 100;
  border-bottom: 1px solid transparent;
  transition: background var(--transition), border-color var(--transition), box-shadow var(--transition), backdrop-filter var(--transition);
}
.site-header.is-scrolled {
  background: rgba(255, 255, 255, 0.96);
  border-color: var(--line);
  box-shadow: 0 10px 32px rgba(10, 37, 74, 0.08);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
}
.header-inner { min-height: 84px; display: flex; align-items: center; justify-content: space-between; gap: 2rem; }
.brand { display: inline-flex; align-items: center; gap: 0.8rem; min-width: 0; }
.brand-mark { position: relative; display: inline-block; width: 100px; height: 58px; flex: 0 0 auto; }
.brand-logo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; transition: opacity var(--transition); }
.brand-logo-color { opacity: 0; }
.site-header.is-scrolled .brand-logo-white { opacity: 0; }
.site-header.is-scrolled .brand-logo-color { opacity: 1; }
.brand-copy { display: grid; line-height: 1.05; }
.brand-copy strong { color: var(--white); font-family: var(--font-heading); font-size: 0.88rem; transition: color var(--transition); }
.brand-copy small { margin-top: 0.32rem; color: rgba(255,255,255,0.68); font-size: 0.7rem; transition: color var(--transition); }
.site-header.is-scrolled .brand-copy strong { color: var(--navy); }
.site-header.is-scrolled .brand-copy small { color: var(--text-muted); }
.primary-nav { display: flex; align-items: center; gap: 1.5rem; }
.primary-nav a { position: relative; flex: 0 0 auto; white-space: nowrap; color: rgba(255,255,255,0.82); font-family: var(--font-heading); font-size: 0.83rem; font-weight: 700; transition: color var(--transition), background var(--transition); }
.site-header.is-scrolled .primary-nav a { color: var(--graphite); }
.primary-nav a:not(.nav-cta)::after { content: ""; position: absolute; left: 0; right: 100%; bottom: -0.48rem; height: 2px; background: var(--green); transition: right var(--transition); }
.primary-nav a:hover, .primary-nav a.is-active { color: #C3E9DA; }
.site-header.is-scrolled .primary-nav a:hover, .site-header.is-scrolled .primary-nav a.is-active { color: var(--teal); }
.primary-nav a:hover::after, .primary-nav a.is-active::after { right: 0; }
.nav-cta { padding: 0.72rem 1rem; border: 1px solid rgba(255,255,255,0.22); border-radius: 999px; background: rgba(255,255,255,0.10); color: var(--white) !important; }
.site-header.is-scrolled .nav-cta { background: var(--navy); border-color: var(--navy); color: var(--white) !important; }
.menu-toggle { display: none; width: 44px; height: 44px; padding: 12px; border-radius: 50%; background: rgba(255,255,255,0.96); box-shadow: 0 8px 20px rgba(10,37,74,0.12); }
.menu-toggle span { display: block; height: 2px; background: var(--navy); transition: transform var(--transition); }
.menu-toggle span + span { margin-top: 6px; }

/* Buttons */
.button { display: inline-flex; min-height: 50px; align-items: center; justify-content: center; padding: 0.82rem 1.25rem; border: 1px solid transparent; border-radius: 999px; font-family: var(--font-heading); font-size: 0.86rem; font-weight: 800; transition: transform var(--transition), box-shadow var(--transition), background var(--transition), border-color var(--transition); }
.button:hover { transform: translateY(-2px); }
.button-primary { background: var(--green); color: var(--white); box-shadow: 0 14px 30px rgba(88,150,52,0.24); }
.button-primary:hover { box-shadow: 0 18px 34px rgba(88,150,52,0.32); }
.button-ghost { border-color: rgba(255,255,255,0.34); color: var(--white); background: rgba(255,255,255,0.06); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.button-ghost:hover { background: rgba(255,255,255,0.12); }

/* Hero */
.hero { position: relative; min-height: clamp(680px, 88svh, 860px); overflow: hidden; background: var(--navy-deep); }
.hero::after { content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none; background: linear-gradient(90deg, rgba(5,27,55,0.96) 0%, rgba(5,27,55,0.88) 42%, rgba(5,27,55,0.46) 76%, rgba(5,27,55,0.34) 100%), linear-gradient(0deg, rgba(5,27,55,0.35), transparent 55%); }
.hero-slides, .hero-slide { position: absolute; inset: 0; }
.hero-slides { z-index: 0; }
.hero-slide { opacity: 0; transition: opacity 1100ms ease; }
.hero-slide.is-active { opacity: 1; }
.hero-slide img { width: 100%; height: 100%; object-fit: cover; display: block; transform: scale(1.025); transition: transform 7s ease; }
.hero-slide.is-active img { transform: scale(1); }
.hero-shell { position: relative; z-index: 2; min-height: inherit; display: grid; grid-template-columns: 1fr; align-items: center; padding-top: 118px; padding-bottom: 58px; }
.hero-main { align-self: center; padding-block: 2rem; }
.hero-eyebrow { color: #C4E8D9; }
.hero h1 { max-width: 820px; margin-top: 0.75rem; color: var(--white); font-size: clamp(3.7rem, 6vw, 6.3rem); }
.hero-lead { max-width: 630px; margin-top: 1.35rem; color: rgba(255,255,255,0.76); font-size: clamp(1.08rem, 1.7vw, 1.28rem); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.8rem; margin-top: 2rem; }

/* Editorial section headers */
.editorial-head, .services-intro, .equipment-head, .workflow-head, .faba-head { display: grid; grid-template-columns: minmax(0, 1fr); align-content: center; gap: 1rem; min-height: clamp(160px, 16vw, 220px); }
.editorial-head h2, .services-intro h2, .equipment-head h2, .workflow-head h2, .faba-head h2 { max-width: 880px; }
.services-intro > p, .equipment-head > p, .workflow-head > p, .faba-head > p { max-width: 760px; font-size: 1.06rem; }

/* About */
.section-about { background: var(--white); }
.about-grid { display: grid; grid-template-columns: minmax(260px, 0.7fr) minmax(0, 1.3fr); gap: clamp(2.5rem, 6vw, 6rem); margin-top: 3rem; padding-top: 2rem; border-top: 1px solid var(--line); }
.about-lead p { max-width: 390px; color: var(--navy); font-family: var(--font-heading); font-size: clamp(1.2rem, 1.9vw, 1.65rem); font-weight: 700; line-height: 1.4; letter-spacing: -0.02em; }
.about-copy { display: grid; gap: 1.05rem; max-width: 760px; }
.about-copy p { font-size: 1.03rem; }
.how-strip { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); grid-auto-rows: 1fr; margin-top: 4.5rem; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.how-strip article { min-height: 176px; padding: 1.4rem 1.5rem; border-right: 1px solid var(--line); }
.how-strip article:first-child { padding-left: 0; }
.how-strip article:last-child { padding-right: 0; border-right: 0; }
.how-strip span { color: var(--teal); font-family: var(--font-heading); font-size: 0.72rem; font-weight: 800; }
.how-strip h3 { margin-top: 1.4rem; font-size: 1.02rem; }
.how-strip p { margin-top: 0.45rem; font-size: 0.92rem; }

/* Vision */
.vision-section { background: var(--mist); }
.vision-statement { display: grid; grid-template-columns: minmax(260px, 0.65fr) minmax(300px, 1.35fr); gap: clamp(2rem, 6vw, 6rem); align-items: center; min-height: clamp(160px, 16vw, 220px); }
.vision-statement h2 { font-size: clamp(2.1rem, 3.5vw, 3.6rem); }
.vision-statement > p:last-child { max-width: 710px; color: var(--navy); font-family: var(--font-heading); font-size: clamp(1.45rem, 2.6vw, 2.35rem); font-weight: 700; line-height: 1.35; letter-spacing: -0.025em; }
.mission-grid { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); grid-auto-rows: 1fr; gap: 0; margin-top: 4rem; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-card); }
.mission-block { min-height: 250px; padding: 1.6rem; border-right: 1px solid var(--line); }
.mission-block:last-child { border-right: 0; }
.mission-block > span { color: var(--green); font-family: var(--font-heading); font-size: 0.76rem; font-weight: 800; }
.mission-block h3 { margin-top: 3.2rem; font-size: 1.1rem; }
.mission-block p { margin-top: 0.7rem; font-size: 0.94rem; }

/* FABA */
.faba-section { position: relative; overflow: hidden; background: var(--navy-deep); }
.faba-section .container { position: relative; z-index: 1; }
.faba-head > div:last-child > p { color: rgba(255,255,255,0.68); }
.faba-diagram { margin-top: 3.2rem; padding: clamp(0.65rem, 1vw, 0.9rem); background: var(--white); border-radius: var(--radius-lg); box-shadow: 0 28px 80px rgba(0,0,0,0.22); }
.faba-diagram img { width: 100%; display: block; border-radius: calc(var(--radius-lg) - 9px); }
.faba-process { display: grid; grid-template-columns: repeat(5, minmax(0,1fr)); grid-auto-rows: 1fr; margin-top: 2.2rem; border-top: 1px solid var(--line-light); border-bottom: 1px solid var(--line-light); }
.faba-process article { min-height: 210px; padding: 1.35rem 1.15rem; border-right: 1px solid var(--line-light); }
.faba-process article:first-child { padding-left: 0; }
.faba-process article:last-child { padding-right: 0; border-right: 0; }
.faba-process span { color: #BCE4D4; font-family: var(--font-heading); font-size: 0.72rem; font-weight: 800; }
.faba-process h3 { margin-top: 1.25rem; color: var(--white); font-size: 1rem; }
.faba-process p { margin-top: 0.55rem; color: rgba(255,255,255,0.58); font-size: 0.9rem; }

/* Services catalogue */
.services-section { background: var(--white); }
.services-layout { display: grid; grid-template-columns: minmax(220px, 0.34fr) minmax(0, 1.66fr); gap: clamp(2.5rem, 6vw, 6rem); margin-top: 3rem; align-items: start; }
.services-nav { position: sticky; top: 112px; padding-right: clamp(1.5rem, 3vw, 2.5rem); border-right: 1px solid var(--line); }
.services-nav > p { padding-bottom: 1rem; color: rgba(10, 37, 74, 0.38); font-family: var(--font-heading); font-size: 0.72rem; font-weight: 800; letter-spacing: 0.14em; text-transform: uppercase; }
.services-nav nav { display: grid; }
.services-nav a { display: grid; grid-template-columns: 2rem 1fr; gap: 0.6rem; padding: 0.82rem 0; color: var(--text-muted); font-family: var(--font-heading); font-size: 0.84rem; font-weight: 700; line-height: 1.35; transition: color var(--transition), transform var(--transition); }
.services-nav a span { color: rgba(10, 37, 74, 0.34); font-size: 0.7rem; transition: color var(--transition); }
.services-nav a:hover, .services-nav a.is-active { color: var(--teal); transform: translateX(0.25rem); }
.services-nav a.is-active span { color: var(--green); }
.service-catalogue { border-top: 1px solid var(--line-strong); }
.service-row { display: grid; gap: 2.2rem; padding: clamp(3rem, 6vw, 5.5rem) 0; scroll-margin-top: 104px; border-bottom: 1px solid var(--line-strong); }
.service-content { display: grid; grid-template-columns: minmax(0, 0.92fr) minmax(340px, 1.08fr); grid-template-rows: auto 1fr; gap: 0.85rem clamp(2rem, 5vw, 5rem); }
.service-content > h3 { grid-column: 1; font-size: clamp(1.7rem, 2.4vw, 2.5rem); }
.service-summary { grid-column: 1; margin-top: 0.2rem; font-size: 0.98rem; }
.service-scope { grid-column: 2; grid-row: 1 / span 2; align-self: center; }
.service-scope > p { color: var(--teal); font-family: var(--font-heading); font-size: 0.72rem; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase; }
.service-scope ul { margin-top: 0.8rem; border-top: 1px solid var(--line); list-style: none; }
.service-scope li { padding: 0.82rem 0; border-bottom: 1px solid var(--line); color: var(--graphite); font-family: var(--font-heading); font-size: 0.82rem; font-weight: 700; line-height: 1.45; }
.service-visual { overflow: hidden; aspect-ratio: 16 / 6; }
.service-visual img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* Equipment */
.equipment-section { background: var(--white); }
.equipment-head { min-height: 0; }
.equipment-head h2 { max-width: 700px; font-size: clamp(2rem, 4vw, 3.25rem); }
.equipment-head > p { max-width: 720px; font-size: 0.98rem; }
.equipment-carousel { position: relative; margin-top: 2.4rem; }
.equipment-slide { display: grid; grid-template-columns: minmax(270px, 0.72fr) minmax(0, 1.28fr); min-height: 410px; }
.equipment-slide[hidden] { display: none; }
.equipment-copy { display: grid; align-content: center; padding: 2rem clamp(2rem, 5vw, 4.5rem) 4.75rem 0; }
.equipment-copy > span { color: rgba(10, 37, 74, 0.42); font-family: var(--font-heading); font-size: 0.7rem; font-weight: 800; letter-spacing: 0.14em; text-transform: uppercase; }
.equipment-copy h3 { margin-top: 0.65rem; color: var(--navy); font-size: clamp(1.8rem, 3.4vw, 3rem); line-height: 1.08; }
.equipment-copy i { width: 72px; height: 5px; margin-top: 1rem; background: var(--green); }
.equipment-copy p { max-width: 390px; margin-top: 1.35rem; font-size: 1rem; }
.equipment-photo { min-width: 0; height: 410px; overflow: hidden; }
.equipment-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.equipment-controls { position: absolute; left: 0; bottom: 0; display: flex; align-items: center; gap: 0.85rem; }
.equipment-controls button { display: grid; place-items: center; width: 42px; height: 42px; border: 1px solid var(--line-strong); border-radius: 50%; background: transparent; color: var(--navy); font-size: 1.15rem; transition: color var(--transition), border-color var(--transition), background var(--transition); }
.equipment-controls button:hover { border-color: var(--navy); background: var(--navy); color: var(--white); }
.equipment-controls span { min-width: 58px; color: var(--text-muted); font-family: var(--font-heading); font-size: 0.75rem; text-align: center; }
.equipment-controls strong { color: var(--teal); }

/* Workflow */
.workflow-section { background: var(--white); }
.workflow-layout { display: grid; grid-template-columns: minmax(320px, 0.95fr) minmax(0, 1.05fr); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.workflow-sticky { position: sticky; top: 84px; align-self: start; display: grid; align-content: center; min-height: calc(100vh - 84px); padding: clamp(3rem, 7vw, 7rem) clamp(2rem, 6vw, 6rem) clamp(3rem, 7vw, 7rem) 0; }
.workflow-sticky h2 { max-width: 570px; }
.workflow-sticky > p { max-width: 570px; margin-top: 1.5rem; font-size: 1.08rem; }
.workflow-sticky .button { justify-self: start; margin-top: 2rem; }
.workflow-track { list-style: none; border-left: 1px solid var(--line); }
.workflow-step { display: grid; grid-template-columns: minmax(190px, 0.8fr) minmax(240px, 1.2fr); min-height: 330px; border-bottom: 1px solid var(--line); }
.workflow-step:last-child { border-bottom: 0; }
.workflow-symbol { position: relative; display: grid; place-items: center; overflow: hidden; border-right: 1px solid var(--line); color: rgba(10, 37, 74, 0.16); }
.workflow-symbol::before, .workflow-symbol::after { content: ""; position: absolute; width: 112px; height: 112px; border: 1px solid rgba(10, 37, 74, 0.16); transform: rotate(45deg); }
.workflow-symbol::after { width: 72px; height: 72px; border-color: rgba(25, 117, 92, 0.28); }
.workflow-symbol > span { position: relative; z-index: 1; display: grid; place-items: center; width: 54px; height: 54px; border-radius: 50%; background: var(--white); border: 1px solid var(--line); color: var(--teal); font-family: var(--font-heading); font-size: 0.78rem; font-weight: 800; }
.workflow-copy { display: grid; align-content: center; padding: clamp(2rem, 5vw, 4rem); }
.workflow-copy > span { color: rgba(10, 37, 74, 0.25); font-family: var(--font-heading); font-size: clamp(2.5rem, 4vw, 4rem); font-weight: 700; line-height: 1; }
.workflow-copy h3 { margin-top: 2rem; font-size: clamp(1.2rem, 2vw, 1.6rem); }
.workflow-copy p { margin-top: 0.75rem; font-size: 1rem; }

/* HSE */
.hse-section { background: var(--navy); }
.hse-shell { display: grid; grid-template-columns: minmax(0, 0.82fr) minmax(0, 1.18fr); gap: clamp(3rem, 7vw, 7rem); align-items: start; }
.hse-copy { position: sticky; top: 128px; }
.hse-copy h2 { max-width: 570px; }
.hse-copy > p:last-child { margin-top: 1.5rem; color: #BCE4D4; font-family: var(--font-heading); font-size: 1rem; font-weight: 800; }
.hse-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); grid-auto-rows: 1fr; border: 1px solid var(--line-light); border-radius: var(--radius-lg); overflow: hidden; }
.hse-item { min-height: 220px; padding: 1.6rem; border-right: 1px solid var(--line-light); border-bottom: 1px solid var(--line-light); }
.hse-item:nth-child(2n) { border-right: 0; }
.hse-item:nth-last-child(-n + 2) { border-bottom: 0; }
.hse-item > span { color: #BCE4D4; font-family: var(--font-heading); font-size: 0.7rem; font-weight: 800; }
.hse-item h3 { margin-top: 2.4rem; color: var(--white); font-size: 1.25rem; }
.hse-item p { margin-top: 0.7rem; color: rgba(255,255,255,0.62); }

/* Why KES */
.why-section { background: var(--mist); }
.why-shell { display: block; }
.why-content { display: block; }
.why-head { display: grid; align-content: center; min-height: clamp(160px, 16vw, 220px); padding: 0; }
.why-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); grid-auto-rows: 1fr; border-top: 1px solid var(--line); }
.why-item { min-height: 185px; padding: 1.35rem 1.3rem 1.35rem 0; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.why-item:nth-child(2n) { padding-left: 1.3rem; padding-right: 0; border-right: 0; }
.why-item:nth-last-child(-n + 2) { border-bottom: 0; }
.why-item > span { color: var(--green); font-family: var(--font-heading); font-size: 0.72rem; font-weight: 800; }
.why-item h3 { margin-top: 1.3rem; font-size: 1.02rem; }
.why-item p { margin-top: 0.45rem; font-size: 0.9rem; }
.why-tagline { grid-column: 1 / -1; margin-top: -1rem; padding: 1rem 1.2rem; border-radius: var(--radius-sm); background: var(--navy); color: var(--white); font-family: var(--font-heading); font-weight: 800; text-align: center; }

/* Contact */
.contact-section { position: relative; overflow: hidden; padding-block: var(--section-space); background: var(--navy-deep); }
.contact-shell { position: relative; z-index: 1; }
.contact-intro { display: grid; grid-template-columns: minmax(320px, 0.95fr) minmax(300px, 0.75fr); gap: clamp(2rem, 6vw, 6rem); align-items: center; min-height: clamp(160px, 16vw, 220px); }
.contact-intro h2 { font-size: clamp(2.4rem, 4vw, 4.2rem); }
.contact-intro > p:last-child { color: rgba(255,255,255,0.64); font-size: 1rem; }
.contact-hub { display: grid; grid-template-columns: 0.78fr 1.22fr; margin-top: 3rem; overflow: hidden; border-radius: var(--radius-lg); background: var(--white); box-shadow: 0 28px 90px rgba(0,0,0,0.26); }
.contact-details { padding: clamp(1.8rem, 4vw, 3rem); background: var(--mist); border-right: 1px solid var(--line); }
.contact-details > img { width: 150px; height: 88px; object-fit: contain; object-position: left center; }
.contact-details address { margin-top: 1.4rem; font-style: normal; }
.contact-details address > div { padding: 1rem 0; border-top: 1px solid var(--line); }
.contact-details address span { display: block; margin-bottom: 0.25rem; color: var(--teal); font-family: var(--font-heading); font-size: 0.68rem; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase; }
.contact-details address a, .contact-details address p { color: var(--navy); overflow-wrap: anywhere; }
.social-links { display: flex; flex-wrap: wrap; gap: 0.55rem; padding-top: 1rem; border-top: 1px solid var(--line); }
.social-links a { display: inline-flex; align-items: center; gap: 0.45rem; padding: 0.48rem 0.65rem; border: 1px solid var(--line); border-radius: 999px; background: var(--white); color: var(--navy); font-family: var(--font-heading); font-size: 0.78rem; font-weight: 700; }
.social-links span { display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: var(--navy); color: var(--white); font-size: 0.6rem; }
.contact-form { display: grid; align-content: start; gap: 1rem; padding: clamp(1.8rem, 4vw, 3rem); background: var(--white); }
.form-row { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 1rem; }
.contact-form label { display: grid; gap: 0.4rem; color: var(--navy); font-family: var(--font-heading); font-size: 0.82rem; font-weight: 800; }
.contact-form input, .contact-form select, .contact-form textarea { width: 100%; border: 1px solid var(--line); border-radius: 12px; padding: 0.82rem 0.9rem; font: inherit; color: var(--graphite); background: #FAFCFB; transition: border-color var(--transition), box-shadow var(--transition); }
.contact-form input:focus, .contact-form select:focus, .contact-form textarea:focus { border-color: rgba(25,117,92,0.55); box-shadow: 0 0 0 4px rgba(25,117,92,0.08); outline: none; }
.contact-form textarea { min-height: 132px; resize: vertical; }
.contact-form .button { justify-self: start; border: 0; cursor: pointer; }
.hp-field { position: absolute !important; left: -9999px !important; opacity: 0 !important; }
.form-status { min-height: 1.5rem; font-weight: 700; color: var(--teal); }
.form-status.is-error { color: #B42318; }

/* Footer */
.site-footer { padding-block: 1.25rem; background: #06172D; border-top: 1px solid rgba(255,255,255,0.08); }
.footer-inner { color: rgba(255,255,255,0.50); font-size: 0.78rem; }
.footer-inner p { color: inherit; }
