/* ═══════════════════════════════════════════════════════════════════════════
   Finanzia Consulting — Base Styles
   Design tokens · Reset · Typography · Utilities · Animations
   ═══════════════════════════════════════════════════════════════════════════ */

/* ── 1. Design Tokens ─────────────────────────────────────────────────────── */
:root {
  /* Brand — Primary palette */
  --c-navy:        #0d1b2e;
  --c-navy-deep:   #081422;
  --c-petrol:      #163554;
  --c-blue:        #1e4976;
  --c-blue-mid:    #2a5f8f;

  /* Brand — Accent */
  --c-gold:        #c4922a;
  --c-gold-light:  #d4a843;
  --c-gold-pale:   #f5edda;
  --c-gold-dim:    rgba(196,146,42,.15);

  /* Neutrals */
  --c-white:       #ffffff;
  --c-bg:          #f6f8fb;
  --c-bg-alt:      #edf0f5;
  --c-surface:     #ffffff;
  --c-text:        #1a2636;
  --c-text-mid:    #2e3f54;
  --c-muted:       #5a6e83;
  --c-light:       #8fa3b8;
  --c-border:      #d5dde8;
  --c-border-light:#e8ecf2;

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

  /* Font sizes */
  --text-xs:   0.75rem;
  --text-sm:   0.875rem;
  --text-base: 1rem;
  --text-md:   1.125rem;
  --text-lg:   1.25rem;
  --text-xl:   1.5rem;
  --text-2xl:  2rem;
  --text-3xl:  2.625rem;
  --text-4xl:  3.375rem;
  --text-5xl:  4.25rem;

  /* Font weights */
  --fw-normal:   400;
  --fw-medium:   500;
  --fw-semibold: 600;
  --fw-bold:     700;

  /* Spacing scale */
  --sp-1:  0.25rem;  --sp-2:  0.5rem;
  --sp-3:  0.75rem;  --sp-4:  1rem;
  --sp-5:  1.25rem;  --sp-6:  1.5rem;
  --sp-8:  2rem;     --sp-10: 2.5rem;
  --sp-12: 3rem;     --sp-16: 4rem;
  --sp-20: 5rem;     --sp-24: 6rem;
  --sp-32: 8rem;

  /* Border radii */
  --r-sm:   4px;
  --r-md:   8px;
  --r-lg:   16px;
  --r-xl:   24px;
  --r-full: 9999px;

  /* Shadows */
  --shadow-xs:  0 1px 3px rgba(13,27,46,.06);
  --shadow-sm:  0 2px 10px rgba(13,27,46,.08);
  --shadow-md:  0 6px 28px rgba(13,27,46,.10);
  --shadow-lg:  0 16px 52px rgba(13,27,46,.13);
  --shadow-gold:0 4px 24px rgba(196,146,42,.22);

  /* Transitions */
  --t-fast: 160ms ease;
  --t-base: 260ms ease;
  --t-slow: 420ms ease;

  /* Layout */
  --max-w:      1200px;
  --max-w-text: 760px;
  --pad-x:      1.5rem;
  --header-h:   80px;
}

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

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  overflow-x: clip; /* clip cuts fixed/transformed elements that escape the viewport */
}

body {
  font-family: var(--font-body);
  font-size: var(--text-base);
  color: var(--c-text);
  background: var(--c-bg);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img, svg, video { 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; }
address { font-style: normal; }
input, textarea, select { font: inherit; }

:focus-visible {
  outline: 2px solid var(--c-gold);
  outline-offset: 3px;
  border-radius: var(--r-sm);
}

/* ── 3. Base Typography ───────────────────────────────────────────────────── */
h1, h2, h3, h4, h5 {
  font-family: var(--font-heading);
  font-weight: var(--fw-bold);
  line-height: 1.18;
  color: var(--c-navy);
  letter-spacing: -.015em;
  overflow-wrap: break-word;
  word-break: break-word;
}

h1 { font-size: var(--text-4xl); }
h2 { font-size: var(--text-3xl); }
h3 { font-size: var(--text-xl); }
h4 { font-size: var(--text-lg); font-weight: var(--fw-semibold); }

p { line-height: 1.78; }
strong { font-weight: var(--fw-semibold); }

/* ── 4. Reveal Animations ─────────────────────────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity var(--t-slow), transform var(--t-slow);
}
.reveal.visible {
  opacity: 1;
  transform: none;
}

.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; }
.reveal-delay-6 { transition-delay: 480ms; }

/* ── 5. Section Labels ─────────────────────────────────────────────────────── */
.label {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--sp-2);
  font-family: var(--font-body);
  font-size: var(--text-xs);
  font-weight: var(--fw-semibold);
  text-transform: uppercase;
  letter-spacing: .15em;
  color: var(--c-gold);
  margin-bottom: var(--sp-4);
  max-width: 100%;
}

.label::before {
  content: '';
  width: 22px;
  height: 1px;
  background: var(--c-gold);
  flex-shrink: 0;
}

.label--white {
  color: rgba(255,255,255,.6);
}
.label--white::before {
  background: rgba(255,255,255,.4);
}

/* ── 6. Section Header ────────────────────────────────────────────────────── */
.section-hd {
  margin-bottom: var(--sp-12);
}
.section-hd--center {
  text-align: center;
}

.section-title {
  font-family: var(--font-heading);
  font-size: var(--text-3xl);
  font-weight: var(--fw-bold);
  color: var(--c-navy);
  line-height: 1.2;
  letter-spacing: -.015em;
  margin-bottom: var(--sp-4);
}

.section-title--white { color: var(--c-white); }

.section-subtitle {
  font-size: var(--text-md);
  color: var(--c-muted);
  line-height: 1.78;
  max-width: 600px;
}

.section-subtitle--white { color: rgba(255,255,255,.65); }

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

/* Gold word highlight */
.text-gold {
  color: var(--c-gold);
}

/* ── 7. Buttons ───────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--sp-2);
  padding: 0.875rem var(--sp-6);
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: var(--fw-semibold);
  letter-spacing: .04em;
  text-transform: uppercase;
  border-radius: var(--r-sm);
  white-space: nowrap;
  line-height: 1;
  cursor: pointer;
  transition: background var(--t-fast), color var(--t-fast),
              box-shadow var(--t-fast), transform var(--t-fast),
              border-color var(--t-fast);
}

.btn:hover  { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }

.btn--gold {
  background: var(--c-gold);
  color: var(--c-navy-deep);
  border: 2px solid var(--c-gold);
  box-shadow: 0 2px 12px rgba(196,146,42,.25);
}
.btn--gold:hover {
  background: var(--c-gold-light);
  border-color: var(--c-gold-light);
  box-shadow: var(--shadow-gold);
}

.btn--outline-white {
  background: transparent;
  color: var(--c-white);
  border: 1.5px solid rgba(255,255,255,.45);
}
.btn--outline-white:hover {
  background: rgba(255,255,255,.08);
  border-color: rgba(255,255,255,.75);
}

.btn--outline-navy {
  background: transparent;
  color: var(--c-navy);
  border: 1.5px solid var(--c-border);
}
.btn--outline-navy:hover {
  border-color: var(--c-gold);
  color: var(--c-gold);
}

.btn--whatsapp {
  background: #25d366;
  color: #fff;
  border: 2px solid #25d366;
  box-shadow: 0 2px 12px rgba(37,211,102,.25);
}
.btn--whatsapp:hover {
  background: #1da851;
  border-color: #1da851;
  box-shadow: 0 4px 20px rgba(37,211,102,.38);
}

.btn--lg {
  padding: 1.05rem var(--sp-8);
  font-size: var(--text-base);
}

.btn--sm {
  padding: 0.6rem var(--sp-4);
  font-size: var(--text-xs);
}

/* Inline icon */
.btn svg { flex-shrink: 0; }

/* ── 8. Decorative Dividers ───────────────────────────────────────────────── */
.gold-rule {
  display: block;
  width: 48px;
  height: 3px;
  background: linear-gradient(90deg, var(--c-gold), var(--c-gold-light));
  border-radius: var(--r-full);
  margin-bottom: var(--sp-6);
}

.gold-rule--center { margin-inline: auto; }
