/* ==========================================================
   Cookies House of Designs — stylesheet
   Palette from the official logo:
   red #BD1F35 (accents) · green #087B42 (actions)
   black #050505 (foundation) · white #FFFFFF
   ========================================================== */
:root {
    --red: #bd1f35;
    --red-dark: #9a1829;
    --green: #087b42;
    --green-dark: #06623a;
    --black: #050505;
    --ink: #161616;
    --white: #ffffff;
    --paper: #f6f5f2;
    --muted: #66625d;
    --line: rgba(5, 5, 5, .12);
    --radius: 14px;
    --shadow: 0 18px 45px rgba(5, 5, 5, .08);
    --font-head: 'Manrope', system-ui, sans-serif;
    --font-body: 'DM Sans', system-ui, sans-serif;
    --header-h: 76px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }
body { margin: 0; background: var(--white); color: var(--ink); font-family: var(--font-body); font-size: 16px; line-height: 1.6; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { font-family: var(--font-head); line-height: 1.08; letter-spacing: -.035em; margin: 0; }
p { margin: 0 0 1em; }
ul { margin: 0; padding: 0; list-style: none; }

.container { width: min(1180px, calc(100% - 48px)); margin: 0 auto; }
.section { padding: 100px 0; }
.section-sm { padding: 70px 0; }
.bg-paper { background: var(--paper); }
.bg-black { background: var(--black); color: var(--white); }
.text-red { color: var(--red); }
.text-green { color: var(--green); }
.icon { width: 1.15em; height: 1.15em; flex: none; }

.skip-link { position: absolute; left: -999px; top: 8px; background: var(--black); color: #fff; padding: 10px 14px; z-index: 100; border-radius: 6px; }
.skip-link:focus { left: 8px; }
:focus-visible { outline: 3px solid var(--green); outline-offset: 3px; }

/* ---------- Eyebrows & headings ---------- */
.eyebrow { font-size: 12px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); margin-bottom: 18px; display: inline-flex; align-items: center; gap: 10px; }
.eyebrow::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--red); }
.eyebrow-light { color: rgba(255, 255, 255, .7); }
.section-head { display: flex; justify-content: space-between; align-items: end; gap: 40px; margin-bottom: 56px; }
.section-head h2 { font-size: clamp(34px, 4.6vw, 58px); max-width: 720px; }
.section-head p { max-width: 380px; color: var(--muted); margin: 0; }
.bg-black .section-head p { color: rgba(255, 255, 255, .65); }

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; gap: 10px; padding: 14px 22px; border-radius: 100px; font-weight: 700; font-size: 14px; border: 2px solid transparent; cursor: pointer; transition: transform .2s, background .2s, color .2s, border-color .2s; font-family: inherit; }
.btn:hover { transform: translateY(-2px); }
.btn-green { background: var(--green); color: var(--white); }
.btn-green:hover { background: var(--green-dark); }
.btn-dark { background: var(--black); color: var(--white); }
.btn-dark:hover { background: #222; }
.btn-outline { border-color: var(--black); color: var(--black); }
.btn-outline:hover { background: var(--black); color: var(--white); }
.btn-outline-light { border-color: rgba(255, 255, 255, .5); color: var(--white); }
.btn-outline-light:hover { background: var(--white); color: var(--black); }
.text-link { font-weight: 700; display: inline-flex; align-items: center; gap: 6px; color: var(--green); }
.text-link:hover { color: var(--green-dark); }

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255, 255, 255, .95); backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }
.header-inner { height: var(--header-h); display: flex; align-items: center; justify-content: space-between; gap: 24px; }
/* Stacked logo: 50px tall on desktop (within the 48–52px target) */
.brand { display: flex; align-items: center; line-height: 0; }
.brand img { height: 50px; width: auto; }
.main-nav { display: flex; align-items: center; gap: 26px; font-size: 14px; font-weight: 500; }
.main-nav > a:not(.btn) { position: relative; padding: 6px 0; }
.main-nav > a:not(.btn)::after { content: ""; position: absolute; left: 0; bottom: 0; height: 2px; width: 0; background: var(--red); transition: width .25s; }
.main-nav > a:not(.btn):hover::after, .main-nav > a.active::after { width: 100%; }
.main-nav > a.active { font-weight: 700; }
.nav-cta { padding: 11px 18px; }
.menu-toggle { display: none; }

/* ---------- Page hero (inner pages) ---------- */
.page-hero { background: var(--black); color: var(--white); padding: 90px 0 80px; position: relative; overflow: hidden; }
.page-hero::after { content: ""; position: absolute; right: -120px; top: -120px; width: 420px; height: 420px; border-radius: 50%; border: 60px solid var(--red); opacity: .9; }
.page-hero::before { content: ""; position: absolute; right: 140px; bottom: -160px; width: 260px; height: 260px; border-radius: 50%; background: var(--green); opacity: .85; }
.page-hero .container { position: relative; z-index: 2; }
.page-hero h1 { font-size: clamp(40px, 6vw, 76px); max-width: 820px; margin-bottom: 22px; }
.page-hero p.lede { max-width: 560px; color: rgba(255, 255, 255, .72); font-size: 18px; margin: 0; }
.breadcrumb { font-size: 13px; color: rgba(255, 255, 255, .55); margin-bottom: 26px; }
.breadcrumb a:hover { color: var(--white); }

/* ---------- Home hero ---------- */
.hero { padding: 80px 0 60px; overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 50px; align-items: center; }
.hero h1 { font-size: clamp(44px, 6.4vw, 84px); margin-bottom: 26px; }
.hero .lede { font-size: 18px; color: var(--muted); max-width: 520px; margin-bottom: 34px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }
.hero-stats { display: flex; gap: 40px; margin-top: 50px; padding-top: 28px; border-top: 1px solid var(--line); }
.hero-stats strong { display: block; font-family: var(--font-head); font-size: 30px; letter-spacing: -.04em; }
.hero-stats span { font-size: 13px; color: var(--muted); }

.hero-visual { position: relative; height: 500px; }
.hv-card { position: absolute; border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; }
.hv-main { inset: 20px 40px 70px 30px; background: var(--black); color: var(--white); padding: 34px; display: flex; flex-direction: column; justify-content: space-between; transform: rotate(-3deg); }
.hv-main .hv-kicker { font-size: 11px; letter-spacing: .16em; font-weight: 700; color: rgba(255, 255, 255, .6); }
.hv-main .hv-word { font-family: var(--font-head); font-weight: 800; font-size: clamp(44px, 5vw, 70px); line-height: .9; letter-spacing: -.06em; }
.hv-main .hv-word em { font-style: normal; color: var(--red); }
.hv-main .hv-foot { display: flex; justify-content: space-between; font-size: 12px; color: rgba(255, 255, 255, .6); }
.hv-red { width: 150px; height: 150px; border-radius: 50%; background: var(--red); right: 0; top: 0; display: grid; place-items: center; color: var(--white); font-weight: 800; font-family: var(--font-head); text-align: center; font-size: 14px; line-height: 1.2; transform: rotate(10deg); }
.hv-green { left: 0; bottom: 20px; background: var(--green); color: var(--white); padding: 18px 22px; font-weight: 700; font-size: 14px; display: flex; align-items: center; gap: 10px; }
.hv-white { right: 10px; bottom: 0; background: var(--white); padding: 14px 18px; font-size: 13px; border: 1px solid var(--line); }
.hv-white b { display: block; font-family: var(--font-head); font-size: 22px; color: var(--red); }

/* ---------- Intro band ---------- */
.intro-band { background: var(--black); color: var(--white); padding: 70px 0; }
.intro-band p.big { font-family: var(--font-head); font-size: clamp(24px, 3.2vw, 40px); font-weight: 700; letter-spacing: -.035em; line-height: 1.25; max-width: 980px; margin: 0; }
.intro-band p.big span { color: var(--red); }
.marquee { overflow: hidden; border-top: 1px solid rgba(255, 255, 255, .12); margin-top: 50px; padding-top: 24px; white-space: nowrap; }
.marquee-track { display: inline-flex; gap: 46px; animation: marquee 32s linear infinite; font-size: 13px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: rgba(255, 255, 255, .55); }
.marquee-track span::after { content: "✳"; color: var(--red); margin-left: 46px; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Service cards (home) ---------- */
.services-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 20px; }
.service-card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; display: flex; flex-direction: column; gap: 14px; position: relative; transition: transform .25s, box-shadow .25s, border-color .25s; }
.service-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: transparent; }
.service-card .num { font-size: 12px; color: var(--muted); font-weight: 700; letter-spacing: .1em; }
.service-card .s-icon { width: 48px; height: 48px; border-radius: 12px; background: rgba(8, 123, 66, .1); color: var(--green); display: grid; place-items: center; }
.service-card .s-icon .icon { width: 24px; height: 24px; }
.service-card h3 { font-size: 20px; }
.service-card p { color: var(--muted); font-size: 14px; margin: 0; flex: 1; }
.service-card .text-link { font-size: 14px; }
.service-card::after { content: ""; position: absolute; left: 28px; right: 28px; bottom: 0; height: 3px; background: var(--red); transform: scaleX(0); transform-origin: left; transition: transform .3s; }
.service-card:hover::after { transform: scaleX(1); }

/* ---------- Services detail page ---------- */
.service-index { display: flex; flex-wrap: wrap; gap: 10px; }
.service-index a { border: 1px solid var(--line); padding: 9px 16px; border-radius: 100px; font-size: 13px; font-weight: 500; background: var(--white); transition: all .2s; }
.service-index a:hover { background: var(--green); border-color: var(--green); color: var(--white); }
.service-block { padding: 90px 0; border-bottom: 1px solid var(--line); }
.service-block:nth-child(even) { background: var(--paper); }
.service-layout { display: grid; grid-template-columns: .85fr 1.15fr; gap: 70px; align-items: start; }
.service-aside { position: sticky; top: calc(var(--header-h) + 30px); }
.service-aside .big-num { font-family: var(--font-head); font-size: 90px; font-weight: 800; line-height: 1; letter-spacing: -.06em; color: transparent; -webkit-text-stroke: 1.5px var(--red); margin-bottom: 18px; }
.service-aside h2 { font-size: clamp(30px, 3.4vw, 44px); margin-bottom: 20px; }
.service-aside p { color: var(--muted); font-size: 17px; margin-bottom: 28px; }
.service-visual { height: 200px; border-radius: var(--radius); background: var(--black); position: relative; overflow: hidden; margin-bottom: 30px; display: grid; place-items: center; color: var(--white); }
.service-visual .icon { width: 70px; height: 70px; color: var(--white); position: relative; z-index: 2; }
.service-visual::before { content: ""; position: absolute; width: 220px; height: 220px; border-radius: 50%; border: 34px solid var(--red); left: -60px; top: -80px; }
.service-visual::after { content: ""; position: absolute; width: 140px; height: 140px; border-radius: 50%; background: var(--green); right: -30px; bottom: -50px; }
.detail-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
.detail-card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 30px; }
.detail-card h3 { font-size: 15px; letter-spacing: .08em; text-transform: uppercase; margin-bottom: 18px; }
.check-list li { display: flex; gap: 12px; padding: 10px 0; border-bottom: 1px dashed var(--line); font-size: 15px; }
.check-list li:last-child { border-bottom: 0; }
.check-list .icon { color: var(--green); margin-top: 3px; }
.outcomes { background: var(--black); color: var(--white); border-color: var(--black); }
.outcomes .check-list li { border-color: rgba(255, 255, 255, .15); }
.outcomes .check-list .icon { color: var(--red); }
.service-cta { margin-top: 28px; display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }

/* ---------- Portfolio ---------- */
.filters { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 36px; }
.filter-btn { border: 1px solid var(--line); background: var(--white); padding: 10px 18px; border-radius: 100px; font-size: 13px; font-weight: 500; cursor: pointer; font-family: inherit; transition: all .2s; }
.filter-btn:hover { border-color: var(--black); }
.filter-btn.active { background: var(--green); border-color: var(--green); color: var(--white); }
.work-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.work-card { border-radius: var(--radius); overflow: hidden; background: var(--white); border: 1px solid var(--line); transition: transform .25s, box-shadow .25s; }
.work-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.work-card.is-hidden { display: none; }
.work-media { aspect-ratio: 4 / 3.4; overflow: hidden; background: var(--paper); }
.work-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.work-card:hover .work-media img { transform: scale(1.05); }
.work-body { padding: 20px 22px 24px; }
.work-body .tag { font-size: 11px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--red); }
.work-body h3 { font-size: 19px; margin: 8px 0 4px; }
.work-body .client { font-size: 13px; font-weight: 700; color: var(--ink); margin-bottom: 8px; }
.work-body p { font-size: 14px; color: var(--muted); margin: 0; }
.media-placeholder { width: 100%; height: 100%; background: var(--black); color: var(--white); display: flex; flex-direction: column; justify-content: flex-end; gap: 6px; padding: 22px; position: relative; overflow: hidden; }
.media-placeholder::before { content: ""; position: absolute; width: 180px; height: 180px; border-radius: 50%; border: 30px solid var(--red); right: -50px; top: -60px; }
.media-placeholder::after { content: ""; position: absolute; width: 90px; height: 90px; border-radius: 50%; background: var(--green); right: 60px; top: 70px; }
.ph-cat { font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: rgba(255, 255, 255, .6); position: relative; z-index: 1; }
.ph-title { font-family: var(--font-head); font-weight: 800; font-size: 22px; letter-spacing: -.03em; line-height: 1.1; position: relative; z-index: 1; }
.ph-note { font-size: 11px; color: rgba(255, 255, 255, .45); position: relative; z-index: 1; }

/* ---------- Products ---------- */
.product-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 26px; }
.product-card { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--white); display: flex; flex-direction: column; }
.product-screen { background: var(--black); padding: 22px 22px 0; }
.screen-window { background: var(--white); border-radius: 10px 10px 0 0; height: 170px; overflow: hidden; }
.screen-bar { height: 28px; background: #ececec; display: flex; align-items: center; gap: 6px; padding: 0 12px; }
.screen-bar i { width: 8px; height: 8px; border-radius: 50%; background: #c9c9c9; }
.screen-bar i:first-child { background: var(--red); }
.screen-bar i:nth-child(2) { background: var(--green); }
.screen-body { display: grid; grid-template-columns: 70px 1fr; height: calc(100% - 28px); }
.screen-side { background: var(--paper); border-right: 1px solid var(--line); padding: 12px 10px; display: flex; flex-direction: column; gap: 8px; }
.screen-side b { height: 7px; border-radius: 4px; background: #d8d6d2; }
.screen-side b:first-child { background: var(--green); }
.screen-main { padding: 14px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; align-content: start; }
.screen-main span { height: 46px; border-radius: 6px; background: var(--paper); border: 1px solid var(--line); }
.screen-main span:first-child { background: rgba(8, 123, 66, .12); }
.screen-main span:nth-child(2) { background: rgba(189, 31, 53, .1); }
.screen-main em { grid-column: 1 / -1; height: 50px; border-radius: 6px; background: linear-gradient(90deg, var(--paper) 0 60%, rgba(8, 123, 66, .15) 60%); }
.product-body { padding: 28px; display: flex; flex-direction: column; gap: 12px; flex: 1; }
.product-body .tag { font-size: 11px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--red); }
.product-body h3 { font-size: 24px; }
.product-body p { color: var(--muted); margin: 0; }
.feature-tags { display: flex; flex-wrap: wrap; gap: 8px; margin: 6px 0 10px; }
.feature-tags span { font-size: 12px; padding: 6px 12px; border-radius: 100px; background: var(--paper); border: 1px solid var(--line); }
.product-body .btn { align-self: flex-start; margin-top: auto; }

/* ---------- Process ---------- */
.process-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.process-step { padding: 28px; border-radius: var(--radius); border: 1px solid rgba(255, 255, 255, .14); }
.process-step .step-num { font-size: 12px; font-weight: 700; letter-spacing: .14em; color: var(--red); }
.process-step h3 { font-size: 26px; margin: 26px 0 10px; }
.process-step p { color: rgba(255, 255, 255, .65); font-size: 14px; margin: 0; }

/* ---------- About ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 70px; align-items: center; }
.split h2 { font-size: clamp(32px, 4vw, 50px); margin-bottom: 24px; }
.split p { color: var(--muted); font-size: 17px; }
.about-visual { aspect-ratio: 1 / 1; border-radius: var(--radius); background: var(--paper); display: grid; place-items: center; position: relative; overflow: hidden; }
.about-visual img { width: 62%; position: relative; z-index: 2; mix-blend-mode: multiply; }
.about-visual::before { content: ""; position: absolute; inset: 12%; border-radius: 50%; border: 1px dashed rgba(5, 5, 5, .2); }
.values-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.value-card { padding: 30px; border-radius: var(--radius); background: var(--white); border: 1px solid var(--line); }
.value-card .v-dot { width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; color: var(--white); background: var(--green); margin-bottom: 20px; }
.value-card:nth-child(3n+2) .v-dot { background: var(--red); }
.value-card:nth-child(3n+3) .v-dot { background: var(--black); }
.value-card h3 { font-size: 20px; margin-bottom: 10px; }
.value-card p { color: var(--muted); font-size: 14px; margin: 0; }
.facts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-top: 50px; }
.fact { border-top: 3px solid var(--red); padding-top: 18px; }
.fact strong { font-family: var(--font-head); font-size: 22px; display: block; letter-spacing: -.03em; }
.fact span { color: var(--muted); font-size: 14px; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: 60px; align-items: start; }
.contact-cards { display: flex; flex-direction: column; gap: 16px; }
.contact-card { display: flex; gap: 16px; align-items: flex-start; padding: 22px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--white); }
.contact-card .c-icon { width: 46px; height: 46px; border-radius: 12px; background: var(--black); color: var(--white); display: grid; place-items: center; flex: none; }
.contact-card h3 { font-size: 15px; margin-bottom: 4px; }
.contact-card p, .contact-card a { margin: 0; color: var(--muted); font-size: 15px; }
.contact-card a:hover { color: var(--green); }
.quote-form { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 40px; box-shadow: var(--shadow); }
.quote-form h2 { font-size: 30px; margin-bottom: 8px; }
.quote-form > p { color: var(--muted); margin-bottom: 26px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { display: flex; flex-direction: column; gap: 7px; margin-bottom: 18px; }
.field label { font-size: 13px; font-weight: 700; }
.field label .req { color: var(--red); }
.field input, .field select, .field textarea { font: inherit; font-size: 15px; padding: 13px 15px; border: 1px solid rgba(5, 5, 5, .2); border-radius: 10px; background: var(--white); color: var(--ink); transition: border-color .2s, box-shadow .2s; width: 100%; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--green); box-shadow: 0 0 0 3px rgba(8, 123, 66, .15); }
.field textarea { min-height: 140px; resize: vertical; }
.field .error { color: var(--red); font-size: 13px; }
.field.has-error input, .field.has-error select, .field.has-error textarea { border-color: var(--red); }
.hp-field { position: absolute; left: -9999px; }
.alert { padding: 16px 18px; border-radius: 10px; margin-bottom: 22px; font-size: 15px; }
.alert-success { background: rgba(8, 123, 66, .1); color: var(--green-dark); border: 1px solid rgba(8, 123, 66, .3); }
.alert-error { background: rgba(189, 31, 53, .08); color: var(--red-dark); border: 1px solid rgba(189, 31, 53, .3); }
.form-note { font-size: 13px; color: var(--muted); margin: 14px 0 0; }

/* ---------- CTA band & footer ---------- */
.cta-band { background: var(--black); color: var(--white); padding: 80px 0; border-bottom: 1px solid rgba(255, 255, 255, .1); }
.cta-inner { display: flex; justify-content: space-between; align-items: end; gap: 40px; flex-wrap: wrap; }
.cta-band h2 { font-size: clamp(38px, 5.5vw, 72px); }
.cta-actions { display: flex; gap: 14px; flex-wrap: wrap; }
.site-footer { background: var(--black); color: rgba(255, 255, 255, .7); padding: 70px 0 28px; font-size: 14px; }
.footer-grid { display: grid; grid-template-columns: 1.2fr 1.3fr .8fr 1.1fr; gap: 40px; padding-bottom: 50px; }
/* Logo has a white background, so it sits on a white tile in the dark footer */
.footer-logo { display: inline-block; background: var(--white); border-radius: 12px; padding: 10px 12px; line-height: 0; margin-bottom: 18px; }
.footer-logo img { height: 64px; width: auto; }
.site-footer h3 { color: var(--white); font-size: 14px; letter-spacing: .1em; text-transform: uppercase; margin-bottom: 18px; }
.site-footer li { margin-bottom: 10px; }
.site-footer a:hover { color: var(--white); }
.footer-contact li { display: flex; gap: 10px; align-items: center; }
.footer-contact .icon { color: var(--red); }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, .12); padding-top: 22px; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: 13px; color: rgba(255, 255, 255, .5); }
.whatsapp-float { position: fixed; right: 20px; bottom: 20px; width: 56px; height: 56px; border-radius: 50%; background: var(--green); color: var(--white); display: grid; place-items: center; box-shadow: 0 10px 25px rgba(0, 0, 0, .25); z-index: 40; transition: transform .2s; }
.whatsapp-float:hover { transform: scale(1.08); }
.whatsapp-float .icon { width: 26px; height: 26px; }

/* ---------- Reveal on scroll ---------- */
.js .reveal { opacity: 0; transform: translateY(22px); transition: opacity .6s ease, transform .6s ease; }
.js .reveal.visible { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 1040px) {
    .work-grid { grid-template-columns: repeat(2, 1fr); }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .process-grid { grid-template-columns: repeat(2, 1fr); }
    .service-layout { grid-template-columns: 1fr; gap: 36px; }
    .service-aside { position: static; }
}
@media (max-width: 1120px) {
    :root { --header-h: 66px; }
    /* Mobile logo: 42px tall (within the 40–44px target) */
    .brand img { height: 42px; }
    .menu-toggle { display: flex; flex-direction: column; justify-content: center; gap: 5px; width: 42px; height: 42px; background: none; border: 0; cursor: pointer; padding: 8px; }
    .menu-toggle span { height: 2px; background: var(--black); border-radius: 2px; transition: transform .25s, opacity .25s; }
    .menu-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
    .menu-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
    .menu-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
    .main-nav { display: none; position: absolute; top: var(--header-h); left: 0; right: 0; background: var(--white); flex-direction: column; align-items: stretch; gap: 4px; padding: 14px 24px 24px; border-bottom: 1px solid var(--line); box-shadow: 0 20px 30px rgba(0, 0, 0, .06); font-size: 16px; }
    .main-nav.open { display: flex; }
    .main-nav > a:not(.btn) { padding: 12px 0; border-bottom: 1px solid var(--line); }
    .main-nav > a:not(.btn)::after { display: none; }
    .main-nav > a.active { color: var(--red); }
    .nav-cta { justify-content: center; margin-top: 12px; }
}
@media (max-width: 860px) {
    .hero-grid, .split, .contact-grid { grid-template-columns: 1fr; gap: 44px; }
    .hero-visual { height: 400px; }
    .section-head { flex-direction: column; align-items: start; gap: 16px; }
    .product-grid, .values-grid { grid-template-columns: 1fr; }
    .facts { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 620px) {
    .container { width: calc(100% - 32px); }
    .section { padding: 70px 0; }
    .service-block { padding: 64px 0; }
    .page-hero { padding: 64px 0 60px; }
    .page-hero::after { width: 240px; height: 240px; border-width: 36px; right: -110px; top: -90px; }
    .page-hero::before { width: 150px; height: 150px; right: 30px; bottom: -100px; }
    .hero { padding-top: 50px; }
    .hero-stats { gap: 22px; flex-wrap: wrap; }
    .hero-visual { height: 340px; }
    .hv-main { inset: 20px 10px 70px 10px; padding: 24px; }
    .hv-red { width: 110px; height: 110px; font-size: 12px; }
    .work-grid, .detail-cols, .process-grid, .form-row { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; }
    .quote-form { padding: 26px 20px; }
    .service-aside .big-num { font-size: 64px; }
}
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .js .reveal { opacity: 1; transform: none; transition: none; }
    .marquee-track { animation: none; }
}

/* ---------- Clients ---------- */
.clients-band { border-top: 1px solid var(--line); }
.clients-title { font-size: clamp(26px, 3vw, 36px); margin-bottom: 30px; max-width: 640px; }
.client-list { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.client-list li { border: 1px solid var(--line); border-radius: 12px; background: var(--white); min-width: 0; transition: border-color .2s, box-shadow .2s; }
.client-item { display: flex; align-items: center; gap: 12px; padding: 12px 16px; height: 100%; min-height: 78px; font-weight: 600; font-size: 14px; line-height: 1.3; color: var(--ink); text-decoration: none; }
a.client-item:hover { color: var(--green); }
.client-list li:has(a.client-item):hover { border-color: var(--green); box-shadow: 0 6px 18px rgba(0,0,0,.06); }
.client-logo { width: 72px; height: 52px; flex: none; display: grid; place-items: center; }
.client-logo img { max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; }
.client-mark { width: 36px; height: 36px; border-radius: 50%; flex: none; display: grid; place-items: center; background: var(--black); color: var(--white); font-family: var(--font-head); font-weight: 800; }
.client-list li:nth-child(3n+2) .client-mark { background: var(--red); }
.client-list li:nth-child(3n+3) .client-mark { background: var(--green); }

/* ---------- Testimonials ---------- */
.testimonial-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.testimonial { margin: 0; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 30px; display: flex; flex-direction: column; gap: 18px; }
.t-icon { width: 44px; height: 44px; border-radius: 50%; background: var(--red); color: var(--white); display: grid; place-items: center; }
.testimonial blockquote { margin: 0; font-size: 17px; line-height: 1.6; flex: 1; }
.testimonial figcaption strong { display: block; }
.testimonial figcaption span { color: var(--muted); font-size: 14px; }
.testimonial-empty { background: var(--white); border: 1px dashed rgba(5, 5, 5, .25); border-radius: var(--radius); padding: 34px; display: flex; flex-wrap: wrap; align-items: center; gap: 22px; }
.testimonial-empty p { margin: 0; flex: 1; min-width: 220px; font-size: 17px; }

/* ---------- News ---------- */
.news-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.news-card { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--white); display: flex; flex-direction: column; }
.news-media { aspect-ratio: 16 / 9; background: var(--black); display: block; overflow: hidden; }
.news-media img { width: 100%; height: 100%; object-fit: cover; }
.news-ph { width: 100%; height: 100%; display: grid; place-items: center; color: var(--white); background: radial-gradient(circle at 85% 15%, var(--red) 0 22%, transparent 23%), radial-gradient(circle at 15% 100%, var(--green) 0 25%, transparent 26%), var(--black); }
.news-ph .icon { width: 40px; height: 40px; }
.news-body { padding: 22px 24px 26px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.news-body time { font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--red); }
.news-body h3 { font-size: 20px; }
.news-body h3 a:hover { color: var(--green); }
.news-body p { color: var(--muted); font-size: 15px; margin: 0; flex: 1; }
.article { max-width: 760px; }
.article-image { margin: 0 0 34px; border-radius: var(--radius); overflow: hidden; }
.article-body p { font-size: 18px; line-height: 1.75; margin-bottom: 1.2em; }
.article-foot { display: flex; flex-wrap: wrap; gap: 20px; align-items: center; margin-top: 36px; padding-top: 26px; border-top: 1px solid var(--line); }
.page-hero-article h1 { font-size: clamp(34px, 5vw, 60px); }

/* ---------- Pricing ---------- */
.price-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; align-items: stretch; }
.price-grid-1 { grid-template-columns: minmax(0, 560px); }
.price-grid-2 { grid-template-columns: repeat(2, 1fr); }
.price-card { position: relative; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 32px 28px; display: flex; flex-direction: column; gap: 14px; }
.price-card.is-popular { border: 2px solid var(--green); box-shadow: var(--shadow); }
.popular-badge { position: absolute; top: -13px; left: 28px; background: var(--green); color: var(--white); font-size: 11px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; padding: 5px 12px; border-radius: 100px; }
.price-card h3 { font-size: 22px; }
.price-summary { color: var(--muted); margin: 0; font-size: 15px; }
.price { padding: 16px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.price-from { display: block; font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.price strong { font-family: var(--font-head); font-size: 34px; letter-spacing: -.04em; font-variant-numeric: tabular-nums; }
.price-card .check-list { flex: 1; }
.price-card .btn { align-self: flex-start; }
.payment-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 60px; align-items: start; }
.payment-grid h2 { font-size: clamp(30px, 4vw, 46px); margin-bottom: 26px; }
.pay-steps { margin: 0; padding-left: 22px; display: grid; gap: 14px; color: rgba(255, 255, 255, .75); }
.pay-steps strong { color: var(--white); }
.pay-steps li::marker { color: var(--red); font-weight: 800; }
.mpesa-card { background: var(--white); color: var(--ink); border-radius: var(--radius); padding: 30px; display: flex; flex-direction: column; gap: 14px; }
.mpesa-icon { width: 50px; height: 50px; border-radius: 12px; background: var(--green); color: var(--white); display: grid; place-items: center; }
.mpesa-card h3 { font-size: 22px; }
.mpesa-details { margin: 0; display: grid; gap: 10px; }
.mpesa-details div { display: flex; justify-content: space-between; gap: 16px; border-bottom: 1px dashed var(--line); padding-bottom: 8px; }
.mpesa-details dt { color: var(--muted); font-size: 14px; }
.mpesa-details dd { margin: 0; font-weight: 700; text-align: right; }
.mpesa-number { font-family: var(--font-head); font-size: 22px; color: var(--green); letter-spacing: .04em; }
.mpesa-note { color: var(--muted); font-size: 14px; margin: 0; }
.mpesa-card .btn { align-self: flex-start; }
.price-notes { max-width: 820px; }
.price-notes h2 { font-size: 28px; margin-bottom: 14px; }

@media (max-width: 1040px) {
    .client-list { grid-template-columns: repeat(3, 1fr); }
    .price-grid, .testimonial-grid, .news-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 860px) {
    .payment-grid { grid-template-columns: 1fr; gap: 36px; }
}
@media (max-width: 620px) {
    .client-list { grid-template-columns: 1fr 1fr; gap: 8px; }
    .client-item { padding: 10px; font-size: 13px; gap: 8px; min-height: 62px; }
    .client-logo { width: 44px; height: 36px; }
    .client-mark { width: 28px; height: 28px; font-size: 13px; }
    .price-grid, .price-grid-2, .testimonial-grid, .news-grid { grid-template-columns: 1fr; }
    .price-card { padding: 28px 22px; }
}
