/* ==========================================================================
   ShamanicWedding.fr - Standalone Clean CSS
   Style: Mystic Boho Purple & Gold / Alternative Wedding Photography
   ========================================================================== */

:root {
  /* Fonts */
  --font-heading: 'Cinzel', serif;
  --font-serif: 'Playfair Display', serif;
  --font-sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;

  /* Default Theme: Purple Mystic */
  --bg-main: #0d0714;
  --bg-card: rgba(23, 14, 38, 0.85);
  --bg-card-hover: rgba(36, 20, 59, 0.95);
  
  --accent-primary: #b388ff;
  --accent-light: #e1d5ff;
  --accent-gradient: linear-gradient(135deg, #b388ff 0%, #e1d5ff 40%, #7c4dff 100%);
  
  --border-color: rgba(179, 136, 255, 0.35);
  --border-glow: rgba(179, 136, 255, 0.7);
  --text-primary: #f8f5ff;
  --text-secondary: #d1c4e9;
  --text-muted: #9c8eb9;

  --glass-bg: rgba(23, 14, 38, 0.8);
  --glass-border: 1px solid rgba(179, 136, 255, 0.3);
  --glass-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.5);

  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
}

/* Theme 2: Golden Hour */
body.theme-golden-hour {
  --bg-main: #0d0f12;
  --bg-card: rgba(28, 24, 18, 0.85);
  --bg-card-hover: rgba(45, 38, 28, 0.95);
  
  --accent-primary: #d4af37;
  --accent-light: #f3e5ab;
  --accent-gradient: linear-gradient(135deg, #d4af37 0%, #f3e5ab 40%, #aa820a 100%);
  
  --border-color: rgba(212, 175, 55, 0.35);
  --border-glow: rgba(212, 175, 55, 0.7);
  --text-primary: #fcf9ee;
  --text-secondary: #e6dfc8;
  --text-muted: #b3a98b;

  --glass-bg: rgba(28, 24, 18, 0.8);
  --glass-border: 1px solid rgba(212, 175, 55, 0.3);
}

/* Theme 3: Wild Earth (Terracotta & Sienna) */
body.theme-wild-earth {
  --bg-main: #120e0b;
  --bg-card: rgba(36, 24, 18, 0.85);
  --bg-card-hover: rgba(54, 35, 25, 0.95);
  
  --accent-primary: #d97736;
  --accent-light: #f4a261;
  --accent-gradient: linear-gradient(135deg, #d97736 0%, #f4a261 40%, #b3541e 100%);
  
  --border-color: rgba(217, 119, 54, 0.35);
  --border-glow: rgba(217, 119, 54, 0.7);
  --text-primary: #fdf8f5;
  --text-secondary: #e8d5c8;
  --text-muted: #b89b88;

  --glass-bg: rgba(36, 24, 18, 0.8);
  --glass-border: 1px solid rgba(217, 119, 54, 0.3);
}

/* Base Styles */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  background-color: var(--bg-main);
  color: var(--text-primary);
  font-family: var(--font-sans);
  line-height: 1.6;
  overflow-x: hidden;
  transition: background-color 0.5s ease, color 0.5s ease;
}

/* Glassmorphism Cards */
.glass-card {
  background: var(--glass-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: var(--glass-border);
  border-radius: var(--radius-md);
  box-shadow: var(--glass-shadow);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.glass-card:hover {
  border-color: var(--border-glow);
  transform: translateY(-4px);
}

/* Typography & Links */
h1, h2, h3, h4, .font-heading {
  font-family: var(--font-heading);
  letter-spacing: 0.05em;
}

.font-serif-italic {
  font-family: var(--font-serif);
  font-style: italic;
}

a {
  color: var(--accent-primary);
  text-decoration: none;
  transition: color 0.2s;
}

a:hover {
  color: var(--accent-light);
}

/* Layout Utilities */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.py-24 { padding-top: 6rem; padding-bottom: 6rem; }
.py-20 { padding-top: 5rem; padding-bottom: 5rem; }
.mb-12 { margin-bottom: 3rem; }
.mb-8 { margin-bottom: 2rem; }
.text-center { text-align: center; }

/* Grid Systems */
.grid-2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 2rem; }
.grid-3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 2rem; }
.grid-4 { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1.5rem; }

/* Navbar */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 100;
  background: rgba(13, 7, 20, 0.85);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border-color);
  padding: 1rem 0;
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-primary);
}

.brand-icon {
  font-size: 1.5rem;
  color: var(--accent-primary);
}

.nav-links {
  display: flex;
  gap: 2rem;
  list-style: none;
}

.nav-links a {
  color: var(--text-secondary);
  font-size: 0.9rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.nav-links a:hover {
  color: var(--accent-primary);
}

/* Mobile Hamburger Button */
.mobile-toggle-btn {
  display: none;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  z-index: 101;
}

.mobile-toggle-btn span {
  display: block;
  width: 26px;
  height: 2px;
  background-color: var(--text-primary);
  margin: 6px 0;
  transition: all 0.3s ease;
}

.mobile-toggle-btn.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 6px);
}
.mobile-toggle-btn.active span:nth-child(2) {
  opacity: 0;
}
.mobile-toggle-btn.active span:nth-child(3) {
  transform: rotate(-45deg) translate(6px, -6px);
}

@media (max-width: 900px) {
  .mobile-toggle-btn {
    display: block;
  }
  .nav-links {
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    height: 100vh;
    background: rgba(13, 7, 20, 0.98);
    backdrop-filter: blur(20px);
    flex-direction: column;
    padding: 6rem 2rem 2rem 2rem;
    gap: 1.5rem;
    border-left: 1px solid var(--border-color);
    transition: right 0.4s ease;
    z-index: 99;
  }
  .nav-links.mobile-active {
    right: 0;
  }
}

/* Theme Switcher */
.theme-switcher {
  display: flex;
  gap: 0.5rem;
  background: rgba(0, 0, 0, 0.4);
  padding: 0.25rem;
  border-radius: 99px;
  border: 1px solid var(--border-color);
}

.theme-btn {
  background: transparent;
  border: none;
  color: var(--text-muted);
  padding: 0.4rem 0.8rem;
  font-size: 0.75rem;
  border-radius: 99px;
  cursor: pointer;
  transition: all 0.3s;
}

.theme-btn.active, .theme-btn:hover {
  background: var(--accent-primary);
  color: #0d0714;
  font-weight: bold;
}

/* Hero Section */
.hero {
  position: relative;
  min-height: 90vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding-top: 7rem;
  padding-bottom: 4rem;
  text-align: center;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.4;
  filter: contrast(1.1) brightness(0.8);
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at center, transparent 0%, var(--bg-main) 90%);
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 900px;
}

.hero-title {
  font-size: clamp(2.2rem, 5vw, 4rem);
  line-height: 1.15;
  margin-bottom: 1.5rem;
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Buttons */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--accent-gradient);
  color: #0d0714;
  font-weight: 700;
  padding: 0.85rem 2rem;
  border-radius: 99px;
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 20px rgba(179, 136, 255, 0.4);
  transition: all 0.3s;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 25px rgba(179, 136, 255, 0.6);
  color: #0d0714;
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-color);
  color: var(--text-primary);
  font-weight: 600;
  padding: 0.85rem 2rem;
  border-radius: 99px;
  cursor: pointer;
  transition: all 0.3s;
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: var(--accent-primary);
}

/* Section Titles */
.section-tag {
  color: var(--accent-primary);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-weight: 700;
  display: block;
  margin-bottom: 0.5rem;
}

.section-title {
  font-size: clamp(1.8rem, 3.5vw, 2.5rem);
  margin-bottom: 1rem;
}

.section-subtitle {
  color: var(--text-secondary);
  max-width: 650px;
  margin: 0 auto 2.5rem auto;
  font-size: 1rem;
}

/* Small Floating Green WhatsApp Button (52px) */
#whatsapp-float-btn {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 52px;
  height: 52px;
  background-color: #25D366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
  z-index: 9999;
  transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  text-decoration: none;
}

#whatsapp-float-btn:hover {
  transform: scale(1.12);
  box-shadow: 0 10px 25px rgba(37, 211, 102, 0.6);
}

/* ==========================================================================
   POPUP MODAL STYLES (CRITICAL FOR ARTICLE READING)
   ========================================================================== */
.modal-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(5, 3, 8, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  z-index: 99999;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  box-sizing: border-box;
}

.modal-overlay.active {
  display: flex !important;
}

.modal-content {
  width: 100%;
  max-width: 850px;
  max-height: 85vh;
  overflow-y: auto;
  padding: 3rem 2.5rem;
  position: relative;
  border-radius: 20px;
  background: rgba(23, 14, 38, 0.95);
  border: 1px solid var(--border-glow);
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.9), 0 0 30px rgba(179, 136, 255, 0.3);
  color: var(--text-primary);
}

.modal-content::-webkit-scrollbar {
  width: 8px;
}
.modal-content::-webkit-scrollbar-track {
  background: rgba(0, 0, 0, 0.3);
  border-radius: 10px;
}
.modal-content::-webkit-scrollbar-thumb {
  background: var(--accent-primary);
  border-radius: 10px;
}

/* ==========================================================================
   RESPONSIVE HERO MOBILE FIX - PREVENTS OVERLAP WITH FIXED HEADER
   ========================================================================== */
@media (max-width: 900px) {
  .hero {
    padding-top: 8.5rem !important;
    padding-bottom: 3.5rem !important;
    min-height: auto !important;
  }
  .hero-content {
    margin-top: 1.25rem !important;
  }
  .hero-title {
    font-size: clamp(1.75rem, 5.5vw, 2.5rem) !important;
    margin-bottom: 1.25rem !important;
  }
}

@media (max-width: 600px) {
  .hero {
    padding-top: 9.5rem !important;
    padding-bottom: 3rem !important;
  }
  .hero-content {
    margin-top: 1.75rem !important;
  }
}
