/*
  Theme: Business Consulting in Argentina
  Design System: Minimalist with Volumetric UI elements
  Color Scheme: Analogous
  Animation Style: Non-linear movements
  Fonts: Space Grotesk (headings), DM Sans (body)
*/

:root {
  /* Analogous Blue-Green Scheme with a Warm Accent */
  --color-primary: #0D7377; /* Dark Teal - Main actionable elements */
  --color-primary-dark: #0A595B; /* Darker primary for hover/active */
  --color-secondary: #14C38E; /* Brighter Green-Teal - Secondary actions, highlights */
  --color-secondary-dark: #0E9A70;
  --color-accent: #F4A261; /* Sandy Brown/Orange - Strong accent, CTAs */
  --color-accent-dark: #E76F51; /* Darker orange for hover/active on accent */

  --color-background-light: #F8F9FA; /* Very Light Grey/Off-white - Main page background */
  --color-background-medium: #E9ECEF; /* Light Grey - For alternate sections */
  --color-background-dark: #203647; /* Dark Blue-Grey - For footer or dark sections */
  
  --color-surface: #FFFFFF; /* For cards, modals on light backgrounds */
  --color-surface-dark: #2a3f50; /* For cards on dark backgrounds */

  --color-text-primary: #212529; /* Near Black for high contrast on light backgrounds */
  --color-text-secondary: #4A5568; /* Darker Gray for less emphasis */
  --color-text-light: #F8F9FA; /* Light Gray/White for dark backgrounds */
  --color-text-on-primary: #FFFFFF;
  --color-text-on-accent: #FFFFFF; /* Or #212529 if accent is light enough */
  --color-text-link: var(--color-primary);
  --color-text-link-hover: var(--color-primary-dark);

  --font-heading: 'Space Grotesk', system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-body: 'DM Sans', system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

  --border-radius-sm: 4px;
  --border-radius: 8px;
  --border-radius-lg: 12px;
  
  --shadow-sm: 0 1px 3px 0 rgba(0, 0, 0, 0.07), 0 1px 2px 0 rgba(0, 0, 0, 0.04);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  --shadow-xl: 0 20px 25px -5px rgba(0,0,0,0.1), 0 10px 10px -5px rgba(0,0,0,0.04); /* Volumetric */
  --shadow-inset: inset 0 2px 4px 0 rgba(0,0,0,0.06);

  --transition-default: 0.3s cubic-bezier(0.4, 0, 0.2, 1); /* Non-linear */
  --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-elastic: 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);

  --container-width: 1200px;
  --gutter: 24px;
  
  --header-height: 80px;
}

/* 1. RESET & BASE */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px; /* Base font size */
}

body {
  font-family: var(--font-body);
  color: var(--color-text-primary);
  background-color: var(--color-background-light);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden; /* Prevent horizontal scroll from AOS or other animations */
}

/* 2. TYPOGRAPHY */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  color: var(--color-text-primary);
  line-height: 1.3;
  margin-bottom: 0.75em;
  font-weight: 700;
}

h1 { font-size: 2.8rem; margin-bottom: 0.5em; } /* ~44.8px */
h2 { font-size: 2.2rem; } /* ~35.2px */
h3 { font-size: 1.6rem; } /* ~25.6px */
h4 { font-size: 1.25rem; } /* ~20px */

p {
  margin-bottom: 1.25rem;
  color: var(--color-text-secondary);
}

a {
  color: var(--color-text-link);
  text-decoration: none;
  transition: color var(--transition-fast);
}
a:hover, a:focus {
  color: var(--color-text-link-hover);
  text-decoration: underline;
}

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

/* 3. LAYOUT & CONTAINERS */
.container {
  width: 100%;
  max-width: var(--container-width);
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}

.section-padding {
  padding-top: 60px;
  padding-bottom: 60px;
}
.section-padding-deep {
  padding-top: 80px;
  padding-bottom: 80px;
}

.section-title {
  text-align: center;
  margin-bottom: 1.5em;
  font-weight: 700;
  color: var(--color-text-primary); /* Ensure high contrast */
}
.section-intro {
  text-align: center;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 3em;
  font-size: 1.1rem;
  color: var(--color-text-secondary);
}

.bg-light { background-color: var(--color-background-medium); }
.bg-dark {
  background-color: var(--color-background-dark);
  color: var(--color-text-light);
}
.bg-dark h1, .bg-dark h2, .bg-dark h3, .bg-dark h4, .bg-dark p, .bg-dark .section-title, .bg-dark .section-intro {
  color: var(--color-text-light);
}
.bg-dark a { color: var(--color-secondary); }
.bg-dark a:hover { color: #81e0c6; }


/* Basic Column System (inspired by Bulma classes in HTML) */
.columns {
  display: flex;
  flex-wrap: wrap;
  margin-left: calc(-1 * var(--gutter) / 2);
  margin-right: calc(-1 * var(--gutter) / 2);
}
.columns.is-multiline {
  flex-wrap: wrap;
}
.column {
  display: block;
  flex-basis: 0;
  flex-grow: 1;
  flex-shrink: 1;
  padding: calc(var(--gutter) / 2);
}
.column.is-one-third { flex: none; width: 33.3333%; }
.column.is-two-thirds { flex: none; width: 66.6667%; }
.column.is-half { flex: none; width: 50%; }
.column.is-full { flex: none; width: 100%; }

/* Responsive Columns */
@media screen and (max-width: 768px) {
  .column.is-one-third,
  .column.is-two-thirds,
  .column.is-half {
    width: 100%;
    flex: none;
  }
}

.view-more-container {
    text-align: center;
    margin-top: 2.5rem;
}

/* 4. BUTTONS & FORMS (GLOBAL) */
.cta-button, button, input[type="submit"], input[type="button"] {
  display: inline-block;
  font-family: var(--font-heading);
  font-weight: 600;
  text-align: center;
  vertical-align: middle;
  cursor: pointer;
  user-select: none;
  border: 2px solid transparent;
  padding: 0.75em 1.75em; /* Generous padding */
  font-size: 1rem;
  border-radius: var(--border-radius-lg); /* Rounded for modern feel */
  transition: all var(--transition-default);
  text-decoration: none;
  box-shadow: var(--shadow-md), 0px 2px 2px 0px var(--color-primary-dark) inset; /* Volumetric */
  transform: translateY(0);
}

.cta-button, .form-submit-button {
  background-color: var(--color-accent);
  color: var(--color-text-on-accent);
  border-color: var(--color-accent);
  box-shadow: 0 4px 0 var(--color-accent-dark), 0 6px 12px rgba(0,0,0,0.2); /* 3D effect */
}
.cta-button:hover, .form-submit-button:hover {
  background-color: var(--color-accent-dark);
  border-color: var(--color-accent-dark);
  color: var(--color-text-on-accent);
  transform: translateY(-2px);
  box-shadow: 0 6px 0 var(--color-accent-dark), 0 8px 16px rgba(0,0,0,0.25);
  text-decoration: none;
}
.cta-button:active, .form-submit-button:active {
  background-color: var(--color-accent-dark);
  transform: translateY(1px);
  box-shadow: 0 2px 0 var(--color-accent-dark), 0 3px 6px rgba(0,0,0,0.2);
}

.cta-button-secondary {
  background-color: var(--color-primary);
  color: var(--color-text-on-primary);
  border-color: var(--color-primary);
  box-shadow: 0 4px 0 var(--color-primary-dark), 0 6px 12px rgba(0,0,0,0.15);
}
.cta-button-secondary:hover {
  background-color: var(--color-primary-dark);
  border-color: var(--color-primary-dark);
  color: var(--color-text-on-primary);
  transform: translateY(-2px);
  box-shadow: 0 6px 0 var(--color-primary-dark), 0 8px 16px rgba(0,0,0,0.2);
  text-decoration: none;
}
.cta-button-secondary:active {
  background-color: var(--color-primary-dark);
  transform: translateY(1px);
  box-shadow: 0 2px 0 var(--color-primary-dark), 0 3px 6px rgba(0,0,0,0.15);
}

.read-more {
  display: inline-block;
  margin-top: 0.75em;
  font-weight: 600;
  color: var(--color-primary);
  transition: transform var(--transition-fast);
}
.read-more:hover {
  color: var(--color-primary-dark);
  text-decoration: underline;
  transform: translateX(3px);
}

/* Form Styles */
.form-field {
  margin-bottom: 1.5rem;
}
.form-field label {
  display: block;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: var(--color-text-primary);
}
.form-field input[type="text"],
.form-field input[type="email"],
.form-field input[type="tel"],
.form-field textarea {
  width: 100%;
  padding: 0.8em 1em;
  border: 1px solid #CBD5E0; /* Light gray border */
  border-radius: var(--border-radius);
  font-family: var(--font-body);
  font-size: 1rem;
  background-color: var(--color-surface);
  color: var(--color-text-primary);
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
  box-shadow: var(--shadow-inset);
}
.form-field input[type="text"]:focus,
.form-field input[type="email"]:focus,
.form-field input[type="tel"]:focus,
.form-field textarea:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(13, 115, 119, 0.25), var(--shadow-inset); /* Focus ring + inset */
}
.form-field textarea {
  min-height: 120px;
  resize: vertical;
}

/* 5. HEADER & NAVIGATION */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background-color: rgba(255, 255, 255, 0.9); /* Slight transparency */
  backdrop-filter: blur(10px);
  box-shadow: var(--shadow-md);
  height: var(--header-height);
  transition: background-color var(--transition-default), box-shadow var(--transition-default);
}
.site-header.scrolled { /* Add via JS on scroll */
  background-color: rgba(255, 255, 255, 0.98);
  box-shadow: var(--shadow-lg);
}

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

.logo {
  font-family: var(--font-heading);
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--color-primary);
  text-decoration: none;
}
.logo:hover {
  color: var(--color-primary-dark);
  text-decoration: none;
}

.main-nav .nav-list {
  display: flex;
  list-style: none;
}
.main-nav .nav-link {
  padding: 0.5em 1em;
  margin-left: 0.5em;
  font-family: var(--font-heading);
  font-weight: 500;
  color: var(--color-text-secondary);
  text-decoration: none;
  border-radius: var(--border-radius-sm);
  position: relative;
}
.main-nav .nav-link::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 2px;
  background-color: var(--color-accent);
  transition: width var(--transition-default);
}
.main-nav .nav-link:hover,
.main-nav .nav-link:focus,
.main-nav .nav-link.active { /* Add .active via JS */
  color: var(--color-primary);
  text-decoration: none;
}
.main-nav .nav-link:hover::after,
.main-nav .nav-link:focus::after,
.main-nav .nav-link.active::after {
  width: 70%;
}

.nav-toggle { /* Burger Menu Button */
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 10px;
  z-index: 1001; /* Above nav list on mobile */
}
.nav-toggle span {
  display: block;
  width: 25px;
  height: 3px;
  background-color: var(--color-primary);
  margin: 5px 0;
  border-radius: 3px;
  transition: transform var(--transition-default), opacity var(--transition-default);
}


/* 6. HERO SECTION */
.hero-section {
  position: relative;
  min-height: calc(100vh - var(--header-height));
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--color-text-light); /* Default for hero text */
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  overflow: hidden; /* For parallax layers */
}
/* The HTML uses inline style for background-image and linear-gradient overlay, which is good for specific image paths. */
/* Text color and shadow are also inlined in HTML, ensuring visibility. */

.hero-content {
  position: relative;
  z-index: 2;
  padding: 2rem;
  max-width: 800px;
}
.hero-content h1 {
  font-size: 3.5rem; /* Larger for hero */
  margin-bottom: 0.5em;
  color: #FFFFFF; /* Enforced as per requirement */
  text-shadow: 2px 2px 8px rgba(0,0,0,0.7); /* Enhance readability */
}
.hero-content p {
  font-size: 1.25rem;
  margin-bottom: 1.5em;
  color: #FFFFFF; /* Enforced as per requirement */
  text-shadow: 1px 1px 6px rgba(0,0,0,0.6);
}
.hero-section .cta-button {
  font-size: 1.1rem;
  padding: 0.9em 2.2em;
}

.parallax-layer { /* For decorative elements, if any */
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background-size: contain;
  background-repeat: no-repeat;
  z-index: 1;
  /* JS will handle transform based on data-depth */
}

/* 7. WORKSHOPS SECTION (ACCORDIONS) */
.accordion-container {
  max-width: 800px;
  margin: 0 auto;
}
.accordion-item {
  background-color: var(--color-surface);
  margin-bottom: 1rem;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-md);
  overflow: hidden; /* Ensures content doesn't spill before opening */
  border: 1px solid #e0e0e0;
}
.accordion-header {
  width: 100%;
  background-color: var(--color-surface);
  padding: 1.25em 1.5em;
  text-align: left;
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--color-text-primary);
  border: none;
  border-bottom: 1px solid #e0e0e0; /* Separator for closed state */
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: background-color var(--transition-fast);
}
.accordion-item.active .accordion-header { /* Style for open accordion */
    background-color: var(--color-primary);
    color: var(--color-text-on-primary);
    border-bottom-color: transparent;
}
.accordion-header:hover {
  background-color: #f0f0f0; /* Subtle hover */
}
.accordion-item.active .accordion-header:hover {
    background-color: var(--color-primary-dark);
}

.accordion-icon {
  width: 20px;
  height: 20px;
  transition: transform var(--transition-default);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%230D7377'%3E%3Cpath d='M7.41 8.59L12 13.17l4.59-4.58L18 10l-6 6-6-6 1.41-1.41z'/%3E%3C/svg%3E");
  background-size: contain;
  background-repeat: no-repeat;
}
.accordion-item.active .accordion-icon {
  transform: rotate(180deg);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23FFFFFF'%3E%3Cpath d='M7.41 8.59L12 13.17l4.59-4.58L18 10l-6 6-6-6 1.41-1.41z'/%3E%3C/svg%3E");
}

.accordion-content {
  padding: 0 1.5em;
  max-height: 0;
  overflow: hidden;
  transition: max-height var(--transition-elastic), padding var(--transition-elastic); /* Elastic open/close */
}
.accordion-item.active .accordion-content {
  padding: 1.5em;
  max-height: 500px; /* Adjust as needed, should be larger than content */
}
.accordion-content p {
  margin-bottom: 1em;
  color: var(--color-text-secondary);
}
.accordion-content img.accordion-image {
    margin-top: 1rem;
    border-radius: var(--border-radius-sm);
    width: 100%;
    max-width: 400px; /* Control image size within accordion */
    height: auto;
    object-fit: cover;
    margin-left: auto;
    margin-right: auto;
}


/* 8. CARDS (GENERAL) & PROJECTS/BLOG SECTIONS */
.card {
  background-color: var(--color-surface);
  border-radius: var(--border-radius-lg);
  box-shadow: var(--shadow-lg); /* Volumetric effect */
  overflow: hidden;
  transition: transform var(--transition-default), box-shadow var(--transition-default);
  display: flex;
  flex-direction: column;
  height: 100%; /* For equal height cards in a row */
}
.card:hover {
  transform: translateY(-5px) scale(1.02);
  box-shadow: var(--shadow-xl);
}

.card-image {
  position: relative;
  overflow: hidden;
  /* Fixed height for image containers in cards to ensure consistency */
  height: 200px; /* Adjust as needed */
  display: flex; /* For centering the image */
  align-items: center; /* Vertical centering */
  justify-content: center; /* Horizontal centering */
  background-color: #e0e0e0; /* Placeholder while image loads */
}
.card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover; /* Crucial for consistent image display */
  transition: transform 0.4s cubic-bezier(0.25, 0.1, 0.25, 1);
}
.card:hover .card-image img {
  transform: scale(1.05);
}
/* If text needs to be on card-image, add overlay: */
.card-image::after {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.5) 0%, rgba(0,0,0,0) 60%);
    opacity: 0; /* Hidden by default, show if there's text over image */
    transition: opacity var(--transition-default);
}
.card-image.has-text-overlay::after { opacity: 1; }


.card-content {
  padding: 1.5rem;
  flex-grow: 1; /* Allows content to fill space, pushing actions to bottom if any */
  display: flex;
  flex-direction: column;
  text-align: left; /* Default, can be overridden for specific cards */
}
.card-content h3 {
  font-size: 1.3rem;
  margin-bottom: 0.5em;
}
.card-content h3 a {
  color: var(--color-text-primary);
  text-decoration: none;
}
.card-content h3 a:hover {
  color: var(--color-primary);
}
.card-content p {
  font-size: 0.95rem;
  margin-bottom: 1em;
  flex-grow: 1; /* Pushes .read-more to bottom */
}
.post-meta {
  font-size: 0.85rem;
  color: #777;
  margin-bottom: 0.5em;
}

/* Project Specific Card Styling */
.project-card .card-content {
  text-align: center; /* Center project titles and descriptions */
}
.project-card h3 {
  color: var(--color-primary);
}
.timeline-dot { /* For Projects section timeline effect */
  display: block;
  width: 12px;
  height: 12px;
  background-color: var(--color-accent);
  border-radius: 50%;
  margin: 1rem auto 0; /* Center below content */
  box-shadow: 0 0 0 4px rgba(244, 162, 97, 0.3);
}
/* Basic timeline line (can be enhanced with pseudo-elements on .gallery-timeline-container) */
.gallery-timeline-container .column:not(:last-child) .project-card .card-content::after {
    content: '';
    position: absolute;
    top: calc(100% + 6px); /* Align with dot center */
    left: 50%;
    transform: translateX(-50%);
    width: 2px;
    height: 40px; /* Adjust height of the line */
    background-color: var(--color-accent-dark);
    opacity: 0.5;
}
@media (max-width: 768px) {
  .gallery-timeline-container .column .project-card .card-content::after {
    display: none; /* Hide timeline lines on mobile stack */
  }
}

/* Blog Specific Card Styling */
.blog-card .card-content {
  text-align: left;
}


/* 9. CLIENTELE SECTION */
.client-logos {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 2rem;
  margin-bottom: 3rem;
}
.client-logos img {
  max-height: 60px; /* Control logo height */
  width: auto;
  opacity: 0.7;
  transition: opacity var(--transition-fast);
  filter: grayscale(50%);
}
.client-logos img:hover {
  opacity: 1;
  filter: grayscale(0%);
}

.testimonial-snippet {
  background-color: var(--color-surface);
  padding: 2rem;
  border-radius: var(--border-radius-lg);
  box-shadow: var(--shadow-lg);
  max-width: 700px;
  margin: 2rem auto 0;
  border-left: 5px solid var(--color-accent);
}
.testimonial-snippet blockquote p {
  font-size: 1.15rem;
  font-style: italic;
  color: var(--color-text-primary);
  margin-bottom: 1rem;
}
.testimonial-snippet blockquote p::before {
  content: "“";
  font-size: 3rem;
  color: var(--color-accent);
  line-height: 0;
  margin-right: 0.25em;
  vertical-align: -0.4em;
}
.testimonial-snippet footer {
  font-weight: 600;
  color: var(--color-primary);
  text-align: right;
}

/* 10. ACCOLADES SECTION */
.accolades-list {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}
.accolades-list li {
  background-color: var(--color-surface);
  padding: 1.5rem;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-md);
  text-align: center;
  border-top: 4px solid var(--color-secondary);
}
.accolades-list img {
  width: 60px; /* Smaller icon size */
  height: 60px;
  margin: 0 auto 1rem;
}
.accolades-list h3 {
  font-size: 1.2rem;
  color: var(--color-primary);
  margin-bottom: 0.5rem;
}

/* 11. EXTERNAL RESOURCES SECTION */
.external-resources-section .resources-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
}
.external-resources-section .resource-item.card {
  /* Inherits general card styles */
  border-left: 4px solid var(--color-secondary); /* Add a distinct visual cue */
}
.external-resources-section .resource-item h4 a {
  color: var(--color-text-primary);
  font-size: 1.15rem;
}
.external-resources-section .resource-item h4 a:hover {
  color: var(--color-primary);
}


/* 12. CONTACT SECTION */
.contact-form-container {
  align-items: flex-start; /* Align columns at the top */
}
.contact-info-box {
  background-color: var(--color-surface);
  padding: 2rem;
  border-radius: var(--border-radius-lg);
  box-shadow: var(--shadow-lg);
  height: 100%; /* Match form column height */
}
.contact-info-box h3 {
  margin-bottom: 1.5rem;
  color: var(--color-primary);
}
.contact-info-box p {
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  color: var(--color-text-secondary);
}
.contact-info-box p a {
    color: var(--color-text-secondary);
}
.contact-info-box p a:hover {
    color: var(--color-primary);
}
.contact-icon {
  width: 20px;
  height: 20px;
  margin-right: 0.75rem;
  fill: var(--color-primary); /* For SVG icons if used directly */
}
.contact-info-box h4 {
  margin-top: 1.5rem;
  margin-bottom: 0.5rem;
  font-weight: 600;
}


/* 13. FOOTER */
.site-footer {
  background-color: var(--color-background-dark);
  color: var(--color-text-light);
  padding: 4rem 0 2rem;
  font-size: 0.95rem;
}
.site-footer .footer-columns {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 2rem;
  margin-bottom: 2.5rem;
}
.site-footer .footer-column {
  flex: 1;
  min-width: 200px; /* Ensure columns don't get too narrow */
}
.site-footer h4 {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  color: var(--color-secondary); /* Brighter for dark background */
  margin-bottom: 1rem;
}
.site-footer p {
  color: #adb5bd; /* Lighter gray for readability */
  margin-bottom: 0.5rem;
}
.site-footer ul {
  list-style: none;
}
.site-footer ul li {
  margin-bottom: 0.5rem;
}
.site-footer ul a {
  color: #ced4da;
  text-decoration: none;
  transition: color var(--transition-fast), padding-left var(--transition-fast);
}
.site-footer ul a:hover,
.site-footer ul a#cookie-settings-link:hover {
  color: var(--color-surface);
  padding-left: 5px; /* Slight indent on hover */
  text-decoration: underline;
}
.site-footer .social-links-text a {
    /* Style for text-based social links */
    display: inline-block; /* Or block if you want them stacked */
    padding: 0.25em 0;
}

.footer-bottom {
  text-align: center;
  padding-top: 2rem;
  border-top: 1px solid rgba(255,255,255,0.1);
  font-size: 0.9rem;
  color: #adb5bd;
}
.footer-bottom #currentYear { font-weight: bold; }

/* 14. SPECIFIC PAGE STYLES */
/* Success Page */
body.page-success {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}
.success-container {
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 2rem;
}
.success-container h1 {
  color: var(--color-primary);
  font-size: 2.5rem;
}
.success-container p {
  font-size: 1.1rem;
  max-width: 500px;
}
.success-icon { /* Placeholder for a success icon */
  width: 80px;
  height: 80px;
  margin-bottom: 1.5rem;
  /* Example: background-image: url('image/success-tick.svg'); */
  background-color: var(--color-secondary); /* Placeholder color */
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 2.5rem; /* For a text icon like ✓ */
}

/* Privacy & Terms Pages */
body.page-legal .main-content-area { /* Assuming content is wrapped */
  padding-top: calc(var(--header-height) + 40px); /* Offset for fixed header */
  padding-bottom: 40px;
}
.page-legal .container h1 {
    margin-bottom: 1.5em;
    text-align: center;
}
.page-legal .container h2 {
    margin-top: 2em;
    margin-bottom: 0.75em;
    color: var(--color-primary);
}


/* 15. ANIMATIONS & TRANSITIONS (Barba.js support) */
.barba-leave-active,
.barba-enter-active {
  transition: opacity 0.5s var(--transition-smooth), transform 0.5s var(--transition-smooth);
}
.barba-leave {
  opacity: 1;
  transform: translateX(0);
}
.barba-leave-to {
  opacity: 0;
  transform: translateX(-20px); /* Example exit animation */
}
.barba-enter {
  opacity: 0;
  transform: translateX(20px); /* Example enter animation */
}
.barba-enter-to {
  opacity: 1;
  transform: translateX(0);
}

/* AOS Default animation anchor placement */
[data-aos] {
  /* adjust anchor placement if needed */
  /* data-aos-anchor-placement: top-bottom; */
}


/* 16. RESPONSIVE STYLES */
@media (max-width: 992px) {
  h1 { font-size: 2.4rem; }
  h2 { font-size: 1.9rem; }
  .hero-content h1 { font-size: 2.8rem; }
  .hero-content p { font-size: 1.1rem; }
}

@media (max-width: 768px) {
  :root { --header-height: 70px; }
  h1 { font-size: 2rem; }
  h2 { font-size: 1.7rem; }
  .hero-content h1 { font-size: 2.2rem; }
  .section-padding { padding-top: 40px; padding-bottom: 40px; }
  .section-padding-deep { padding-top: 60px; padding-bottom: 60px; }

  .nav-toggle { display: block; }
  .main-nav .nav-list {
    position: fixed;
    top: 0;
    right: -100%; /* Start off-screen */
    width: 70%;
    max-width: 300px;
    height: 100vh;
    flex-direction: column;
    background-color: var(--color-surface);
    padding: calc(var(--header-height) + 2rem) 2rem 2rem;
    box-shadow: -5px 0 15px rgba(0,0,0,0.1);
    transition: right var(--transition-default);
    overflow-y: auto;
  }
  .main-nav .nav-list.active {
    right: 0; /* Slide in */
  }
  .main-nav .nav-link {
    display: block;
    padding: 0.8em 0;
    margin-left: 0;
    font-size: 1.1rem;
    border-bottom: 1px solid #eee;
  }
  .main-nav .nav-link::after { display: none; } /* Remove underline effect on mobile nav items */
  .main-nav .nav-link:hover { background-color: #f9f9f9; }

  /* Burger animation when active */
  .nav-toggle.active span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
  .nav-toggle.active span:nth-child(2) { opacity: 0; }
  .nav-toggle.active span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

  .contact-form-container .column.is-two-thirds,
  .contact-form-container .column.is-one-third {
    width: 100%;
    margin-bottom: 2rem;
  }
  .contact-form-container .column.is-one-third {
    margin-bottom: 0;
  }

  .site-footer .footer-columns {
    flex-direction: column;
    text-align: center;
  }
  .site-footer .footer-column {
    min-width: 100%;
    margin-bottom: 1.5rem;
  }
}

@media (max-width: 576px) {
  .hero-content h1 { font-size: 1.8rem; }
  .hero-content p { font-size: 1rem; }
  .hero-section .cta-button { font-size: 1rem; padding: 0.7em 1.5em; }

  .card-content { padding: 1.25rem; }
  .card-content h3 { font-size: 1.15rem; }
  .card-content p { font-size: 0.9rem; }
}

/* Cookie Consent Popup - The HTML has inline styles, this ensures it's above Barba transitions */
#cookie-consent-popup {
  z-index: 9999 !important;
}

#cookie-consent-popup button {
    box-shadow: none; /* Override global button 3D shadow for flat cookie buttons */
}
#cookie-consent-popup #accept-cookie-consent {
    background-color: var(--color-secondary);
    color: var(--color-text-on-primary);
}
#cookie-consent-popup #accept-cookie-consent:hover {
    background-color: var(--color-secondary-dark);
}
#cookie-consent-popup #close-cookie-consent:hover {
    background-color: rgba(255,255,255,0.1);
    color: #fff;
}
.nav-toggle{
  display: none;
}