/* ===== ROOT VARIABLES ===== */
:root {
  --clr-primary-dark: #001f26;
  --clr-fuchsia: #ff2d82;
  --clr-coral: #ff6b7a;
  --clr-mauve: #d15694;
  --clr-secondary-dark: #3d1a2b;
  
  --clr-warm-white: #faf8f3;
  --clr-cream: #f6eedc;
  --clr-rich-brown: #4a2c2a;
  --clr-deep-chocolate: #2d1810;
  
  --font-primary: 'Poppins', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-accent: 'Playfair Display', Georgia, serif;
  --font-display: 'Playfair Display', Georgia, serif;
  
  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 1.5rem;
  --space-lg: 2rem;
  --space-xl: 3rem;
  --space-2xl: 4rem;
  --space-xxl: 5rem;
  
  --shadow-sm: 0 2px 4px rgba(61, 26, 43, 0.1);
  --shadow-md: 0 4px 8px rgba(61, 26, 43, 0.15);
  --shadow-lg: 0 10px 15px rgba(61, 26, 43, 0.2);
  --shadow-xl: 0 20px 25px rgba(61, 26, 43, 0.25);
  --shadow-glow: 0 0 20px rgba(255, 45, 130, 0.3);
  --shadow-mauve: 0 10px 30px rgba(209, 86, 148, 0.3);
}

/* ===== BASE STYLES ===== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

*::before,
*::after {
  box-sizing: inherit;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  background: var(--clr-primary-dark);
}

body {
  font-family: var(--font-primary);
  background: var(--clr-primary-dark);
  color: var(--clr-warm-white);
  line-height: 1.6;
  overflow-x: hidden;
  min-height: 100vh;
  letter-spacing: 0.01em;
}

/* ===== LAYOUT ===== */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px var(--space-lg);
}

.container-wide {
  max-width: 1400px;
  margin: 0 auto;
  padding: 40px var(--space-lg);
}

.content-wrapper {
  padding-top: 40px;
  padding-bottom: 40px;
  min-height: calc(100vh - 400px);
}

/* ===== ADSENSE ===== */
.adsense-top {
  background: var(--clr-primary-dark);
  text-align: center;
  padding: 15px;
  min-height: 100px;
  position: relative;
  z-index: 10;
}

.adsense-bottom {
  background: var(--clr-primary-dark);
  text-align: center;
  padding: 15px;
  margin-top: 40px;
}

/* ===== NAVIGATION ===== */
#nav {
  background: var(--clr-primary-dark);
  padding: 25px 0;
  display: flex;
  gap: 70px;
  align-items: center;
  justify-content: center;
  position: sticky;
  top: 0;
  z-index: 100;
  transition: all 0.3s ease;
}

#nav.scrolled {
  padding: 10px 0;
  gap: 50px;
  transform: scale(0.7);
  transform-origin: center top;
}

#nav a {
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  transition: all 0.3s ease;
  height: 100px;
  width: 100px;
  position: relative;
}

#nav a:hover {
  transform: translateY(-3px);
}

#nav a.active::after {
  content: '';
  position: absolute;
  bottom: -35px;
  left: 50%;
  transform: translateX(-50%) rotate(90deg);
  width: 300px;
  height: 80px;
  background-image: url('images/crochet-hook.png');
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  filter: brightness(0) saturate(100%) invert(76%) sepia(20%) saturate(300%) hue-rotate(300deg) brightness(95%) contrast(88%);
}

#nav.scrolled a.active::after {
  width: 210px;
  height: 56px;
  bottom: -25px;
}

#nav img {
  filter: brightness(0) saturate(100%) invert(98%) sepia(5%) saturate(50%) hue-rotate(20deg) brightness(105%) contrast(98%);
  opacity: 0.9;
  transition: all 0.3s ease;
}

#nav a:nth-child(1) img { width: 85px; height: 85px; }
#nav a:nth-child(2) img { width: 90px; height: 90px; }
#nav a:nth-child(3) img { width: 83px; height: 83px; }
#nav a:nth-child(4) img { width: 137px; height: 137px; }

#nav img:hover {
  opacity: 1;
  filter: brightness(0) saturate(100%) invert(65%) sepia(30%) saturate(500%) hue-rotate(340deg) brightness(110%) contrast(90%);
}

/* Screen Reader Only Text */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Dropdown Menu Styles */
.nav-dropdown {
    position: relative;
    display: inline-block;
}

/* Ensure dropdown parent link behaves correctly */
#nav .nav-dropdown > a {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100px;
    width: 100px;
    position: relative;
}

/* Dropdown menu positioning and appearance */
.nav-dropdown .dropdown-menu {
    position: absolute;
    top: 90px;
    left: 50%;
    transform: translateX(-50%);
    background-color: rgba(0, 31, 38, 0.98);
    border-radius: 8px;
    padding: 0;
    min-width: 140px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    z-index: 1000;
}

/* Show dropdown on hover or focus */
.nav-dropdown:hover .dropdown-menu,
.nav-dropdown:focus-within .dropdown-menu {
    opacity: 1;
    visibility: visible;
}

/* Dropdown link styles */
.nav-dropdown .dropdown-menu a {
    display: block;
    padding: 12px 20px;
    color: #faf8f3;
    text-decoration: none;
    font-size: 0.95rem;
    font-family: var(--font-primary);
    text-align: center;
    transition: all 0.2s ease;
    border-radius: 8px;
}

/* First and last child border radius for clean edges */
.nav-dropdown .dropdown-menu a:first-child {
    border-radius: 8px 8px 0 0;
}

.nav-dropdown .dropdown-menu a:last-child {
    border-radius: 0 0 8px 8px;
}

/* Dropdown link hover state */
.nav-dropdown .dropdown-menu a:hover {
    background-color: rgba(255, 107, 122, 0.15);
    color: #ff6b7a;
}

/* Ensure dropdown links don't inherit nav image styles */
.nav-dropdown .dropdown-menu a img {
    display: none;
}

/* Mobile-friendly touch target */
@media (hover: none) {
    .nav-dropdown .dropdown-menu {
        min-width: 160px;
    }
    
    .nav-dropdown .dropdown-menu a {
        padding: 16px 20px;
    }
}

/* ===== TYPOGRAPHY ===== */
.header {
  text-align: center;
  margin-bottom: var(--space-xl);
  padding: 0 20px;
}

.header h1 {
  font-size: clamp(1.8rem, 4vw, 2.5rem);
  font-weight: 700;
  color: var(--clr-warm-white);
  margin-bottom: var(--space-xs);
  background: linear-gradient(135deg, var(--clr-warm-white) 0%, var(--clr-cream) 50%, var(--clr-fuchsia) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-accent);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: var(--space-sm);
}

h1 { font-size: clamp(2rem, 5vw, 3rem); }
h2 { font-size: clamp(1.5rem, 4vw, 2.25rem); }
h3 { font-size: clamp(1.25rem, 3vw, 1.75rem); }

p {
  margin-bottom: var(--space-sm);
  color: var(--clr-warm-white);
  opacity: 0.9;
}

a {
  color: var(--clr-coral);
  text-decoration: none;
  transition: all 0.3s ease;
}

a:hover {
  color: var(--clr-fuchsia);
  text-decoration: underline;
}

/* ===== COMPONENTS ===== */
.btn {
  display: inline-block;
  padding: 12px 28px;
  background: linear-gradient(135deg, var(--clr-coral), var(--clr-fuchsia));
  color: var(--clr-warm-white);
  font-weight: 600;
  border-radius: 12px;
  transition: all 0.3s ease;
  box-shadow: var(--shadow-md);
  border: none;
  cursor: pointer;
  font-size: 1rem;
  text-align: center;
  text-decoration: none;
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
  text-decoration: none;
}

.btn-secondary {
  background: transparent;
  border: 2px solid var(--clr-coral);
  color: var(--clr-coral);
}

.btn-secondary:hover {
  background: var(--clr-coral);
  color: var(--clr-warm-white);
}

/* ===== FOOTER ===== */
.footer,
.standard-footer {
  text-align: center;
  padding: var(--space-xl) var(--space-lg);
  margin-top: var(--space-xxl);
  position: relative;
  z-index: 1;
  background: var(--clr-primary-dark);
}

.footer p,
.footer-built {
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.9rem;
}

.footer a,
.footer-links a {
  color: var(--clr-cream);
  opacity: 0.7;
}

.footer a:hover,
.footer-links a:hover {
  opacity: 1;
  text-decoration: none;
}

.footer-separator {
  color: var(--clr-cream);
  opacity: 0.4;
  margin: 0 10px;
}


/* ===== HOME PAGE ===== */
.intro {
  background: radial-gradient(ellipse at center top, #7a3355, #67294b, #5a1f3f);
  max-width: 850px;
  margin: 0 auto;
  padding: 70px;
  border-radius: 25px;
  text-align: left;
  box-shadow: 
    0 15px 35px rgba(79, 43, 58, 0.4),
    0 8px 20px rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(250, 248, 243, 0.15);
}

.intro h1 {
  font-family: 'Poppins', sans-serif;
  font-size: 6rem;
  color: #001f26;
  margin: 0 0 5px 0;
  font-weight: 800;
  letter-spacing: -5px;
  text-shadow: 
    2px 2px 4px rgba(255, 255, 255, 0.5),
    -1px -1px 2px rgba(0, 0, 0, 0.3),
    0 0 10px rgba(255, 255, 255, 0.2);
}

.intro p:first-of-type {
  color: #ff6b7a;
  font-size: 1.3rem;
  margin-top: -50px;
  margin-bottom: 15px;
  font-weight: 600;
  line-height: 1.4;
}

.intro p:last-of-type {
  font-family: 'Crimson Text', serif;
  color: #c8b8a8;
  font-size: 1.8rem;
  margin: 35px 0 0 0;
  font-weight: 700;
  letter-spacing: 1px;
  text-align: center;
  line-height: 1.3;
  font-style: italic;
}

/* ===== STORY PAGE ===== */
.story-section {
  padding: var(--space-2xl) var(--space-2xl);
  background: rgba(61, 26, 43, 0.8);
  backdrop-filter: blur(20px);
  margin: var(--space-2xl) 0;
  border-radius: var(--space-lg);
}

.story-container {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 40px;
  align-items: start;
}

.mission-card {
  background: rgba(61, 26, 43, 0.8);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(250,248,243,0.15);
  border-radius: var(--space-lg);
  padding: var(--space-2xl) var(--space-xl);
  transition: all 0.4s ease;
  position: relative;
  overflow: hidden;
}

.mission-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,107,122,0.1), transparent);
  transition: left 0.6s ease;
}

.mission-card:hover::before {
  left: 100%;
}

.mission-card:hover {
  transform: translateY(-10px);
  border-color: var(--clr-coral);
  box-shadow: var(--shadow-mauve);
  background: rgba(61, 26, 43, 0.9);
}

.sanctification-box {
  background: var(--clr-rich-brown);
  border-radius: 20px;
  padding: 30px;
  margin: 40px 0;
  border: 2px dashed var(--clr-coral);
  text-align: center;
  position: relative;
  overflow: hidden;
}

/* ===== FOLLOW PAGE ===== */
.social-list {
  list-style: none;
  padding: 0;
  margin: 40px auto;
  max-width: 700px;
  background: transparent !important;
}

.social-list li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 0;
  border-bottom: 1px solid rgba(250, 248, 243, 0.1);
  background: transparent !important;
}

.social-list li:last-child {
  border-bottom: none;
}

.social-info {
  display: flex;
  align-items: center;
  gap: 15px;
}

.social-info svg {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
}

.social-details h3 {
  color: var(--clr-cream);
  font-size: 1.1rem;
  margin: 0;
  font-weight: 600;
}

.social-details p {
  color: var(--clr-warm-white);
  font-size: 0.9rem;
  margin: 2px 0 0 0;
  opacity: 0.8;
}

.social-link {
  background: transparent;
  padding: 8px 20px;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9rem;
  width: 140px;
  text-align: center;
  transition: all 0.3s ease;
  border: 2px solid;
  display: inline-block;
  flex-shrink: 0;
  white-space: nowrap;
}

.social-link:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  text-decoration: none;
}

.instagram-link { color: var(--clr-fuchsia); border-color: var(--clr-fuchsia); }
.instagram-link:hover { background: var(--clr-fuchsia); color: var(--clr-warm-white); }

.pinterest-link { color: var(--clr-mauve); border-color: var(--clr-mauve); }
.pinterest-link:hover { background: var(--clr-mauve); color: var(--clr-warm-white); }

.youtube-link { color: var(--clr-coral); border-color: var(--clr-coral); }
.youtube-link:hover { background: var(--clr-coral); color: var(--clr-warm-white); }

.tiktok-link { color: var(--clr-fuchsia); border-color: var(--clr-fuchsia); }
.tiktok-link:hover { background: var(--clr-fuchsia); color: var(--clr-warm-white); }

.linkedin-link { color: var(--clr-mauve); border-color: var(--clr-mauve); }
.linkedin-link:hover { background: var(--clr-mauve); color: var(--clr-warm-white); }

.facebook-link { color: var(--clr-coral); border-color: var(--clr-coral); }
.facebook-link:hover { background: var(--clr-coral); color: var(--clr-warm-white); }

.discord-link { color: var(--clr-fuchsia); border-color: var(--clr-fuchsia); }
.discord-link:hover { background: var(--clr-fuchsia); color: var(--clr-warm-white); }

.github-link { color: var(--clr-mauve); border-color: var(--clr-mauve); }
.github-link:hover { background: var(--clr-mauve); color: var(--clr-warm-white); }

.spotify-link { color: var(--clr-coral); border-color: var(--clr-coral); }
.spotify-link:hover { background: var(--clr-coral); color: var(--clr-warm-white); }

.note-box {
  max-width: 700px;
  margin: 40px auto;
  padding: 30px;
  background: rgba(0, 56, 64, 0.2);
  border-radius: 10px;
}

.note-box p {
  color: var(--clr-cream);
  font-size: 0.95rem;
  line-height: 1.6;
  margin: 0;
}

.spotify-section {
  max-width: 700px;
  margin: 40px auto;
  padding: 30px;
}

.spotify-section h3 {
  color: var(--clr-coral);
  font-size: 1.3rem;
  margin-bottom: 20px;
  text-align: center;
  font-family: var(--font-display);
}

/* ===== PRIVACY PAGE ===== */
.privacy-container,
.legal-container {
  max-width: 900px;
  margin: 40px auto;
  padding: 60px 40px;
  background: rgba(61, 26, 43, 0.8);
  backdrop-filter: blur(20px);
  border-radius: 20px;
  border: 1px solid rgba(250,248,243,0.15);
}

.privacy-container h1,
.legal-container h1 {
  color: var(--clr-cream);
  margin-bottom: 30px;
}

.privacy-container h2,
.legal-container h2 {
  color: var(--clr-coral);
  margin-top: 40px;
  margin-bottom: 20px;
}

.privacy-container p,
.legal-container p {
  color: var(--clr-warm-white);
  opacity: 0.9;
  line-height: 1.8;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
  #nav {
    gap: 30px;
    padding: 15px 0;
  }
  
  #nav.scrolled {
    padding: 10px 0;
  }
  
  #nav img {
    width: 60px !important;
    height: 60px !important;
  }
  
  #nav a {
    height: 70px;
    width: 70px;
  }
  
  .intro {
    padding: 40px 30px;
  }
  
  .intro h1 {
    font-size: 4rem;
  }
  
  .story-container {
    grid-template-columns: 1fr;
  }
  
  .social-list {
    padding: 0 20px;
  }
  
  .social-link {
    width: 100px;
    padding: 6px 10px;
    font-size: 0.85rem;
  }
  
  .container {
    padding: 30px 20px;
  }
  
  .privacy-container,
  .legal-container {
    padding: 40px 20px;
    margin: 20px;
  }
}

@media (max-width: 480px) {
  #nav {
    gap: 40px;
  }
  
  #nav img {
    width: 50px !important;
    height: 50px !important;
  }
  
  .header h1 {
    font-size: 1.5rem;
  }
}

/* ===== UTILITIES ===== */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.mt-0 { margin-top: 0; }
.mt-1 { margin-top: var(--space-sm); }
.mt-2 { margin-top: var(--space-md); }
.mt-3 { margin-top: var(--space-lg); }
.mt-4 { margin-top: var(--space-xl); }
.mt-5 { margin-top: var(--space-xxl); }

.mb-0 { margin-bottom: 0; }
.mb-1 { margin-bottom: var(--space-sm); }
.mb-2 { margin-bottom: var(--space-md); }
.mb-3 { margin-bottom: var(--space-lg); }
.mb-4 { margin-bottom: var(--space-xl); }
.mb-5 { margin-bottom: var(--space-xxl); }

.hidden { display: none; }
.block { display: block; }
.inline-block { display: inline-block; }
.flex { display: flex; }
.grid { display: grid; }

/* ===== ANIMATIONS ===== */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.7; }
}

.animate-fadeIn {
  animation: fadeIn 0.6s ease-out forwards;
}

.animate-float {
  animation: float 3s ease-in-out infinite;
}

.animate-pulse {
  animation: pulse 2s ease-in-out infinite;
}
/* ===== ACCENT BACKGROUND IMAGES ===== */
.pattern-bg,
.granny-bg {
  padding: 40px;
  background-size: cover;
  background-position: center;
  opacity: 0.15;
}