/* 
 * Earth Sanctuary Order of San Sau
 * Spiritual + Ecological Aesthetic
 */

/* Import Fonts */
@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:wght@300;400;500;600;700&family=Inter:wght@300;400;500;600&display=swap');

/* CSS Variables - Color Palette */
:root {
  /* Primary Colors */
  --forest-green: #2d5016;
  --soil-brown: #3d2817;
  --sacred-gold: #d4af37;
  --lotus-pink: #e8b4d4;
  --sky-blue: #87ceeb;
  
  /* Background Colors */
  --cream: #faf8f3;
  --deep-indigo: #1a1b3d;
  
  /* Gradients */
  --earth-to-sky: linear-gradient(135deg, var(--forest-green) 0%, var(--sky-blue) 100%);
  --sacred-gradient: linear-gradient(135deg, var(--sacred-gold) 0%, var(--lotus-pink) 100%);
  
  /* Typography */
  --font-heading: 'Cormorant Garamond', serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  
  /* Spacing */
  --section-padding: 6rem 2rem;
  --container-max: 1200px;
  
  /* Effects */
  --glass-bg: rgba(255, 255, 255, 0.1);
  --glass-border: rgba(255, 255, 255, 0.2);
  --shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
  --shadow-hover: 0 12px 48px rgba(0, 0, 0, 0.15);
}

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

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

body {
  font-family: var(--font-body);
  background: var(--cream);
  color: var(--soil-brown);
  line-height: 1.7;
  overflow-x: hidden;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 600;
  line-height: 1.2;
  color: var(--forest-green);
  margin-bottom: 1rem;
}

h1 {
  font-size: clamp(2.5rem, 5vw, 4.5rem);
  font-weight: 700;
}

h2 {
  font-size: clamp(2rem, 4vw, 3.5rem);
}

h3 {
  font-size: clamp(1.5rem, 3vw, 2.5rem);
}

p {
  margin-bottom: 1rem;
  font-size: 1.125rem;
}

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

a:hover {
  color: var(--sacred-gold);
}

/* Container */
.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 2rem;
}

/* Header & Navigation */
header {
  background: var(--earth-to-sky);
  padding: 1rem 0;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.15);
}

.header-content {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

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

.logo-image {
  height: 40px;
  width: auto;
}

nav ul {
  list-style: none;
  display: flex;
  gap: 0.5rem;
  align-items: center;
}

nav a {
  color: white;
  font-weight: 500;
  font-size: 0.95rem;
  padding: 0.5rem 1rem;
  border-radius: 8px;
  transition: all 0.3s ease;
  white-space: nowrap;
}

nav a:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: translateY(-2px);
}

.mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  color: white;
  font-size: 1.5rem;
  cursor: pointer;
}

/* Hero Section */
.hero-section {
  position: relative;
  min-height: 90vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  color: white;
  text-align: center;
  padding: var(--section-padding);
}

.hero-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(45, 80, 22, 0.7) 0%, rgba(26, 27, 61, 0.5) 100%);
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 900px;
  backdrop-filter: blur(10px);
  background: rgba(45, 80, 22, 0.75);
  border: 1px solid var(--glass-border);
  padding: 3rem;
  border-radius: 24px;
  box-shadow: var(--shadow);
}

.hero-content h1 {
  color: var(--cream);
  text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.5);
}

.hero-tagline {
  font-family: var(--font-heading);
  font-size: clamp(1.5rem, 3vw, 2.5rem);
  font-weight: 300;
  font-style: italic;
  color: var(--sacred-gold);
  margin: 1rem 0;
}

.hero-subtitle {
  font-size: clamp(1.1rem, 2vw, 1.5rem);
  margin: 1.5rem 0 2rem;
  opacity: 0.95;
}

.hero-cta {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 2rem;
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 1rem 2.5rem;
  border-radius: 50px;
  font-weight: 600;
  font-size: 1.1rem;
  text-align: center;
  cursor: pointer;
  transition: all 0.3s ease;
  border: 2px solid transparent;
}

.btn-primary {
  background: var(--sacred-gradient);
  color: white;
  box-shadow: 0 4px 15px rgba(212, 175, 55, 0.3);
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 25px rgba(212, 175, 55, 0.4);
}

.btn-secondary {
  background: transparent;
  color: white;
  border-color: white;
}

.btn-secondary:hover {
  background: white;
  color: var(--forest-green);
}

.btn-outline {
  background: transparent;
  color: var(--forest-green);
  border: 2px solid var(--forest-green);
}

.btn-outline:hover {
  background: var(--forest-green);
  color: white;
  transform: translateY(-3px);
  box-shadow: 0 6px 25px rgba(45, 80, 22, 0.3);
}

.book-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 1rem;
}

.book-buttons .btn {
  flex: 1 1 auto;
  min-width: 200px;
}

/* Sections */
.site-section {
  padding: var(--section-padding);
  overflow-x: hidden;
}

.section-title {
  text-align: center;
  margin-bottom: 3rem;
  position: relative;
}

.section-title::after {
  content: '🪷';
  display: block;
  font-size: 2rem;
  margin-top: 1rem;
}

/* Glass Cards */
.glass-card {
  background: var(--glass-bg);
  backdrop-filter: blur(10px);
  border: 1px solid var(--glass-border);
  border-radius: 24px;
  padding: 2.5rem;
  box-shadow: var(--shadow);
  transition: all 0.3s ease;
}

.glass-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-hover);
}

/* Sacred Quote */
.sacred-quote {
  font-family: var(--font-heading);
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  font-style: italic;
  text-align: center;
  color: var(--forest-green);
  padding: 2rem;
  margin: 2rem 0;
  position: relative;
}

.sacred-quote::before {
  content: '"';
  font-size: 4rem;
  color: var(--sacred-gold);
  position: absolute;
  top: -1rem;
  left: 1rem;
  opacity: 0.3;
}

/* Bento Grid */
.bento-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  margin: 3rem 0;
}

.bento-item {
  background: white;
  border-radius: 20px;
  padding: 2rem;
  box-shadow: var(--shadow);
  transition: all 0.4s ease;
  border: 2px solid transparent;
}

.bento-item:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: var(--shadow-hover);
  border-color: var(--sacred-gold);
}

.bento-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
  display: block;
}

/* Lotus Bloom Animation */
@keyframes lotus-bloom {
  from {
    opacity: 0;
    transform: scale(0.8) translateY(20px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

.lotus-bloom {
  animation: lotus-bloom 0.8s ease-out forwards;
  opacity: 0;
}

/* Fade In Up Animation */
@keyframes fade-in-up {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-in-up {
  animation: fade-in-up 1s ease-out;
}

/* Donation Section */
.donation-section {
  background: var(--earth-to-sky);
  color: white;
  text-align: center;
  padding: var(--section-padding);
}

.donation-button {
  display: inline-block;
  padding: 1.5rem 3rem;
  background: var(--sacred-gradient);
  color: white;
  font-size: 1.3rem;
  font-weight: 700;
  border-radius: 50px;
  box-shadow: 0 6px 30px rgba(0, 0, 0, 0.3);
  transition: all 0.3s ease;
  margin: 2rem 0;
}

.donation-button:hover {
  transform: translateY(-5px) scale(1.05);
  box-shadow: 0 10px 40px rgba(212, 175, 55, 0.5);
}

/* Contact Form */
.contact-form {
  max-width: 700px;
  margin: 0 auto;
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 600;
  color: var(--forest-green);
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 1rem;
  border: 2px solid var(--glass-border);
  border-radius: 12px;
  font-family: var(--font-body);
  font-size: 1rem;
  background: white;
  transition: all 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--sacred-gold);
  box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.1);
}

.form-group textarea {
  min-height: 150px;
  resize: vertical;
}

/* Footer */
footer {
  background: var(--soil-brown);
  color: white;
  padding: 3rem 2rem 2rem;
  text-align: center;
}

.footer-content {
  max-width: var(--container-max);
  margin: 0 auto;
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: 2rem;
  margin: 2rem 0;
  flex-wrap: wrap;
}

.footer-links a {
  color: white;
  opacity: 0.8;
  transition: opacity 0.3s ease;
}

.footer-links a:hover {
  opacity: 1;
}

.footer-bottom {
  margin-top: 2rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  opacity: 0.7;
}

/* Section images - prevent overflow and center */
.glass-card img {
  max-width: 100%;
  height: auto;
  display: block;
  margin-left: auto;
  margin-right: auto;
  object-fit: contain;
}


/* Responsive Design */
@media (max-width: 768px) {
  :root {
    --section-padding: 4rem 1rem;
  }
  
  .container {
    padding: 0 1rem;
    overflow-x: hidden;
  }
  
  .glass-card {
    padding: 1.5rem;
    overflow: visible;
  }
  
  .glass-card img {
    max-width: 100%;
    width: 100%;
    height: auto !important;
    display: block;
    margin-left: auto;
    margin-right: auto;
    object-fit: contain;
  }
  
  /* Fix grid overflow on narrow screens */
  .glass-card [style*="grid-template-columns"] {
    grid-template-columns: 1fr !important;
    min-width: 0;
  }
  
  .mobile-menu-toggle {
    display: block;
  }
  
  nav ul {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--forest-green);
    flex-direction: column;
    padding: 1rem;
    box-shadow: var(--shadow);
  }
  
  nav ul.active {
    display: flex;
  }
  
  .hero-content {
    padding: 2rem;
  }
  
  .bento-grid {
    grid-template-columns: 1fr;
  }
  
  h1 {
    font-size: 2.5rem;
  }
  
  h2 {
    font-size: 2rem;
  }
}

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

/* Focus Styles */
*:focus-visible {
  outline: 3px solid var(--sacred-gold);
  outline-offset: 2px;
}

/* Print Styles */
@media print {
  header, footer, .hero-cta, .donation-button {
    display: none;
  }
}
