/* =============================================================
   LIMORE CONSTRUCTION TECHNOLOGIES LTD — PORTFOLIO STYLESHEET
   Brand: Dark Navy #102A43 | Gold #F4A300 | BG #F4F6F5
   ============================================================= */

/* ── 1. CSS CUSTOM PROPERTIES ─────────────────────────────── */
:root {
  /* Brand palette */
  --navy:        #102A43;
  --navy-deep:   #1F3F5B;
  --navy-light:  #2C506E;
  --gold:        #F4A300;
  --gold-light:  #FFB733;
  --gold-dark:   #D98F00;
  --bg:          #F4F6F5;
  --bg-alt:      #EAEEF0;
  --white:       #FFFFFF;
  --text-dark:   #17202A;
  --text-mid:    #3D5166;
  --text-muted:  #7A90A4;
  --border:      #D6DDE3;

  /* Status colours */
  --status-completed: #0B6B3A;
  --status-completed-bg: #D4EDDA;
  --status-ongoing:   #7C4D0A;
  --status-ongoing-bg:#FFF3CD;
  --status-upcoming:  #1B4F72;
  --status-upcoming-bg:#D0E8F5;

  /* Typography */
  --font-body:    'Inter', system-ui, -apple-system, sans-serif;
  --font-display: 'Playfair Display', Georgia, serif;

  /* Sizing */
  --container:   1280px;
  --radius-sm:   4px;
  --radius:      8px;
  --radius-lg:   14px;
  --radius-xl:   20px;

  /* Shadows */
  --shadow-sm:   0 1px 3px rgba(16,42,67,.08), 0 1px 2px rgba(16,42,67,.04);
  --shadow-md:   0 4px 16px rgba(16,42,67,.10), 0 2px 6px rgba(16,42,67,.06);
  --shadow-lg:   0 12px 40px rgba(16,42,67,.14), 0 4px 12px rgba(16,42,67,.08);
  --shadow-xl:   0 24px 64px rgba(16,42,67,.18);

  /* Transitions */
  --ease:        cubic-bezier(.4,0,.2,1);
  --trans:       .28s var(--ease);
  --trans-slow:  .5s var(--ease);

  /* Header height */
  --header-h:    72px;
}

/* ── 2. RESET & BASE ──────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  font-size: 16px;
}

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text-dark);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img, video, iframe { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
button { cursor: pointer; font-family: inherit; border: none; background: none; }
address { font-style: normal; }

/* Screen-reader only utility */
.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}

/* ── 3. LAYOUT ────────────────────────────────────────────── */
.container {
  width: min(var(--container), 100% - 2.5rem);
  margin-inline: auto;
}

/* ── 4. TYPOGRAPHY ────────────────────────────────────────── */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.22;
  color: var(--navy);
}
h1 { font-size: clamp(2.4rem, 5vw, 4rem); }
h2 { font-size: clamp(1.9rem, 3.5vw, 2.8rem); }
h3 { font-size: clamp(1.3rem, 2vw, 1.65rem); }
h4 { font-size: 1.1rem; font-weight: 600; }
p  { color: var(--text-mid); max-width: 70ch; }

.section-header {
  text-align: center;
  margin-bottom: 3.5rem;
}
.section-header h2 { margin-bottom: .75rem; }
.section-header p  { margin-inline: auto; }

.section-header--light h2,
.section-header--light p  { color: var(--white); }

/* Eyebrow label */
.section-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: .75rem;
  margin-bottom: 1rem;
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--gold);
}
.section-eyebrow--light { color: var(--gold-light); }

.eyebrow-line {
  display: block;
  width: 32px;
  height: 2px;
  background: var(--gold);
  border-radius: 2px;
}

/* ── 5. BUTTONS ───────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .75rem 1.75rem;
  font-size: .92rem;
  font-weight: 600;
  letter-spacing: .03em;
  border-radius: var(--radius);
  transition: background var(--trans), color var(--trans),
              border-color var(--trans), box-shadow var(--trans),
              transform var(--trans);
}
.btn:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 3px;
}
.btn:active { transform: translateY(1px); }

.btn-lg { padding: .9rem 2.2rem; font-size: 1rem; }
.btn-sm { padding: .5rem 1.1rem; font-size: .82rem; }

/* Gold / primary */
.btn-gold {
  background: var(--gold);
  color: var(--navy);
}
.btn-gold:hover {
  background: var(--gold-dark);
  box-shadow: 0 6px 20px rgba(244,163,0,.35);
}

/* White outline */
.btn-outline-white {
  background: transparent;
  color: var(--white);
  border: 2px solid rgba(255,255,255,.55);
}
.btn-outline-white:hover {
  background: rgba(255,255,255,.12);
  border-color: var(--white);
}

/* Navy outline */
.btn-outline {
  background: transparent;
  color: var(--navy);
  border: 2px solid var(--navy);
}
.btn-outline:hover {
  background: var(--navy);
  color: var(--white);
}

/* Ghost */
.btn-ghost {
  background: rgba(255,255,255,.12);
  color: var(--white);
  border: 2px solid rgba(255,255,255,.25);
}
.btn-ghost:hover {
  background: rgba(255,255,255,.22);
  border-color: rgba(255,255,255,.5);
}

.link-btn {
  background: none;
  border: none;
  color: var(--gold-dark);
  font-weight: 600;
  text-decoration: underline;
  padding: 0;
}
.link-btn:hover { color: var(--navy); }

/* ── 6. STATUS BADGES ─────────────────────────────────────── */
.status-badge {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  padding: .28rem .85rem;
  border-radius: 999px;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.status-badge::before {
  content: '';
  display: block;
  width: 7px; height: 7px;
  border-radius: 50%;
}

.status-completed {
  background: var(--status-completed-bg);
  color: var(--status-completed);
}
.status-completed::before { background: var(--status-completed); }

.status-ongoing {
  background: var(--status-ongoing-bg);
  color: var(--status-ongoing);
}
.status-ongoing::before {
  background: var(--status-ongoing);
  animation: pulse 1.6s ease infinite;
}

.status-upcoming {
  background: var(--status-upcoming-bg);
  color: var(--status-upcoming);
}
.status-upcoming::before { background: var(--status-upcoming); }

@keyframes pulse {
  0%,100% { opacity: 1; transform: scale(1); }
  50%      { opacity: .5; transform: scale(1.4); }
}

/* ── 7. SITE HEADER ──────────────────────────────────────── */
.site-header {
  position: fixed;
  inset-block-start: 0;
  inset-inline: 0;
  z-index: 900;
  height: var(--header-h);
  background: rgba(16,42,67,.96);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255,255,255,.07);
  transition: background var(--trans), box-shadow var(--trans),
              transform .35s var(--ease);
}
.site-header.scrolled {
  background: var(--navy);
  box-shadow: var(--shadow-md);
}
/* Hide header by sliding it up off-screen */
.site-header.header-hidden {
  transform: translateY(-100%);
}

.header-inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

/* Logo */
.site-logo {
  display: flex;
  align-items: center;
  gap: .85rem;
  text-decoration: none;
  flex-shrink: 0;
}
.logo-svg {
  height: 38px;
  width: auto;
  flex-shrink: 0;
  display: block;
}
.logo-tagline-text {
  font-size: .68rem;
  font-weight: 500;
  color: rgba(255,255,255,.55);
  letter-spacing: .04em;
  white-space: nowrap;
}
/* Footer logo — tagline colour override */
.site-footer .logo-tagline-text {
  color: rgba(255,255,255,.45);
}
.logo-mark {
  width: 42px; height: 42px;
  background: var(--gold);
  color: var(--navy);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  border-radius: var(--radius-sm);
  flex-shrink: 0;
}
.logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
  color: var(--white);
  font-size: .92rem;
}
.logo-text strong { font-weight: 700; }
.logo-text small  { font-size: .7rem; color: var(--text-muted); letter-spacing: .04em; }

/* Nav */
.main-nav ul {
  display: flex;
  gap: .25rem;
}
.main-nav a {
  padding: .5rem .9rem;
  border-radius: var(--radius-sm);
  font-size: .88rem;
  font-weight: 500;
  color: rgba(255,255,255,.78);
  transition: color var(--trans), background var(--trans);
}
.main-nav a:hover { color: var(--white); background: rgba(255,255,255,.08); }
.main-nav a.nav-active { color: var(--gold); font-weight: 600; }

.header-cta { flex-shrink: 0; }

/* Mobile nav toggle */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: .5rem;
  border-radius: var(--radius-sm);
}
.nav-toggle span {
  display: block;
  width: 24px; height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: transform var(--trans), opacity var(--trans);
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ── 8. HERO ─────────────────────────────────────────────── */
.portfolio-hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  padding-block: calc(var(--header-h) + 3rem) 5rem;
  overflow: hidden;
}

.hero-bg,
.hero-bg-img,
.hero-overlay {
  position: absolute;
  inset: 0;
}
.hero-bg-img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center 30%;
  transform-origin: center;
  animation: slowZoom 22s ease-in-out infinite alternate;
}
.hero-overlay {
  background: linear-gradient(
    160deg,
    rgba(16,42,67,.88) 0%,
    rgba(16,42,67,.72) 50%,
    rgba(16,42,67,.55) 100%
  );
}
@keyframes slowZoom {
  from { transform: scale(1); }
  to   { transform: scale(1.06); }
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 840px;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: .75rem;
  margin-bottom: 1.5rem;
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--gold);
  animation: fadeUp .8s var(--ease) both;
}

.hero-heading {
  color: var(--white);
  margin-bottom: 1rem;
  animation: fadeUp .9s .1s var(--ease) both;
}

.hero-tagline {
  font-family: var(--font-display);
  font-size: clamp(1.1rem, 2.2vw, 1.5rem);
  font-style: italic;
  color: var(--gold-light);
  margin-bottom: 1.25rem;
  max-width: none;
  animation: fadeUp .9s .18s var(--ease) both;
}

.hero-description {
  font-size: 1.05rem;
  color: rgba(255,255,255,.8);
  margin-bottom: 2.5rem;
  max-width: 56ch;
  animation: fadeUp .9s .26s var(--ease) both;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 4rem;
  animation: fadeUp .9s .34s var(--ease) both;
}

.hero-stats {
  display: flex;
  gap: 2.5rem;
  flex-wrap: wrap;
  animation: fadeUp .9s .44s var(--ease) both;
}
.hero-stat {
  display: flex;
  flex-direction: column;
}
.hero-stat strong {
  font-family: var(--font-display);
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--white);
  line-height: 1;
}
.hero-stat span {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--gold);
  line-height: 1;
}
.hero-stat small {
  font-size: .78rem;
  color: rgba(255,255,255,.6);
  margin-top: .25rem;
  letter-spacing: .04em;
}

/* Hero scroll indicator */
.hero-scroll {
  position: absolute;
  bottom: 2.5rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1;
}
.scroll-dot {
  display: block;
  width: 28px; height: 46px;
  border: 2px solid rgba(255,255,255,.4);
  border-radius: 999px;
  position: relative;
}
.scroll-dot::after {
  content: '';
  position: absolute;
  top: 6px;
  left: 50%;
  transform: translateX(-50%);
  width: 5px; height: 10px;
  background: var(--gold);
  border-radius: 999px;
  animation: scrollBounce 2s ease-in-out infinite;
}
@keyframes scrollBounce {
  0%,100% { transform: translateX(-50%) translateY(0); opacity: 1; }
  50%      { transform: translateX(-50%) translateY(12px); opacity: .4; }
}

/* ── 9. CATEGORIES / FILTER BAR ──────────────────────────── */
.categories-section {
  position: sticky;
  top: var(--header-h);
  z-index: 800;
  background: var(--white);
  border-bottom: 1px solid var(--border);
  padding-block: 1.1rem;
  box-shadow: var(--shadow-sm);
  /* Slide up with the header when it hides */
  transition: top .35s cubic-bezier(.4,0,.2,1);
}
/* When header is hidden, filter bar sticks to very top */
.header-hidden ~ * .categories-section,
.header-hidden + * .categories-section {
  top: 0;
}
/* body-level class set by JS */
body.header-is-hidden .categories-section {
  top: 0;
}

.filter-toolbar {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

/* Search */
.search-wrap {
  position: relative;
  max-width: 420px;
}
.search-wrap i {
  position: absolute;
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  width: 16px; height: 16px;
  pointer-events: none;
}
.search-wrap input {
  width: 100%;
  padding: .65rem 2.8rem .65rem 2.8rem;
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  font-size: .9rem;
  font-family: var(--font-body);
  color: var(--text-dark);
  background: var(--bg);
  transition: border-color var(--trans), box-shadow var(--trans);
}
.search-wrap input:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(244,163,0,.15);
  background: var(--white);
}
.search-clear {
  position: absolute;
  right: .75rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  padding: .2rem;
  border-radius: 50%;
}
.search-clear:hover { color: var(--text-dark); }
.search-clear i { width: 15px; height: 15px; }

/* Filter buttons */
.filter-tabs {
  display: flex;
  gap: .5rem;
  flex-wrap: wrap;
}

.filter-btn {
  padding: .45rem 1.1rem;
  border: 1.5px solid var(--border);
  border-radius: 999px;
  font-size: .82rem;
  font-weight: 500;
  color: var(--text-mid);
  background: var(--bg);
  transition: all var(--trans);
  white-space: nowrap;
}
.filter-btn:hover {
  border-color: var(--navy-light);
  color: var(--navy);
  background: var(--white);
}
.filter-btn.active {
  background: var(--navy);
  color: var(--white);
  border-color: var(--navy);
}
.filter-btn:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 2px;
}

.results-count {
  font-size: .85rem;
  color: var(--text-muted);
  padding-top: .25rem;
  max-width: none;
}
.results-count strong { color: var(--navy); }

/* ── 10. FEATURED PROJECTS ────────────────────────────────── */
.featured-section {
  padding-block: 5rem;
  background: var(--white);
}

.featured-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.75rem;
}

/* First featured card spans 2 columns */
.featured-grid .project-card:first-child {
  grid-column: span 2;
}

/* ── 11. ALL PROJECTS GRID ────────────────────────────────── */
.projects-section {
  padding-block: 5rem;
  background: var(--bg);
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.75rem;
}

.no-results {
  text-align: center;
  padding: 3rem;
  font-size: 1rem;
  color: var(--text-muted);
}

/* ── 12. PROJECT CARD ─────────────────────────────────────── */
.project-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: box-shadow var(--trans), transform var(--trans);
  cursor: pointer;
  display: flex;
  flex-direction: column;
}
.project-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-5px);
}
.project-card:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 3px;
}

/* Image wrapper */
.card-img-wrap {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
}
.card-img-wrap img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform var(--trans-slow);
}
.project-card:hover .card-img-wrap img { transform: scale(1.06); }

/* Overlay on hover */
.card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(16,42,67,.0) 30%, rgba(16,42,67,.82) 100%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 1.25rem;
  opacity: 0;
  transition: opacity var(--trans);
}
.project-card:hover .card-overlay { opacity: 1; }

.card-overlay .btn-view {
  padding: .55rem 1.3rem;
  background: var(--gold);
  color: var(--navy);
  border-radius: var(--radius);
  font-size: .82rem;
  font-weight: 700;
  align-self: flex-start;
  margin-top: .5rem;
  border: none;
  transition: background var(--trans), transform var(--trans);
}
.card-overlay .btn-view:hover { background: var(--gold-dark); }

.card-overlay-category {
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--gold-light);
}
.card-overlay-name {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--white);
  margin-block: .2rem .1rem;
}
.card-overlay-location {
  font-size: .8rem;
  color: rgba(255,255,255,.75);
  display: flex;
  align-items: center;
  gap: .3rem;
}
.card-overlay-location i { width: 12px; height: 12px; }

/* Card body */
.card-body {
  padding: 1.4rem;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: .6rem;
}
.card-category {
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--gold-dark);
}
.card-title {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--navy);
  line-height: 1.3;
}
.card-location {
  display: flex;
  align-items: center;
  gap: .35rem;
  font-size: .82rem;
  color: var(--text-muted);
}
.card-location i { width: 13px; height: 13px; flex-shrink: 0; }
.card-desc {
  font-size: .85rem;
  color: var(--text-mid);
  line-height: 1.6;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  max-width: none;
}
.card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 1.4rem 1.4rem;
  margin-top: auto;
}

/* Filter animation */
.project-card.hidden {
  display: none;
}
.project-card.animate-in {
  animation: cardIn .35s var(--ease) both;
}
@keyframes cardIn {
  from { opacity: 0; transform: translateY(18px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ── 13. BEFORE & AFTER ───────────────────────────────────── */
.beforeafter-section {
  padding-block: 5rem;
  background: var(--white);
}

.ba-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 540px), 1fr));
  gap: 2rem;
}

.ba-card {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

.ba-card-header {
  padding: 1.25rem 1.5rem;
  background: var(--navy);
}
.ba-card-header h3 {
  color: var(--white);
  font-size: 1rem;
  margin-bottom: .2rem;
}
.ba-card-header p {
  color: rgba(255,255,255,.6);
  font-size: .8rem;
  max-width: none;
}

/* The slider */
.ba-slider {
  position: relative;
  width: 100%;
  overflow: hidden;
  user-select: none;
  touch-action: pan-y;
  aspect-ratio: 16 / 9;
}
.ba-before,
.ba-after {
  position: absolute;
  inset: 0;
}
.ba-before img,
.ba-after img {
  width: 100%; height: 100%;
  object-fit: cover;
  pointer-events: none;
}
.ba-before { clip-path: inset(0 50% 0 0); }

.ba-handle {
  position: absolute;
  top: 0; bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 44px;
  display: flex;
  flex-direction: column;
  align-items: center;
  cursor: ew-resize;
  z-index: 2;
}
.ba-handle-line {
  flex: 1;
  width: 3px;
  background: var(--white);
  box-shadow: 0 0 8px rgba(0,0,0,.4);
}
.ba-handle-circle {
  width: 44px; height: 44px;
  background: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-md);
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  color: var(--navy);
}
.ba-handle-circle i { width: 20px; height: 20px; }

/* Labels */
.ba-label {
  position: absolute;
  top: .75rem;
  padding: .3rem .85rem;
  border-radius: 999px;
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  pointer-events: none;
  z-index: 1;
}
.ba-label-before {
  left: .75rem;
  background: rgba(16,42,67,.75);
  color: var(--white);
}
.ba-label-after {
  right: .75rem;
  background: rgba(244,163,0,.9);
  color: var(--navy);
}

/* ── 14. STATISTICS SECTION ───────────────────────────────── */
.stats-section {
  position: relative;
  padding-block: 6rem;
  overflow: hidden;
}
.stats-bg {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-deep) 60%, #0C1F30 100%);
}
.stats-section .container { position: relative; z-index: 1; }

.stats-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 1.5rem;
}

.stat-card {
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: var(--radius-lg);
  padding: 2rem 1.5rem;
  text-align: center;
  transition: background var(--trans), transform var(--trans);
}
.stat-card:hover {
  background: rgba(255,255,255,.1);
  transform: translateY(-4px);
}

.stat-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px; height: 52px;
  background: rgba(244,163,0,.15);
  border-radius: 50%;
  color: var(--gold);
  margin-bottom: 1rem;
}
.stat-icon i { width: 24px; height: 24px; }

.stat-card strong.counter {
  display: block;
  font-family: var(--font-display);
  font-size: 2.6rem;
  font-weight: 700;
  color: var(--white);
  line-height: 1;
}
.stat-card sup {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--gold);
  vertical-align: super;
}
.stat-card p {
  font-size: .82rem;
  color: rgba(255,255,255,.6);
  margin-top: .4rem;
  max-width: none;
  letter-spacing: .04em;
}

/* ── 15. LOCATIONS SECTION ────────────────────────────────── */
.locations-section {
  padding-block: 5rem;
  background: var(--bg);
}

.locations-layout {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 3rem;
  align-items: start;
}

.locations-map-placeholder {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  background: var(--white);
}
.map-ken { width: 100%; }
.map-ken svg { width: 100%; height: auto; display: block; }
.map-overlay-note {
  padding: .85rem 1.25rem;
  display: flex;
  align-items: center;
  gap: .6rem;
  font-size: .8rem;
  color: var(--text-muted);
  background: var(--bg-alt);
  border-top: 1px solid var(--border);
}
.map-overlay-note i { width: 14px; height: 14px; flex-shrink: 0; }

.locations-list h3 {
  font-size: 1.1rem;
  margin-bottom: 1.25rem;
  color: var(--navy);
}
.location-items { display: flex; flex-direction: column; gap: .6rem; }
.location-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: .9rem 1.1rem;
  background: var(--white);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  transition: border-color var(--trans), box-shadow var(--trans);
}
.location-item:hover {
  border-color: var(--gold);
  box-shadow: var(--shadow-md);
}
.location-dot {
  width: 10px; height: 10px;
  background: var(--gold);
  border-radius: 50%;
  flex-shrink: 0;
}
.location-name { font-weight: 600; color: var(--navy); font-size: .92rem; }
.location-count { font-size: .78rem; color: var(--text-muted); margin-left: auto; }

/* ── 16. TESTIMONIALS ─────────────────────────────────────── */
.testimonials-section {
  padding-block: 5.5rem;
  background: var(--white);
}

.testimonials-carousel {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.75rem;
  margin-bottom: 2.5rem;
  transition: opacity var(--trans);
}

.testimonial-card {
  background: var(--bg);
  border-radius: var(--radius-lg);
  padding: 2rem;
  border: 1px solid var(--border);
  transition: box-shadow var(--trans), transform var(--trans);
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}
.testimonial-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
}

.testimonial-quote {
  color: var(--gold);
  font-size: 2.5rem;
  font-family: Georgia, serif;
  line-height: 1;
  margin-bottom: -.5rem;
}

.testimonial-text {
  font-size: .95rem;
  line-height: 1.75;
  color: var(--text-mid);
  max-width: none;
  font-style: italic;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: .9rem;
  margin-top: auto;
}
.author-avatar {
  width: 46px; height: 46px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--gold);
  flex-shrink: 0;
  background: var(--navy-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--white);
}
.author-avatar img {
  width: 100%; height: 100%;
  object-fit: cover;
  border-radius: 50%;
}
.author-name  { font-weight: 700; font-size: .92rem; color: var(--navy); }
.author-meta  { font-size: .78rem; color: var(--text-muted); }

/* Carousel controls */
.carousel-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.25rem;
}
.carousel-prev,
.carousel-next {
  width: 42px; height: 42px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--border);
  color: var(--navy);
  transition: all var(--trans);
}
.carousel-prev:hover,
.carousel-next:hover {
  background: var(--navy);
  color: var(--white);
  border-color: var(--navy);
}
.carousel-prev i, .carousel-next i { width: 18px; height: 18px; }

.carousel-dots { display: flex; gap: .5rem; }
.dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--border);
  transition: all var(--trans);
  border: none;
  padding: 0;
  cursor: pointer;
}
.dot.active {
  background: var(--gold);
  width: 24px;
  border-radius: 4px;
}

/* ── 17. CTA SECTION ──────────────────────────────────────── */
.cta-section {
  position: relative;
  padding-block: 7rem;
  text-align: center;
  overflow: hidden;
}
.cta-bg,
.cta-bg-img,
.cta-overlay {
  position: absolute;
  inset: 0;
}
.cta-bg-img { width: 100%; height: 100%; object-fit: cover; }
.cta-overlay { background: rgba(16,42,67,.82); }

.cta-content {
  position: relative;
  z-index: 1;
  max-width: 760px;
  margin-inline: auto;
}
.cta-content h2 {
  color: var(--white);
  margin-bottom: 1rem;
}
.cta-content p {
  color: rgba(255,255,255,.8);
  font-size: 1.05rem;
  margin-inline: auto;
  margin-bottom: 2.5rem;
}
.cta-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* ── 18. SITE FOOTER ──────────────────────────────────────── */
.site-footer {
  background: var(--navy);
  color: rgba(255,255,255,.75);
}
.footer-top {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 3rem;
  padding-block: 4rem;
  border-bottom: 1px solid rgba(255,255,255,.08);
}

.footer-brand p {
  font-size: .88rem;
  color: rgba(255,255,255,.6);
  margin-top: 1rem;
  margin-bottom: 1.5rem;
  max-width: 38ch;
}
.footer-socials { display: flex; gap: .75rem; }
.footer-socials a {
  width: 36px; height: 36px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,.2);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,.65);
  transition: all var(--trans);
}
.footer-socials a:hover {
  background: var(--gold);
  border-color: var(--gold);
  color: var(--navy);
}
.footer-socials i { width: 15px; height: 15px; }

.footer-links h4,
.footer-contact h4 {
  color: var(--white);
  font-size: .85rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  margin-bottom: 1.25rem;
  font-family: var(--font-body);
}
.footer-links ul { display: flex; flex-direction: column; gap: .6rem; }
.footer-links a {
  font-size: .88rem;
  color: rgba(255,255,255,.6);
  transition: color var(--trans);
}
.footer-links a:hover { color: var(--gold); }

.footer-contact address { display: flex; flex-direction: column; gap: .75rem; }
.footer-contact p {
  display: flex;
  align-items: flex-start;
  gap: .6rem;
  font-size: .88rem;
  color: rgba(255,255,255,.6);
  max-width: none;
}
.footer-contact i { width: 14px; height: 14px; flex-shrink: 0; margin-top: .2rem; }
.footer-contact a { color: rgba(255,255,255,.6); transition: color var(--trans); }
.footer-contact a:hover { color: var(--gold); }

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-block: 1.5rem;
  font-size: .82rem;
  color: rgba(255,255,255,.4);
  flex-wrap: wrap;
  gap: .75rem;
}
.footer-bottom a { color: rgba(255,255,255,.4); transition: color var(--trans); }
.footer-bottom a:hover { color: var(--gold-light); }

/* ── 19. PROJECT DETAIL MODAL ─────────────────────────────── */
.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(8,20,32,.75);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
  overflow-y: auto;
  animation: fadeIn .25s var(--ease) both;
}
.modal-backdrop[hidden] { display: none; }

@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

.modal-container {
  background: var(--white);
  border-radius: var(--radius-xl);
  width: min(1060px, 100%);
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
  box-shadow: var(--shadow-xl);
  animation: slideUp .3s var(--ease) both;
}
@keyframes slideUp {
  from { transform: translateY(24px); opacity: 0; }
  to   { transform: translateY(0); opacity: 1; }
}

.modal-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  z-index: 10;
  width: 38px; height: 38px;
  border-radius: 50%;
  background: var(--bg);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-dark);
  transition: all var(--trans);
  border: 1px solid var(--border);
}
.modal-close:hover {
  background: var(--navy);
  color: var(--white);
  border-color: var(--navy);
}
.modal-close i { width: 16px; height: 16px; }

.modal-body {
  display: grid;
  grid-template-columns: 1fr 420px;
  min-height: 520px;
}

/* Modal gallery */
.modal-gallery {
  padding: 1.75rem;
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.gallery-main {
  position: relative;
  aspect-ratio: 4/3;
  background: var(--navy);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.gallery-main img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: opacity .25s;
}
.gallery-prev,
.gallery-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 38px; height: 38px;
  border-radius: 50%;
  background: rgba(16,42,67,.7);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--trans);
  z-index: 2;
}
.gallery-prev { left: .75rem; }
.gallery-next { right: .75rem; }
.gallery-prev:hover,
.gallery-next:hover { background: var(--navy); }
.gallery-prev i,
.gallery-next i { width: 16px; height: 16px; }

.gallery-counter {
  position: absolute;
  bottom: .75rem;
  right: .85rem;
  background: rgba(16,42,67,.65);
  color: var(--white);
  font-size: .72rem;
  font-weight: 600;
  padding: .2rem .65rem;
  border-radius: 999px;
}

/* Thumbnails */
.gallery-thumbs {
  display: flex;
  gap: .6rem;
  flex-wrap: wrap;
}
.gallery-thumb {
  width: 72px; height: 54px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  cursor: pointer;
  border: 2px solid transparent;
  transition: border-color var(--trans), opacity var(--trans);
  flex-shrink: 0;
}
.gallery-thumb img {
  width: 100%; height: 100%;
  object-fit: cover;
}
.gallery-thumb.active { border-color: var(--gold); }
.gallery-thumb:hover   { opacity: .85; }

/* Video */
.modal-video-wrap { display: flex; flex-direction: column; gap: .75rem; }
.video-frame-wrap {
  aspect-ratio: 16/9;
  border-radius: var(--radius);
  overflow: hidden;
}
.video-frame-wrap iframe { width: 100%; height: 100%; border: none; }

/* Modal details */
.modal-details {
  padding: 2rem;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
}

.modal-status-row {
  display: flex;
  align-items: center;
  gap: .75rem;
  flex-wrap: wrap;
}
.modal-category {
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.modal-project-name {
  font-size: 1.65rem;
  color: var(--navy);
  line-height: 1.2;
}

.modal-location {
  display: flex;
  align-items: center;
  gap: .4rem;
  font-size: .9rem;
  color: var(--text-muted);
}
.modal-location i { width: 15px; height: 15px; color: var(--gold); flex-shrink: 0; }

.modal-description {
  font-size: .93rem;
  line-height: 1.75;
  color: var(--text-mid);
  max-width: none;
}

.modal-meta-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: .75rem 1rem;
}
.meta-item { display: flex; flex-direction: column; gap: .15rem; }
.meta-label {
  font-size: .7rem;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.meta-value {
  font-size: .9rem;
  font-weight: 500;
  color: var(--navy);
}

.modal-services h4 {
  font-size: .85rem;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: .6rem;
}
.modal-services ul {
  display: flex;
  flex-wrap: wrap;
  gap: .4rem;
}
.modal-services li {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: .3rem .85rem;
  font-size: .8rem;
  color: var(--navy);
  font-weight: 500;
}

.modal-actions {
  display: flex;
  gap: .75rem;
  flex-wrap: wrap;
  margin-top: auto;
  padding-top: .5rem;
}

/* ── 20. LIGHTBOX ─────────────────────────────────────────── */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 2000;
  background: rgba(8,15,24,.94);
  display: flex;
  align-items: center;
  justify-content: center;
  animation: fadeIn .2s var(--ease) both;
}
.lightbox[hidden] { display: none; }

.lightbox-inner {
  max-width: min(1200px, 95vw);
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .75rem;
}
.lightbox-inner img {
  max-width: 100%;
  max-height: 82vh;
  object-fit: contain;
  border-radius: var(--radius);
  box-shadow: var(--shadow-xl);
}
.lightbox-caption {
  font-size: .85rem;
  color: rgba(255,255,255,.6);
  text-align: center;
  max-width: none;
}

.lightbox-close,
.lightbox-prev,
.lightbox-next {
  position: fixed;
  background: rgba(16,42,67,.7);
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--trans);
  border: 1px solid rgba(255,255,255,.15);
}
.lightbox-close:hover,
.lightbox-prev:hover,
.lightbox-next:hover {
  background: var(--gold);
  color: var(--navy);
}

.lightbox-close { top: 1.25rem; right: 1.25rem; width: 44px; height: 44px; }
.lightbox-prev  { left: 1.25rem; top: 50%; transform: translateY(-50%); width: 48px; height: 48px; }
.lightbox-next  { right: 1.25rem; top: 50%; transform: translateY(-50%); width: 48px; height: 48px; }
.lightbox-close i,
.lightbox-prev i,
.lightbox-next i { width: 20px; height: 20px; }

.lightbox-counter {
  position: fixed;
  bottom: 1.5rem;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(16,42,67,.65);
  color: var(--white);
  font-size: .8rem;
  padding: .3rem .9rem;
  border-radius: 999px;
}

/* ── 21. FADE-UP ANIMATION UTILITY ───────────────────────── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}

.fade-up {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .6s var(--ease), transform .6s var(--ease);
}
.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Stagger delay utilities */
.delay-1 { transition-delay: .1s; }
.delay-2 { transition-delay: .2s; }
.delay-3 { transition-delay: .3s; }
.delay-4 { transition-delay: .4s; }
.delay-5 { transition-delay: .5s; }

/* ── 22. SCROLLBAR ────────────────────────────────────────── */
::-webkit-scrollbar { width: 7px; height: 7px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb {
  background: var(--navy-light);
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover { background: var(--navy); }

/* Modal scrollbar */
.modal-container::-webkit-scrollbar { width: 5px; }
.modal-details::-webkit-scrollbar   { width: 4px; }

/* ── 23. SELECTION COLOURS ────────────────────────────────── */
::selection { background: rgba(244,163,0,.25); color: var(--navy); }

/* ── 24. FOCUS STYLES ─────────────────────────────────────── */
*:focus { outline: none; }
*:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 2px;
  border-radius: var(--radius-sm);
}

/* ── 25. RESPONSIVE — TABLET (≤1024px) ───────────────────── */
@media (max-width: 1024px) {
  .stats-grid { grid-template-columns: repeat(3, 1fr); }
  .footer-top { grid-template-columns: 1fr 1fr; gap: 2rem; }
  .featured-grid { grid-template-columns: repeat(2, 1fr); }
  .featured-grid .project-card:first-child { grid-column: span 2; }
  .projects-grid { grid-template-columns: repeat(2, 1fr); }
  .testimonials-carousel { grid-template-columns: repeat(2, 1fr); }
  .locations-layout { grid-template-columns: 1fr; }
  .modal-body { grid-template-columns: 1fr; }
  .modal-gallery { border-right: none; border-bottom: 1px solid var(--border); }
}

/* ── 26. RESPONSIVE — LARGE TABLET (≤768px) ──────────────── */
@media (max-width: 768px) {
  :root { --header-h: 64px; }

  /* Header */
  .main-nav {
    position: fixed;
    inset-block: var(--header-h) 0;
    inset-inline: 0;
    background: var(--navy);
    padding: 2rem 1.5rem;
    transform: translateX(100%);
    transition: transform var(--trans);
    z-index: 899;
    overflow-y: auto;
  }
  .main-nav.open { transform: translateX(0); }
  .main-nav ul { flex-direction: column; gap: .25rem; }
  .main-nav a { font-size: 1rem; padding: .85rem 1rem; display: block; }

  .header-cta { display: none; }
  .nav-toggle  { display: flex; }

  /* Hero */
  .hero-stats { gap: 1.5rem; }
  .hero-stat strong { font-size: 1.8rem; }

  /* Grids */
  .featured-grid,
  .projects-grid { grid-template-columns: 1fr; }
  .featured-grid .project-card:first-child { grid-column: span 1; }
  .testimonials-carousel { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }

  /* Footer */
  .footer-top { grid-template-columns: 1fr; gap: 2rem; }
  .footer-bottom { flex-direction: column; text-align: center; }

  /* Modal */
  .modal-container { border-radius: var(--radius-lg); max-height: 95vh; }
  .modal-body { grid-template-columns: 1fr; }
  .modal-gallery { border-right: none; border-bottom: 1px solid var(--border); }
  .modal-meta-grid { grid-template-columns: 1fr; }

  /* BA */
  .ba-grid { grid-template-columns: 1fr; }

  /* Locations */
  .locations-layout { grid-template-columns: 1fr; }
}

/* ── 27. RESPONSIVE — MOBILE (≤480px) ────────────────────── */
@media (max-width: 480px) {
  h1 { font-size: 2rem; }
  h2 { font-size: 1.65rem; }

  .hero-actions { flex-direction: column; }
  .hero-actions .btn { width: 100%; justify-content: center; }

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

  .filter-tabs { gap: .35rem; }
  .filter-btn { font-size: .75rem; padding: .38rem .85rem; }

  .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 1rem; }
  .stat-card { padding: 1.5rem 1rem; }
  .stat-card strong.counter { font-size: 2rem; }

  .cta-actions { flex-direction: column; align-items: center; }
  .cta-actions .btn { width: 100%; max-width: 340px; justify-content: center; }

  .modal-actions { flex-direction: column; }
  .modal-actions .btn { width: 100%; justify-content: center; }

  .gallery-thumbs .gallery-thumb { width: 58px; height: 44px; }

  .lightbox-prev { left: .5rem; }
  .lightbox-next { right: .5rem; }
}

/* ── 28. PRINT STYLES ─────────────────────────────────────── */
@media print {
  .site-header, .hero-scroll, .filter-toolbar,
  .cta-section, .site-footer, .carousel-controls { display: none; }
  .portfolio-hero { min-height: auto; padding-block: 2rem; }
  .projects-grid { grid-template-columns: repeat(2, 1fr); }
}


/* WhatsApp quick contact */
.whatsapp-float {
  position: fixed; right: 1.25rem; bottom: 1.25rem; z-index: 850;
  display: inline-flex; align-items: center; gap: .55rem; padding: .8rem 1rem;
  border-radius: 999px; color: #fff; background: #25D366;
  box-shadow: 0 8px 24px rgba(20, 120, 63, .32); font-weight: 700; font-size: .9rem;
  transition: transform var(--trans), background var(--trans), box-shadow var(--trans);
}
.whatsapp-float:hover { color: #fff; background: #1ebe5d; transform: translateY(-2px); box-shadow: 0 12px 28px rgba(20, 120, 63, .4); }
.whatsapp-float:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; }
.whatsapp-float i { width: 21px; height: 21px; }
@media (max-width: 480px) {
  .whatsapp-float { right: 1rem; bottom: 1rem; width: 52px; height: 52px; padding: 0; justify-content: center; }
  .whatsapp-float span { display: none; }
}
