/* ==========================================================================
   iCity Solution (مؤسسة المدينة الذكية) - Main Stylesheet
   ========================================================================== */

:root {
  /* Warm neutral palette: beige, greige, soft yellow, white and graphite */
  --bg-primary: #f5f3ee;
  --bg-secondary: #ebe8e0;
  --bg-card: rgba(255, 255, 255, 0.88);
  --bg-card-solid: #ffffff;
  --bg-glass: rgba(250, 249, 246, 0.92);

  --accent-primary: #b8954f;
  --accent-secondary: #d0b878;
  --accent-teal: #a99772;
  --accent-glow: rgba(184, 149, 79, 0.18);

  --text-primary: #343638;
  --text-secondary: #626466;
  --text-muted: #858582;
  --border-subtle: rgba(145, 136, 116, 0.20);
  --border-strong: rgba(184, 149, 79, 0.42);

  --silver-gradient: linear-gradient(135deg, #ffffff 0%, #e9e5dc 52%, #d8d3c8 100%);
  --emerald-gradient: linear-gradient(135deg, #d6c18e 0%, #ae8b45 100%);
  --card-gradient: linear-gradient(155deg, rgba(255, 255, 255, 0.98) 0%, rgba(239, 236, 229, 0.96) 100%);
  --font-ar: 'Cairo', 'Tajawal', 'Segoe UI', Tahoma, sans-serif;
  --font-en: 'Plus Jakarta Sans', 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --nav-height: 82px;
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 22px;
  --shadow-card: 0 12px 35px -10px rgba(70, 65, 55, 0.14);
  --shadow-glow: 0 0 28px rgba(184, 149, 79, 0.14);
  --transition: all 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}


/* Reset & Base */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--nav-height);
  font-size: 16px;
}

body {
  background-color: var(--bg-primary);
  color: var(--text-primary);
  font-family: var(--font-ar);
  line-height: 1.75;
  overflow-x: hidden;
  position: relative;
}

html[dir="ltr"] body {
  font-family: var(--font-en);
}

/* Subtle Engineering Grid Background Overlay */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  background-image: 
    linear-gradient(to right, rgba(178, 148, 87, 0.03) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(178, 148, 87, 0.03) 1px, transparent 1px);
  background-size: 48px 48px;
  pointer-events: none;
  z-index: 0;
}

a {
  color: inherit;
  text-decoration: none;
  transition: var(--transition);
}

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

ul {
  list-style: none;
}

.container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1.5rem;
  position: relative;
  z-index: 1;
}

section {
  padding: 6rem 0;
  position: relative;
  z-index: 1;
}

/* Scroll Progress Bar */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  width: 0%;
  background: var(--emerald-gradient);
  z-index: 1100;
  box-shadow: 0 0 10px var(--accent-primary);
}

/* ==========================================================================
   Sticky Header & Navigation
   ========================================================================== */
.site-header {
  position: fixed;
  top: 0;
  inset-inline: 0;
  height: var(--nav-height);
  background: rgba(245, 242, 235, 0.78);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-subtle);
  z-index: 1000;
  transition: var(--transition);
}

.site-header.scrolled {
  background: rgba(245, 242, 235, 0.95);
  box-shadow: 0 8px 30px rgba(76, 74, 66, 0.5);
  border-bottom-color: var(--border-strong);
}

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

.brand-link {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  flex-shrink: 0;
}

.brand-logo-wrap {
  width: 54px;
  height: 46px;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid var(--border-strong);
  box-shadow: 0 0 16px rgba(166, 133, 71, 0.25);
  background: #ebe6db;
  display: flex;
  align-items: center;
  justify-content: center;
}

.brand-logo-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.25;
}

.brand-title-ar {
  font-size: 1.05rem;
  font-weight: 800;
  color: #383d40;
  letter-spacing: -0.01em;
}

.brand-title-en {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--accent-primary);
  font-family: var(--font-en);
  letter-spacing: 0.04em;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 1.35rem;
}

.nav-link {
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--text-secondary);
  padding: 0.45rem 0.2rem;
  position: relative;
  white-space: nowrap;
}

.nav-link::after {
  content: "";
  position: absolute;
  bottom: 0;
  inset-inline-start: 0;
  width: 0;
  height: 2px;
  background: var(--accent-primary);
  transition: width 0.3s ease;
}

.nav-link:hover,
.nav-link.active {
  color: var(--accent-primary);
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.lang-toggle-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.48rem 0.95rem;
  border-radius: 999px;
  background: rgba(232, 219, 186, 0.12);
  border: 1px solid var(--border-strong);
  color: var(--accent-primary);
  font-weight: 700;
  font-size: 0.86rem;
  cursor: pointer;
  transition: var(--transition);
  font-family: inherit;
}

.lang-toggle-btn:hover {
  background: var(--accent-primary);
  color: #9e7838;
  box-shadow: var(--shadow-glow);
}

.nav-quote-btn {
  padding: 0.52rem 1.15rem;
  border-radius: 999px;
  background: var(--emerald-gradient);
  color: #9e7838;
  font-weight: 800;
  font-size: 0.88rem;
  box-shadow: 0 4px 16px rgba(166, 133, 71, 0.3);
  white-space: nowrap;
}

.nav-quote-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(166, 133, 71, 0.45);
}

.mobile-menu-btn {
  display: none;
  background: rgba(252, 251, 247, 0.06);
  border: 1px solid var(--border-subtle);
  color: var(--text-primary);
  width: 42px;
  height: 42px;
  border-radius: 10px;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

/* ==========================================================================
   Section 1: HOME / HERO
   ========================================================================== */
.hero-section {
  min-height: 100vh;
  padding-top: calc(var(--nav-height) + 3rem);
  padding-bottom: 4.5rem;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  background: 
    radial-gradient(circle at 20% 25%, rgba(178, 148, 87, 0.16), transparent 45%),
    radial-gradient(circle at 80% 75%, rgba(178, 148, 87, 0.14), transparent 50%),
    linear-gradient(180deg, rgba(194, 189, 176, 0.72) 0%, rgba(194, 189, 176, 0.88) 65%, #c2bdb0 100%),
    url('../images/background.jpg') center/cover no-repeat;
}

/* Animated Circuit Scanline Effect */
.hero-section::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    transparent 0%,
    rgba(178, 148, 87, 0.04) 50%,
    transparent 100%
  );
  background-size: 100% 8px;
  pointer-events: none;
  z-index: 0;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.25fr 0.85fr;
  gap: 3rem;
  align-items: center;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.45rem 1.1rem;
  border-radius: 999px;
  background: rgba(232, 219, 186, 0.12);
  border: 1px solid var(--border-strong);
  color: var(--accent-primary);
  font-size: 0.88rem;
  font-weight: 700;
  margin-bottom: 1.25rem;
}

.pulse-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--accent-primary);
  box-shadow: 0 0 0 0 rgba(166, 133, 71, 0.7);
  animation: pulseRing 2s infinite;
}

@keyframes pulseRing {
  0% { box-shadow: 0 0 0 0 rgba(178, 148, 87, 0.7); }
  70% { box-shadow: 0 0 0 10px rgba(178, 148, 87, 0); }
  100% { box-shadow: 0 0 0 0 rgba(178, 148, 87, 0); }
}

.hero-title {
  font-size: clamp(2.15rem, 4.2vw, 3.65rem);
  font-weight: 900;
  line-height: 1.2;
  margin-bottom: 0.6rem;
  color: #383d40;
}

.hero-brand-en {
  display: block;
  font-family: var(--font-en);
  font-size: clamp(1.35rem, 2.5vw, 2rem);
  font-weight: 800;
  background: linear-gradient(90deg, #e8dbba, #e8dbba, #e8dbba);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 1.25rem;
  letter-spacing: 0.02em;
}

.hero-subtitle {
  font-size: 1.12rem;
  color: var(--text-secondary);
  max-width: 650px;
  margin-bottom: 1.75rem;
}

/* Hero Core Services Pills */
.hero-pillars {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-bottom: 2.2rem;
}

.hero-pillar-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.48rem 0.95rem;
  border-radius: var(--radius-sm);
  background: rgba(235, 230, 219, 0.85);
  border: 1px solid var(--border-subtle);
  color: #383d40;
  font-size: 0.88rem;
  font-weight: 600;
  backdrop-filter: blur(8px);
}

.hero-pillar-tag svg {
  color: var(--accent-primary);
  width: 16px;
  height: 16px;
}

.hero-cta-group {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  padding: 0.9rem 1.75rem;
  border-radius: var(--radius-md);
  font-weight: 700;
  font-size: 0.98rem;
  cursor: pointer;
  border: none;
  transition: var(--transition);
  font-family: inherit;
}

.btn-primary {
  background: var(--emerald-gradient);
  color: #9e7838;
  box-shadow: 0 8px 25px rgba(166, 133, 71, 0.35);
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 32px rgba(166, 133, 71, 0.55);
}

.btn-secondary {
  background: rgba(252, 251, 247, 0.07);
  color: #383d40;
  border: 1px solid var(--border-strong);
  backdrop-filter: blur(10px);
}

.btn-secondary:hover {
  background: rgba(232, 219, 186, 0.16);
  border-color: var(--accent-primary);
  transform: translateY(-3px);
}

.btn-outline {
  background: transparent;
  color: var(--accent-primary);
  border: 1px solid var(--border-subtle);
}

.btn-outline:hover {
  border-color: var(--accent-primary);
  background: rgba(232, 219, 186, 0.1);
}

/* Hero Visual Showcase Card */
.hero-visual-card {
  position: relative;
  border-radius: var(--radius-lg);
  padding: 1.25rem;
  background: linear-gradient(145deg, rgba(224, 219, 207, 0.85), rgba(245, 242, 235, 0.92));
  border: 1px solid var(--border-strong);
  box-shadow: 0 25px 60px rgba(76, 74, 66, 0.65), var(--shadow-glow);
  animation: floatHero 6s ease-in-out infinite;
}

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

.hero-logo-frame {
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid rgba(201, 199, 189, 0.15);
  background: #e0dbcf;
}

.hero-logo-frame img {
  width: 100%;
  height: auto;
  object-fit: contain;
}

.hero-card-footer {
  margin-top: 1.1rem;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem;
  text-align: center;
}

.hero-metric {
  padding: 0.75rem 0.5rem;
  border-radius: var(--radius-sm);
  background: rgba(245, 242, 235, 0.7);
  border: 1px solid var(--border-subtle);
}

.hero-metric strong {
  display: block;
  font-size: 1.15rem;
  color: var(--accent-primary);
  font-family: var(--font-en);
}

.hero-metric span {
  font-size: 0.78rem;
  color: var(--text-muted);
}

/* ==========================================================================
   Section Headers Common Styling
   ========================================================================== */
.section-header {
  text-align: center;
  max-width: 780px;
  margin: 0 auto 3.75rem;
}

.section-kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent-primary);
  background: rgba(232, 219, 186, 0.1);
  border: 1px solid var(--border-subtle);
  padding: 0.38rem 1rem;
  border-radius: 999px;
  margin-bottom: 0.9rem;
}

.section-title {
  font-size: clamp(1.75rem, 3.2vw, 2.55rem);
  font-weight: 800;
  color: #383d40;
  line-height: 1.3;
  margin-bottom: 0.85rem;
}

.section-divider {
  width: 72px;
  height: 4px;
  margin: 0 auto;
  border-radius: 4px;
  background: var(--emerald-gradient);
}

/* ==========================================================================
   Section 2: ABOUT US
   ========================================================================== */
.about-section {
  background: linear-gradient(180deg, #f5f2eb 0%, #ebe6db 100%);
}

.about-wrapper {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 3rem;
  align-items: center;
}

.about-content-card {
  background: var(--card-gradient);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  box-shadow: var(--shadow-card);
  position: relative;
  overflow: hidden;
}

.about-content-card::before {
  content: "";
  position: absolute;
  top: 0;
  inset-inline-start: 0;
  width: 4px;
  height: 100%;
  background: var(--emerald-gradient);
}

.about-lead {
  font-size: 1.16rem;
  font-weight: 600;
  color: #383d40;
  margin-bottom: 1.35rem;
  line-height: 1.85;
}

.about-body {
  font-size: 1.05rem;
  color: var(--text-secondary);
  margin-bottom: 2rem;
  line-height: 1.85;
}

/* Lifecycle Steps in About */
.lifecycle-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.9rem;
}

.lifecycle-step {
  background: rgba(245, 242, 235, 0.72);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1rem;
  text-align: center;
  transition: var(--transition);
}

.lifecycle-step:hover {
  border-color: var(--accent-primary);
  transform: translateY(-4px);
}

.lifecycle-num {
  display: inline-block;
  font-family: var(--font-en);
  font-size: 0.78rem;
  font-weight: 800;
  color: var(--accent-primary);
  background: rgba(232, 219, 186, 0.14);
  padding: 0.2rem 0.6rem;
  border-radius: 999px;
  margin-bottom: 0.45rem;
}

.lifecycle-step h4 {
  font-size: 0.95rem;
  color: #383d40;
}

.about-media {
  position: relative;
}

.about-image-box {
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border-strong);
  box-shadow: var(--shadow-card);
  position: relative;
}

.about-image-box img {
  width: 100%;
  height: 410px;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.about-image-box:hover img {
  transform: scale(1.04);
}

.about-floating-badge {
  position: absolute;
  bottom: 1.25rem;
  inset-inline-start: 1.25rem;
  inset-inline-end: 1.25rem;
  background: rgba(245, 242, 235, 0.9);
  backdrop-filter: blur(12px);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-md);
  padding: 1rem 1.25rem;
  display: flex;
  align-items: center;
  gap: 0.9rem;
}

.about-floating-badge .icon-circle {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: rgba(232, 219, 186, 0.16);
  color: var(--accent-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

/* ==========================================================================
   Section 3: VISION, MISSION & VALUES
   ========================================================================== */
.vmv-section {
  background: #f5f2eb;
}

.vm-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
  margin-bottom: 3.5rem;
}

.vm-card {
  background: var(--card-gradient);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 2.35rem;
  box-shadow: var(--shadow-card);
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.vm-card:hover {
  border-color: var(--accent-primary);
  transform: translateY(-6px);
  box-shadow: var(--shadow-card), var(--shadow-glow);
}

.vm-icon {
  width: 58px;
  height: 58px;
  border-radius: 14px;
  background: rgba(232, 219, 186, 0.14);
  border: 1px solid var(--border-strong);
  color: var(--accent-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.35rem;
}

.vm-card h3 {
  font-size: 1.45rem;
  font-weight: 800;
  color: #383d40;
  margin-bottom: 0.85rem;
}

.vm-card p {
  color: var(--text-secondary);
  font-size: 1.05rem;
  line-height: 1.85;
}

.values-subhead {
  text-align: center;
  font-size: 1.5rem;
  font-weight: 800;
  color: #383d40;
  margin-bottom: 2rem;
}

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

.value-card {
  background: rgba(235, 230, 219, 0.82);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1.75rem;
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.value-card:hover {
  border-color: var(--accent-primary);
  background: rgba(224, 219, 207, 0.95);
  transform: translateY(-5px);
  box-shadow: var(--shadow-glow);
}

.value-card-top {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.value-icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: rgba(232, 219, 186, 0.14);
  color: var(--accent-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: var(--transition);
}

.value-card:hover .value-icon {
  background: var(--accent-primary);
  color: #9e7838;
}

.value-card h4 {
  font-size: 1.15rem;
  font-weight: 700;
  color: #383d40;
}

.value-card p {
  font-size: 0.96rem;
  color: var(--text-secondary);
}

/* ==========================================================================
   Section 4: WHY CHOOSE US
   ========================================================================== */
.why-section {
  background: linear-gradient(180deg, #ebe6db 0%, #f5f2eb 100%);
}

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

.why-card {
  background: var(--card-gradient);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 2rem 1.75rem;
  position: relative;
  transition: var(--transition);
  overflow: hidden;
}

.why-card:hover {
  border-color: var(--accent-primary);
  transform: translateY(-6px);
  box-shadow: var(--shadow-card), var(--shadow-glow);
}

.why-num {
  position: absolute;
  top: 1rem;
  inset-inline-end: 1.25rem;
  font-family: var(--font-en);
  font-size: 2.2rem;
  font-weight: 900;
  color: rgba(158, 120, 56, 0.12);
  line-height: 1;
}

.why-icon {
  width: 50px;
  height: 50px;
  border-radius: 12px;
  background: rgba(232, 219, 186, 0.14);
  border: 1px solid var(--border-subtle);
  color: var(--accent-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.2rem;
}

.why-card h3 {
  font-size: 1.12rem;
  font-weight: 700;
  color: #383d40;
  line-height: 1.55;
}

/* ==========================================================================
   Section 5: OUR SERVICES
   ========================================================================== */
.services-section {
  background: #f5f2eb;
}

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

.service-card {
  background: var(--card-gradient);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 1.85rem 1.5rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: var(--transition);
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

.service-card::after {
  content: "";
  position: absolute;
  bottom: 0;
  inset-inline: 0;
  height: 3px;
  background: var(--emerald-gradient);
  transform: scaleX(0);
  transition: transform 0.35s ease;
}

.service-card:hover {
  border-color: var(--accent-primary);
  transform: translateY(-7px);
  box-shadow: var(--shadow-card), var(--shadow-glow);
}

.service-card:hover::after {
  transform: scaleX(1);
}

.service-icon-box {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  background: rgba(232, 219, 186, 0.13);
  border: 1px solid var(--border-strong);
  color: var(--accent-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
  transition: var(--transition);
}

.service-card:hover .service-icon-box {
  background: var(--accent-primary);
  color: #9e7838;
  transform: rotate(-4deg) scale(1.06);
}

.service-title-en {
  font-family: var(--font-en);
  font-size: 0.84rem;
  font-weight: 700;
  color: var(--accent-primary);
  margin-bottom: 0.35rem;
  letter-spacing: 0.02em;
}

.service-card h3 {
  font-size: 1.18rem;
  font-weight: 800;
  color: #383d40;
  margin-bottom: 0.75rem;
}

.service-card p {
  font-size: 0.92rem;
  color: var(--text-secondary);
  margin-bottom: 1.25rem;
  line-height: 1.65;
}

.service-more {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.86rem;
  font-weight: 700;
  color: var(--accent-primary);
}

/* ==========================================================================
   Section 6: OUR PROJECTS (Interactive Gallery & Details)
   ========================================================================== */
.projects-section {
  background: linear-gradient(180deg, #ebe6db 0%, #f5f2eb 100%);
}

.projects-showcase {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2.25rem;
}

.project-card {
  background: var(--card-gradient);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  transition: var(--transition);
  display: flex;
  flex-direction: column;
}

.project-card:hover {
  border-color: var(--accent-primary);
  transform: translateY(-8px);
  box-shadow: 0 24px 50px rgba(76, 74, 66, 0.65), var(--shadow-glow);
}

.project-cover {
  position: relative;
  height: 310px;
  overflow: hidden;
  cursor: pointer;
}

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

.project-card:hover .project-cover img {
  transform: scale(1.06);
}

.project-cover-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(245, 242, 235, 0.15) 0%, rgba(245, 242, 235, 0.85) 100%);
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  padding: 1.35rem;
}

.project-badge {
  background: rgba(245, 242, 235, 0.88);
  border: 1px solid var(--border-strong);
  color: var(--accent-primary);
  padding: 0.38rem 0.9rem;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 700;
}

.project-photos-count {
  background: var(--accent-primary);
  color: #9e7838;
  padding: 0.35rem 0.85rem;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.project-body {
  padding: 2rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.project-title-en {
  font-family: var(--font-en);
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--accent-primary);
  margin-bottom: 0.3rem;
}

.project-body h3 {
  font-size: 1.45rem;
  font-weight: 800;
  color: #383d40;
  margin-bottom: 0.85rem;
}

.project-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 1rem;
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.project-meta-item {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: rgba(252, 251, 247, 0.04);
  padding: 0.35rem 0.8rem;
  border-radius: 8px;
  border: 1px solid rgba(201, 199, 189, 0.08);
}

.project-meta-item svg {
  color: var(--accent-primary);
  width: 16px;
  height: 16px;
}

.project-scope {
  color: var(--text-secondary);
  font-size: 0.98rem;
  margin-bottom: 1.35rem;
  line-height: 1.75;
}

/* Thumbnail Strip inside Project Card */
.project-thumbs {
  display: flex;
  gap: 0.6rem;
  margin-bottom: 1.5rem;
  overflow-x: auto;
  padding-bottom: 0.25rem;
}

.project-thumb {
  width: 68px;
  height: 52px;
  border-radius: 8px;
  overflow: hidden;
  border: 2px solid transparent;
  cursor: pointer;
  flex-shrink: 0;
  transition: var(--transition);
}

.project-thumb:hover {
  border-color: var(--accent-primary);
  transform: scale(1.05);
}

.project-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Stakeholder Logos Mini-Strip on Project Card */
.project-stakeholders {
  margin-top: auto;
  padding-top: 1.25rem;
  border-top: 1px solid var(--border-subtle);
}

.stakeholders-label {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--text-muted);
  margin-bottom: 0.75rem;
  display: block;
}

.stakeholder-logos {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  align-items: center;
  margin-bottom: 1.4rem;
}

.stakeholder-pill {
  background: #fcfbf7;
  border-radius: 8px;
  padding: 0.35rem 0.65rem;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 8px rgba(76, 74, 66, 0.25);
}

.stakeholder-pill.dark-logo-bg {
  background: #ebe6db;
  border: 1px solid var(--border-strong);
}

.stakeholder-pill img {
  max-height: 28px;
  max-width: 82px;
  width: auto;
  height: auto;
  object-fit: contain;
}

.project-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.project-actions .btn {
  padding: 0.68rem 1.15rem;
  font-size: 0.88rem;
}

/* ==========================================================================
   Modal / Lightbox for Projects & Services
   ========================================================================== */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(245, 242, 235, 0.9);
  backdrop-filter: blur(12px);
  z-index: 2000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
  overflow-y: auto;
}

.modal-backdrop.open {
  display: flex;
  animation: fadeIn 0.25s ease;
}

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

.modal-dialog {
  background: #ebe6db;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-lg);
  width: 100%;
  max-width: 960px;
  max-height: 92vh;
  overflow-y: auto;
  position: relative;
  box-shadow: 0 25px 70px rgba(76, 74, 66, 0.85);
}

.modal-close {
  position: sticky;
  top: 1rem;
  float: inline-end;
  margin: 1rem;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: rgba(245, 242, 235, 0.9);
  border: 1px solid var(--border-strong);
  color: #383d40;
  font-size: 1.35rem;
  cursor: pointer;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}

.modal-close:hover {
  background: var(--accent-primary);
  color: #9e7838;
}

.modal-content {
  padding: 2rem;
  clear: both;
}

/* Lightbox Viewer inside Modal */
.lightbox-stage {
  position: relative;
  background: #f5f2eb;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-subtle);
  overflow: hidden;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 360px;
  max-height: 520px;
}

.lightbox-stage img {
  max-height: 500px;
  width: auto;
  max-width: 100%;
  object-fit: contain;
}

.lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(245, 242, 235, 0.85);
  border: 1px solid var(--border-strong);
  color: #383d40;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  transition: var(--transition);
}

.lightbox-nav:hover {
  background: var(--accent-primary);
  color: #9e7838;
}

.lightbox-prev { inset-inline-start: 1rem; }
.lightbox-next { inset-inline-end: 1rem; }

.lightbox-thumbs-row {
  display: flex;
  gap: 0.65rem;
  overflow-x: auto;
  padding: 0.5rem 0 1.25rem;
}

.lightbox-thumb-btn {
  width: 84px;
  height: 62px;
  border-radius: 8px;
  overflow: hidden;
  border: 2px solid transparent;
  cursor: pointer;
  opacity: 0.6;
  transition: var(--transition);
  flex-shrink: 0;
  background: #f5f2eb;
}

.lightbox-thumb-btn.active,
.lightbox-thumb-btn:hover {
  opacity: 1;
  border-color: var(--accent-primary);
}

.lightbox-thumb-btn img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ==========================================================================
   Section 7: OUR CLIENTS & PARTNERS
   ========================================================================== */
.clients-section {
  background: #f5f2eb;
}

.logos-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(195px, 1fr));
  gap: 1.5rem;
  align-items: stretch;
}

.logo-card {
  background: #fcfbf7;
  border-radius: var(--radius-md);
  padding: 1.35rem 1.25rem;
  height: 132px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  border: 2px solid transparent;
  box-shadow: 0 8px 24px rgba(76, 74, 66, 0.35);
  transition: var(--transition);
  position: relative;
}

/* Affordable House logo has white typography with transparent background */
.logo-card.dark-surface {
  background: linear-gradient(145deg, #ebe6db, #ebe6db);
  border-color: var(--border-strong);
}

.logo-card:hover {
  transform: translateY(-6px) scale(1.02);
  border-color: var(--accent-primary);
  box-shadow: 0 14px 32px rgba(76, 74, 66, 0.5), var(--shadow-glow);
}

.logo-card img {
  max-height: 68px;
  max-width: 155px;
  width: auto;
  height: auto;
  object-fit: contain;
  transition: transform 0.35s ease;
}

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

.logo-caption {
  font-size: 0.76rem;
  font-weight: 700;
  color: #616666;
  text-align: center;
  line-height: 1.25;
}

.logo-card.dark-surface .logo-caption {
  color: #383d40;
}

/* ==========================================================================
   Section 8: TO OUR VALUED CLIENTS
   ========================================================================== */
.valued-clients-section {
  background: 
    linear-gradient(135deg, rgba(194, 189, 176, 0.94), rgba(194, 189, 176, 0.96)),
    url('../images/background.jpg') center/cover fixed;
  border-block: 1px solid var(--border-subtle);
}

.valued-box {
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
  background: rgba(235, 230, 219, 0.75);
  backdrop-filter: blur(14px);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-lg);
  padding: 3.25rem 2.25rem;
  box-shadow: var(--shadow-card), var(--shadow-glow);
}

.quote-mark {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: rgba(232, 219, 186, 0.14);
  color: var(--accent-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
}

.valued-text {
  font-size: 1.25rem;
  font-weight: 600;
  color: #383d40;
  line-height: 1.9;
  margin-bottom: 1.25rem;
}

.valued-slogan {
  margin-top: 1.75rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border-subtle);
  font-family: var(--font-en);
  font-size: clamp(1.1rem, 2.2vw, 1.45rem);
  font-weight: 800;
  color: var(--accent-primary);
  letter-spacing: 0.03em;
}

/* ==========================================================================
   Section 9 & 11: CONTACT US & REQUEST A QUOTE
   ========================================================================== */
.contact-quote-section {
  background: #f5f2eb;
}

.contact-quote-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 2.5rem;
  align-items: start;
}

.offices-stack {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.office-card {
  background: var(--card-gradient);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 2rem;
  box-shadow: var(--shadow-card);
  transition: var(--transition);
}

.office-card:hover {
  border-color: var(--accent-primary);
}

.office-header {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  margin-bottom: 1.25rem;
  padding-bottom: 0.9rem;
  border-bottom: 1px solid var(--border-subtle);
}

.office-flag {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: rgba(232, 219, 186, 0.15);
  color: var(--accent-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-family: var(--font-en);
}

.office-header h3 {
  font-size: 1.25rem;
  font-weight: 800;
  color: #383d40;
}

.office-list {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.office-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  color: var(--text-secondary);
  font-size: 0.96rem;
}

.office-list li svg {
  color: var(--accent-primary);
  width: 19px;
  height: 19px;
  margin-top: 0.25rem;
  flex-shrink: 0;
}

.office-list a:hover {
  color: var(--accent-primary);
}

.ltr-num {
  direction: ltr;
  unicode-bidi: embed;
  display: inline-block;
}

/* Quote Form Card */
.quote-card {
  background: var(--card-gradient);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-lg);
  padding: 2.35rem;
  box-shadow: var(--shadow-card), var(--shadow-glow);
}

.quote-card h3 {
  font-size: 1.5rem;
  font-weight: 800;
  color: #383d40;
  margin-bottom: 0.45rem;
}

.quote-card > p {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-bottom: 1.75rem;
}

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

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.form-group.full-width {
  grid-column: 1 / -1;
}

.form-group label {
  font-size: 0.9rem;
  font-weight: 700;
  color: #383d40;
}

.form-control {
  width: 100%;
  padding: 0.82rem 1rem;
  border-radius: var(--radius-sm);
  background: rgba(245, 242, 235, 0.85);
  border: 1px solid var(--border-subtle);
  color: #383d40;
  font-family: inherit;
  font-size: 0.96rem;
  transition: var(--transition);
}

.form-control:focus {
  outline: none;
  border-color: var(--accent-primary);
  box-shadow: 0 0 0 3px rgba(166, 133, 71, 0.18);
}

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

.quote-actions {
  margin-top: 1.5rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
}

.quote-actions .btn {
  flex: 1;
  min-width: 200px;
}

.form-notice {
  margin-top: 1.15rem;
  padding: 0.95rem 1.1rem;
  border-radius: var(--radius-sm);
  background: rgba(232, 219, 186, 0.1);
  border: 1px solid var(--border-strong);
  color: #9e7838;
  font-size: 0.9rem;
  display: none;
  line-height: 1.65;
}

.form-notice.visible {
  display: block;
}

/* ==========================================================================
   Section 10: FLOATING WHATSAPP BUTTON
   ========================================================================== */
.whatsapp-float {
  position: fixed;
  bottom: 1.75rem;
  inset-inline-end: 1.75rem;
  z-index: 1050;
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  background: linear-gradient(135deg, #e8dbba 0%, #e8dbba 100%);
  color: #383d40;
  padding: 0.85rem 1.25rem;
  border-radius: 999px;
  font-weight: 800;
  font-size: 0.92rem;
  box-shadow: 0 10px 28px rgba(166, 133, 71, 0.45);
  animation: whatsappPulse 2.4s infinite;
}

.whatsapp-float:hover {
  transform: translateY(-4px) scale(1.04);
  box-shadow: 0 14px 35px rgba(166, 133, 71, 0.65);
}

.whatsapp-float svg {
  width: 26px;
  height: 26px;
  fill: currentColor;
  flex-shrink: 0;
}

@keyframes whatsappPulse {
  0% { box-shadow: 0 0 0 0 rgba(178, 148, 87, 0.65); }
  70% { box-shadow: 0 0 0 15px rgba(178, 148, 87, 0); }
  100% { box-shadow: 0 0 0 0 rgba(178, 148, 87, 0); }
}

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer {
  background: #f5f2eb;
  border-top: 1px solid var(--border-subtle);
  padding: 3.5rem 0 2rem;
  position: relative;
  z-index: 1;
}

.footer-top {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 2.5rem;
  padding-bottom: 2.5rem;
  border-bottom: 1px solid rgba(201, 199, 189, 0.08);
}

.footer-brand p {
  color: var(--text-muted);
  margin-top: 1rem;
  max-width: 400px;
  font-size: 0.95rem;
}

.footer-col h4 {
  color: #383d40;
  font-size: 1.05rem;
  font-weight: 800;
  margin-bottom: 1rem;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.footer-links a {
  color: var(--text-muted);
  font-size: 0.92rem;
}

.footer-links a:hover {
  color: var(--accent-primary);
}

.footer-bottom {
  padding-top: 1.5rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  color: var(--text-muted);
  font-size: 0.88rem;
}

/* ==========================================================================
   Scroll Reveal Animations
   ========================================================================== */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1), transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ==========================================================================
   Responsive Design
   ========================================================================== */
@media (max-width: 1120px) {
  .nav-menu {
    display: none;
    position: fixed;
    top: var(--nav-height);
    inset-inline: 0;
    background: rgba(245, 242, 235, 0.98);
    flex-direction: column;
    padding: 1.5rem;
    border-bottom: 1px solid var(--border-strong);
    gap: 0.9rem;
  }

  .nav-menu.open {
    display: flex;
  }

  .mobile-menu-btn {
    display: inline-flex;
  }

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

@media (max-width: 920px) {
  .hero-grid,
  .about-wrapper,
  .vm-grid,
  .projects-showcase,
  .contact-quote-grid,
  .footer-top {
    grid-template-columns: 1fr;
  }

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

@media (max-width: 600px) {
  section {
    padding: 4.25rem 0;
  }

  .values-grid,
  .why-grid,
  .services-grid,
  .form-grid,
  .lifecycle-steps {
    grid-template-columns: 1fr;
  }

  .nav-quote-btn {
    display: none;
  }

  .whatsapp-float span {
    display: none;
  }

  .whatsapp-float {
    padding: 0.9rem;
  }
}


