/* Solterra Candles - Main Stylesheet */

/* CSS Variables */
:root {
  /* Tetrad Color Scheme */
  --primary: #4a9f6e;     /* Green - Primary */
  --primary-dark: #38805c;
  --primary-light: #6abf8a;
  
  --secondary: #9f4a7c;   /* Magenta - Secondary */
  --secondary-dark: #7e3863;
  --secondary-light: #b76e97;
  
  --tertiary: #4a7c9f;    /* Blue - Tertiary */
  --tertiary-dark: #38617e;
  --tertiary-light: #6e97b7;
  
  --quaternary: #9f7c4a;  /* Amber - Quaternary */
  --quaternary-dark: #7e6338;
  --quaternary-light: #b7976e;
  
  /* Neutrals */
  --white: #ffffff;
  --off-white: #f8f9fa;
  --light-gray: #e9ecef;
  --medium-gray: #adb5bd;
  --dark-gray: #495057;
  --near-black: #212529;
  
  /* Typography */
  --heading-font: 'Roboto', sans-serif;
  --body-font: 'Lato', sans-serif;
  
  /* Other Variables */
  --border-radius: 10px;
  --card-shadow: 0 8px 20px rgba(0, 0, 0, 0.05);
  --transition-speed: 0.3s;
  --section-padding: 5rem 0;
}

/* Global Styles */
html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--body-font);
  color: var(--dark-gray);
  line-height: 1.6;
  overflow-x: hidden;
}

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

a {
  color: var(--primary);
  transition: color var(--transition-speed) ease;
}

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

.section {
  padding: var(--section-padding);
  position: relative;
}

.section.has-background-light {
  background-color: var(--off-white);
  background-image: radial-gradient(circle at top right, rgba(106, 191, 138, 0.1), transparent 70%),
                    radial-gradient(circle at bottom left, rgba(183, 151, 110, 0.1), transparent 70%);
}

/* Typography Enhancements */
.title.is-2 {
  position: relative;
  margin-bottom: 2.5rem;
  padding-bottom: 1rem;
}

.title.is-2::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 3px;
  background: linear-gradient(to right, var(--primary), var(--tertiary));
  border-radius: 3px;
}

.subtitle {
  color: var(--dark-gray);
  margin-bottom: 2rem;
}

/* Button Styles */
.button {
  transition: all var(--transition-speed) ease;
  font-weight: 500;
  position: relative;
  overflow: hidden;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  border: none;
  z-index: 1;
}

.button::after {
  content: '';
  position: absolute;
  z-index: -1;
  width: 100%;
  height: 0;
  bottom: 0;
  left: 0;
  background: rgba(0, 0, 0, 0.1);
  transition: all var(--transition-speed) ease;
}

.button:hover::after {
  height: 100%;
}

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

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

.button.is-light {
  background-color: var(--white);
  color: var(--primary);
  border: 1px solid var(--primary);
}

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

.button.is-rounded {
  border-radius: 2rem;
}

.buttons.is-centered {
  justify-content: center;
  gap: 1rem;
}

/* Card Styles */
.card {
  border-radius: var(--border-radius);
  box-shadow: var(--card-shadow);
  overflow: hidden;
  transition: transform var(--transition-speed) ease, box-shadow var(--transition-speed) ease;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.card-image {
  text-align: center;
  overflow: hidden;
}

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

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

.card-content {
  padding: 1.5rem;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

/* Navigation */
.navbar {
  background-color: var(--white);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  transition: background-color var(--transition-speed) ease, box-shadow var(--transition-speed) ease;
}

.navbar-brand a.navbar-item {
  padding: 0.5rem 1rem;
}

.navbar-item {
  font-weight: 500;
  position: relative;
}

.navbar-item::after {
  content: '';
  position: absolute;
  bottom: 10px;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 2px;
  background-color: var(--primary);
  transition: width var(--transition-speed) ease;
}

.navbar-item:hover::after {
  width: 60%;
}

/* Hero Section */
.hero {
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  position: relative;
}

.hero-body {
  display: flex;
  align-items: center;
  z-index: 2;
}

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

.hero .buttons {
  margin-top: 2rem;
}

/* About / History Section */
#about .image {
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: var(--card-shadow);
}

#about .image img {
  transition: transform var(--transition-speed) ease;
}

#about .image:hover img {
  transform: scale(1.05);
}

/* Why Us Section */
#why-us .card {
  height: 100%;
  background: var(--white);
}

#why-us .title.is-4 {
  color: var(--primary);
  margin-bottom: 0.5rem;
}

/* Products Gallery */
#products .card-image figure {
  height: 250px;
  overflow: hidden;
}

#products .card-image img {
  object-fit: cover;
  width: 100%;
  height: 100%;
}

#products .price {
  margin: 1rem 0;
  font-size: 1.25rem;
  color: var(--secondary);
}

#products .button {
  margin-top: 1rem;
}

/* Innovation Section */
#innovation .progress-container {
  margin-top: 2rem;
}

#innovation .progress {
  margin-bottom: 1.5rem;
  height: 12px;
  border-radius: 6px;
  overflow: hidden;
}

#innovation .progress.is-primary::-webkit-progress-value {
  background-color: var(--primary);
  background-image: linear-gradient(to right, var(--primary), var(--primary-light));
}

#innovation .progress.is-info::-webkit-progress-value {
  background-color: var(--tertiary);
  background-image: linear-gradient(to right, var(--tertiary), var(--tertiary-light));
}

#innovation .progress.is-success::-webkit-progress-value {
  background-color: var(--quaternary);
  background-image: linear-gradient(to right, var(--quaternary), var(--quaternary-light));
}

#innovation .image {
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: var(--card-shadow);
}

/* Workshop Section */
#workshops .image {
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: var(--card-shadow);
}

#workshops .workshop-schedule {
  background-color: var(--off-white);
  padding: 1.5rem;
  border-radius: var(--border-radius);
  margin: 1.5rem 0;
}

#workshops .workshop-schedule ul {
  margin-left: 1.5rem;
}

#workshops .workshop-schedule li {
  margin-bottom: 0.5rem;
}

#workshops .buttons {
  margin-top: 1.5rem;
}

/* Instructors Section */
#instructors .card-image figure {
  overflow: hidden;
}

#instructors .card-image img {
  transition: transform 0.5s ease;
  object-fit: cover;
  width: 100%;
  height: 100%;
}

#instructors .card:hover .card-image img {
  transform: scale(1.1);
}

#instructors .subtitle.is-6 {
  color: var(--primary);
  font-weight: 500;
}

/* Team Section */
#team .card-image figure {
  border-radius: 50%;
  overflow: hidden;
  width: 200px;
  height: 200px;
  margin: 1.5rem auto;
  box-shadow: var(--card-shadow);
  border: 5px solid var(--white);
}

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

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

#team .card {
  text-align: center;
}

#team .subtitle.is-6 {
  color: var(--tertiary);
  font-weight: 500;
}

/* Sustainability Section */
#sustainability .sustainability-stats .box {
  height: 100%;
  transition: transform var(--transition-speed) ease;
  background-color: var(--white);
}

#sustainability .sustainability-stats .box:hover {
  transform: translateY(-10px);
}

#sustainability .sustainability-stats .title {
  color: var(--primary);
}

#sustainability .image {
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: var(--card-shadow);
}

/* Community Section */
#community .card-image figure {
  height: 250px;
  overflow: hidden;
}

#community .card-image img {
  object-fit: cover;
  width: 100%;
  height: 100%;
}

#community .card-content {
  padding: 1.5rem;
}

#community .title.is-4 {
  margin-bottom: 0.5rem;
}

/* Resources Section */
#resources .card {
  padding: 1.5rem;
  text-align: center;
  height: 100%;
}

#resources .title.is-4 {
  color: var(--tertiary);
  margin-bottom: 1rem;
}

#resources .button {
  margin-top: 1rem;
}

/* Success Stories Section */
#success-stories .card {
  height: 100%;
  background: var(--white);
}

#success-stories .media-content .title {
  margin-bottom: 0.25rem;
}

#success-stories .stars {
  color: var(--quaternary);
  font-size: 1.25rem;
  margin-top: 0.75rem;
}

#success-stories .image.is-48x48 {
  overflow: hidden;
}

#success-stories .image.is-48x48 img {
  object-fit: cover;
  width: 100%;
  height: 100%;
}

/* FAQ Section */
#faq .faq-item {
  margin-bottom: 2rem;
  padding: 1.5rem;
  border-radius: var(--border-radius);
  background-color: var(--white);
  box-shadow: var(--card-shadow);
  transition: transform var(--transition-speed) ease;
}

#faq .faq-item:hover {
  transform: translateY(-5px);
}

#faq .faq-item .title.is-4 {
  color: var(--primary);
  margin-bottom: 0.75rem;
}

/* Contact Form Section */
#contact {
  position: relative;
}

#contact::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: radial-gradient(circle at top right, rgba(74, 124, 159, 0.05), transparent 70%),
                    radial-gradient(circle at bottom left, rgba(74, 159, 110, 0.05), transparent 70%);
  z-index: -1;
}

#contact .contact-info {
  margin-top: 2rem;
}

#contact .info-item {
  margin-bottom: 1.5rem;
}

#contact .info-item .title.is-5 {
  margin-bottom: 0.5rem;
}

#contact form .input, 
#contact form .textarea, 
#contact form .select select {
  border-radius: var(--border-radius);
  border: 1px solid var(--light-gray);
  transition: border-color var(--transition-speed) ease, box-shadow var(--transition-speed) ease;
}

#contact form .input:focus, 
#contact form .textarea:focus, 
#contact form .select select:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 2px rgba(74, 159, 110, 0.2);
}

/* Gallery Section */
#gallery .image {
  border-radius: var(--border-radius);
  overflow: hidden;
  margin-bottom: 2rem;
  box-shadow: var(--card-shadow);
  transition: transform var(--transition-speed) ease;
}

#gallery .image:hover {
  transform: scale(1.05);
}

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

#gallery .image:hover img {
  transform: scale(1.1);
}

/* Footer */
.footer {
  background-color: var(--near-black);
  color: var(--light-gray);
  padding: 4rem 1.5rem;
  position: relative;
}

.footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: radial-gradient(circle at top right, rgba(74, 124, 159, 0.1), transparent 70%),
                    radial-gradient(circle at bottom left, rgba(74, 159, 110, 0.1), transparent 70%);
  opacity: 0.1;
  z-index: 0;
}

.footer .title {
  color: var(--white);
  margin-bottom: 1.5rem;
}

.footer p {
  margin-bottom: 1rem;
}

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

.footer ul li {
  margin-bottom: 0.75rem;
}

.footer a {
  color: var(--light-gray);
  transition: color var(--transition-speed) ease;
  text-decoration: none;
}

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

.footer .social-links {
  margin-top: 1.5rem;
}

.footer .social-links a {
  display: inline-block;
  margin-right: 0.75rem;
  color: var(--light-gray);
  transition: color var(--transition-speed) ease;
}

.footer .social-links a:hover {
  color: var(--white);
  text-decoration: underline;
}

/* Success Page */
.success-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 2rem;
  background-color: var(--off-white);
  background-image: radial-gradient(circle at top right, rgba(74, 159, 110, 0.1), transparent 70%),
                    radial-gradient(circle at bottom left, rgba(74, 124, 159, 0.1), transparent 70%);
}

.success-card {
  max-width: 600px;
  width: 100%;
  padding: 3rem;
  background-color: var(--white);
  border-radius: var(--border-radius);
  box-shadow: var(--card-shadow);
}

.success-icon {
  font-size: 4rem;
  color: var(--primary);
  margin-bottom: 2rem;
}

/* Privacy & Terms Pages */
.privacy-page, .terms-page {
  padding-top: 100px;
  padding-bottom: 4rem;
}

/* Responsive Design */
@media screen and (max-width: 768px) {
  .navbar-menu {
    box-shadow: none;
  }
  
  .hero .title.is-1 {
    font-size: 2.5rem;
  }
  
  .hero .subtitle.is-3 {
    font-size: 1.5rem;
  }
  
  .section {
    padding: 3rem 1rem;
  }
  
  #team .card-image figure {
    width: 150px;
    height: 150px;
  }
  
  .footer {
    padding: 3rem 1.5rem;
  }
}

/* Animation Utilities */
.fade-in {
  animation: fadeIn 1s ease-in-out;
}

.slide-up {
  animation: slideUp 0.8s ease-in-out;
}

.scale-in {
  animation: scaleIn 0.5s ease-in-out;
}

/* Keyframes */
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes slideUp {
  from { transform: translateY(50px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

@keyframes scaleIn {
  from { transform: scale(0.9); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

/* Custom Scroll Reveal Animations */
.sr-fade {
  visibility: hidden;
}

.sr-slide-up {
  visibility: hidden;
}

.sr-scale {
  visibility: hidden;
}

/* Biomorphic Design Elements */
.bio-shape {
  position: absolute;
  border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%;
  background-color: rgba(74, 159, 110, 0.1);
  z-index: -1;
}

.bio-shape-1 {
  width: 300px;
  height: 300px;
  top: -150px;
  right: -150px;
  animation: morphAnimation 15s ease-in-out infinite alternate;
}

.bio-shape-2 {
  width: 400px;
  height: 400px;
  bottom: -200px;
  left: -200px;
  background-color: rgba(74, 124, 159, 0.1);
  animation: morphAnimation 18s ease-in-out infinite alternate;
}

@keyframes morphAnimation {
  0% {
    border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%;
  }
  25% {
    border-radius: 30% 60% 70% 40% / 50% 60% 30% 60%;
  }
  50% {
    border-radius: 50% 40% 50% 70% / 30% 50% 40% 60%;
  }
  75% {
    border-radius: 40% 60% 30% 40% / 60% 40% 60% 30%;
  }
  100% {
    border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%;
  }
}

/* Utility Classes */
.has-background-blur {
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  background-color: rgba(255, 255, 255, 0.8);
}

.has-background-primary-light {
  background-color: rgba(74, 159, 110, 0.1);
}

.has-background-secondary-light {
  background-color: rgba(159, 74, 124, 0.1);
}

.has-background-tertiary-light {
  background-color: rgba(74, 124, 159, 0.1);
}

.has-background-quaternary-light {
  background-color: rgba(159, 124, 74, 0.1);
}

.has-text-primary {
  color: var(--primary) !important;
}

.has-text-secondary {
  color: var(--secondary) !important;
}

.has-text-tertiary {
  color: var(--tertiary) !important;
}

.has-text-quaternary {
  color: var(--quaternary) !important;
}

.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }
.mb-5 { margin-bottom: 3rem; }

.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }
.mt-5 { margin-top: 3rem; }

.mx-auto { margin-left: auto; margin-right: auto; }

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

/* Read More Links */
.read-more {
  display: inline-block;
  color: var(--primary);
  font-weight: 500;
  text-decoration: none;
  position: relative;
  padding-right: 1.5rem;
  transition: color var(--transition-speed) ease;
}

.read-more::after {
  content: '→';
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  transition: transform var(--transition-speed) ease;
}

.read-more:hover {
  color: var(--primary-dark);
}

.read-more:hover::after {
  transform: translate(5px, -50%);
}