/* ===== VARIABLES ===== */
:root {
  /* Primary Colors - Retro Pastel Palette */
  --primary-color: #f5b8a2;
  --primary-dark: #e8937a;
  --primary-light: #ffd6c9;
  
  /* Secondary Colors */
  --secondary-color: #a2d5f5;
  --secondary-dark: #7ab8e8;
  --secondary-light: #c9e8ff;
  
  /* Accent Colors */
  --accent-color: #b8f5a2;
  --accent-dark: #93e87a;
  --accent-light: #d6ffc9;
  
  /* Neutral Colors */
  --text-color: #333333;
  --text-light: #666666;
  --text-lighter: #999999;
  --background-light: #f9f7f4;
  --background-white: #ffffff;
  --border-color: #e6e0d8;
  
  /* Overlay Colors */
  --overlay-dark: rgba(0, 0, 0, 0.5);
  --overlay-light: rgba(255, 255, 255, 0.85);
  --overlay-primary: rgba(245, 184, 162, 0.2);
  
  /* Shadows */
  --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 8px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 8px 16px rgba(0, 0, 0, 0.15);
  
  /* Transitions */
  --transition-fast: 0.2s ease-out;
  --transition-normal: 0.3s ease-out;
  --transition-slow: 0.5s ease-out;
  
  /* Border Radius */
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 16px;
  
  /* Font Sizes */
  --font-size-xs: 0.75rem;
  --font-size-sm: 0.875rem;
  --font-size-md: 1rem;
  --font-size-lg: 1.25rem;
  --font-size-xl: 1.5rem;
  --font-size-2xl: 2rem;
  --font-size-3xl: 2.5rem;
  
  /* Spacing */
  --space-xs: 0.25rem;
  --space-sm: 0.5rem;
  --space-md: 1rem;
  --space-lg: 1.5rem;
  --space-xl: 2rem;
  --space-2xl: 3rem;
  --space-3xl: 4rem;
}

/* ===== BASE STYLES ===== */
html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Merriweather', serif;
  color: var(--text-color);
  background-color: var(--background-light);
  line-height: 1.6;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6, .title, .subtitle {
  font-family: 'Montserrat', sans-serif;
  font-weight: 600;
  line-height: 1.3;
}

p {
  margin-bottom: var(--space-md);
}

a {
  color: var(--primary-dark);
  transition: color var(--transition-fast);
}

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

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

.container {
  padding: 0 var(--space-lg);
}

/* ===== UTILITY CLASSES ===== */
.text-center {
  text-align: center;
}

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

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

.py-1 { padding-top: var(--space-xs); padding-bottom: var(--space-xs); }
.py-2 { padding-top: var(--space-sm); padding-bottom: var(--space-sm); }
.py-3 { padding-top: var(--space-md); padding-bottom: var(--space-md); }
.py-4 { padding-top: var(--space-lg); padding-bottom: var(--space-lg); }
.py-5 { padding-top: var(--space-xl); padding-bottom: var(--space-xl); }
.py-6 { padding-top: var(--space-2xl); padding-bottom: var(--space-2xl); }

.px-1 { padding-left: var(--space-xs); padding-right: var(--space-xs); }
.px-2 { padding-left: var(--space-sm); padding-right: var(--space-sm); }
.px-3 { padding-left: var(--space-md); padding-right: var(--space-md); }
.px-4 { padding-left: var(--space-lg); padding-right: var(--space-lg); }
.px-5 { padding-left: var(--space-xl); padding-right: var(--space-xl); }
.px-6 { padding-left: var(--space-2xl); padding-right: var(--space-2xl); }

/* ===== BUTTONS ===== */
.button {
  font-family: 'Montserrat', sans-serif;
  font-weight: 500;
  transition: all var(--transition-normal);
  border-radius: var(--radius-md);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.button:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

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

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

.button.is-light {
  background-color: var(--background-white);
  color: var(--primary-dark);
}

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

.button.is-light.is-outlined {
  border-color: var(--background-white);
  color: var(--background-white);
}

.button.is-light.is-outlined:hover {
  background-color: var(--background-white);
  color: var(--primary-dark);
}

/* ===== NAVBAR ===== */
.navbar {
  background-color: var(--background-white);
  box-shadow: var(--shadow-sm);
  transition: background-color var(--transition-normal);
}

.navbar-item {
  font-family: 'Montserrat', sans-serif;
  font-weight: 500;
  color: var(--text-color);
  transition: color var(--transition-fast);
}

.navbar-item:hover {
  color: var(--primary-color);
  background-color: transparent !important;
}

.navbar-burger {
  color: var(--text-color);
}

.navbar-burger:hover {
  background-color: var(--background-light);
}

/* ===== HERO SECTION ===== */
.hero {
  position: relative;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to bottom, var(--overlay-dark), var(--overlay-dark));
  z-index: 1;
}

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

.hero .title,
.hero .subtitle,
.hero p {
  color: var(--background-white) !important;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.hero .buttons {
  margin-top: var(--space-xl);
}

/* ===== MISSION SECTION ===== */
.mission-section {
  background-color: var(--background-white);
  padding: var(--space-3xl) 0;
}

.mission-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-xl);
  background-color: var(--background-light);
  border-radius: var(--radius-lg);
  padding: var(--space-xl);
  box-shadow: var(--shadow-md);
}

@media screen and (min-width: 768px) {
  .mission-card {
    flex-direction: row;
  }
}

.mission-image {
  flex: 1;
  max-width: 100%;
  text-align: center;
}

.mission-image img {
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  max-width: 100%;
  height: auto;
  object-fit: cover;
  margin: 0 auto;
}

.mission-content {
  flex: 1;
  padding: var(--space-lg);
}

/* ===== HISTORY SECTION ===== */
.history-section {
  background-color: var(--background-light);
  padding: var(--space-3xl) 0;
  position: relative;
}

.timeline {
  position: relative;
  max-width: 1200px;
  margin: 0 auto;
}

.timeline::after {
  content: '';
  position: absolute;
  width: 4px;
  background-color: var(--primary-light);
  top: 0;
  bottom: 0;
  left: 50%;
  margin-left: -2px;
  z-index: 1;
}

.timeline-item {
  position: relative;
  margin-bottom: var(--space-3xl);
}

.timeline-marker {
  position: absolute;
  width: 20px;
  height: 20px;
  background-color: var(--primary-color);
  border-radius: 50%;
  top: 30px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  box-shadow: var(--shadow-sm);
}

.timeline-content {
  width: 45%;
  position: relative;
  margin-left: 55%;
}

.timeline-item:nth-child(even) .timeline-content {
  margin-left: 0;
  margin-right: 55%;
}

@media screen and (max-width: 767px) {
  .timeline::after {
    left: 31px;
  }
  
  .timeline-marker {
    left: 31px;
    transform: none;
  }
  
  .timeline-content {
    width: calc(100% - 80px);
    margin-left: 80px;
  }
  
  .timeline-item:nth-child(even) .timeline-content {
    margin-left: 80px;
    margin-right: 0;
  }
}

.timeline .card {
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  transition: transform var(--transition-normal);
}

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

.timeline .card-image {
  overflow: hidden;
}

.timeline .image-container {
  height: 250px;
  overflow: hidden;
}

.timeline .image-container img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);
}

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

.timeline .card-content {
  padding: var(--space-lg);
  background-color: var(--background-white);
}

/* ===== TEAM SECTION ===== */
.team-section {
  background-color: var(--background-white);
  padding: var(--space-3xl) 0;
}

.team-card {
  height: 100%;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  transition: transform var(--transition-normal);
  display: flex;
  flex-direction: column;
}

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

.team-card .card-image {
  overflow: hidden;
}

.team-card .image {
  height: 300px;
  overflow: hidden;
}

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

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

.team-card .card-content {
  padding: var(--space-lg);
  background-color: var(--background-white);
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.team-card .title,
.team-card .subtitle {
  margin-bottom: var(--space-sm);
}

/* ===== RESOURCES SECTION ===== */
.resources-section {
  background-color: var(--background-light);
  padding: var(--space-3xl) 0;
}

.resource-card {
  height: 100%;
  border-radius: var(--radius-md);
  background-color: var(--background-white);
  box-shadow: var(--shadow-md);
  transition: transform var(--transition-normal);
}

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

.resource-card .card-content {
  padding: var(--space-lg);
}

.resource-card a {
  color: var(--primary-dark);
  transition: color var(--transition-fast);
  text-decoration: none;
}

.resource-card a:hover {
  color: var(--primary-color);
}

/* ===== GALLERY SECTION ===== */
.gallery-section {
  background-color: var(--background-white);
  padding: var(--space-3xl) 0;
}

.gallery-card {
  height: 100%;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  transition: transform var(--transition-normal);
  display: flex;
  flex-direction: column;
}

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

.gallery-card .card-image {
  overflow: hidden;
}

.gallery-card .image {
  height: 250px;
  overflow: hidden;
}

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

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

.gallery-card .card-content {
  padding: var(--space-lg);
  background-color: var(--background-white);
  flex-grow: 1;
}

.gallery-card .title {
  color: var(--primary-dark);
  margin-bottom: var(--space-sm);
}

/* ===== FAQ SECTION ===== */
.faq-section {
  background-color: var(--background-light);
  padding: var(--space-3xl) 0;
}

.faq-container {
  max-width: 800px;
  margin: 0 auto;
}

.faq-item {
  margin-bottom: var(--space-lg);
  border-radius: var(--radius-md);
  background-color: var(--background-white);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}

.faq-question {
  padding: var(--space-lg);
  margin: 0;
  cursor: pointer;
  position: relative;
  background-color: var(--background-white);
  transition: background-color var(--transition-fast);
}

.faq-question::after {
  content: '+';
  position: absolute;
  right: var(--space-lg);
  top: 50%;
  transform: translateY(-50%);
  font-size: var(--font-size-xl);
  transition: transform var(--transition-fast);
}

.faq-question.is-active::after {
  transform: translateY(-50%) rotate(45deg);
}

.faq-question:hover {
  background-color: var(--primary-light);
}

.faq-answer {
  padding: 0 var(--space-lg);
  max-height: 0;
  overflow: hidden;
  transition: max-height var(--transition-normal);
}

.faq-answer p {
  padding-bottom: var(--space-lg);
}

/* ===== CONTACT SECTION ===== */
.contact-section {
  background-color: var(--background-white);
  padding: var(--space-3xl) 0;
}

.contact-card {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

.contact-card .card-content {
  padding: var(--space-xl);
}

.contact-info {
  margin-bottom: var(--space-lg);
}

.contact-info p {
  margin-bottom: var(--space-sm);
}

.contact-form .field {
  margin-bottom: var(--space-md);
}

.contact-form .label {
  color: var(--text-color);
}

.contact-form .input,
.contact-form .textarea,
.contact-form .select select {
  background-color: var(--background-light);
  border-color: var(--border-color);
  border-radius: var(--radius-sm);
  transition: border-color var(--transition-fast);
}

.contact-form .input:focus,
.contact-form .textarea:focus,
.contact-form .select select:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 1px var(--primary-light);
}

.social-media .buttons {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
}

/* ===== FOOTER ===== */
.footer {
  background-color: var(--background-light);
  padding: var(--space-2xl) 0;
  position: relative;
}

.footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(to right, var(--primary-light), var(--primary-color), var(--primary-dark));
}

.footer .title {
  color: var(--primary-dark);
  margin-bottom: var(--space-md);
}

.footer ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer ul li {
  margin-bottom: var(--space-sm);
}

.footer a {
  color: var(--text-color);
  text-decoration: none;
  transition: color var(--transition-fast);
}

.footer a:hover {
  color: var(--primary-color);
}

.social-links {
  margin-top: var(--space-sm);
}

.social-links a {
  margin-right: var(--space-sm);
  transition: color var(--transition-fast);
}

.social-links a:hover {
  color: var(--primary-color);
}

/* ===== SUCCESS PAGE ===== */
.success-page {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  text-align: center;
  padding: var(--space-lg);
  background-color: var(--background-light);
}

.success-page .card {
  max-width: 600px;
  width: 100%;
  padding: var(--space-xl);
  border-radius: var(--radius-lg);
  background-color: var(--background-white);
  box-shadow: var(--shadow-md);
}

.success-page .title {
  color: var(--primary-dark);
  margin-bottom: var(--space-lg);
}

.success-page .button {
  margin-top: var(--space-lg);
}

/* ===== PRIVACY & TERMS PAGES ===== */
.privacy-page,
.terms-page {
  padding-top: 100px;
  padding-bottom: var(--space-3xl);
  background-color: var(--background-light);
}

.privacy-content,
.terms-content {
  background-color: var(--background-white);
  padding: var(--space-xl);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
}

/* ===== RESPONSIVE FIXES ===== */
@media screen and (max-width: 768px) {
  .navbar-menu {
    background-color: var(--background-white);
    box-shadow: var(--shadow-md);
  }
  
  .mission-card {
    flex-direction: column;
  }
  
  .mission-image,
  .mission-content {
    width: 100%;
  }
  
  .contact-card .columns {
    flex-direction: column-reverse;
  }
  
  .contact-info {
    margin-top: var(--space-xl);
  }
}

/* ===== ANIMATION EFFECTS ===== */
/* Parallax effect for hero */
.hero {
  background-attachment: fixed;
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
}

/* Scroll reveal animation (works with ScrollReveal.js) */
.mission-card,
.timeline-item,
.team-card,
.resource-card,
.gallery-card,
.faq-item,
.contact-card {
  visibility: hidden;
}

.title:not(.is-spaced)+.subtitle {
    margin-top: 0 !important;
}

@media (max-width:768px){
    .section {
      padding-left: 0;
      padding-right: 0;
    }
}

@media (max-width:450px){
    .title.is-2 {
    font-size: 2.2rem;
}
}