/* ============================================================
   Elite Signature Development Ltd — Design System
   ============================================================ */

:root {
  --navy:       #0A1F44;
  --navy-dark:  #060F22;
  --gold:       #C9A84C;
  --gold-light: #E8C97A;
  --white:      #FFFFFF;
  --gray-light: #F5F5F0;
  --text-dark:  #1A1A2E;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  font-family: 'DM Sans', sans-serif;
  color: var(--text-dark);
  overflow-x: hidden;
  background: #fff;
}

/* ── Typography helpers ─────────────────────────────────── */
.font-display { font-family: 'Playfair Display', serif; }
.font-body    { font-family: 'DM Sans', sans-serif; }

.section-label {
  font-family: 'DM Sans', sans-serif;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
}
.section-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  font-weight: 700;
  color: var(--navy);
  line-height: 1.25;
}
.section-title-white {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  font-weight: 700;
  color: #fff;
  line-height: 1.25;
}

.gold-divider {
  width: 56px;
  height: 3px;
  background: linear-gradient(to right, var(--gold), var(--gold-light));
  border-radius: 2px;
  margin: 10px auto 0;
}
.gold-divider-left { margin-left: 0; }

/* ── Buttons ────────────────────────────────────────────── */
.btn-primary {
  display: inline-block;
  background: var(--gold);
  color: var(--navy);
  font-family: 'DM Sans', sans-serif;
  font-weight: 600;
  font-size: 0.9rem;
  letter-spacing: 0.04em;
  padding: 0.8rem 2.1rem;
  border-radius: 4px;
  text-decoration: none;
  transition: background 0.3s, transform 0.25s, box-shadow 0.25s;
}
.btn-primary:hover {
  background: var(--gold-light);
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(201,168,76,.38);
}
.btn-outline {
  display: inline-block;
  border: 2px solid var(--gold);
  color: var(--gold);
  font-family: 'DM Sans', sans-serif;
  font-weight: 600;
  font-size: 0.9rem;
  padding: 0.75rem 2rem;
  border-radius: 4px;
  text-decoration: none;
  transition: all 0.3s;
}
.btn-outline:hover {
  background: var(--gold);
  color: var(--navy);
  transform: translateY(-2px);
}
.btn-outline-white {
  display: inline-block;
  border: 2px solid #fff;
  color: #fff;
  font-family: 'DM Sans', sans-serif;
  font-weight: 600;
  font-size: 0.9rem;
  padding: 0.75rem 2rem;
  border-radius: 4px;
  text-decoration: none;
  transition: all 0.3s;
}
.btn-outline-white:hover {
  background: #fff;
  color: var(--navy);
  transform: translateY(-2px);
}

/* ── Navbar ─────────────────────────────────────────────── */
#navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 999;
  transition: background 0.4s ease, box-shadow 0.4s ease;
}
#navbar.scrolled {
  background: var(--navy) !important;
  box-shadow: 0 2px 30px rgba(0,0,0,.35);
}
.nav-link {
  font-family: 'DM Sans', sans-serif;
  font-size: 0.875rem;
  font-weight: 500;
  color: rgba(255,255,255,.88);
  text-decoration: none;
  letter-spacing: 0.03em;
  padding: 0.25rem 0;
  border-bottom: 2px solid transparent;
  transition: color 0.25s, border-color 0.25s;
}
.nav-link:hover, .nav-link.active {
  color: var(--gold);
  border-bottom-color: var(--gold);
}

/* ── Hero Slider ────────────────────────────────────────── */
.hero-section {
  position: relative;
  height: 100vh;
  min-height: 620px;
  overflow: hidden;
}
.hero-slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  opacity: 0;
  transition: opacity 1.1s ease;
}
.hero-slide.active { opacity: 1; }
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(6,15,34,.72) 0%,
    rgba(10,31,68,.52) 50%,
    rgba(6,15,34,.82) 100%
  );
}
.hero-content {
  position: relative;
  z-index: 10;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 0 1.5rem;
}

/* ── Fade-up scroll animation ───────────────────────────── */
.fade-up {
  opacity: 0;
  transform: translateY(36px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}
.fade-up.visible { opacity: 1; transform: translateY(0); }
.delay-1 { transition-delay: 0.1s; }
.delay-2 { transition-delay: 0.2s; }
.delay-3 { transition-delay: 0.3s; }
.delay-4 { transition-delay: 0.4s; }

/* ── Stats Section ──────────────────────────────────────── */
.stats-section {
  background: linear-gradient(135deg, var(--navy-dark) 0%, var(--navy) 100%);
  padding: 4.5rem 0;
}
.stat-number {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2.5rem, 5vw, 3.8rem);
  font-weight: 700;
  color: var(--gold);
  line-height: 1;
}
.stat-label {
  font-family: 'DM Sans', sans-serif;
  color: rgba(255,255,255,.75);
  font-size: 0.82rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-top: 0.4rem;
}
.stat-divider {
  width: 1px;
  background: rgba(255,255,255,.15);
  height: 70px;
  margin: auto;
}

/* ── Service Cards ──────────────────────────────────────── */
.service-card {
  background: #fff;
  border-radius: 10px;
  padding: 2rem 1.75rem;
  box-shadow: 0 2px 22px rgba(0,0,0,.07);
  border-top: 3px solid transparent;
  transition: all 0.32s ease;
}
.service-card:hover {
  border-top-color: var(--gold);
  transform: translateY(-7px);
  box-shadow: 0 14px 42px rgba(0,0,0,.12);
}
.icon-circle {
  width: 62px;
  height: 62px;
  background: linear-gradient(135deg, var(--navy) 0%, #15336a 100%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
}
.icon-circle i { color: var(--gold); font-size: 1.4rem; }

/* ── Project Cards ──────────────────────────────────────── */
.project-card {
  background: #fff;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 3px 24px rgba(0,0,0,.08);
  transition: all 0.32s ease;
}
.project-card:hover {
  transform: translateY(-7px);
  box-shadow: 0 18px 52px rgba(0,0,0,.14);
}
.project-card .card-img {
  height: 220px;
  overflow: hidden;
  position: relative;
}
.project-card .card-img img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.55s ease;
}
.project-card:hover .card-img img { transform: scale(1.07); }

/* ── Badges ─────────────────────────────────────────────── */
.badge {
  display: inline-block;
  padding: 0.18rem 0.7rem;
  border-radius: 20px;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.badge-ongoing   { background: #fff3cd; color: #92400e; }
.badge-completed { background: #d1fae5; color: #064e3b; }
.badge-upcoming  { background: #dbeafe; color: #1e3a8a; }
.badge-gold      { background: var(--gold); color: var(--navy); }
.badge-navy      { background: var(--navy); color: #fff; }

/* ── Page Banner ────────────────────────────────────────── */
.page-banner {
  background: linear-gradient(135deg, var(--navy-dark) 0%, var(--navy) 65%, #0d2d5e 100%);
  padding: 7.5rem 0 4rem;
  position: relative;
  overflow: hidden;
}
.page-banner::before {
  content: '';
  position: absolute;
  top: -100px; right: -100px;
  width: 450px; height: 450px;
  border-radius: 50%;
  background: rgba(201,168,76,.07);
  pointer-events: none;
}
.page-banner::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 4px;
  background: linear-gradient(to right, var(--gold), var(--gold-light), var(--gold));
}
.page-banner h1 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  color: #fff;
}
.breadcrumb { color: rgba(255,255,255,.55); font-size: 0.875rem; }
.breadcrumb a { color: rgba(255,255,255,.55); text-decoration: none; }
.breadcrumb a:hover { color: var(--gold); }
.breadcrumb .sep { margin: 0 0.5rem; color: rgba(255,255,255,.3); }
.breadcrumb .current { color: var(--gold); }

/* ── Gallery ────────────────────────────────────────────── */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1rem;
}
.gallery-item {
  overflow: hidden;
  border-radius: 8px;
  cursor: pointer;
  position: relative;
  aspect-ratio: 4/3;
}
.gallery-item.tall { aspect-ratio: 3/4; }
.gallery-item img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.55s ease;
}
.gallery-item:hover img { transform: scale(1.08); }
.gallery-overlay {
  position: absolute; inset: 0;
  background: rgba(10,31,68,.6);
  opacity: 0;
  display: flex; align-items: center; justify-content: center;
  transition: opacity 0.3s;
}
.gallery-item:hover .gallery-overlay { opacity: 1; }
.gallery-overlay i { color: var(--gold); font-size: 2.2rem; }

/* ── Lightbox ───────────────────────────────────────────── */
#lightbox {
  position: fixed; inset: 0;
  background: rgba(0,0,0,.94);
  z-index: 10000;
  display: flex; align-items: center; justify-content: center;
  padding: 1.5rem;
}
#lightbox.hidden { display: none; }
#lightbox img {
  max-width: 90vw; max-height: 85vh;
  object-fit: contain;
  border: 2px solid rgba(201,168,76,.5);
  border-radius: 4px;
}
.lb-close {
  position: absolute; top: 1.25rem; right: 1.5rem;
  color: #fff; font-size: 2rem; cursor: pointer;
  transition: color 0.2s; line-height: 1;
}
.lb-close:hover { color: var(--gold); }
.lb-nav {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 48px; height: 48px;
  background: rgba(0,0,0,.5); color: #fff;
  border-radius: 50%; display: flex; align-items: center; justify-content: center;
  cursor: pointer; font-size: 1.1rem; transition: all 0.25s;
}
.lb-nav:hover { background: var(--gold); color: var(--navy); }
#lb-prev { left: 1.5rem; }
#lb-next { right: 1.5rem; }

/* ── Team Cards ─────────────────────────────────────────── */
.team-card {
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 28px rgba(0,0,0,.08);
  transition: all 0.32s ease;
  text-align: center;
}
.team-card:hover {
  transform: translateY(-7px);
  box-shadow: 0 18px 52px rgba(0,0,0,.13);
}
.team-photo {
  height: 260px;
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, var(--navy) 0%, #15336a 100%);
  display: flex; align-items: center; justify-content: center;
}
.team-photo::after {
  content: '';
  position: absolute; bottom: 0; left: 0; right: 0;
  height: 3px; background: var(--gold);
}
.team-photo .avatar-icon {
  color: rgba(255,255,255,.18);
  font-size: 6rem;
}
.team-info { padding: 1.5rem 1.25rem 1.75rem; }
.team-name {
  font-family: 'Playfair Display', serif;
  font-size: 1.2rem; font-weight: 700;
  color: var(--navy); margin-bottom: 0.2rem;
}
.team-role {
  color: var(--gold); font-size: 0.82rem;
  font-weight: 600; letter-spacing: 0.07em;
  text-transform: uppercase;
}
.team-bio {
  color: #666; font-size: 0.87rem; line-height: 1.65;
  margin-top: 0.75rem;
}

/* ── Accordion ──────────────────────────────────────────── */
.accordion-item {
  border: 1px solid rgba(0,0,0,.08);
  border-radius: 8px;
  margin-bottom: 0.75rem;
  overflow: hidden;
}
.accordion-header {
  padding: 1.1rem 1.5rem;
  background: #fff;
  cursor: pointer;
  display: flex; justify-content: space-between; align-items: center;
  font-family: 'DM Sans', sans-serif;
  font-weight: 600; font-size: 0.95rem;
  color: var(--navy);
  transition: background 0.2s;
  gap: 1rem;
}
.accordion-header:hover { background: var(--gray-light); }
.accordion-body {
  padding: 0 1.5rem 1.25rem;
  color: #555; font-size: 0.9rem;
  line-height: 1.75;
  font-family: 'DM Sans', sans-serif;
}

/* ── Timeline ───────────────────────────────────────────── */
.timeline-wrap { position: relative; padding-left: 3.5rem; }
.timeline-wrap + .timeline-wrap { margin-top: 2rem; }
.timeline-wrap::before {
  content: '';
  position: absolute; left: 1.1rem; top: 2.5rem; bottom: -2rem;
  width: 2px; background: rgba(201,168,76,.25);
}
.timeline-wrap:last-child::before { display: none; }
.timeline-num {
  position: absolute; left: 0; top: 0;
  width: 2.2rem; height: 2.2rem;
  background: var(--gold); color: var(--navy);
  border-radius: 50%; display: flex;
  align-items: center; justify-content: center;
  font-weight: 700; font-size: 0.875rem;
}

/* ── Contact Form ───────────────────────────────────────── */
.form-group { margin-bottom: 1.25rem; }
.form-label {
  display: block; font-size: 0.875rem;
  font-weight: 500; color: var(--navy);
  margin-bottom: 0.45rem;
}
.form-input {
  width: 100%;
  padding: 0.825rem 1rem;
  border: 1.5px solid #e2e8f0;
  border-radius: 6px;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.9rem; color: var(--text-dark);
  background: #fff;
  transition: border-color 0.2s, box-shadow 0.2s;
  outline: none;
}
.form-input:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(201,168,76,.15);
}
.form-input::placeholder { color: #aaa; }
textarea.form-input { resize: vertical; min-height: 130px; }

/* ── WhatsApp Float ─────────────────────────────────────── */
.wa-float {
  position: fixed; bottom: 28px; right: 28px;
  z-index: 9998;
  width: 56px; height: 56px;
  background: #25D366; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 24px rgba(37,211,102,.45);
  text-decoration: none;
  transition: transform 0.3s, box-shadow 0.3s;
}
.wa-float:hover {
  transform: scale(1.12);
  box-shadow: 0 8px 36px rgba(37,211,102,.6);
}
.wa-float i { color: #fff; font-size: 1.6rem; }

/* ── CTA Banner ─────────────────────────────────────────── */
.cta-section {
  background: linear-gradient(135deg, var(--navy-dark) 0%, var(--navy) 60%, #0d2d5e 100%);
  padding: 5.5rem 0;
  position: relative;
  overflow: hidden;
}
.cta-section::before {
  content: '';
  position: absolute;
  top: -30%; right: -5%;
  width: 500px; height: 500px;
  border-radius: 50%;
  background: rgba(201,168,76,.05);
  pointer-events: none;
}

/* ── Footer ─────────────────────────────────────────────── */
.footer { background: var(--navy-dark); color: rgba(255,255,255,.7); }
.footer-heading {
  font-family: 'Playfair Display', serif;
  font-size: 1.1rem; font-weight: 600;
  color: var(--gold); margin-bottom: 1.5rem;
}
.footer-link {
  color: rgba(255,255,255,.6);
  text-decoration: none; font-size: 0.875rem;
  display: block; margin-bottom: 0.6rem;
  transition: color 0.2s;
}
.footer-link:hover { color: var(--gold); }
.footer-social {
  width: 38px; height: 38px;
  background: rgba(255,255,255,.08);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: rgba(255,255,255,.7); font-size: 0.9rem;
  text-decoration: none;
  transition: all 0.25s;
}
.footer-social:hover { background: var(--gold); color: var(--navy); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.08);
  padding: 1.25rem 0;
  color: rgba(255,255,255,.35);
  font-size: 0.82rem;
}

/* ── Values Cards ───────────────────────────────────────── */
.value-card {
  background: #fff;
  border-radius: 10px;
  padding: 2rem 1.75rem;
  text-align: center;
  box-shadow: 0 2px 22px rgba(0,0,0,.07);
  transition: all 0.32s ease;
  border-bottom: 3px solid transparent;
}
.value-card:hover {
  border-bottom-color: var(--gold);
  transform: translateY(-6px);
  box-shadow: 0 14px 42px rgba(0,0,0,.12);
}

/* ── Why Choose Us ──────────────────────────────────────── */
.usp-item {
  display: flex; gap: 1.25rem; align-items: flex-start;
}
.usp-icon {
  width: 52px; height: 52px; flex-shrink: 0;
  background: linear-gradient(135deg, var(--gold) 0%, var(--gold-light) 100%);
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
}
.usp-icon i { color: var(--navy); font-size: 1.2rem; }

/* ── Featured Project ───────────────────────────────────── */
.featured-project {
  background: linear-gradient(135deg, var(--navy-dark) 0%, var(--navy) 60%, #0d2e60 100%);
  border-radius: 14px;
  overflow: hidden;
  position: relative;
}
.featured-project::before {
  content: '';
  position: absolute; inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23C9A84C' fill-opacity='0.04'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

/* ── Utility ────────────────────────────────────────────── */
.container {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 1.5rem;
  min-width: 0;
}
img {
  display: block;
  max-width: 100%;
  height: auto;
}
.section-pad { padding: 5.5rem 0; }
.section-pad-sm { padding: 3.5rem 0; }
.bg-gray-light { background: var(--gray-light); }
.text-navy { color: var(--navy); }
.text-gold { color: var(--gold); }

/* ── Responsive tweaks ──────────────────────────────────── */
@media (max-width: 768px) {
  .section-pad { padding: 4rem 0; }
  .page-banner { padding: 6rem 0 3rem; }
  .stats-section { padding: 3.5rem 0; }
  .hero-section { min-height: 100svh; }
  .hero-content { padding: 0 1rem; }
  .featured-project .grid { display: block; }
  .featured-project .relative { min-height: auto; }
  .featured-project .p-10 { padding: 2rem 1.25rem; }
  .gallery-item { height: auto !important; aspect-ratio: 4 / 3; }
  .project-card .card-img { height: 180px; }
  .cta-section { padding: 3rem 0; }
  .footer { padding-bottom: 1rem; }
}
