:root {
  /* Fonts */
  --font-primary: 'Montserrat', sans-serif;
  --font-secondary: 'Merriweather', serif;

  /* Pastel Colors & Theme */
  --color-primary: #A0D2DB; /* Main theme color - Pastel Blue */
  --color-primary-hover: #87CEEB; /* Slightly brighter/darker blue for hover */
  --color-primary-text: #2A324B; /* Darker blue for text on primary buttons */

  --color-secondary: #FFDAB9; /* Light Peach - for accents or secondary actions */
  --color-secondary-hover: #FFCCBC;
  --color-secondary-text: #5D4037; /* Brownish text for peach */

  --color-accent: #C9E4DE; /* Pale Mint - for highlights */

  --color-background-body: #FAF7F0; /* Off-white, warm cream */
  --color-background-section: #FFFFFF; /* White for section backgrounds for contrast */
  --color-background-card: #FFFFFF;
  --color-background-footer: #E8E8E8; /* Lighter grey for footer */

  --color-text-dark: #3D405B; /* Dark grayish blue for main text */
  --color-text-light: #FFFFFF;
  --color-text-medium: #6B7A8F; /* Softer gray for less prominent text */
  --color-text-muted: #92A0AD; /* Lighter grey for muted text */

  --color-link: #5DA9E9; /* Brighter, clearer blue for links */
  --color-link-hover: #4A89C8;

  --color-success: #A8D8B9; /* Pastel Green */
  --color-success-text: #2E7D32; /* Darker green for text on success */

  --color-info: var(--color-primary); /* Using primary for info button consistency */
  --color-info-text: var(--color-primary-text);


  /* Borders & Shadows */
  --border-radius-small: 5px;
  --border-radius-medium: 10px;
  --box-shadow-light: 0 3px 10px rgba(0, 0, 0, 0.07);
  --box-shadow-medium: 0 5px 20px rgba(0, 0, 0, 0.1);
  --box-shadow-heavy: 0 8px 25px rgba(0, 0, 0, 0.15);

  /* Spacing */
  --spacing-small: 0.5rem;  /* 8px */
  --spacing-medium: 1rem;   /* 16px */
  --spacing-large: 2rem;    /* 32px */
  --spacing-xlarge: 3rem;   /* 48px */
  --spacing-xxlarge: 4rem;  /* 64px */

  /* Transitions */
  --transition-fast: all 0.2s ease-out;
  --transition-smooth: all 0.35s cubic-bezier(0.25, 0.8, 0.25, 1); /* Bouncy/elastic feel */

  /* Header height for content offset */
  --header-height: 70px; /* Adjust if navbar height changes */
}

/* --- Global Styles --- */
html {
  scroll-behavior: smooth;
  font-size: 16px; /* Base font size for responsive typography */
}

body {
  font-family: var(--font-secondary);
  color: var(--color-text-dark);
  background-color: var(--color-background-body);
  line-height: 1.7;
  overflow-x: hidden; /* Prevent horizontal scroll from animations */
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* --- Typography --- */
h1, h2, h3, h4, h5, h6, .title, .subtitle {
  font-family: var(--font-primary);
  color: var(--color-text-dark) !important; /* Override Bulma's default title/subtitle color if needed */
  font-weight: 700;
  line-height: 1.3;
}

.title {
  margin-bottom: var(--spacing-medium) !important;
  text-shadow: 1px 1px 2px rgba(0,0,0,0.05);
}
.subtitle {
  color: var(--color-text-medium) !important;
  font-weight: 400;
  margin-bottom: var(--spacing-large) !important;
}

.section-title { /* Used for <h2 class="title is-2 has-text-centered section-title"> */
  margin-bottom: var(--spacing-large) !important;
  color: #222222 !important; /* Extra dark for section titles */
}
.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background-color: var(--color-primary);
    margin: var(--spacing-medium) auto var(--spacing-large);
}

p {
  margin-bottom: var(--spacing-medium);
  color: var(--color-text-medium);
}

a {
  color: var(--color-link);
  text-decoration: none;
  transition: var(--transition-smooth);
  font-weight: 500; /* Slightly bolder links */
}
a:hover {
  color: var(--color-link-hover);
  text-decoration: underline;
}

/* --- Bulma Overrides & Theming --- */
.button {
  font-family: var(--font-primary);
  font-weight: 700;
  border-radius: var(--border-radius-small);
  transition: var(--transition-smooth), transform 0.1s ease-out;
  padding: 0.75em 1.5em;
  box-shadow: var(--box-shadow-light);
  border: none; /* Remove Bulma's default border for solid buttons */
  letter-spacing: 0.5px;
}
.button:hover {
  transform: translateY(-3px) scale(1.03);
  box-shadow: var(--box-shadow-medium);
}
.button:active {
  transform: translateY(-1px) scale(1);
  box-shadow: inset 0 2px 4px rgba(0,0,0,0.1);
}

.button.is-primary {
  background-color: var(--color-primary);
  color: var(--color-primary-text);
}
.button.is-primary:hover {
  background-color: var(--color-primary-hover);
  color: var(--color-primary-text);
}

.button.is-link { /* Used by HTML for some cards */
  background-color: var(--color-link);
  color: var(--color-text-light);
}
.button.is-link:hover {
  background-color: var(--color-link-hover);
  color: var(--color-text-light);
}

.button.is-info { /* Used by HTML for some cards */
  background-color: var(--color-info);
  color: var(--color-info-text);
}
.button.is-info:hover {
  background-color: var(--color-primary-hover); /* Using primary hover for consistency */
  color: var(--color-info-text);
}

.button.is-success {
  background-color: var(--color-success);
  color: var(--color-success-text);
}
.button.is-success:hover {
  background-color: #8BC9A0; /* Slightly darker success */
  color: var(--color-success-text);
}

.button.is-outlined {
  background-color: transparent;
  border-width: 2px;
  border-style: solid;
}
.button.is-primary.is-outlined {
  border-color: var(--color-primary);
  color: var(--color-primary);
}
.button.is-primary.is-outlined:hover {
  background-color: var(--color-primary);
  color: var(--color-primary-text);
}
.button.is-link.is-outlined {
  border-color: var(--color-link);
  color: var(--color-link);
}
.button.is-link.is-outlined:hover {
  background-color: var(--color-link);
  color: var(--color-text-light);
}


.input, .textarea, .select select {
  font-family: var(--font-secondary);
  border-radius: var(--border-radius-small);
  box-shadow: inset 0 1px 3px rgba(0,0,0,0.06);
  transition: var(--transition-smooth);
  border: 1px solid #d1d1d1; /* Lightened border */
  background-color: #fdfdfd;
}
.input:focus, .textarea:focus, .select select:focus,
.input:active, .textarea:active, .select select:active {
  border-color: var(--color-primary);
  box-shadow: 0 0 0 0.125em var(--color-primary-hover); /* Bulma-like focus with pastel color */
}

.box {
  background-color: var(--color-background-card);
  border-radius: var(--border-radius-medium);
  box-shadow: var(--box-shadow-medium);
  padding: var(--spacing-large);
  transition: var(--transition-smooth);
}
.box:hover {
    transform: translateY(-5px);
    box-shadow: var(--box-shadow-heavy);
}

.progress {
    height: 10px !important;
    border-radius: var(--border-radius-small);
    background-color: #e0e0e0; /* Lighter background for progress bar track */
}
.progress::-webkit-progress-value {
    background-color: var(--color-primary) !important;
    border-radius: var(--border-radius-small);
    transition: width 0.5s ease-in-out;
}
.progress::-moz-progress-bar {
    background-color: var(--color-primary) !important;
    border-radius: var(--border-radius-small);
    transition: width 0.5s ease-in-out;
}
.progress::-ms-fill {
    background-color: var(--color-primary) !important;
    border-radius: var(--border-radius-small);
    transition: width 0.5s ease-in-out;
}


/* --- Header / Navbar --- */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background-color: rgba(255, 253, 248, 0.85); /* Slightly transparent --color-background-body */
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 2px 10px rgba(0,0,0,0.08);
  transition: var(--transition-smooth);
}
.navbar {
  min-height: var(--header-height);
}
.navbar-item, .navbar-link {
  font-family: var(--font-primary);
  font-weight: 600;
  color: var(--color-text-dark);
  transition: var(--transition-smooth);
  padding: 0.5rem 1.25rem;
}
.navbar-item:hover, .navbar-link:hover, .navbar-item.is-active {
  background-color: transparent !important; /* Important to override Bulma */
  color: var(--color-primary) !important;
}
.site-title {
    font-family: var(--font-primary);
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--color-primary);
}

.navbar-burger {
  color: var(--color-text-dark);
}
.navbar-burger:hover {
  background-color: rgba(0,0,0,0.05);
}

@media screen and (max-width: 1023px) {
  .navbar-menu {
    background-color: rgba(250, 247, 240, 0.98); /* --color-background-body almost opaque */
    box-shadow: 0 8px 16px rgba(10,10,10,.1);
    padding: 0.5rem 0;
    border-bottom-left-radius: var(--border-radius-medium);
    border-bottom-right-radius: var(--border-radius-medium);
  }
  .navbar-item {
      padding: 0.75rem 1.5rem;
  }
}

/* --- Hero Section --- */
.hero.hero-main-background {
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  position: relative;
}
.hero .title.is-1 {
  font-size: 3rem;
  color: var(--color-text-light) !important;
  text-shadow: 2px 2px 8px rgba(0,0,0,0.7);
}
.hero .subtitle.is-4 {
  font-size: 1.5rem;
  color: var(--color-text-light) !important;
  text-shadow: 1px 1px 6px rgba(0,0,0,0.6);
  margin-bottom: var(--spacing-xlarge) !important;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}
.hero .button {
    margin-top: var(--spacing-large);
}

@media screen and (min-width: 769px) {
  .hero.is-large .hero-body {
    padding-bottom: 10rem;
    padding-top: 10rem; /* Reduced padding for more content visibility */
  }
  .hero .title.is-1 {
    font-size: 3.8rem;
  }
  .hero .subtitle.is-4 {
    font-size: 1.8rem;
  }
}
@media screen and (min-width: 1024px) {
  .hero .title.is-1 {
    font-size: 4.2rem;
  }
}

/* --- General Section Styling --- */
.section {
  padding: var(--spacing-xxlarge) var(--spacing-large);
  background-color: var(--color-background-section);
}
.section:nth-child(even) { /* Alternating section background */
    background-color: var(--color-background-body);
}
/* Hero is not a .section, so the first actual section will have default padding */

/* Pages like privacy, terms, contact, about */
body[data-barba-namespace="privacy"] main,
body[data-barba-namespace="terms"] main,
body[data-barba-namespace="contact"] main, /* Added contact */
body[data-barba-namespace="about"] main { /* Added about */
    padding-top: calc(var(--header-height) + var(--spacing-large));
}
body[data-barba-namespace="success"] main {
    min-height: calc(100vh - var(--header-height)); /* Account for header */
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding-top: var(--header-height); /* This is for the main element, content inside will be centered */
}


/* --- Card Styling (Services, Workshops, Gallery) --- */
.card {
  height: 100%;
  display: flex;
  flex-direction: column;
  background-color: var(--color-background-card);
  border-radius: var(--border-radius-medium);
  box-shadow: var(--box-shadow-light);
  transition: var(--transition-smooth), transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1); /* Bouncier hover */
  overflow: hidden;
}
.card:hover {
  transform: translateY(-10px); /* More pronounced lift */
  box-shadow: var(--box-shadow-heavy);
}

.card .card-image { /* Bulma class */
  overflow: hidden;
  position: relative; /* For potential overlays if needed */
}
.card .card-image .image { /* Bulma .image wrapper for ratio */
  display: block;
}
.card .card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.card:hover .card-image img {
  transform: scale(1.08); /* Slightly more zoom on hover */
}

.card .card-content {
  padding: var(--spacing-large);
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}
.card .card-content .title {
  margin-bottom: var(--spacing-small) !important;
  font-size: 1.5rem; /* Consistent card title size */
}
.card .card-content .subtitle {
  margin-bottom: var(--spacing-medium) !important;
  font-size: 1rem;
  color: var(--color-primary) !important; /* Card subtitle in primary color */
}
.card .card-content .content {
  flex-grow: 1;
  font-size: 0.95rem;
  color: var(--color-text-medium);
  line-height: 1.6;
}
.card .card-content .button {
  margin-top: auto; /* Push button to bottom of card */
}


/* --- Our Process Section --- */
.process-step {
  text-align: center;
}
.process-step .title {
    margin-bottom: var(--spacing-medium) !important;
}
.process-step .progress {
    margin-top: var(--spacing-medium);
}

/* --- External Resources Section --- */
.resource-item {
    margin-bottom: var(--spacing-medium);
    background-color: var(--color-background-card); /* Consistent with other boxes */
}
.resource-item h4 a {
    color: var(--color-link);
    font-weight: 600; /* Match other link weights */
}
.resource-item h4 a:hover {
    color: var(--color-link-hover);
}
.resource-item p {
    font-size: 0.9rem;
    color: var(--color-text-muted);
}

/* --- Events Section --- */
.event-item {
  margin-bottom: var(--spacing-large);
  border-left: 5px solid var(--color-accent); /* Using accent color for events */
  padding-left: calc(var(--spacing-large) + 5px);
}
.event-item .title {
    margin-bottom: var(--spacing-small) !important;
    color: var(--color-text-dark) !important;
}
.event-item .subtitle {
    margin-bottom: var(--spacing-medium) !important;
    color: var(--color-text-muted) !important;
    font-size: 0.9rem;
}

/* --- Careers Section --- */
.career-image {
  border-radius: var(--border-radius-medium);
  box-shadow: var(--box-shadow-medium);
  margin-bottom: var(--spacing-large);
  max-width: 100%;
  height: auto;
}
.careers-list {
    list-style: disc;
    margin-left: var(--spacing-large);
    margin-bottom: var(--spacing-medium);
    text-align: left; /* Ensure lists are left-aligned if parent is centered */
}
.careers-list li {
    margin-bottom: var(--spacing-small);
    color: var(--color-text-medium);
}


/* --- Contact Form (on contacts.html) --- */
.contact-form-container {
    background-color: var(--color-background-card);
    padding: var(--spacing-xlarge);
    border-radius: var(--border-radius-medium);
    box-shadow: var(--box-shadow-heavy);
    max-width: 700px; /* Limit form width */
    margin: 0 auto; /* Center the form container */
}
.contact-form-container .title {
    text-align: center;
    margin-bottom: var(--spacing-xlarge) !important;
}
.contact-form-container .field:not(:last-child) {
    margin-bottom: var(--spacing-medium) !important;
}
.contact-form-container .label {
    font-family: var(--font-primary);
    color: var(--color-text-dark);
    font-weight: 600;
    font-size: 0.9rem;
}
.contact-form-container .button {
    width: 100%;
    padding: var(--spacing-medium) 0;
    font-size: 1.1rem;
}

/* Styling for success.html, privacy.html, terms.html, about.html content */
.static-page-content .container {
    max-width: 800px;
    margin: 0 auto;
    padding: var(--spacing-xlarge) var(--spacing-large);
    background-color: var(--color-background-card);
    border-radius: var(--border-radius-medium);
    box-shadow: var(--box-shadow-medium);
}
.static-page-content h1.title, .static-page-content h2.title {
    margin-bottom: var(--spacing-large);
    color: var(--color-primary) !important;
}
.static-page-content h1.title.is-1 {
    font-size: 2.5rem;
}
.static-page-content p, .static-page-content ul, .static-page-content li {
    color: var(--color-text-medium);
    font-size: 1.05rem;
    line-height: 1.8;
}
.static-page-content ul {
    list-style: disc;
    margin-left: var(--spacing-large);
    padding-left: var(--spacing-small);
    margin-bottom: var(--spacing-medium);
}

/* --- Footer --- */
.footer {
  background-color: var(--color-background-footer);
  padding: var(--spacing-xlarge) var(--spacing-medium) var(--spacing-medium);
  color: var(--color-text-medium);
  font-size: 0.9rem;
}
.footer .title.is-5 {
  font-family: var(--font-primary);
  color: var(--color-text-dark) !important;
  margin-bottom: var(--spacing-medium);
  font-size: 1.1rem; /* Slightly smaller footer titles */
  font-weight: 600;
}
.footer a {
  color: var(--color-text-medium);
  transition: var(--transition-fast);
}
.footer a:hover {
  color: var(--color-primary);
  text-decoration: none;
}
.footer .columns {
  margin-bottom: var(--spacing-large);
}
.footer .column p {
    margin-bottom: var(--spacing-small); /* Tighter spacing for footer links */
}
.footer hr {
    background-color: #cccccc;
    height: 1px;
    margin: var(--spacing-large) 0;
}
.footer .content.has-text-centered p {
    margin-bottom: var(--spacing-small);
}


/* --- Animations and ScrollReveal --- */
.scroll-reveal-item {
  visibility: hidden;
}

/* --- Barba.js Page Transitions --- */
.barba-leave-active,
.barba-enter-active {
  transition: opacity 0.4s ease, transform 0.4s ease;
}
.barba-leave-to {
  opacity: 0;
  transform: translateY(30px) scale(0.98);
}
.barba-enter-from {
  opacity: 0;
  transform: translateY(-30px) scale(0.98);
}


/* --- Responsive Adjustments --- */
@media screen and (max-width: 768px) {
  html {
    font-size: 15px;
  }
  .section {
    padding: var(--spacing-xlarge) var(--spacing-medium);
  }
  .hero .title.is-1 {
    font-size: 2.2rem;
  }
  .hero .subtitle.is-4 {
    font-size: 1.2rem;
  }
  .contact-form-container {
    padding: var(--spacing-large);
  }
  .footer .columns .column {
      margin-bottom: var(--spacing-large);
      text-align: center; /* Center footer columns on mobile */
  }
  .footer .columns .column:last-child {
      margin-bottom: 0;
  }
  .static-page-content .container {
    padding: var(--spacing-large) var(--spacing-medium);
  }
}