/* ============================================================
   RankOptim — global.css
   Design System & Reset
   ============================================================ */

/* ── CSS CUSTOM PROPERTIES ─────────────────────────────── */
:root {
  /* Colours */
   --gold:        #C9A96E;
  --gold-light:  #E8CC96;
  --gold-pale:   rgba(201,169,110,0.10);
  --gold-border: rgba(201,169,110,0.22);
  --dark:        #0A0A0A;
  --dark-2:      #111111;
  --dark-3:      #191919;
  --dark-card:   #141414;
  --cream:       #FAF6F0;
  --text:        #E8E2D9;
  --text-muted:  rgba(232,226,217,0.55);
  --font-serif:  'Cormorant Garamond', Georgia, serif;
  --font-sans:   'DM Sans', system-ui, sans-serif;
  --radius:      4px;
  --trans:       0.35s cubic-bezier(0.4,0,0.2,1);
  --max-w:       1240px;
  --black:         #08080A;
  --surface:       #0E0E12;
  --surface-2:     #141418;
  --surface-3:     #1C1C22;
  --gold:          #C9A96E;
  --gold-light:    #E8D4A8;
  --gold-dim:      #8A6F44;
  --gold-glow:     rgba(201, 169, 110, 0.10);
  --gold-border:   rgba(201, 169, 110, 0.18);
  --gold-border-2: rgba(201, 169, 110, 0.35);
  --white:         #F5F2EC;
  --white-dim:     rgba(245, 242, 236, 0.60);
  --white-faint:   rgba(245, 242, 236, 0.12);
  --green-wa:      #25D366;
  --green-wa-glow: rgba(37, 211, 102, 0.18);

  /* Typography */
  --font-display: 'Cormorant Garamond', Georgia, 'Times New Roman', serif;
  --font-body:    'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-mono:    'Courier New', Courier, monospace;

  /* Sizing */
  --nav-h:        72px;
  --nav-h-small:  56px;
  --max-w:        1320px;
  --radius-sm:    4px;
  --radius-md:    8px;
  --radius-lg:    12px;
  --radius-xl:    20px;

  /* Animation */
  --ease:    cubic-bezier(0.23, 1, 0.32, 1);
  --ease-in: cubic-bezier(0.55, 0, 1, 0.45);
}

/* ── RESET ──────────────────────────────────────────────── */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  background-color: var(--black);
  color: var(--white);
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 400;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

/* ── ACCESSIBILITY ──────────────────────────────────────── */
.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}

:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
  border-radius: var(--radius-sm);
}

/* ── TYPOGRAPHY ─────────────────────────────────────────── */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 500;
  line-height: 1.15;
  color: var(--white);
}

h1 { font-size: clamp(38px, 5.5vw, 72px); font-weight: 300; }
h2 { font-size: clamp(28px, 3.5vw, 48px); font-weight: 400; }
h3 { font-size: clamp(22px, 2.5vw, 32px); }
h4 { font-size: clamp(18px, 2vw,   24px); font-family: var(--font-body); }
h5 { font-size: 18px; font-family: var(--font-body); font-weight: 500; }
h6 { font-size: 15px; font-family: var(--font-body); font-weight: 600; }

p  { color: var(--white-dim); margin-bottom: 1em; }
p:last-child { margin-bottom: 0; }

a  { color: inherit; text-decoration: none; }
a:hover { color: var(--gold-light); }

strong { font-weight: 600; color: var(--white); }
em     { font-style: italic; }
small  { font-size: 12px; }

/* ── UTILITY CLASSES ────────────────────────────────────── */
.container {
  width: 100%;
  max-width: var(--max-w);
  margin-left: auto;
  margin-right: auto;
  padding-left: 40px;
  padding-right: 40px;
}

.gold     { color: var(--gold); }
.gold-lt  { color: var(--gold-light); }
.italic   { font-style: italic; }
.display  { font-family: var(--font-display); }
.dim      { color: var(--white-dim); }

/* Section tag / eyebrow */
.section-tag {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--gold);
  border: 1px solid var(--gold-border);
  padding: 6px 18px;
  border-radius: 2px;
  margin-bottom: 20px;
}

/* Gold underline heading decoration */
.heading-line {
  position: relative;
  display: inline-block;
}
.heading-line::after {
  content: '';
  position: absolute;
  bottom: -8px;
  left: 0;
  width: 48px;
  height: 1px;
  background: var(--gold);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 28px;
  border-radius: var(--radius-md);
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
  border: none;
  text-decoration: none;
  transition: transform 0.2s var(--ease),
              box-shadow 0.3s var(--ease);
}
.btn:hover { transform: translateY(-2px); }

.btn-primary {
  background: var(--gold);
  color: var(--black);
  box-shadow: 0 4px 20px rgba(201,169,110,0.2);
  position: relative;
  overflow: hidden;
}
.btn-primary::after {
  content: '';
  position: absolute;
  top: 0; left: -100%;
  width: 60%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
  transition: left 0.5s ease;
}
.btn-primary:hover { box-shadow: 0 8px 32px rgba(201,169,110,0.4); }
.btn-primary:hover::after { left: 160%; }

.btn-ghost {
  background: transparent;
  color: var(--white);
  border: 1px solid var(--gold-border-2);
}
.btn-ghost:hover {
  background: var(--gold-glow);
  border-color: var(--gold);
  color: var(--gold-light);
}

.btn-wa {
  background: rgba(37,211,102,0.1);
  color: var(--green-wa);
  border: 1px solid rgba(37,211,102,0.3);
}
.btn-wa:hover {
  background: rgba(37,211,102,0.18);
  border-color: rgba(37,211,102,0.55);
  box-shadow: 0 8px 24px rgba(37,211,102,0.2);
}

/* Divider */
.gold-divider {
  width: 48px;
  height: 1px;
  background: var(--gold);
  margin: 24px auto;
}

/* Section padding */
.section { padding: 100px 0; }
.section-sm { padding: 64px 0; }
.section-lg { padding: 140px 0; }

/* ── RESPONSIVE ─────────────────────────────────────────── */
@media (max-width: 860px) {
  .container { padding-left: 24px; padding-right: 24px; }
  .section { padding: 72px 0; }
  .section-lg { padding: 96px 0; }
}
@media (max-width: 480px) {
  .container { padding-left: 16px; padding-right: 16px; }
  .section { padding: 56px 0; }
}