/* style.css */

/* CSS Variables */
:root {
    --primary-color: #A0D2DB; /* Pastel Blue/Teal */
    --primary-color-darker: #78c1ce;
    --secondary-color: #FCE38A; /* Pastel Yellow */
    --accent-color: #E8A0BF; /* Pastel Pink/Lavender */
    --text-color: #333333; /* Dark Grey for readability */
    --text-color-light: #FFFFFF;
    --text-muted-color: #555555;
    --heading-color: #222222; /* Darker for headings */
    --background-light: #FDFDFD; /* Very Light Off-White */
    --background-light-pastel: #F0F4F8; /* Lightest blue-grey pastel for sections */
    --background-dark-pastel: #E0E7EF; /* Darker pastel for footer etc. */
    --card-background: #FFFFFF;
    --border-color: #DDE2E6;
    --button-hover-bg: #8bc8d3;
    --shadow-color: rgba(0, 0, 0, 0.1);

    --font-primary: 'Montserrat', sans-serif;
    --font-secondary: 'Merriweather', serif;

    --border-radius-normal: 8px;
    --border-radius-biomorphic-subtle: 20px 5px 20px 5px;
    --border-radius-biomorphic-card: 25px 10px;
    --biomorphic-input-radius: 15px 5px;
}

/* Global Styles */
body {
    font-family: var(--font-secondary);
    color: var(--text-color);
    background-color: var(--background-light);
    line-height: 1.7;
    font-size: 16px;
    overflow-x: hidden; /* Prevent horizontal scroll */
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

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

h1.title.is-1 { font-size: 3rem; }
h2.title.is-2 { font-size: 2.5rem; margin-bottom: 1.5em; text-shadow: 1px 1px 2px var(--shadow-color); }
h3.title.is-3 { font-size: 2rem; }
h4.title.is-4 { font-size: 1.5rem; }
p {
    margin-bottom: 1rem;
    color: var(--text-muted-color);
}

a {
    color: var(--primary-color-darker);
    transition: color 0.3s ease;
}
a:hover {
    color: var(--accent-color);
}

.section {
    padding: 60px 20px;
}

.container {
    max-width: 1140px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 15px;
    padding-right: 15px;
}

/* Bulma Overrides & Enhancements */
.navbar {
    background-color: rgba(255, 255, 255, 0.85); /* Slight transparency */
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    box-shadow: 0 2px 10px var(--shadow-color);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    transition: background-color 0.3s ease;
}
.navbar.is-transparent {
    background-color: transparent;
    box-shadow: none;
}
.navbar.is-scrolled { /* JS will add this class */
    background-color: rgba(255, 255, 255, 0.9);
    box-shadow: 0 2px 10px var(--shadow-color);
}

.navbar-item, .navbar-link {
    font-family: var(--font-primary);
    color: var(--heading-color);
    font-weight: 600;
    transition: color 0.3s ease;
}
.navbar-item:hover, .navbar-link:hover,
.navbar-item.is-active, .navbar-link.is-active {
    background-color: transparent !important;
    color: var(--primary-color-darker) !important;
}
.navbar-burger {
    color: var(--heading-color);
}
.navbar-burger span {
    background-color: var(--heading-color);
    height: 2px;
}
.navbar-brand .site-logo img {
    max-height: 40px;
    margin-right: 10px;
}
.navbar-brand .site-title-nav {
    font-family: var(--font-primary);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--heading-color);
}

/* Global Button Styles (extending Bulma's .button) */
.button {
    font-family: var(--font-primary);
    border-radius: var(--border-radius-biomorphic-subtle);
    transition: all 0.3s ease;
    padding: 12px 28px;
    font-weight: 600;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
    border: none;
}
.button.is-primary {
    background-color: var(--primary-color);
    color: var(--text-color-light);
}
.button.is-primary:hover {
    background-color: var(--button-hover-bg);
    color: var(--text-color-light);
    transform: translateY(-2px);
    box-shadow: 0 6px 10px rgba(0,0,0,0.1);
}
.button.is-link.is-outlined {
    border-color: var(--primary-color);
    color: var(--primary-color);
}
.button.is-link.is-outlined:hover {
    background-color: var(--primary-color);
    color: var(--text-color-light);
}

/* Input Field Styles (extending Bulma's .input, .textarea) */
.input, .textarea {
    font-family: var(--font-secondary);
    border-radius: var(--biomorphic-input-radius);
    border: 1px solid var(--border-color);
    box-shadow: inset 0 1px 2px rgba(0,0,0,0.03);
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}
.input:focus, .textarea:focus,
.input.is-focused, .textarea.is-focused,
.input:active, .textarea:active,
.input.is-active, .textarea.is-active {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.125em rgba(160, 210, 219, 0.25); /* primary-color with alpha */
}
.label {
    font-family: var(--font-primary);
    color: var(--heading-color);
    font-weight: 600;
}

/* Biomorphic Shapes */
.has-biomorphic-shape {
    border-radius: var(--border-radius-biomorphic-card);
    overflow: hidden; /* Important for child elements like images */
}
.has-biomorphic-input {
    border-radius: var(--biomorphic-input-radius) !important; /* Ensure it overrides Bulma */
}
.has-biomorphic-shape-image img {
    border-radius: var(--border-radius-biomorphic-card);
}
.hero.has-biomorphic-shape-bottom {
    position: relative;
}
.hero.has-biomorphic-shape-bottom::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 80px; /* Adjust height of the shape */
    background: var(--background-light); /* Or next section's background */
    clip-path: ellipse(70% 100% at 50% 100%); /* Example biomorphic shape */
    /* Alternative: simple curve */
    /* clip-path: path('M0,50 Q50,0 100,50 L100,100 L0,100 Z'); // Needs to be scaled */
    /* Or use an SVG background */
}

/* Hero Section */
#hero {
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    background-attachment: fixed; /* Parallax effect */
    /* linear-gradient already in HTML style attribute */
    align-items: center;
    display: flex;
}
#hero .hero-body {
    padding-top: 100px; /* Account for fixed navbar */
}
#hero .title {
    color: var(--text-color-light) !important; /* STRICT: Hero text white */
    font-size: 3.5rem;
    text-shadow: 2px 2px 8px rgba(0,0,0,0.6);
}
#hero .subtitle {
    color: var(--text-color-light) !important; /* STRICT: Hero text white */
    font-size: 1.5rem;
    text-shadow: 1px 1px 6px rgba(0,0,0,0.5);
    margin-bottom: 2rem;
}
@media screen and (max-width: 768px) {
    #hero .title { font-size: 2.5rem; }
    #hero .subtitle { font-size: 1.2rem; }
    #hero { background-attachment: scroll; } /* Disable fixed on mobile for performance */
}

/* Section Title Centering */
.section-title {
    margin-bottom: 2em !important; /* More space below section titles */
    color: var(--heading-color);
    text-shadow: 1px 1px 3px rgba(0,0,0,0.1);
}

/* Card Styles (General) */
.card {
    background-color: var(--card-background);
    box-shadow: 0 5px 15px var(--shadow-color);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 100%; /* For equal height cards in columns */
    display: flex; /* For flex children like card-content */
    flex-direction: column;
}
.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
}
.card .card-image { /* Bulma class */
    overflow: hidden; /* Ensure image biomorphic radius is contained */
}
.card .image-container { /* Custom class from HTML for better control */
    width: 100%;
    /* height: 200px; For fixed height, adjust as needed per card type */
    overflow: hidden;
    position: relative; /* For potential overlays */
    display: flex;
    align-items: center;
    justify-content: center;
}
.card .image-container img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Ensures image covers the area, might crop */
}
.card .card-content {
    padding: 1.5rem;
    text-align: left; /* Default text align */
    flex-grow: 1; /* Allows card content to fill space */
    display: flex;
    flex-direction: column;
    justify-content: space-between; /* Pushes button to bottom if card is flex col */
}
.card .card-content .title, .card .card-content .subtitle {
    color: var(--heading-color) !important; /* Ensure heading colors in cards */
}
.card .card-content .content {
    color: var(--text-muted-color);
    font-size: 0.95rem;
}
.card .media-left .image img {
    border-radius: 50%; /* For small circular icons */
}

/* Specific Card Styles */
/* Service Cards */
.service-card .image-container {
    height: 220px; /* Specific height for service card images */
}
.service-card .media-content .title {
    margin-bottom: 0.5rem;
}

/* Event Cards */
.event-card .image-container {
    height: 200px; /* Specific height for event card images */
}
.event-card .card-content .subtitle {
    color: var(--accent-color) !important;
    margin-bottom: 0.75rem;
}

/* Our Process Section */
#process .process-steps .column {
    padding: 1.5rem;
}
#process .process-icon-container {
    width: 100px;
    height: 100px;
    background-color: var(--primary-color);
    color: var(--text-color-light);
    border-radius: 50% 20% / 20% 50%; /* Biomorphic circle */
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem auto;
    transition: transform 0.3s ease, background-color 0.3s ease;
}
#process .process-step:hover .process-icon-container {
    transform: scale(1.1);
    background-color: var(--primary-color-darker);
}
#process .process-step .title {
    margin-top: 0.5rem;
    margin-bottom: 0.5rem;
    color: var(--heading-color);
}
#process .process-step p {
    font-size: 0.9rem;
    color: var(--text-muted-color);
}
#process .progress.is-primary {
    background-color: var(--border-color);
}
#process .progress.is-primary::-webkit-progress-value {
    background-color: var(--primary-color);
}
#process .progress.is-primary::-moz-progress-bar {
    background-color: var(--primary-color);
}
#process .progress.is-primary::-ms-fill {
    background-color: var(--primary-color);
}

/* Research Section */
#research .image.is-4by3 {
    border-radius: var(--border-radius-biomorphic-card);
    overflow: hidden;
    box-shadow: 0 5px 15px var(--shadow-color);
}
#research img {
    object-fit: cover;
}
#research p {
    color: var(--text-muted-color);
}

/* Clientele Section (Testimonials) */
#clientele .message.is-primary {
    background-color: var(--card-background);
    border-left: 5px solid var(--primary-color);
    border-radius: var(--border-radius-normal) var(--border-radius-biomorphic-subtle) var(--border-radius-biomorphic-subtle) var(--border-radius-normal);
    box-shadow: 0 5px 15px var(--shadow-color);
}
#clientele .message-body {
    border-color: transparent !important; /* Override Bulma's default if any */
    background-color: transparent !important;
    padding: 2rem;
    color: var(--text-muted-color);
}
#clientele .message-body p strong {
    color: var(--heading-color);
    font-family: var(--font-primary);
}

/* External Resources Section */
#external-resources .box.resource-box {
    background-color: var(--card-background);
    border-radius: var(--border-radius-biomorphic-card);
    box-shadow: 0 3px 10px var(--shadow-color);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    padding: 1.5rem;
}
#external-resources .box.resource-box:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 15px rgba(0,0,0,0.12);
}
#external-resources .media-content p strong {
    color: var(--primary-color-darker);
    font-family: var(--font-primary);
}
#external-resources .media-content p small a {
    color: var(--accent-color);
    word-break: break-all;
}
#external-resources .media-content p small a:hover {
    text-decoration: underline;
}


/* Contact Section */
#contact {
    background-color: var(--background-light); /* Slightly different from light-pastel */
}
#contact form {
    margin-top: 1rem;
}
#contact .map-placeholder {
    border-radius: var(--border-radius-biomorphic-card);
    background-color: var(--background-dark-pastel);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted-color);
    font-family: var(--font-secondary);
    overflow: hidden; /* If using an iframe */
}
#contact .map-placeholder img {
    opacity: 0.5;
}
#contact ul li {
    color: var(--text-muted-color);
}

/* Footer */
.footer {
    background-color: var(--background-dark-pastel);
    padding: 4rem 1.5rem 2rem;
    color: var(--text-muted-color);
}
.footer .footer-title {
    color: var(--heading-color) !important;
    margin-bottom: 1rem;
}
.footer .footer-links li a {
    color: var(--text-muted-color) !important; /* Overriding Bulma default blue */
    font-family: var(--font-secondary);
    padding: 0.3em 0;
    display: inline-block;
}
.footer .footer-links li a:hover {
    color: var(--primary-color-darker) !important;
    text-decoration: underline;
}
.footer hr {
    background-color: var(--border-color);
    height: 1px;
    margin: 2rem 0;
}
.footer .content p {
    color: var(--text-muted-color);
    font-size: 0.9rem;
}

/* Page Specific Styles */
/* For privacy.html, terms.html */
.static-page-content {
    padding-top: 120px; /* Ensure content below fixed navbar */
    min-height: calc(100vh - 150px); /* Adjust footer height if known */
}
.static-page-content .container {
    padding-bottom: 40px;
}
.static-page-content h1.title {
    margin-bottom: 1.5em;
    color: var(--heading-color);
}
.static-page-content p, .static-page-content li {
    color: var(--text-muted-color);
}

/* For success.html */
.success-page-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    text-align: center;
    background-color: var(--background-light-pastel);
    padding: 20px;
}
.success-page-container .success-content {
    background-color: var(--card-background);
    padding: 40px;
    border-radius: var(--border-radius-biomorphic-card);
    box-shadow: 0 10px 30px var(--shadow-color);
    max-width: 600px;
}
.success-page-container .icon.is-large .fa-check-circle { /* Assuming Font Awesome */
    font-size: 4rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}
.success-page-container h1 {
    color: var(--heading-color);
    margin-bottom: 0.5rem;
}
.success-page-container p {
    color: var(--text-muted-color);
    margin-bottom: 2rem;
}

/* Animated Icons (Example) */
.animated-icon {
    transition: transform 0.3s ease-in-out;
}
.process-step:hover .animated-icon {
    transform: scale(1.1) rotate(5deg);
}
.button:hover .animated-icon {
    transform: translateX(3px);
}


/* Read More Link Style */
a.read-more-link {
    font-family: var(--font-primary);
    font-weight: 600;
    color: var(--primary-color-darker);
    text-decoration: none;
    transition: color 0.3s ease, letter-spacing 0.3s ease;
    display: inline-block; /* Allows for margin/padding */
    margin-top: 0.5rem; /* Space from content above */
}
a.read-more-link:hover {
    color: var(--accent-color);
    letter-spacing: 0.5px; /* Subtle expansion on hover */
}
a.read-more-link::after {
    content: ' →'; /* Arrow character */
    transition: transform 0.3s ease;
    display: inline-block;
}
a.read-more-link:hover::after {
    transform: translateX(3px);
}

/* Utility Classes */
.has-text-centered { text-align: center !important; }
.mt-1 { margin-top: 0.25rem !important; }
.mt-2 { margin-top: 0.5rem !important; }
.mt-3 { margin-top: 1rem !important; }
.mt-4 { margin-top: 1.5rem !important; }
.mt-5 { margin-top: 3rem !important; }

/* Responsive Adjustments */
@media screen and (max-width: 1023px) { /* Tablet and below */
    .navbar-menu {
        background-color: rgba(250, 250, 250, 0.98);
        box-shadow: 0 8px 16px rgba(10,10,10,.1);
        padding: .5rem 0;
        border-bottom-left-radius: var(--border-radius-normal);
        border-bottom-right-radius: var(--border-radius-normal);
    }
    .navbar-item, .navbar-link {
        padding: 0.75rem 1rem;
    }
    .columns.is-multiline .column.is-one-third,
    .columns.is-multiline .column.is-one-quarter {
        margin-bottom: 1.5rem; /* Add space between cards on mobile */
    }
    .column.is-two-thirds { /* From Bulma - if content is stacked, ensure it looks good */
        margin-bottom: 1.5rem;
    }
    .section {
        padding: 40px 15px;
    }
    h1.title.is-1 { font-size: 2.5rem; }
    h2.title.is-2 { font-size: 2rem; }
}

@media screen and (max-width: 768px) { /* Mobile */
    .main-wrapper {
        padding-top: 52px; /* Height of navbar */
    }
    #hero .hero-body {
        padding-top: 30px; /* Adjust for mobile after navbar height accounted for by main-wrapper */
    }
    #hero .title { font-size: 2rem; }
    #hero .subtitle { font-size: 1.1rem; }

    .button.is-large { font-size: 1rem; padding: 10px 20px; }

    #process .process-icon-container {
        width: 80px;
        height: 80px;
    }
    #process .process-icon-container .fa-3x {
        font-size: 2em !important;
    }
    .columns .column.is-half { /* Stack contact form and details on mobile */
        width: 100%;
    }
    .footer .columns {
        text-align: center;
    }
    .footer .columns .column {
        margin-bottom: 1.5rem;
    }
}

/* Ensure text on images is readable */
.card .card-image .title-on-image, /* Example class if text is directly on image */
.hero .title, .hero .subtitle {
    /* Default text shadow is applied globally for hero,
       for cards, if text is on image, use a gradient overlay or similar */
    /* Example for an overlay on card image if needed:
    position: relative;
}
.card .card-image::after {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(rgba(0,0,0,0) 60%, rgba(0,0,0,0.7) 100%);
    border-radius: inherit; /* If card image has radius */
}
.card .card-image .title-on-image {
    position: absolute;
    bottom: 10px;
    left: 10px;
    color: white;
    z-index: 1;
}

/* Cookie Consent Popup minimal styles (already in HTML, this is for reference or minor tweaks if needed) */
/*
#cookieConsentPopup {
    font-family: var(--font-secondary);
}
#cookieConsentPopup p a {
    color: var(--primary-color);
}
#acceptCookieConsent {
    font-family: var(--font-primary);
    background-color: var(--primary-color);
    border-radius: var(--border-radius-biomorphic-subtle);
}
#acceptCookieConsent:hover {
    background-color: var(--button-hover-bg);
}
*/

/* Parallax on background images handled by background-attachment: fixed; in #hero */
/* ScrollReveal animations are JS-driven, CSS can define the initial state (opacity: 0, transform: translateY(20px)) if needed, but ScrollReveal handles it. */

.navbar-brand .site-logo img{
    max-width: 40px;
}

figure{
    padding-top: 0;
}

.hero-video, .image.is-16by9 .has-ratio, .image.is-16by9 img, .image.is-1by1 .has-ratio, .image.is-1by1 img, .image.is-1by2 .has-ratio, .image.is-1by2 img, .image.is-1by3 .has-ratio, .image.is-1by3 img, .image.is-2by1 .has-ratio, .image.is-2by1 img, .image.is-2by3 .has-ratio, .image.is-2by3 img, .image.is-3by1 .has-ratio, .image.is-3by1 img, .image.is-3by2 .has-ratio, .image.is-3by2 img, .image.is-3by4 .has-ratio, .image.is-3by4 img, .image.is-3by5 .has-ratio, .image.is-3by5 img, .image.is-4by3 .has-ratio, .image.is-4by3 img, .image.is-4by5 .has-ratio, .image.is-4by5 img, .image.is-5by3 .has-ratio, .image.is-5by3 img, .image.is-5by4 .has-ratio, .image.is-5by4 img, .image.is-9by16 .has-ratio, .image.is-9by16 img, .image.is-square .has-ratio, .image.is-square img, .is-overlay, .modal, .modal-background{
    position: relative !important;
}