/* ===================================================================
   MCB BROTHERS CONSTRUCTION — Bold Industrial Theme
   Static, dependency-free. Edit color tokens in :root below.
   =================================================================== */

/* ----------  Design tokens  ---------- */
:root {
  --bg:        #0e0f12;   /* near-black charcoal           */
  --bg-2:      #15171c;   /* raised surface                */
  --bg-3:      #1c1f26;   /* cards / inputs                */
  --line:      #2a2e37;   /* hairline borders              */
  --text:      #f4f5f7;   /* primary text                  */
  --muted:     #9aa0ac;   /* secondary text                */
  --accent:    #ffb400;   /* safety amber                  */
  --accent-2:  #ff7a18;   /* construction orange           */
  --accent-ink:#161106;   /* text on accent                */

  --maxw: 1240px;
  --radius: 14px;
  --ease: cubic-bezier(.22, 1, .36, 1);

  --font-display: 'Anton', 'Oswald', sans-serif;
  --font-head:    'Oswald', sans-serif;
  --font-body:    'Inter', system-ui, sans-serif;
}

/* ----------  Reset  ---------- */
*,*::before,*::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }
svg { fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

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

/* ----------  Selection & scrollbar  ---------- */
::selection { background: var(--accent); color: var(--accent-ink); }
::-webkit-scrollbar { width: 11px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: #33373f; border-radius: 6px; border: 2px solid var(--bg); }
::-webkit-scrollbar-thumb:hover { background: var(--accent); }

/* ----------  Scroll progress  ---------- */
.scroll-progress {
  position: fixed; top: 0; left: 0; height: 3px; width: 0%;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  z-index: 1000; transition: width .1s linear;
}

/* ----------  Buttons  ---------- */
.btn {
  --pad: .85em 1.5em;
  display: inline-flex; align-items: center; gap: .55em;
  padding: var(--pad);
  font-family: var(--font-head);
  font-weight: 600; font-size: .95rem; letter-spacing: .04em; text-transform: uppercase;
  border-radius: 8px; position: relative; overflow: hidden;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), background .25s, color .25s;
}
.btn .ico { width: 1.05em; height: 1.05em; transition: transform .25s var(--ease); }
.btn:hover .ico { transform: translateX(4px); }
.btn--lg { --pad: 1.05em 1.9em; font-size: 1rem; }
.btn--block { width: 100%; justify-content: center; }

.btn--accent {
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: var(--accent-ink);
  box-shadow: 0 8px 24px -8px rgba(255,140,0,.55);
}
.btn--accent:hover { transform: translateY(-3px); box-shadow: 0 16px 34px -10px rgba(255,140,0,.7); }

.btn--ghost {
  background: rgba(255,255,255,.04);
  color: var(--text);
  border: 1.5px solid rgba(255,255,255,.28);
  backdrop-filter: blur(6px);
}
.btn--ghost:hover { border-color: var(--accent); color: var(--accent); transform: translateY(-3px); }

/* ----------  Accent helpers  ---------- */
.accent { color: var(--accent); }

.eyebrow {
  display: inline-flex; align-items: center; gap: .7em;
  font-family: var(--font-head); font-weight: 600; text-transform: uppercase;
  letter-spacing: .18em; font-size: .8rem; color: var(--accent);
  margin-bottom: 1.1rem;
}
.eyebrow__no {
  font-size: .72rem; color: var(--muted);
  border: 1px solid var(--line); border-radius: 50px; padding: .25em .7em;
}

/* ===================================================================
   TOPBAR
   =================================================================== */
.topbar {
  background: #0a0b0d; border-bottom: 1px solid var(--line);
  font-size: .82rem; color: var(--muted);
  transition: transform .35s var(--ease), opacity .35s;
}
.topbar__inner { display: flex; justify-content: space-between; align-items: center; min-height: 42px; gap: 1rem; }
.topbar__contact { display: flex; gap: 1.6rem; flex-wrap: wrap; }
.topbar__item { display: inline-flex; align-items: center; gap: .5em; transition: color .2s; }
.topbar__item:hover { color: var(--accent); }
.topbar .ico { width: 15px; height: 15px; color: var(--accent); }
.topbar__social { display: flex; gap: .4rem; }
.topbar__soc { width: 28px; height: 28px; display: grid; place-items: center; border-radius: 6px; transition: .2s; }
.topbar__soc svg { width: 15px; height: 15px; fill: currentColor; stroke: none; }
.topbar__soc:hover { background: var(--accent); color: var(--accent-ink); }

/* ===================================================================
   NAVBAR
   =================================================================== */
.nav {
  position: sticky; top: 0; z-index: 900;
  background: rgba(14,15,18,.72);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: background .3s, border-color .3s, box-shadow .3s;
}
.nav.is-scrolled {
  background: rgba(12,13,16,.92);
  border-bottom-color: var(--line);
  box-shadow: 0 10px 30px -20px #000;
}
.nav__inner { display: flex; align-items: center; justify-content: space-between; min-height: 76px; }

.brand { display: inline-flex; align-items: center; gap: .7rem; }
.brand__mark {
  width: 42px; height: 42px; display: grid; place-items: center;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  border-radius: 10px; flex-shrink: 0;
}
.brand__mark svg { width: 26px; height: 26px; fill: var(--accent-ink); stroke: none; }
.brand__text { display: flex; flex-direction: column; line-height: 1; }
.brand__text strong { font-family: var(--font-head); font-weight: 700; font-size: 1.12rem; letter-spacing: .02em; }
.brand__text em { font-style: normal; font-size: .72rem; letter-spacing: .34em; text-transform: uppercase; color: var(--muted); margin-top: 3px; }
.brand--light .brand__text strong { color: var(--text); }

.nav__links { display: flex; align-items: center; gap: 2rem; }
.nav__links > a:not(.btn) {
  font-family: var(--font-head); font-weight: 500; font-size: .98rem;
  letter-spacing: .02em; color: var(--text); position: relative; padding: .3em 0;
  transition: color .2s;
}
.nav__links > a:not(.btn)::after {
  content: ""; position: absolute; left: 0; bottom: -2px; height: 2px; width: 0;
  background: var(--accent); transition: width .28s var(--ease);
}
.nav__links > a:not(.btn):hover { color: var(--accent); }
.nav__links > a:not(.btn):hover::after,
.nav__links > a.is-active::after { width: 100%; }
.nav__links > a.is-active { color: var(--accent); }
.nav__cta { margin-left: .4rem; }

.nav__toggle { display: none; width: 44px; height: 44px; flex-direction: column; gap: 5px; justify-content: center; align-items: center; }
.nav__toggle span { width: 24px; height: 2px; background: var(--text); border-radius: 2px; transition: .3s var(--ease); }
.nav__toggle.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav__toggle.is-open span:nth-child(2) { opacity: 0; }
.nav__toggle.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ===================================================================
   HERO
   =================================================================== */
.hero { position: relative; min-height: 100vh; display: flex; align-items: center; overflow: hidden; }
.hero__bg {
  position: absolute; inset: 0; background-size: cover; background-position: center;
  transform: scale(1.08); animation: kenburns 22s ease-in-out infinite alternate;
}
@keyframes kenburns { to { transform: scale(1.2) translateY(-2%); } }
.hero__overlay {
  position: absolute; inset: 0;
  background:
    linear-gradient(100deg, rgba(10,11,13,.94) 0%, rgba(10,11,13,.78) 42%, rgba(10,11,13,.35) 100%),
    linear-gradient(0deg, rgba(10,11,13,.95) 0%, transparent 45%);
}
.hero__inner { position: relative; z-index: 2; padding-block: 9rem 6rem; max-width: 860px; }

.hero__eyebrow {
  display: inline-flex; align-items: center; gap: .6em;
  font-family: var(--font-head); text-transform: uppercase; letter-spacing: .12em;
  font-size: .82rem; color: var(--text);
  background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.14);
  padding: .55em 1.1em; border-radius: 50px; margin-bottom: 1.8rem;
}
.pulse { width: 9px; height: 9px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 0 var(--accent); animation: pulse 2s infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(255,180,0,.6); } 70% { box-shadow: 0 0 0 12px rgba(255,180,0,0); } 100% { box-shadow: 0 0 0 0 rgba(255,180,0,0); } }

.hero__title {
  font-family: var(--font-display); font-weight: 400;
  font-size: clamp(3rem, 8.5vw, 7rem); line-height: .94; letter-spacing: .005em;
  text-transform: uppercase; margin-bottom: 1.6rem;
}
.hero__title .accent {
  position: relative; display: inline-block;
  -webkit-text-stroke: 2px var(--accent); color: transparent;
}
.hero__sub { font-size: clamp(1.02rem, 1.6vw, 1.22rem); color: #d7dae1; max-width: 640px; margin-bottom: 2.4rem; }
.hero__actions { display: flex; gap: 1rem; flex-wrap: wrap; }

.hero__trust { display: flex; gap: 2.6rem; margin-top: 3.2rem; }
.hero__trust li { display: flex; flex-direction: column; }
.hero__trust strong { font-family: var(--font-display); font-size: 2.2rem; line-height: 1; color: var(--accent); }
.hero__trust span { font-size: .8rem; text-transform: uppercase; letter-spacing: .15em; color: var(--muted); margin-top: .3rem; }

.hero__scroll {
  position: absolute; bottom: 2rem; left: 50%; transform: translateX(-50%); z-index: 2;
  display: flex; flex-direction: column; align-items: center; gap: .6rem;
  font-size: .72rem; text-transform: uppercase; letter-spacing: .25em; color: var(--muted);
}
.hero__scroll span { width: 26px; height: 42px; border: 2px solid rgba(255,255,255,.3); border-radius: 50px; position: relative; }
.hero__scroll span::after { content: ""; position: absolute; top: 7px; left: 50%; transform: translateX(-50%); width: 4px; height: 8px; background: var(--accent); border-radius: 2px; animation: scrolldot 1.7s infinite; }
@keyframes scrolldot { 0% { opacity: 0; transform: translate(-50%, 0); } 40% { opacity: 1; } 80% { opacity: 0; transform: translate(-50%, 14px); } 100% { opacity: 0; } }

/* ===================================================================
   MARQUEE
   =================================================================== */
.marquee {
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: var(--accent-ink); overflow: hidden; padding: .9rem 0;
  border-block: 3px solid #0a0b0d;
}
.marquee__track { display: flex; align-items: center; gap: 2.2rem; width: max-content; animation: marquee 28s linear infinite; }
.marquee__track span { font-family: var(--font-display); font-size: 1.35rem; text-transform: uppercase; letter-spacing: .04em; white-space: nowrap; }
.marquee__track .dot { font-size: .9rem; opacity: .65; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ===================================================================
   SECTIONS (shared)
   =================================================================== */
.section { padding-block: clamp(4.5rem, 9vw, 8rem); position: relative; }
.section__head { max-width: 720px; margin-bottom: 3.4rem; }
.section__title {
  font-family: var(--font-head); font-weight: 700; text-transform: uppercase;
  font-size: clamp(2rem, 4.4vw, 3.3rem); line-height: 1.02; letter-spacing: .01em;
}
.section__lead { color: var(--muted); font-size: 1.08rem; margin-top: 1.1rem; }

/* ===================================================================
   STATS
   =================================================================== */
.stats { background: var(--bg-2); border-block: 1px solid var(--line); }
.stats__grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.stat { padding: 3rem 1.5rem; text-align: center; position: relative; }
.stat:not(:last-child)::after { content: ""; position: absolute; right: 0; top: 25%; height: 50%; width: 1px; background: var(--line); }
.stat__num { font-family: var(--font-display); font-size: clamp(2.6rem, 5vw, 3.8rem); line-height: 1; color: var(--accent); display: block; }
.stat__label { display: block; margin-top: .6rem; font-size: .82rem; text-transform: uppercase; letter-spacing: .14em; color: var(--muted); }

/* ===================================================================
   SERVICES
   =================================================================== */
.services__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.4rem; }
.card {
  background: var(--bg-3); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 2.2rem 2rem; position: relative; overflow: hidden;
  transition: transform .35s var(--ease), border-color .35s, background .35s;
}
.card::before {
  content: ""; position: absolute; left: 0; top: 0; height: 100%; width: 4px;
  background: linear-gradient(var(--accent), var(--accent-2));
  transform: scaleY(0); transform-origin: bottom; transition: transform .4s var(--ease);
}
.card:hover { transform: translateY(-8px); border-color: #3a3f49; background: #21252d; }
.card:hover::before { transform: scaleY(1); }
.card__icon { width: 58px; height: 58px; display: grid; place-items: center; border-radius: 12px; background: rgba(255,180,0,.1); border: 1px solid rgba(255,180,0,.25); margin-bottom: 1.3rem; transition: .35s; }
.card__icon svg { width: 28px; height: 28px; color: var(--accent); }
.card:hover .card__icon { background: var(--accent); }
.card:hover .card__icon svg { color: var(--accent-ink); }
.card h3 { font-family: var(--font-head); font-weight: 600; font-size: 1.32rem; margin-bottom: .6rem; }
.card p { color: var(--muted); font-size: .98rem; }
.card__link { display: inline-flex; align-items: center; gap: .4em; margin-top: 1.3rem; font-family: var(--font-head); font-weight: 600; font-size: .9rem; text-transform: uppercase; letter-spacing: .06em; color: var(--accent); }
.card__link span { transition: transform .25s var(--ease); }
.card__link:hover span { transform: translateX(5px); }

/* ===================================================================
   ABOUT
   =================================================================== */
.about__grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: 4rem; align-items: center; }
.about__media { position: relative; }
.about__media img { border-radius: var(--radius); position: relative; z-index: 2; aspect-ratio: 4/5; object-fit: cover; }
.about__media-accent { position: absolute; inset: auto -18px -18px auto; width: 60%; height: 60%; border: 3px solid var(--accent); border-radius: var(--radius); z-index: 1; }
.about__badge {
  position: absolute; z-index: 3; left: -20px; bottom: 28px;
  background: linear-gradient(135deg, var(--accent), var(--accent-2)); color: var(--accent-ink);
  padding: 1.2rem 1.5rem; border-radius: 12px; display: flex; align-items: center; gap: .8rem;
  box-shadow: 0 20px 40px -16px rgba(0,0,0,.6);
}
.about__badge strong { font-family: var(--font-display); font-size: 2.6rem; line-height: 1; }
.about__badge span { font-size: .82rem; font-weight: 600; line-height: 1.25; }

.features { display: grid; grid-template-columns: 1fr 1fr; gap: .9rem 1.4rem; margin: 1.8rem 0 2.2rem; }
.features li { display: flex; align-items: center; gap: .7rem; font-size: .98rem; font-weight: 500; }
.features__ic { width: 26px; height: 26px; flex-shrink: 0; display: grid; place-items: center; border-radius: 50%; background: rgba(255,180,0,.14); }
.features__ic svg { width: 15px; height: 15px; color: var(--accent); stroke-width: 3; }

.about__cta { display: flex; align-items: center; gap: 1.6rem; flex-wrap: wrap; }
.about__sign { display: flex; flex-direction: column; }
.about__sign-name { font-family: 'Oswald', sans-serif; font-size: 1.25rem; font-weight: 600; color: var(--accent); }
.about__sign-role { font-size: .8rem; color: var(--muted); text-transform: uppercase; letter-spacing: .1em; }

/* ===================================================================
   PROJECTS
   =================================================================== */
.projects__filter { display: flex; gap: .6rem; flex-wrap: wrap; margin-bottom: 2rem; }
.chip {
  font-family: var(--font-head); font-weight: 500; font-size: .9rem; letter-spacing: .04em;
  text-transform: uppercase; padding: .55em 1.3em; border-radius: 50px;
  border: 1px solid var(--line); color: var(--muted); transition: .25s;
}
.chip:hover { color: var(--text); border-color: #3a3f49; }
.chip.is-active { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }

.projects__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(290px, 1fr)); grid-auto-rows: 320px; gap: 1.3rem; }
.project {
  position: relative; border-radius: var(--radius); overflow: hidden; cursor: pointer;
  transition: transform .45s var(--ease), opacity .45s, filter .35s; grid-row: span 1;
}
.project--tall { grid-row: span 2; }
.project img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s var(--ease); }
.project::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(8,9,11,.92) 0%, rgba(8,9,11,.1) 55%, transparent 100%); opacity: .85; transition: opacity .35s; }
.project:hover img { transform: scale(1.1); }
.project:hover::after { opacity: 1; }
.project figcaption { position: absolute; left: 0; bottom: 0; z-index: 2; padding: 1.4rem 1.5rem; transform: translateY(8px); transition: transform .4s var(--ease); }
.project:hover figcaption { transform: translateY(0); }
.project__cat { display: inline-block; font-family: var(--font-head); font-size: .72rem; text-transform: uppercase; letter-spacing: .14em; color: var(--accent-ink); background: var(--accent); padding: .25em .8em; border-radius: 50px; margin-bottom: .7rem; }
.project figcaption h3 { font-family: var(--font-head); font-weight: 600; font-size: 1.28rem; line-height: 1.1; }
.project figcaption p { color: #c7cbd3; font-size: .9rem; }
.project.is-hidden { display: none; }

/* ===================================================================
   PROCESS
   =================================================================== */
.process { background: var(--bg-2); border-block: 1px solid var(--line); }
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.4rem; counter-reset: step; }
.step {
  background: var(--bg-3); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 2.2rem 1.8rem 2rem; position: relative; transition: transform .35s var(--ease), border-color .35s;
}
.step:hover { transform: translateY(-6px); border-color: #3a3f49; }
.step__no { font-family: var(--font-display); font-size: 3rem; line-height: 1; color: transparent; -webkit-text-stroke: 1.5px var(--accent); display: block; margin-bottom: 1rem; }
.step h3 { font-family: var(--font-head); font-weight: 600; font-size: 1.2rem; margin-bottom: .5rem; }
.step p { color: var(--muted); font-size: .95rem; }
.step:not(:last-child)::after {
  content: "→"; position: absolute; right: -1rem; top: 50%; transform: translateY(-50%);
  color: var(--accent); font-size: 1.3rem; z-index: 3;
}

/* ===================================================================
   TESTIMONIALS
   =================================================================== */
.testi__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.4rem; }
.testi {
  background: var(--bg-3); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 2.2rem 2rem; position: relative; transition: transform .35s var(--ease), border-color .35s;
}
.testi:hover { transform: translateY(-6px); border-color: #3a3f49; }
.testi__stars { color: var(--accent); letter-spacing: .12em; margin-bottom: 1rem; }
.testi p { font-size: 1.02rem; color: #d9dce2; }
.testi footer { display: flex; align-items: center; gap: .9rem; margin-top: 1.6rem; padding-top: 1.4rem; border-top: 1px solid var(--line); }
.testi__avatar { width: 46px; height: 46px; flex-shrink: 0; border-radius: 50%; display: grid; place-items: center; font-family: var(--font-head); font-weight: 600; background: linear-gradient(135deg, var(--accent), var(--accent-2)); color: var(--accent-ink); }
.testi footer span { display: flex; flex-direction: column; line-height: 1.3; }
.testi footer strong { font-weight: 600; }
.testi footer em { font-style: normal; font-size: .85rem; color: var(--muted); }

/* ===================================================================
   CTA BAND
   =================================================================== */
.ctaband { position: relative; overflow: hidden; padding-block: clamp(4rem, 8vw, 6.5rem); }
.ctaband__bg { position: absolute; inset: 0; background-size: cover; background-position: center; background-attachment: fixed; }
.ctaband__overlay { position: absolute; inset: 0; background: linear-gradient(120deg, rgba(10,11,13,.94), rgba(10,11,13,.66)); }
.ctaband__inner { position: relative; z-index: 2; text-align: center; max-width: 720px; margin-inline: auto; }
.ctaband h2 { font-family: var(--font-head); font-weight: 700; text-transform: uppercase; font-size: clamp(2rem, 5vw, 3.4rem); line-height: 1.02; }
.ctaband p { color: #d3d6dd; font-size: 1.12rem; margin: 1.1rem 0 2rem; }

/* ===================================================================
   CONTACT
   =================================================================== */
.contact__grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: 3.5rem; }
.contact__list { margin-top: 2.2rem; display: grid; gap: 1.3rem; }
.contact__list li { display: flex; gap: 1.1rem; align-items: flex-start; }
.contact__ic { width: 48px; height: 48px; flex-shrink: 0; display: grid; place-items: center; border-radius: 12px; background: rgba(255,180,0,.1); border: 1px solid rgba(255,180,0,.25); }
.contact__ic svg { width: 22px; height: 22px; color: var(--accent); }
.contact__list strong { display: block; font-family: var(--font-head); font-weight: 600; font-size: 1.05rem; margin-bottom: .15rem; }
.contact__list div { color: var(--muted); font-size: .98rem; }
.contact__list a:hover { color: var(--accent); }

.contact__formwrap {
  background: var(--bg-3); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 2.4rem; box-shadow: 0 30px 60px -40px #000;
}
.form h3 { font-family: var(--font-head); font-weight: 600; font-size: 1.5rem; margin-bottom: 1.6rem; }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.field { display: block; margin-bottom: 1rem; }
.field span { display: block; font-size: .82rem; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); margin-bottom: .45rem; }
.field input, .field select, .field textarea {
  width: 100%; background: var(--bg); border: 1px solid var(--line); border-radius: 9px;
  color: var(--text); font-family: inherit; font-size: .98rem; padding: .85em 1em; transition: border-color .2s, box-shadow .2s;
}
.field textarea { resize: vertical; }
.field input::placeholder, .field textarea::placeholder { color: #5d636e; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(255,180,0,.18);
}
.field.is-invalid input, .field.is-invalid select { border-color: #ff5252; box-shadow: 0 0 0 3px rgba(255,82,82,.15); }
.form__note { margin-top: 1rem; font-size: .95rem; min-height: 1.2em; }
.form__note.ok { color: #43d17a; }
.form__note.err { color: #ff6b6b; }

/* ===================================================================
   FOOTER
   =================================================================== */
.footer { background: #0a0b0d; border-top: 1px solid var(--line); padding-top: 4.5rem; }
.footer__grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.2fr; gap: 2.5rem; padding-bottom: 3rem; }
.footer__brand p { color: var(--muted); font-size: .96rem; margin: 1.2rem 0 1.4rem; max-width: 320px; }
.footer__social { display: flex; gap: .6rem; }
.footer__social a { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 9px; border: 1px solid var(--line); transition: .25s; }
.footer__social svg { width: 18px; height: 18px; fill: currentColor; stroke: none; }
.footer__social a:hover { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); transform: translateY(-3px); }
.footer__col h4 { font-family: var(--font-head); font-weight: 600; font-size: 1.05rem; text-transform: uppercase; letter-spacing: .06em; margin-bottom: 1.2rem; }
.footer__col a, .footer__contact p { display: block; color: var(--muted); font-size: .95rem; margin-bottom: .7rem; transition: color .2s; }
.footer__col a:hover { color: var(--accent); }
.footer__bar { border-top: 1px solid var(--line); padding: 1.4rem 0; }
.footer__bar-inner { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; color: var(--muted); font-size: .85rem; }

/* ===================================================================
   BACK TO TOP
   =================================================================== */
.totop {
  position: fixed; left: 24px; right: auto; bottom: 92px; z-index: 800;
  width: 50px; height: 50px; border-radius: 12px;
  background: linear-gradient(135deg, var(--accent), var(--accent-2)); color: var(--accent-ink);
  display: grid; place-items: center; box-shadow: 0 12px 30px -10px rgba(255,140,0,.6);
  opacity: 0; visibility: hidden; transform: translateY(16px); transition: .35s var(--ease);
}
.totop svg { width: 22px; height: 22px; stroke-width: 2.5; }
.totop.is-visible { opacity: 1; visibility: visible; transform: translateY(0); }
.totop:hover { transform: translateY(-4px); }

/* ===================================================================
   REVEAL ANIMATION
   =================================================================== */
.reveal { opacity: 0; transform: translateY(34px); transition: opacity .7s var(--ease), transform .7s var(--ease); will-change: opacity, transform; }
.reveal.in-view { opacity: 1; transform: none; }
/* stagger children within grids */
.services__grid .reveal:nth-child(2), .testi__grid .reveal:nth-child(2), .steps .reveal:nth-child(2) { transition-delay: .08s; }
.services__grid .reveal:nth-child(3), .testi__grid .reveal:nth-child(3), .steps .reveal:nth-child(3) { transition-delay: .16s; }
.services__grid .reveal:nth-child(4), .steps .reveal:nth-child(4) { transition-delay: .24s; }
.services__grid .reveal:nth-child(5) { transition-delay: .32s; }
.services__grid .reveal:nth-child(6) { transition-delay: .4s; }

/* ===================================================================
   RESPONSIVE
   =================================================================== */
@media (max-width: 1024px) {
  .services__grid, .testi__grid, .steps { grid-template-columns: repeat(2, 1fr); }
  .step:nth-child(2)::after { display: none; }
  .about__grid, .contact__grid { grid-template-columns: 1fr; gap: 2.6rem; }
  .about__media img { aspect-ratio: 16/10; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .projects__grid { grid-auto-rows: 300px; }
}

@media (max-width: 760px) {
  .topbar { display: none; }
  .nav__toggle { display: flex; }
  .nav__links {
    position: fixed; inset: 76px 0 auto 0; flex-direction: column; align-items: stretch; gap: 0;
    background: rgba(12,13,16,.98); backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--line); padding: 1rem 24px 1.6rem;
    transform: translateY(-130%); transition: transform .4s var(--ease); max-height: calc(100vh - 76px); overflow-y: auto;
    pointer-events: none;
  }
  .nav__links.is-open { transform: translateY(0); pointer-events: auto; }
  .nav__links > a:not(.btn) { padding: .95rem 0; border-bottom: 1px solid var(--line); }
  .nav__links > a:not(.btn)::after { display: none; }
  .nav__cta { margin: 1rem 0 0; justify-content: center; }

  .stats__grid { grid-template-columns: 1fr 1fr; }
  .stat:nth-child(2)::after { display: none; }
  .stat:nth-child(odd)::after { content: ""; }
  .services__grid, .testi__grid, .steps, .features { grid-template-columns: 1fr; }
  .step::after { display: none !important; }
  .projects__grid { grid-template-columns: 1fr; grid-auto-rows: 260px; }
  .project--tall { grid-row: span 1; }
  .form__row { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: 1fr; gap: 2rem; }
  .ctaband__bg { background-attachment: scroll; }
  .hero__trust { gap: 1.8rem; }
  .about__badge { left: 10px; }
}

@media (max-width: 420px) {
  .hero__actions .btn { width: 100%; justify-content: center; }
  .contact__formwrap { padding: 1.6rem; }
}

/* ===================================================================
   ADDITIONS — rating chip, mini buttons, map, WhatsApp FAB
   =================================================================== */
.topbar__rating {
  font-family: var(--font-head); font-weight: 600; font-size: .8rem; letter-spacing: .03em;
  color: var(--accent-ink); background: var(--accent);
  padding: .2em .7em; border-radius: 50px; margin-right: .3rem; white-space: nowrap;
}

/* small links under Projects / Testimonials */
.projects__note, .testi__more { text-align: center; margin-top: 2.4rem; color: var(--muted); font-size: .98rem; }
.projects__note a, .testi__more a {
  color: var(--accent); font-family: var(--font-head); font-weight: 500; letter-spacing: .02em;
}
.projects__note a:hover, .testi__more a:hover { text-decoration: underline; }

/* inline accent links inside contact items */
.contact__link { display: inline-block; margin-top: .5rem; color: var(--accent); font-weight: 600; font-size: .9rem; }
.contact__link:hover { text-decoration: underline; }

/* call / whatsapp mini buttons */
.contact__btns { display: flex; gap: .5rem; margin-top: .7rem; }
.minibtn {
  font-family: var(--font-head); font-weight: 600; font-size: .82rem; letter-spacing: .04em;
  text-transform: uppercase; padding: .45em 1.1em; border-radius: 50px;
  background: rgba(255,180,0,.12); border: 1px solid rgba(255,180,0,.35); color: var(--accent); transition: .25s;
}
.minibtn:hover { background: var(--accent); color: var(--accent-ink); }
.minibtn--wa { background: rgba(37,211,102,.12); border-color: rgba(37,211,102,.4); color: #25d366; }
.minibtn--wa:hover { background: #25d366; color: #06310f; }

/* CTA band actions row */
.ctaband__actions { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }

/* live map embed */
.contact__map {
  margin-top: 3rem; border-radius: var(--radius); overflow: hidden;
  border: 1px solid var(--line); box-shadow: 0 30px 60px -40px #000; line-height: 0;
  filter: grayscale(.25) contrast(1.05);
}
.contact__map iframe { display: block; }

/* floating WhatsApp button */
.wafab {
  position: fixed; left: 24px; bottom: 24px; z-index: 800;
  width: 56px; height: 56px; border-radius: 50%;
  background: #25d366; color: #fff; display: grid; place-items: center;
  box-shadow: 0 12px 30px -8px rgba(37,211,102,.7); transition: transform .3s var(--ease);
}
.wafab::after {
  content: ""; position: absolute; inset: 0; border-radius: 50%;
  box-shadow: 0 0 0 0 rgba(37,211,102,.55); animation: wapulse 2.2s infinite;
}
@keyframes wapulse { 70% { box-shadow: 0 0 0 14px rgba(37,211,102,0); } 100% { box-shadow: 0 0 0 0 rgba(37,211,102,0); } }
.wafab svg { width: 30px; height: 30px; fill: currentColor; stroke: none; }
.wafab:hover { transform: scale(1.08); }

@media (max-width: 760px) {
  .wafab { width: 50px; height: 50px; left: 16px; bottom: 16px; }
  .wafab svg { width: 26px; height: 26px; }
  .totop { left: 16px; right: auto; bottom: 78px; }
  .topbar__rating { display: none; }
}

/* ===================================================================
   AI VOICE ASSISTANT SECTION + ORB (#mcb-ai-orb)
   In-flow, centred on the page (not a fixed floating bottom element).
   =================================================================== */
.ai-section { background: var(--bg-2); border-block: 1px solid var(--line); text-align: center; overflow: hidden; }
.ai-section__inner { max-width: 640px; margin: 0 auto 2.8rem; }
.ai-section__inner .eyebrow,
.ai-section__inner .section__title { justify-content: center; }
.ai-section__inner .section__title { text-align: center; }
.ai-section__orb { display: flex; justify-content: center; }

#mcb-ai-orb {
  position: relative; display: flex; flex-direction: column; align-items: center; gap: 16px;
  font-family: var(--font-body); user-select: none;
}
#mcb-ai-orb button {
  width: 150px; height: 150px; border-radius: 999px; border: 0; cursor: pointer; padding: 0; position: relative;
  display: grid; place-items: center;
  background: radial-gradient(circle at 32% 28%, #fff 0%, #ffe39a 14%, #ffb400 40%, #b35e00 100%);
  box-shadow: 0 24px 60px -10px rgba(255,140,0,.6), inset 0 -12px 26px rgba(0,0,0,.28), inset 0 8px 18px rgba(255,255,255,.45);
  transition: transform .2s var(--ease);
}
#mcb-ai-orb button svg { width: 52px; height: 52px; color: var(--accent-ink); stroke-width: 2; position: relative; z-index: 1; pointer-events: none; }
#mcb-ai-orb.is-live button svg { color: #fff; }
#mcb-ai-orb button::after {
  content: ""; position: absolute; inset: -10px; border-radius: 999px;
  border: 2px solid rgba(255,180,0,.55); animation: orbpulse 2.4s ease-out infinite;
}
@keyframes orbpulse { 0% { transform: scale(.92); opacity: .7; } 100% { transform: scale(1.22); opacity: 0; } }
#mcb-ai-orb button:hover { transform: translateY(-4px) scale(1.03); }
#mcb-ai-orb button:active { transform: scale(.97); }
#mcb-ai-orb .label {
  font-family: var(--font-head); font-weight: 600; font-size: 16px; letter-spacing: .03em; text-transform: uppercase;
  color: var(--accent-ink); background: var(--accent);
  padding: 9px 20px; border-radius: 999px; box-shadow: 0 12px 28px rgba(0,0,0,.35); white-space: nowrap;
}
#mcb-ai-orb .status { font-size: 13px; color: var(--muted); min-height: 16px; text-align: center; }
#mcb-ai-orb.is-live button {
  background: radial-gradient(circle at 32% 28%, #fff 0%, #ff9a8d 14%, #e2231a 60%, #7a0f0a 100%);
  box-shadow: 0 24px 60px -10px rgba(226,35,26,.6), inset 0 -12px 26px rgba(0,0,0,.28);
}
#mcb-ai-orb.is-live button::after { border-color: rgba(226,35,26,.6); animation-duration: 1.3s; }
#mcb-ai-orb.is-live .label { background: #e2231a; color: #fff; }
@media (max-width: 760px) {
  #mcb-ai-orb button { width: 124px; height: 124px; }
  #mcb-ai-orb button svg { width: 44px; height: 44px; }
  #mcb-ai-orb .label { font-size: 14px; }
}

/* ===================================================================
   CHATBOT WIDGET
   =================================================================== */
.chat-fab {
  position: fixed; right: 24px; bottom: 24px; z-index: 960;
  width: 60px; height: 60px; border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--accent-2)); color: var(--accent-ink);
  display: grid; place-items: center;
  box-shadow: 0 14px 34px -8px rgba(255,140,0,.65); transition: transform .3s var(--ease);
}
.chat-fab::after {
  content: ""; position: absolute; inset: 0; border-radius: 50%;
  box-shadow: 0 0 0 0 rgba(255,180,0,.5); animation: chatpulse 2.4s infinite;
}
@keyframes chatpulse { 70% { box-shadow: 0 0 0 14px rgba(255,180,0,0); } 100% { box-shadow: 0 0 0 0 rgba(255,180,0,0); } }
.chat-fab:hover { transform: scale(1.07); }
.chat-fab__ico { width: 28px; height: 28px; position: absolute; transition: transform .3s var(--ease), opacity .25s; }
.chat-fab__ico svg, .chat-fab__ico { stroke: currentColor; }
.chat-fab__close { opacity: 0; transform: rotate(-90deg) scale(.6); }
.chat-fab.is-active .chat-fab__open { opacity: 0; transform: rotate(90deg) scale(.6); }
.chat-fab.is-active .chat-fab__close { opacity: 1; transform: rotate(0) scale(1); }
.chat-fab.is-active::after { animation: none; }

.chatbox {
  position: fixed; right: 24px; bottom: 96px; z-index: 970;
  width: 366px; max-width: calc(100vw - 32px);
  height: 540px; max-height: calc(100vh - 132px);
  display: flex; flex-direction: column; overflow: hidden;
  background: var(--bg-2); border: 1px solid var(--line); border-radius: 18px;
  box-shadow: 0 40px 80px -28px rgba(0,0,0,.7);
  opacity: 0; transform: translateY(18px) scale(.97); transform-origin: bottom right;
  transition: opacity .25s var(--ease), transform .25s var(--ease);
}
.chatbox.is-open { opacity: 1; transform: translateY(0) scale(1); }
/* The `hidden` attribute must win over `display:flex`, otherwise the (invisible)
   panel stays in the DOM and swallows taps — on mobile it covers the orb. */
.chatbox[hidden] { display: none !important; }
.chatbox:not(.is-open) { pointer-events: none; }
.chatbox.is-open { pointer-events: auto; }

.chatbox__head {
  display: flex; align-items: center; gap: .8rem; padding: .9rem 1rem;
  background: linear-gradient(135deg, var(--accent), var(--accent-2)); color: var(--accent-ink);
}
.chatbox__avatar {
  width: 42px; height: 42px; flex-shrink: 0; border-radius: 50%; display: grid; place-items: center;
  font-family: var(--font-head); font-weight: 700; font-size: 1.2rem;
  background: rgba(0,0,0,.16); color: #fff;
}
.chatbox__id { display: flex; flex-direction: column; line-height: 1.25; flex: 1; }
.chatbox__id strong { font-family: var(--font-head); font-weight: 600; font-size: 1.05rem; }
.chatbox__id em { font-style: normal; font-size: .76rem; display: inline-flex; align-items: center; gap: .4em; opacity: .85; }
.chatbox__dot { width: 8px; height: 8px; border-radius: 50%; background: #18a957; box-shadow: 0 0 0 0 rgba(24,169,87,.6); animation: pulse 2s infinite; }
.chatbox__close { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 8px; color: var(--accent-ink); transition: background .2s; }
.chatbox__close svg { width: 20px; height: 20px; }
.chatbox__close:hover { background: rgba(0,0,0,.14); }

.chatbox__log { flex: 1; overflow-y: auto; padding: 1.1rem 1rem .6rem; display: flex; flex-direction: column; gap: .6rem; background: var(--bg); }
.chatbox__log::-webkit-scrollbar { width: 7px; }

.msg {
  max-width: 82%; padding: .65rem .9rem; border-radius: 14px; font-size: .94rem; line-height: 1.5;
  animation: msgin .3s var(--ease) both;
}
@keyframes msgin { from { opacity: 0; transform: translateY(8px); } }
.msg--bot { align-self: flex-start; background: var(--bg-3); border: 1px solid var(--line); border-bottom-left-radius: 5px; color: var(--text); }
.msg--user { align-self: flex-end; background: linear-gradient(135deg, var(--accent), var(--accent-2)); color: var(--accent-ink); border-bottom-right-radius: 5px; font-weight: 500; }
.msg a { color: inherit; }

.msg__actions { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: .7rem; }
.msg__btn {
  font-family: var(--font-head); font-weight: 600; font-size: .82rem; letter-spacing: .03em;
  padding: .42em 1em; border-radius: 50px;
  background: rgba(255,180,0,.14); border: 1px solid rgba(255,180,0,.4); color: var(--accent); transition: .2s;
}
.msg__btn:hover { background: var(--accent); color: var(--accent-ink); }
.msg__btn--wa { background: rgba(37,211,102,.14); border-color: rgba(37,211,102,.45); color: #25d366; }
.msg__btn--wa:hover { background: #25d366; color: #06310f; }

.msg--typing { display: inline-flex; gap: 5px; padding: .8rem .9rem; }
.msg--typing span { width: 7px; height: 7px; border-radius: 50%; background: var(--muted); animation: typedot 1.2s infinite; }
.msg--typing span:nth-child(2) { animation-delay: .2s; }
.msg--typing span:nth-child(3) { animation-delay: .4s; }
@keyframes typedot { 0%,60%,100% { opacity: .3; transform: translateY(0); } 30% { opacity: 1; transform: translateY(-4px); } }

.chatbox__quick { display: flex; flex-wrap: wrap; gap: .45rem; padding: 0 1rem; background: var(--bg); }
.chatbox__quick:not(:empty) { padding-block: .7rem; border-top: 1px solid var(--line); }
.chip-quick {
  font-family: var(--font-head); font-weight: 500; font-size: .82rem; letter-spacing: .02em;
  padding: .42em 1em; border-radius: 50px; border: 1px solid var(--line); color: var(--text);
  background: var(--bg-3); transition: .2s;
}
.chip-quick:hover { border-color: var(--accent); color: var(--accent); }

.chatbox__form { display: flex; align-items: center; gap: .5rem; padding: .7rem .8rem; background: var(--bg-2); border-top: 1px solid var(--line); }
.chatbox__form input {
  flex: 1; background: var(--bg); border: 1px solid var(--line); border-radius: 50px;
  color: var(--text); font-family: inherit; font-size: .94rem; padding: .7em 1.1em;
}
.chatbox__form input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(255,180,0,.16); }
.chatbox__form input::placeholder { color: #5d636e; }
.chatbox__form button {
  width: 44px; height: 44px; flex-shrink: 0; border-radius: 50%; display: grid; place-items: center;
  background: linear-gradient(135deg, var(--accent), var(--accent-2)); color: var(--accent-ink); transition: transform .2s;
}
.chatbox__form button svg { width: 19px; height: 19px; }
.chatbox__form button:hover { transform: scale(1.08); }

@media (max-width: 760px) {
  .chat-fab { right: 16px; bottom: 16px; width: 54px; height: 54px; }
  .chatbox { right: 12px; left: 12px; width: auto; bottom: 84px; height: min(72vh, 540px); max-height: calc(100vh - 110px); }
}

/* ===================================================================
   MOBILE TAP RELIABILITY
   Fixes the "sometimes my tap works, sometimes it doesn't" problem:
   - touch-action: manipulation removes the 300ms delay + double-tap-zoom
     interception that swallows quick taps.
   - decorative pulse rings / icons never intercept the touch.
   - on touch devices, controls don't lift/scale on "hover" (which moves
     them out from under your finger and eats the first tap).
   =================================================================== */
a, button, .btn, .chip, .chip-quick, .minibtn, .msg__btn,
.wafab, .totop, .chat-fab, #mcb-ai-orb, #mcb-ai-orb button,
.chatbox__form button, .chatbox__close, .topbar__soc,
.footer__social a, .nav__toggle, .card__link, .contact__link {
  touch-action: manipulation;
  -webkit-tap-highlight-color: rgba(255,180,0,.25);
}

/* Decorative bits must never steal a tap from the real control. */
#mcb-ai-orb button::after,
.chat-fab::after,
.wafab::after,
.chat-fab__ico { pointer-events: none; }

/* Give the floating controls a comfortable minimum tap target. */
.chat-fab, .wafab, .totop, #mcb-ai-orb button { min-width: 48px; min-height: 48px; }

@media (hover: none) {
  .btn--accent:hover, .btn--ghost:hover,
  .wafab:hover, .totop:hover, .chat-fab:hover,
  #mcb-ai-orb button:hover, .chatbox__form button:hover,
  .card:hover, .msg__btn:hover, .chip-quick:hover {
    transform: none;
  }
  .project:hover img { transform: scale(1); }
}

/* ----------  Reduced motion  ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
  .hero__bg { animation: none; transform: scale(1.05); }
}
