/* BRAND ALCHEMY LUXE AESTHETIC - MOBILE FIRST - Maximum Priority Override */

/* Import Brand Alchemy Fonts */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,500;0,600;1,400;1,500;1,600&family=Source+Sans+Pro:wght@300;400;500;600;700&display=swap');

:root {
  /* Brand Alchemy Color Palette */
  --sage-primary: #82915b !important;
  --sage-secondary: #6b8e71 !important;
  --sage-tertiary: #8fa68f !important;
  --gold-warm: #cd9b2d !important;
  --cream-warm: #faf8f4 !important;
  --cream-deep: #f2ede5 !important;
  --sage-light: rgba(130, 145, 91, 0.12) !important;
  --sage-medium: rgba(130, 145, 91, 0.25) !important;
  --gold-light: rgba(205, 155, 45, 0.12) !important;
  --gold-medium: rgba(205, 155, 45, 0.3) !important;
  --text-primary: #2c2c2c !important;
  --text-secondary: #4a4a4a !important;
  --white-soft: rgba(255, 255, 255, 0.9) !important;
  
  /* Typography */
  --serif: "Playfair Display", serif !important;
  --sans: "Source Sans Pro", sans-serif !important;
  
  /* Override existing */
  --bg: #faf8f4 !important;
  --ink: #2c2c2c !important;
  --muted: #4a4a4a !important;
  --anahata: #82915b !important;
}

/* MOBILE FIRST - Base Body Styling */
body {
  background: linear-gradient(135deg, var(--cream-warm) 0%, var(--cream-deep) 100%) !important;
  color: var(--text-primary) !important;
  font-family: var(--sans) !important;
  font-weight: 400 !important;
  line-height: 1.7;
  margin: 0 !important;
  padding: 0 !important;
  min-height: 100vh;
}

/* MOBILE FIRST - Container Styling for ALL PAGES */
.container, .wrap {
  max-width: 100% !important;
  margin: 0 auto !important;
  padding: 16px !important;
  width: 100%;
}

/* Desktop Containers */
@media (min-width: 768px) {
  .container, .wrap {
    max-width: 1040px !important;
    padding: 22px 30px !important;
  }
}

@media (min-width: 1024px) {
  .container {
    max-width: 800px !important;
    padding: 60px 40px !important;
  }
  
  .wrap {
    max-width: 1040px !important;
    padding: 22px 40px !important;
  }
}

/* MOBILE FIRST - Header and Navigation */
header {
  display: flex !important;
  flex-direction: column !important;
  gap: 1rem !important;
  position: relative !important;
  padding: 16px !important;
  background: var(--cream-warm) !important;
}

header .logo-section {
  display: flex !important;
  align-items: center !important;
  gap: 10px !important;
  justify-content: center !important;
}

/* Desktop Header */
@media (min-width: 768px) {
  header {
    flex-direction: row !important;
    justify-content: space-between !important;
    align-items: center !important;
    padding: 22px !important;
  }
  
  header .logo-section {
    justify-content: flex-start !important;
  }
}

/* MOBILE FIRST - Typography Hierarchy */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--serif) !important;
  font-style: italic !important;
  font-weight: 400 !important;
  color: var(--sage-primary) !important;
  letter-spacing: 0.02em;
  line-height: 1.3;
  margin: 1.5rem 0 1rem !important;
}

/* Mobile Typography Sizes */
h1 {
  font-size: 1.8rem !important;
  margin-bottom: 1.5rem !important;
}

h2 {
  font-size: 1.5rem !important;
  margin-top: 2rem !important;
}

h3 {
  font-size: 1.25rem !important;
  margin-top: 1.5rem !important;
}

/* Chapter Title Styling */
.chapter-title {
  font-family: var(--serif) !important;
  font-style: italic !important;
  font-size: 2rem !important;
  color: var(--sage-primary) !important;
  text-align: center;
  margin-bottom: 1.5rem !important;
  line-height: 1.2;
}

/* Desktop Typography Scaling */
@media (min-width: 768px) {
  h1 {
    font-size: 2.5rem !important;
  }
  
  h2 {
    font-size: 2rem !important;
  }
  
  h3 {
    font-size: 1.5rem !important;
  }
  
  .chapter-title {
    font-size: 2.8rem !important;
  }
}

@media (min-width: 1024px) {
  h1 {
    font-size: 3rem !important;
  }
  
  .chapter-title {
    font-size: 3.5rem !important;
  }
}

/* MOBILE FIRST - Paragraph and Content Styling */
p {
  font-family: var(--sans) !important;
  font-size: 1rem !important;
  line-height: 1.8 !important;
  color: var(--text-primary) !important;
  margin-bottom: 1.5rem !important;
}

/* Desktop paragraph scaling */
@media (min-width: 768px) {
  p {
    font-size: 1.1rem !important;
  }
}

/* MOBILE FIRST - Brand Alchemy Card Styling */
.card, .pricing-card, .tool-card {
  background: rgba(255, 255, 255, 0.95) !important;
  border: 1px solid var(--sage-light) !important;
  border-radius: 16px !important;
  padding: 1.5rem !important;
  margin: 1rem 0 !important;
  box-shadow: 0 8px 32px rgba(130, 145, 91, 0.08) !important;
  backdrop-filter: blur(10px) !important;
  -webkit-backdrop-filter: blur(10px) !important;
  transition: all 0.3s ease !important;
}

.card:hover, .pricing-card:hover, .tool-card:hover {
  transform: translateY(-4px) !important;
  box-shadow: 0 12px 48px rgba(130, 145, 91, 0.15) !important;
}

/* Desktop card styling */
@media (min-width: 768px) {
  .card, .pricing-card, .tool-card {
    padding: 2rem !important;
  }
}

/* MOBILE FIRST - Navigation Styling */
.chapter-nav, .chapter-navigation {
  display: flex !important;
  flex-direction: column !important;
  gap: 1rem !important;
  margin: 2rem 0 !important;
  padding: 1.5rem 0 !important;
  border-top: 1px solid var(--sage-light) !important;
  border-bottom: 1px solid var(--sage-light) !important;
}

.nav-link, .nav-button {
  background: var(--sage-light) !important;
  color: var(--sage-primary) !important;
  text-decoration: none !important;
  font-weight: 600 !important;
  padding: 12px 20px !important;
  border-radius: 25px !important;
  transition: all 0.3s ease !important;
  text-align: center !important;
  display: block !important;
}

.nav-link:hover, .nav-button:hover {
  background: var(--sage-primary) !important;
  color: white !important;
  transform: translateY(-2px) !important;
}

/* Desktop navigation */
@media (min-width: 768px) {
  .chapter-nav, .chapter-navigation {
    flex-direction: row !important;
    justify-content: space-between !important;
    align-items: center !important;
  }
}

/* MOBILE FIRST - Quote and Highlight Boxes */
.highlight-quote, .personal-note {
  background: var(--sage-light) !important;
  border-left: 4px solid var(--gold-warm) !important;
  border-radius: 8px !important;
  padding: 1.5rem !important;
  margin: 2rem 0 !important;
  font-style: italic !important;
  color: var(--sage-primary) !important;
}

.personal-note {
  background: var(--cream-deep) !important;
  border-left-color: var(--sage-primary) !important;
  color: var(--text-secondary) !important;
}

/* Desktop quote boxes */
@media (min-width: 768px) {
  .highlight-quote, .personal-note {
    padding: 2.5rem !important;
    margin: 3rem 0 !important;
  }
}

/* MOBILE FIRST - List Styling */
ul, ol {
  margin: 1.5rem 0 !important;
  padding-left: 1.5rem !important;
}

li {
  margin-bottom: 0.8rem !important;
  line-height: 1.7 !important;
  color: var(--text-secondary) !important;
}

/* MOBILE FIRST - Grid Layouts for Pricing/Tools */
.grid, .cols {
  display: grid !important;
  gap: 1rem !important;
  margin: 2rem 0 !important;
}

/* Desktop grid layouts */
@media (min-width: 768px) {
  .cols {
    grid-template-columns: 1fr 1fr !important;
    gap: 2rem !important;
  }
}

@media (min-width: 1024px) {
  .grid.three-cols {
    grid-template-columns: repeat(3, 1fr) !important;
  }
}

/* MOBILE FIRST - Button Styling */
.btn, .cta-button {
  background: var(--sage-primary) !important;
  color: white !important;
  padding: 12px 24px !important;
  border-radius: 25px !important;
  border: none !important;
  font-weight: 600 !important;
  text-decoration: none !important;
  transition: all 0.3s ease !important;
  display: inline-block !important;
  text-align: center !important;
  cursor: pointer !important;
}

.btn:hover, .cta-button:hover {
  background: #6d7a4a !important;
  transform: translateY(-2px) !important;
  box-shadow: 0 6px 20px rgba(130, 145, 91, 0.3) !important;
}

.btn.ghost {
  background: transparent !important;
  color: var(--sage-primary) !important;
  border: 2px solid var(--sage-primary) !important;
}

.btn.ghost:hover {
  background: var(--sage-primary) !important;
  color: white !important;
}

/* MOBILE FIRST - Chapter Header Styling */
.chapter-header {
  text-align: center !important;
  margin-bottom: 2rem !important;
  padding-bottom: 1.5rem !important;
  border-bottom: 1px solid var(--sage-light) !important;
}

.part-indicator {
  font-size: 0.8rem !important;
  font-weight: 600 !important;
  color: var(--sage-primary) !important;
  letter-spacing: 2px !important;
  text-transform: uppercase !important;
  margin-bottom: 0.8rem !important;
}

/* Desktop chapter header */
@media (min-width: 768px) {
  .chapter-header {
    margin-bottom: 3rem !important;
    padding-bottom: 2rem !important;
  }
  
  .part-indicator {
    font-size: 0.9rem !important;
    margin-bottom: 1rem !important;
  }
}

/* Override any conflicting styles with maximum specificity */
body * {
  box-sizing: border-box !important;
}

/* Ensure all Brand Alchemy pages use proper fonts */
.chapter-content * {
  font-family: var(--sans) !important;
}

.chapter-content h1, 
.chapter-content h2, 
.chapter-content h3, 
.chapter-content h4, 
.chapter-content h5, 
.chapter-content h6,
.chapter-title {
  font-family: var(--serif) !important;
  font-style: italic !important;
  color: var(--sage-primary) !important;
}

/* MOBILE FIRST - Hero Section */
.hero {
  min-height: 60vh !important;
  display: grid !important;
  place-items: center !important;
  position: relative !important;
  overflow: hidden !important;
  padding: 2rem 1rem !important;
}

.hero-inner {
  max-width: 100% !important;
  padding: 1rem !important;
  text-align: center !important;
}

.wi-line {
  font-family: var(--serif) !important;
  font-size: 1.5rem !important;
  line-height: 1.2 !important;
  letter-spacing: 0.2px !important;
  opacity: 0 !important;
  transition: opacity 0.7s ease !important;
  color: var(--sage-primary) !important;
  font-style: italic !important;
}

.wi-line.show {
  opacity: 1 !important;
}

.lede {
  color: var(--text-secondary) !important;
  margin: 1rem 0 1.5rem !important;
  font-size: 1rem !important;
  line-height: 1.6 !important;
}

/* Desktop Hero */
@media (min-width: 768px) {
  .hero {
    min-height: 72vh !important;
    padding: 2rem !important;
  }
  
  .hero-inner {
    max-width: 900px !important;
    padding: 2rem !important;
  }
  
  .wi-line {
    font-size: 2.2rem !important;
  }
  
  .lede {
    font-size: 1.1rem !important;
    margin: 1.2rem 0 1.8rem !important;
  }
}

@media (min-width: 1024px) {
  .wi-line {
    font-size: 2.8rem !important;
  }
}

/* MOBILE FIRST - Dropdown Menu System */
.menu-toggle {
  display: block !important;
  background: none !important;
  border: none !important;
  font-size: 1.5rem !important;
  color: var(--sage-primary) !important;
  cursor: pointer !important;
  padding: 0.5rem !important;
}

.nav-menu {
  display: none !important;
  position: absolute !important;
  top: 100% !important;
  left: 0 !important;
  right: 0 !important;
  background: var(--cream-warm) !important;
  border: 1px solid var(--sage-light) !important;
  border-radius: 8px !important;
  padding: 1rem !important;
  box-shadow: 0 8px 32px rgba(130, 145, 91, 0.1) !important;
  z-index: 1000 !important;
}

.nav-menu.open {
  display: block !important;
}

.nav-menu .dropdown {
  position: static !important;
  background: none !important;
  border: none !important;
  box-shadow: none !important;
  margin: 0.5rem 0 !important;
}

.nav-menu .dropdown-content {
  position: static !important;
  display: block !important;
  background: var(--sage-light) !important;
  border-radius: 8px !important;
  padding: 0.5rem !important;
  margin-top: 0.5rem !important;
}

.nav-menu .dropdown-content a {
  display: block !important;
  padding: 0.5rem 1rem !important;
  color: var(--sage-primary) !important;
  text-decoration: none !important;
  border-radius: 4px !important;
  margin: 0.25rem 0 !important;
}

.nav-menu .dropdown-content a:hover {
  background: var(--sage-primary) !important;
  color: white !important;
}

/* Desktop Dropdown Menu */
@media (min-width: 768px) {
  .menu-toggle {
    display: none !important;
  }
  
  .nav-menu {
    display: flex !important;
    position: static !important;
    background: none !important;
    border: none !important;
    box-shadow: none !important;
    padding: 0 !important;
    gap: 1rem !important;
  }
  
  .nav-menu .dropdown {
    position: relative !important;
  }
  
  .nav-menu .dropdown-content {
    position: absolute !important;
    display: none !important;
    top: 100% !important;
    left: 0 !important;
    background: white !important;
    border: 1px solid var(--sage-light) !important;
    border-radius: 8px !important;
    padding: 0.5rem !important;
    min-width: 200px !important;
    box-shadow: 0 8px 32px rgba(130, 145, 91, 0.1) !important;
  }
  
  .nav-menu .dropdown:hover .dropdown-content {
    display: block !important;
  }
}
  color: var(--text-secondary) !important;
  line-height: 1.7;
}

/* Sophisticated Cards */
.card {
  background: var(--white-soft) !important;
  border: 1px solid var(--sage-light) !important;
  border-radius: 20px !important;
  padding: 2.5rem !important;
  box-shadow: 0 20px 60px rgba(130, 145, 91, 0.15) !important;
  backdrop-filter: blur(15px);
  transition: all 0.4s ease;
  position: relative;
  overflow: hidden;
}

.card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(circle at top right, rgba(130, 145, 91, 0.05) 0%, transparent 50%);
  pointer-events: none;
}

.card:hover {
  transform: translateY(-8px);
  box-shadow: 0 30px 80px rgba(130, 145, 91, 0.25) !important;
  border-color: var(--sage-medium);
}

/* Luxury Buttons */
.btn {
  font-family: var(--sans) !important;
  font-weight: 600 !important;
  padding: 16px 32px !important;
  border-radius: 30px !important;
  border: 2px solid var(--sage-primary) !important;
  background: var(--sage-primary) !important;
  color: white !important;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all 0.3s ease;
  box-shadow: 0 8px 25px rgba(130, 145, 91, 0.3);
}

.btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 35px rgba(130, 145, 91, 0.4);
  background: var(--sage-secondary) !important;
}

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

.btn.outline:hover {
  background: var(--sage-primary) !important;
  color: white !important;
}

.btn.ghost {
  background: var(--sage-light) !important;
  color: var(--sage-primary) !important;
  border-color: transparent !important;
}

/* Pills */
.pill {
  font-family: var(--sans) !important;
  font-weight: 600 !important;
  font-size: 12px !important;
  padding: 8px 16px !important;
  border-radius: 999px !important;
  border: 1px solid var(--sage-light) !important;
  background: var(--sage-light) !important;
  color: var(--sage-primary) !important;
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* Hero Section */
.hero {
  background: linear-gradient(135deg, var(--cream-warm) 0%, var(--cream-deep) 100%);
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: 
    radial-gradient(circle at 20% 20%, rgba(130, 145, 91, 0.08) 0%, transparent 50%),
    radial-gradient(circle at 80% 80%, rgba(205, 155, 45, 0.05) 0%, transparent 50%);
  pointer-events: none;
}

.hero-inner {
  position: relative;
  z-index: 2;
}

/* Full-bleed Sections */
.ba-fullbleed {
  background: linear-gradient(135deg, var(--sage-primary) 0%, var(--sage-secondary) 100%) !important;
  color: white !important;
  position: relative;
  overflow: hidden;
}

.ba-fullbleed::before {
  content: '';
  position: absolute;
  inset: 0;
  background: 
    radial-gradient(circle at 20% 20%, rgba(255,255,255,0.1) 0%, transparent 50%),
    radial-gradient(circle at 80% 80%, rgba(255,255,255,0.05) 0%, transparent 50%);
  pointer-events: none;
}

/* Sophisticated Animations */
@keyframes fadeInOut {
  0%, 100% { 
    opacity: 0.6; 
    transform: scale(0.98) rotate(-1deg); 
  }
  50% { 
    opacity: 1; 
    transform: scale(1.02) rotate(0deg); 
  }
}

.brand-alchemy-logo {
  animation: fadeInOut 5.5s infinite ease-in-out;
  filter: drop-shadow(0 10px 30px rgba(130, 145, 91, 0.3));
}

/* Grid & Layout */
.cols {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.wrap {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

/* Enhanced Typography Flow */
.ba-enhanced-flow {
  padding: 4rem 0;
}

.ba-enhanced-flow p {
  margin-bottom: 1.5rem;
}

/* Mobile Responsive */
@media (max-width: 768px) {
  .cols {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  
  .card {
    padding: 2rem !important;
  }
  
  .wrap {
    padding: 0 1.5rem;
  }
  
  .ba-enhanced-flow {
    padding: 2rem 0;
  }
  
  h1 { font-size: clamp(28px, 6vw, 36px); }
  h2 { font-size: clamp(22px, 5vw, 28px); }
  h3 { font-size: clamp(18px, 4vw, 22px); }
}

@media (max-width: 480px) {
  .card {
    padding: 1.5rem !important;
  }
  
  .wrap {
    padding: 0 1rem;
  }
}

/* Special Brand Alchemy Elements */
.brand-alchemy-logo svg {
  filter: drop-shadow(0 5px 15px rgba(130, 145, 91, 0.3));
}

/* Override any dark theme remnants */
body * {
  transition: all 0.3s ease;
}

/* Ensure all text is properly colored */
a {
  color: var(--text-primary) !important;
  text-decoration: none;
}

a:hover {
  color: var(--sage-primary) !important;
}