/* ==========================================================================
   Makao Mapya Builders — Brand stylesheet
   Palette: Navy #05213B · Gold #B67D29 · Charcoal #565758 · Green #274C31
            Off-white #E8E8E5 · Dark navy #040C1C · White #FFFFFF · Paper #F5F6F4
   No gradients. Solid colour, borders, shadows and typography do the work.
   ========================================================================== */

:root {
  --navy: #05213B;
  --navy-700: #0a3157;
  --gold: #B67D29;
  --gold-600: #a06f23;
  --charcoal: #565758;
  --green: #274C31;
  --off-white: #E8E8E5;
  --dark-navy: #040C1C;
  --white: #FFFFFF;
  --paper: #F5F6F4;
  --line: #dfe2dd;
  --line-strong: #c9cdc6;

  --ink: var(--navy);
  --body-text: #3c3d3e;
  --muted: #6f7071;

  --font-head: "Plus Jakarta Sans", "Segoe UI", system-ui, -apple-system, sans-serif;
  --font-body: "Inter", "Segoe UI", system-ui, -apple-system, sans-serif;

  --container: 1180px;
  --gutter: clamp(1rem, 4vw, 2.25rem);
  --radius: 14px;
  --radius-sm: 9px;
  --radius-lg: 22px;

  --shadow-sm: 0 1px 2px rgba(4, 12, 28, 0.06), 0 2px 6px rgba(4, 12, 28, 0.05);
  --shadow-md: 0 6px 18px rgba(4, 12, 28, 0.08), 0 2px 6px rgba(4, 12, 28, 0.06);
  --shadow-lg: 0 18px 40px rgba(4, 12, 28, 0.12), 0 6px 14px rgba(4, 12, 28, 0.08);

  --header-h: 76px;
  --transition: 180ms cubic-bezier(0.2, 0.7, 0.3, 1);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; }
}
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--body-text);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-wrap: break-word;
}
img, svg { max-width: 100%; display: block; }
a { color: var(--navy); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3, h4 {
  font-family: var(--font-head);
  color: var(--ink);
  line-height: 1.15;
  margin: 0 0 0.5em;
  font-weight: 700;
  letter-spacing: -0.01em;
}
h1 { font-size: clamp(2rem, 5vw, 3.2rem); font-weight: 800; }
h2 { font-size: clamp(1.6rem, 3.2vw, 2.25rem); }
h3 { font-size: clamp(1.15rem, 2vw, 1.35rem); }
p { margin: 0 0 1rem; }
ul { margin: 0; padding: 0; list-style: none; }
button { font: inherit; cursor: pointer; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; border-radius: 3px; }

/* ---------- Layout ---------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.main { display: block; }
.section { padding: clamp(3.5rem, 8vw, 6rem) 0; }
.section--tight { padding: clamp(2.5rem, 6vw, 4.5rem) 0; }
.section--alt { background: var(--paper); border-block: 1px solid var(--line); }

.skip-link {
  position: absolute; left: 12px; top: -48px; z-index: 1000;
  background: var(--navy); color: var(--white); padding: 10px 16px;
  border-radius: 8px; font-weight: 600; transition: top var(--transition);
}
.skip-link:focus { top: 12px; text-decoration: none; }

/* ---------- Eyebrow / headings ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-head); font-weight: 700;
  font-size: 0.8rem; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--charcoal); margin: 0 0 0.75rem;
}
.eyebrow--gold { color: var(--gold); }
.eyebrow__dot { width: 8px; height: 8px; background: var(--gold); border-radius: 2px; display: inline-block; }

.section__head { max-width: 720px; margin: 0 auto clamp(2rem, 4vw, 3rem); text-align: center; }
.section__head--row {
  max-width: none; display: flex; justify-content: space-between; align-items: flex-end;
  gap: 1.5rem; text-align: left; flex-wrap: wrap;
}
.section__title { margin: 0 0 0.5rem; }
.section__lead { color: var(--muted); font-size: 1.05rem; margin: 0; }

.link-arrow {
  font-family: var(--font-head); font-weight: 700; color: var(--navy);
  display: inline-flex; gap: 8px; align-items: center; white-space: normal;
  padding-block: 0.4rem; margin-block: -0.4rem;
}
.link-arrow span { transition: transform var(--transition); }
.link-arrow:hover { text-decoration: none; color: var(--gold); }
.link-arrow:hover span { transform: translateX(4px); }

/* ---------- Buttons ---------- */
.btn {
  --btn-bg: var(--navy); --btn-fg: var(--white); --btn-bd: var(--navy);
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5em;
  font-family: var(--font-head); font-weight: 700; font-size: 1rem;
  padding: 0.8rem 1.5rem; border-radius: 10px; border: 2px solid var(--btn-bd);
  background: var(--btn-bg); color: var(--btn-fg); text-decoration: none;
  transition: transform var(--transition), background var(--transition), color var(--transition), border-color var(--transition), box-shadow var(--transition);
  line-height: 1.1; cursor: pointer;
}
.btn:hover { text-decoration: none; transform: translateY(-2px); box-shadow: var(--shadow-md); }
.btn:active { transform: translateY(0); }
.btn--sm { padding: 0.55rem 1.05rem; font-size: 0.9rem; }
.btn--lg { padding: 1rem 1.9rem; font-size: 1.08rem; }
.btn--block { width: 100%; }
.btn--gold { --btn-bg: var(--gold); --btn-bd: var(--gold); --btn-fg: var(--white); }
.btn--gold:hover { --btn-bg: var(--gold-600); --btn-bd: var(--gold-600); }
.btn--navy { --btn-bg: var(--navy); --btn-bd: var(--navy); --btn-fg: var(--white); }
.btn--navy:hover { --btn-bg: var(--navy-700); --btn-bd: var(--navy-700); }
.btn--ghost { --btn-bg: transparent; --btn-bd: rgba(255,255,255,0.55); --btn-fg: var(--white); }
.btn--ghost:hover { --btn-bg: rgba(255,255,255,0.12); }
.btn--outline-gold { --btn-bg: transparent; --btn-bd: var(--gold); --btn-fg: var(--gold); }
.btn--outline-gold:hover { --btn-bg: var(--gold); --btn-fg: var(--white); }

/* ==========================================================================
   Header / Nav
   ========================================================================== */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: var(--white);
  border-bottom: 1px solid var(--line);
  transition: box-shadow var(--transition), background var(--transition);
}
.site-header.is-scrolled { box-shadow: var(--shadow-sm); }
.site-header__inner {
  display: flex; align-items: center; justify-content: space-between;
  height: var(--header-h); gap: 1rem;
}

.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; }
.brand:hover { text-decoration: none; }
.brand__mark { width: auto; max-width: none; object-fit: contain; }

/* Navbar: logo fills the available header height, preserving aspect ratio.
   max-width caps the very wide 1080×187 logo so it never overflows the header
   or starves the nav of space on mid-width screens. */
.site-header .brand { height: 100%; min-width: 0; }
.site-header .brand__mark {
  height: 100%; padding-block: 0.25rem;
  max-width: min(320px, 42vw);
}

/* Footer: fixed, sensible height — never fills the column */
.site-footer .brand { height: auto; }
.site-footer .brand__mark { height: 56px; padding-block: 0; }

.primary-nav { display: flex; align-items: center; gap: 1.75rem; }
.primary-nav__list { display: flex; align-items: center; gap: 0.35rem; }
.primary-nav__link {
  display: inline-block; padding: 0.55rem 0.85rem; border-radius: 8px;
  font-family: var(--font-head); font-weight: 600; font-size: 0.97rem;
  color: var(--navy); position: relative; text-decoration: none;
}
.primary-nav__link:hover { text-decoration: none; color: var(--gold); }
.primary-nav__link.is-active { color: var(--gold); }
.primary-nav__link.is-active::after {
  content: ""; position: absolute; left: 0.85rem; right: 0.85rem; bottom: 2px;
  height: 2px; background: var(--gold);
}
.nav-cta { margin-left: 0.25rem; }

.nav-toggle {
  display: none; width: 44px; height: 44px; border: 1px solid var(--line-strong);
  background: var(--white); border-radius: 10px; padding: 10px;
  flex-direction: column; justify-content: space-between;
}
.nav-toggle__bar { height: 2.5px; background: var(--navy); border-radius: 2px; transition: transform var(--transition), opacity var(--transition); }
.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* ==========================================================================
   Hero
   ========================================================================== */
.hero {
  background: var(--navy);
  color: var(--white);
  padding: clamp(3rem, 7vw, 5.5rem) 0 clamp(3.5rem, 7vw, 5.5rem);
  position: relative; overflow: hidden;
}
/* Desktop: subtle grid pattern via ::before. ::after holds the hero photo
   but stays invisible (opacity 0) — the real <img> is shown beside the text.
   Mobile (≤1024px): the <img> is hidden, ::after reveals the photo as the
   section background, and ::before becomes a solid navy overlay on top of
   it for text legibility (no gradient — solid rgba). */
.hero::before {
  content: ""; position: absolute; inset: 0;
  background-image:
    linear-gradient(transparent 95%, rgba(255,255,255,0.06) 95%),
    linear-gradient(90deg, transparent 95%, rgba(255,255,255,0.06) 95%);
  background-size: 48px 48px;
  opacity: 0.5; pointer-events: none;
}
.hero::after {
  content: ""; position: absolute; inset: 0;
  background-image: var(--hero-image, none);
  background-size: cover; background-position: center;
  opacity: 0; pointer-events: none; transition: opacity 320ms ease;
}
.hero__inner { position: relative; z-index: 1; }
.hero__inner {
  display: grid; grid-template-columns: 1.4fr 1fr; gap: clamp(2rem, 5vw, 4rem);
  align-items: center; position: relative;
}
.hero__content { max-width: 620px; }
.hero .eyebrow { color: var(--off-white); }
.hero .eyebrow--gold { color: var(--gold); }
.hero__title { color: var(--white); margin-bottom: 1.25rem; }
.hero__title-accent { color: var(--gold); }
.hero__lead { color: var(--off-white); font-size: 1.12rem; max-width: 540px; margin-bottom: 2rem; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 0.9rem; margin-bottom: 2.5rem; }
.hero__actions .btn { flex: 1 1 0; min-width: 0; white-space: nowrap; }
.hero__stats { display: flex; gap: clamp(1.25rem, 4vw, 2.75rem); flex-wrap: wrap; padding-top: 1.75rem; border-top: 1px solid rgba(255,255,255,0.18); }
.hero__stats li { display: flex; flex-direction: column; }
.hero__stats strong { font-family: var(--font-head); font-size: 1.7rem; color: var(--gold); line-height: 1; }
.hero__stats span { font-size: 0.85rem; color: var(--off-white); margin-top: 6px; }
.hero__media { display: flex; justify-content: center; align-items: center; }
.hero__media img {
  width: 100%; max-width: 460px; height: auto; border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg); border: 6px solid rgba(255,255,255,0.08);
}

/* ==========================================================================
   Pillars (home service cards)
   ========================================================================== */
.pillar-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; }
/* CTA card: navy background with gold accents — uses compound selector to
   override .pillar's white background (equal specificity, later in file). */
.pillar.pillar--cta {
  --pillar-color: var(--gold);
  background: var(--navy); border-color: var(--navy);
}
.pillar.pillar--cta .pillar__title { color: var(--white); }
.pillar.pillar--cta .pillar__text { color: var(--off-white); }
.pillar.pillar--cta .pillar__link { color: var(--gold); }
.pillar.pillar--cta .pillar__icon--cta {
  background: rgba(182, 125, 41, 0.18); color: var(--gold);
}
.pillar.pillar--cta:hover { border-color: var(--gold); }
.pillar {
  display: flex; flex-direction: column; gap: 0.85rem;
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.85rem 1.6rem 1.6rem; text-decoration: none; color: inherit;
  position: relative; transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
  border-top: 4px solid var(--pillar-color, var(--navy));
  min-width: 0;
}
.pillar:hover { text-decoration: none; transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: var(--line-strong); }
.pillar__icon {
  width: 64px; height: 64px; border-radius: 12px; display: grid; place-items: center;
  background: color-mix(in srgb, var(--pillar-color) 12%, white);
  color: var(--pillar-color);
}
.pillar__title { margin: 0; color: var(--navy); }
.pillar__text { color: var(--muted); margin: 0; flex: 1; }
.pillar__link {
  font-family: var(--font-head); font-weight: 700; color: var(--pillar-color);
  display: inline-flex; align-items: center; gap: 8px; margin-top: 0.25rem;
}
.pillar__link span { transition: transform var(--transition); }
.pillar:hover .pillar__link span { transform: translateX(5px); }
.pillar--electrical .pillar__icon { color: var(--green); }

/* ==========================================================================
   Why choose us
   ========================================================================== */
.why { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: clamp(2rem, 5vw, 4rem); align-items: start; }
.why__intro .section__lead { margin-bottom: 1.5rem; }
.why__list { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; }
.why__list li { border-left: 3px solid var(--gold); padding: 0.25rem 0 0.25rem 1.1rem; min-width: 0; }
.why__num { font-family: var(--font-head); font-weight: 800; color: var(--gold); font-size: 0.95rem; letter-spacing: 0.05em; }
.why__list h3 { margin: 0.15rem 0 0.35rem; }
.why__list p { margin: 0; color: var(--muted); font-size: 0.97rem; }

/* ==========================================================================
   Project cards
   ========================================================================== */
.project-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.project-grid--full { grid-template-columns: repeat(3, 1fr); }
.project-card {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; display: flex; flex-direction: column;
  transition: transform var(--transition), box-shadow var(--transition);
  min-width: 0;
}
.project-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); }
.project-card__media {
  height: 200px; position: relative; overflow: hidden;
  background: var(--navy);
  border-top: 4px solid var(--navy);
}
.project-card__media--construction { border-top-color: var(--navy); }
.project-card__media--interior { border-top-color: var(--gold); }
.project-card__media--electrical { border-top-color: var(--green); }
.project-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 420ms cubic-bezier(0.2, 0.7, 0.3, 1); }
.project-card:hover .project-card__media img { transform: scale(1.06); }
.project-card__media > svg { position: absolute; inset: 0; margin: auto; color: var(--white); opacity: 0.9; }
.project-card__badge {
  position: absolute; top: 12px; right: 12px; background: rgba(255,255,255,0.92);
  color: var(--navy); font-family: var(--font-head); font-weight: 700; font-size: 0.8rem;
  padding: 4px 10px; border-radius: 999px;
}
.project-card__status {
  position: absolute; top: 12px; left: 12px;
  font-family: var(--font-head); font-weight: 700; font-size: 0.8rem;
  padding: 4px 10px; border-radius: 999px; letter-spacing: 0.03em;
}
.project-card__status--progress {
  background: var(--gold); color: var(--white);
  display: inline-flex; align-items: center; gap: 6px;
}
.project-card__status--progress::before {
  content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--white);
  animation: pulse-dot 1.6s ease-in-out infinite;
}
@keyframes pulse-dot { 0%, 100% { opacity: 1; } 50% { opacity: 0.4; } }
.project-card__body { padding: 1.4rem 1.4rem 1.6rem; }
.project-card__meta { font-family: var(--font-head); font-weight: 600; font-size: 0.8rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--gold); margin: 0 0 0.5rem; }
.project-card__title { margin: 0 0 0.5rem; }
.project-card__text { color: var(--muted); font-size: 0.95rem; margin: 0 0 0.9rem; }
.project-card__tags { display: flex; flex-wrap: wrap; gap: 6px; }
.project-card__tags li { font-size: 0.8rem; color: var(--charcoal); background: var(--paper); border: 1px solid var(--line); padding: 3px 9px; border-radius: 999px; }

/* ==========================================================================
   CTA band
   ========================================================================== */
.cta-band { background: var(--navy); color: var(--white); padding: clamp(2.5rem, 6vw, 4rem) 0; position: relative; overflow: hidden; }
.cta-band--media { background-color: var(--navy); background-image: var(--cta-image); background-size: cover; background-position: center; }
.cta-band--media::before {
  content: ""; position: absolute; inset: 0; background: rgba(5, 33, 59, 0.86);
}
.cta-band--media .cta-band__inner { position: relative; }
.cta-band__inner { display: flex; align-items: center; justify-content: space-between; gap: 1.75rem; flex-wrap: wrap; }
.cta-band__title { color: var(--white); margin: 0 0 0.4rem; }
.cta-band__text { color: var(--off-white); margin: 0; }
.cta-band__actions { display: flex; gap: 0.9rem; flex-wrap: wrap; }

/* ==========================================================================
   Page hero (interior pages)
   ========================================================================== */
.page-hero {
  background: var(--paper);
  border-bottom: 1px solid var(--line);
  padding: clamp(2.75rem, 6vw, 4.5rem) 0;
}
.page-hero--compact { padding: clamp(2rem, 5vw, 3rem) 0; }
.page-hero__title { margin: 0 0 0.85rem; max-width: 16ch; }
.page-hero__lead { color: var(--muted); font-size: 1.1rem; max-width: 640px; margin: 0; }

.page-hero--service { background: var(--white); border-bottom: 3px solid var(--pillar-color, var(--navy)); }
.page-hero--media {
  background-color: var(--navy);
  background-image: var(--hero-image);
  background-size: cover; background-position: center;
  border-bottom: none; color: var(--white); position: relative;
}
.page-hero--media::before { content: ""; position: absolute; inset: 0; background: rgba(5, 33, 59, 0.82); }
.page-hero--media > .container { position: relative; }
.page-hero--media .page-hero__title { color: var(--white); }
.page-hero--media .page-hero__lead { color: var(--off-white); }
.page-hero--media .eyebrow { color: var(--off-white); }
.page-hero__service-inner { display: flex; align-items: center; gap: 1.75rem; }
.page-hero__service-icon {
  width: 96px; height: 96px; flex: none; border-radius: 16px; display: grid; place-items: center;
  background: color-mix(in srgb, var(--pillar-color) 12%, white); color: var(--pillar-color);
}

/* ==========================================================================
   Split layout (about / service)
   ========================================================================== */
.split { display: grid; grid-template-columns: 1.4fr 1fr; gap: clamp(2rem, 5vw, 4rem); align-items: start; }
.split__text { min-width: 0; }
.split__text p { color: var(--body-text); }
.split__aside {
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.75rem; border-top: 4px solid var(--gold);
}
.split__aside--media { background: transparent; border: none; padding: 0; border-radius: 0; }
.split__image {
  width: 100%; height: auto; border-radius: var(--radius-lg); display: block;
  box-shadow: var(--shadow-md); margin-bottom: 1.5rem;
}
.split__aside--media .aside-card__title { margin-bottom: 0.85rem; }
.aside-card__title { margin: 0 0 1rem; font-size: 1.1rem; }

.tick-list { display: grid; gap: 0.7rem; }
.tick-list li { position: relative; padding-left: 1.85rem; color: var(--body-text); }
.tick-list li::before {
  content: ""; position: absolute; left: 0; top: 0.45em; width: 16px; height: 16px;
  border-radius: 50%; background: var(--gold);
  box-shadow: inset 0 0 0 3px var(--white), 0 0 0 2px var(--gold);
}
.tick-list--sm li { font-size: 0.92rem; }
.tick-list--sm li::before { top: 0.35em; width: 12px; height: 12px; box-shadow: inset 0 0 0 2px var(--white), 0 0 0 1.5px var(--gold); }

/* ---------- Fact list ---------- */
.fact-list { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.fact-list li { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 1.1rem 1.2rem; min-width: 0; }
.fact-list strong { display: block; font-family: var(--font-head); font-size: 1.6rem; color: var(--navy); line-height: 1; }
.fact-list span { display: block; font-size: 0.85rem; color: var(--muted); margin-top: 6px; }

/* ---------- Values ---------- */
.value-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.25rem; }
.value-card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.5rem; border-bottom: 3px solid var(--navy); min-width: 0; }
.value-card h3 { margin: 0 0 0.4rem; color: var(--navy); }
.value-card p { margin: 0; color: var(--muted); font-size: 0.95rem; }

/* ---------- Process ---------- */
.process { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.25rem; counter-reset: step; }
.process li { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.5rem; position: relative; min-width: 0; }
.process__num {
  width: 38px; height: 38px; border-radius: 10px; background: var(--navy); color: var(--white);
  font-family: var(--font-head); font-weight: 800; display: grid; place-items: center; margin-bottom: 0.9rem;
}
.process h3 { margin: 0 0 0.35rem; }
.process p { margin: 0; color: var(--muted); font-size: 0.95rem; }

/* ==========================================================================
   Services overview
   ========================================================================== */
.service-stack { display: grid; gap: 1.25rem; }
.service-row {
  display: grid; grid-template-columns: 160px 1fr; gap: 1.75rem; align-items: center;
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.75rem; border-left: 5px solid var(--pillar-color, var(--navy));
  transition: box-shadow var(--transition), transform var(--transition);
}
.service-row:hover { box-shadow: var(--shadow-md); transform: translateX(4px); }
.service-row__thumb {
  width: 140px; height: 140px; flex: none; border-radius: 16px; overflow: hidden;
  box-shadow: var(--shadow-sm);
}
.service-row__thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform 420ms cubic-bezier(0.2, 0.7, 0.3, 1); }
.service-row:hover .service-row__thumb img { transform: scale(1.07); }
.service-row__tag { font-family: var(--font-head); font-weight: 700; font-size: 0.8rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); margin: 0 0 0.35rem; }
.service-row__title { margin: 0 0 0.4rem; }
.service-row__text { color: var(--muted); margin: 0 0 0.85rem; }
.service-row__body { min-width: 0; }

/* ---------- Compare ---------- */
.compare-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; max-width: 920px; margin: 0 auto; }
.compare-card { border-radius: var(--radius); padding: 1.75rem; border: 1px solid var(--line); }
.compare-card h3 { margin: 0 0 1rem; }
.compare-card ul { display: grid; gap: 0.7rem; }
.compare-card li { position: relative; padding-left: 1.6rem; }
.compare-card--bad { background: var(--white); }
.compare-card--bad li::before { content: "\2715"; position: absolute; left: 0; color: var(--charcoal); font-weight: 700; }
.compare-card--good { background: var(--navy); color: var(--white); border-color: var(--navy); }
.compare-card--good h3 { color: var(--white); }
.compare-card--good li::before { content: "\2713"; position: absolute; left: 0; color: var(--gold); font-weight: 700; }

/* ---------- Feature grid ---------- */
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
.feature-card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.5rem; min-width: 0; }
.feature-card h3 { margin: 0 0 0.4rem; color: var(--navy); font-size: 1.1rem; }
.feature-card p { margin: 0; color: var(--muted); font-size: 0.95rem; }

/* ==========================================================================
   Forms
   ========================================================================== */
.form-layout { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: clamp(1.75rem, 4vw, 3rem); align-items: start; }
.form-layout__aside { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.85rem; border-top: 4px solid var(--navy); overflow: hidden; }
.form-layout__image { width: calc(100% + 3.7rem); height: 220px; object-fit: cover; margin: -1.85rem -1.85rem 1.5rem; display: block; }
.form-layout__aside h2 { font-size: 1.3rem; margin: 0 0 0.6rem; }
.form-layout__aside > p { color: var(--muted); margin-bottom: 1.5rem; }

.contact-quick { display: grid; gap: 0.25rem; margin-bottom: 1.5rem; }
.contact-quick li { display: flex; flex-direction: column; gap: 2px; padding: 0.5rem 0; border-bottom: 1px solid var(--line); min-height: 44px; justify-content: center; }
.contact-quick li:last-child { border-bottom: none; }
.contact-quick a { text-decoration: none; display: flex; flex-direction: column; gap: 2px; }
.contact-quick a:hover strong { color: var(--gold); }
.contact-quick__label { font-size: 0.8rem; color: var(--muted); font-family: var(--font-head); font-weight: 600; }
.contact-quick strong { color: var(--navy); font-family: var(--font-head); font-size: 1.05rem; transition: color var(--transition); }

.form-trust { margin-top: 1.5rem; padding-top: 1.5rem; border-top: 1px solid var(--line); }
.form-trust h3 { font-size: 1.05rem; margin-bottom: 0.85rem; }

.form { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(1.5rem, 3vw, 2.25rem); box-shadow: var(--shadow-sm); }
.form-row { margin-bottom: 1.15rem; }
.form-label { display: block; font-family: var(--font-head); font-weight: 600; font-size: 0.92rem; color: var(--navy); margin-bottom: 0.4rem; }
.req { color: var(--gold); }
.opt { color: var(--muted); font-weight: 400; font-size: 0.85rem; }
.form-control {
  width: 100%; padding: 0.8rem 0.9rem; font: inherit; font-size: 16px; color: var(--body-text);
  background: var(--white); border: 1.5px solid var(--line-strong); border-radius: 10px;
  transition: border-color var(--transition), box-shadow var(--transition);
}
.form-control:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px color-mix(in srgb, var(--gold) 25%, transparent); }
textarea.form-control { resize: vertical; min-height: 120px; }
select.form-control { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2305213B' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 0.9rem center; padding-right: 2.4rem; }
.form-note { text-align: center; color: var(--muted); font-size: 0.85rem; margin: 1rem 0 0; }
.form-errors {
  background: #fbe9e6; border: 1px solid #e3b3a8; border-left: 4px solid #b3432b;
  border-radius: 10px; padding: 1rem 1.15rem; margin-bottom: 1.25rem; color: #7a2a18;
}
.form-errors p { margin: 0 0 0.4rem; font-weight: 600; }
.form-errors ul { padding-left: 1.2rem; list-style: disc; }
.form-errors li { margin-bottom: 2px; }

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer { background: var(--dark-navy); color: var(--off-white); padding-top: clamp(3rem, 6vw, 4.5rem); }
.site-footer__grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.3fr; gap: 2rem; padding-bottom: 2.5rem; }
.site-footer__tagline { font-family: var(--font-head); font-weight: 700; color: var(--gold); margin: 1rem 0 0.5rem; }
.site-footer__blurb { color: #b9bcc0; font-size: 0.95rem; max-width: 34ch; margin: 0; }
.site-footer__heading { color: var(--white); font-size: 1rem; letter-spacing: 0.04em; text-transform: uppercase; margin: 0 0 1rem; }
.site-footer__links { display: grid; gap: 0.25rem; }
.site-footer__links a { color: #b9bcc0; text-decoration: none; transition: color var(--transition); display: flex; align-items: center; min-height: 44px; }
.site-footer__links a:hover { color: var(--gold); }
.site-footer__contact { display: grid; gap: 0.25rem; }
.site-footer__contact li { display: flex; flex-direction: column; gap: 2px; min-height: 44px; justify-content: center; }
.site-footer__contact span { font-size: 0.8rem; color: #8b9097; }
.site-footer__contact a, .site-footer__contact strong { color: var(--white); text-decoration: none; font-family: var(--font-head); }
.site-footer__contact a:hover { color: var(--gold); }
.site-footer__bar { border-top: 1px solid rgba(255,255,255,0.12); padding: 1.4rem 0; }
.site-footer__bar-inner { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; font-size: 0.85rem; color: #8b9097; }
.site-footer__bar-inner p { margin: 0; }
.site-footer__legal { color: var(--gold); font-family: var(--font-head); font-weight: 600; }

/* ==========================================================================
   Floating actions
   ========================================================================== */
.floating-actions { position: fixed; right: clamp(0.9rem, 3vw, 1.5rem); bottom: clamp(0.9rem, 3vw, 1.5rem); z-index: 90; display: flex; flex-direction: column; gap: 0.7rem; }
.floating-btn {
  width: 54px; height: 54px; border-radius: 50%; display: grid; place-items: center;
  color: var(--white); box-shadow: var(--shadow-lg); text-decoration: none;
  transition: transform var(--transition), box-shadow var(--transition);
  border: 2px solid transparent;
}
.floating-btn:hover { text-decoration: none; transform: scale(1.08) translateY(-2px); }
.floating-btn--whatsapp { background: #25D366; }
.floating-btn--call { background: var(--navy); }
.floating-btn:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; }

/* ==========================================================================
   Flash messages
   ========================================================================== */
.flash {
  position: fixed; left: 50%; bottom: clamp(5.5rem, 12vw, 6.5rem); transform: translateX(-50%);
  background: var(--green); color: var(--white); border-radius: 12px;
  padding: 0.9rem 1.1rem; display: flex; align-items: center; gap: 0.75rem;
  box-shadow: var(--shadow-lg); z-index: 200; max-width: min(92vw, 460px);
  animation: flash-in 320ms ease-out;
}
.flash__icon { flex: none; width: 26px; height: 26px; border-radius: 50%; background: rgba(255,255,255,0.2); display: grid; place-items: center; }
.flash p { margin: 0; font-size: 0.95rem; line-height: 1.4; }
.flash__close { background: none; border: none; color: var(--white); font-size: 1.4rem; line-height: 1; padding: 0 0 0 0.5rem; opacity: 0.8; }
.flash__close:hover { opacity: 1; }
@keyframes flash-in { from { opacity: 0; transform: translate(-50%, 12px); } to { opacity: 1; transform: translate(-50%, 0); } }

/* ==========================================================================
   404 / empty state
   ========================================================================== */
.not-found { padding: clamp(4rem, 10vw, 7rem) 0; text-align: center; }
.not-found__inner { max-width: 560px; margin: 0 auto; }
.not-found__code { font-family: var(--font-head); font-weight: 800; font-size: clamp(4rem, 14vw, 7rem); color: var(--gold); line-height: 1; margin: 0; letter-spacing: -0.02em; }
.not-found__title { margin: 0.5rem 0 1rem; }
.not-found__text { color: var(--muted); margin-bottom: 1.75rem; }
.not-found__actions { display: flex; gap: 0.9rem; justify-content: center; flex-wrap: wrap; }

.empty-state { text-align: center; padding: 3rem 1rem; max-width: 480px; margin: 0 auto; }
.empty-state h2 { margin-bottom: 0.5rem; }
.empty-state p { color: var(--muted); margin-bottom: 1.5rem; }

/* ==========================================================================
   Responsive
   Breakpoints tested: 1024 (tablet landscape), 820 (tablet portrait / nav
   collapse), 600 (large phone), 480 (small phone), 380 (very small phone).
   Grids stay 2-column on phones where content fits, to reduce scroll depth.
   ========================================================================== */
@media (max-width: 1024px) {
  /* Mobile: hero image becomes a background with a solid navy overlay for legibility */
  .hero::after { opacity: 1; }
  .hero::before {
    background-image: none;
    background-color: rgba(5, 33, 59, 0.93);
    opacity: 1; z-index: 0;
  }
  .hero__inner { grid-template-columns: 1fr; z-index: 1; }
  .hero__media { display: none; }
  .hero__content { max-width: none; }
  .why { grid-template-columns: 1fr; }
  .split { grid-template-columns: 1fr; }
  .split__aside { order: 2; }
  .value-grid { grid-template-columns: repeat(2, 1fr); }
  .process { grid-template-columns: repeat(2, 1fr); }
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
  .site-footer__grid { grid-template-columns: 1fr 1fr; gap: 2rem 1.5rem; }
  .form-layout { grid-template-columns: 1fr; }
  .form-layout__aside { order: 2; }
}

@media (max-width: 1100px) {
  .primary-nav {
    position: fixed; inset: var(--header-h) 0 auto 0;
    background: var(--white); flex-direction: column; align-items: stretch;
    gap: 0; padding: 0.5rem var(--gutter) 1.5rem; border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow-lg); transform: translateY(-12px); opacity: 0; pointer-events: none;
    transition: transform var(--transition), opacity var(--transition);
    max-height: calc(100vh - var(--header-h)); overflow-y: auto;
  }
  .primary-nav.is-open { transform: translateY(0); opacity: 1; pointer-events: auto; }
  .primary-nav__list { flex-direction: column; align-items: stretch; gap: 0; }
  .primary-nav__link { display: flex; align-items: center; min-height: 48px; padding: 0.9rem 0.5rem; border-radius: 0; border-bottom: 1px solid var(--line); font-size: 1.05rem; }
  .primary-nav__link.is-active::after { display: none; }
  .primary-nav__link.is-active { background: var(--paper); }
  .nav-cta { display: flex; justify-content: center; margin: 1rem 0 0; padding: 0.9rem 1.5rem; font-size: 1rem; min-height: 48px; }
  .nav-toggle { display: flex; }
}

@media (max-width: 820px) {
  .pillar-grid { grid-template-columns: repeat(2, 1fr); gap: 1rem; }
  .pillar { padding: 1.4rem 1.1rem 1.2rem; gap: 0.7rem; }
  .pillar__icon { width: 48px; height: 48px; border-radius: 10px; }
  .pillar__icon svg { width: 32px; height: 32px; }
  .pillar__title { font-size: 1rem; }
  .pillar__text { font-size: 0.9rem; }
  .pillar__link { font-size: 0.9rem; }
  .project-grid, .project-grid--full { grid-template-columns: 1fr 1fr; }
  .compare-grid { grid-template-columns: 1fr; }
  .service-row { grid-template-columns: 96px 1fr; gap: 1rem; padding: 1.4rem; }
  .service-row__thumb { width: 96px; height: 96px; border-radius: 12px; }
}

@media (max-width: 600px) {
  :root { --header-h: 60px; }
  /* Logo: fill all available navbar width so the wide logo renders as tall
     as possible. object-fit: contain keeps the aspect ratio within the box. */
  .site-header .brand { flex: 1 1 0; height: 100%; min-width: 0; }
  .site-header .brand__mark {
    width: 100%; height: 100%; max-width: none;
    padding-block: 0.15rem; object-fit: contain;
  }
  /* Hero stats: neat 3-column row instead of wrapping awkwardly */
  .hero__stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.75rem; }
  .hero__stats strong { font-size: 1.4rem; }
  .hero__stats li { align-items: flex-start; }
  /* Keep 2-column grids on phones to cut scroll depth */
  .why__list { grid-template-columns: 1fr 1fr; gap: 1rem; }
  .fact-list { grid-template-columns: 1fr 1fr; }
  .value-grid, .process, .feature-grid { grid-template-columns: repeat(2, 1fr); }
  /* project-grid stays 2-col (image-led cards read well at ~170px) */
  .site-footer__grid { grid-template-columns: 1fr; }
  .cta-band__inner { flex-direction: column; align-items: flex-start; }
  .page-hero__service-inner { flex-direction: column; align-items: flex-start; gap: 1rem; }
  .page-hero__service-icon { width: 72px; height: 72px; }
  .section__head--row { flex-direction: column; align-items: flex-start; }
  .floating-btn { width: 50px; height: 50px; }
  .site-header .brand__mark { padding-block: 0.2rem; }
  /* Tighten section padding on phones to reduce scroll inflation */
  .section { padding-block: clamp(2.75rem, 7vw, 3.5rem); }
  .section--tight { padding-block: clamp(2rem, 5vw, 2.75rem); }
  /* Hero buttons: trim horizontal padding so labels stay on one line */
  .hero__actions .btn { padding-inline: 0.85rem; font-size: 0.95rem; }
  .hero__actions { gap: 0.6rem; }
  /* Pillar section: tighter margins/padding for more content room on phones */
  .pillar-grid { gap: 0.75rem; }
  .pillar { padding: 1rem 0.75rem 0.9rem; gap: 0.5rem; }
  .pillar__icon { width: 40px; height: 40px; border-radius: 8px; }
  .pillar__icon svg { width: 26px; height: 26px; }
  .pillar__title { font-size: 0.9rem; }
  .pillar__text { font-size: 0.82rem; line-height: 1.4; }
  .pillar__link { font-size: 0.82rem; }
  /* Project cards: compact on phones */
  .project-grid, .project-grid--full { gap: 0.75rem; }
  .project-card__media { height: 140px; }
  .project-card__body { padding: 0.85rem 0.8rem 0.9rem; }
  .project-card__title { font-size: 0.95rem; }
  .project-card__text { font-size: 0.82rem; line-height: 1.4; margin-bottom: 0.6rem; }
  .project-card__meta { font-size: 0.72rem; margin-bottom: 0.3rem; }
  .project-card__tags li { font-size: 0.72rem; padding: 2px 7px; }
  .project-card__badge, .project-card__status { font-size: 0.72rem; padding: 3px 8px; top: 8px; }
  .project-card__badge { right: 8px; }
  .project-card__status { left: 8px; }
  /* Value cards: compact */
  .value-grid { gap: 0.75rem; }
  .value-card { padding: 1rem 0.8rem 0.9rem; }
  .value-card h3 { font-size: 0.9rem; margin-bottom: 0.3rem; }
  .value-card p { font-size: 0.82rem; line-height: 1.4; }
  /* Process: compact */
  .process { gap: 0.75rem; }
  .process li { padding: 1rem 0.8rem 0.9rem; }
  .process__num { width: 30px; height: 30px; font-size: 0.85rem; margin-bottom: 0.6rem; }
  .process h3 { font-size: 0.9rem; margin-bottom: 0.25rem; }
  .process p { font-size: 0.82rem; line-height: 1.4; }
  /* Feature cards: compact */
  .feature-grid { gap: 0.75rem; }
  .feature-card { padding: 1rem 0.8rem 0.9rem; }
  .feature-card h3 { font-size: 0.9rem; margin-bottom: 0.3rem; }
  .feature-card p { font-size: 0.82rem; line-height: 1.4; }
  /* Fact list: compact */
  .fact-list { gap: 0.75rem; }
  .fact-list li { padding: 0.85rem 0.8rem; }
  .fact-list strong { font-size: 1.25rem; }
  .fact-list span { font-size: 0.78rem; }
  /* Why list: compact */
  .why__list { gap: 0.75rem; }
  .why__list li { padding-left: 0.85rem; }
  .why__list h3 { font-size: 0.9rem; }
  .why__list p { font-size: 0.82rem; line-height: 1.4; }
  .why__num { font-size: 0.82rem; }
  /* Service rows: compact */
  .service-stack { gap: 0.75rem; }
  .service-row { padding: 1rem 0.8rem; }
  .service-row__thumb { width: 72px; height: 72px; border-radius: 10px; }
  .service-row { grid-template-columns: 72px 1fr; gap: 0.75rem; }
  .service-row__title { font-size: 1rem; }
  .service-row__text { font-size: 0.85rem; line-height: 1.4; }
  .service-row__tag { font-size: 0.72rem; }
  /* Compare cards: compact */
  .compare-grid { gap: 0.75rem; }
  .compare-card { padding: 1.1rem 0.9rem; }
  .compare-card h3 { font-size: 1rem; margin-bottom: 0.6rem; }
  .compare-card li { font-size: 0.88rem; padding-left: 1.3rem; }
  /* Split aside: compact */
  .split__aside { padding: 1.1rem; }
  .split__image { margin-bottom: 1rem; }
  /* CTA band: compact */
  .cta-band { padding: clamp(1.75rem, 5vw, 2.5rem) 0; }
  .cta-band__title { font-size: 1.3rem; }
  .cta-band__text { font-size: 0.9rem; }
  .cta-band__actions { gap: 0.6rem; }
  .cta-band__actions .btn { padding-inline: 0.85rem; font-size: 0.9rem; }
  /* Page hero: compact */
  .page-hero { padding: clamp(1.75rem, 5vw, 2.5rem) 0; }
  .page-hero--compact { padding: clamp(1.25rem, 4vw, 2rem) 0; }
  .page-hero__title { font-size: clamp(1.5rem, 5vw, 2rem); margin-bottom: 0.5rem; }
  .page-hero__lead { font-size: 0.95rem; }
  .page-hero__service-icon { width: 56px; height: 56px; border-radius: 12px; }
  /* Section heads: compact */
  .section__head { margin-bottom: 1.25rem; }
  .section__title { font-size: clamp(1.3rem, 4vw, 1.6rem); }
  .section__lead { font-size: 0.9rem; }
  /* Form: compact */
  .form { padding: 1.1rem; }
  .form-row { margin-bottom: 0.85rem; }
  .form-label { font-size: 0.85rem; margin-bottom: 0.3rem; }
  .form-control { padding: 0.65rem 0.75rem; }
  .form-layout__aside { padding: 1.1rem; }
  .form-layout__image { height: 160px; margin: -1.1rem -1.1rem 1rem; }
  .form-layout__aside h2 { font-size: 1.15rem; }
  .form-layout__aside > p { font-size: 0.88rem; margin-bottom: 1rem; }
  /* Tick list: compact */
  .tick-list { gap: 0.5rem; }
  .tick-list li { padding-left: 1.5rem; font-size: 0.88rem; }
  .tick-list--sm li { font-size: 0.82rem; }
}

@media (max-width: 480px) {
  /* Why list stays 2-col on phones — short items read fine side by side */
}

@media (max-width: 380px) {
  :root { --header-h: 54px; }
  .site-footer .brand__mark { height: 48px; }
  /* Project cards stay 2-col even at 360px — image-led, keeps scroll short */
  .hero__stats { grid-template-columns: repeat(3, 1fr); gap: 0.5rem; }
  .hero__stats strong { font-size: 1.25rem; }
  .hero__stats span { font-size: 0.78rem; }
  /* Hero buttons: minimal padding so both labels fit on one line */
  .hero__actions .btn { padding-inline: 0.6rem; font-size: 0.9rem; }
  .hero__actions { gap: 0.5rem; }
  /* All card sections: minimal padding on the smallest phones */
  .pillar-grid { gap: 0.5rem; }
  .pillar { padding: 0.75rem 0.6rem 0.7rem; }
  .project-grid, .project-grid--full { gap: 0.5rem; }
  .project-card__body { padding: 0.7rem 0.65rem 0.75rem; }
  .project-card__media { height: 120px; }
  .value-grid, .process, .feature-grid, .fact-list, .why__list { gap: 0.5rem; }
  .value-card, .feature-card { padding: 0.75rem 0.65rem 0.7rem; }
  .process li { padding: 0.75rem 0.65rem 0.7rem; }
  .fact-list li { padding: 0.7rem 0.65rem; }
  .compare-card { padding: 0.85rem 0.75rem; }
  .split__aside { padding: 0.85rem; }
  .form { padding: 0.85rem; }
  .form-layout__aside { padding: 0.85rem; }
  .form-layout__image { height: 130px; margin: -0.85rem -0.85rem 0.85rem; }
  .service-row { padding: 0.75rem 0.6rem; }
  .service-row__thumb { width: 60px; height: 60px; }
  .service-row { grid-template-columns: 60px 1fr; gap: 0.6rem; }
}
