/* ================================================================
   LeoFolio — main.css  v3.0
   Global variables, reset, base typography, shared utilities
   ================================================================ */

/* ── CSS VARIABLES ─────────────────────────────────────────────── */
:root {
  /* Canonical LeoFolio palette plus compatibility aliases. */
  --lf-navy:      #0E1E33;
  --lf-gold:      #C8A568;
  --lf-charcoal:  #2B2B2B;
  --lf-ivory:     #F6F1E9;
  --green-brand:  var(--lf-gold);
  --green:        var(--lf-navy);
  --green-dark:   #081522;
  --green-xdark:  var(--lf-navy);
  --green-light:  #F1E8D8;
  --green-pale:   var(--lf-ivory);
  --orange:       var(--lf-gold);
  --orange-light: #F1E8D8;

  /* Dark Section Tokens */
  --dark-bg:         var(--lf-navy);
  --dark-card:       rgba(255,255,255,0.07);
  --dark-card-hover: rgba(255,255,255,0.11);
  --dark-text:       var(--lf-ivory);
  --dark-text-2:     rgba(246, 241, 233, 0.76);
  --dark-text-3:     rgba(246, 241, 233, 0.50);
  --dark-border:     rgba(200,165,104,0.20);
  --dark-green:      #D9C28F;

  /* UI Colors */
  --bg:      #F6F1E9;
  --card:    var(--lf-ivory);
  --text:    var(--lf-charcoal);
  --text-2:  #51565C;
  --text-3:  #70757A;
  --border:  #DDD3C3;
  --border-2:#C8B99F;

  /* Layout */
  --radius:    14px;
  --radius-lg: 22px;
  --radius-xl: 28px;
  --max-width: 1200px;
  --shadow:    0 2px 16px rgba(14, 30, 51, 0.07);
  --shadow-md: 0 8px 32px rgba(14, 30, 51, 0.10);
  --shadow-lg: 0 20px 60px rgba(14, 30, 51, 0.13);

  /* Section spacing */
  --section-pad: 112px;
  --section-pad-md: 80px;
  --section-pad-sm: 60px;
}

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

html { scroll-behavior: smooth; overflow-x: clip; }

body {
  font-family: 'DM Sans', sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

img  { max-width: 100%; display: block; }
a    { color: inherit; }

/* ── SECTION UTILITIES ───────────────────────────────────────────── */
.section-label {
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--green-dark);
  margin-bottom: 14px;
  display: block;
}

.section-title {
  font-family: 'Bricolage Grotesque', sans-serif;
  font-size: clamp(32px, 4vw, 50px);
  font-weight: 800;
  letter-spacing: -1.5px;
  color: var(--text);
  line-height: 1.08;
  margin-bottom: 18px;
}

.section-sub {
  font-size: 17px;
  color: var(--text-2);
  max-width: 580px;
  line-height: 1.72;
  margin-bottom: 56px;
}

.section-accent { color: var(--orange); }

/* ── BUTTONS — strict hierarchy ─────────────────────────────────── */

/* PRIMARY — one dominant action per section */
.btn-primary {
  background: var(--lf-gold);
  color: #081522;
  border: none;
  border-radius: 100px;
  padding: 16px 32px;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.2s, transform 0.2s, box-shadow 0.2s;
  font-family: 'DM Sans', sans-serif;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 4px 20px rgba(14, 30, 51, 0.18);
  white-space: nowrap;
  letter-spacing: -0.1px;
}
.btn-primary:hover {
  background: #D6B77B;
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(14, 30, 51, 0.23);
}

/* SECONDARY — ghost/outline, lower visual weight */
.btn-outline-white {
  background: transparent;
  color: rgba(255,255,255,0.88);
  border: 1.5px solid rgba(255,255,255,0.28);
  border-radius: 100px;
  padding: 15px 28px;
  font-size: 15px;
  font-weight: 500;
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s, color 0.2s;
  font-family: 'DM Sans', sans-serif;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
}
.btn-outline-white:hover {
  border-color: rgba(255,255,255,0.58);
  background: rgba(255,255,255,0.09);
  color: #fff;
}

/* SMALL — footer, inline actions */
.btn-green-sm {
  background: var(--green);
  color: #fff;
  border: none;
  border-radius: 100px;
  padding: 10px 20px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  font-family: 'DM Sans', sans-serif;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: background 0.2s, transform 0.15s;
  box-shadow: 0 2px 12px rgba(200, 165, 104, 0.3);
}
.btn-green-sm:hover {
  background: var(--green-dark);
  transform: translateY(-1px);
}

/* ── ANIMATIONS ─────────────────────────────────────────────────── */
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%       { opacity: 0.5; transform: scale(1.4); }
}
@keyframes popIn {
  from { transform: scale(0); opacity: 0; }
  to   { transform: scale(1); opacity: 1; }
}
@keyframes ripple {
  0%   { box-shadow: 0 0 0 0 rgba(200, 165, 104, 0.4); }
  70%  { box-shadow: 0 0 0 16px rgba(200, 165, 104, 0); }
  100% { box-shadow: 0 0 0 0 rgba(200, 165, 104, 0); }
}
@keyframes floatUp {
  from { opacity: 0; transform: translateY(32px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeCue {
  from { opacity: 0; }
  to   { opacity: 1; }
}
@keyframes bounce {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(6px); }
}
@keyframes orbFloat1 {
  0%, 100% { transform: translate(0, 0); }
  50%       { transform: translate(60px, 40px); }
}
@keyframes orbFloat2 {
  0%, 100% { transform: translate(0, 0); }
  50%       { transform: translate(-40px, -60px); }
}
@keyframes orbFloat3 {
  0%, 100% { transform: translate(0, 0); }
  50%       { transform: translate(30px, -30px); }
}

/* Scroll-triggered reveal */
.fade-up {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ── STICKY MOBILE CTA ───────────────────────────────────────────── */
.sticky-cta {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 150;
  padding: 12px 20px 16px;
  background: var(--text);
  border-top: 1px solid rgba(255,255,255,0.08);
  display: none;
  justify-content: center;
  align-items: center;
  gap: 14px;
  transform: translateY(100%);
  transition: transform 0.35s cubic-bezier(0.34,1.2,0.64,1);
}
.sticky-cta.visible {
  transform: translateY(0);
}
.sticky-cta-text {
  font-size: 12px;
  color: rgba(255,255,255,0.5);
  white-space: nowrap;
}
.sticky-cta .btn-primary {
  padding: 13px 26px;
  font-size: 15px;
  flex: 1;
  justify-content: center;
  max-width: 280px;
}

@media (max-width: 767px) {
  .sticky-cta { display: flex; }
}
