/* ============================================================
   BONFORTE INVESTMENTS PTE LTD — Design System
   main.css — Tokens, Reset, Typography, Base
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,500;0,600;0,700;1,400;1,500&family=Inter:wght@300;400;500;600&family=Cormorant+Garamond:ital,wght@0,300;0,400;0,500;1,300;1,400&display=swap');

/* ── Design Tokens ───────────────────────────────────────── */
:root {
  --navy:        #0D1B2A;
  --navy-mid:    #162436;
  --navy-light:  #1E3048;
  --charcoal:    #1E2832;
  --white:       #FFFFFF;
  --off-white:   #F8F6F2;
  --warm-gray:   #F4F1EC;
  --cool-gray:   #8A9BAD;
  --gold:        #C9A84C;
  --gold-light:  #E2C97E;
  --gold-dim:    #A88835;
  --text-light:  rgba(255,255,255,0.85);
  --text-muted:  rgba(255,255,255,0.45);
  --border-gold: rgba(201,168,76,0.25);
  --border-white:rgba(255,255,255,0.12);

  /* Typography */
  --font-serif:  'Playfair Display', 'Georgia', serif;
  --font-body:   'Inter', system-ui, sans-serif;
  --font-display:'Cormorant Garamond', 'Georgia', serif;

  /* Spacing */
  --space-xs:  0.5rem;
  --space-sm:  1rem;
  --space-md:  2rem;
  --space-lg:  4rem;
  --space-xl:  6rem;
  --space-2xl: 10rem;

  /* Transitions */
  --ease-out:  cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in:   cubic-bezier(0.7, 0, 0.84, 0);
  --ease-inout:cubic-bezier(0.65, 0, 0.35, 1);
  --dur-fast:  200ms;
  --dur-med:   400ms;
  --dur-slow:  700ms;
}

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

html {
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  font-weight: 400;
  background: #FFFFFF;
  color: var(--navy);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Inner pages always have a white bg and dark text */
body.inner-page {
  background: #FFFFFF;
  color: var(--navy);
}

/* Homepage keeps the dark navy stage bg */
body.home-page {
  background: var(--navy);
  color: var(--white);
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { cursor: pointer; border: none; background: none; font: inherit; }
ul, ol { list-style: none; }
input, textarea, select { font: inherit; }

/* ── Typography Scale ────────────────────────────────────── */
.t-display {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: clamp(3rem, 6vw, 7rem);
  line-height: 1.05;
  letter-spacing: -0.01em;
}

.t-hero {
  font-family: var(--font-serif);
  font-weight: 500;
  font-size: clamp(2.2rem, 4.5vw, 5.5rem);
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.t-h1 {
  font-family: var(--font-serif);
  font-weight: 500;
  font-size: clamp(1.8rem, 3.5vw, 3.5rem);
  line-height: 1.15;
  letter-spacing: -0.01em;
}

.t-h2 {
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: clamp(1.4rem, 2.5vw, 2.4rem);
  line-height: 1.25;
}

.t-h3 {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: clamp(0.9rem, 1.2vw, 1.05rem);
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.t-body {
  font-family: var(--font-body);
  font-weight: 300;
  font-size: clamp(0.95rem, 1.2vw, 1.1rem);
  line-height: 1.75;
}

.t-caption {
  font-family: var(--font-body);
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 500;
}

/* ── Color Utilities ─────────────────────────────────────── */
.text-gold      { color: var(--gold); }
.text-muted     { color: var(--cool-gray); }
.text-light     { color: var(--text-light); }
.text-white     { color: var(--white); }
.bg-navy        { background: var(--navy); }
.bg-warm-gray   { background: var(--warm-gray); color: var(--charcoal); }
.bg-white       { background: var(--white); color: var(--charcoal); }

/* ── Gold Accent Line ────────────────────────────────────── */
.gold-rule {
  display: block;
  width: 3rem;
  height: 1px;
  background: var(--gold);
  margin: var(--space-sm) 0;
}

.gold-rule--center { margin-left: auto; margin-right: auto; }

/* ── Primary Button ──────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  font-family: var(--font-body);
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 0.85em 2.2em;
  border: 1px solid;
  transition: background var(--dur-fast) var(--ease-out),
              color    var(--dur-fast) var(--ease-out),
              transform var(--dur-fast) var(--ease-out);
}

.btn--gold {
  background: var(--gold);
  border-color: var(--gold);
  color: var(--navy);
}

.btn--gold:hover {
  background: var(--gold-light);
  border-color: var(--gold-light);
  transform: translateY(-1px);
}

.btn--outline {
  background: transparent;
  border-color: rgba(255,255,255,0.4);
  color: var(--white);
}

.btn--outline:hover {
  border-color: var(--gold);
  color: var(--gold);
  transform: translateY(-1px);
}

.btn--outline-dark {
  background: transparent;
  border-color: var(--navy);
  color: var(--navy);
}

.btn--outline-dark:hover {
  background: var(--navy);
  color: var(--white);
}

/* ── Section Wrapper ─────────────────────────────────────── */
.section {
  padding: var(--space-xl) var(--space-md);
  max-width: 1280px;
  margin-left: auto;
  margin-right: auto;
}

.section--wide { max-width: 1440px; }
.section--narrow { max-width: 860px; }

/* ── Inner Page Hero ─────────────────────────────────────── */
.page-hero {
  background: var(--navy-mid);
  padding: 10rem var(--space-md) var(--space-xl);
  border-bottom: 1px solid var(--border-gold);
}

.page-hero__label {
  display: flex;
  align-items: center;
  gap: 1rem;
  color: var(--gold);
  margin-bottom: var(--space-sm);
}

.page-hero__label::before {
  content: '';
  display: block;
  width: 2rem;
  height: 1px;
  background: var(--gold);
}

/* ── Dividers ────────────────────────────────────────────── */
.divider {
  border: none;
  border-top: 1px solid var(--border-white);
  margin: var(--space-lg) 0;
}

.divider--gold { border-color: var(--border-gold); }

/* ── Fade-in on scroll (used on inner pages) ─────────────── */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out);
}
.reveal.is-visible {
  opacity: 1;
  transform: none;
}
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.35s; }
.reveal-delay-4 { transition-delay: 0.5s; }

/* ── Reduced Motion ──────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .reveal { opacity: 1; transform: none; }
}
