/* Variables */
:root {
    /* Pastel Color Scheme */
    --color-primary: #A7C7E7; /* Soft Blue */
    --color-secondary: #F3D7B5; /* Muted Peach */
    --color-accent: #C9A0DC; /* Light Lavender */
    --color-background-light: #F8F0E3; /* Creamy White/Light Beige for subtle texture feel */
    --color-background-dark: #4A4A4A; /* Dark Gray for contrast */
    --color-text-light: #FFFFFF; /* White for dark backgrounds */
    --color-text-dark: #333333; /* Dark Gray for light backgrounds */
    --color-heading-dark: #222222; /* Even darker gray for strong headings */
    --color-overlay-dark: rgba(0, 0, 0, 0.5); /* Semi-transparent dark overlay */

    /* Fonts */
    --font-heading: 'Oswald', sans-serif;
    --font-body: 'Nunito', sans-serif;

    /* Spacing */
    --spacing-small: 1rem;
    --spacing-medium: 2rem;
    --spacing-large: 4rem;

    /* Transitions */
    --transition-speed: 0.3s;
    --transition-ease: ease-in-out;
}

/* General Styles */
html {
    scroll-behavior: smooth; /* Smooth scroll for anchor links */
}

body {
    font-family: var(--font-body);
    line-height: 1.6;
    color: var(--color-text-dark);
    background-color: var(--color-background-light); /* Default background */
    margin: 0;
    padding: 0;
    overflow-x: hidden; /* Prevent horizontal scroll */
}

/* Ensure dark text on light background sections */
section.section {
    color: var(--color-text-dark); /* Default text is dark on light background */
}

section.section.has-background-light {
     color: var(--color-text-dark); /* Explicitly dark text */
     background-color: var(--color-background-light);
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    color: var(--color-heading-dark); /* Dark headings on light backgrounds */
    margin-bottom: var(--spacing-small);
    text-align: center; /* Centered headings */
}

/* Specific heading styles for contrast on light backgrounds */
h2.dark-text-on-light,
.title.dark-text-on-light,
.subtitle.dark-text-on-light,
p.dark-text-on-light,
label.dark-text-on-light {
     color: var(--color-heading-dark);
     text-shadow: none; /* No text shadow needed for dark text */
}


h1.has-text-white,
h2.has-text-white,
h3.has-text-white,
h4.has-text-white,
h5.has-text-white,
h6.has-text-white,
p.has-text-white,
span.has-text-white,
.has-text-white {
    color: var(--color-text-light) !important; /* White text for dark backgrounds (like Hero) */
     text-shadow: 1px 1px 3px rgba(0,0,0,0.5); /* Shadow for better readability on potential busy backgrounds */
}


/* Links */
a {
    color: var(--color-primary);
    text-decoration: none;
    transition: color var(--transition-speed) var(--transition-ease);
}

a:hover {
    color: var(--color-accent);
    text-decoration: underline;
}

/* Bulma Overrides & Modern Design */
.container {
    max-width: 1200px; /* Adjust max width as needed */
}

.section {
    padding: var(--spacing-large) var(--spacing-medium); /* Standard section padding */
}

.box.modern-box {
    background-color: rgba(255, 255, 255, 0.8); /* Slight glassmorphism effect */
    backdrop-filter: blur(5px); /* Glassmorphism blur */
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    padding: var(--spacing-medium);
    margin-bottom: var(--spacing-medium);
}


/* Buttons */
.button {
    font-family: var(--font-body);
    border-radius: 50px; /* Pill shape buttons */
    padding: 1em 2em;
    font-weight: bold;
    transition: all var(--transition-speed) var(--transition-ease);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.button.is-primary {
    background-color: var(--color-primary);
    border-color: var(--color-primary);
    color: var(--color-text-light); /* White text on primary button */
}

.button.is-primary:hover {
    background-color: #8CB9E0; /* Slightly darker primary */
    border-color: #8CB9E0;
    transform: translateY(-2px); /* Springy effect on hover */
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.button.is-light {
    background-color: var(--color-background-light);
    border-color: var(--color-text-dark); /* Dark border for contrast */
    color: var(--color-text-dark); /* Dark text on light button */
}

.button.is-light:hover {
     background-color: #E0D9CC; /* Slightly darker light background */
    border-color: var(--color-heading-dark);
    transform: translateY(-2px); /* Springy effect on hover */
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}


/* Form Elements */
.input.modern-input,
.textarea.modern-textarea {
    border-radius: 5px;
    border-color: #dbdbdb; /* Bulma default, can customize */
    padding: 0.5em 1em;
    font-family: var(--font-body);
    transition: border-color var(--transition-speed) var(--transition-ease), box-shadow var(--transition-speed) var(--transition-ease);
}

.input.modern-input:focus,
.textarea.modern-textarea:focus {
    border-color: var(--color-primary);
    box-shadow: 0 0 0 0.125em rgba(var(--color-primary), 0.25); /* Bulma-like focus shadow */
    outline: none;
}


/* Header */
.header .navbar {
    background-color: var(--color-background-dark); /* Dark background for header */
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    padding: 0 var(--spacing-medium);
    z-index: 100; /* Ensure it stays on top */
}

.header .navbar .navbar-brand a.navbar-item span {
    color: var(--color-text-light); /* White logo text */
     text-shadow: 1px 1px 2px rgba(0,0,0,0.3);
}

.header .navbar .navbar-menu .navbar-start .navbar-item {
    color: var(--color-text-light); /* White text for navbar links */
    font-family: var(--font-heading);
    font-weight: normal;
    letter-spacing: 0.5px;
    transition: color var(--transition-speed) var(--transition-ease), background-color var(--transition-speed) var(--transition-ease);
}

.header .navbar .navbar-menu .navbar-start .navbar-item:hover {
    background-color: rgba(255, 255, 255, 0.1); /* Subtle hover effect */
    color: var(--color-accent); /* Accent color on hover */
}

/* Burger menu for mobile */
.navbar-burger {
    color: var(--color-text-light); /* White burger icon */
}

/* Responsive Header (Bulma handles most of this, but ensure colors are right) */
@media screen and (max-width: 1023px) {
    .navbar-menu {
        background-color: var(--color-background-dark); /* Dark background for mobile menu */
    }
    .navbar-item {
        color: var(--color-text-light); /* White text in mobile menu */
    }
}


/* Hero Section */
#hero {
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    position: relative;
    /* Background image and overlay set in inline style for flexibility */
    /* Ensure text is white via has-text-white class */
}

#hero .hero-body .container {
    position: relative;
    z-index: 1; /* Ensure content is above background/overlay */
}

/* History Section - Timeline (Basic structure, needs styling) */
.timeline {
    margin: var(--spacing-medium) auto;
    position: relative;
    max-width: 800px; /* Example max width */
    padding: 0;
}

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

.timeline-header {
    text-align: center;
    margin-bottom: var(--spacing-medium);
    position: relative;
    z-index: 2;
}

.timeline-header .tag {
     background-color: var(--color-primary);
     color: var(--color-text-light);
     font-family: var(--font-heading);
}


.timeline-item {
    margin-bottom: var(--spacing-large);
    position: relative;
    z-index: 2;
}

.timeline-item::after {
    content: '';
    display: table;
    clear: both;
}

.timeline-marker {
    position: absolute;
    top: 0;
    left: 50%;
    width: 20px;
    height: 20px;
    background: var(--color-accent); /* Marker color */
    border: 3px solid var(--color-background-light); /* Border for contrast */
    border-radius: 50%;
    margin-left: -10px;
    z-index: 3;
}

.timeline-marker.is-icon {
     background: var(--color-primary);
     color: var(--color-text-light);
     display: flex;
     justify-content: center;
     align-items: center;
     font-size: 12px;
     border-color: var(--color-background-light);
}


.timeline-content {
    width: calc(50% - 30px); /* Adjust width */
    padding: 20px;
    background: rgba(255, 255, 255, 0.8); /* Subtle background */
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    font-family: var(--font-body);
    color: var(--color-text-dark);
}

.timeline-item:nth-child(odd) .timeline-content {
    float: left;
    text-align: right;
}

.timeline-item:nth-child(even) .timeline-content {
    float: right;
    text-align: left;
}

.timeline-content .heading {
    font-family: var(--font-heading);
    color: var(--color-primary); /* Heading color */
    margin-bottom: 5px;
    font-size: 1.2rem;
     text-align: inherit; /* Reset text-align for content */
}

/* Sustainability Section - Layout handled by Bulma columns */
#sustainability {
    background-color: var(--color-background-light); /* Light background */
}


/* Workshops, Blog Sections - Cards */
.card {
    display: flex;
    flex-direction: column;
    align-items: center;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    overflow: hidden; /* Ensure image corners match card corners */
    background-color: rgba(255, 255, 255, 0.8); /* Subtle background */
    backdrop-filter: blur(3px);
    transition: transform var(--transition-speed) var(--transition-ease);
    height: 100%; /* Ensure cards in a row have similar height */
}

.card:hover {
    transform: translateY(-5px); /* Lift effect on hover */
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

.card .card-image {
    width: 100%; /* Image container takes full width */
    height: 200px; /* Fixed height for card images */
    overflow: hidden; /* Hide parts of the image outside the container */
    display: flex; /* Use flex to help center image */
    justify-content: center;
    align-items: center;
}

.card .card-image figure {
    width: 100%; /* Ensure figure fills the container width */
    height: 100%; /* Ensure figure fills the container height */
    margin: 0; /* Remove default figure margin */
    position: relative; /* For potential overlay */
}

.card .card-image img {
    display: block; /* Remove extra space below image */
    width: 100%;
    height: 100%;
    object-fit: cover; /* Cover the area without distorting aspect ratio */
    /* No need for explicit width/height attributes here if defined in HTML */
}

/* Overlay for text on images (if applicable within the card content itself) */
/* If text is on the image background, apply overlay to the card-image container */
/* Example if text is on the image: */
/*
.card .card-image::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--color-overlay-dark);
    z-index: 1;
}
.card .card-image .image-text {
    position: absolute;
    bottom: 10px;
    left: 10px;
    z-index: 2;
    color: var(--color-text-light);
}
*/


.card .card-content {
    width: 100%;
    flex-grow: 1; /* Allows content to take up available space */
    padding: var(--spacing-medium);
    text-align: center; /* Center card content */
}

.card .card-content .title,
.card .card-content .subtitle {
    font-family: var(--font-heading);
    color: var(--color-heading-dark); /* Dark headings in cards */
    margin-bottom: 0.5rem;
     text-align: center; /* Ensure centered */
}

.card .card-content .content {
    font-family: var(--font-body);
    color: var(--color-text-dark); /* Dark text in cards */
    font-size: 0.9rem;
    line-height: 1.5;
    text-align: left; /* Or center, depending on preference */
}

/* "Read More" links styling */
.blog .card .card-content .content a {
    font-weight: bold;
    color: var(--color-primary);
    margin-top: 10px;
    display: inline-block; /* Allows margin-top */
}

.blog .card .card-content .content a:hover {
     color: var(--color-accent);
}


/* Clientele & Partners Sections - Logos */
#clientele .image,
#partners .image {
    margin: 0 auto; /* Center images */
}

#clientele figure.image img,
#partners figure.image img {
     display: block;
     max-width: 100%;
     height: auto;
     /* Add filters for grayscale/toning if needed to match pastel theme */
     filter: grayscale(80%) brightness(110%); /* Example: grayscale and slight lighten */
}


/* Media Section */
.media .box.modern-box {
    /* Uses modern-box styles */
    text-align: left; /* Align media content left */
}

.media-left figure.image img {
     border-radius: 4px;
}

.media-content .content p {
     margin-bottom: 0.5rem;
     color: var(--color-text-dark); /* Dark text */
}
.media-content .content strong {
     color: var(--color-heading-dark); /* Darker for emphasis */
     font-family: var(--font-heading);
     font-size: 1.1rem;
}
.media-content .content small {
     color: #666; /* Muted color for date/source */
}


/* External Resources Section */
.external-resources .box.modern-box {
     /* Uses modern-box styles */
      text-align: left; /* Align link content left */
}

.external-resources .box.modern-box a.title {
     color: var(--color-primary); /* Primary color for link title */
     font-size: 1.2rem;
     text-align: left; /* Left align link title */
     margin-bottom: 5px;
     display: block; /* Make title a block for spacing */
}
.external-resources .box.modern-box a.title:hover {
     color: var(--color-accent);
     text-decoration: underline;
}

.external-resources .box.modern-box small {
     color: #666; /* Muted color for URL */
     display: block; /* Make URL block */
     margin-bottom: 5px;
}


/* Contact Section */
#contact .box.modern-box {
    /* Uses modern-box styles */
}

#contact form .label {
    font-weight: bold;
    color: var(--color-heading-dark); /* Dark label text */
}

#contact form .field:not(:last-child) {
    margin-bottom: var(--spacing-small);
}

#contact form .button {
     margin-top: var(--spacing-medium);
}


/* Footer */
.footer {
    background-color: var(--color-background-dark); /* Dark footer background */
    padding: var(--spacing-medium) var(--spacing-medium);
    color: var(--color-text-light); /* White text in footer */
}

.footer a.footer-link,
.footer .social-links a.social-link {
    color: var(--color-text-light); /* White links in footer */
    margin: 0 10px;
    transition: color var(--transition-speed) var(--transition-ease);
    text-shadow: 1px 1px 2px rgba(0,0,0,0.3); /* Shadow for readability */
}

.footer a.footer-link:hover,
.footer .social-links a.social-link:hover {
    color: var(--color-accent); /* Accent color on hover */
    text-decoration: none; /* No underline on hover for clean look */
}

.footer .content p {
    color: var(--color-text-light); /* Ensure all text is white */
    text-shadow: 1px 1px 2px rgba(0,0,0,0.3);
}

.footer .social-links {
    margin-top: var(--spacing-small);
     font-family: var(--font-heading);
}


/* Modal Styles (Success Message) */
.modal {
    /* Bulma provides base modal styles */
}

.modal .modal-content .box {
    background-color: var(--color-background-light); /* Light background for modal box */
    padding: var(--spacing-medium);
    border-radius: 8px;
    text-align: center;
}

.modal .modal-content .box h3.title {
     color: var(--color-heading-dark); /* Dark heading */
     text-align: center;
}

.modal .modal-content .box p {
     color: var(--color-text-dark); /* Dark text */
     margin-bottom: var(--spacing-small);
}

.modal .modal-content .box img {
     display: block;
     margin: 20px auto;
     width: 128px; /* Match HTML size */
     height: 128px; /* Match HTML size */
}

.modal .modal-content .box .button {
    margin-top: var(--spacing-small);
}

/* Specific Page Styles (About, Privacy, Terms, Success) */
/* Add padding to main content to clear fixed header */
.page-content { /* Add this class to the main container/section on these pages */
    padding-top: 100px; /* Adjust value based on header height */
    min-height: calc(100vh - 150px); /* Example to ensure content pushes footer down if sparse */
}

/* Success page specific centering */
body.success-page {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    text-align: center;
     background-color: var(--color-background-light); /* Or match other sections */
     color: var(--color-text-dark);
}

body.success-page .success-container { /* Container for success message content */
     max-width: 600px;
     padding: var(--spacing-medium);
     background-color: rgba(255, 255, 255, 0.9); /* Subtle background */
     border-radius: 8px;
     box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

body.success-page .success-container h1 {
    color: var(--color-heading-dark);
    margin-bottom: var(--spacing-small);
}

body.success-page .success-container p {
     color: var(--color-text-dark);
     margin-bottom: var(--spacing-medium);
}

body.success-page .success-container img {
     display: block;
     margin: 20px auto;
     width: 128px;
     height: 128px;
}

/* Minimal Cookie Consent CSS (Mostly inline, but adding font consistency) */
#cookieConsent {
    font-family: var(--font-body);
}
#cookieConsent button {
     font-family: var(--font-body);
}


/* Animations (Initial states for ScrollReveal/Motion One) */
/* Elements will fade in and potentially slide up */
[data-sr], .sr {
    /*visibility: hidden; !* Hide elements before animation *!*/
}


/* Modern UI components styling */
/* Inputs & Textareas already styled with modern-input/textarea */
/* Buttons already styled globally */
/* Cards already styled */
/* Progress indicators (Bulma has .progress) - just ensure colors match theme */
.progress.is-primary {
    background-color: var(--color-secondary);
}
.progress::-webkit-progress-bar {
    background-color: var(--color-secondary);
}
.progress::-webkit-progress-value {
    background-color: var(--color-primary);
}
.progress::-moz-progress-bar {
    background-color: var(--color-primary);
}
.progress::-ms-fill {
    background-color: var(--color-primary);
}


/* Ensure Bulma columns have padding/gap */
.columns {
    margin-left: -0.75rem;
    margin-right: -0.75rem;
    margin-top: -0.75rem; /* Match Bulma default */
}
.columns:last-child {
    margin-bottom: -0.75rem;
}
.column {
     padding: 0.75rem; /* Match Bulma default */
}


/* Ensure two-thirds column width is appropriate */
.column.is-two-thirds {
    /* Bulma handles this, no need to override unless specific breakpoint needed */
}

/* General Spacing & Layout adjustments */
.content h2:not(:first-child) {
    margin-top: var(--spacing-medium); /* Add space before subsequent headings in content */
}

.content figure {
     margin-bottom: var(--spacing-medium); /* Space below figures in content */
}

/* Ensure text on light backgrounds is clearly visible */
.section:not(#hero) .title,
.section:not(#hero) .subtitle,
.section:not(#hero) .content p,
.section:not(#hero) label,
.section:not(#hero) input::placeholder,
.section:not(#hero) textarea::placeholder {
    color: var(--color-text-dark);
}

/* Placeholder text color */
::placeholder { /* Chrome, Firefox, Opera, Safari 10.1+ */
  color: #888; /* Muted grey */
  opacity: 1; /* Firefox */
}

:-ms-input-placeholder { /* Internet Explorer 10-11 */
  color: #888;
}

::-ms-input-placeholder { /* Microsoft Edge */
  color: #888;
}