/* ==========================================================================
   Reiki Healing Center - Global Stylesheet
   ========================================================================== */

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

/* --------------------------------------------------------------------------
   CSS Variables & Design System
   -------------------------------------------------------------------------- */
:root {
  /* Color Palette */
  --primary-purple: #2D1B69;
  --primary-purple-dark: #1e1248;
  --accent-gold: #C9A84C;
  --accent-gold-dark: #b5943b;
  --light-cream: #FDF8F0;
  --dark-text: #1a1a1a;
  --white: #ffffff;
  --muted-gray: #6b7280;
  --light-gray: #f3f4f6;
  --border-color: #e5e7eb;
  --light-lavender: #f5f0ff;
  --soft-green: #e8f5e9;
  --soft-green-text: #2e7d32;

  /* Typography */
  --font-sans: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-serif: 'Playfair Display', Georgia, serif;

  /* Spacing & Borders */
  --radius-card: 12px;
  --radius-btn: 8px;
  --radius-badge: 20px;
  --radius-circle: 50%;

  /* Shadows */
  --card-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  --card-shadow-hover: 0 12px 30px rgba(45, 27, 105, 0.14);
  --btn-shadow: 0 4px 12px rgba(45, 27, 105, 0.25);

  /* Transitions */
  --transition: 0.3s ease;
  --transition-fast: 0.15s ease;
}

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

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

body {
  font-family: var(--font-sans);
  background-color: var(--light-cream);
  color: var(--dark-text);
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: hidden;
  max-width: 100%;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Hide scrollbars visually across all browsers while maintaining full scrolling functionality */
::-webkit-scrollbar {
  display: none;
  width: 0;
  height: 0;
}

* {
  -ms-overflow-style: none;  /* IE and Edge */
  scrollbar-width: none;  /* Firefox */
}

/* Global Hero Animation Canvas Layer */
.hero-bg-canvas,
#hero-bg-canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: block;
  pointer-events: none;
  z-index: 1;
}

a {
  text-decoration: none;
  color: inherit;
  transition: var(--transition);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

ul, ol {
  list-style: none;
}

button, input, select, textarea {
  font-family: inherit;
  font-size: inherit;
}

/* --------------------------------------------------------------------------
   Typography
   -------------------------------------------------------------------------- */
h1 {
  font-family: var(--font-serif);
  font-size: 3.5rem;
  font-weight: 700;
  line-height: 1.2;
  color: var(--primary-purple);
  margin-bottom: 1rem;
}

h2 {
  font-family: var(--font-serif);
  font-size: 2.5rem;
  font-weight: 700;
  line-height: 1.3;
  color: var(--primary-purple);
  margin-bottom: 0.75rem;
}

h3 {
  font-family: var(--font-sans);
  font-size: 1.25rem;
  font-weight: 600;
  line-height: 1.4;
  color: var(--dark-text);
  margin-bottom: 0.5rem;
}

/* Italic styling inside headings */
h1 em, h1 i,
h2 em, h2 i,
h3 em, h3 i,
.section-heading em,
.section-heading i {
  font-family: var(--font-serif);
  font-style: italic;
  color: var(--accent-gold);
  font-weight: 400;
}

p {
  font-size: 1rem;
  color: var(--muted-gray);
  max-width: 65ch;
  margin-bottom: 1rem;
}

p:last-child {
  margin-bottom: 0;
}

/* --------------------------------------------------------------------------
   Utility Classes
   -------------------------------------------------------------------------- */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  width: 100%;
}

.section-padding {
  padding: 100px 0;
}

.text-center {
  text-align: center;
}

.text-center p {
  margin-left: auto;
  margin-right: auto;
}

.section-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--primary-purple);
  margin-bottom: 12px;
}

.section-label::before {
  content: "";
  display: inline-block;
  width: 8px;
  height: 8px;
  background-color: var(--accent-gold);
  border-radius: var(--radius-circle);
}

.section-heading {
  font-family: var(--font-serif);
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--primary-purple);
  line-height: 1.3;
  margin-bottom: 16px;
}

/* Badges */
.badge {
  display: inline-block;
  padding: 4px 12px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border-radius: var(--radius-badge);
  background-color: var(--light-lavender);
  color: var(--primary-purple);
  border: 1px solid rgba(45, 27, 105, 0.15);
}

.badge-green {
  background-color: var(--soft-green);
  color: var(--soft-green-text);
  border: 1px solid rgba(46, 125, 50, 0.2);
}

.badge-gold {
  background-color: rgba(201, 168, 76, 0.15);
  color: var(--accent-gold-dark);
  border: 1px solid rgba(201, 168, 76, 0.3);
}

/* Buttons Design System */
.btn-primary,
.btn-secondary,
.btn-gold,
.btn-hero-primary,
.btn-hero-secondary,
.btn-cta-primary,
.btn-cta-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 0.98rem;
  padding: 13px 30px;
  border-radius: 50px;
  border: 2px solid transparent;
  cursor: pointer;
  text-decoration: none !important;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  text-align: center;
  line-height: 1.3;
  white-space: nowrap;
  box-sizing: border-box;
}

/* Gold / Hero Primary Button (.btn-gold) */
.btn-gold,
.btn-hero-primary,
.btn-cta-primary {
  background: linear-gradient(135deg, #D4AF37 0%, #C9A84C 50%, #B5943B 100%);
  color: #1a1a1a !important;
  border-color: #D4AF37;
  box-shadow: 0 4px 18px rgba(201, 168, 76, 0.4);
}

.btn-gold:hover,
.btn-hero-primary:hover,
.btn-cta-primary:hover {
  background: linear-gradient(135deg, #e5be46 0%, #D4AF37 50%, #C9A84C 100%);
  color: #000000 !important;
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 8px 25px rgba(201, 168, 76, 0.55);
  border-color: #e5be46;
}

/* Secondary Button (.btn-secondary & .btn-hero-secondary) */
.btn-secondary,
.btn-hero-secondary,
.btn-cta-secondary {
  background-color: rgba(255, 255, 255, 0.1);
  color: #ffffff !important;
  border: 2px solid rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(8px);
}

.btn-secondary:hover,
.btn-hero-secondary:hover,
.btn-cta-secondary:hover {
  background-color: #ffffff;
  color: var(--primary-purple) !important;
  border-color: #ffffff;
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 8px 25px rgba(255, 255, 255, 0.3);
}

/* Primary Purple Button (.btn-primary) */
.btn-primary {
  background: linear-gradient(135deg, #2D1B69 0%, #3e268a 100%);
  color: #ffffff !important;
  border-color: #2D1B69;
  box-shadow: 0 4px 16px rgba(45, 27, 105, 0.3);
}

.btn-primary:hover {
  background: linear-gradient(135deg, #3e268a 0%, #2D1B69 100%);
  color: #ffffff !important;
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 8px 22px rgba(45, 27, 105, 0.45);
}

/* Cards */
.card {
  background-color: var(--white);
  border-radius: var(--radius-card);
  box-shadow: var(--card-shadow);
  overflow: hidden;
  transition: var(--transition);
  border: 1px solid rgba(0, 0, 0, 0.04);
}

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

/* --------------------------------------------------------------------------
   Animations
   -------------------------------------------------------------------------- */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes slideInfinite {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

.infinite-carousel {
  width: 100%;
  overflow: hidden;
  position: relative;
}

.infinite-carousel-track,
.carousel-track {
  display: flex;
  gap: 24px;
  width: max-content;
  animation: slideInfinite 30s linear infinite;
}

.infinite-carousel:hover .infinite-carousel-track,
.infinite-carousel:hover .carousel-track,
.infinite-carousel-track:hover,
.carousel-track:hover {
  animation-play-state: paused;
}

.animate-on-scroll {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.animate-on-scroll.visible {
  opacity: 1;
  transform: translateY(0);
}

/* --------------------------------------------------------------------------
   Reusable CTA Section Styles
   -------------------------------------------------------------------------- */
.cta-section {
  position: relative;
  padding: 110px 0;
  background: url('../images/journey.jpg') center/cover no-repeat;
  background-color: var(--primary-purple);
  color: #ffffff;
  overflow: hidden;
  border-top: 1fr solid rgba(201, 168, 76, 0.2);
  border-bottom: 1px solid rgba(201, 168, 76, 0.2);
}

.cta-bg-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    135deg,
    rgba(45, 27, 105, 0.92) 0%,
    rgba(19, 12, 44, 0.96) 100%
  );
  z-index: 1;
}

.cta-container {
  position: relative;
  z-index: 2;
  max-width: 800px;
}

.cta-label {
  color: var(--accent-gold);
  margin-bottom: 16px;
}

.cta-label::before {
  background-color: var(--accent-gold);
}

.cta-heading {
  font-family: var(--font-serif);
  font-size: 3rem;
  font-weight: 700;
  color: #ffffff;
  line-height: 1.25;
  margin-bottom: 20px;
}

.cta-subtext {
  font-size: 1.125rem;
  color: rgba(255, 255, 255, 0.88);
  max-width: 680px;
  margin: 0 auto 36px;
  line-height: 1.6;
}

.cta-subtext strong {
  color: var(--accent-gold);
}

.cta-buttons {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
}

.btn-cta-secondary {
  border-color: rgba(255, 255, 255, 0.6);
  color: #ffffff;
}

.btn-cta-secondary:hover {
  background-color: #ffffff;
  color: var(--primary-purple);
  border-color: #ffffff;
  box-shadow: 0 4px 16px rgba(255, 255, 255, 0.2);
}

/* --------------------------------------------------------------------------
   Forms & Field Layouts
   -------------------------------------------------------------------------- */
.form-group {
  display: flex;
  flex-direction: column;
  margin-bottom: 20px;
}

.form-label {
  display: block;
  width: 100%;
  margin-bottom: 6px;
  font-weight: 600;
  color: var(--dark-text);
  font-size: 0.9rem;
}

/* --------------------------------------------------------------------------
   Responsive Design
   -------------------------------------------------------------------------- */
@media (max-width: 992px) {
  h1 {
    font-size: 3rem;
  }
  h2, .section-heading {
    font-size: 2.15rem;
  }
  .section-padding {
    padding: 75px 0;
  }
}

@media (max-width: 768px) {
  h1 {
    font-size: 2.35rem;
  }
  h2, .section-heading {
    font-size: 1.75rem;
  }
  h3 {
    font-size: 1.15rem;
  }
  .section-padding {
    padding: 60px 0;
  }
  .container {
    padding: 0 16px;
  }
}
