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

:root {
  --void:    #080C14;
  --ink:     #111827;
  --cream:   #F5F3EE;
  --warm:    #FAFAF7;
  --indigo:  #4F46E5;
  --indigo2: #6366F1;
  --gold:    #C8A96E;
  --mid:     #6B7280;
  --border:  #E8E6E1;
  --white:   #FFFFFF;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'DM Sans', sans-serif;
  background: var(--cream);
  color: var(--ink);
  line-height: 1.6;
  overflow-x: hidden;
}

/* ── NAVIGATION ── */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 200;
  padding: 0 6vw;
  height: 68px;
  display: flex; align-items: center; justify-content: space-between;
  transition: background 0.4s, border-color 0.4s;
}
nav.scrolled {
  background: rgba(8,12,20,0.96);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.logo {
  font-family: 'DM Serif Display', serif;
  font-size: 1.5rem;
  color: var(--white);
  text-decoration: none;
  letter-spacing: -0.01em;
}
.logo .dot { color: var(--gold); }
.nav-links { display: flex; align-items: center; gap: 2.5rem; list-style: none; }
.nav-links a {
  color: rgba(255,255,255,0.65);
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 400;
  letter-spacing: 0.01em;
  transition: color 0.2s;
}
.nav-links a:hover { color: var(--white); }
.nav-cta {
  background: var(--indigo) !important;
  color: var(--white) !important;
  padding: 0.5rem 1.25rem !important;
  border-radius: 6px;
  font-weight: 500 !important;
  transition: background 0.2s !important;
}
.nav-cta:hover { background: var(--indigo2) !important; }

/* Non-transparent nav for interior pages (privacy/terms) */
body.subpage nav {
  background: rgba(8,12,20,0.96);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(255,255,255,0.06);
}

/* ── HERO ── */
.hero {
  min-height: 100vh;
  background: var(--void);
  display: flex; flex-direction: column;
  justify-content: center;
  padding: 140px 6vw 100px;
  position: relative;
  overflow: hidden;
}
.hero-bg {
  position: absolute; inset: 0;
  background-image: url('../img/singapore-skyline.jpg');
  background-size: cover;
  background-position: center 60%;
  opacity: 0.16;
  filter: grayscale(30%);
  pointer-events: none;
}

/* Ambient glow */
.hero::before {
  content: '';
  position: absolute;
  top: -20%; left: 30%;
  width: 60vw; height: 60vw;
  background: radial-gradient(ellipse, rgba(79,70,229,0.28) 0%, transparent 65%);
  pointer-events: none;
}
.hero::after {
  content: '';
  position: absolute;
  bottom: -10%; right: -5%;
  width: 40vw; height: 40vw;
  background: radial-gradient(ellipse, rgba(200,169,110,0.12) 0%, transparent 65%);
  pointer-events: none;
}

.hero-inner { max-width: 1160px; margin: 0 auto; width: 100%; position: relative; z-index: 1; }

.hero-tag {
  display: inline-flex; align-items: center; gap: 0.5rem;
  font-size: 0.75rem; font-weight: 500; letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 2.5rem;
}
.hero-tag::before {
  content: ''; display: block;
  width: 24px; height: 1px; background: var(--gold);
}
.hero-tag i { font-size: 0.8rem; }

.hero-headline {
  font-family: 'DM Serif Display', serif;
  font-size: clamp(3.5rem, 7vw, 6.5rem);
  line-height: 1.0;
  letter-spacing: -0.02em;
  color: var(--white);
  margin-bottom: 2rem;
  max-width: 820px;
}
.hero-headline em {
  font-style: italic;
  color: transparent;
  -webkit-text-stroke: 1px rgba(255,255,255,0.45);
}
.hero-headline .accent { color: var(--indigo2); font-style: normal; }

.hero-sub {
  font-size: 1.15rem;
  color: rgba(255,255,255,0.5);
  max-width: 520px;
  line-height: 1.75;
  font-weight: 300;
  margin-bottom: 3rem;
}

.hero-actions { display: flex; gap: 1rem; flex-wrap: wrap; }
.btn-primary {
  background: var(--indigo);
  color: var(--white);
  padding: 0.9rem 2rem;
  border-radius: 8px;
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  transition: background 0.2s, transform 0.2s;
  display: inline-flex; align-items: center; gap: 0.5rem;
  border: none; cursor: pointer;
}
.btn-primary:hover { background: var(--indigo2); transform: translateY(-1px); }
.btn-ghost {
  color: rgba(255,255,255,0.6);
  padding: 0.9rem 2rem;
  border-radius: 8px;
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 400;
  border: 1px solid rgba(255,255,255,0.12);
  transition: border-color 0.2s, color 0.2s;
}
.btn-ghost:hover { border-color: rgba(255,255,255,0.35); color: var(--white); }

/* Scroll indicator */
.scroll-hint {
  position: absolute;
  bottom: 3rem; left: 6vw;
  display: flex; align-items: center; gap: 0.75rem;
  font-size: 0.75rem; letter-spacing: 0.1em; text-transform: uppercase;
  color: rgba(255,255,255,0.25);
}
.scroll-line {
  width: 40px; height: 1px;
  background: rgba(255,255,255,0.15);
  position: relative; overflow: hidden;
}
.scroll-line::after {
  content: '';
  position: absolute; top: 0; left: -100%;
  width: 100%; height: 100%;
  background: var(--gold);
  animation: slide 2s ease-in-out infinite;
}
@keyframes slide { 0%{left:-100%} 100%{left:100%} }

/* ── MARQUEE ── */
.marquee-wrap {
  background: var(--indigo);
  padding: 1rem 0;
  overflow: hidden;
  white-space: nowrap;
}
.marquee-track {
  display: inline-flex;
  animation: marquee 28s linear infinite;
}
.marquee-track span {
  font-size: 0.8rem; font-weight: 500; letter-spacing: 0.08em;
  text-transform: uppercase; color: rgba(255,255,255,0.8);
  padding: 0 2.5rem;
}
.marquee-track span.sep { color: rgba(255,255,255,0.3); padding: 0; }
@keyframes marquee { 0%{transform:translateX(0)} 100%{transform:translateX(-50%)} }

/* ── SECTIONS ── */
section { padding: 110px 6vw; }
.inner { max-width: 1160px; margin: 0 auto; }

.eyebrow {
  font-size: 0.72rem; font-weight: 600; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--indigo);
  margin-bottom: 1.25rem;
  display: flex; align-items: center; gap: 0.75rem;
}
.eyebrow::before {
  content: ''; display: block;
  width: 18px; height: 2px; background: var(--indigo);
  flex-shrink: 0;
}

h2 {
  font-family: 'DM Serif Display', serif;
  font-size: clamp(2.25rem, 4vw, 3.25rem);
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin-bottom: 1.25rem;
  color: var(--ink);
}
.sub {
  font-size: 1.05rem; color: var(--mid);
  max-width: 520px; line-height: 1.75;
  font-weight: 300; margin-bottom: 4rem;
}

/* ── WHAT WE DO ── */
#services { background: var(--warm); }

.services-layout {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 5rem;
  align-items: start;
}
.services-left { position: sticky; top: 100px; }
.services-left .sub { margin-bottom: 2rem; }
.services-left .btn-primary { margin-top: 1rem; }

.services-right {
  display: flex; flex-direction: column; gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
}
.svc {
  background: var(--warm);
  padding: 2rem 2.25rem;
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 1.25rem;
  align-items: start;
  transition: background 0.2s;
  cursor: default;
}
.svc:hover { background: var(--white); }
.svc-icon {
  width: 48px; height: 48px;
  border-radius: 10px;
  background: var(--void);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.15rem;
  color: var(--gold);
  flex-shrink: 0;
  transition: background 0.2s, color 0.2s;
}
.svc:hover .svc-icon { background: var(--indigo); color: var(--white); }
.svc h3 {
  font-family: 'DM Serif Display', serif;
  font-size: 1.15rem;
  letter-spacing: -0.01em;
  margin-bottom: 0.4rem;
  color: var(--ink);
}
.svc p { font-size: 0.875rem; color: var(--mid); line-height: 1.65; font-weight: 300; }

/* ── HOW WE WORK ── */
#approach { background: var(--void); }
#approach h2 { color: var(--white); }
#approach .eyebrow { color: var(--gold); }
#approach .eyebrow::before { background: var(--gold); }
#approach .sub { color: rgba(255,255,255,0.45); max-width: 100%; margin-bottom: 5rem; }

.approach-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 14px;
  overflow: hidden;
}
.approach-cell {
  padding: 2.5rem 2rem;
  border-right: 1px solid rgba(255,255,255,0.06);
  transition: background 0.2s;
}
.approach-cell:last-child { border-right: none; }
.approach-cell:hover { background: rgba(79,70,229,0.12); }
.approach-letter {
  font-family: 'DM Serif Display', serif;
  font-size: 3.5rem;
  color: rgba(255,255,255,0.06);
  line-height: 1;
  margin-bottom: 1.25rem;
  display: block;
}
.approach-cell h4 {
  font-size: 0.95rem; font-weight: 600;
  color: var(--white); margin-bottom: 0.75rem;
  letter-spacing: -0.01em;
}
.approach-cell p {
  font-size: 0.825rem; color: rgba(255,255,255,0.4);
  line-height: 1.65; font-weight: 300;
}

/* ── GALLERY ── */
#gallery { background: var(--warm); }
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
}
.gallery-item {
  position: relative;
  display: block;
  border-radius: 14px;
  overflow: hidden;
  aspect-ratio: 4 / 5;
  border: 1px solid var(--border);
}
.gallery-item img {
  width: 100%; height: 100%; object-fit: cover;
  display: block;
  transition: transform 0.5s ease;
}
.gallery-item:hover img { transform: scale(1.06); }
.gallery-item::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(8,12,20,0.75) 0%, transparent 45%);
}
.gallery-item .gallery-caption {
  position: absolute; left: 1rem; bottom: 0.9rem; z-index: 2;
  color: var(--white);
  font-size: 0.8rem; font-weight: 500;
  letter-spacing: 0.01em;
}
.gallery-item .gallery-zoom {
  position: absolute; top: 0.9rem; right: 0.9rem; z-index: 2;
  width: 32px; height: 32px; border-radius: 50%;
  background: rgba(8,12,20,0.55);
  color: var(--white);
  display: flex; align-items: center; justify-content: center;
  font-size: 0.8rem;
}

/* ── WHO WE SERVE ── */
#clients { background: var(--cream); }

.clients-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}
.client-tile {
  background: var(--warm);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 2.5rem;
  transition: border-color 0.25s, transform 0.25s, box-shadow 0.25s;
}
.client-tile:hover {
  border-color: var(--indigo);
  transform: translateY(-3px);
  box-shadow: 0 16px 48px rgba(79,70,229,0.1);
}
.client-tag {
  font-size: 0.7rem; font-weight: 600; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--gold);
  margin-bottom: 1rem; display: flex; align-items: center; gap: 0.5rem;
}
.client-tile h3 {
  font-family: 'DM Serif Display', serif;
  font-size: 1.35rem;
  letter-spacing: -0.01em;
  margin-bottom: 0.75rem;
  line-height: 1.2;
}
.client-tile p {
  font-size: 0.875rem; color: var(--mid);
  line-height: 1.7; font-weight: 300;
}

/* ── WHY ZEPAPA ── */
#why { background: var(--warm); }
.why-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
}
.why-cell {
  background: var(--warm);
  padding: 2.5rem 2rem;
  transition: background 0.2s;
}
.why-cell:hover { background: var(--white); }
.why-num {
  font-family: 'DM Serif Display', serif;
  font-size: 2.5rem;
  color: var(--indigo);
  line-height: 1;
  margin-bottom: 1rem;
}
.why-cell h4 {
  font-size: 0.95rem; font-weight: 600;
  color: var(--ink); margin-bottom: 0.5rem;
}
.why-cell p {
  font-size: 0.85rem; color: var(--mid);
  line-height: 1.65; font-weight: 300;
}

/* ── CTA BANNER ── */
#cta {
  background: var(--void);
  padding: 120px 6vw;
  text-align: center;
  position: relative; overflow: hidden;
}
#cta::before {
  content: '';
  position: absolute; top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 80vw; height: 60vh;
  background: radial-gradient(ellipse, rgba(79,70,229,0.2) 0%, transparent 65%);
  pointer-events: none;
}
#cta .inner { position: relative; z-index: 1; }
#cta h2 {
  color: var(--white);
  font-size: clamp(2.5rem, 5vw, 4.5rem);
  max-width: 740px; margin: 0 auto 1.5rem;
}
#cta h2 em { font-style: italic; color: rgba(255,255,255,0.35); }
#cta p {
  color: rgba(255,255,255,0.45);
  font-size: 1.05rem; font-weight: 300;
  max-width: 480px; margin: 0 auto 3rem;
  line-height: 1.75;
}
.cta-actions { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }

/* ── FOOTER ── */
footer {
  background: #050709;
  padding: 3rem 6vw 2.5rem;
  border-top: 1px solid rgba(255,255,255,0.05);
}
.footer-top {
  display: flex; justify-content: space-between;
  align-items: flex-start;
  padding-bottom: 2.5rem;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  margin-bottom: 2rem;
  flex-wrap: wrap; gap: 2rem;
}
.footer-logo {
  font-family: 'DM Serif Display', serif;
  font-size: 1.5rem; color: var(--white);
  text-decoration: none; display: block;
  margin-bottom: 0.75rem;
}
.footer-logo .dot { color: var(--gold); }
.footer-tagline {
  font-size: 0.825rem; color: rgba(255,255,255,0.3);
  font-weight: 300; max-width: 220px; line-height: 1.5;
}
.footer-links { display: flex; gap: 4rem; flex-wrap: wrap; }
.footer-col h5 {
  font-size: 0.72rem; font-weight: 600; letter-spacing: 0.1em;
  text-transform: uppercase; color: rgba(255,255,255,0.3);
  margin-bottom: 1rem;
}
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 0.5rem; }
.footer-col a {
  font-size: 0.85rem; color: rgba(255,255,255,0.5);
  text-decoration: none; transition: color 0.2s;
}
.footer-col a:hover { color: var(--white); }
.footer-bottom {
  display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: 1rem;
  font-size: 0.78rem; color: rgba(255,255,255,0.2);
}
.footer-bottom a { color: rgba(255,255,255,0.3); text-decoration: none; transition: color 0.2s; }
.footer-bottom a:hover { color: rgba(255,255,255,0.6); }

/* ── LEGAL PAGES (privacy.php / terms.php) ── */
/* Uses the same fonts, colors and background as the main site. */
.legal-hero {
  background: var(--void);
  padding: 160px 6vw 80px;
  position: relative; overflow: hidden;
}
.legal-hero::before {
  content: '';
  position: absolute; top: -30%; left: 20%;
  width: 50vw; height: 50vw;
  background: radial-gradient(ellipse, rgba(79,70,229,0.22) 0%, transparent 65%);
  pointer-events: none;
}
.legal-hero .inner { position: relative; z-index: 1; max-width: 820px; }
.page-label {
  font-size: 0.72rem; font-weight: 600; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--gold);
  margin-bottom: 1.25rem; display: flex; align-items: center; gap: 0.75rem;
}
.page-label::before { content: ''; display: block; width: 18px; height: 2px; background: var(--gold); }
.legal-hero h1 {
  font-family: 'DM Serif Display', serif;
  font-size: clamp(2.5rem, 5vw, 3.75rem);
  letter-spacing: -0.02em;
  color: var(--white);
  margin-bottom: 1rem;
}
.legal-hero .last-updated {
  font-size: 0.85rem; color: rgba(255,255,255,0.4); font-weight: 300;
}

.legal-body { background: var(--cream); padding: 80px 6vw 110px; }
.legal-wrap { max-width: 780px; margin: 0 auto; }

.legal-wrap h2 {
  font-size: 1.3rem;
  margin: 2.75rem 0 1rem;
}
.legal-wrap h2:first-child { margin-top: 0; }
.legal-wrap h3 {
  font-family: 'DM Sans', sans-serif;
  font-size: 1rem; font-weight: 600;
  margin: 1.5rem 0 0.5rem; color: var(--ink);
}
.legal-wrap p {
  color: var(--mid); margin-bottom: 1rem;
  font-size: 0.95rem; font-weight: 300; line-height: 1.8;
}
.legal-wrap ul { padding-left: 1.5rem; margin-bottom: 1.25rem; }
.legal-wrap ul li {
  color: var(--mid); font-size: 0.95rem; margin-bottom: 0.5rem;
  font-weight: 300; line-height: 1.7;
}
.legal-wrap strong { color: var(--ink); font-weight: 600; }
.legal-wrap a { color: var(--indigo); }

.legal-table-wrap { overflow-x: auto; margin: 1.5rem 0; }
.legal-wrap table {
  width: 100%; border-collapse: collapse; font-size: 0.85rem;
  background: var(--warm); border-radius: 10px; overflow: hidden;
  border: 1px solid var(--border);
}
.legal-wrap th {
  background: var(--void); color: var(--white);
  padding: 0.85rem 1.1rem; text-align: left; font-weight: 500;
  font-size: 0.78rem; letter-spacing: 0.02em;
}
.legal-wrap td {
  padding: 0.85rem 1.1rem; border-bottom: 1px solid var(--border);
  color: var(--mid); vertical-align: top;
}
.legal-wrap tr:last-child td { border-bottom: none; }
.legal-wrap tr:nth-child(even) td { background: rgba(0,0,0,0.015); }

.highlight-box {
  background: rgba(79,70,229,0.06);
  border-left: 3px solid var(--indigo);
  padding: 1.5rem 1.75rem;
  border-radius: 0 12px 12px 0;
  margin: 0 0 1.5rem;
}
.highlight-box p { margin: 0; color: var(--ink); font-size: 0.92rem; font-weight: 400; }

/* ── RESPONSIVE ── */
@media (max-width: 900px) {
  .services-layout { grid-template-columns: 1fr; gap: 3rem; }
  .services-left { position: static; }
  .approach-grid { grid-template-columns: 1fr 1fr; }
  .gallery-grid { grid-template-columns: 1fr 1fr; }
  .clients-grid { grid-template-columns: 1fr; }
  .why-grid { grid-template-columns: 1fr 1fr; }
  .nav-links { display: none; }
  .footer-links { gap: 2rem; }
}
@media (max-width: 600px) {
  .approach-grid, .why-grid, .gallery-grid { grid-template-columns: 1fr; }
  .hero-headline { font-size: 3rem; }
}
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
}
