/* ═══════════════════════════════════════════
   BLOOMANT TRADING EDUCATION — GLOBAL STYLES
   Grow · Build · Bloom
═══════════════════════════════════════════ */

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

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

:root {
  --green-deep:    #081a08;
  --green-rich:    #0d2a0d;
  --green-mid:     #1a4a1a;
  --green-bright:  #2d7a2d;
  --green-pale:    #e8f5e9;
  --gold:          #c9a84c;
  --gold-bright:   #e4c05a;
  --gold-pale:     #f5e8c0;
  --gold-faint:    #fdf8ec;
  --cream:         #faf8f3;
  --cream-mid:     #f3ede0;
  --cream-dark:    #e8dfc8;
  --ink:           #0d1a0d;
  --ink-mid:       #2a3a2a;
  --ink-light:     #4a6a4a;
  --ink-muted:     #7a9a7a;
  --white:         #ffffff;

  --font-display: 'Cormorant Garamond', Georgia, serif;
  --font-body:    'Outfit', sans-serif;
  --font-mono:    'DM Mono', monospace;

  --radius-sm:  6px;
  --radius-md:  12px;
  --radius-lg:  20px;
  --radius-xl:  32px;

  --shadow-sm:  0 2px 12px rgba(13,42,13,0.08);
  --shadow-md:  0 8px 40px rgba(13,42,13,0.12);
  --shadow-lg:  0 24px 80px rgba(13,42,13,0.18);
  --shadow-gold: 0 8px 40px rgba(201,168,76,0.25);
}

html { scroll-behavior: smooth; font-size: 16px; overflow-x: hidden; }

body {
  font-family: var(--font-body);
  background: var(--cream);
  color: var(--ink);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -webkit-text-size-adjust: 100%;
  touch-action: manipulation;
}

/* ── SCROLLBAR ── */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--cream); }
::-webkit-scrollbar-thumb { background: var(--cream-dark); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--gold); }

/* ── TYPOGRAPHY ── */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: -0.01em;
  color: var(--green-rich);
}
h1 { font-size: clamp(42px, 6vw, 80px); }
h2 { font-size: clamp(32px, 4vw, 54px); }
h3 { font-size: clamp(22px, 3vw, 32px); }
h4 { font-size: 20px; }
p  { font-weight: 300; line-height: 1.75; color: var(--ink-mid); }

em { font-style: italic; color: var(--gold); }
strong { font-weight: 600; color: var(--ink); }

a { color: inherit; text-decoration: none; }

/* ── LAYOUT ── */
.container {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 2rem;
}
.section { padding: 6rem 0; }
.section-sm { padding: 4rem 0; }

/* ── EYEBROW LABEL ── */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1.2rem;
}
.eyebrow::before {
  content: '';
  width: 20px;
  height: 1px;
  background: var(--gold);
  display: inline-block;
}

/* ── BUTTONS ── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 500;
  padding: 13px 28px;
  border-radius: var(--radius-md);
  border: none;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
  text-decoration: none;
  white-space: nowrap;
  min-height: 44px;
  -webkit-tap-highlight-color: transparent;
}
.btn-primary {
  background: var(--gold);
  color: var(--green-rich);
  box-shadow: var(--shadow-gold);
}
.btn-primary:hover {
  background: var(--gold-bright);
  transform: translateY(-2px);
  box-shadow: 0 12px 50px rgba(201,168,76,0.4);
}
.btn-dark {
  background: var(--green-rich);
  color: var(--gold-pale);
}
.btn-dark:hover {
  background: var(--green-mid);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}
.btn-outline {
  background: transparent;
  color: var(--ink-mid);
  border: 1.5px solid rgba(45,110,45,0.25);
}
.btn-outline:hover {
  border-color: var(--green-bright);
  color: var(--green-rich);
  background: rgba(45,110,45,0.04);
}
.btn-lg {
  font-size: 16px;
  padding: 16px 36px;
}

/* ── NAV ── */
.site-nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  transition: all 0.3s;
}
.site-nav.scrolled {
  background: rgba(250,248,243,0.96);
  backdrop-filter: blur(16px);
  box-shadow: 0 1px 0 rgba(201,168,76,0.15), var(--shadow-sm);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.4rem 2rem;
  max-width: 1160px;
  margin: 0 auto;
}
.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}
.nav-logo-mark {
  width: 38px; height: 38px;
  background: var(--green-rich);
  border-radius: 9px;
  display: flex; align-items: center; justify-content: center;
  font-size: 20px;
  transition: transform 0.2s;
}
.nav-logo:hover .nav-logo-mark { transform: rotate(-5deg) scale(1.05); }
.nav-logo-name {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 700;
  color: var(--green-rich);
  letter-spacing: 0.01em;
}
.nav-logo-name span { color: var(--gold); }
.nav-links {
  display: flex;
  align-items: center;
  gap: 2rem;
  list-style: none;
}
.nav-links a {
  font-size: 14px;
  font-weight: 400;
  color: var(--ink-light);
  transition: color 0.2s;
  position: relative;
}
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -3px; left: 0; right: 0;
  height: 1px;
  background: var(--gold);
  transform: scaleX(0);
  transition: transform 0.2s;
}
.nav-links a:hover { color: var(--green-rich); }
.nav-links a:hover::after, .nav-links a.active::after { transform: scaleX(1); }
.nav-links a.active { color: var(--green-rich); font-weight: 500; }
.nav-cta { display: flex; align-items: center; gap: 10px; }

/* Mobile menu */
.nav-hamburger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  flex-direction: column;
  gap: 5px;
}
.nav-hamburger span {
  display: block;
  width: 22px; height: 2px;
  background: var(--ink-mid);
  border-radius: 2px;
  transition: all 0.3s;
}
.mobile-menu {
  display: none;
  position: fixed;
  inset: 0;
  background: var(--green-rich);
  z-index: 999;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2rem;
}
.mobile-menu.open { display: flex; }
.mobile-menu a {
  font-family: var(--font-display);
  font-size: 36px;
  font-weight: 600;
  color: var(--gold-pale);
  text-decoration: none;
  transition: color 0.2s;
}
.mobile-menu a:hover { color: var(--gold); }
.mobile-close {
  position: absolute;
  top: 1.5rem; right: 2rem;
  background: none;
  border: none;
  color: rgba(255,255,255,0.5);
  font-size: 28px;
  cursor: pointer;
}

/* ── FOOTER ── */
.site-footer {
  background: var(--green-deep);
  padding: 5rem 0 2.5rem;
  color: rgba(255,255,255,0.45);
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 3rem;
  padding-bottom: 3.5rem;
  border-bottom: 1px solid rgba(255,255,255,0.07);
  margin-bottom: 2.5rem;
}
.footer-brand-name {
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 700;
  color: var(--gold-pale);
  display: flex; align-items: center; gap: 10px;
  margin-bottom: 0.8rem;
}
.footer-tagline {
  font-size: 13px;
  line-height: 1.7;
  color: rgba(255,255,255,0.35);
  max-width: 260px;
  margin-bottom: 1.5rem;
}
.footer-scripture {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 14px;
  color: rgba(201,168,76,0.6);
  border-left: 2px solid rgba(201,168,76,0.3);
  padding-left: 12px;
  line-height: 1.6;
}
.footer-col-title {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
  opacity: 0.7;
  margin-bottom: 1.2rem;
}
.footer-links { list-style: none; display: flex; flex-direction: column; gap: 9px; }
.footer-links a {
  font-size: 13px;
  color: rgba(255,255,255,0.38);
  text-decoration: none;
  transition: color 0.2s;
}
.footer-links a:hover { color: rgba(255,255,255,0.8); }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: 12px;
  color: rgba(255,255,255,0.2);
}
.footer-legal { display: flex; gap: 1.5rem; }
.footer-legal a { color: rgba(255,255,255,0.2); text-decoration: none; transition: color 0.2s; }
.footer-legal a:hover { color: rgba(255,255,255,0.5); }

/* ── CARDS ── */
.card {
  background: var(--white);
  border: 1px solid rgba(201,168,76,0.15);
  border-radius: var(--radius-lg);
  padding: 2rem;
  transition: all 0.25s;
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: rgba(201,168,76,0.3);
}

/* ── DARK SECTIONS ── */
.dark-section {
  background: var(--green-rich);
  color: var(--gold-pale);
}
.dark-section h2, .dark-section h3 { color: var(--gold-pale); }
.dark-section p { color: rgba(255,255,255,0.6); }
.dark-section .eyebrow { color: var(--gold); }

/* ── ANIMATIONS ── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(30px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-8px); }
}
.animate-up   { animation: fadeUp 0.7s ease both; }
.animate-fade { animation: fadeIn 0.6s ease both; }

/* Stagger delays */
.delay-1 { animation-delay: 0.1s; }
.delay-2 { animation-delay: 0.2s; }
.delay-3 { animation-delay: 0.3s; }
.delay-4 { animation-delay: 0.4s; }
.delay-5 { animation-delay: 0.5s; }
.delay-6 { animation-delay: 0.6s; }

/* ── DIVIDER ── */
.gold-divider {
  width: 60px; height: 2px;
  background: linear-gradient(90deg, var(--gold), transparent);
  margin: 1.5rem 0;
}

/* ── RESPONSIVE ── */
@media (max-width: 900px) {
  .nav-links, .nav-cta { display: none; }
  .nav-hamburger { display: flex; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 2rem; }
  .section { padding: 4rem 0; }
  h1 { font-size: clamp(36px, 8vw, 56px); }
}
@media (max-width: 600px) {
  .container { padding: 0 1.2rem; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
}

/* ══ MOBILE FIXES — Android Chrome ══ */
* { box-sizing: border-box; }

/* Prevent text inflation on mobile */
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }

/* Improve tap targets */
a, button, [onclick] {
  -webkit-tap-highlight-color: transparent;
}

/* Fix nav on mobile */
@media (max-width: 768px) {
  .nav-inner { padding: 1rem 1.2rem; }
  .nav-logo-name { font-size: 18px; }
  
  /* Hero fixes */
  .hero-inner { padding: 4rem 1.2rem 3rem !important; }
  .hero-title { font-size: clamp(36px, 10vw, 56px) !important; }
  .hero-stats { gap: 1.5rem; flex-wrap: wrap; }
  .hero-stat-num { font-size: 32px; }
  .hero-actions { flex-direction: column; width: 100%; }
  .hero-actions .btn { width: 100%; justify-content: center; }
  
  /* Section spacing */
  .section { padding: 3rem 0; }
  .section-sm { padding: 2rem 0; }
  
  /* Why grid — single column on small phones */
  .why-grid { grid-template-columns: 1fr !important; }
  
  /* Course preview grid */
  .course-preview-grid { grid-template-columns: 1fr !important; }
  
  /* CTA band */
  .cta-band { 
    grid-template-columns: 1fr !important; 
    padding: 2rem 1.5rem !important;
    text-align: center;
  }
  .cta-band-actions { 
    flex-direction: column !important;
    align-items: center;
    width: 100%;
  }
  .cta-band-actions .btn { width: 100%; justify-content: center; }
  
  /* Footer */
  .footer-grid { grid-template-columns: 1fr !important; gap: 2rem !important; }
  .footer-bottom { flex-direction: column; gap: 0.8rem; font-size: 11px; }
  
  /* Forms */
  .form-row { grid-template-columns: 1fr !important; }
  
  /* Containers */
  .container { padding: 0 1rem; }
  
  /* Cards */
  .why-card, .inc-card, .card { padding: 1.5rem; }
  
  /* Typography scale down */
  h1 { font-size: clamp(30px, 8vw, 48px) !important; }
  h2 { font-size: clamp(24px, 6vw, 38px) !important; }
  
  /* Mobile menu improvements */
  .mobile-menu a { font-size: 28px; }
  
  /* Products grid */
  .dash-products-grid { grid-template-columns: 1fr !important; }
  .dash-stats { grid-template-columns: 1fr 1fr !important; }

  /* Blog posts */
  .posts-grid { grid-template-columns: 1fr !important; }
  
  /* Featured post */
  .featured-post { grid-template-columns: 1fr !important; }
  .fp-image { display: none; }
  
  /* Pricing */
  .pricing-wrap { grid-template-columns: 1fr !important; }
  .pricing-card { position: static !important; }
  
  /* For grid */
  .for-grid { grid-template-columns: 1fr !important; }
  
  /* Story layout */
  .story-layout { grid-template-columns: 1fr !important; }
  .story-sidebar { position: static !important; }
  
  /* Mission band */
  .mission-band { grid-template-columns: 1fr !important; padding: 2rem !important; }
  
  /* Next steps */
  .next-steps-grid { grid-template-columns: 1fr !important; }
  
  /* Legal layout */
  .legal-layout { grid-template-columns: 1fr !important; }
  .legal-nav { position: static !important; }
  
  /* Post layout */
  .post-layout { grid-template-columns: 1fr !important; }
  .post-sidebar { position: static !important; }
  .post-cta { grid-template-columns: 1fr !important; padding: 1.5rem !important; }
  
  /* Contact layout */
  .contact-layout { grid-template-columns: 1fr !important; }
  
  /* Transform band */
  .transform-band { padding: 2rem 1.2rem !important; }
  .transform-arrows { flex-direction: column; align-items: center; }
  .transform-arrow { transform: rotate(90deg); }
  
  /* Includes grid */
  .includes-grid { grid-template-columns: 1fr !important; }
  
  /* Testimonials */
  .testimonials-grid { grid-template-columns: 1fr !important; }
  
  /* Credentials */
  .credentials-grid { grid-template-columns: 1fr !important; }
  
  /* Dashboard header */
  .dash-header { padding: 1rem !important; flex-wrap: wrap; }
  .dash-welcome { padding: 2rem 1.2rem !important; }
  .dash-content { padding: 2rem 1rem !important; }
}

@media (max-width: 480px) {
  .container { padding: 0 0.8rem; }
  .nav-logo-name { font-size: 16px; }
  .hero-title { font-size: clamp(28px, 9vw, 42px) !important; }
  .btn-lg { font-size: 14px !important; padding: 13px 20px !important; }
  .footer-legal { gap: 1rem; }
  .dash-stats { grid-template-columns: 1fr 1fr !important; }
}
