/* ============================================================
   LUCIDE ICONS — global sizing
   ============================================================ */
[data-lucide] {
  display: block;
  flex-shrink: 0;
}

/* Feature / service card icons (48–52 px containers) */
.feature-card-icon [data-lucide],
.service-card-icon [data-lucide],
.service-duo-icon [data-lucide],
.reg-card-icon [data-lucide] {
  width: 26px;
  height: 26px;
  stroke-width: 1.75;
  color: var(--color-primary);
}

/* Service duo icon is on a coloured bg — use white */
.service-duo-icon [data-lucide] {
  color: var(--color-white);
}

/* Construction card icons */
.construction-card-icon [data-lucide] {
  width: 28px;
  height: 28px;
  stroke-width: 1.75;
  color: var(--color-primary);
}

/* Contact card icons (larger container) */
.contact-card-icon [data-lucide] {
  width: 30px;
  height: 30px;
  stroke-width: 1.75;
  color: var(--color-primary);
}

/* Inline contact detail icons */
.contact-detail-icon [data-lucide] {
  width: 18px;
  height: 18px;
  stroke-width: 1.75;
  color: var(--color-primary);
}

/* Trust strip inline icons */
.trust-logo-item [data-lucide] {
  width: 15px;
  height: 15px;
  stroke-width: 2;
  color: var(--color-text-muted);
}

/* Value card icon (about page) */
.value-card-icon {
  width: 44px;
  height: 44px;
  background: var(--color-primary-pale);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--space-3);
}

.value-card-icon [data-lucide] {
  width: 22px;
  height: 22px;
  stroke-width: 1.75;
  color: var(--color-primary);
}

/* Hero floating card icon */
.hero-card-icon-wrap [data-lucide] {
  width: 22px;
  height: 22px;
  stroke-width: 1.75;
  color: var(--color-primary);
}

/* ERB list arrow icons */
.erb-list-icon [data-lucide] {
  width: 14px;
  height: 14px;
  stroke-width: 2.5;
  color: var(--color-primary);
  flex-shrink: 0;
}

/* ============================================================
   MBACHI TRADING LIMITED — COMPONENTS.CSS
   Reusable UI Components: Cards, Stats, Hero, Trust Strip, etc.
   ============================================================ */

/* ============================================================
   HEADER / NAVIGATION
   ============================================================ */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: var(--header-height);
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--color-border);
  transition: box-shadow var(--transition-base), background var(--transition-base);
}

.site-header.scrolled {
  box-shadow: var(--shadow-md);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

/* Logo */
.nav-logo {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  text-decoration: none;
}

.nav-logo-mark {
  width: 40px;
  height: 40px;
  background: var(--color-primary);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: var(--text-lg);
  color: var(--color-white);
  letter-spacing: -0.03em;
}

.nav-logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.nav-logo-primary {
  font-family: var(--font-serif);
  font-size: var(--text-md);
  font-weight: 700;
  color: var(--color-dark);
  letter-spacing: -0.01em;
}

.nav-logo-sub {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  font-weight: 500;
}

/* Nav links */
.nav-links {
  display: flex;
  align-items: center;
  gap: var(--space-1);
}

.nav-link {
  padding: var(--space-2) var(--space-4);
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--color-text-muted);
  border-radius: var(--radius-full);
  transition: color var(--transition-fast), background var(--transition-fast);
}

.nav-link:hover {
  color: var(--color-dark);
  background: var(--color-surface);
}

.nav-link.active {
  color: var(--color-primary);
  background: var(--color-primary-pale);
}

/* Nav CTA */
.nav-cta {
  display: flex;
  align-items: center;
  gap: var(--space-3);
}

/* Hamburger (mobile) */
.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: var(--space-2);
  border-radius: var(--radius-sm);
  transition: background var(--transition-fast);
}

.nav-hamburger:hover {
  background: var(--color-surface);
}

.nav-hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--color-dark);
  border-radius: var(--radius-full);
  transition: all var(--transition-base);
}

.nav-hamburger.open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-hamburger.open span:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}

.nav-hamburger.open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Mobile nav drawer */
.nav-mobile {
  display: none;
  position: fixed;
  top: var(--header-height);
  left: 0;
  right: 0;
  background: var(--color-white);
  border-bottom: 1px solid var(--color-border);
  padding: var(--space-4) var(--container-pad) var(--space-6);
  box-shadow: var(--shadow-lg);
  z-index: 999;
  transform: translateY(-10px);
  opacity: 0;
  transition: transform var(--transition-base), opacity var(--transition-base);
  pointer-events: none;
}

.nav-mobile.open {
  transform: translateY(0);
  opacity: 1;
  pointer-events: all;
}

.nav-mobile-link {
  display: block;
  padding: var(--space-3) 0;
  font-size: var(--text-base);
  font-weight: 500;
  color: var(--color-text);
  border-bottom: 1px solid var(--color-border);
  transition: color var(--transition-fast);
}

.nav-mobile-link:last-of-type {
  border-bottom: none;
}

.nav-mobile-link:hover {
  color: var(--color-primary);
}

.nav-mobile-cta {
  margin-top: var(--space-4);
  width: 100%;
  justify-content: center;
}

/* ============================================================
   HERO SECTION
   ============================================================ */
.hero {
  min-height: 100vh;
  padding-top: var(--header-height);
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  background: var(--color-surface);
}

.hero-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-16);
  align-items: center;
  width: 100%;
  padding: var(--space-16) 0;
}

.hero-content {
  position: relative;
  z-index: 2;
}

.hero-label {
  margin-bottom: var(--space-5);
}

.hero-title {
  font-size: clamp(2.75rem, 5.5vw, 5rem);
  line-height: 1.08;
  letter-spacing: -0.03em;
  margin-bottom: var(--space-6);
  color: var(--color-dark);
}

.hero-desc {
  font-size: var(--text-md);
  color: var(--color-text-muted);
  max-width: 500px;
  margin-bottom: var(--space-8);
  line-height: 1.75;
}

.hero-tags {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  margin-bottom: var(--space-8);
}

.hero-tag {
  padding: var(--space-1) var(--space-4);
  background: var(--color-primary-pale);
  color: var(--color-primary-dark);
  border-radius: var(--radius-full);
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
}

/* ============================================================
   HERO — Full-bleed image with left-to-right gradient fade
   Matches Aeline inspiration: image bleeds to right edge,
   dissolves into page background colour from ~40% leftward.
   ============================================================ */

.hero {
  min-height: 100vh;
  padding-top: var(--header-height);
  display: flex;
  align-items: stretch;
  position: relative;
  overflow: hidden;
  background: var(--color-surface);
}

/* Full-bleed image — absolutely fills the right portion */
.hero-bg-image {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-img-main {
  position: absolute;
  right: 0;
  top: 0;
  width: 62%;          /* image covers right 62% of the viewport */
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

/* The key fade-out effect — gradient dissolves image into bg from left */
.hero-img-fade {
  position: absolute;
  inset: 0;
  /* --color-surface is #F7F5F0 — use matching rgba() values for mid-stops.
     Fade: solid bg on left 30%, feathers out, transparent at 100% right. */
  background: linear-gradient(
    to right,
    #F7F5F0 0%,
    #F7F5F0 32%,
    rgba(247, 245, 240, 0.88) 44%,
    rgba(247, 245, 240, 0.50) 56%,
    rgba(247, 245, 240, 0.12) 70%,
    transparent 100%
  );
}

/* Container sits above image + fade */
.hero-container {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  min-height: calc(100vh - var(--header-height));
  padding-top: var(--space-16);
  padding-bottom: var(--space-16);
}

/* Content occupies the left ~50% max */
.hero-content {
  max-width: 560px;
  width: 100%;
  position: relative;
  z-index: 3;
}

.hero-label {
  margin-bottom: var(--space-5);
}

.hero-title {
  font-size: clamp(2.75rem, 5.5vw, 5rem);
  line-height: 1.08;
  letter-spacing: -0.03em;
  margin-bottom: var(--space-6);
  color: var(--color-dark);
}

.hero-desc {
  font-size: var(--text-md);
  color: var(--color-text-muted);
  max-width: 480px;
  margin-bottom: var(--space-7);
  line-height: 1.75;
}

.hero-tags {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  margin-bottom: var(--space-7);
}

.hero-tag {
  padding: var(--space-1) var(--space-4);
  background: var(--color-primary-pale);
  color: var(--color-primary-dark);
  border-radius: var(--radius-full);
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
  margin-bottom: var(--space-10);
}

/* Inline stats row within hero — matching inspiration layout */
.hero-stats {
  display: flex;
  align-items: center;
  gap: var(--space-6);
  padding-top: var(--space-6);
  border-top: 1px solid var(--color-border);
}

.hero-stat {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.hero-stat strong {
  font-size: var(--text-xl);
  font-weight: 700;
  font-family: var(--font-display);
  color: var(--color-dark);
  line-height: 1;
}

.hero-stat span {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 500;
}

.hero-stat-divider {
  width: 1px;
  height: 32px;
  background: var(--color-border);
  flex-shrink: 0;
}

/* Floating cards layer — positioned relative to the hero container,
   cards sit in the right portion (on top of fading image) */
.hero-cards-layer {
  position: absolute;
  right: 0;
  top: 0;
  width: 62%;
  height: 100%;
  pointer-events: none;
  z-index: 4;
}

/* Floating cards on hero */
.hero-card {
  position: absolute;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-radius: var(--radius-lg);
  padding: var(--space-4) var(--space-5);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12), 0 1px 3px rgba(0,0,0,0.08);
  border: 1px solid rgba(255, 255, 255, 0.7);
  display: flex;
  align-items: center;
  gap: var(--space-3);
  animation: float 6s ease-in-out infinite;
  pointer-events: auto;
}

.hero-card:nth-child(2) { animation-delay: -2s; }
.hero-card:nth-child(3) { animation-delay: -4s; }

.hero-card--1 {
  top: 18%;
  right: 4%;
  max-width: 210px;
}

.hero-card--2 {
  bottom: 28%;
  right: 2%;
  max-width: 210px;
}

.hero-card--3 {
  bottom: 14%;
  left: 8%;
  max-width: 190px;
}

.hero-card-icon-wrap {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  background: var(--color-primary-pale);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-card-img {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  object-fit: cover;
  flex-shrink: 0;
}

.hero-card-text strong {
  display: block;
  font-size: var(--text-sm);
  font-family: var(--font-sans);
  font-weight: 600;
  color: var(--color-dark);
  line-height: 1.3;
}

.hero-card-text span {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  line-height: 1.4;
  display: block;
}

@keyframes float {
  0%, 100% { transform: translateY(0px); }
  50%       { transform: translateY(-10px); }
}



/* Page-level (inner page) hero — shorter */
.hero-page {
  min-height: 360px;
  padding-top: var(--header-height);
  background: var(--color-dark);
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
}

.hero-page-bg {
  position: absolute;
  inset: 0;
  object-fit: cover;
  width: 100%;
  height: 100%;
  opacity: 0.35;
}

.hero-page-content {
  position: relative;
  z-index: 2;
  padding: var(--space-16) 0 var(--space-12);
}

.hero-page-label {
  color: var(--color-primary-light);
  margin-bottom: var(--space-4);
}

.hero-page-label::before {
  background: var(--color-primary-light);
}

.hero-page-title {
  color: var(--color-white);
  margin-bottom: var(--space-4);
}

.hero-page-desc {
  color: rgba(255,255,255,0.7);
  font-size: var(--text-md);
  max-width: 600px;
}

/* ============================================================
   STATS BAR
   ============================================================ */
.stats-bar {
  background: var(--color-white);
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
  padding: var(--space-10) 0;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-6);
}

.stat-item {
  text-align: center;
  padding: var(--space-4);
  border-right: 1px solid var(--color-border);
}

.stat-item:last-child {
  border-right: none;
}

.stat-number {
  font-family: var(--font-serif);
  font-size: var(--text-4xl);
  font-weight: 700;
  color: var(--color-dark);
  line-height: 1;
  margin-bottom: var(--space-2);
}

.stat-number .accent {
  color: var(--color-primary);
}

.stat-label {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  font-weight: 500;
}

/* ============================================================
   SERVICE CARDS
   ============================================================ */
.service-card {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  overflow: hidden;
  transition: transform var(--transition-base), box-shadow var(--transition-base);
  display: flex;
  flex-direction: column;
}

.service-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-xl);
}

.service-card-img {
  width: 100%;
  height: 220px;
  object-fit: cover;
}

.service-card-body {
  padding: var(--space-6);
  flex: 1;
  display: flex;
  flex-direction: column;
}

.service-card-icon {
  width: 48px;
  height: 48px;
  background: var(--color-primary-pale);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--space-4);
  font-size: 1.5rem;
}

.service-card-title {
  font-size: var(--text-lg);
  font-family: var(--font-serif);
  font-weight: 700;
  color: var(--color-dark);
  margin-bottom: var(--space-3);
}

.service-card-desc {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  line-height: 1.7;
  flex: 1;
}

.service-card-link {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  margin-top: var(--space-4);
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--color-primary);
  transition: gap var(--transition-fast);
}

.service-card-link:hover {
  gap: var(--space-3);
}

/* Large service pair cards (homepage) */
.service-duo {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-6);
}

.service-duo-card {
  position: relative;
  border-radius: var(--radius-2xl);
  overflow: hidden;
  min-height: 420px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  transition: transform var(--transition-base);
}

.service-duo-card:hover {
  transform: translateY(-4px);
}

.service-duo-card:hover .service-duo-img {
  transform: scale(1.04);
}

.service-duo-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.service-duo-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(28,26,24,0.88) 0%, rgba(28,26,24,0.2) 60%, transparent 100%);
}

.service-duo-content {
  position: relative;
  z-index: 2;
  padding: var(--space-8);
}

.service-duo-icon {
  width: 52px;
  height: 52px;
  background: rgba(192, 122, 42, 0.9);
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: var(--space-4);
}

.service-duo-title {
  font-size: var(--text-2xl);
  color: var(--color-white);
  margin-bottom: var(--space-3);
  font-family: var(--font-serif);
}

.service-duo-list {
  list-style: none;
  margin-bottom: var(--space-5);
}

.service-duo-list li {
  font-size: var(--text-sm);
  color: rgba(255,255,255,0.8);
  padding: var(--space-1) 0;
  display: flex;
  align-items: center;
  gap: var(--space-2);
}

.service-duo-list li::before {
  content: '→';
  color: var(--color-primary-light);
  font-size: 0.8em;
}

/* ============================================================
   IMAGE GRID CARDS (Mission section style)
   ============================================================ */
.img-card {
  position: relative;
  border-radius: var(--radius-xl);
  overflow: hidden;
  min-height: 300px;
}

.img-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.img-card:hover img {
  transform: scale(1.05);
}

.img-card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(28,26,24,0.75) 0%, transparent 60%);
}

.img-card-label {
  position: absolute;
  bottom: var(--space-5);
  left: var(--space-5);
  background: rgba(255,255,255,0.15);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: var(--radius-full);
  padding: var(--space-1) var(--space-3);
  font-size: var(--text-xs);
  font-weight: 600;
  color: var(--color-white);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

/* ============================================================
   PROJECTS / CLIENT CARDS
   ============================================================ */
.project-card {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  overflow: hidden;
  transition: transform var(--transition-base), box-shadow var(--transition-base);
}

.project-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.project-card-img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.project-card-body {
  padding: var(--space-5) var(--space-6);
}

.project-card-category {
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-primary);
  margin-bottom: var(--space-2);
}

.project-card-title {
  font-size: var(--text-lg);
  font-family: var(--font-serif);
  font-weight: 700;
  color: var(--color-dark);
  margin-bottom: var(--space-3);
  line-height: 1.3;
}

.project-card-desc {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  line-height: 1.65;
}

/* ============================================================
   TRUST / CLIENTS STRIP
   ============================================================ */
.trust-strip {
  background: var(--color-surface);
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
  padding: var(--space-8) 0;
}

.trust-label {
  text-align: center;
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-text-light);
  margin-bottom: var(--space-6);
}

.trust-logos {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: var(--space-6) var(--space-10);
}

.trust-logo-item {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-2) var(--space-4);
  border-radius: var(--radius-md);
  background: var(--color-white);
  border: 1px solid var(--color-border);
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--color-text-muted);
  transition: color var(--transition-fast), border-color var(--transition-fast);
}

.trust-logo-item:hover {
  color: var(--color-primary);
  border-color: var(--color-primary);
}

/* ============================================================
   WHY MBACHI / FEATURE CARDS
   ============================================================ */
.feature-card {
  padding: var(--space-6);
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  transition: transform var(--transition-base), box-shadow var(--transition-base), border-color var(--transition-base);
}

.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--color-primary);
}

.feature-card-icon {
  width: 52px;
  height: 52px;
  background: var(--color-primary-pale);
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: var(--space-4);
  transition: background var(--transition-base);
}

.feature-card:hover .feature-card-icon {
  background: var(--color-primary);
}

.feature-card-title {
  font-size: var(--text-base);
  font-weight: 700;
  font-family: var(--font-sans);
  color: var(--color-dark);
  margin-bottom: var(--space-2);
}

.feature-card-desc {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  line-height: 1.65;
}

/* ============================================================
   CTA SECTION
   ============================================================ */
.cta-section {
  background: var(--color-dark);
  padding: var(--space-24) 0;
  position: relative;
  overflow: hidden;
}

.cta-section::before {
  content: '';
  position: absolute;
  top: -60%;
  right: -10%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(192,122,42,0.15) 0%, transparent 70%);
  pointer-events: none;
}

.cta-inner {
  text-align: center;
  position: relative;
  z-index: 1;
}

.cta-title {
  color: var(--color-white);
  margin-bottom: var(--space-4);
}

.cta-desc {
  color: rgba(255,255,255,0.65);
  font-size: var(--text-md);
  max-width: 520px;
  margin: 0 auto var(--space-8);
}

.cta-actions {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: var(--space-3);
}

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
  background: var(--color-dark);
  color: rgba(255,255,255,0.65);
  padding: var(--space-16) 0 var(--space-8);
  border-top: 1px solid rgba(255,255,255,0.08);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: var(--space-10);
  margin-bottom: var(--space-12);
}

.footer-brand {
  max-width: 280px;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  margin-bottom: var(--space-4);
}

.footer-logo-mark {
  width: 40px;
  height: 40px;
  background: var(--color-primary);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: var(--text-lg);
  color: var(--color-white);
}

.footer-logo-primary {
  font-family: var(--font-serif);
  font-size: var(--text-md);
  font-weight: 700;
  color: var(--color-white);
}

.footer-logo-sub {
  font-size: var(--text-xs);
  color: rgba(255,255,255,0.4);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.footer-tagline {
  font-size: var(--text-sm);
  line-height: 1.7;
  color: rgba(255,255,255,0.5);
}

.footer-col-title {
  font-family: var(--font-sans);
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.4);
  margin-bottom: var(--space-5);
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.footer-link {
  font-size: var(--text-sm);
  color: rgba(255,255,255,0.55);
  transition: color var(--transition-fast);
}

.footer-link:hover {
  color: var(--color-primary-light);
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding-top: var(--space-6);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--space-4);
}

.footer-copy {
  font-size: var(--text-sm);
  color: rgba(255,255,255,0.35);
}

.footer-bottom-links {
  display: flex;
  gap: var(--space-6);
}

.footer-bottom-link {
  font-size: var(--text-sm);
  color: rgba(255,255,255,0.4);
  transition: color var(--transition-fast);
}

.footer-bottom-link:hover {
  color: var(--color-primary-light);
}

/* ============================================================
   ABOUT SECTION (Homepage)
   ============================================================ */
.about-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-16);
  align-items: center;
}

.about-images {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: auto auto;
  gap: var(--space-4);
}

.about-img-main {
  grid-column: 1 / -1;
  height: 260px;
  object-fit: cover;
  border-radius: var(--radius-xl);
}

.about-img-sm {
  height: 180px;
  object-fit: cover;
  border-radius: var(--radius-lg);
}

.about-content .section-desc {
  margin-bottom: var(--space-6);
}

.about-content p + p {
  margin-top: var(--space-4);
}

/* ============================================================
   CONTACT CARDS
   ============================================================ */
.contact-card {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  padding: var(--space-8);
  transition: border-color var(--transition-base), box-shadow var(--transition-base);
}

.contact-card:hover {
  border-color: var(--color-primary);
  box-shadow: var(--shadow-md);
}

.contact-card-icon {
  width: 56px;
  height: 56px;
  background: var(--color-primary-pale);
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.75rem;
  margin-bottom: var(--space-5);
}

.contact-card-title {
  font-size: var(--text-xl);
  font-family: var(--font-serif);
  color: var(--color-dark);
  margin-bottom: var(--space-3);
}

.contact-card-desc {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  margin-bottom: var(--space-5);
}

.contact-details {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.contact-detail-item {
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
}

.contact-detail-icon {
  font-size: 1.1rem;
  flex-shrink: 0;
  margin-top: 1px;
}

.contact-detail-text {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  line-height: 1.5;
}

.contact-detail-text strong {
  display: block;
  font-weight: 600;
  color: var(--color-dark);
  font-size: var(--text-xs);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: var(--space-1);
}

/* ============================================================
   CONTACT FORM (inline, contact page)
   ============================================================ */
.contact-form {
  background: var(--color-surface);
  border-radius: var(--radius-xl);
  padding: var(--space-8);
  border: 1px solid var(--color-border);
}

.form-group {
  margin-bottom: var(--space-5);
}

.form-label {
  display: block;
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--color-dark);
  margin-bottom: var(--space-2);
}

.form-control {
  width: 100%;
  padding: var(--space-3) var(--space-4);
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  font-size: var(--text-sm);
  color: var(--color-dark);
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
  font-family: var(--font-sans);
}

.form-control:focus {
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(192,122,42,0.12);
  outline: none;
}

.form-control::placeholder {
  color: var(--color-text-light);
}

textarea.form-control {
  resize: vertical;
  min-height: 120px;
}

select.form-control {
  cursor: pointer;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-4);
}

.form-submit {
  width: 100%;
  justify-content: center;
  padding: var(--space-4);
  font-size: var(--text-base);
  border-radius: var(--radius-lg);
}

/* ============================================================
   VALUES GRID
   ============================================================ */
.values-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-6);
}

.value-card {
  padding: var(--space-6);
  border-left: 3px solid var(--color-primary);
  background: var(--color-surface);
  border-radius: 0 var(--radius-lg) var(--radius-lg) 0;
}

.value-card-title {
  font-size: var(--text-base);
  font-weight: 700;
  color: var(--color-dark);
  margin-bottom: var(--space-2);
  font-family: var(--font-sans);
}

.value-card-desc {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  line-height: 1.65;
}

/* ============================================================
   REGISTRATION SERVICES GRID
   ============================================================ */
.reg-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-4);
}

.reg-card {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-5) var(--space-6);
  transition: border-color var(--transition-base), box-shadow var(--transition-base), transform var(--transition-base);
}

.reg-card:hover {
  border-color: var(--color-primary);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.reg-card-badge {
  display: inline-block;
  padding: var(--space-1) var(--space-3);
  background: var(--color-primary-pale);
  color: var(--color-primary-dark);
  border-radius: var(--radius-full);
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.05em;
  margin-bottom: var(--space-3);
}

.reg-card-title {
  font-size: var(--text-base);
  font-weight: 700;
  font-family: var(--font-sans);
  color: var(--color-dark);
  margin-bottom: var(--space-2);
}

.reg-card-desc {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  line-height: 1.65;
}

/* ============================================================
   RESPONSIVE — COMPONENTS
   ============================================================ */
@media (max-width: 1024px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-8);
  }

  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .stat-item {
    border-right: none;
    border-bottom: 1px solid var(--color-border);
  }

  .stat-item:nth-child(even) {
    border-bottom: none;
  }
}

@media (max-width: 768px) {
  /* Header */
  .nav-links { display: none; }
  .nav-cta .btn { display: none; }
  .nav-hamburger { display: flex; }
  .nav-mobile { display: block; }

  /* Hero */
  .hero {
    min-height: auto;
  }

  .hero-bg-image {
    opacity: 0.25;
  }

  .hero-img-main {
    width: 100%;
    height: 100%;
  }

  .hero-img-fade {
    background: linear-gradient(
      to bottom,
      rgba(247, 245, 240, 0.75) 0%,
      rgba(247, 245, 240, 0.95) 100%
    );
  }

  .hero-container {
    min-height: auto;
    padding-top: calc(var(--header-height) + var(--space-8));
    padding-bottom: var(--space-12);
  }

  .hero-title {
    font-size: clamp(1.85rem, 7.5vw, 2.75rem);
    line-height: 1.15;
  }

  .hero-cards-layer {
    display: none !important;
  }

  .hero-stats {
    flex-wrap: wrap;
    gap: var(--space-4);
  }

  /* About */
  .about-split {
    grid-template-columns: 1fr;
    gap: var(--space-8);
  }

  /* Services */
  .service-duo {
    grid-template-columns: 1fr;
  }

  /* Values */
  .values-grid {
    grid-template-columns: 1fr;
  }

  /* Reg grid */
  .reg-grid {
    grid-template-columns: 1fr;
  }

  /* Footer */
  .footer-grid {
    grid-template-columns: 1fr;
    gap: var(--space-8);
  }

  .footer-brand {
    max-width: 100%;
  }

  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }

  /* Stats */
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  /* Form row */
  .form-row {
    grid-template-columns: 1fr;
  }
}

/* ============================================================
   PHASE 5 — HOVER MICRO-INTERACTIONS
   GPU-composited only: transform + opacity. No width/height animation.
   ============================================================ */

/* --- Feature cards --- */
.feature-card {
  transition: transform 0.30s ease, box-shadow 0.30s ease, border-color 0.30s ease;
  will-change: transform;
}
.feature-card:hover {
  transform: translateY(-9px);
  box-shadow: 0 20px 48px rgba(0, 0, 0, 0.14);
  border-color: var(--color-primary);
}
.feature-card:hover .feature-card-icon [data-lucide] {
  transform: scale(1.15) rotate(-6deg);
  transition: transform 0.30s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* --- Construction service cards --- */
.construction-card {
  transition: transform 0.30s ease, box-shadow 0.30s ease;
  will-change: transform;
  overflow: hidden;
}
.construction-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.14);
}
.construction-card:hover .construction-card-img {
  transform: scale(1.05);
}
.construction-card-img {
  transition: transform 0.55s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.construction-card:hover .construction-card-title {
  color: var(--color-primary);
  transition: color 0.25s ease;
}
.construction-card-title {
  transition: color 0.25s ease;
}

/* --- Registration/consultancy cards --- */
.reg-card {
  transition: transform 0.28s ease, box-shadow 0.28s ease, border-left-color 0.28s ease;
  will-change: transform;
  border-left: 3px solid transparent;
}
.reg-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.12);
  border-left-color: var(--color-primary);
}

/* --- Project cards --- */
.project-card {
  transition: transform 0.30s ease, box-shadow 0.30s ease;
  will-change: transform;
  overflow: hidden;
}
.project-card:hover {
  transform: translateY(-7px);
  box-shadow: 0 20px 44px rgba(0, 0, 0, 0.16);
}
.project-card-img {
  transition: transform 0.60s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.project-card:hover .project-card-img {
  transform: scale(1.06);
}

/* --- Service duo cards — 3D tilt handled by JS, CSS does overlay --- */
.service-duo-card {
  transition: box-shadow 0.35s ease;
  will-change: transform;
}
.service-duo-card:hover {
  box-shadow: 0 28px 60px rgba(0, 0, 0, 0.28);
}

/* --- Primary buttons --- */
.btn-primary {
  transition: transform 0.22s ease, box-shadow 0.22s ease, filter 0.22s ease;
  will-change: transform;
}
.btn-primary:hover {
  transform: translateY(-2px);
  filter: brightness(1.08);
  box-shadow: 0 8px 24px rgba(232, 49, 42, 0.38);
}
.btn-primary:active {
  transform: translateY(0);
  filter: brightness(0.96);
}

/* --- Dark buttons --- */
.btn-dark {
  transition: transform 0.22s ease, box-shadow 0.22s ease;
  will-change: transform;
}
.btn-dark:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.32);
}

/* --- Outline buttons --- */
.btn-outline,
.btn-outline-white {
  transition: transform 0.22s ease, background 0.22s ease, color 0.22s ease, border-color 0.22s ease;
  will-change: transform;
}
.btn-outline:hover,
.btn-outline-white:hover {
  transform: translateY(-2px);
}

/* --- Trust strip items --- */
.trust-logo-item {
  transition: transform 0.22s ease, color 0.22s ease, opacity 0.22s ease;
  will-change: transform;
}
.trust-logo-item:hover {
  transform: scale(1.06);
  color: var(--color-dark);
  opacity: 1;
}

/* --- Nav links — underline draws from left --- */
.nav-link {
  position: relative;
}
.nav-link::after {
  content: '';
  position: absolute;
  bottom: -3px;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--color-primary);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.28s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.nav-link:hover::after,
.nav-link.active::after {
  transform: scaleX(1);
}

/* --- Contact cards --- */
.contact-card {
  transition: transform 0.28s ease, box-shadow 0.28s ease;
  will-change: transform;
}
.contact-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.10);
}

/* --- Value cards (about page) --- */
.value-card {
  transition: transform 0.28s ease, box-shadow 0.28s ease, border-color 0.28s ease;
  will-change: transform;
}
.value-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.09);
  border-color: var(--color-primary);
}
.value-card:hover .value-card-icon {
  background: var(--color-primary);
  transition: background 0.25s ease;
}
.value-card:hover .value-card-icon [data-lucide] {
  color: var(--color-white);
  transition: color 0.25s ease;
}
.value-card-icon {
  transition: background 0.25s ease;
}
.value-card-icon [data-lucide] {
  transition: color 0.25s ease;
}

/* --- MV (mission/vision) cards --- */
.mv-card {
  transition: transform 0.28s ease, box-shadow 0.28s ease;
  will-change: transform;
}
.mv-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.10);
}

/* ============================================================
   PHASE 6 — AMBIENT HERO FLOATING SHAPES
   CSS-only continuous ambient motion. Behind all hero content.
   Uses GPU-composited transforms only (no opacity changes mid-animation).
   ============================================================ */

/* Container layers — positioned behind hero content */
.hero-shapes-back,
.hero-shapes-mid {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}
.hero-shapes-back { z-index: 0; }
.hero-shapes-mid  { z-index: 1; }

/* Ensure hero content and visual sit above shapes */
.hero .container {
  position: relative;
  z-index: 2;
}

/* Base shape — shared between all 3 circles */
.hero-shape {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
}

/* Shape A — large deep-red glow, bottom-left */
.hero-shape-a {
  width: 520px;
  height: 520px;
  bottom: -160px;
  left: -100px;
  background: radial-gradient(circle, rgba(232, 49, 42, 0.14) 0%, transparent 70%);
  filter: blur(40px);
  animation: heroFloatA 16s ease-in-out infinite;
}

/* Shape B — medium glow, top-right */
.hero-shape-b {
  width: 380px;
  height: 380px;
  top: -80px;
  right: 10%;
  background: radial-gradient(circle, rgba(232, 49, 42, 0.10) 0%, transparent 70%);
  filter: blur(50px);
  animation: heroFloatB 20s ease-in-out infinite reverse;
}

/* Shape C — small tight glow, mid-right */
.hero-shape-c {
  width: 240px;
  height: 240px;
  top: 30%;
  right: 22%;
  background: radial-gradient(circle, rgba(232, 49, 42, 0.08) 0%, transparent 65%);
  filter: blur(30px);
  animation: heroFloatC 24s ease-in-out infinite;
}

@keyframes heroFloatA {
  0%,  100% { transform: translate(0,   0)   rotate(0deg);  }
  33%        { transform: translate(28px, -40px) rotate(5deg);  }
  66%        { transform: translate(-18px, 22px) rotate(-4deg); }
}

@keyframes heroFloatB {
  0%,  100% { transform: translate(0,  0)   rotate(0deg);  }
  40%        { transform: translate(-24px, 32px) rotate(6deg);  }
  75%        { transform: translate(18px, -20px) rotate(-5deg); }
}

@keyframes heroFloatC {
  0%,  100% { transform: translate(0,  0)   rotate(0deg);  }
  50%        { transform: translate(20px, -28px) rotate(8deg);  }
}

/* ============================================================
   PHASE 7 — SCROLL-LINKED COMPACT HEADER
   .scrolled class added by animations.js at scrollY > 60.
   ============================================================ */
.site-header {
  transition: background 0.35s ease, backdrop-filter 0.35s ease, box-shadow 0.35s ease, padding 0.35s ease;
}

.site-header.scrolled {
  background: rgba(28, 26, 24, 0.92) !important;
  backdrop-filter: blur(20px) saturate(160%);
  -webkit-backdrop-filter: blur(20px) saturate(160%);
  box-shadow: 0 4px 32px rgba(0, 0, 0, 0.24);
  padding-top: 10px;
  padding-bottom: 10px;
}

/* Compact logo when scrolled */
.site-header.scrolled .nav-logo img {
  height: 38px !important;
  transition: height 0.30s ease;
}

/* ============================================================
   PHASE 5 — ARROW SPAN TRANSITION
   Smooth arrow nudge on button hover
   ============================================================ */
.btn .arrow,
.btn-primary .arrow,
.btn-dark .arrow {
  display: inline-block;
  transition: transform 0.22s ease;
}
.btn:hover .arrow,
.btn-primary:hover .arrow,
.btn-dark:hover .arrow {
  transform: translateX(4px);
}

