/* ==========================================================================
   DLF Projects — Design System
   Modern Minimal / Corporate. Layered on top of Tailwind (Play CDN).
   Palette: Midnight #0F1724 · Teal #1976A5 · Amber #FFB020 · Off-White #FAFBFC
   ========================================================================== */

:root {
  --midnight: #0F1724;
  --midnight-700: #16213a;
  --midnight-600: #1d2b45;
  --teal: #1976A5;
  --teal-600: #145d82;
  --teal-300: #5fa8cf;
  --amber: #FFB020;
  --amber-600: #e89a0a;
  --offwhite: #FAFBFC;
  --ink: #111517;
  --muted: #5b6470;
  --line: #e6e9ee;

  --shadow-sm: 0 1px 2px rgba(15, 23, 36, .06), 0 1px 3px rgba(15, 23, 36, .04);
  --shadow-md: 0 8px 24px -8px rgba(15, 23, 36, .14), 0 2px 8px rgba(15, 23, 36, .06);
  --shadow-lg: 0 24px 60px -20px rgba(15, 23, 36, .28);
  --shadow-amber: 0 10px 30px -10px rgba(255, 176, 32, .55);

  --radius: 18px;
  --container: 1200px;
  --ease: cubic-bezier(.22, 1, .36, 1);
}

* { -webkit-tap-highlight-color: transparent; }

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; }
}

body {
  font-family: 'Inter', system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  color: var(--ink);
  background: var(--offwhite);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4, .font-display {
  font-family: 'Plus Jakarta Sans', 'Inter', sans-serif;
  letter-spacing: -0.02em;
}

::selection { background: var(--amber); color: var(--midnight); }

/* ---------- Layout helpers ---------- */
.container-x { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: 20px; }
.section { padding-block: clamp(56px, 8vw, 110px); }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 12px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
  color: var(--teal);
}
.eyebrow::before { content: ""; width: 26px; height: 2px; background: var(--amber); border-radius: 2px; }
.eyebrow.on-dark { color: var(--amber); }
.eyebrow.on-dark::before { background: var(--teal-300); }

.h-display { font-size: clamp(2rem, 5vw, 3.5rem); line-height: 1.05; font-weight: 800; }
.h-section { font-size: clamp(1.7rem, 3.6vw, 2.6rem); line-height: 1.1; font-weight: 800; }
.lead { font-size: clamp(1rem, 1.4vw, 1.15rem); color: var(--muted); line-height: 1.7; }

.text-balance { text-wrap: balance; }
.tabular { font-variant-numeric: tabular-nums; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  font-weight: 700; font-size: .95rem; line-height: 1;
  padding: 14px 22px; border-radius: 12px; cursor: pointer;
  border: 1px solid transparent; transition: transform .2s var(--ease), box-shadow .2s var(--ease), background .2s, color .2s;
  min-height: 48px; text-align: center;
}
.btn:active { transform: translateY(1px) scale(.99); }
.btn svg { width: 18px; height: 18px; }
.btn-amber { background: var(--amber); color: var(--midnight); box-shadow: var(--shadow-amber); }
.btn-amber:hover { background: var(--amber-600); transform: translateY(-2px); }
.btn-teal { background: var(--teal); color: #fff; }
.btn-teal:hover { background: var(--teal-600); transform: translateY(-2px); }
.btn-dark { background: var(--midnight); color: #fff; }
.btn-dark:hover { background: var(--midnight-600); transform: translateY(-2px); }
.btn-ghost { background: transparent; color: var(--midnight); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--teal); color: var(--teal); }
.btn-outline-light { background: rgba(255,255,255,.06); color: #fff; border-color: rgba(255,255,255,.25); }
.btn-outline-light:hover { background: rgba(255,255,255,.14); border-color: rgba(255,255,255,.5); }
.btn-block { width: 100%; }

/* ---------- Glass + cards ---------- */
.glass {
  background: rgba(255, 255, 255, .08);
  backdrop-filter: blur(16px) saturate(140%);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  border: 1px solid rgba(255, 255, 255, .16);
}
.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow-sm); transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s;
  overflow: hidden;
}
.card-hover:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: rgba(25,118,165,.35); }

/* ---------- Header / Nav ---------- */
.site-header { position: sticky; top: 0; z-index: 100; transition: background .3s, box-shadow .3s, border-color .3s; }
.topbar { background: var(--midnight); color: #cdd6e3; font-size: 13px; }
.topbar a { color: #cdd6e3; }
.topbar a:hover { color: var(--amber); }
.navbar { background: rgba(250,251,252,.85); backdrop-filter: blur(12px); border-bottom: 1px solid transparent; }
.site-header.scrolled .navbar { background: rgba(250,251,252,.95); border-bottom-color: var(--line); box-shadow: var(--shadow-sm); }
.nav-link { position: relative; font-weight: 600; font-size: .95rem; color: var(--midnight); padding: 8px 2px; }
.nav-link::after {
  content: ""; position: absolute; left: 0; bottom: -2px; height: 2px; width: 0; background: var(--amber);
  transition: width .25s var(--ease);
}
.nav-link:hover::after, .nav-link.active::after { width: 100%; }
.nav-link.active { color: var(--teal); }

.brand { display: inline-flex; align-items: center; gap: 11px; font-family: 'Plus Jakarta Sans'; font-weight: 800; }
.brand .mark {
  width: 40px; height: 40px; border-radius: 11px; display: grid; place-items: center; color: #fff; font-weight: 800;
  background: linear-gradient(135deg, var(--teal), var(--midnight)); box-shadow: var(--shadow-sm); flex: none;
}
.brand .mark span { font-size: 18px; letter-spacing: -.04em; }

/* Mobile drawer */
.mobile-drawer { position: fixed; inset: 0; z-index: 200; visibility: hidden; }
.mobile-drawer.open { visibility: visible; }
.mobile-drawer .scrim { position: absolute; inset: 0; background: rgba(15,23,36,.55); opacity: 0; transition: opacity .3s; }
.mobile-drawer.open .scrim { opacity: 1; }
.mobile-drawer .panel {
  position: absolute; right: 0; top: 0; bottom: 0; width: min(86vw, 360px); background: #fff;
  transform: translateX(100%); transition: transform .35s var(--ease); padding: 22px; display: flex; flex-direction: column;
  overflow-y: auto;
}
.mobile-drawer.open .panel { transform: translateX(0); }
.mobile-drawer .m-link { display: block; padding: 14px 6px; font-weight: 600; border-bottom: 1px solid var(--line); }

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden; color: #fff;
  background:
    radial-gradient(1100px 600px at 80% -10%, rgba(25,118,165,.45), transparent 60%),
    radial-gradient(800px 500px at 0% 110%, rgba(255,176,32,.14), transparent 55%),
    linear-gradient(160deg, #0c1320, var(--midnight) 55%, #0a111d);
}
.hero-grid-overlay {
  position: absolute; inset: 0; opacity: .5; pointer-events: none;
  background-image: linear-gradient(rgba(255,255,255,.04) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.04) 1px, transparent 1px);
  background-size: 56px 56px; mask-image: radial-gradient(70% 70% at 50% 30%, #000, transparent);
}
.chip {
  display: inline-flex; align-items: center; gap: 7px; padding: 9px 15px; border-radius: 999px;
  font-size: .85rem; font-weight: 600; cursor: pointer; transition: all .2s var(--ease); white-space: nowrap;
  border: 1px solid var(--line); background: #fff; color: var(--midnight);
}
.chip:hover { border-color: var(--teal); color: var(--teal); transform: translateY(-1px); }
.chip.is-active { background: var(--midnight); color: #fff; border-color: var(--midnight); }
.chip-dot { width: 8px; height: 8px; border-radius: 50%; }

/* Search bar */
.searchbar { background: #fff; border-radius: 16px; box-shadow: var(--shadow-lg); }
.searchbar select, .searchbar input {
  width: 100%; border: none; outline: none; background: transparent; font-size: .95rem; color: var(--ink);
  font-family: inherit;
}
.searchbar label { font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.search-cell { padding: 12px 16px; border-right: 1px solid var(--line); }

/* ---------- Project card ---------- */
.proj-media { position: relative; aspect-ratio: 16/11; overflow: hidden; }
.proj-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.card-hover:hover .proj-media img { transform: scale(1.07); }
.badge {
  position: absolute; top: 14px; left: 14px; z-index: 2; padding: 6px 12px; border-radius: 999px;
  font-size: 12px; font-weight: 700; letter-spacing: .02em; backdrop-filter: blur(6px); display: inline-flex; gap: 6px; align-items: center;
}
.badge-upcoming { background: rgba(255,176,32,.92); color: var(--midnight); }
.badge-new { background: rgba(25,118,165,.92); color: #fff; }
.badge-ongoing { background: rgba(15,23,36,.82); color: #fff; }
.badge-sold { background: rgba(91,100,112,.9); color:#fff; }
.fav-btn {
  position: absolute; top: 12px; right: 12px; z-index: 2; width: 38px; height: 38px; border-radius: 50%;
  display: grid; place-items: center; background: rgba(255,255,255,.9); color: var(--midnight); border: none; cursor: pointer;
  transition: all .2s; box-shadow: var(--shadow-sm);
}
.fav-btn:hover { background: #fff; transform: scale(1.08); color: var(--teal); }
.fav-btn.is-fav { background: var(--amber); color: var(--midnight); }
.spec-row { display: flex; align-items: center; gap: 7px; font-size: .85rem; color: var(--muted); }
.spec-row svg { width: 16px; height: 16px; color: var(--teal); flex: none; }

/* ---------- Feature cards ---------- */
.feature-ic {
  width: 54px; height: 54px; border-radius: 14px; display: grid; place-items: center; flex: none;
  background: linear-gradient(135deg, rgba(25,118,165,.12), rgba(255,176,32,.12)); color: var(--teal);
}
.feature-ic svg { width: 26px; height: 26px; }

/* ---------- Stat counter ---------- */
.stat-num { font-family: 'Plus Jakarta Sans'; font-weight: 800; font-size: clamp(2rem, 4vw, 3rem); line-height: 1; }

/* ---------- Timeline ---------- */
.timeline { position: relative; }
.timeline::before { content:""; position:absolute; left: 19px; top: 6px; bottom: 6px; width: 2px; background: linear-gradient(var(--teal), var(--amber)); }
@media(min-width:768px){ .timeline::before{ left: 50%; transform: translateX(-1px);} }
.tl-item { position: relative; padding-left: 56px; }
@media(min-width:768px){ .tl-item{ width:50%; padding-left: 0; } .tl-item.left{ padding-right: 48px; text-align: right; } .tl-item.right{ margin-left: 50%; padding-left: 48px; } }
.tl-dot { position:absolute; left: 11px; top: 4px; width: 18px; height:18px; border-radius:50%; background: var(--amber); border: 4px solid var(--offwhite); box-shadow: 0 0 0 2px var(--teal); }
@media(min-width:768px){ .tl-item.left .tl-dot{ left:auto; right:-9px;} .tl-item.right .tl-dot{ left:-9px;} }

/* ---------- Forms ---------- */
.field { display: flex; flex-direction: column; gap: 6px; }
.field label { font-size: .82rem; font-weight: 600; color: var(--ink); }
.field label .req { color: #DC2626; }
.input, .select, .textarea {
  width: 100%; padding: 13px 15px; border-radius: 11px; border: 1px solid var(--line); background: #fff;
  font-size: .95rem; font-family: inherit; color: var(--ink); transition: border-color .2s, box-shadow .2s; min-height: 48px;
}
.input:focus, .select:focus, .textarea:focus { outline: none; border-color: var(--teal); box-shadow: 0 0 0 3px rgba(25,118,165,.16); }
.input.invalid, .select.invalid, .textarea.invalid { border-color: #DC2626; box-shadow: 0 0 0 3px rgba(220,38,38,.12); }
.field-error { font-size: .78rem; color: #DC2626; min-height: 1em; }
.textarea { min-height: 120px; resize: vertical; }
.help { font-size: .78rem; color: var(--muted); }

/* ---------- Floating actions ---------- */
.floaters { position: fixed; right: 18px; bottom: 18px; z-index: 90; display: flex; flex-direction: column; gap: 12px; }
.float-btn {
  width: 54px; height: 54px; border-radius: 50%; display: grid; place-items: center; color: #fff; cursor: pointer;
  box-shadow: var(--shadow-lg); border: none; transition: transform .2s; position: relative;
}
.float-btn:hover { transform: translateY(-3px) scale(1.05); }
.float-btn svg { width: 26px; height: 26px; }
.float-wa { background: #25D366; }
.float-call { background: var(--teal); }
.float-top { background: var(--midnight); width: 46px; height: 46px; opacity: 0; pointer-events: none; transition: opacity .3s, transform .2s; }
.float-top.show { opacity: 1; pointer-events: auto; }
.float-btn .pulse { position:absolute; inset:0; border-radius:50%; animation: pulse 2s infinite; }
.float-wa .pulse { box-shadow: 0 0 0 0 rgba(37,211,102,.6); }
@keyframes pulse { 70%{ box-shadow: 0 0 0 14px rgba(37,211,102,0);} 100%{ box-shadow: 0 0 0 0 rgba(37,211,102,0);} }

/* ---------- Footer ---------- */
.footer { background: var(--midnight); color: #aeb9c8; }
.footer a { color: #aeb9c8; transition: color .2s; }
.footer a:hover { color: var(--amber); }
.footer h4 { color: #fff; font-size: .8rem; letter-spacing: .12em; text-transform: uppercase; font-weight: 700; }
.foot-social { width: 40px; height: 40px; border-radius: 10px; display: grid; place-items: center; background: rgba(255,255,255,.06); color:#fff; transition: all .2s; }
.foot-social:hover { background: var(--teal); transform: translateY(-2px); }

/* ---------- Toast ---------- */
.toast-wrap { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); z-index: 300; display:flex; flex-direction:column; gap:10px; }
.toast {
  display:flex; align-items:center; gap:10px; background: var(--midnight); color:#fff; padding: 13px 18px; border-radius: 12px;
  box-shadow: var(--shadow-lg); font-size:.9rem; transform: translateY(20px); opacity:0; transition: all .35s var(--ease); max-width: 90vw;
}
.toast.show { transform: translateY(0); opacity: 1; }
.toast svg { width: 20px; height: 20px; flex:none; }
.toast.ok svg { color: #34d399; }
.toast.err svg { color: #f87171; }

/* ---------- Marquee logos ---------- */
.marquee { overflow: hidden; mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.marquee-track { display: flex; gap: 60px; width: max-content; animation: scrollx 32s linear infinite; align-items:center; }
@media (prefers-reduced-motion: reduce){ .marquee-track{ animation: none; } }
@keyframes scrollx { to { transform: translateX(-50%); } }

/* ---------- Misc ---------- */
.divider-fade { height:1px; background: linear-gradient(90deg, transparent, var(--line), transparent); }
.gradient-text { background: linear-gradient(100deg, var(--teal-300), var(--amber)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.kicker-amber { color: var(--amber); }
.link-arrow { display:inline-flex; align-items:center; gap:6px; font-weight:700; color: var(--teal); transition: gap .2s; }
.link-arrow:hover { gap: 11px; }
.prose-clean p { margin-bottom: 1rem; line-height: 1.8; color: #2b3340; }
.prose-clean h2 { font-size: 1.5rem; font-weight: 800; margin: 1.8rem 0 .8rem; }
.prose-clean h3 { font-size: 1.2rem; font-weight: 700; margin: 1.4rem 0 .6rem; }
.prose-clean ul { list-style: disc; padding-left: 1.2rem; margin-bottom: 1rem; color:#2b3340; }
.prose-clean li { margin-bottom: .4rem; line-height: 1.7; }

/* Swiper tweaks */
.swiper { padding-bottom: 8px; }
.swiper-pagination-bullet { background: var(--teal); opacity: .35; }
.swiper-pagination-bullet-active { background: var(--amber); opacity: 1; width: 22px; border-radius: 4px; }
.swiper-button-next, .swiper-button-prev {
  color: var(--midnight); background: #fff; width: 44px; height: 44px; border-radius: 50%; box-shadow: var(--shadow-md);
}
.swiper-button-next:after, .swiper-button-prev:after { font-size: 16px; font-weight: 800; }

/* On mobile the nav arrows are vertically centred and overlap the card title.
   Drop them to the bottom, flanking the pagination dots, so the text stays clear. */
@media (max-width: 640px) {
  #featuredSwiper { padding-bottom: 52px; }
  #featuredSwiper .swiper-button-next,
  #featuredSwiper .swiper-button-prev {
    top: auto; bottom: 2px; margin-top: 0; width: 38px; height: 38px;
  }
  #featuredSwiper .swiper-button-prev { left: 10px; right: auto; }
  #featuredSwiper .swiper-button-next { right: 10px; left: auto; }
  #featuredSwiper .swiper-button-next:after,
  #featuredSwiper .swiper-button-prev:after { font-size: 14px; }
  #featuredSwiper .swiper-pagination { bottom: 16px; }
}

.spin { animation: spin 1s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* AOS fallback (in case CDN blocked) */
[data-aos]{ opacity: 1; }
.aos-init[data-aos]{ opacity: 0; }
.aos-init.aos-animate[data-aos]{ opacity: 1; }
