/* ============================================================
   LIPHRAH AGENCIES LIMITED — Shared Stylesheet
   Property Management · Nairobi, Kenya
   Palette: Navy #0B2C5E · Green #2E8B3D · Orange #F5A623 · White
   ============================================================ */

/* ---------- 1. ROOT VARIABLES & RESET ---------- */
:root {
  /* Brand colours */
  --navy:        #0B2C5E;
  --navy-dark:   #071E42;
  --navy-soft:   #14397A;
  --green:       #2E8B3D;
  --green-dark:  #226E2F;
  --green-soft:  #E9F6EB;
  --orange:      #F5A623;
  --orange-dark: #DE8F0D;
  --orange-soft: #FDF3E0;
  --white:       #FFFFFF;
  --off-white:   #F5F8FC;
  --ink:         #1D2B45;   /* body headings/text */
  --slate:       #4A5A75;   /* body paragraph text */
  --line:        #E3E9F2;   /* hairline borders */

  /* Typography */
  --font-head: 'Montserrat', 'Segoe UI', Arial, sans-serif;
  --font-body: 'Open Sans', 'Segoe UI', Arial, sans-serif;

  /* Shape & shadow */
  --radius:    18px;
  --radius-lg: 24px;
  --shadow-sm: 0 4px 14px rgba(11, 44, 94, 0.08);
  --shadow-md: 0 10px 30px rgba(11, 44, 94, 0.12);
  --shadow-lg: 0 22px 55px rgba(11, 44, 94, 0.18);

  /* Layout */
  --nav-h: 78px;
  --container: 1200px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.7;
  color: var(--slate);
  background: var(--white);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }

a { text-decoration: none; color: inherit; }

ul { list-style: none; }

::selection { background: var(--orange); color: var(--navy); }

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

.section { padding: 96px 0; }
.section--tint { background: var(--off-white); }

/* Section heading kit */
.section-head { max-width: 720px; margin: 0 auto 56px; text-align: center; }

.kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-head);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--green);
  margin-bottom: 14px;
}
.kicker::before,
.kicker::after { content: ""; width: 26px; height: 3px; border-radius: 3px; background: var(--orange); }

.section-head h2 {
  font-family: var(--font-head);
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 800;
  line-height: 1.2;
  text-transform: uppercase;
  color: var(--navy);
  margin-bottom: 16px;
}
.section-head h2 .accent { color: var(--green); }
.section-head p { font-size: 17px; }

/* ---------- 3. BUTTONS ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-family: var(--font-head);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: .5px;
  padding: 15px 32px;
  border-radius: 60px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: all .3s ease;
  white-space: nowrap;
}
.btn i { transition: transform .3s ease; }
.btn:hover i { transform: translateX(4px); }

.btn--primary { background: var(--orange); color: var(--navy); box-shadow: 0 10px 24px rgba(245, 166, 35, .45); }
.btn--primary:hover { background: var(--orange-dark); transform: translateY(-3px); box-shadow: 0 14px 30px rgba(245, 166, 35, .55); }

.btn--navy { background: var(--navy); color: var(--white); }
.btn--navy:hover { background: var(--navy-soft); transform: translateY(-3px); box-shadow: var(--shadow-md); }

.btn--ghost { border-color: rgba(255,255,255,.7); color: var(--white); background: rgba(255,255,255,.06); backdrop-filter: blur(4px); }
.btn--ghost:hover { background: var(--white); color: var(--navy); transform: translateY(-3px); }

.btn--green { background: var(--green); color: var(--white); }
.btn--green:hover { background: var(--green-dark); transform: translateY(-3px); box-shadow: 0 12px 26px rgba(46,139,61,.4); }

/* ---------- 4. HEADER / NAVBAR (sticky, transparent -> solid on scroll) ---------- */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 1000;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  background: transparent;
  transition: background .35s ease, box-shadow .35s ease, height .35s ease;
}

/* Solid state — added by JS on scroll / when mobile menu is open */
.site-header.is-solid {
  background: var(--white);
  box-shadow: 0 4px 22px rgba(7, 30, 66, .12);
}

.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

/* Logo lockup: SVG house + two-line wordmark */
.brand { display: inline-flex; align-items: center; gap: 12px; }
.brand svg { width: 44px; height: 44px; flex: 0 0 auto; filter: drop-shadow(0 3px 6px rgba(7,30,66,.25)); }
.brand-text { display: flex; flex-direction: column; line-height: 1.05; }
.brand-text strong {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 20px;
  letter-spacing: 1.5px;
  color: var(--white);
  transition: color .35s ease;
}
.brand-text span {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 10.5px;
  letter-spacing: 3.4px;
  color: var(--orange);
  transition: color .35s ease;
}
.site-header.is-solid .brand-text strong { color: var(--navy); }
.site-header.is-solid .brand-text span  { color: var(--green); }

/* Desktop menu */
.nav-menu { display: flex; align-items: center; gap: 18px; }

.nav-link {
  position: relative;
  font-family: var(--font-head);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: rgba(255, 255, 255, .9);
  padding: 9px 16px;
  border-radius: 60px;
  transition: color .3s ease, background .3s ease, box-shadow .3s ease;
}
.nav-link:hover { color: var(--white); background: rgba(255,255,255,.14); }

/* Active tab — filled pill so the current page is unmistakable */
.nav-link.active {
  color: var(--navy);
  background: linear-gradient(135deg, var(--orange), var(--orange-dark));
  box-shadow: 0 6px 18px rgba(245, 166, 35, .4);
}

.site-header.is-solid .nav-link { color: var(--navy); }
.site-header.is-solid .nav-link:hover { color: var(--green); background: var(--green-soft); }
.site-header.is-solid .nav-link.active {
  color: var(--navy);
  background: linear-gradient(135deg, var(--orange), var(--orange-dark));
  box-shadow: 0 6px 18px rgba(245, 166, 35, .35);
}

/* WhatsApp chip (desktop only) */
.nav-whatsapp {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 14px;
  color: var(--white);
  background: linear-gradient(135deg, #25D366, #128C4A);
  padding: 10px 20px;
  border-radius: 60px;
  transition: all .3s ease;
  box-shadow: 0 6px 18px rgba(37, 211, 102, .35);
}
.nav-whatsapp:hover { background: linear-gradient(135deg, #20BD5A, #0F7A40); color: var(--white); transform: translateY(-2px); box-shadow: 0 10px 22px rgba(37, 211, 102, .45); }
.nav-whatsapp i { color: var(--white); }

/* WhatsApp button inside the mobile menu panel — hidden on desktop */
.nav-whatsapp--mobile { display: none; }

/* Hamburger (mobile only) */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  width: 46px; height: 46px;
  padding: 10px;
  background: rgba(255,255,255,.12);
  border: 1px solid rgba(255,255,255,.35);
  border-radius: 12px;
  cursor: pointer;
  transition: background .3s ease;
}
.nav-toggle span {
  display: block;
  height: 3px;
  border-radius: 3px;
  background: var(--white);
  transition: transform .35s ease, opacity .3s ease, background .35s ease;
}
.site-header.is-solid .nav-toggle { background: var(--navy); border-color: var(--navy); }
.site-header.is-solid .nav-toggle span { background: var(--white); }

/* Hamburger -> X animation */
.nav-toggle.open span:nth-child(1) { transform: translateY(9px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-9px) rotate(-45deg); }

/* Mobile dropdown panel */
.nav-menu {
  /* desktop: inline row — overridden below at 900px */
}

@media (max-width: 900px) {
  .nav-toggle { display: flex; }
  .nav-whatsapp--desktop { display: none; }

  .nav-menu {
    position: fixed;
    top: var(--nav-h);
    left: 0; right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--white);
    box-shadow: 0 24px 40px rgba(7,30,66,.18);
    padding: 10px 24px 26px;
    transform: translateY(-130%);
    opacity: 0;
    transition: transform .4s ease, opacity .4s ease;
    pointer-events: none;
  }
  .nav-menu.open { transform: translateY(0); opacity: 1; pointer-events: auto; }

  .nav-menu .nav-link {
    display: block;
    color: var(--navy);
    padding: 14px 12px;
    font-size: 15px;
    border-bottom: 1px solid var(--line);
  }
  .nav-menu .nav-link.active {
    color: var(--green-dark);
    background: var(--green-soft);
    border-radius: 12px;
  }
  .nav-menu .nav-link.active::before { content: "\f0da"; font-family: "Font Awesome 6 Free"; font-weight: 900; color: var(--orange); margin-right: 8px; }

  /* WhatsApp shown inside the mobile panel */
  .nav-menu .nav-whatsapp {
    display: inline-flex;
    margin-top: 18px;
    justify-content: center;
    background: linear-gradient(135deg, #25D366, #128C4A);
  }
}

/* ---------- 5. HERO (HOME) ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  background:
    radial-gradient(1100px 620px at 84% 14%, rgba(245, 166, 35, .34), transparent 62%),
    radial-gradient(820px 560px at 8% 94%, rgba(46, 139, 61, .5), transparent 60%),
    radial-gradient(720px 520px at 92% 90%, rgba(37, 211, 102, .28), transparent 62%),
    linear-gradient(100deg, rgba(7,30,66,.93) 0%, rgba(11,44,94,.84) 42%, rgba(20,57,122,.55) 78%, rgba(46,139,61,.35) 100%),
    url("images/hero-apartments.jpg") center / cover no-repeat;
  overflow: hidden;
}

/* Diagonal brochure accents */
.hero::before {  /* green diagonal from bottom-left */
  content: "";
  position: absolute;
  left: -140px; bottom: -180px;
  width: 420px; height: 130%;
  background: linear-gradient(160deg, var(--green), var(--green-dark));
  transform: rotate(18deg);
  opacity: .85;
}
.hero::after {   /* orange ribbon slicing the top-right corner */
  content: "";
  position: absolute;
  top: -140px; right: -170px;
  width: 300px; height: 170%;
  background: linear-gradient(20deg, var(--orange), var(--orange-dark));
  transform: rotate(-16deg);
  opacity: .9;
}
/* Thin navy echo stripe beside the orange ribbon */
.hero-stripe {
  position: absolute;
  top: -140px; right: 160px;
  width: 26px; height: 170%;
  background: rgba(255,255,255,.28);
  transform: rotate(-16deg);
  z-index: 1;
}

/* Vertical split: left content + right testimonials slideshow */
.hero-grid {
  position: relative;
  z-index: 3;
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: 48px;
  align-items: center;
  padding: 140px 0 180px;
}
.hero-content { position: relative; z-index: 3; max-width: 720px; padding: 0; }

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-head);
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--white);
  background: rgba(46,139,61,.85);
  padding: 9px 20px;
  border-radius: 60px;
  margin-bottom: 26px;
}
.hero h1 {
  font-family: var(--font-head);
  font-size: clamp(34px, 5vw, 58px);
  font-weight: 900;
  line-height: 1.04;
  letter-spacing: 1px;
  color: var(--white);
  text-transform: uppercase;
}
.hero h1 .stroke {
  display: block;
  color: transparent;
  -webkit-text-stroke: 2px var(--orange);
}
.hero-sub {
  margin-top: 24px;
  max-width: 560px;
  font-size: 17.5px;
  color: rgba(255,255,255,.92);
}
.hero-tagline {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-top: 22px;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 16px;
  color: var(--orange);
}
.hero-tagline i { animation: pulse 2s infinite; }

.hero-cta { display: flex; flex-wrap: wrap; gap: 16px; margin-top: 38px; }

/* Hero entrance animation */
@keyframes fadeUp { from { opacity: 0; transform: translateY(36px); } to { opacity: 1; transform: translateY(0); } }
.hero-eyebrow, .hero h1, .hero-sub, .hero-tagline, .hero-cta, .hero-testimonials { opacity: 0; animation: fadeUp .8s ease forwards; }
.hero-eyebrow       { animation-delay: .15s; }
.hero h1            { animation-delay: .3s; }
.hero-sub           { animation-delay: .5s; }
.hero-tagline       { animation-delay: .65s; }
.hero-cta           { animation-delay: .8s; }
.hero-testimonials  { animation-delay: .55s; }

/* ---------- 5b. HERO TESTIMONIAL SLIDESHOW (right column of home hero) ---------- */
.hero-testimonials { position: relative; z-index: 3; }
.hero-testimonials__kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-head);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--white);
  margin-bottom: 18px;
}
.hero-testimonials__kicker i { color: var(--orange); animation: pulse 2s infinite; }

.hero .t-carousel { max-width: none; margin: 0; }
.hero .t-card {
  background: linear-gradient(160deg, rgba(255,255,255,.98), rgba(255,255,255,.9));
  backdrop-filter: blur(6px);
  padding: 46px 38px 34px;
  border: 1px solid rgba(255,255,255,.45);
  box-shadow: 0 26px 60px rgba(7,30,66,.45);
}
.hero .t-card .quote-icon {
  top: -26px;
  background: linear-gradient(135deg, var(--orange), var(--orange-dark));
  color: var(--navy);
}
.hero .t-card p.t-text { font-size: 15.5px; margin: 8px 0 22px; }

/* Star rating row (colourful accent) */
.t-stars { color: var(--orange); font-size: 14px; letter-spacing: 4px; margin: 10px 0 0; }
.t-stars i { text-shadow: 0 1px 0 rgba(222,143,13,.6); }

/* Controls restyled for the dark hero */
.hero .t-btn {
  background: rgba(255,255,255,.14);
  border: 1px solid rgba(255,255,255,.32);
  color: var(--white);
  box-shadow: none;
}
.hero .t-btn:hover { background: var(--orange); border-color: var(--orange); color: var(--navy); transform: translateY(-3px); }
.hero .t-dot { background: rgba(255,255,255,.38); }
.hero .t-dot.active { background: var(--orange); }

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

/* Stats bar overlapping the hero bottom */
.hero-stats {
  position: relative;
  z-index: 5;
  margin-top: -84px;
  padding-bottom: 0;
}
.stats-card {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}
.stat {
  padding: 34px 22px;
  text-align: center;
  border-right: 1px solid var(--line);
  position: relative;
}
.stat:last-child { border-right: 0; }
.stat::before {
  content: "";
  position: absolute;
  top: 0; left: 20%;
  width: 60%; height: 4px;
  border-radius: 0 0 6px 6px;
  background: var(--orange);
}
.stat:nth-child(2)::before { background: var(--green); }
.stat:nth-child(3)::before { background: var(--orange); }
.stat:nth-child(4)::before { background: var(--green); }
.stat-num {
  font-family: var(--font-head);
  font-size: clamp(28px, 3vw, 40px);
  font-weight: 900;
  color: var(--navy);
  line-height: 1.1;
}
.stat-label { font-size: 13.5px; font-weight: 600; letter-spacing: .5px; text-transform: uppercase; color: var(--slate); margin-top: 6px; }

/* ---------- 6. QUICK SERVICES PREVIEW (HOME) ---------- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 22px;
}
.svc-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 34px 22px 30px;
  text-align: center;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--line);
  transition: transform .35s ease, box-shadow .35s ease;
  position: relative;
  overflow: hidden;
}
.svc-card::after {  /* diagonal wash revealed on hover */
  content: "";
  position: absolute;
  inset: auto -40% -160% -40%;
  height: 220%;
  background: rgba(11,44,94,.04);
  transform: rotate(-12deg);
  transition: inset .45s ease;
}
.svc-card:hover { transform: translateY(-10px); box-shadow: var(--shadow-md); }
.svc-card:hover::after { inset: auto -40% -60% -40%; }

.svc-icon {
  width: 68px; height: 68px;
  margin: 0 auto 20px;
  display: grid;
  place-items: center;
  font-size: 26px;
  color: var(--white);
  border-radius: 20px;
  box-shadow: var(--shadow-sm);
  transition: transform .4s ease;
}
.svc-card:hover .svc-icon { transform: rotate(-8deg) scale(1.08); }
.svc-card:nth-child(odd)  .svc-icon { background: linear-gradient(135deg, var(--navy), var(--navy-soft)); }
.svc-card:nth-child(even) .svc-icon { background: linear-gradient(135deg, var(--green), var(--green-dark)); }
.svc-card:nth-child(3n)   .svc-icon { background: linear-gradient(135deg, var(--orange), var(--orange-dark)); }

.svc-card h3 {
  font-family: var(--font-head);
  font-size: 16.5px;
  font-weight: 800;
  color: var(--navy);
  margin-bottom: 10px;
  text-transform: uppercase;
  letter-spacing: .3px;
}
.svc-card p { font-size: 14.5px; line-height: 1.65; }

.services-more { text-align: center; margin-top: 46px; }

/* ---------- 7. GALLERY STRIP (HOME) ---------- */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
}
.gallery-card {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  aspect-ratio: 4 / 4.6;
}
.gallery-card img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .6s ease;
}
.gallery-card:hover img { transform: scale(1.09); }

.gallery-card__overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 26px;
  background: linear-gradient(180deg, rgba(7,30,66,0) 42%, rgba(7,30,66,.88) 100%);
}
.gallery-card__overlay small {
  font-family: var(--font-head);
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--orange);
}
.gallery-card__overlay h3 {
  font-family: var(--font-head);
  font-size: 21px;
  font-weight: 800;
  color: var(--white);
  margin-top: 4px;
}
.gallery-card__overlay p { color: rgba(255,255,255,.85); font-size: 14px; margin-top: 6px; }

/* Small diagonal corner chip */
.gallery-card::before {
  content: "";
  position: absolute;
  top: 0; right: 0;
  width: 86px; height: 86px;
  background: linear-gradient(225deg, var(--orange) 50%, transparent 50%);
  z-index: 2;
}
.gallery-note { text-align: center; margin-top: 34px; font-size: 15.5px; }

/* ---------- 8. WHY CHOOSE US SNAPSHOT (HOME) ---------- */
.why-grid {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: 60px;
  align-items: center;
}
.check-list { display: grid; gap: 18px; margin-top: 8px; }
.check-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 16px 20px;
  box-shadow: var(--shadow-sm);
  transition: transform .3s ease, box-shadow .3s ease;
}
.check-item:hover { transform: translateX(8px); box-shadow: var(--shadow-md); }
.check-item i {
  flex: 0 0 auto;
  width: 34px; height: 34px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--green), var(--green-dark));
  color: var(--white);
  font-size: 14px;
  margin-top: 2px;
  box-shadow: 0 6px 14px rgba(46,139,61,.35);
}
.check-item h4 { font-family: var(--font-head); font-size: 16px; font-weight: 700; color: var(--navy); }
.check-item p  { font-size: 14.5px; }

/* Rotating circular badge */
.badge-wrap { display: grid; place-items: center; position: relative; }
.badge-ring {
  position: absolute;
  width: 340px; height: 340px;
  border-radius: 50%;
  border: 2px dashed rgba(245,166,35,.55);
  animation: spin 26s linear infinite reverse;
}
.badge-svg { width: 320px; height: 320px; }
.badge-svg text {
  font-family: var(--font-head);
  font-size: 15.5px;
  font-weight: 800;
  letter-spacing: 3.5px;
  fill: var(--navy);
}
.badge-svg .badge-circle-text { animation: spin 22s linear infinite; transform-origin: 50% 50%; }

.badge-center {
  position: absolute;
  width: 168px; height: 168px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  text-align: center;
  background: linear-gradient(150deg, var(--navy), var(--navy-dark));
  box-shadow: var(--shadow-lg), 0 0 0 10px rgba(46,139,61,.14);
  color: var(--white);
}
.badge-center i { font-size: 34px; color: var(--orange); margin-bottom: 6px; }
.badge-center strong { font-family: var(--font-head); font-size: 13px; letter-spacing: 1px; line-height: 1.5; }
.badge-center span { color: var(--orange); }

@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- 9. CTA BANNER ---------- */
.cta-banner {
  position: relative;
  background: linear-gradient(115deg, var(--navy-dark) 0%, var(--navy) 55%, var(--navy-soft) 100%);
  padding: 92px 0;
  text-align: center;
  overflow: hidden;
}
.cta-banner::before {  /* orange diagonal slice */
  content: "";
  position: absolute;
  top: -60%; bottom: -60%;
  right: -60px;
  width: 190px;
  background: linear-gradient(180deg, var(--orange), var(--orange-dark));
  transform: rotate(18deg);
  opacity: .9;
}
.cta-banner::after {   /* green diagonal slice */
  content: "";
  position: absolute;
  top: -60%; bottom: -60%;
  right: 110px;
  width: 54px;
  background: var(--green);
  transform: rotate(18deg);
}
.cta-inner { position: relative; z-index: 2; max-width: 780px; }
.cta-inner .kicker { color: var(--orange); }
.cta-inner .kicker::before, .cta-inner .kicker::after { background: var(--green); }
.cta-inner h2 {
  font-family: var(--font-head);
  font-size: clamp(26px, 3.6vw, 40px);
  font-weight: 800;
  line-height: 1.25;
  color: var(--white);
  text-transform: uppercase;
  margin-bottom: 14px;
}
.cta-inner p { color: rgba(255,255,255,.85); font-size: 17px; margin-bottom: 34px; }

/* ---------- 10. PAGE BANNER (services / contact) ---------- */
.page-banner {
  position: relative;
  padding: calc(var(--nav-h) + 96px) 0 96px;
  background:
    linear-gradient(110deg, rgba(7,30,66,.95) 0%, rgba(11,44,94,.86) 55%, rgba(20,57,122,.65) 100%),
    url("images/hero-apartments.jpg") center / cover no-repeat fixed;
  overflow: hidden;
}
.page-banner::before {  /* green diagonal */
  content: "";
  position: absolute;
  left: -120px; top: -40%; bottom: -40%;
  width: 200px;
  background: var(--green);
  transform: rotate(16deg);
  opacity: .85;
}
.page-banner::after {   /* orange diagonal */
  content: "";
  position: absolute;
  right: -90px; top: -50%; bottom: -50%;
  width: 130px;
  background: var(--orange);
  transform: rotate(16deg);
  opacity: .9;
}
.page-banner .container { position: relative; z-index: 2; }

.breadcrumb {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-head);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: rgba(255,255,255,.75);
  margin-bottom: 18px;
}
.breadcrumb a { color: var(--white); transition: color .3s; }
.breadcrumb a:hover { color: var(--orange); }
.breadcrumb i { font-size: 11px; color: var(--orange); }
.breadcrumb .current { color: var(--orange); }

.page-banner h1 {
  font-family: var(--font-head);
  font-size: clamp(36px, 5.5vw, 60px);
  font-weight: 900;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--white);
  line-height: 1.08;
}
.page-banner p { max-width: 640px; color: rgba(255,255,255,.88); margin-top: 18px; font-size: 17px; }

/* ---------- 11. DETAILED SERVICE BLOCKS (services.html) ---------- */
.svc-detail {
  display: grid;
  grid-template-columns: 1fr 1.05fr;
  gap: 64px;
  align-items: center;
  margin-bottom: 96px;
}
.svc-detail:last-of-type { margin-bottom: 0; }

/* Alternate sides */
.svc-detail:nth-of-type(even) .svc-detail__media { order: 2; }
.svc-detail:nth-of-type(even) .svc-detail__body  { order: 1; }

.svc-detail__media { position: relative; }
.svc-detail__media img {
  width: 100%;
  aspect-ratio: 4 / 3.1;
  object-fit: cover;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  transition: transform .5s ease;
}
.svc-detail__media:hover img { transform: scale(1.02); }
/* offset colour frame */
.svc-detail__media::before {
  content: "";
  position: absolute;
  inset: 22px -22px -22px 22px;
  border-radius: var(--radius-lg);
  z-index: -1;
}
.svc-detail:nth-of-type(odd)  .svc-detail__media::before { background: linear-gradient(135deg, var(--orange-soft), var(--orange)); }
.svc-detail:nth-of-type(even) .svc-detail__media::before { background: linear-gradient(135deg, var(--green-soft), var(--green)); inset: 22px 22px -22px -22px; }

/* floating icon chip over the image */
.svc-detail__media .media-chip {
  position: absolute;
  left: -18px; bottom: -18px;
  width: 74px; height: 74px;
  display: grid;
  place-items: center;
  font-size: 28px;
  color: var(--white);
  background: linear-gradient(135deg, var(--navy), var(--navy-soft));
  border-radius: 22px;
  box-shadow: var(--shadow-md);
  transition: transform .4s ease;
}
.svc-detail:nth-of-type(even) .svc-detail__media .media-chip { left: auto; right: -18px; background: linear-gradient(135deg, var(--orange), var(--orange-dark)); color: var(--navy); }
.svc-detail__media:hover .media-chip { transform: translateY(-6px) rotate(-6deg); }

.svc-detail__body .svc-num {
  font-family: var(--font-head);
  font-size: 15px;
  font-weight: 800;
  letter-spacing: 3px;
  color: var(--orange);
  margin-bottom: 10px;
  display: block;
}
.svc-detail__body h3 {
  font-family: var(--font-head);
  font-size: clamp(23px, 2.6vw, 30px);
  font-weight: 800;
  color: var(--navy);
  text-transform: uppercase;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 14px;
}
.svc-detail__body h3 i {
  flex: 0 0 auto;
  width: 52px; height: 52px;
  display: grid;
  place-items: center;
  font-size: 21px;
  color: var(--white);
  background: linear-gradient(135deg, var(--green), var(--green-dark));
  border-radius: 16px;
  box-shadow: var(--shadow-sm);
}
.svc-detail:nth-of-type(even) .svc-detail__body h3 i { background: linear-gradient(135deg, var(--navy), var(--navy-soft)); }
.svc-detail__body > p { font-size: 16.5px; margin-bottom: 20px; }

.feat-list { display: grid; gap: 12px; margin-bottom: 24px; }
.feat-list li { display: flex; align-items: flex-start; gap: 12px; font-size: 15px; }
.feat-list li i {
  flex: 0 0 auto;
  width: 24px; height: 24px;
  display: grid;
  place-items: center;
  font-size: 11px;
  color: var(--white);
  background: var(--green);
  border-radius: 50%;
  margin-top: 3px;
}

/* ---------- 12. WHY CHOOSE US — EXPANDED (services.html) ---------- */
.why-full-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 26px; }
.why-full-card {
  display: flex;
  gap: 20px;
  align-items: flex-start;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px 28px;
  box-shadow: var(--shadow-sm);
  transition: transform .35s ease, box-shadow .35s ease;
  position: relative;
  overflow: hidden;
}
.why-full-card::before {  /* top accent bar */
  content: "";
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 5px;
  background: linear-gradient(90deg, var(--orange), var(--green));
}
.why-full-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-md); }
.why-full-card .check-badge {
  flex: 0 0 auto;
  width: 56px; height: 56px;
  display: grid;
  place-items: center;
  font-size: 20px;
  color: var(--white);
  border-radius: 50%;
  background: linear-gradient(135deg, var(--green), var(--green-dark));
  box-shadow: 0 8px 18px rgba(46,139,61,.35);
}
.why-full-card h4 { font-family: var(--font-head); font-size: 18px; font-weight: 800; color: var(--navy); margin-bottom: 8px; }
.why-full-card p  { font-size: 15px; }

/* Centre the 5th card on the last row */
.why-full-grid .why-full-card:last-child:nth-child(odd) {
  grid-column: 1 / -1;
  max-width: calc(50% - 13px);
  margin: 0 auto;
  width: 100%;
}

/* ---------- 13. TESTIMONIALS CAROUSEL (services.html) ---------- */
.t-carousel { position: relative; max-width: 820px; margin: 0 auto; }

.t-slide { display: none; }
.t-slide.active { display: block; animation: fadeUp .55s ease; }

.t-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 52px 54px 46px;
  text-align: center;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--line);
  position: relative;
}
.t-card .quote-icon {
  position: absolute;
  top: -26px; left: 50%;
  transform: translateX(-50%);
  width: 56px; height: 56px;
  display: grid;
  place-items: center;
  font-size: 22px;
  color: var(--navy);
  background: var(--orange);
  border-radius: 50%;
  box-shadow: 0 10px 22px rgba(245,166,35,.45);
}
.t-card p.t-text {
  font-size: 17px;
  font-style: italic;
  color: var(--ink);
  margin: 14px 0 26px;
}
.t-avatar {
  width: 68px; height: 68px;
  margin: 0 auto 12px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 21px;
  color: var(--white);
  letter-spacing: 1px;
  border: 3px solid var(--white);
  box-shadow: 0 8px 20px rgba(11,44,94,.28);
}
.t-avatar--a { background: linear-gradient(135deg, var(--green), var(--green-dark)); }
.t-avatar--b { background: linear-gradient(135deg, var(--navy), var(--navy-soft)); }
.t-avatar--c { background: linear-gradient(135deg, var(--orange), var(--orange-dark)); color: var(--navy); }
.t-name { font-family: var(--font-head); font-weight: 800; font-size: 17px; color: var(--navy); }
.t-role { font-size: 13.5px; font-weight: 600; letter-spacing: 1px; text-transform: uppercase; color: var(--green); }

.t-controls { display: flex; align-items: center; justify-content: center; gap: 20px; margin-top: 34px; }
.t-btn {
  width: 50px; height: 50px;
  display: grid;
  place-items: center;
  font-size: 17px;
  color: var(--white);
  background: var(--navy);
  border: none;
  border-radius: 50%;
  cursor: pointer;
  box-shadow: var(--shadow-sm);
  transition: all .3s ease;
}
.t-btn:hover { background: var(--green); transform: translateY(-3px); }

.t-dots { display: flex; gap: 10px; }
.t-dot {
  width: 12px; height: 12px;
  border-radius: 50%;
  border: none;
  cursor: pointer;
  background: rgba(11,44,94,.22);
  transition: all .3s ease;
}
.t-dot.active { background: var(--orange); transform: scale(1.35); }

/* ---------- 14. CONTACT PAGE ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: .92fr 1.08fr;
  gap: 40px;
  align-items: start;
}

/* Left: details card */
.contact-card {
  background: linear-gradient(155deg, var(--navy), var(--navy-dark));
  border-radius: var(--radius-lg);
  padding: 44px 40px;
  color: var(--white);
  box-shadow: var(--shadow-lg);
  position: relative;
  overflow: hidden;
}
.contact-card::after {  /* decorative diagonal */
  content: "";
  position: absolute;
  top: -70%; bottom: -70%;
  right: -70px;
  width: 110px;
  background: var(--orange);
  opacity: .85;
  transform: rotate(18deg);
}
.contact-card h3 {
  font-family: var(--font-head);
  font-size: 22px;
  font-weight: 800;
  text-transform: uppercase;
  margin-bottom: 6px;
}
.contact-card > p.contact-card__sub { color: rgba(255,255,255,.8); font-size: 14.5px; margin-bottom: 26px; position: relative; z-index: 1; }

.contact-rows { display: grid; gap: 20px; position: relative; z-index: 1; }
.contact-row { display: flex; gap: 16px; align-items: flex-start; }
.contact-row .cr-icon {
  flex: 0 0 auto;
  width: 46px; height: 46px;
  display: grid;
  place-items: center;
  font-size: 17px;
  color: var(--navy);
  background: var(--orange);
  border-radius: 14px;
  box-shadow: 0 8px 18px rgba(0,0,0,.22);
}
.contact-row:nth-child(even) .cr-icon { background: var(--white); color: var(--navy); }
.contact-row small {
  display: block;
  font-family: var(--font-head);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2.2px;
  text-transform: uppercase;
  color: var(--orange);
  margin-bottom: 2px;
}
.contact-row a, .contact-row span.val {
  color: var(--white);
  font-weight: 600;
  font-size: 15.5px;
  line-height: 1.55;
  transition: color .3s;
}
.contact-row a:hover { color: var(--orange); }

.contact-whatsapp { margin-top: 30px; position: relative; z-index: 1; width: 100%; }

.socials-row {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 30px;
  position: relative;
  z-index: 1;
}
.socials-row span.lbl { font-family: var(--font-head); font-size: 12px; font-weight: 700; letter-spacing: 2px; text-transform: uppercase; color: rgba(255,255,255,.75); }
.social-link {
  width: 44px; height: 44px;
  display: grid;
  place-items: center;
  font-size: 17px;
  color: var(--white);
  background: rgba(255,255,255,.12);
  border: 1px solid rgba(255,255,255,.25);
  border-radius: 50%;
  transition: all .3s ease;
}
.social-link:hover { background: var(--orange); color: var(--navy); transform: translateY(-4px); border-color: var(--orange); }

/* Right: form card */
.form-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 46px 44px;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--line);
}
.form-card h3 {
  font-family: var(--font-head);
  font-size: 22px;
  font-weight: 800;
  text-transform: uppercase;
  color: var(--navy);
  margin-bottom: 6px;
}
.form-card > p { font-size: 14.5px; margin-bottom: 28px; }

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }

.form-group { margin-bottom: 20px; }
.form-group label {
  display: block;
  font-family: var(--font-head);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--navy);
  margin-bottom: 8px;
}
.form-group label .req { color: var(--orange); }
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  font-family: var(--font-body);
  font-size: 15px;
  color: var(--ink);
  padding: 14px 18px;
  border: 2px solid var(--line);
  border-radius: 12px;
  background: var(--off-white);
  outline: none;
  transition: border-color .3s, background .3s, box-shadow .3s;
}
.form-group textarea { resize: vertical; min-height: 130px; }
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--green);
  background: var(--white);
  box-shadow: 0 0 0 4px rgba(46,139,61,.14);
}
.form-group.has-error input,
.form-group.has-error select,
.form-group.has-error textarea { border-color: #D9363E; background: #FEF4F4; }

.error-msg {
  display: none;
  align-items: center;
  gap: 6px;
  font-size: 12.5px;
  font-weight: 600;
  color: #D9363E;
  margin-top: 6px;
}
.form-group.has-error .error-msg { display: flex; }

.form-success {
  display: none;
  align-items: flex-start;
  gap: 16px;
  background: linear-gradient(135deg, var(--green-soft), #DFF2E3);
  border: 2px solid var(--green);
  border-radius: var(--radius);
  padding: 22px 24px;
  margin-bottom: 24px;
}
.form-success.show { display: flex; animation: fadeUp .5s ease; }
.form-success i {
  flex: 0 0 auto;
  width: 42px; height: 42px;
  display: grid;
  place-items: center;
  font-size: 17px;
  color: var(--white);
  background: var(--green);
  border-radius: 50%;
}
.form-success strong { font-family: var(--font-head); color: var(--green-dark); display: block; margin-bottom: 2px; }
.form-success p { font-size: 14px; color: var(--ink); }

/* Map */
.map-wrap { position: relative; }
.map-wrap iframe {
  width: 100%;
  height: 440px;
  border: 0;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  display: block;
}
.map-chip {
  position: absolute;
  left: 26px; top: 26px;
  background: var(--white);
  border-radius: 60px;
  padding: 12px 22px;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 13.5px;
  color: var(--navy);
  box-shadow: var(--shadow-md);
  display: inline-flex;
  align-items: center;
  gap: 9px;
}
.map-chip i { color: var(--orange); }

/* ---------- 15. FOOTER (shared) ---------- */
.site-footer { background: var(--navy-dark); color: rgba(255,255,255,.78); position: relative; overflow: hidden; }
.site-footer::before {  /* subtle top diagonal brand edge */
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 5px;
  background: linear-gradient(90deg, var(--green) 0 33%, var(--orange) 33% 66%, var(--navy-soft) 66%);
}

.footer-top {
  display: grid;
  grid-template-columns: 1.35fr 1fr 1fr 1.15fr;
  gap: 44px;
  padding: 74px 0 50px;
}

.footer-brand .brand { margin-bottom: 18px; }
.footer-brand .brand-text strong { color: var(--white); }
.footer-brand .brand-text span { color: var(--orange); }
.footer-brand p { font-size: 14.5px; }
.footer-tagline {
  display: inline-block;
  margin-top: 16px;
  font-family: var(--font-head);
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 1.2px;
  color: var(--white);
  background: rgba(46,139,61,.35);
  border-left: 3px solid var(--green);
  padding: 8px 14px;
  border-radius: 0 10px 10px 0;
}

.footer-col h4 {
  font-family: var(--font-head);
  font-size: 15px;
  font-weight: 800;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--white);
  margin-bottom: 20px;
  position: relative;
  padding-bottom: 12px;
}
.footer-col h4::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 34px; height: 3px;
  border-radius: 3px;
  background: var(--orange);
}
.footer-col ul { display: grid; gap: 11px; }
.footer-col ul a {
  font-size: 14.5px;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  transition: color .3s, transform .3s;
}
.footer-col ul a i { font-size: 10px; color: var(--orange); }
.footer-col ul a:hover { color: var(--orange); transform: translateX(5px); }

.footer-contact li { display: flex; gap: 12px; font-size: 14.5px; margin-bottom: 13px; }
.footer-contact li i { color: var(--orange); margin-top: 4px; }
.footer-contact li a:hover { color: var(--orange); }

/* Motto strip */
.footer-motto {
  text-align: center;
  padding: 20px 0;
  border-top: 1px solid rgba(255,255,255,.12);
  border-bottom: 1px solid rgba(255,255,255,.12);
}
.footer-motto strong {
  font-family: var(--font-head);
  font-size: 15px;
  font-weight: 800;
  letter-spacing: 6px;
  color: var(--orange);
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
  padding: 22px 0;
  font-size: 13.5px;
}
.footer-bottom .heart { color: var(--orange); }

.back-top {
  position: fixed;
  right: 26px; bottom: 26px;
  width: 48px; height: 48px;
  display: grid;
  place-items: center;
  background: var(--orange);
  color: var(--navy);
  border-radius: 50%;
  box-shadow: 0 10px 24px rgba(245,166,35,.5);
  opacity: 0;
  visibility: hidden;
  transform: translateY(14px);
  transition: all .35s ease;
  z-index: 900;
}
.back-top.show { opacity: 1; visibility: visible; transform: translateY(0); }
.back-top:hover { background: var(--green); color: var(--white); }

/* ---------- 16. SCROLL-REVEAL ANIMATIONS (IntersectionObserver) ---------- */
.reveal {
  opacity: 0;
  transform: translateY(36px);
  transition: opacity .75s ease var(--d, 0s), transform .75s ease var(--d, 0s);
  will-change: opacity, transform;
}
.reveal-left  { transform: translateX(-46px); }
.reveal-right { transform: translateX(46px); }
.reveal-zoom  { transform: scale(.9); }
.reveal.visible { opacity: 1; transform: none; }

/* ---------- 16b. PAGE TRANSITION (tab-to-tab content fade) ---------- */
@keyframes pageIn {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: none; }
}
main { animation: pageIn .55s ease both; }

/* ---------- 17. RESPONSIVE ---------- */
@media (max-width: 1080px) {
  .services-grid { grid-template-columns: repeat(3, 1fr); }
  .footer-top { grid-template-columns: 1fr 1fr; gap: 38px; }
}

@media (max-width: 980px) {
  .section { padding: 78px 0; }
  .hero-grid { grid-template-columns: 1fr; gap: 44px; padding: 130px 0 170px; }
  .hero-testimonials { max-width: 640px; }

  .why-grid { grid-template-columns: 1fr; gap: 56px; }
  .svc-detail { grid-template-columns: 1fr; gap: 54px; margin-bottom: 74px; }
  .svc-detail:nth-of-type(even) .svc-detail__media { order: 1; }
  .svc-detail:nth-of-type(even) .svc-detail__body  { order: 2; }
  .svc-detail__media { max-width: 560px; }

  .contact-grid { grid-template-columns: 1fr; }

  .stats-card { grid-template-columns: repeat(2, 1fr); }
  .stat:nth-child(2) { border-right: 0; }
  .stat:nth-child(1), .stat:nth-child(2) { border-bottom: 1px solid var(--line); }
}

@media (max-width: 760px) {
  .gallery-grid { grid-template-columns: 1fr; max-width: 520px; margin: 0 auto; }
  .why-full-grid { grid-template-columns: 1fr; }
  .why-full-grid .why-full-card:last-child:nth-child(odd) { max-width: 100%; }
  .form-row { grid-template-columns: 1fr; gap: 0; }
  .page-banner { background-attachment: scroll; }
}

@media (max-width: 640px) {
  :root { --nav-h: 68px; }
  .section { padding: 64px 0; }
  .section-head { margin-bottom: 40px; }

  .services-grid { grid-template-columns: 1fr; }
  .hero::after, .hero-stripe { display: none; }        /* keep mobile hero clean */
  .hero-grid { padding: 120px 0 150px; }
  .hero-cta .btn { width: 100%; }

  .stats-card { grid-template-columns: 1fr; }
  .stat { border-right: 0; border-bottom: 1px solid var(--line); }
  .stat:last-child { border-bottom: 0; }
  .hero-stats { margin-top: -64px; }

  .badge-svg { width: 250px; height: 250px; }
  .badge-ring { width: 268px; height: 268px; }
  .badge-center { width: 136px; height: 136px; }
  .badge-center i { font-size: 26px; }

  .t-card { padding: 44px 24px 38px; }
  .hero .t-card { padding: 38px 20px 28px; }
  .contact-card { padding: 36px 26px; }
  .form-card { padding: 34px 22px; }
  .map-wrap iframe { height: 340px; }

  .footer-top { grid-template-columns: 1fr; gap: 34px; padding: 56px 0 36px; }
  .footer-bottom { justify-content: center; text-align: center; }
  .footer-motto strong { letter-spacing: 3px; font-size: 13px; }
}

/* ---------- 18. ACCESSIBILITY: reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; }
  .hero-eyebrow, .hero h1, .hero-sub, .hero-tagline, .hero-cta, .hero-testimonials { opacity: 1; }
}
