/* ============================================================
   IWAN Salama — Premium Corporate Theme
   Inspired by: Emaar, DAMAC, Aldar Properties
   ============================================================ */

/* ─── Google Fonts Import ────────────────────────────────── */
@import url('https://fonts.googleapis.com/css2?family=Cairo:wght@300;400;500;600;700;800;900&family=Inter:wght@300;400;500;600;700&display=swap');

/* ─── CSS Variables ──────────────────────────────────────── */
:root {
  --white: #FFFFFF;
  --off-white: #F7F5F2;
  --light-gray: #E8E6E3;
  --mid-gray: #9A9893;
  --text-gray: #6B6B6B;
  --dark: #0D1B2A;
  --dark-light: #1B2838;
  --dark-mid: #142230;
  --charcoal: #1A1A1A;
  --gold: #C5A55A;
  --gold-dark: #A88B3D;
  --gold-light: #D4BC7E;
  --gold-muted: rgba(197, 165, 90, 0.12);

  --font-ar: 'Cairo', sans-serif;
  --font-en: 'Inter', sans-serif;

  --container: 1240px;
  --gap: 2rem;
  --radius: 6px;
  --radius-lg: 12px;

  --transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
  --shadow-sm: 0 2px 12px rgba(0,0,0,0.06);
  --shadow-md: 0 8px 30px rgba(0,0,0,0.1);
  --shadow-lg: 0 16px 50px rgba(0,0,0,0.15);
  --shadow-gold: 0 8px 30px rgba(197, 165, 90, 0.2);
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-ar);
  color: var(--charcoal);
  background: var(--white);
  direction: rtl;
  line-height: 1.8;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

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

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

ul { list-style: none; }

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 2rem;
}

/* ─── Typography ─────────────────────────────────────────── */
h1, h2, h3, h4 {
  font-weight: 700;
  line-height: 1.25;
  color: var(--dark);
}

h1 { font-size: clamp(2.2rem, 5vw, 3.8rem); font-weight: 800; }
h2 { font-size: clamp(1.7rem, 3.5vw, 2.6rem); }
h3 { font-size: clamp(1.2rem, 2.5vw, 1.5rem); }
h4 { font-size: 1.1rem; }

p {
  color: var(--text-gray);
  font-weight: 400;
  line-height: 1.9;
}

.section-label {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--gold);
  letter-spacing: 0;
  text-transform: uppercase;
  margin-bottom: 0.75rem;
  display: block;
}

.section-title {
  margin-bottom: 1rem;
}

.section-subtitle {
  max-width: 640px;
  font-size: 1.05rem;
  color: var(--text-gray);
  line-height: 1.9;
}

.text-center { text-align: center; }
.text-center .section-subtitle { margin: 0 auto; }

/* ─── Buttons ────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 1rem 2.25rem;
  font-family: var(--font-ar);
  font-size: 0.95rem;
  font-weight: 600;
  border: none;
  border-radius: var(--radius);
  cursor: pointer;
  transition: var(--transition);
  letter-spacing: 0;
}

.btn-primary {
  background: var(--gold);
  color: var(--white);
}
.btn-primary:hover {
  background: var(--gold-dark);
  transform: translateY(-2px);
  box-shadow: var(--shadow-gold);
}

.btn-outline {
  background: transparent;
  color: var(--dark);
  border: 2px solid var(--dark);
}
.btn-outline:hover {
  background: var(--dark);
  color: var(--white);
  transform: translateY(-2px);
}

.btn-whatsapp {
  background: #25D366;
  color: var(--white);
  padding: 1rem 2.5rem;
  font-size: 1rem;
  border-radius: var(--radius);
}
.btn-whatsapp:hover {
  background: #1FAD54;
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn-gold-outline {
  background: transparent;
  color: var(--gold);
  border: 2px solid var(--gold);
}
.btn-gold-outline:hover {
  background: var(--gold);
  color: var(--white);
  box-shadow: var(--shadow-gold);
}

/* ─── Header / Navigation ────────────────────────────────── */
.header {
  position: fixed;
  top: 0;
  right: 0;
  left: 0;
  z-index: 1000;
  background: transparent;
  transition: background 0.5s ease, box-shadow 0.5s ease;
}

.header.scrolled {
  background: rgba(13, 27, 42, 0.97);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 2px 20px rgba(0,0,0,0.3);
  border-bottom: 1px solid rgba(197,165,90,0.25);
}

.header .container {
  display: flex;
  align-items: center;
  height: 100px;
}

.header-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.header-logo img {
  height: 70px;
  width: auto;
  filter: brightness(0) invert(1);
  transition: var(--transition);
}

.header-logo .logo-text {
  display: flex;
  flex-direction: column;
}

.header-logo .logo-text .name {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--white);
  line-height: 1.2;
}

.header-logo .logo-text .tagline {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.6);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2.25rem;
  margin-right: auto;
}

.nav-links a {
  font-size: 0.9rem;
  font-weight: 500;
  color: rgba(255,255,255,0.75);
  position: relative;
  padding: 0.25rem 0;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  right: 0;
  width: 0;
  height: 2px;
  background: var(--gold);
  transition: var(--transition);
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--white);
}

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

/* Mobile Menu */
.mobile-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  cursor: pointer;
  /* مساحة ضغط كافية للموبايل — 44×44px minimum */
  padding: 10px 8px;
  min-width: 44px;
  min-height: 44px;
  background: none;
  border: none;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}

.mobile-toggle span {
  display: block;
  width: 26px;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: transform 0.3s ease, opacity 0.3s ease, width 0.3s ease;
  transform-origin: center;
}

/* X animation عند فتح القائمة */
.mobile-toggle.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.mobile-toggle.active span:nth-child(2) { opacity: 0; width: 0; }
.mobile-toggle.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Overlay خلف القائمة */
.mobile-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.6);
  z-index: 1098;
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
}
.mobile-overlay.active { display: block; }

.mobile-menu {
  position: fixed;
  top: 0;
  right: 0;
  width: min(85vw, 320px);
  height: 100dvh; /* dynamic viewport height — يحترم شريط العنوان في الموبايل */
  background: var(--dark);
  padding: 100px 2rem 2rem;
  z-index: 1099;
  display: flex;
  flex-direction: column;
  gap: 0;
  transform: translateX(100%);
  transition: transform 0.35s cubic-bezier(0.4,0,0.2,1);
  overflow-y: auto;
  box-shadow: -8px 0 32px rgba(0,0,0,0.4);
  border-left: 1px solid rgba(197,165,90,0.15);
}

.mobile-menu.active {
  transform: translateX(0);
}

.mobile-menu a {
  font-size: 1.1rem;
  font-weight: 600;
  color: rgba(255,255,255,0.75);
  padding: 1rem 0;
  border-bottom: 1px solid rgba(255,255,255,0.07);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  transition: color 0.2s, padding-right 0.2s;
  /* مساحة ضغط مريحة */
  min-height: 48px;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}

.mobile-menu a:hover,
.mobile-menu a.active {
  color: var(--gold);
  padding-right: 0.5rem;
}

/* ─── Hero Section ───────────────────────────────────────── */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background-size: cover;
  background-position: center;
  background-color: var(--dark);
  overflow: hidden;
}

/* Deep navy overlay */
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(5, 14, 26, 0.93) 0%,
    rgba(13, 27, 42, 0.75) 50%,
    rgba(5, 14, 26, 0.93) 100%
  );
  z-index: 1;
  opacity: var(--hero-overlay-opacity, 1);
}

/* Gold bottom bar — luxury separator */
.hero::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg,
    transparent 0%,
    var(--gold) 25%,
    var(--gold-light) 50%,
    var(--gold) 75%,
    transparent 100%
  );
  z-index: 10;
}

/* Animated diagonal gold beam */
.hero-beam {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  overflow: hidden;
}
.hero-beam::before {
  content: '';
  position: absolute;
  top: -300px;
  left: -200px;
  width: 700px;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(197,165,90,0.3), transparent);
  transform: rotate(35deg);
  animation: beamSlide 7s ease-in-out infinite;
}
.hero-beam::after {
  content: '';
  position: absolute;
  bottom: 80px;
  right: -200px;
  width: 500px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(197,165,90,0.2), transparent);
  transform: rotate(-20deg);
  animation: beamSlide 9s ease-in-out infinite reverse;
}
@keyframes beamSlide {
  0%   { opacity: 0; transform: rotate(35deg) translateX(-150px); }
  30%  { opacity: 1; }
  70%  { opacity: 1; }
  100% { opacity: 0; transform: rotate(35deg) translateX(400px); }
}

/* Corner gold ornaments */
.hero-corner { position: absolute; z-index: 5; pointer-events: none; }
.hero-corner-tl {
  top: 110px;
  right: 3rem;
  width: 70px;
  height: 70px;
  border-top: 2px solid rgba(197,165,90,0.55);
  border-right: 2px solid rgba(197,165,90,0.55);
}
.hero-corner-br {
  bottom: 20px;
  left: 3rem;
  width: 70px;
  height: 70px;
  border-bottom: 2px solid rgba(197,165,90,0.55);
  border-left: 2px solid rgba(197,165,90,0.55);
}

/* Floating gold dots */
.hero-dot {
  position: absolute;
  z-index: 1;
  pointer-events: none;
  border-radius: 50%;
  background: var(--gold);
  opacity: 0.15;
  animation: floatDot 6s ease-in-out infinite;
}
.hero-dot:nth-child(1) { width: 6px; height: 6px; top: 20%; right: 15%; animation-delay: 0s; }
.hero-dot:nth-child(2) { width: 4px; height: 4px; top: 60%; right: 8%;  animation-delay: 2s; }
.hero-dot:nth-child(3) { width: 5px; height: 5px; top: 35%; left: 12%; animation-delay: 4s; }
@keyframes floatDot {
  0%, 100% { transform: translateY(0px); opacity: 0.15; }
  50%       { transform: translateY(-15px); opacity: 0.35; }
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 920px;
  padding: 2rem 2rem 5rem;
  margin-top: 8vh;
}

/* Gold eyebrow label */
.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
  color: var(--gold);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0;
  margin-bottom: 1.5rem;
  opacity: 0.9;
}
.hero-eyebrow::before,
.hero-eyebrow::after {
  content: '';
  display: inline-block;
  width: 36px;
  height: 1px;
  background: var(--gold);
  opacity: 0.65;
}

.hero-content h1 {
  color: var(--white);
  font-family: 'Cairo', sans-serif;
  font-size: 1.8rem;
  font-weight: 900;
  margin-bottom: 0.6rem;
  line-height: 1.35;
  letter-spacing: -0.5px;
  text-shadow: 0 4px 40px rgba(0,0,0,0.6);
  white-space: pre-line;
}

.hero-gold { color: var(--gold); }

/* Gold divider with center diamond */
.hero-divider {
  width: 90px;
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--gold), var(--gold-light), var(--gold), transparent);
  margin: 1.4rem auto 1.8rem;
  border-radius: 2px;
  position: relative;
}
.hero-divider::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) rotate(45deg);
  width: 7px;
  height: 7px;
  background: var(--gold-light);
  box-shadow: 0 0 14px rgba(197,165,90,0.9);
}

.hero-content p {
  color: rgba(255,255,255,0.78);
  font-size: clamp(1rem, 2vw, 1.2rem);
  max-width: 620px;
  margin: 0 auto 2.8rem;
  line-height: 2;
}

.hero-buttons {
  display: flex;
  gap: 1.2rem;
  justify-content: center;
  flex-wrap: wrap;
}

.hero-buttons .btn-primary {
  background: linear-gradient(135deg, var(--gold) 0%, var(--gold-dark) 100%);
  padding: 0.45rem 1rem;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  box-shadow: 0 8px 28px rgba(197,165,90,0.45);
  border: none;
  transition: var(--transition);
}
.hero-buttons .btn-primary:hover {
  background: linear-gradient(135deg, var(--gold-light) 0%, var(--gold) 100%);
  box-shadow: 0 14px 40px rgba(197,165,90,0.6);
  transform: translateY(-3px);
}

.hero-buttons .btn-outline {
  color: var(--white);
  border: 1.5px solid rgba(255,255,255,0.4);
  padding: 0.45rem 1rem;
  font-size: 0.75rem;
  font-weight: 600;
  backdrop-filter: blur(6px);
  background: rgba(255,255,255,0.05);
}
.hero-buttons .btn-outline:hover {
  background: rgba(197,165,90,0.12);
  border-color: var(--gold);
  color: var(--gold);
  transform: translateY(-2px);
}

/* Hero scroll indicator */
.hero-scroll {
  position: absolute;
  bottom: 2.5rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  color: rgba(255,255,255,0.4);
  font-size: 0.75rem;
  letter-spacing: 1px;
}

.hero-scroll .scroll-line {
  width: 1px;
  height: 50px;
  background: rgba(255,255,255,0.15);
  position: relative;
  overflow: hidden;
}

.hero-scroll .scroll-line::after {
  content: '';
  position: absolute;
  top: -100%;
  width: 100%;
  height: 50%;
  background: var(--gold);
  animation: scrollDown 2.5s infinite;
}

@keyframes scrollDown {
  0% { top: -50%; }
  100% { top: 100%; }
}

/* ─── Sections General ───────────────────────────────────── */
section {
  padding: 5rem 0;
}

/* ─── Investment Page Hero ───────────────────────────────── */
.inv-hero {
  min-height: 72vh;
}
.inv-hero .hero-content {
  text-align: center;
}
.inv-hero .hero-content h1 {
  font-family: 'Cairo', sans-serif;
  font-size: clamp(2rem, 5vw, 3.2rem);
  font-weight: 900;
  color: var(--white);
  margin-bottom: 1rem;
  line-height: 1.35;
  letter-spacing: 0;
}
.inv-hero .hero-content p {
  font-size: 1rem;
  line-height: 1.9;
  color: rgba(255,255,255,0.8);
  max-width: 680px;
  margin: 0 auto 2rem;
}
@media (max-width: 768px) {
  .inv-hero { min-height: 60vh; }
  .inv-hero .hero-content h1 { font-size: clamp(1.6rem, 6vw, 2.2rem); }
}

.section-alt {
  background: var(--off-white);
}

/* Dark section variant (for Investment / Stats) */
.section-dark {
  background: var(--dark);
}

.section-dark .section-label {
  color: var(--gold-light);
  position: relative;
  padding-bottom: 0.4rem;
}
.section-dark .section-label::after {
  content: '';
  position: absolute;
  bottom: 0;
  right: 50%;
  transform: translateX(50%);
  width: 30px;
  height: 1px;
  background: var(--gold);
  opacity: 0.6;
}

.section-dark .section-title,
.section-dark h2 {
  color: var(--white);
}

.section-dark .section-subtitle,
.section-dark p {
  color: rgba(255,255,255,0.62);
}

/* ─── Why Invest Cards ───────────────────────────────────── */
.invest-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  margin-top: 3rem;
}

.invest-card {
  display: flex;
  gap: 1.25rem;
  padding: 2rem;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--radius-lg);
  transition: var(--transition);
}

.invest-card:hover {
  background: rgba(255,255,255,0.08);
  border-color: var(--gold);
  transform: translateY(-3px);
}

.invest-card .invest-icon {
  flex-shrink: 0;
  width: 52px;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--gold-muted);
  border-radius: var(--radius);
  color: var(--gold);
  font-size: 1.2rem;
}

.invest-card h4 {
  color: var(--white);
  margin-bottom: 0.4rem;
}

.invest-card p {
  color: rgba(255,255,255,0.55);
  font-size: 0.9rem;
  line-height: 1.7;
}

/* ─── Stats Bar ──────────────────────────────────────────── */
.stats-section {
  background: var(--dark);
  padding: 4.5rem 0;
  border-top: 1px solid rgba(197, 165, 90, 0.2);
  border-bottom: 1px solid rgba(197, 165, 90, 0.2);
}

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

.stat-item {
  position: relative;
}

.stat-item:not(:last-child)::after {
  content: '';
  position: absolute;
  left: 0;
  top: 10%;
  height: 80%;
  width: 1px;
  background: linear-gradient(180deg, transparent, rgba(197,165,90,0.5), transparent);
}

.stat-item .stat-number {
  font-size: clamp(2.2rem, 4vw, 3.2rem);
  font-weight: 900;
  color: var(--gold);
  line-height: 1;
  margin-bottom: 0.5rem;
  display: block;
}

.stat-item .stat-label {
  color: rgba(255,255,255,0.55);
  font-size: 0.85rem;
  font-weight: 400;
}

/* ─── Projects Grid ──────────────────────────────────────── */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.project-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  cursor: pointer;
  border: 1px solid var(--light-gray);
}

.project-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: var(--gold-light);
}

.project-card .card-image {
  width: 100%;
  height: 260px;
  overflow: hidden;
  position: relative;
}

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

.project-card:hover .card-image img {
  transform: scale(1.08);
}

.project-card .card-status {
  position: absolute;
  top: 1rem;
  right: 1rem;
  padding: 0.5rem 1.25rem;
  border-radius: var(--radius);
  font-size: 0.9rem;
  font-weight: 700;
  z-index: 2;
  letter-spacing: 0.5px;
}

.card-status.ongoing { background: var(--gold); color: var(--white); }
.card-status.upcoming { background: var(--dark); color: var(--white); }
.card-status.completed { background: #2E7D32; color: var(--white); }

.project-card .card-body {
  padding: 1.75rem;
}

.project-card .card-body h3 {
  margin-bottom: 0.6rem;
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--dark);
  line-height: 1.3;
}

.project-card .card-body p {
  font-size: 1rem;
  line-height: 1.75;
  color: #3A3A3A;
  margin: 0;
}

.project-card .card-meta {
  display: flex;
  gap: 1.5rem;
  margin-top: 1rem;
  font-size: 1rem;
  color: var(--dark);
  font-weight: 600;
}

.project-card .card-meta span {
  display: flex;
  align-items: center;
  gap: 0.3rem;
}

/* Project Filter */
.project-filters {
  display: flex;
  gap: 1rem;
  margin-top: 2rem;
  flex-wrap: wrap;
}

.filter-btn {
  padding: 0.7rem 1.85rem;
  border: 2px solid var(--light-gray);
  border-radius: var(--radius);
  background: transparent;
  font-family: var(--font-ar);
  font-size: 1rem;
  font-weight: 700;
  color: var(--dark);
  cursor: pointer;
  transition: var(--transition);
}

.filter-btn.active,
.filter-btn:hover {
  border-color: var(--gold);
  color: var(--gold);
  background: var(--gold-muted);
}

/* ─── Concept / How We Work ──────────────────────────────── */
.concept-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  margin-top: 3rem;
}

.concept-card {
  text-align: center;
  padding: 2.5rem 1.5rem;
  background: var(--white);
  border-radius: var(--radius-lg);
  border: 1px solid var(--light-gray);
  transition: var(--transition);
  position: relative;
}

.concept-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
  border-color: var(--gold-light);
}

.concept-card .card-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 1.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--gold-muted);
  border-radius: 50%;
  color: var(--gold);
  font-size: 1.5rem;
}

.concept-card h4 {
  margin-bottom: 0.75rem;
  font-size: 1.05rem;
}

.concept-card p {
  font-size: 0.9rem;
  line-height: 1.7;
}

.concept-card .step-number {
  position: absolute;
  top: -14px;
  right: -14px;
  width: 38px;
  height: 38px;
  background: var(--gold);
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 0.9rem;
  box-shadow: 0 4px 12px rgba(197, 165, 90, 0.4);
}

/* ─── Services Grid ──────────────────────────────────────── */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 3rem;
}

.service-card {
  padding: 2.5rem 2rem;
  background: var(--white);
  border-radius: var(--radius-lg);
  border: 1px solid var(--light-gray);
  transition: var(--transition);
}

.service-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
  border-color: var(--gold-light);
}

.service-card .service-icon {
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--dark);
  border-radius: var(--radius);
  color: var(--gold);
  font-size: 1.4rem;
  margin-bottom: 1.25rem;
}

.service-card h3 {
  font-size: 1.1rem;
  margin-bottom: 0.75rem;
}

.service-card p {
  font-size: 0.9rem;
  line-height: 1.8;
}

/* ─── Project Detail Page ────────────────────────────────── */
.project-hero {
  position: relative;
  height: 60vh;
  min-height: 400px;
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: flex-end;
}

.project-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(13,27,42,0.85) 0%, transparent 60%);
}

.project-detail-content {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 3rem;
  padding: 2.5rem 2rem;
  max-width: var(--container);
  margin: 0 auto;
}

.project-detail-content .main-content {
  line-height: 1.9;
}

.project-detail-content .main-content p {
  font-size: 1rem;
  color: var(--text-gray);
  margin-bottom: 1.25rem;
}

.project-detail-content .main-content h2 {
  font-size: 1.4rem;
  margin-bottom: 1rem;
  margin-top: 2.5rem;
}

.project-detail-content .main-content h2:first-child {
  margin-top: 0;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-top: 1rem;
}

.gallery-grid img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: var(--radius);
  cursor: pointer;
  transition: var(--transition);
}

.gallery-grid img:hover {
  transform: scale(1.03);
  box-shadow: var(--shadow-md);
}

.project-sidebar {
  position: sticky;
  top: 120px;
  align-self: start;
}

.sidebar-card {
  background: var(--off-white);
  border-radius: var(--radius-lg);
  padding: 2rem;
  margin-bottom: 1.5rem;
  border: 1px solid var(--light-gray);
}

.sidebar-card h4 {
  margin-bottom: 1rem;
  color: var(--dark);
}

.sidebar-card ul li {
  padding: 0.6rem 0;
  border-bottom: 1px solid var(--light-gray);
  font-size: 0.9rem;
  color: var(--text-gray);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.sidebar-card ul li:last-child {
  border-bottom: none;
}

/* ─── Investment Process Timeline ────────────────────────── */
.timeline {
  position: relative;
  max-width: 700px;
  margin: 3rem auto 0;
}

.timeline::before {
  content: '';
  position: absolute;
  top: 0;
  right: 24px;
  width: 2px;
  height: 100%;
  background: rgba(255,255,255,0.1);
}

.timeline-item {
  position: relative;
  padding: 0 4rem 3rem 0;
}

.timeline-item:last-child {
  padding-bottom: 0;
}

.timeline-item .timeline-dot {
  position: absolute;
  right: 12px;
  top: 0;
  width: 26px;
  height: 26px;
  background: var(--gold);
  border: 4px solid var(--dark);
  border-radius: 50%;
  box-shadow: 0 0 0 4px rgba(197, 165, 90, 0.3);
  z-index: 2;
}

.timeline-item .timeline-step {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--gold-light);
  margin-bottom: 0.25rem;
}

.timeline-item h3 {
  font-size: 1.15rem;
  margin-bottom: 0.5rem;
  color: var(--white);
}

.timeline-item p {
  font-size: 0.9rem;
  line-height: 1.8;
  color: rgba(255,255,255,0.55);
}

/* ─── FAQ Accordion ──────────────────────────────────────── */
.faq-list {
  max-width: 700px;
  margin: 3rem auto 0;
}

.faq-item {
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.25rem 0;
  cursor: pointer;
  font-weight: 600;
  font-size: 1rem;
  color: rgba(255,255,255,0.85);
  background: none;
  border: none;
  width: 100%;
  text-align: right;
  font-family: var(--font-ar);
  transition: var(--transition);
}

.faq-question:hover {
  color: var(--gold);
}

.faq-question .faq-icon {
  font-size: 1.5rem;
  color: var(--gold);
  transition: var(--transition);
  flex-shrink: 0;
}

.faq-item.active .faq-icon {
  transform: rotate(45deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease;
}

.faq-answer p {
  padding-bottom: 1.25rem;
  font-size: 0.95rem;
  line-height: 1.9;
  color: rgba(255,255,255,0.5);
}

.faq-item.active .faq-answer {
  max-height: 300px;
}

/* ─── About / Story Section ──────────────────────────────── */
.about-story {
  padding: 6rem 0;
}

.story-grid {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 4rem;
  align-items: start;
}

@media (max-width: 900px) {
  .story-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  .story-image { order: -1; }
}

.story-image {
  position: sticky;
  top: 120px;
}

.story-image img {
  display: block;
  width: 100%;
}

.story-content {
  min-width: 0;
}

.story-highlight {
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--dark);
  font-style: italic;
  margin: 1.5rem 0;
  padding-right: 1.5rem;
  border-right: 3px solid var(--gold);
}

/* Credentials */
.credentials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 3rem;
}

.credential-card {
  text-align: center;
  padding: 2.5rem 1.5rem;
  background: var(--white);
  border: 1px solid var(--light-gray);
  border-radius: var(--radius-lg);
  transition: var(--transition);
}

.credential-card:hover {
  border-color: var(--gold-light);
  transform: translateY(-3px);
  box-shadow: var(--shadow-sm);
}

.credential-card h4 {
  font-size: 1.2rem;
  color: var(--gold-dark);
  margin-bottom: 0.5rem;
  letter-spacing: 1px;
}

.credential-card p {
  font-size: 0.85rem;
}

/* ─── Contact Page ───────────────────────────────────────── */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  margin-top: 3rem;
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.contact-item {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}

.contact-item .contact-icon {
  width: 52px;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--dark);
  border-radius: var(--radius);
  color: var(--gold);
  font-size: 1.1rem;
  flex-shrink: 0;
}

.contact-item h4 {
  font-size: 0.95rem;
  margin-bottom: 0.15rem;
}

.contact-item p {
  font-size: 0.9rem;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

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

.form-group label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--dark);
}

.form-group input,
.form-group textarea {
  padding: 0.9rem 1rem;
  border: 1px solid var(--light-gray);
  border-radius: var(--radius);
  font-family: var(--font-ar);
  font-size: 0.95rem;
  color: var(--dark);
  transition: var(--transition);
  background: var(--white);
  direction: rtl;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 3px var(--gold-muted);
}

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

.contact-map {
  margin-top: 3rem;
  border-radius: var(--radius-lg);
  overflow: hidden;
  height: 350px;
}

.contact-map iframe {
  width: 100%;
  height: 100%;
  border: none;
}

/* ─── CTA Section ────────────────────────────────────────── */
.cta-section {
  background: linear-gradient(135deg, var(--dark) 0%, var(--dark-light) 100%);
  padding: 6rem 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta-section::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(197, 165, 90, 0.08) 0%, transparent 70%);
  border-radius: 50%;
}

.cta-section h2 {
  color: var(--white);
  margin-bottom: 1rem;
  position: relative;
}

.cta-section p {
  color: rgba(255,255,255,0.5);
  max-width: 500px;
  margin: 0 auto 2.5rem;
  position: relative;
}

.cta-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  position: relative;
}

/* ─── Footer ─────────────────────────────────────────────── */
.footer {
  background: #0A1520;
  color: rgba(255,255,255,0.5);
  padding: 5rem 0 2rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 3rem;
}

.footer-brand {
  display: flex;
  flex-direction: column;
}

.footer-brand .footer-logo {
  display: block;
  width: 130px;
  height: auto;
  margin-bottom: 1.5rem;
  filter: brightness(0) invert(1);
  opacity: 0.9;
}

.footer-brand p {
  margin-top: auto; /* Push description to bottom — align with other columns */
}

@media (max-width: 600px) {
  .footer-brand .footer-logo { width: 110px; }
  .footer-brand p { margin-top: 1rem; } /* Reset on mobile (single column) */
}

.footer-brand p {
  font-size: 0.9rem;
  color: rgba(255,255,255,0.4);
  line-height: 1.8;
  max-width: 360px;
}

.footer h4 {
  color: var(--white);
  font-size: 1rem;
  margin-bottom: 1.25rem;
  position: relative;
  padding-bottom: 0.75rem;
}

.footer h4::after {
  content: '';
  position: absolute;
  bottom: 0;
  right: 0;
  width: 30px;
  height: 2px;
  background: var(--gold);
}

.footer-links a {
  display: block;
  color: rgba(255,255,255,0.45);
  font-size: 0.9rem;
  padding: 0.35rem 0;
  transition: var(--transition);
}

.footer-links a:hover {
  color: var(--gold);
  padding-right: 0.5rem;
}

.footer-bottom {
  text-align: center;
  padding-top: 2.5rem;
  border-top: 1px solid rgba(255,255,255,0.06);
  font-size: 0.8rem;
  color: rgba(255,255,255,0.25);
}

/* ─── Page Header (for inner pages) ──────────────────────── */
.page-header,
.page-hero {
  padding: 10rem 0 3.5rem;
  background: var(--dark);
  text-align: center;
}

.page-hero h1,
.page-header h1 {
  color: var(--white);
  margin-bottom: 0.5rem;
}

.page-hero p,
.page-header p {
  font-size: 1.05rem;
  max-width: 500px;
  margin: 0 auto;
  color: rgba(255,255,255,0.5);
}

/* ─── Lightbox ───────────────────────────────────────────── */
.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.95);
  z-index: 2000;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 4rem 1rem 8rem;
}

.lightbox.active {
  display: flex;
}

.lightbox-main {
  max-width: 90%;
  max-height: calc(100vh - 200px);
  border-radius: var(--radius);
  user-select: none;
  -webkit-user-drag: none;
}

.lightbox-close,
.lightbox-prev,
.lightbox-next {
  position: absolute;
  color: var(--white);
  background: rgba(255,255,255,0.1);
  border: none;
  cursor: pointer;
  font-family: Arial, sans-serif;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s, transform 0.2s;
}

.lightbox-close { top: 1.5rem; left: 1.5rem; width: 48px; height: 48px; font-size: 2rem; line-height: 1; font-weight: 300; }
.lightbox-prev,
.lightbox-next { top: 50%; transform: translateY(-50%); width: 56px; height: 56px; font-size: 2.5rem; line-height: 1; }
.lightbox-prev { right: 1.5rem; }   /* RTL: previous on right */
.lightbox-next { left: 1.5rem; }    /* RTL: next on left */

.lightbox-close:hover,
.lightbox-prev:hover,
.lightbox-next:hover { background: rgba(255,255,255,0.25); }
.lightbox-prev:hover { transform: translateY(-50%) scale(1.08); }
.lightbox-next:hover { transform: translateY(-50%) scale(1.08); }

.lightbox-counter {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  color: rgba(255,255,255,0.85);
  font-size: 0.95rem;
  font-weight: 600;
  background: rgba(0,0,0,0.4);
  padding: 0.5rem 1rem;
  border-radius: 20px;
  direction: ltr;
}

.lightbox-thumbs {
  position: absolute;
  bottom: 1.5rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 0.5rem;
  padding: 0.5rem 0.75rem;
  background: rgba(0,0,0,0.5);
  border-radius: 12px;
  max-width: 90vw;
  overflow-x: auto;
  scrollbar-width: thin;
}

.lightbox-thumbs img {
  width: 70px;
  height: 70px;
  object-fit: cover;
  border-radius: 6px;
  cursor: pointer;
  opacity: 0.5;
  transition: opacity 0.2s, border-color 0.2s, transform 0.2s;
  border: 3px solid transparent;
  flex-shrink: 0;
}

.lightbox-thumbs img:hover { opacity: 0.85; }
.lightbox-thumbs img.active {
  opacity: 1;
  border-color: var(--gold);
  transform: scale(1.05);
}

@media (max-width: 600px) {
  .lightbox-prev,
  .lightbox-next { width: 44px; height: 44px; font-size: 2rem; }
  .lightbox-thumbs img { width: 55px; height: 55px; }
  .lightbox-counter { font-size: 0.85rem; padding: 0.35rem 0.75rem; }
}

/* ─── Animations ─────────────────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

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

/* ─── Tips / Articles Section ───────────────────────────── */
.tips-section {
  padding: 5rem 0;
  background: var(--off-white);
}
.tips-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-top: 3rem;
}
.tip-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  border-bottom: 3px solid transparent;
}
.tip-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
  border-bottom-color: var(--gold);
}
/* Single image */
.tip-imgs-1 { width: 100%; height: 210px; overflow: hidden; cursor: pointer; }
.tip-imgs-1 img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
.tip-card:hover .tip-imgs-1 img { transform: scale(1.05); }

/* Multi image layout */
.tip-imgs-multi {
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  height: 210px;
  overflow: hidden;
  gap: 3px;
}
.tip-img-main { overflow: hidden; cursor: pointer; }
.tip-img-main img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s; }
.tip-img-main:hover img { transform: scale(1.05); }
.tip-img-grid {
  display: grid;
  grid-template-rows: repeat(3, 1fr);
  gap: 3px;
}
.tip-img-cell { overflow: hidden; cursor: pointer; position: relative; }
.tip-img-cell img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s; }
.tip-img-cell:hover img { transform: scale(1.08); }
.tip-img-more {
  position: absolute; inset: 0;
  background: rgba(0,0,0,0.55);
  color: #fff; font-size: 1.1rem; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
}

/* Lightbox overlay */
.lightbox-overlay {
  position: fixed; inset: 0; z-index: 9999;
  background: rgba(0,0,0,0.88);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
}

/* legacy .tip-img kept for backward compat */
.tip-img { width: 100%; height: 200px; overflow: hidden; }
.tip-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
.tip-card:hover .tip-img img { transform: scale(1.05); }
.tip-body {
  padding: 1.75rem;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.tip-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}
.tip-cat {
  display: inline-block;
  background: var(--cat-color, var(--gold));
  color: #fff;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 0.25rem 0.75rem;
  border-radius: 20px;
}
.tip-date { font-size: 0.78rem; color: var(--mid-gray); }
.tip-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--dark);
  line-height: 1.5;
  margin: 0;
}
.tip-content {
  font-size: 0.9rem;
  color: var(--text-gray);
  line-height: 1.85;
  flex: 1;
  display: -webkit-box;
  -webkit-line-clamp: 5;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.tips-empty {
  text-align: center;
  padding: 3rem;
  color: var(--mid-gray);
  margin-top: 2rem;
}
.tip-readmore {
  display: inline-block;
  margin-top: 0.75rem;
  color: var(--gold);
  font-size: 0.82rem;
  font-weight: 600;
  transition: gap 0.2s;
}
.tip-card:hover .tip-readmore { text-decoration: underline; }

/* ─── Tip Detail Modal ─────────────────────────────────────── */
.tip-modal {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.75);
  z-index: 9999;
  display: none;
  align-items: flex-start;
  justify-content: center;
  padding: 2rem 1rem;
  overflow-y: auto;
  backdrop-filter: blur(4px);
}
.tip-modal-content {
  background: var(--white, #fff);
  border-radius: 14px;
  max-width: 820px;
  width: 100%;
  margin: auto;
  position: relative;
  box-shadow: 0 30px 80px rgba(0,0,0,0.5);
  animation: tipModalIn 0.25s ease-out;
}
@keyframes tipModalIn {
  from { opacity: 0; transform: translateY(20px) scale(0.97); }
  to   { opacity: 1; transform: translateY(0)    scale(1); }
}
.tip-modal-close {
  position: absolute;
  top: 0.75rem;
  left: 0.75rem;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: none;
  background: rgba(0,0,0,0.08);
  color: var(--dark);
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
  z-index: 2;
}
.tip-modal-close:hover { background: rgba(0,0,0,0.18); }
.tip-modal-body {
  padding: 2.5rem 2rem 2rem;
}
.tip-modal-meta {
  display: flex;
  gap: 0.75rem;
  align-items: center;
  margin-bottom: 1rem;
  flex-wrap: wrap;
}
.tip-modal-title {
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--dark);
  line-height: 1.5;
  margin: 0 0 1.25rem;
}
.tip-modal-text {
  font-size: 1rem;
  line-height: 2;
  color: var(--text-gray, #555);
  white-space: pre-wrap;
}
@media (max-width: 600px) {
  .tip-modal { padding: 0; }
  .tip-modal-content { border-radius: 0; min-height: 100vh; }
  .tip-modal-body { padding: 3rem 1.25rem 1.5rem; }
  .tip-modal-title { font-size: 1.25rem; }
}
/* Light theme support */
html[data-theme="light"] .tip-modal-content { background: #fff; }
html[data-theme="dark"]  .tip-modal-content { background: var(--card-bg, #1f1f2e); }
html[data-theme="dark"]  .tip-modal-title   { color: var(--white, #fff); }
html[data-theme="dark"]  .tip-modal-text    { color: rgba(255,255,255,0.78); }
html[data-theme="dark"]  .tip-modal-close   { background: rgba(255,255,255,0.12); color: #fff; }

/* ─── Map Section ────────────────────────────────────────── */
.contact-map {
  padding: 0;
  background: var(--dark);
}
.contact-map .map-header {
  padding: 2.5rem 0 1.5rem;
  text-align: center;
}
.contact-map .map-header h2 { color: var(--white); font-size: 1.4rem; margin-bottom: 0.3rem; }
.contact-map .map-header p  { color: rgba(255,255,255,0.5); font-size: 0.88rem; }
.map-container {
  width: 100%;
  height: 420px;
  overflow: hidden;
  border-top: 3px solid rgba(197,165,90,0.3);
}
.map-container iframe {
  width: 100%;
  height: 100%;
  border: 0;
  filter: grayscale(15%) contrast(1.05);
}

/* ─── Responsive ─────────────────────────────────────────── */
@media (max-width: 1024px) {
  .concept-grid { grid-template-columns: repeat(2, 1fr); }
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .project-detail-content { grid-template-columns: 1fr; }
  .about-story { grid-template-columns: 1fr; gap: 2rem; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .tips-grid { grid-template-columns: repeat(2, 1fr); }
}

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

  .nav-links { display: none; }
  .mobile-toggle { display: flex; }

  .header .container { height: 75px; }
  .header-logo img { height: 50px; }
  .header-logo .logo-text .name { font-size: 1.1rem; }
  .header-logo .logo-text .tagline { font-size: 0.7rem; }

  .page-hero,
  .page-header { padding: 7rem 0 2rem; }

  .hero-content h1 { font-size: clamp(1.3rem, 6vw, 1.8rem); line-height: 1.7; }

  .hero-scroll { display: none; }

  .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 1.5rem; }
  .stat-item:not(:last-child)::after { display: none; }

  .concept-grid { grid-template-columns: 1fr; }
  .services-grid { grid-template-columns: 1fr; }
  .invest-grid { grid-template-columns: 1fr; }
  .credentials-grid { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .projects-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
  .tips-grid { grid-template-columns: 1fr; }

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

@media (max-width: 480px) {
  .container { padding: 0 1.25rem; }
  .hero-buttons { flex-direction: column; align-items: center; }
  .btn { padding: 0.8rem 1.5rem; font-size: 0.9rem; }
  .hero-buttons .btn-primary,
  .hero-buttons .btn-outline { padding: 0.45rem 1rem; font-size: 0.75rem; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .hero-corner { display: none; }
}

/* ═══════════════════════════════════════════════════════════
   Theme Toggle Button
   ═══════════════════════════════════════════════════════════ */
.theme-toggle {
  background: none;
  border: 1px solid rgba(255,255,255,0.25);
  border-radius: 50px;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--white);
  transition: var(--transition);
  margin-right: 2.25rem;
  flex-shrink: 0;
}
.theme-toggle:hover {
  border-color: var(--gold);
  color: var(--gold);
}
/* Show sun in dark mode, moon in light mode */
html[data-theme="dark"]  .theme-toggle .icon-sun  { display: block; }
html[data-theme="dark"]  .theme-toggle .icon-moon { display: none; }
html[data-theme="light"] .theme-toggle .icon-sun  { display: none; }
html[data-theme="light"] .theme-toggle .icon-moon { display: block; }
/* Default (no attribute = dark) */
html:not([data-theme]) .theme-toggle .icon-sun  { display: block; }
html:not([data-theme]) .theme-toggle .icon-moon { display: none; }

/* In light mode: toggle button uses dark border */
html[data-theme="light"] .theme-toggle {
  border-color: rgba(13,27,42,0.3);
  color: var(--dark);
}
html[data-theme="light"] .theme-toggle:hover {
  border-color: var(--gold-dark);
  color: var(--gold-dark);
}

/* ═══════════════════════════════════════════════════════════
   LIGHT MODE — [data-theme="light"]
   ═══════════════════════════════════════════════════════════ */

/* ── Header ─────────────────────────────────────────────── */
html[data-theme="light"] .header.scrolled {
  background: rgba(255,255,255,0.97);
  box-shadow: 0 2px 20px rgba(0,0,0,0.1);
  border-bottom: 1px solid rgba(197,165,90,0.3);
}
html[data-theme="light"] .header.scrolled .nav-links a {
  color: var(--dark);
}
html[data-theme="light"] .header.scrolled .nav-links a:hover,
html[data-theme="light"] .header.scrolled .nav-links a.active {
  color: var(--gold-dark);
}
html[data-theme="light"] .header.scrolled .header-logo .name {
  color: var(--dark);
}
html[data-theme="light"] .header.scrolled .header-logo .tagline {
  color: var(--text-gray);
}
html[data-theme="light"] .header.scrolled .header-logo img {
  filter: none;
}
html[data-theme="light"] .header.scrolled .mobile-toggle span {
  background: var(--dark);
}

/* ── Hero section ───────────────────────────────────────── */
html[data-theme="light"] .hero {
  background-color: #1B2C40;
}
html[data-theme="light"] .hero::before {
  background: linear-gradient(
    135deg,
    rgba(10,21,32,0.80) 0%,
    rgba(20,34,48,0.60) 50%,
    rgba(10,21,32,0.80) 100%
  );
}

/* ── Page hero (inner pages) ────────────────────────────── */
html[data-theme="light"] .page-hero,
html[data-theme="light"] .page-header {
  background: #2a3f55;
}

/* ── Body & sections ────────────────────────────────────── */
html[data-theme="light"] body {
  background: #F9F7F4;
  color: var(--charcoal);
}
html[data-theme="light"] .section-alt {
  background: #EEECE8;
}

/* ── Stats bar ──────────────────────────────────────────── */
html[data-theme="light"] .stats-section {
  background: #1B2C40;
}

/* ── Cards & surfaces ───────────────────────────────────── */
html[data-theme="light"] .service-card,
html[data-theme="light"] .tip-card,
html[data-theme="light"] .project-card,
html[data-theme="light"] .credential-card,
html[data-theme="light"] .vision-mission-card {
  background: #FFFFFF;
  box-shadow: 0 4px 20px rgba(0,0,0,0.07);
}

/* ── Story section ──────────────────────────────────────── */
html[data-theme="light"] .about-story {
  background: #F9F7F4;
}
html[data-theme="light"] .story-highlight {
  background: rgba(197,165,90,0.08);
  border-right-color: var(--gold);
}
html[data-theme="light"] blockquote {
  color: var(--dark);
}

/* ── Dark section variant ───────────────────────────────── */
html[data-theme="light"] .section-dark {
  background: #1B2C40;
}

/* ── CTA section ────────────────────────────────────────── */
html[data-theme="light"] .cta-section {
  background: linear-gradient(135deg, #1B2C40 0%, #0D1B2A 100%);
}

/* ── Footer ─────────────────────────────────────────────── */
html[data-theme="light"] .footer {
  background: #0D1820;
}

/* ── Mobile menu ────────────────────────────────────────── */
html[data-theme="light"] .mobile-menu {
  background: rgba(255,255,255,0.98);
}
html[data-theme="light"] .mobile-menu a {
  color: var(--dark);
  border-bottom-color: rgba(0,0,0,0.06);
}
html[data-theme="light"] .mobile-menu a:hover {
  color: var(--gold-dark);
}
