/* style.css */

/* -------------------------------------------------------------------------- */
/*                               Root Variables                               */
/* -------------------------------------------------------------------------- */
:root {
    /* Tetrad Color Scheme */
    --primary-color: #0D7377; /* Deep Teal - Main */
    --secondary-color: #E2703A; /* Burnt Orange - CTA, Accent */
    --accent-color-1: #32E0C4; /* Bright Aqua - Highlight, Positive */
    --accent-color-2: #B24E82; /* Muted Magenta/Rose - Secondary Accent */

    /* Neutral Colors */
    --text-color: #363636; /* Bulma's default dark grey */
    --text-color-light: #FFFFFF;
    --text-color-muted: #555555;
    --headings-color: #222222; /* Darker for strong headings */
    --link-color: var(--primary-color);
    --link-hover-color: var(--secondary-color);

    --background-color: #FFFFFF;
    --light-background-color: #F8F9FA; /* Very light grey for section contrast */
    --dark-background-color: #2c3e50; /* For dark sections if any, or footer */

    --border-color: #DEDEDE;
    --card-border-color: #EAEAEA;
    --input-border-color: #CCCCCC;
    --input-focus-border-color: var(--primary-color);

    /* Typography */
    --font-family-headings: 'Oswald', sans-serif;
    --font-family-body: 'Nunito', sans-serif;
    --base-font-size: 16px;
    --line-height-base: 1.6;

    /* Spacing & Sizing */
    --spacing-unit: 1rem; /* 16px */
    --section-padding-y: 4rem; /* 64px */
    --container-max-width: 1140px;

    /* Borders & Shadows */
    --border-radius-small: 4px;
    --border-radius-medium: 8px;
    --border-radius-large: 12px;
    --box-shadow-soft: 0 4px 12px rgba(0, 0, 0, 0.08);
    --box-shadow-medium: 0 8px 24px rgba(0, 0, 0, 0.12);
    --text-shadow-subtle: 1px 1px 3px rgba(0,0,0,0.2);
}

/* -------------------------------------------------------------------------- */
/*                               Global Styles                                */
/* -------------------------------------------------------------------------- */
html {
    scroll-behavior: smooth;
    font-size: var(--base-font-size);
}

body {
    font-family: var(--font-family-body);
    color: var(--text-color);
    background-color: var(--background-color);
    line-height: var(--line-height-base);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden; /* Prevent horizontal scroll */
    padding-top: 0px !important;
}

/* Headings */
h1, h2, h3, h4, h5, h6,
.title, .subtitle {
    font-family: var(--font-family-headings);
    color: var(--headings-color);
    font-weight: 500;
}

.title { /* Bulma .title override */
    color: var(--headings-color);
    font-weight: 700; /* Oswald bold */
}
.subtitle { /* Bulma .subtitle override */
    color: var(--text-color-muted);
    font-weight: 400; /* Oswald regular or Nunito */
    font-family: var(--font-family-body);
}

.section-title {
    margin-bottom: 2.5rem;
    font-size: 2.5rem; /* Oswald title size */
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--headings-color);
    position: relative;
    padding-bottom: 0.5rem;
}

.section-title::after { /* Subtle underline effect */
    content: '';
    display: block;
    width: 80px;
    height: 4px;
    background-color: var(--secondary-color);
    margin: 0.5rem auto 0;
    border-radius: var(--border-radius-small);
}


p {
    margin-bottom: var(--spacing-unit);
    color: var(--text-color);
}

a {
    color: var(--link-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

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

/* Bulma Container Enhancement */
.container {
    max-width: var(--container-max-width);
}

/* Section Base Styles */
.section {
    padding-top: var(--section-padding-y);
    padding-bottom: var(--section-padding-y);
    /* min-height: auto; Prevent fixed min-height */
}

.section.has-background-light {
    background-color: var(--light-background-color);
}


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

figure.image { /* Ensure figure doesn't add extra space */
    margin: 0;
}

/* -------------------------------------------------------------------------- */
/*                                 UI Components                              */
/* -------------------------------------------------------------------------- */

/* Buttons (Global - complementing Bulma's .button) */
.button, button, input[type="submit"], input[type="button"] {
    font-family: var(--font-family-headings); /* Oswald for buttons */
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-radius: var(--border-radius-medium);
    padding: 0.8em 1.8em;
    transition: all 0.3s ease;
    box-shadow: var(--box-shadow-soft);
    border: 1px solid transparent;
}

.button:hover, button:hover, input[type="submit"]:hover, input[type="button"]:hover {
    transform: translateY(-2px);
    box-shadow: var(--box-shadow-medium);
}

.button:active, button:active, input[type="submit"]:active, input[type="button"]:active {
    transform: translateY(0);
    box-shadow: inset 0 2px 4px rgba(0,0,0,0.1);
}

.button.is-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    color: var(--text-color-light);
}
.button.is-primary:hover {
    background-color: darken(var(--primary-color), 5%);
    border-color: darken(var(--primary-color), 5%);
    color: var(--text-color-light);
}

.button.is-secondary, .button.cta-button, .cta-button-nav /* CTA buttons */ {
    background-color: var(--secondary-color);
    border-color: var(--secondary-color);
    color: var(--text-color-light);
}
.button.is-secondary:hover, .button.cta-button:hover, .cta-button-nav:hover {
    background-color: darken(var(--secondary-color), 8%);
    border-color: darken(var(--secondary-color), 8%);
    color: var(--text-color-light);
}

.button.is-info {
    background-color: var(--accent-color-1);
    border-color: var(--accent-color-1);
    color: var(--text-color); /* Good contrast with bright aqua */
}
.button.is-info:hover {
    background-color: darken(var(--accent-color-1), 8%);
    border-color: darken(var(--accent-color-1), 8%);
}

.button.is-outlined {
    background-color: transparent;
    border-width: 2px;
}
.button.is-primary.is-outlined {
    border-color: var(--primary-color);
    color: var(--primary-color);
}
.button.is-primary.is-outlined:hover {
    background-color: var(--primary-color);
    color: var(--text-color-light);
}
.button.is-info.is-outlined {
    border-color: var(--accent-color-1);
    color: var(--accent-color-1);
}
.button.is-info.is-outlined:hover {
    background-color: var(--accent-color-1);
    color: var(--text-color);
}
.button.is-link.is-outlined {
    border-color: var(--link-color);
    color: var(--link-color);
}
.button.is-link.is-outlined:hover {
    background-color: var(--link-color);
    color: var(--text-color-light);
}


/* Forms (Modern Inputs) */
.input, .textarea {
    border-radius: var(--border-radius-medium);
    border: 1px solid var(--input-border-color);
    padding: 0.75em 1em;
    font-family: var(--font-family-body);
    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(--input-focus-border-color);
    box-shadow: 0 0 0 0.125em rgba(var(--primary-color), 0.25); /* Bulma-like focus */
}
.label {
    font-family: var(--font-family-headings);
    font-weight: 500;
    color: var(--headings-color);
}


/* Cards (Global for .card) */
.card {
    background-color: var(--background-color);
    border-radius: var(--border-radius-large);
    box-shadow: var(--box-shadow-soft);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    overflow: hidden; /* Important for border-radius on images */
    display: flex; /* For centering content as per requirement */
    flex-direction: column;
    height: 100%; /* Make cards in a row same height */
}

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

.card .card-image { /* Bulma's .card-image */
    overflow: hidden; /* Ensure image respects border-radius */
    display: flex; /* Centering content within card-image */
    align-items: center;
    justify-content: center;
    position: relative; /* For potential overlays */
}

.card .card-image figure.image { /* Bulma's figure wrapper */
    width: 100%;
}

.card .card-image img {
    width: 100%;
    height: 200px; /* Fixed height for image containers in cards */
    object-fit: cover; /* Cover ensures image fills space without distortion */
    display: block;
    border-top-left-radius: var(--border-radius-large); /* If image is at the very top */
    border-top-right-radius: var(--border-radius-large);
}
.card.service-card .card-image img,
.card.workshop-card .card-image img { /* specific heights if needed */
    height: 220px;
}
.card.case-study-card .card-image img {
    height: 250px;
}
.card.gallery-card .card-image img {
    height: 280px; /* Square images */
    object-fit: cover;
}


.card .card-content {
    padding: 1.5rem;
    text-align: center; /* Centering content as requested */
    flex-grow: 1; /* Allows content to fill space if card heights are matched */
    display: flex;
    flex-direction: column;
    justify-content: space-between; /* Pushes button to bottom if card-content is flex */
}
.card .card-content .title, .card .card-content .subtitle {
    margin-bottom: 0.75rem;
}
.card .card-content .content {
    font-size: 0.95rem;
    color: var(--text-color-muted);
    margin-bottom: 1rem;
    flex-grow: 1;
}
.card .card-content .content p {
    color: var(--text-color-muted);
}
.card .card-content .button {
    margin-top: auto; /* Pushes button to bottom */
    align-self: center; /* Center button if text-align: center is not enough */
}

/* Specific Card Type Adjustments */
.service-card h3.title.is-4 {
    color: var(--primary-color);
}
.case-study-card h3.title.is-4 {
    color: var(--accent-color-2);
}
.workshop-card h3.title.is-4 {
    color: var(--accent-color-1);
    /* Ensure text is dark enough on accent-color-1 if it's too light */
}
.resource-card {
    text-align: left; /* Override general card centering for resource list */
}
.resource-card .title.is-5 a {
    color: var(--primary-color);
}
.resource-card .title.is-5 a:hover {
    color: var(--secondary-color);
}

/* -------------------------------------------------------------------------- */
/*                               Header & Navbar                              */
/* -------------------------------------------------------------------------- */
.header.sticky-header {
    position: sticky;
    top: 0;
    width: 100%;
    z-index: 1000;
    background-color: rgba(255, 255, 255, 0.9); /* Semi-transparent white */
    backdrop-filter: blur(10px); /* Glassmorphism effect */
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.navbar {
    min-height: 4.5rem; /* Increased height */
}

.navbar-item, .navbar-link {
    font-family: var(--font-family-headings);
    font-weight: 500;
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 0.5px;
    color: var(--text-color);
    padding: 0.75rem 1.25rem;
}
.navbar-item:hover, .navbar-link:hover,
.navbar-item.is-active, .navbar-link.is-active {
    background-color: transparent;
    color: var(--secondary-color);
}
.navbar-link::after { /* Arrow for dropdown */
    border-color: var(--primary-color);
}
.navbar-dropdown {
    border-top-color: var(--secondary-color);
    border-top-width: 3px;
    border-radius: 0 0 var(--border-radius-medium) var(--border-radius-medium);
}
.navbar-dropdown .navbar-item {
    font-size: 0.85rem;
}

.company-name-logo {
    color: var(--primary-color);
    font-family: var(--font-family-headings);
}
.cta-button-nav { /* For the phone number button in nav */
    font-size: 0.9rem !important;
    padding: 0.6em 1.5em !important;
}

/* Burger Menu */
.navbar-burger {
    color: var(--primary-color);
    height: 4.5rem; /* Match navbar height */
    width: 4.5rem;
}
.navbar-burger span {
    background-color: var(--primary-color);
    height: 3px;
}


/* -------------------------------------------------------------------------- */
/*                                Hero Section                                */
/* -------------------------------------------------------------------------- */
#hero.hero-background-image {
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    position: relative;
    color: var(--text-color-light); /* Default white text for hero */
}
#hero.hero-background-image .hero-body {
    position: relative;
    z-index: 2; /* Content above overlay */
}
#hero .hero-content-overlay { /* Dark overlay for text readability */
    background: linear-gradient(rgba(0,0,0,0.5), rgba(0,0,0,0.7));
    padding: 2rem;
    border-radius: var(--border-radius-large);
    /* Subtle Glassmorphism on overlay background if desired */
    /* background-color: rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px); */
}

#hero .title.is-1 {
    font-size: 3.5rem;
    font-weight: 700;
    color: var(--text-color-light) !important; /* Ensure white */
    margin-bottom: 1rem;
    text-shadow: var(--text-shadow-subtle);
}

#hero .subtitle.is-3 {
    font-size: 1.5rem;
    font-weight: 400;
    color: var(--text-color-light) !important; /* Ensure white */
    font-family: var(--font-family-body);
    margin-bottom: 2rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

#hero .button.cta-button {
    font-size: 1.2rem;
    padding: 1em 2.5em;
}


/* -------------------------------------------------------------------------- */
/*                           Specific Section Styles                          */
/* -------------------------------------------------------------------------- */

/* About Us Summary Section */
#about-summary .content p {
    font-size: 1.1rem;
    line-height: 1.7;
}

/* Success Stories / Testimonials */
.testimonial-box {
    background-color: var(--background-color);
    border-radius: var(--border-radius-large);
    padding: 2rem;
    box-shadow: var(--box-shadow-soft);
    height: 100%;
}
.testimonial-box .media-left .image img {
    border: 3px solid var(--accent-color-1);
}
.testimonial-box .content strong {
    font-family: var(--font-family-headings);
    color: var(--primary-color);
}

/* Research Section */
#research .content p {
    font-size: 1.05rem;
}
#research figure img {
    border-radius: var(--border-radius-medium);
    box-shadow: var(--box-shadow-soft);
}

/* History Section (Timeline) */
.timeline .timeline-header .tag {
    background-color: var(--primary-color);
    color: var(--text-color-light);
    font-size: 1rem;
}
.timeline .timeline-item .timeline-marker {
    border-width: 3px;
}
.timeline .timeline-item .timeline-marker.is-image img {
    border-radius: 50%;
}
.timeline .timeline-item .timeline-content .heading {
    font-family: var(--font-family-headings);
    font-weight: 500;
    color: var(--headings-color);
}
.timeline .timeline-item .timeline-content p:not(.heading) {
    font-size: 0.95rem;
    color: var(--text-color-muted);
}
.timeline-marker.is-icon i { /* Placeholder if FontAwesome is used */
    font-size: 1.2em;
    color: var(--text-color-light);
}


/* Sustainability Section */
#sustainability .content p {
    font-size: 1.05rem;
}
#sustainability figure img {
    border-radius: var(--border-radius-medium);
    box-shadow: var(--box-shadow-soft);
}

/* Community Section */
#community figure img {
    border-radius: var(--border-radius-medium);
    box-shadow: var(--box-shadow-soft);
}

/* Gallery Section */
.gallery-card .card-image {
    border-radius: var(--border-radius-medium); /* Match card radius */
}
.gallery-card .card-image img {
    border-radius: 0; /* Image itself shouldn't have radius if card-image handles it */
}


/* FAQ Section */
.faq-item {
    margin-bottom: 1rem;
}
.faq-item .accordion {
    background-color: var(--light-background-color);
    border: 1px solid var(--border-color);
    color: var(--headings-color);
    text-align: left;
    font-family: var(--font-family-headings);
    font-weight: 500;
    font-size: 1.1rem;
    width: 100%;
    padding: 1rem 1.5rem;
    border-radius: var(--border-radius-medium);
    box-shadow: none;
}
.faq-item .accordion:hover {
    background-color: var(--border-color);
    transform: none; /* Override global button hover */
    box-shadow: none;
}
.faq-item .accordion.is-active {
    background-color: var(--primary-color);
    color: var(--text-color-light);
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
}
.faq-item .accordion .icon { /* For plus/minus icon */
    transition: transform 0.3s ease;
}
.faq-item .accordion.is-active .icon {
    transform: rotate(45deg);
}
.faq-item .panel {
    padding: 1.5rem;
    border: 1px solid var(--border-color);
    border-top: none;
    border-radius: 0 0 var(--border-radius-medium) var(--border-radius-medium);
    background-color: var(--background-color);
    display: none; /* JS will handle display */
    font-size: 1rem;
}
.faq-item .panel.is-active {
    display: block;
}


/* External Resources Section */
.resource-card {
    min-height: 150px; /* Ensure some consistent height for smaller cards */
}
.resource-card .content.is-small {
    font-size: 0.85rem;
}

/* Contact Section */
.contact-form-box {
    background-color: var(--light-background-color);
    padding: 2.5rem;
    border-radius: var(--border-radius-large);
    box-shadow: var(--box-shadow-medium);
}
.contact-info-block a {
    color: var(--secondary-color);
    font-weight: bold;
}
.contact-info-block a:hover {
    text-decoration: underline;
}

/* -------------------------------------------------------------------------- */
/*                                   Footer                                   */
/* -------------------------------------------------------------------------- */
.footer {
    background-color: var(--dark-background-color); /* Darker footer */
    color: rgba(255, 255, 255, 0.8);
    padding: var(--section-padding-y) 1.5rem;
}

.footer .title.footer-title {
    color: var(--text-color-light);
    font-family: var(--font-family-headings);
    margin-bottom: 1rem;
}
.footer p, .footer ul li {
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.7);
}
.footer a.footer-link {
    color: rgba(255, 255, 255, 0.8);
    transition: color 0.3s ease;
}
.footer a.footer-link:hover {
    color: var(--accent-color-1); /* Bright accent for hover */
    text-decoration: none;
}
.footer .social-links-footer li {
    margin-bottom: 0.5rem;
}
.footer .social-links-footer a {
    text-transform: capitalize; /* Ensure text looks good */
}
.footer .content.has-text-centered p {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.6);
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 1.5rem;
    margin-top: 2rem;
}


/* -------------------------------------------------------------------------- */
/*                           Page Specific Styles                             */
/* -------------------------------------------------------------------------- */

/* Privacy & Terms pages content */
body.privacy-page .main-content-area,
body.terms-page .main-content-area {
    padding-top: 120px; /* Increased to account for sticky header height */
    padding-bottom: var(--section-padding-y);
}
body.privacy-page .main-content-area h1,
body.terms-page .main-content-area h1 {
    font-size: 2.8rem;
    margin-bottom: 1.5rem;
}
body.privacy-page .main-content-area h2,
body.terms-page .main-content-area h2 {
    font-size: 1.8rem;
    margin-top: 2rem;
    margin-bottom: 1rem;
    color: var(--primary-color);
}
body.privacy-page .main-content-area p, body.privacy-page .main-content-area li,
body.terms-page .main-content-area p, body.terms-page .main-content-area li {
    font-size: 1.05rem;
    line-height: 1.7;
    margin-bottom: 1em;
}


/* Success page (for form submission) */
body.success-page {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background-color: var(--light-background-color);
    padding: 2rem;
    text-align: center;
}
.success-page .success-container {
    background-color: var(--background-color);
    padding: 3rem;
    border-radius: var(--border-radius-large);
    box-shadow: var(--box-shadow-medium);
    max-width: 600px;
}
.success-page .success-container .icon-success { /* For a potential SVG/image icon */
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
    fill: var(--accent-color-1); /* If SVG */
}
.success-page .success-container h1 {
    color: var(--accent-color-1);
    font-size: 2.2rem;
    margin-bottom: 1rem;
}
.success-page .success-container p {
    font-size: 1.1rem;
    margin-bottom: 2rem;
    color: var(--text-color-muted);
}

/* -------------------------------------------------------------------------- */
/*                            Animation & Transitions                         */
/* -------------------------------------------------------------------------- */
.animated-section {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.animated-section.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.animated-text { /* For hero text */
    opacity: 0;
    transform: translateY(20px);
    /* JS will add 'is-visible' or trigger anime.js */
}

.animated-button { /* For hero button */
    opacity: 0;
    transform: scale(0.8);
     /* JS will add 'is-visible' or trigger anime.js */
}


/* -------------------------------------------------------------------------- */
/*                              Responsive Styles                             */
/* -------------------------------------------------------------------------- */
@media screen and (max-width: 1023px) { /* Bulma's $desktop breakpoint */
    .section-title {
        font-size: 2rem;
    }
    .navbar-menu {
        background-color: rgba(255, 255, 255, 0.98);
        box-shadow: 0 8px 16px rgba(0,0,0,0.1);
        padding: 0.5rem 0;
        border-bottom-left-radius: var(--border-radius-medium);
        border-bottom-right-radius: var(--border-radius-medium);
    }
    .navbar-item, .navbar-link {
        padding: 0.75rem 1.5rem; /* More padding on mobile menu items */
    }
     .footer .columns {
        text-align: center;
    }
    .footer .column {
        margin-bottom: 2rem;
    }
    .footer .social-links-footer {
        justify-content: center;
    }
}

@media screen and (max-width: 768px) { /* Bulma's $tablet breakpoint */
    html {
        font-size: 15px; /* Slightly smaller base font on mobile */
    }
    .section {
        padding-top: calc(var(--section-padding-y) * 0.75);
        padding-bottom: calc(var(--section-padding-y) * 0.75);
    }
    #hero .title.is-1 {
        font-size: 2.5rem;
    }
    #hero .subtitle.is-3 {
        font-size: 1.2rem;
    }
    .columns.is-multiline .column { /* Ensure cards stack nicely */
        margin-bottom: 1.5rem;
    }
    .contact-form-box {
        padding: 1.5rem;
    }
    .card .card-image img {
        height: 180px; /* Adjust card image height for mobile */
    }
     .card.case-study-card .card-image img {
        height: 200px;
    }
    .card.gallery-card .card-image img {
        height: 220px;
    }
    body.privacy-page .main-content-area,
    body.terms-page .main-content-area {
        padding-top: 100px;
    }
}

/* Helper to darken colors without SASS (use sparingly) */
/* This is a conceptual note; actual darker shades should be defined as vars if needed */
/* Example: --primary-color-dark: #SOME_DARKER_SHADE_OF_PRIMARY; */