/* ==========================================================================
   Kisanza Builders — Stylesheet
   Brand palette (no gradients):
     --primary:    #033466  (Deep Navy)
     --secondary:  #105B97  (Construction Blue)
     --accent:     #E96711  (Vibrant Orange)
     --white:      #FFFFFF
     --light-grey: #E9E9EA
   ========================================================================== */

:root {
    --primary: #033466;
    --secondary: #105B97;
    --accent: #E96711;
    --accent-dark: #c9540d;
    --white: #FFFFFF;
    --light-grey: #E9E9EA;
    --ink: #0f2238;
    --muted: #5a6b82;
    --line: #d8dde4;
    --navy-tint: #eef3f9;
    --shadow-sm: 0 1px 2px rgba(3, 52, 102, 0.06), 0 1px 3px rgba(3, 52, 102, 0.08);
    --shadow-md: 0 4px 12px rgba(3, 52, 102, 0.10);
    --shadow-lg: 0 12px 32px rgba(3, 52, 102, 0.14);
    --radius: 10px;
    --radius-lg: 16px;
    --container: 1180px;
    --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* Reset */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    color: var(--ink);
    background: var(--white);
    line-height: 1.65;
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}
h1, h2, h3, h4, .brand__logo { font-family: 'Poppins', 'Inter', sans-serif; line-height: 1.2; color: var(--primary); }
img, svg { display: block; max-width: 100%; }
a { color: var(--secondary); text-decoration: none; transition: color .2s var(--ease); }
a:hover { color: var(--accent); }
ul { list-style: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; border-radius: 4px; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 24px; }

.text-accent { color: var(--accent); }

/* Skip link */
.skip-link {
    position: absolute; left: -9999px; top: 0; z-index: 1000;
    background: var(--primary); color: #fff; padding: 10px 18px; border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 0; color: #fff; }

/* ==========================================================================
   Buttons
   ========================================================================== */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    font-family: 'Poppins', sans-serif; font-weight: 600; font-size: 15px;
    padding: 12px 24px; border-radius: var(--radius); border: 2px solid transparent;
    transition: all .25s var(--ease); text-align: center; cursor: pointer;
    white-space: nowrap; min-height: 44px;
}
.btn--accent { background: var(--accent); color: #fff; border-color: var(--accent); }
.btn--accent:hover { background: var(--accent-dark); border-color: var(--accent-dark); color: #fff; transform: translateY(-2px); box-shadow: var(--shadow-md); }
.btn--outline { background: transparent; color: var(--primary); border-color: var(--primary); }
.btn--outline:hover { background: var(--primary); color: #fff; transform: translateY(-2px); }
.btn--ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,0.6); }
.btn--ghost:hover { background: #fff; color: var(--primary); border-color: #fff; }
.btn--sm { padding: 11px 20px; font-size: 14px; min-height: 44px; }
.btn--lg { padding: 15px 32px; font-size: 16px; }
.btn--block { width: 100%; }

/* ==========================================================================
   Top bar
   ========================================================================== */
.topbar { background: var(--primary); color: #fff; font-size: 13px; }
.topbar__inner { display: flex; justify-content: flex-end; gap: 28px; padding-top: 8px; padding-bottom: 8px; flex-wrap: wrap; }
.topbar__item { display: inline-flex; align-items: center; gap: 7px; color: rgba(255,255,255,0.85); min-height: 36px; white-space: nowrap; }
.topbar__item:hover { color: var(--accent); }
.topbar__item .icon { opacity: .9; }

/* ==========================================================================
   Header / Nav
   ========================================================================== */
.header { background: #fff; border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 200; transition: box-shadow .3s var(--ease); overflow: hidden; }
.header.is-scrolled { box-shadow: var(--shadow-md); }
.header__inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding-top: 14px; padding-bottom: 14px; min-width: 0; }
.brand { display: inline-flex; align-items: center; flex-shrink: 0; min-width: 0; }
.brand__logo { height: 100%; width: auto; max-height: 64px; max-width: 100%; display: block; object-fit: contain; }
.brand__logo--footer { max-height: 80px; margin-bottom: 14px; }

.nav { display: flex; align-items: center; gap: 28px; }
.nav__list { display: flex; align-items: center; gap: 4px; }
.nav__link {
    display: inline-block; padding: 8px 12px; font-weight: 500; font-size: 15px;
    color: var(--primary); border-radius: 6px; position: relative;
}
.nav__link::after {
    content: ''; position: absolute; left: 12px; right: 12px; bottom: 2px; height: 2px;
    background: var(--accent); transform: scaleX(0); transform-origin: left; transition: transform .25s var(--ease);
}
.nav__link:hover { color: var(--accent); }
.nav__link:hover::after, .nav__link--active::after { transform: scaleX(1); }
.nav__link--active { color: var(--accent); font-weight: 600; }
.nav__cta { margin-left: 8px; }

.nav-toggle { display: none; flex-direction: column; gap: 5px; padding: 10px; min-width: 44px; min-height: 44px; justify-content: center; align-items: center; }
.nav-toggle span { width: 26px; height: 3px; background: var(--primary); border-radius: 2px; transition: all .3s var(--ease); }
.nav-toggle.is-open span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.nav-toggle.is-open span:nth-child(2) { opacity: 0; }
.nav-toggle.is-open span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* ==========================================================================
   Hero
   ========================================================================== */
.hero { background: var(--white); padding: 72px 0 80px; position: relative; overflow: hidden; }
.hero::before {
    content: ''; position: absolute; top: 0; right: 0; width: 45%; height: 100%;
    background: var(--light-grey); clip-path: polygon(20% 0, 100% 0, 100% 100%, 0 100%); z-index: 0;
}
.hero__inner { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 56px; align-items: center; position: relative; z-index: 1; }
.hero__eyebrow {
    display: inline-block; font-family: 'Poppins', sans-serif; font-weight: 600; font-size: 13px;
    letter-spacing: 2px; text-transform: uppercase; color: var(--accent); margin-bottom: 18px;
    padding: 6px 14px; background: rgba(233,103,17,0.10); border-radius: 999px;
    white-space: nowrap; max-width: 100%; overflow: hidden; text-overflow: ellipsis;
}
.hero__title { font-size: clamp(28px, 5vw, 52px); font-weight: 800; letter-spacing: -0.5px; margin-bottom: 22px; }
.hero__lead { font-size: 18px; color: var(--muted); max-width: 560px; margin-bottom: 32px; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 44px; }
.hero__trust { display: flex; align-items: center; gap: 22px; }
.hero__trust-item { display: flex; flex-direction: column; }
.hero__trust-item strong { font-family: 'Poppins', sans-serif; font-size: 28px; font-weight: 700; color: var(--primary); line-height: 1; }
.hero__trust-item span { font-size: 13px; color: var(--muted); margin-top: 4px; }
.hero__trust-divider { width: 1px; height: 36px; background: var(--line); }

.hero__visual { position: relative; min-height: 380px; display: flex; align-items: flex-end; justify-content: flex-start; }
.hero__image { width: 100%; height: 100%; min-height: 380px; object-fit: cover; border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); display: block; }
.hero__card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); }
.hero__card--float {
    position: absolute; bottom: -10px; left: -20px; padding: 18px 22px; display: flex; flex-direction: column;
    background: var(--primary); color: #fff; border-color: var(--primary);
}
.hero__card-num { font-family: 'Poppins', sans-serif; font-size: 30px; font-weight: 700; color: var(--accent); line-height: 1; }
.hero__card-cap { font-size: 12px; opacity: .9; margin-top: 4px; }

/* ==========================================================================
   Sections
   ========================================================================== */
.section { padding: 80px 0; }
.section--alt { background: var(--light-grey); }
.section__head { text-align: center; max-width: 720px; margin: 0 auto 52px; }
.section__eyebrow {
    font-family: 'Poppins', sans-serif; font-weight: 600; font-size: 13px; letter-spacing: 2px;
    text-transform: uppercase; color: var(--accent); margin-bottom: 12px;
}
.section__title { font-size: clamp(26px, 3.5vw, 38px); font-weight: 700; letter-spacing: -0.3px; }
.section__title--left { text-align: left; margin-top: 40px; margin-bottom: 18px; }
.section__title--left:first-of-type { margin-top: 0; }
.section__intro { font-size: 17px; color: var(--muted); margin-top: 14px; }
.section__cta { text-align: center; margin-top: 44px; }

/* ==========================================================================
   Pillars (service cards)
   ========================================================================== */
.pillars { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.pillar {
    display: flex; flex-direction: column; gap: 14px; background: #fff; border: 1px solid var(--line);
    border-radius: var(--radius-lg); padding: 34px 30px; color: var(--ink);
    transition: all .3s var(--ease); position: relative; overflow: hidden;
}
.pillar::before { content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 4px; background: var(--accent); transform: scaleX(0); transform-origin: left; transition: transform .35s var(--ease); }
.pillar:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: transparent; color: var(--ink); }
.pillar:hover::before { transform: scaleX(1); }
.pillar__icon { width: 64px; height: 64px; border-radius: 14px; background: var(--navy-tint); color: var(--primary); display: flex; align-items: center; justify-content: center; }
.pillar__title { font-size: 22px; font-weight: 600; }
.pillar__text { color: var(--muted); font-size: 15px; flex: 1; }
.pillar__link { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; color: var(--accent); font-size: 14px; }
.pillar__link svg { transition: transform .25s var(--ease); }
.pillar:hover .pillar__link svg { transform: translateX(4px); }

/* ==========================================================================
   Features
   ========================================================================== */
.features { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.feature { padding: 26px 22px; border-left: 3px solid var(--accent); background: #fff; border-radius: 0 var(--radius) var(--radius) 0; box-shadow: var(--shadow-sm); }
.feature__icon { width: 52px; height: 52px; border-radius: 12px; background: var(--navy-tint); color: var(--secondary); display: flex; align-items: center; justify-content: center; margin-bottom: 16px; }
.feature__title { font-size: 18px; font-weight: 600; margin-bottom: 8px; }
.feature__text { font-size: 14px; color: var(--muted); }

/* ==========================================================================
   Projects
   ========================================================================== */
.projects { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.projects--featured { grid-template-columns: repeat(4, 1fr); gap: 22px; }
.project-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; transition: all .3s var(--ease); display: flex; flex-direction: column; }
.project-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: transparent; }
.project-card__media { position: relative; aspect-ratio: 16 / 10; background: var(--navy-tint); overflow: hidden; }
.project-card__img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .5s var(--ease); }
.project-card:hover .project-card__img { transform: scale(1.06); }
.project-card__tag {
    position: absolute; top: 14px; left: 14px; background: var(--accent); color: #fff;
    font-size: 12px; font-weight: 600; padding: 5px 12px; border-radius: 999px; letter-spacing: .3px;
}
.project-card__body { padding: 22px 24px 26px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.project-card__top { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.project-card__title { font-size: 19px; font-weight: 600; }
.project-card__status { font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: .5px; color: var(--accent); background: rgba(233,103,17,0.10); padding: 4px 10px; border-radius: 999px; white-space: nowrap; }
.project-card__meta { font-size: 13px; color: var(--muted); }
.project-card__text { font-size: 14px; color: var(--muted); flex: 1; }

/* Filter bar */
.filter-bar { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-bottom: 40px; }
.filter-chip {
    padding: 10px 20px; border-radius: 999px; border: 1.5px solid var(--line); background: #fff;
    color: var(--primary); font-weight: 500; font-size: 14px; transition: all .2s var(--ease);
    min-height: 44px; display: inline-flex; align-items: center;
}
.filter-chip:hover { border-color: var(--accent); color: var(--accent); }
.filter-chip.is-active { background: var(--primary); border-color: var(--primary); color: #fff; }
.project-card.is-hidden { display: none; }

/* ==========================================================================
   CTA band
   ========================================================================== */
.cta-band { background: var(--primary); color: #fff; padding: 64px 0; }
.cta-band__inner { display: flex; align-items: center; justify-content: space-between; gap: 32px; flex-wrap: wrap; }
.cta-band__title { color: #fff; font-size: clamp(24px, 3vw, 34px); font-weight: 700; margin-bottom: 8px; }
.cta-band__sub { color: rgba(255,255,255,0.85); font-size: 17px; }
.cta-band__actions { display: flex; gap: 14px; flex-wrap: wrap; }

/* ==========================================================================
   Page hero (inner pages)
   ========================================================================== */
.page-hero { background: var(--navy-tint); padding: 64px 0 56px; border-bottom: 1px solid var(--line); position: relative; overflow: hidden; }
.page-hero--with-image { background: var(--primary); }
.page-hero--with-image::before {
    content: ''; position: absolute; inset: 0; background-image: var(--hero-img);
    background-size: cover; background-position: center; opacity: 0.35;
}
.page-hero--with-image .container { position: relative; z-index: 1; }
.page-hero--with-image .page-hero__eyebrow,
.page-hero--with-image .page-hero__title { color: #fff; }
.page-hero--with-image .page-hero__lead { color: rgba(255,255,255,0.9); }
.page-hero__eyebrow {
    font-family: 'Poppins', sans-serif; font-weight: 600; font-size: 13px; letter-spacing: 2px;
    text-transform: uppercase; color: var(--accent); margin-bottom: 12px;
}
.page-hero__title { font-size: clamp(28px, 4vw, 44px); font-weight: 700; letter-spacing: -0.3px; margin-bottom: 14px; }
.page-hero__lead { font-size: 18px; color: var(--muted); max-width: 680px; }

/* Content image (about page) */
.content-image { width: 100%; height: auto; border-radius: var(--radius-lg); margin: 28px 0 12px; box-shadow: var(--shadow-md); display: block; }

/* ==========================================================================
   Two-column (about)
   ========================================================================== */
.two-col { display: grid; grid-template-columns: 1.6fr 1fr; gap: 48px; align-items: start; }
.two-col__main p { margin-bottom: 16px; color: var(--ink); }
.values { display: flex; flex-direction: column; gap: 18px; margin-top: 8px; }
.values__item { display: flex; gap: 16px; align-items: flex-start; }
.values__marker { flex-shrink: 0; width: 14px; height: 14px; margin-top: 6px; background: var(--accent); border-radius: 3px; transform: rotate(45deg); }
.values__item strong { font-family: 'Poppins', sans-serif; font-size: 17px; color: var(--primary); display: block; margin-bottom: 2px; }
.values__item p { font-size: 14px; color: var(--muted); margin: 0; }

/* Aside cards */
.two-col__aside, .form-layout__aside { display: flex; flex-direction: column; gap: 22px; position: sticky; top: 100px; }
.aside-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 26px 24px; box-shadow: var(--shadow-sm); }
.aside-card--accent { background: var(--primary); color: #fff; border-color: var(--primary); }
.aside-card--accent .aside-card__title { color: #fff; }
.aside-card__title { font-size: 17px; font-weight: 600; margin-bottom: 14px; }
.aside-card__big { font-family: 'Poppins', sans-serif; font-weight: 700; color: var(--accent); font-size: 20px; margin-bottom: 10px; }
.aside-card__text { font-size: 14px; color: var(--muted); margin-bottom: 16px; }
.aside-card--accent .aside-card__text { color: rgba(255,255,255,0.85); }
.aside-card .btn { margin-top: 10px; }
.aside-card__steps { display: flex; flex-direction: column; gap: 10px; padding-left: 20px; }
.aside-card__steps li { font-size: 14px; position: relative; }
.aside-card__steps li::marker { color: var(--accent); font-weight: 700; }

/* Steps (about) */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.step { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 28px 24px; position: relative; }
.step__num { font-family: 'Poppins', sans-serif; font-size: 14px; font-weight: 700; color: var(--accent); letter-spacing: 1px; }
.step__title { font-size: 18px; font-weight: 600; margin: 10px 0 8px; }
.step p { font-size: 14px; color: var(--muted); }

/* ==========================================================================
   Service blocks
   ========================================================================== */
.service-block { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; padding: 48px 0; border-bottom: 1px solid var(--line); }
.service-block:last-of-type { border-bottom: none; }
.service-block:nth-child(even) .service-block__media { order: -1; }
.service-block__icon { width: 80px; height: 80px; border-radius: 18px; background: var(--navy-tint); color: var(--primary); display: flex; align-items: center; justify-content: center; margin-bottom: 20px; }
.service-block__title { font-size: 28px; font-weight: 700; margin-bottom: 8px; }
.service-block__lead { font-size: 17px; color: var(--secondary); margin-bottom: 20px; font-weight: 500; }
.service-block__list { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 24px; margin-bottom: 24px; }
.service-block__list li { display: flex; align-items: center; gap: 10px; font-size: 15px; color: var(--ink); }
.service-block__list svg { color: var(--accent); flex-shrink: 0; }
.service-block__media { border-radius: var(--radius-lg); overflow: hidden; aspect-ratio: 4 / 3; box-shadow: var(--shadow-md); }
.service-block__img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* ==========================================================================
   Forms
   ========================================================================== */
.form-layout { display: grid; grid-template-columns: 1.5fr 1fr; gap: 48px; align-items: start; }
.form { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 36px; box-shadow: var(--shadow-sm); }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.form__field { display: flex; flex-direction: column; gap: 7px; margin-bottom: 20px; }
.form__field label { font-size: 14px; font-weight: 600; color: var(--primary); }
.req { color: var(--accent); }
.form__field input, .form__field select, .form__field textarea {
    font-family: inherit; font-size: 16px; padding: 12px 14px; border: 1.5px solid var(--line);
    border-radius: var(--radius); background: #fff; color: var(--ink); transition: border-color .2s var(--ease), box-shadow .2s var(--ease); width: 100%;
}
.form__field input:focus, .form__field select:focus, .form__field textarea:focus {
    border-color: var(--secondary); outline: none; box-shadow: 0 0 0 3px rgba(16,91,151,0.12);
}
.form__field textarea { resize: vertical; min-height: 120px; }
.form__field.invalid input, .form__field.invalid select, .form__field.invalid textarea { border-color: #d64545; }
.form__error { font-size: 12px; color: #d64545; margin-top: 2px; display: none; }
.form__field.invalid .form__error { display: block; }
.form__actions { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; margin-top: 8px; }
.form__note { font-size: 13px; color: var(--muted); }

/* Alert */
.alert { display: flex; gap: 14px; align-items: flex-start; padding: 18px 22px; border-radius: var(--radius); margin-bottom: 24px; }
.alert--success { background: rgba(233,103,17,0.08); border: 1px solid rgba(233,103,17,0.3); color: var(--primary); }
.alert--success svg { color: var(--accent); flex-shrink: 0; }
.alert strong { display: block; font-family: 'Poppins', sans-serif; font-size: 16px; margin-bottom: 2px; }
.alert p { font-size: 14px; color: var(--muted); margin: 0; }

/* Contact lines */
.contact-line { display: flex; align-items: center; gap: 12px; padding: 14px 0; font-size: 15px; color: var(--primary); border-bottom: 1px solid var(--line); min-height: 48px; }
.contact-line:last-child { border-bottom: none; }
.contact-line svg { color: var(--accent); flex-shrink: 0; }
.contact-line:hover { color: var(--accent); }
.contact-line--static { cursor: default; }
.contact-line--static:hover { color: var(--primary); }

/* Hours */
.hours { display: flex; flex-direction: column; gap: 10px; margin-bottom: 14px; }
.hours li { display: flex; justify-content: space-between; font-size: 14px; }
.hours span { color: rgba(255,255,255,0.8); }
.hours strong { color: #fff; }

/* ==========================================================================
   Footer
   ========================================================================== */
.footer { background: var(--primary); color: rgba(255,255,255,0.85); padding: 64px 0 0; }
.footer__grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.2fr; gap: 40px; padding-bottom: 48px; }
.footer__col--brand .brand__logo { margin-bottom: 16px; }
.footer__tagline { font-family: 'Poppins', sans-serif; font-weight: 600; color: var(--accent); letter-spacing: 1px; font-size: 13px; text-transform: uppercase; margin-bottom: 14px; }
.footer__about { font-size: 14px; color: rgba(255,255,255,0.75); max-width: 320px; }
.footer__heading { color: #fff; font-size: 16px; font-weight: 600; margin-bottom: 18px; }
.footer__links li, .footer__contact li { margin-bottom: 10px; font-size: 14px; }
.footer__links a, .footer__contact a { color: rgba(255,255,255,0.75); }
.footer__links a:hover, .footer__contact a:hover { color: var(--accent); }
.footer__bottom { border-top: 1px solid rgba(255,255,255,0.15); padding: 20px 0; font-size: 13px; }
.footer__bottom-inner { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 8px; }
.footer__credit { color: var(--accent); font-weight: 600; }

/* ==========================================================================
   Floating action buttons
   ========================================================================== */
.fab-group { position: fixed; right: 22px; bottom: 22px; z-index: 90; display: flex; flex-direction: column; gap: 12px; }
.fab {
    width: 56px; height: 56px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
    color: #fff; box-shadow: var(--shadow-lg); transition: transform .25s var(--ease), box-shadow .25s var(--ease);
    position: relative;
}
.fab:hover { transform: scale(1.08); color: #fff; }
.fab--whatsapp { background: #25D366; }
.fab--whatsapp:hover { box-shadow: 0 8px 24px rgba(37,211,102,0.45); }
.fab--call { background: var(--accent); }
.fab--call:hover { box-shadow: 0 8px 24px rgba(233,103,17,0.45); }
.fab__label {
    position: absolute; right: 68px; top: 50%; transform: translateY(-50%) translateX(8px);
    background: var(--primary); color: #fff; font-size: 13px; font-weight: 600; padding: 6px 12px;
    border-radius: 6px; white-space: nowrap; opacity: 0; pointer-events: none; transition: all .25s var(--ease);
}
.fab__label::after { content: ''; position: absolute; right: -5px; top: 50%; transform: translateY(-50%); border: 5px solid transparent; border-left-color: var(--primary); }
.fab:hover .fab__label { opacity: 1; transform: translateY(-50%) translateX(0); }
/* Pulse ring for WhatsApp */
.fab--whatsapp::before { content: ''; position: absolute; inset: 0; border-radius: 50%; background: #25D366; opacity: .5; z-index: -1; animation: pulse 2.4s ease-out infinite; }
@keyframes pulse { 0% { transform: scale(1); opacity: .5; } 70% { transform: scale(1.6); opacity: 0; } 100% { transform: scale(1.6); opacity: 0; } }

/* ==========================================================================
   Scroll reveal
   ========================================================================== */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
    .reveal { opacity: 1; transform: none; transition: none; }
    * { animation: none !important; scroll-behavior: auto !important; }
}

/* ==========================================================================
   Responsive — breakpoints: 1024px, 768px, 560px, 480px, 360px
   Strategy: keep 2-col grids on tablets, use 2-col for compact grids on
   large phones, 1-col only on small phones. Reduce padding progressively.
   ========================================================================== */

/* ---- Tablet landscape (≤1024px) ---- */
@media (max-width: 1024px) {
    .hero__inner { grid-template-columns: 1fr; gap: 24px; }
    .hero::before { display: none; }
    .hero__visual { order: -1; min-height: 300px; }
    .hero__image { min-height: 300px; }
    /* Show hero content immediately on mobile — no reveal delay */
    .hero__content.reveal { opacity: 1; transform: none; transition: none; }
    .pillars { grid-template-columns: 1fr 1fr; }
    .features { grid-template-columns: 1fr 1fr; }
    .projects, .projects--featured { grid-template-columns: 1fr 1fr; }
    .steps { grid-template-columns: 1fr 1fr; }
    .two-col { grid-template-columns: 1fr; }
    .two-col__aside { position: static; }
    .form-layout { grid-template-columns: 1fr; }
    .form-layout__aside { position: static; }
    .footer__grid { grid-template-columns: 1fr 1fr; }
    .service-block { grid-template-columns: 1fr; gap: 28px; padding: 36px 0; }
    .service-block:nth-child(even) .service-block__media { order: 0; }
    .service-block__list { grid-template-columns: 1fr 1fr; }
}

/* ---- Tablet portrait / large phone (≤768px) ---- */
@media (max-width: 768px) {
    .container { padding: 0 18px; }
    .topbar__inner { gap: 12px; justify-content: center; flex-wrap: wrap; }
    .topbar__item { font-size: 12px; }

    /* Header — prevent overflow, allow logo to shrink */
    .header__inner { gap: 12px; }
    .brand { flex-shrink: 1; max-width: calc(100vw - 80px); }
    .brand__logo { max-height: 48px; }

    /* Mobile slide-in nav */
    .nav {
        position: fixed; top: 0; right: 0; height: 100vh; width: min(320px, 85vw); background: #fff;
        flex-direction: column; align-items: stretch; gap: 0; padding: 80px 24px 24px;
        box-shadow: -12px 0 40px rgba(3,52,102,0.18); transform: translateX(100%);
        transition: transform .35s var(--ease); z-index: 110; overflow-y: auto;
    }
    .nav.is-open { transform: translateX(0); }
    .nav__list { flex-direction: column; align-items: stretch; gap: 0; }
    .nav__list li { border-bottom: 1px solid var(--line); }
    .nav__link { display: block; padding: 16px 8px; font-size: 17px; border-radius: 0; min-height: 52px; }
    .nav__link::after { display: none; }
    .nav__cta { margin: 18px 0 0; }
    .nav-toggle { display: flex; z-index: 120; position: relative; }
    body.nav-open { overflow: hidden; }
    .nav-backdrop { position: fixed; inset: 0; background: rgba(3,52,102,0.45); z-index: 150; opacity: 0; pointer-events: none; transition: opacity .3s var(--ease); }
    .nav-backdrop.is-open { opacity: 1; pointer-events: auto; }

    /* Hero — tighter on mobile */
    .hero { padding: 36px 0 40px; }
    .hero__inner { gap: 20px; }
    .hero__eyebrow { margin-bottom: 12px; letter-spacing: 1px; font-size: 12px; }
    .hero__title { margin-bottom: 16px; }
    .hero__lead { margin-bottom: 24px; }
    .hero__actions { margin-bottom: 32px; }
    .hero__trust { gap: 16px; flex-wrap: wrap; justify-content: center; }
    .hero__trust-divider { display: none; }
    .hero__card--float { left: 0; }
    .hero__visual { min-height: 240px; }
    .hero__image { min-height: 240px; }

    /* Sections — reduced padding */
    .section { padding: 48px 0; }
    .section__head { margin-bottom: 32px; }
    .page-hero { padding: 44px 0 36px; }

    /* CTA band — reduce padding (was 64px, not reduced before) */
    .cta-band { padding: 48px 0; }
    .cta-band__inner { flex-direction: column; align-items: flex-start; }

    /* Footer — reduce padding */
    .footer { padding: 48px 0 0; }
    .footer__grid { padding-bottom: 32px; }
    .footer__bottom-inner { justify-content: center; text-align: center; }

    /* Forms — single column rows, tighter padding */
    .form { padding: 24px 20px; }
    .form__row { grid-template-columns: 1fr; gap: 0; }

    /* Service blocks — already 1-col from 1024px, tighten padding */
    .service-block { gap: 20px; padding: 32px 0; }
    .service-block__icon { width: 64px; height: 64px; }

    /* FABs — slightly smaller, closer to edge */
    .fab-group { right: 16px; bottom: 16px; gap: 10px; }
    .fab { width: 50px; height: 50px; }
    .fab__label { display: none; }
}

/* ---- Large phone (≤560px) ---- */
/* Keep 2-col for compact grids (features, steps, footer) to reduce scroll.
   Switch content-heavy grids (pillars, projects) to 1-col. */
@media (max-width: 560px) {
    .pillars { grid-template-columns: 1fr 1fr; gap: 10px; }
    .pillar { padding: 16px 12px; gap: 8px; }
    .pillar__icon { width: 44px; height: 44px; border-radius: 12px; }
    .pillar__icon svg { width: 28px; height: 28px; }
    .pillar__title { font-size: 16px; }
    .pillar__text { font-size: 13px; }
    .pillar__link { font-size: 13px; }
    .projects { grid-template-columns: 1fr; }
    .projects--featured { grid-template-columns: 1fr 1fr; gap: 10px; }
    .projects--featured .project-card__body { padding: 12px 10px 14px; gap: 5px; }
    .projects--featured .project-card__title { font-size: 15px; }
    .projects--featured .project-card__text { font-size: 12px; }
    .projects--featured .project-card__meta { font-size: 11px; }
    .projects--featured .project-card__tag { font-size: 10px; padding: 3px 8px; top: 8px; left: 8px; }
    .service-block__list { grid-template-columns: 1fr; }
    .section { padding: 40px 0; }
    .section__head { margin-bottom: 28px; }
    .cta-band { padding: 40px 0; }
    .hero { padding: 28px 0 32px; }
    .hero__inner { gap: 16px; }
    .hero__lead { font-size: 16px; margin-bottom: 20px; }
    .hero__actions { margin-bottom: 24px; }
    .page-hero { padding: 36px 0 32px; }
    .footer { padding: 40px 0 0; }
    .footer__grid { padding-bottom: 28px; }
}

/* ---- Standard phone (≤480px) ---- */
@media (max-width: 480px) {
    .brand__logo { max-height: 40px; }
    .brand { max-width: calc(100vw - 70px); }
    .header__inner { padding-top: 8px; padding-bottom: 8px; gap: 10px; }
    .hero__actions { flex-wrap: nowrap; }
    .hero__actions .btn { flex: 1; min-width: 0; padding-left: 12px; padding-right: 12px; font-size: 14px; }
    .hero__card--float { padding: 14px 18px; }
    .hero__card-num { font-size: 26px; }
    .features { grid-template-columns: 1fr 1fr; gap: 10px; }
    .feature { padding: 14px 12px; }
    .feature__icon { width: 38px; height: 38px; border-radius: 10px; margin-bottom: 10px; }
    .feature__icon svg { width: 22px; height: 22px; }
    .feature__title { font-size: 15px; margin-bottom: 4px; }
    .feature__text { font-size: 12px; }
    .steps { grid-template-columns: 1fr; }
    .footer__grid { grid-template-columns: 1fr 1fr; gap: 16px; }
    .footer__col--brand { grid-column: 1 / -1; margin-bottom: 8px; }
    .footer__col:last-child { grid-column: 1 / -1; }
    .footer__heading { font-size: 14px; margin-bottom: 10px; }
    .footer__links li, .footer__contact li { margin-bottom: 6px; font-size: 13px; }
    .cta-band__actions { flex-wrap: nowrap; }
    .cta-band__actions .btn { flex: 1; min-width: 0; padding-left: 12px; padding-right: 12px; font-size: 14px; }
    .form__actions .btn { width: 100%; }
    .form__actions { flex-direction: column; align-items: stretch; gap: 10px; }
    .form__note { text-align: center; }
}

/* ---- Small phone (≤360px) ---- */
@media (max-width: 360px) {
    .container { padding: 0 14px; }
    .brand__logo { max-height: 36px; }
    .brand { max-width: calc(100vw - 60px); }
    .header__inner { gap: 8px; }
    .hero__eyebrow { font-size: 10px; letter-spacing: 0.5px; padding: 5px 10px; }
    .hero__actions .btn { font-size: 13px; padding-left: 10px; padding-right: 10px; }
    .pillar { padding: 14px 10px; }
    .pillar__title { font-size: 15px; }
    .pillar__text { font-size: 12px; }
    .feature { padding: 12px 10px; }
    .feature__title { font-size: 14px; }
    .feature__text { font-size: 11px; }
    .projects--featured .project-card__body { padding: 10px 8px 12px; }
    .projects--featured .project-card__title { font-size: 13px; }
    .projects--featured .project-card__text { font-size: 11px; }
    .hero__title { font-size: 26px; }
    .section__title { font-size: 22px; }
    .page-hero__title { font-size: 24px; }
    .cta-band__title { font-size: 22px; }
    .cta-band__actions .btn { font-size: 13px; padding-left: 10px; padding-right: 10px; }
    .hero__trust { gap: 12px; }
    .hero__trust-item strong { font-size: 24px; }
    .hero__trust-item span { font-size: 12px; }
    .footer__grid { gap: 10px; }
    .footer__heading { font-size: 13px; margin-bottom: 8px; }
    .footer__links li, .footer__contact li { font-size: 12px; margin-bottom: 5px; }
    .section { padding: 36px 0; }
    .hero { padding: 24px 0 28px; }
    .hero__inner { gap: 14px; }
}
