/* ============================================================
   ROOT.CSS — Design tokens, reset, base styles, utilities
   All CSS custom properties live here. Import this first.
   ============================================================ */

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

:root {
  /* ── Colors ── */
  --color-primary:        #0A2342;
  --color-primary-light:  #123464;
  --color-primary-dark:   #061629;
  --color-accent:         #D4A843;
  --color-accent-light:   #F2C96B;
  --color-accent-dark:    #B8921E;
  --color-surface:        #FFFFFF;
  --color-surface-alt:    #F4F7FB;
  --color-surface-dark:   #081B33;
  --color-text:           #1A1A2E;
  --color-text-muted:     #5A6A7A;
  --color-text-light:     #FFFFFF;
  --color-border:         #D9E3ED;
  --color-border-dark:    rgba(255, 255, 255, 0.12);
  --color-success:        #2ECC71;
  --color-overlay:        rgba(8, 27, 51, 0.60);
  --color-overlay-strong: rgba(8, 27, 51, 0.80);

  /* ── Typography ── */
  --font-heading: 'Playfair Display', Georgia, serif;
  --font-body:    'Inter', system-ui, -apple-system, sans-serif;

  --text-xs:   0.75rem;
  --text-sm:   0.875rem;
  --text-base: 1rem;
  --text-lg:   1.125rem;
  --text-xl:   1.25rem;
  --text-2xl:  1.5rem;
  --text-3xl:  1.875rem;
  --text-4xl:  2.25rem;
  --text-5xl:  3rem;
  --text-6xl:  3.75rem;
  --text-7xl:  4.5rem;

  --weight-light:    300;
  --weight-regular:  400;
  --weight-medium:   500;
  --weight-semibold: 600;
  --weight-bold:     700;

  --leading-tight:   1.15;
  --leading-snug:    1.35;
  --leading-normal:  1.6;
  --leading-relaxed: 1.75;

  /* ── Spacing ── */
  --space-1:  4px;
  --space-2:  8px;
  --space-3:  12px;
  --space-4:  16px;
  --space-5:  20px;
  --space-6:  24px;
  --space-8:  32px;
  --space-10: 40px;
  --space-12: 48px;
  --space-16: 64px;
  --space-20: 80px;
  --space-24: 96px;
  --space-32: 128px;

  /* ── Layout ── */
  --container-max:  1200px;
  --container-wide: 1400px;
  --nav-height:     76px;

  /* ── Border Radius ── */
  --radius-sm:   6px;
  --radius-md:   12px;
  --radius-lg:   20px;
  --radius-xl:   32px;
  --radius-pill: 999px;

  /* ── Shadows ── */
  --shadow-xs:     0 1px 3px rgba(10, 35, 66, 0.06);
  --shadow-sm:     0 2px 8px rgba(10, 35, 66, 0.09);
  --shadow-md:     0 8px 24px rgba(10, 35, 66, 0.12);
  --shadow-lg:     0 16px 48px rgba(10, 35, 66, 0.15);
  --shadow-xl:     0 32px 72px rgba(10, 35, 66, 0.18);
  --shadow-accent: 0 8px 28px rgba(212, 168, 67, 0.40);

  /* ── 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);

  --duration-fast:  150ms;
  --duration-base:  300ms;
  --duration-slow:  500ms;
  --duration-xslow: 800ms;

  --transition-fast: all var(--duration-fast) var(--ease-out);
  --transition-base: all var(--duration-base) var(--ease-out);
  --transition-slow: all var(--duration-slow) var(--ease-out);
}

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

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

body {
  font-family: var(--font-body);
  font-size: var(--text-base);
  font-weight: var(--weight-regular);
  line-height: var(--leading-normal);
  color: var(--color-text);
  background-color: var(--color-surface);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

/* ── Layout Utilities ── */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: var(--space-6);
}

.container--wide {
  max-width: var(--container-wide);
}

.section {
  padding-block: var(--space-24);
}

.section--sm  { padding-block: var(--space-16); }
.section--lg  { padding-block: var(--space-32); }

/* ── Section Typography ── */
.section-label {
  display: inline-block;
  font-size: var(--text-xs);
  font-weight: var(--weight-semibold);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--color-accent);
  margin-bottom: var(--space-3);
}

.section-title {
  font-family: var(--font-heading);
  font-size: clamp(var(--text-3xl), 4vw, var(--text-5xl));
  font-weight: var(--weight-bold);
  line-height: var(--leading-tight);
  color: var(--color-primary);
}

.section-title--light { color: var(--color-text-light); }

.section-subtitle {
  margin-top: var(--space-4);
  font-size: var(--text-lg);
  color: var(--color-text-muted);
  line-height: var(--leading-relaxed);
  max-width: 62ch;
}

.section-subtitle--light { color: rgba(255, 255, 255, 0.72); }

.section-header { margin-bottom: var(--space-12); }

.section-header--center {
  text-align: center;
}

.section-header--center .section-subtitle {
  margin-inline: auto;
}

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: var(--weight-semibold);
  letter-spacing: 0.02em;
  padding: 13px var(--space-6);
  border-radius: var(--radius-pill);
  border: 2px solid transparent;
  transition: var(--transition-base);
  cursor: pointer;
  white-space: nowrap;
}

.btn--primary {
  background: var(--color-accent);
  color: var(--color-primary);
  border-color: var(--color-accent);
  box-shadow: var(--shadow-accent);
}

.btn--primary:hover {
  background: var(--color-accent-dark);
  border-color: var(--color-accent-dark);
  transform: translateY(-2px);
  box-shadow: 0 14px 42px rgba(212, 168, 67, 0.50);
}

.btn--outline-light {
  background: transparent;
  color: var(--color-text-light);
  border-color: rgba(255, 255, 255, 0.45);
}

.btn--outline-light:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: var(--color-text-light);
}

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

.btn--outline-dark:hover {
  background: var(--color-primary);
  color: var(--color-text-light);
}

.btn--lg {
  font-size: var(--text-base);
  padding: 16px var(--space-8);
}

/* ── Gold Accent Line ── */
.accent-line {
  display: block;
  width: 48px;
  height: 3px;
  background: linear-gradient(90deg, var(--color-accent), var(--color-accent-light));
  border-radius: var(--radius-pill);
  margin-top: var(--space-4);
}

.accent-line--center { margin-inline: auto; }

/* ── Scroll Reveal ── */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition:
    opacity var(--duration-xslow) var(--ease-out),
    transform var(--duration-xslow) var(--ease-out);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal--delay-1 { transition-delay: 80ms; }
.reveal--delay-2 { transition-delay: 160ms; }
.reveal--delay-3 { transition-delay: 240ms; }
.reveal--delay-4 { transition-delay: 320ms; }
.reveal--delay-5 { transition-delay: 400ms; }

/* ── Custom Scrollbar ── */
::-webkit-scrollbar               { width: 5px; }
::-webkit-scrollbar-track         { background: var(--color-surface-alt); }
::-webkit-scrollbar-thumb         { background: var(--color-border); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover   { background: var(--color-text-muted); }

/* ── Responsive base ── */
@media (max-width: 640px) {
  :root {
    --nav-height: 64px;
  }

  .container {
    padding-inline: var(--space-4);
  }

  .section {
    padding-block: var(--space-16);
  }

  .section--lg {
    padding-block: var(--space-20);
  }
}
