/* style.css */

/*------------------------------------*\
  #CSS VARIABLES
\*------------------------------------*/
:root {
  /* Colors - Bright & Vibrant Scheme */
  --primary-color: #8A2BE2; /* BlueViolet - Main Brand Color */
  --primary-color-darker: #7B1FA2; /* Darker shade for hovers/active */
  --secondary-color: #FF4081; /* Pink Accent - For CTAs or highlights */
  --secondary-color-darker: #F50057;
  --accent-color: #00E676; /* Green Accent - For secondary actions or highlights */
  --accent-color-darker: #00C853;

  --text-color-dark: #222222; /* For light backgrounds */
  --text-color-light: #FFFFFF; /* For dark backgrounds */
  --text-color-medium: #555555; /* Subdued text */
  --text-color-subtle: #777777;

  --bg-color-light: #FFFFFF;
  --bg-color-medium: #f7f8fc; /* Very light grey for alternating sections */
  --bg-color-dark-overlay: rgba(0, 0, 0, 0.5); /* For hero/image overlays */
  --bg-color-dark-overlay-strong: rgba(0, 0, 0, 0.7);

  --gradient-primary: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  --gradient-accent: linear-gradient(135deg, var(--accent-color), #69F0AE);
  --dynamic-color-transition-bg: linear-gradient(270deg, var(--primary-color), var(--secondary-color), var(--accent-color));
  background-size: 600% 600%; /* For animating gradient */

  /* Typography */
  --font-family-headings: 'Roboto', sans-serif;
  --font-family-body: 'Lato', sans-serif;
  --font-size-base: 16px;
  --line-height-base: 1.7;
  --line-height-heading: 1.3;

  /* Spacing */
  --spacing-xs: 0.5rem;  /* 8px */
  --spacing-sm: 1rem;    /* 16px */
  --spacing-md: 1.5rem;  /* 24px */
  --spacing-lg: 2rem;    /* 32px */
  --spacing-xl: 3rem;    /* 48px */
  --spacing-xxl: 4rem;   /* 64px */

  /* Borders */
  --border-radius-sm: 5px;
  --border-radius-md: 10px;
  --border-radius-lg: 20px;
  --border-color: #e0e0e0;

  /* Shadows - Subtle for minimalism */
  --box-shadow-sm: 0 2px 5px rgba(0, 0, 0, 0.05);
  --box-shadow-md: 0 5px 15px rgba(0, 0, 0, 0.08);
  --box-shadow-lg: 0 10px 25px rgba(0, 0, 0, 0.1);

  /* Transitions */
  --transition-duration: 0.3s;
  --transition-timing-function: ease-in-out;

  /* Header Height - for offsetting content */
  --header-height: 70px;
}

/*------------------------------------*\
  #BASE STYLES
\*------------------------------------*/
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: var(--font-size-base);
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-family-body);
  line-height: var(--line-height-base);
  color: var(--text-color-dark);
  background-color: var(--bg-color-light);
  overflow-x: hidden; /* Prevent horizontal scroll */
}

.main-container {
  width: 100%;
  overflow-x: hidden; /* To contain all elements */
}

.container {
  width: 90%;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--spacing-sm);
  padding-right: var(--spacing-sm);
}

/* Headings */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-family-headings);
  font-weight: 700;
  line-height: var(--line-height-heading);
  margin-bottom: var(--spacing-md);
  color: var(--text-color-dark); /* Dark text on light backgrounds */
  text-align: center;
}

h1 { font-size: 2.8rem; margin-bottom: var(--spacing-lg); } /* 44.8px */
h2 { font-size: 2.2rem; margin-bottom: var(--spacing-md); } /* 35.2px */
h3 { font-size: 1.6rem; } /* 25.6px */
h4 { font-size: 1.3rem; } /* 20.8px */

/* Paragraphs */
p {
  margin-bottom: var(--spacing-md);
  color: var(--text-color-medium);
}

.section-intro {
  font-size: 1.1rem;
  color: var(--text-color-medium);
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: var(--spacing-lg);
  text-align: center;
}

/* Links */
a {
  color: var(--primary-color);
  text-decoration: none;
  transition: color var(--transition-duration) var(--transition-timing-function);
}

a:hover, a:focus {
  color: var(--primary-color-darker);
  text-decoration: underline;
}

.read-more-link {
  display: inline-block;
  font-weight: bold;
  color: var(--secondary-color);
  text-decoration: none;
  padding-bottom: 2px;
  /* border-bottom: 2px solid transparent; */
  transition: color var(--transition-duration) ease, border-color var(--transition-duration) ease;
}

.read-more-link::after {
  content: ' →'; /* Arrow icon */
  display: inline-block;
  transition: transform var(--transition-duration) ease;
}

.read-more-link:hover,
.read-more-link:focus {
  color: var(--secondary-color-darker);
  /* border-bottom-color: var(--secondary-color-darker); */
  text-decoration: none;
}

.read-more-link:hover::after,
.read-more-link:focus::after {
  transform: translateX(5px);
}


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

/* Utility Classes */
.text-center { text-align: center; }
.mb-sm { margin-bottom: var(--spacing-sm); }
.mb-md { margin-bottom: var(--spacing-md); }
.mb-lg { margin-bottom: var(--spacing-lg); }

.hidden { display: none; }

/*------------------------------------*\
  #GLOBAL COMPONENT STYLES
\*------------------------------------*/

/* Buttons - Global styling */
.btn, button, input[type="submit"], input[type="button"] {
  display: inline-block;
  font-family: var(--font-family-headings);
  font-weight: bold;
  font-size: 1rem;
  padding: var(--spacing-sm) var(--spacing-lg);
  border-radius: var(--border-radius-sm);
  border: 2px solid transparent;
  cursor: pointer;
  text-align: center;
  text-decoration: none;
  transition: all var(--transition-duration) var(--transition-timing-function);
  letter-spacing: 0.5px;
  min-width: 150px; /* Minimum width for buttons */
}

.btn-primary,
button[type="submit"] { /* Default form submit button */
  background-color: var(--primary-color);
  color: var(--text-color-light);
  border-color: var(--primary-color);
}

.btn-primary:hover, .btn-primary:focus,
button[type="submit"]:hover, button[type="submit"]:focus {
  background-color: var(--primary-color-darker);
  border-color: var(--primary-color-darker);
  color: var(--text-color-light);
  transform: translateY(-2px) scale(1.02);
  box-shadow: var(--box-shadow-md);
  text-decoration: none;
}

.btn-secondary {
  background-color: var(--secondary-color);
  color: var(--text-color-light);
  border-color: var(--secondary-color);
}

.btn-secondary:hover, .btn-secondary:focus {
  background-color: var(--secondary-color-darker);
  border-color: var(--secondary-color-darker);
  color: var(--text-color-light);
  transform: translateY(-2px) scale(1.02);
  box-shadow: var(--box-shadow-md);
  text-decoration: none;
}

.btn-accent {
  background-color: var(--accent-color);
  color: var(--text-color-dark);
  border-color: var(--accent-color);
}

.btn-accent:hover, .btn-accent:focus {
  background-color: var(--accent-color-darker);
  border-color: var(--accent-color-darker);
  color: var(--text-color-dark);
  transform: translateY(-2px) scale(1.02);
  box-shadow: var(--box-shadow-md);
  text-decoration: none;
}

/* Input Fields - Global styling */
input[type="text"],
input[type="email"],
input[type="tel"],
input[type="password"],
input[type="search"],
input[type="url"],
input[type="number"],
textarea {
  display: block;
  width: 100%;
  padding: var(--spacing-sm);
  font-family: var(--font-family-body);
  font-size: 1rem;
  color: var(--text-color-dark);
  background-color: var(--bg-color-light);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-sm);
  margin-bottom: var(--spacing-md);
  transition: border-color var(--transition-duration) var(--transition-timing-function),
              box-shadow var(--transition-duration) var(--transition-timing-function);
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="tel"]:focus,
textarea:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(var(--primary-color), 0.2); /* Using primary color with alpha */
}

textarea {
  min-height: 120px;
  resize: vertical;
}

label {
  display: block;
  font-weight: bold;
  margin-bottom: var(--spacing-xs);
  color: var(--text-color-dark);
}


/*------------------------------------*\
  #HEADER
\*------------------------------------*/
.site-header {
  background-color: rgba(255, 255, 255, 0.9); /* Slightly transparent white */
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  padding: var(--spacing-sm) 0;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  box-shadow: var(--box-shadow-sm);
  height: var(--header-height);
}

.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-family: var(--font-family-headings);
  font-size: 1.8rem;
  font-weight: bold;
  color: var(--primary-color);
  text-decoration: none;
}
.logo:hover {
  color: var(--primary-color-darker);
  text-decoration: none;
}

.main-navigation .nav-list {
  list-style: none;
  display: flex;
  margin: 0;
  padding: 0;
}

.main-navigation .nav-list li {
  margin-left: var(--spacing-md);
}

.main-navigation .nav-list li a {
  font-family: var(--font-family-headings);
  color: var(--text-color-medium);
  text-decoration: none;
  padding: var(--spacing-xs) var(--spacing-sm);
  border-radius: var(--border-radius-sm);
  transition: color var(--transition-duration) var(--transition-timing-function),
              background-color var(--transition-duration) var(--transition-timing-function);
  font-weight: bold;
}

.main-navigation .nav-list li a:hover,
.main-navigation .nav-list li a:focus,
.main-navigation .nav-list li a.active { /* Assuming JS adds 'active' class */
  color: var(--primary-color);
  background-color: rgba(138, 43, 226, 0.1); /* Light primary color background */
  text-decoration: none;
}

.menu-toggle {
  display: none; /* Hidden on desktop */
  background: none;
  border: none;
  cursor: pointer;
  padding: var(--spacing-xs);
}

.hamburger {
  display: block;
  width: 25px;
  height: 3px;
  background-color: var(--text-color-dark);
  position: relative;
  transition: background-color var(--transition-duration) var(--transition-timing-function);
}

.hamburger::before,
.hamburger::after {
  content: '';
  display: block;
  width: 100%;
  height: 3px;
  background-color: var(--text-color-dark);
  position: absolute;
  left: 0;
  transition: transform var(--transition-duration) var(--transition-timing-function),
              top var(--transition-duration) var(--transition-timing-function);
}

.hamburger::before { top: -8px; }
.hamburger::after { top: 8px; }

/* Active state for hamburger */
.menu-toggle.active .hamburger {
  background-color: transparent; /* Middle line disappears */
}
.menu-toggle.active .hamburger::before {
  top: 0;
  transform: rotate(45deg);
}
.menu-toggle.active .hamburger::after {
  top: 0;
  transform: rotate(-45deg);
}


/*------------------------------------*\
  #MAIN CONTENT & SECTIONS
\*------------------------------------*/
main {
  padding-top: var(--header-height); /* Offset for fixed header */
}

.content-section {
  padding: var(--spacing-xxl) 0; /* 64px top/bottom */
}

.content-section.alt-bg {
  background-color: var(--bg-color-medium);
}

.section-title {
  margin-bottom: var(--spacing-xl); /* More space after title */
}


/* Page Title Section (for about.html, contacts.html etc.) */
.page-title-section {
  padding: var(--spacing-xl) 0;
  color: var(--text-color-light);
  text-align: center;
  position: relative; /* For overlay */
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.page-title-section .hero-overlay { /* Reusing hero-overlay class */
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--bg-color-dark-overlay-strong);
  z-index: 1;
}

.page-title-section .container {
  position: relative;
  z-index: 2;
}

.page-title-section h1,
.page-title-section p {
  color: var(--text-color-light);
}

/* Specific padding for legal pages to avoid header overlap */
.legal-text-page main {
  padding-top: calc(var(--header-height) + var(--spacing-lg)); /* Extra space */
}
.legal-text-page .page-title-section {
  margin-top: calc(-1 * var(--spacing-lg)); /* Pull it up a bit if not covered by main's padding-top */
}
.legal-text {
  padding: var(--spacing-lg) 0;
}
.legal-text h2 {
  font-size: 1.8rem;
  margin-top: var(--spacing-lg);
  margin-bottom: var(--spacing-sm);
  text-align: left;
}
.legal-text h3 {
  font-size: 1.4rem;
  margin-top: var(--spacing-md);
  margin-bottom: var(--spacing-xs);
  text-align: left;
}
.legal-text p, .legal-text ul {
  margin-bottom: var(--spacing-md);
  text-align: left;
  color: var(--text-color-medium);
}
.legal-text ul {
  list-style-position: inside;
  padding-left: var(--spacing-sm);
}


/*------------------------------------*\
  #HERO SECTION
\*------------------------------------*/
.hero-section {
  position: relative;
  color: var(--text-color-light);
  padding: var(--spacing-xxl) 0; /* Generous padding */
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  min-height: calc(100vh - var(--header-height)); /* Full viewport height minus header */
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--bg-color-dark-overlay); /* Semi-transparent dark overlay */
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 800px;
}

.hero-title {
  font-size: 3.5rem; /* Larger for hero */
  font-weight: 700;
  color: var(--text-color-light); /* Explicitly white */
  margin-bottom: var(--spacing-md);
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.hero-subtitle {
  font-size: 1.4rem;
  color: var(--text-color-light); /* Explicitly white */
  margin-bottom: var(--spacing-lg);
  line-height: 1.6;
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.3);
}

.btn-hero {
  padding: var(--spacing-md) var(--spacing-xl);
  font-size: 1.2rem;
  background-color: var(--secondary-color);
  border-color: var(--secondary-color);
}

.btn-hero:hover, .btn-hero:focus {
  background-color: var(--secondary-color-darker);
  border-color: var(--secondary-color-darker);
}

/*------------------------------------*\
  #CARDS (General styling)
\*------------------------------------*/
.card {
  background-color: var(--bg-color-light);
  border-radius: var(--border-radius-md);
  box-shadow: var(--box-shadow-md);
  overflow: hidden;
  transition: transform var(--transition-duration) var(--transition-timing-function),
              box-shadow var(--transition-duration) var(--transition-timing-function);
  display: flex; /* STROGO */
  flex-direction: column; /* STROGO */
  align-items: center; /* STROGO */
  text-align: center; /* STROGO */
  height: 100%; /* For consistent height in grids */
}

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

.card-image { /* STROGO */
  width: 100%;
  height: 200px; /* STROGO: Fixed height for image container */
  overflow: hidden;
  /* margin: 0 auto; Centers the container if it's not full width */
}

.card-image img { /* STROGO */
  width: 100%;
  height: 100%;
  object-fit: cover; /* STROGO: Ensures image covers container without distortion */
  /* margin: 0 auto; Not needed if parent is flex and centered */
}

.card-content {
  padding: var(--spacing-md);
  flex-grow: 1; /* Allows content to take available space, useful for aligning footers */
  display: flex;
  flex-direction: column;
  justify-content: space-between; /* Pushes content to top and buttons/footers to bottom */
}

.card-content h3 {
  font-size: 1.4rem;
  margin-bottom: var(--spacing-sm);
  color: var(--primary-color);
}

.card-content p {
  font-size: 0.95rem;
  color: var(--text-color-medium);
  margin-bottom: var(--spacing-md);
  flex-grow: 1;
}

/* Grid/Flex containers for cards */
.gallery-container,
.info-cards-container,
.testimonials-container,
.external-links-grid,
.contact-methods-grid,
.card-container-triplet {
  display: grid;
  gap: var(--spacing-lg);
}

/* Default to 1 column, then adjust for larger screens */
.gallery-container,
.info-cards-container,
.testimonials-container,
.external-links-grid,
.contact-methods-grid,
.card-container-triplet {
  grid-template-columns: 1fr;
}

@media (min-width: 768px) {
  .gallery-container,
  .info-cards-container,
  .card-container-triplet {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  }
  .testimonials-container {
     grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  }
  .external-links-grid {
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  }
   .contact-methods-grid {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  }
}


/*------------------------------------*\
  #HISTORY SECTION
\*------------------------------------*/
/* Uses general card styles */

/*------------------------------------*\
  #INNOVATION SECTION
\*------------------------------------*/
/* Uses general card and info-cards-container styles */

/*------------------------------------*\
  #WORKSHOPS SECTION (Accordions)
\*------------------------------------*/
.accordion-container {
  max-width: 800px;
  margin: 0 auto;
}

.accordion-item {
  background-color: var(--bg-color-light);
  margin-bottom: var(--spacing-sm);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-md);
  overflow: hidden; /* Ensures content within rounded corners */
}

.accordion-header {
  width: 100%;
  background-color: transparent; /* Button background */
  padding: var(--spacing-md);
  font-family: var(--font-family-headings);
  font-size: 1.2rem;
  font-weight: bold;
  color: var(--text-color-dark);
  text-align: left;
  border: none;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: background-color var(--transition-duration) var(--transition-timing-function);
}

.accordion-header:hover, .accordion-header:focus {
  background-color: rgba(138, 43, 226, 0.05); /* Light primary hover */
  color: var(--primary-color);
}

.accordion-icon {
  font-size: 1.5rem;
  font-weight: bold;
  transition: transform var(--transition-duration) var(--transition-timing-function);
}

.accordion-item.active .accordion-icon {
  transform: rotate(45deg);
}

.accordion-content {
  max-height: 0;
  overflow: hidden;
  padding: 0 var(--spacing-md);
  transition: max-height var(--transition-duration) ease-out,
              padding var(--transition-duration) ease-out;
}
.accordion-item.active .accordion-content {
  /* max-height will be set by JS for dynamic content height */
  /* For CSS only, estimate a large enough value: */
  /* max-height: 500px;  Adjust as needed or use JS */
  padding: var(--spacing-md);
}

.accordion-content p {
  margin-bottom: var(--spacing-md);
}
.accordion-content img {
  width: 100%;
  max-width: 500px; /* Limit image size within accordion */
  margin: var(--spacing-sm) auto var(--spacing-md);
  border-radius: var(--border-radius-sm);
  box-shadow: var(--box-shadow-sm);
}


/*------------------------------------*\
  #COMMUNITY SECTION
\*------------------------------------*/
/* Uses general card styles */

/*------------------------------------*\
  #CUSTOMER STORIES (Testimonials)
\*------------------------------------*/
.testimonial-card {
  background-color: var(--bg-color-medium); /* Slightly different bg for emphasis */
  padding: var(--spacing-lg);
}
.testimonial-card .card-image { /* Override general card-image for round avatars */
  width: 100px;
  height: 100px;
  border-radius: 50%;
  margin: 0 auto var(--spacing-md); /* Center avatar */
  border: 3px solid var(--primary-color);
}
.testimonial-card .card-image img {
  border-radius: 50%;
}

.testimonial-card blockquote {
  font-size: 1.05rem;
  font-style: italic;
  color: var(--text-color-medium);
  margin-bottom: var(--spacing-md);
  position: relative;
  padding-left: var(--spacing-lg); /* Space for quote mark */
}

.testimonial-card blockquote::before {
  content: "\201C"; /* Left double quotation mark */
  font-family: serif;
  font-size: 3rem;
  color: var(--primary-color);
  opacity: 0.5;
  position: absolute;
  left: -5px;
  top: -10px;
}

.testimonial-card footer {
  font-weight: bold;
  color: var(--text-color-dark);
  text-align: center;
}


/*------------------------------------*\
  #EXTERNAL RESOURCES SECTION
\*------------------------------------*/
.link-card {
  background-color: var(--bg-color-light);
  border: 1px solid var(--border-color);
  padding: var(--spacing-md);
}
.link-card h3 a {
  color: var(--primary-color);
  font-size: 1.2rem;
}
.link-card h3 a:hover {
  color: var(--primary-color-darker);
}
.link-card p {
  font-size: 0.9rem;
  color: var(--text-color-subtle);
}

/*------------------------------------*\
  #CONTACT SECTION
\*------------------------------------*/
.contact-container {
  display: grid;
  gap: var(--spacing-xl);
}

@media (min-width: 992px) {
  .contact-container {
    grid-template-columns: 2fr 1fr; /* Form takes more space */
    align-items: start;
  }
  .contact-form-wrapper {
    order: 1;
  }
  .contact-details {
    order: 2;
  }
}

.contact-form-wrapper {
  background-color: var(--bg-color-light);
  padding: var(--spacing-lg);
  border-radius: var(--border-radius-md);
  box-shadow: var(--box-shadow-md);
}

.form-group {
  margin-bottom: var(--spacing-md);
}

.contact-details {
  background-color: var(--bg-color-medium);
  padding: var(--spacing-lg);
  border-radius: var(--border-radius-md);
}
.contact-details h3 {
  text-align: left;
  color: var(--primary-color);
  margin-bottom: var(--spacing-sm);
}
.contact-details p {
  text-align: left;
  margin-bottom: var(--spacing-sm);
  color: var(--text-color-medium);
}
.contact-details strong {
  color: var(--text-color-dark);
}
.contact-details a {
  color: var(--secondary-color);
}
.contact-details a:hover {
  color: var(--secondary-color-darker);
}

/* For contact.html page elements */
.contact-methods-grid .card-image {
    width: 60px; /* Smaller icons for contact methods */
    height: 60px;
    margin-bottom: var(--spacing-sm);
}
.contact-methods-grid .card-content h3 {
  color: var(--text-color-dark);
}

.map-placeholder {
  border-radius: var(--border-radius-md);
  overflow: hidden;
  box-shadow: var(--box-shadow-sm);
  /* Background image set in HTML */
}
.map-section {
  padding-bottom: var(--spacing-xxl);
}

/*------------------------------------*\
  #FOOTER
\*------------------------------------*/
.site-footer {
  background: var(--dynamic-color-transition-bg); /* Dynamic gradient */
  animation: AnimateGradientBG 15s ease infinite; /* Animate background */
  color: var(--text-color-light);
  padding: var(--spacing-xl) 0 var(--spacing-sm);
}

@keyframes AnimateGradientBG {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

.footer-container {
  display: grid;
  gap: var(--spacing-lg);
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

.site-footer h4 {
  font-size: 1.2rem;
  color: var(--text-color-light);
  margin-bottom: var(--spacing-md);
  text-align: left;
  position: relative;
  padding-bottom: var(--spacing-xs);
}
.site-footer h4::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 40px;
  height: 2px;
  background-color: var(--accent-color);
}

.footer-nav ul,
.footer-social ul.social-links-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-nav li,
.footer-social li {
  margin-bottom: var(--spacing-xs);
  text-align: left;
}

.footer-nav li a,
.footer-social li a { /* Text links for social media */
  color: rgba(255, 255, 255, 0.85);
  text-decoration: none;
  transition: color var(--transition-duration) var(--transition-timing-function),
              padding-left var(--transition-duration) var(--transition-timing-function);
}

.footer-nav li a:hover, .footer-nav li a:focus,
.footer-social li a:hover, .footer-social li a:focus {
  color: var(--text-color-light);
  text-decoration: underline;
  padding-left: 5px;
}

.footer-newsletter p {
  margin-bottom: var(--spacing-sm);
  color: rgba(255, 255, 255, 0.85);
  text-align: left;
}

.footer-newsletter form {
  display: flex;
  gap: var(--spacing-xs);
}

.footer-newsletter input[type="email"] {
  flex-grow: 1;
  margin-bottom: 0;
  background-color: rgba(255, 255, 255, 0.2);
  border-color: transparent;
  color: var(--text-color-light);
}
.footer-newsletter input[type="email"]::placeholder {
  color: rgba(255, 255, 255, 0.7);
}
.footer-newsletter input[type="email"]:focus {
  background-color: rgba(255, 255, 255, 0.3);
  border-color: var(--accent-color);
  box-shadow: 0 0 0 3px var(--accent-color-darker);
}

.footer-newsletter button {
  background-color: var(--accent-color);
  color: var(--text-color-dark);
  border-color: var(--accent-color);
  flex-shrink: 0; /* Prevent button from shrinking */
}
.footer-newsletter button:hover,
.footer-newsletter button:focus {
  background-color: var(--accent-color-darker);
  border-color: var(--accent-color-darker);
}

.footer-bottom {
  text-align: center;
  padding-top: var(--spacing-lg);
  margin-top: var(--spacing-lg);
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.7);
}

/*------------------------------------*\
  #SUCCESS PAGE
\*------------------------------------*/
.success-page-content.content-section {
  min-height: calc(100vh - var(--header-height) - 129px); /* 129px is approx footer height, adjust if needed */
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.success-page-content .container {
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.success-icon-container img {
    margin-bottom: var(--spacing-lg);
}

/*------------------------------------*\
  #ABOUT PAGE SPECIFIC
\*------------------------------------*/
.image-showcase {
  margin: var(--spacing-lg) auto;
  max-width: 900px;
  text-align: center;
}
.image-showcase img {
  border-radius: var(--border-radius-md);
  box-shadow: var(--box-shadow-lg);
  margin-bottom: var(--spacing-sm);
}
.image-showcase .caption {
  font-style: italic;
  color: var(--text-color-subtle);
  font-size: 0.9rem;
}

/*------------------------------------*\
  #SCROLL ANIMATIONS (Initial states for JS)
\*------------------------------------*/
.scroll-animate {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s var(--transition-timing-function),
              transform 0.6s var(--transition-timing-function);
}

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

/*------------------------------------*\
  #COOKIE POPUP
\*------------------------------------*/
/* Styles are inline in HTML as per prompt, but if moved here: */
/*
#cookie-consent-popup {
  // Styles from HTML
}
#accept-cookie-consent {
  // Styles from HTML
}
*/

/*------------------------------------*\
  #RESPONSIVE STYLES
\*------------------------------------*/
@media (max-width: 991px) {
  h1 { font-size: 2.4rem; }
  h2 { font-size: 1.9rem; }

  .hero-title { font-size: 2.8rem; }
  .hero-subtitle { font-size: 1.2rem; }

  .content-section { padding: var(--spacing-xl) 0; }

  /* Footer columns stack */
  .footer-container {
    grid-template-columns: 1fr; /* Stack columns */
    text-align: center;
  }
  .site-footer h4,
  .footer-nav li,
  .footer-social li,
  .footer-newsletter p {
    text-align: center;
  }
  .site-footer h4::after {
    left: 50%;
    transform: translateX(-50%);
  }
  .footer-newsletter form {
    flex-direction: column;
    max-width: 350px;
    margin-left: auto;
    margin-right: auto;
  }
}

@media (max-width: 767px) {
  :root {
    --header-height: 60px; /* Slightly smaller header on mobile */
  }

  h1 { font-size: 2rem; }
  h2 { font-size: 1.7rem; }

  .hero-title { font-size: 2.2rem; }
  .hero-subtitle { font-size: 1.1rem; }

  .btn, button, input[type="submit"] {
    padding: var(--spacing-sm) var(--spacing-md);
    font-size: 0.95rem;
  }
  .btn-hero {
    padding: var(--spacing-md) var(--spacing-lg);
    font-size: 1rem;
  }

  /* Mobile Navigation */
  .menu-toggle {
    display: block;
    z-index: 1001; /* Above nav list */
  }

  .main-navigation .nav-list {
    flex-direction: column;
    position: fixed;
    top: 0;
    right: -300px; /* Start off-screen */
    width: 280px;
    height: 100vh;
    background-color: var(--bg-color-light);
    padding: calc(var(--header-height) + var(--spacing-lg)) var(--spacing-md) var(--spacing-md);
    box-shadow: -5px 0 15px rgba(0,0,0,0.1);
    transition: right var(--transition-duration) var(--transition-timing-function);
    overflow-y: auto;
  }

  .main-navigation .nav-list.active {
    right: 0; /* Slide in */
  }

  .main-navigation .nav-list li {
    margin-left: 0;
    margin-bottom: var(--spacing-sm);
    width: 100%;
  }
  .main-navigation .nav-list li a {
    display: block;
    padding: var(--spacing-sm);
    text-align: left;
  }

  /* Adjust card grids for smaller screens if needed */
  .gallery-container,
  .info-cards-container,
  .testimonials-container,
  .external-links-grid,
  .contact-methods-grid,
  .card-container-triplet {
    grid-template-columns: 1fr; /* Single column for smaller mobiles */
  }

   .contact-container {
    grid-template-columns: 1fr;
  }
  .contact-details {
    order: 1; /* Details first on mobile */
    margin-bottom: var(--spacing-lg);
  }
  .contact-form-wrapper {
    order: 2;
  }

  .page-title-section {
    padding: var(--spacing-lg) 0;
  }

  .success-page-content.content-section {
     min-height: calc(100vh - var(--header-height) - 180px); /* Footer might be taller due to stacking */
  }
}

@media (max-width: 480px) {
  .container { width: 95%; }
  h1 { font-size: 1.8rem; }
  .hero-title { font-size: 2rem; }

  .content-section { padding: var(--spacing-lg) 0; }
}
@media (max-width: 768px) {
  .main-navigation{
    width: 40px;
  }
}