/*
  ============================================
  -- Table of Contents
  ============================================
  1.  CSS Variables & Root Styles
  2.  Global Styles (Body, Typography, Links)
  3.  Global UI Components (Buttons, Cards, Forms)
  4.  Header & Navigation
  5.  Footer
  6.  Section Styles
      - Hero Section
      - Services Section
      - Workshops Section (Timeline)
      - Events Section
      - Gallery Section
      - Testimonials Section
      - Resources Section
      - Contact Section
  7.  Page-Specific Styles
      - Legal Pages (Privacy, Terms)
      - Success Page
  8.  Animations & Transitions
  9.  Responsive Design (Media Queries)
  ============================================
*/

/* 1. CSS Variables & Root Styles
--------------------------------------------- */
:root {
  --font-heading: "Manrope", sans-serif;
  --font-body: "Rubik", sans-serif;

  /* Pastel Color Palette */
  --color-primary: #ffafcc; /* Pastel Pink/Peach */
  --color-primary-dark: #f895b7;
  --color-secondary: #a2d2ff; /* Pastel Blue */
  --color-accent: #bde0fe; /* Lighter Pastel Blue */
  --color-background: #fff5f8; /* Very light, soft background */

  /* Text & Neutral Colors */
  --color-text: #5a5a5a;
  --color-heading: #2c2c2c;
  --color-light: #ffffff;
  --color-dark: #222222;
  --color-muted: #888888;

  /* UI Element Variables */
  --border-radius-sm: 8px;
  --border-radius-md: 16px;
  --shadow-soft: 0 4px 10px rgba(0, 0, 0, 0.05);
  --shadow-volumetric: 0 5px 0px #e098ae, 0 8px 15px rgba(0, 0, 0, 0.15);
  --shadow-volumetric-hover: 0 2px 0px #e098ae, 0 4px 8px rgba(0, 0, 0, 0.1);
  --transition-smooth: all 0.3s ease-in-out;
}

/* 2. Global Styles
--------------------------------------------- */
body {
  font-family: var(--font-body);
  background-color: var(--color-background);
  color: var(--color-text);
  line-height: 1.7;
  font-size: 16px;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-heading);
  color: var(--color-heading);
  font-weight: 700;
}

.section-title {
  font-size: 2.5rem;
  font-weight: 800;
  margin-bottom: 1rem;
  position: relative;
  padding-bottom: 15px;
}

.section-title::after {
  content: "";
  position: absolute;
  display: block;
  width: 60px;
  height: 4px;
  background: var(--color-primary);
  left: 50%;
  transform: translateX(-50%);
  bottom: 0;
  border-radius: 2px;
}

a {
  color: var(--color-primary-dark);
  text-decoration: none;
  transition: var(--transition-smooth);
}

a:hover {
  color: var(--color-heading);
  text-decoration: none;
}

section {
  padding: 80px 0;
  overflow: hidden; /* Prevents horizontal scroll from animations */
}

/* 3. Global UI Components
--------------------------------------------- */

/* Volumetric Buttons */
.btn-volumetric,
.btn-primary {
  font-family: var(--font-heading);
  font-weight: 700;
  padding: 12px 30px;
  border-radius: var(--border-radius-sm);
  border: none;
  background-color: var(--color-primary);
  color: var(--color-dark);
  box-shadow: var(--shadow-volumetric);
  transition: var(--transition-smooth);
  transform: translateY(0);
}

.btn-volumetric:hover,
.btn-primary:hover {
  background-color: var(--color-primary-dark);
  color: var(--color-dark);
  transform: translateY(-3px);
  box-shadow: 0 8px 0px #e098ae, 0 12px 20px rgba(0, 0, 0, 0.2);
}

.btn-volumetric:active,
.btn-primary:active {
  transform: translateY(2px);
  box-shadow: var(--shadow-volumetric-hover);
}

/* Cards */
.card {
  border: none;
  border-radius: var(--border-radius-md);
  box-shadow: var(--shadow-soft);
  transition: var(--transition-smooth);
  background-color: var(--color-light);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 25px rgba(0, 0, 0, 0.1);
}

.card-image {
  width: 100%;
  height: 200px;
  overflow: hidden;
  border-radius: var(--border-radius-md) var(--border-radius-md) 0 0;
}

.card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition-smooth);
}

.card:hover .card-image img {
  transform: scale(1.05);
}

.card-body {
  padding: 25px;
}

.card-title {
  font-weight: 800;
  color: var(--color-heading);
}

/* Forms */
.form-control {
  border-radius: var(--border-radius-sm);
  border: 1px solid #ddd;
  padding: 12px 15px;
  transition: var(--transition-smooth);
  background-color: #fdfdfd;
}

.form-control:focus {
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(255, 175, 204, 0.4);
  background-color: var(--color-light);
}

/* 4. Header & Navigation
--------------------------------------------- */
.navbar {
  transition: var(--transition-smooth);
}

.navbar .nav-link {
  font-family: var(--font-body);
  font-weight: 500;
  color: var(--color-text);
  margin: 0 10px;
  padding: 8px 12px;
  border-radius: var(--border-radius-sm);
  transition: var(--transition-smooth);
}

.navbar .nav-link:hover,
.navbar .nav-link.active {
  color: var(--color-dark);
  background-color: rgba(255, 175, 204, 0.3);
}

/* 5. Footer
--------------------------------------------- */
.footer {
  background-color: var(--color-dark);
  color: #aab2c8;
}

.footer h6 {
  color: var(--color-light);
  font-family: var(--font-heading);
}

.footer a {
  color: #aab2c8;
  text-decoration: none;
}

.footer a:hover {
  color: var(--color-primary);
  padding-left: 5px;
}

/* 6. Section Styles
--------------------------------------------- */

/* Hero Section */
#hero {
  min-height: 90vh;
  width: 100%;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  position: relative;
  display: flex;
  align-items: center;
  color: var(--color-light);
}

#hero::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(
    to top,
    rgba(0, 0, 0, 0.6) 0%,
    rgba(0, 0, 0, 0.2) 100%
  );
  z-index: 1;
}

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

#hero h1 {
  color: var(--color-light);
}
#hero p {
  color: var(--color-light);
  font-size: 1.2rem;
}

/* Workshops Section (Timeline) */
.timeline {
  position: relative;
  max-width: 900px;
  margin: 0 auto;
}
.timeline::after {
  content: "";
  position: absolute;
  width: 4px;
  background-color: var(--color-secondary);
  top: 0;
  bottom: 0;
  left: 50%;
  margin-left: -2px;
}
.timeline-item {
  padding: 10px 40px;
  position: relative;
  width: 50%;
}
.timeline-item:nth-child(odd) {
  left: 0;
}
.timeline-item:nth-child(even) {
  left: 50%;
}
.timeline-item::after {
  content: "";
  position: absolute;
  width: 20px;
  height: 20px;
  right: -10px;
  background-color: var(--color-light);
  border: 4px solid var(--color-secondary);
  top: 25px;
  border-radius: 50%;
  z-index: 1;
}
.timeline-item:nth-child(even)::after {
  left: -10px;
}
.timeline-content {
  padding: 20px 30px;
  background-color: var(--color-light);
  position: relative;
  border-radius: var(--border-radius-md);
  box-shadow: var(--shadow-soft);
}
.timeline-date {
  font-family: var(--font-heading);
  font-weight: 800;
  color: var(--color-primary-dark);
}

/* Gallery Section */
.gallery-item {
  overflow: hidden;
  border-radius: var(--border-radius-md);
  box-shadow: var(--shadow-soft);
}
.gallery-item img {
  transition: transform 0.4s ease;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.gallery-item:hover img {
  transform: scale(1.1);
}

/* Testimonials Section */
#testimonials .carousel-item {
  padding: 40px 0;
}
#testimonials .blockquote {
  max-width: 700px;
  margin: auto;
  font-size: 1.1rem;
  font-style: italic;
}
#testimonials .blockquote-footer {
  margin-top: 20px;
  font-style: normal;
  font-weight: 500;
  color: var(--color-heading);
}
#testimonials .carousel-control-prev-icon,
#testimonials .carousel-control-next-icon {
  background-color: var(--color-primary);
  border-radius: 50%;
  padding: 15px;
}

/* Resources Section */
.resource-card {
  background-color: var(--color-light);
  padding: 25px;
  border-radius: var(--border-radius-md);
  box-shadow: var(--shadow-soft);
  height: 100%;
  transition: var(--transition-smooth);
}
.resource-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
}
.resource-card h5 a {
  color: var(--color-heading);
  text-decoration: none;
}
.resource-card h5 a:hover {
  color: var(--color-primary-dark);
}

/* Contact Section */
#contact {
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  position: relative;
}
#contact::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(rgba(44, 44, 44, 0.8), rgba(44, 44, 44, 0.8));
  z-index: 1;
}
#contact .container {
  position: relative;
  z-index: 2;
}
.contact-form-wrapper {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border-radius: var(--border-radius-md);
}
.contact-info {
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

/* 7. Page-Specific Styles
--------------------------------------------- */

/* Legal Pages (Privacy, Terms) */
.legal-page-content {
  padding-top: 120px;
  padding-bottom: 80px;
}
.legal-page-content h1 {
  margin-bottom: 30px;
}

/* Success Page */
.success-page-wrapper {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  text-align: center;
  padding: 20px;
}
.success-card {
  background: var(--color-light);
  padding: 50px;
  border-radius: var(--border-radius-md);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}
.success-card h1 {
  color: var(--color-primary-dark);
  font-size: 3rem;
}
.success-card p {
  font-size: 1.2rem;
  margin: 20px 0;
}

/* 8. Animations & Transitions
--------------------------------------------- */
.reveal {
  position: relative;
  opacity: 0;
  transform: translateY(50px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

/* Barba.js page transitions */
.barba-leave-active,
.barba-enter-active {
  transition: opacity 0.5s ease;
}
.barba-leave-to,
.barba-enter-from {
  opacity: 0;
}

/* 9. Responsive Design
--------------------------------------------- */
@media screen and (max-width: 768px) {
  .section-title {
    font-size: 2rem;
  }

  /* Timeline on mobile */
  .timeline::after {
    left: 20px;
  }
  .timeline-item {
    width: 100%;
    padding-left: 60px;
    padding-right: 15px;
    left: 0 !important;
  }
  .timeline-item::after {
    left: 11px;
  }
}

/* Minimal inline styles for cookie consent */
#cookie-consent-popup {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background-color: rgba(30, 30, 30, 0.95);
  color: #f1f1f1;
  padding: 20px;
  box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.2);
  z-index: 9999;
  text-align: center;
  font-family: "Rubik", sans-serif;
}

#cookie-consent-popup p {
  margin: 0 0 15px 0;
  font-size: 1rem;
}

#cookie-accept-btn {
  background-color: #ffafcc;
  color: #222;
  border: none;
  padding: 10px 25px;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 500;
  transition: all 0.3s ease;
}

#cookie-accept-btn:hover {
  background-color: #ffc8dd;
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}
