/* style.css */

/* -----------------------------------------------------------------------------
TABLE OF CONTENTS:
--------------------------------------------------------------------------------
1.  CSS Variables
2.  Resets & Base Styles
    - HTML, Body
    - Typography (Headings, Paragraphs, Links)
    - Bulma Overrides (minimal)
3.  Layout
    - Main Container
    - Sections
4.  Neumorphic Primitives
    - .neu-element
    - .neu-element-inset
    - .neu-element-pressed
5.  Global Component Styles
    - Buttons (.button.neu-button)
    - Forms (input, textarea, label)
    - Cards (generic card enhancements)
6.  Header & Navigation
7.  Hero Section
8.  Specific Section Styles
    - Our Process (Timeline)
    - Success Stories (Story Cards)
    - Webinars (Accordions)
    - Team (Team Cards)
    - Press (Press Items)
    - External Resources (Resource Items)
    - Contact Section
9.  Footer
10. Page-Specific Styles
    - success.html
    - privacy.html, terms.html
11. Animations & Transitions
12. Responsive Design
----------------------------------------------------------------------------- */

/* 1. CSS Variables */
:root {
    --font-family-sans-serif: 'Open Sans', sans-serif;
    --font-family-headings: 'Raleway', sans-serif;

    /* Bright Color Scheme */
    --primary-color: #48C774; /* Bright Green - Bulma's default primary */
    --primary-color-darker: #3EAE62;
    --primary-color-lighter: #6DDB92;
    --accent-color-1: #FF6B6B; /* Bright Coral */
    --accent-color-2: #4ECDC4; /* Bright Teal */

    --bg-color: #F0F3F5; /* Light, slightly cool gray */
    --bg-color-darker: #E1E6E8;
    --bg-color-section-alt: #FAFAFC;


    --text-color: #363636; /* Bulma default text color - good contrast */
    --text-color-light: #555e68;
    --heading-color: #2c3e50; /* Dark slate gray for strong headings */
    --link-color: var(--primary-color);
    --link-hover-color: var(--primary-color-darker);

    /* Neumorphism Shadows (for --bg-color: #F0F3F5) */
    --shadow-light: #FFFFFF;
    --shadow-dark: #D1D9E6; /* Adjusted for #F0F3F5 */
    --shadow-distance: 6px;
    --shadow-blur: 12px;

    --inset-shadow-light: rgba(255, 255, 255, 0.7);
    --inset-shadow-dark: rgba(180, 188, 204, 0.7);


    --border-radius-soft: 15px;
    --border-radius-sharp: 8px;

    --header-height: 52px; /* Default Bulma navbar height */
    --transition-speed: 0.3s;
    --transition-easing: ease-in-out;
}

/* 2. Resets & Base Styles */
html {
    scroll-behavior: smooth;
    background-color: var(--bg-color);
    font-size: 100%; /* 16px base */
    overflow-x: hidden;
}

body {
    font-family: var(--font-family-sans-serif);
    color: var(--text-color);
    line-height: 1.6;
    background-color: var(--bg-color);
    font-weight: 400;
    padding-top: var(--header-height); /* For fixed header */
    overflow-x: hidden;
}

/* Typography */
h1, h2, h3, h4, h5, h6,
.title, .subtitle,
.Raleway { /* Class from HTML for Raleway */
    font-family: var(--font-family-headings);
    color: var(--heading-color);
    font-weight: 700;
}
.OpenSans { /* Class from HTML for Open Sans */
    font-family: var(--font-family-sans-serif);
}

.title {
    color: var(--heading-color); /* Ensure Bulma title uses our var */
    text-shadow: 1px 1px 2px rgba(0,0,0,0.1);
}
.subtitle {
    color: var(--text-color-light);
}

a {
    color: var(--link-color);
    transition: color var(--transition-speed) var(--transition-easing);
    text-decoration: none;
}
a:hover {
    color: var(--link-hover-color);
    text-decoration: underline;
}

p {
    margin-bottom: 1rem;
}

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

/* Bulma Overrides */
.section {
    padding: 4rem 1.5rem;
    background-color: transparent; /* Sections get their own neumorphic bg or inherit body */
}
.section:nth-child(odd) { /* Alternate section background slightly */
   /* background-color: var(--bg-color-section-alt); */
}

.container {
    max-width: 1140px; /* Or use Bulma's .is-max-desktop etc. */
    margin-left: auto;
    margin-right: auto;
}


/* 3. Layout (Mainly handled by Bulma, additional global layout styles if needed) */
.main-container {
    background-color: var(--bg-color);
    overflow: hidden; /* Contains shadows */
}

/* 4. Neumorphic Primitives */
.neu-element {
    background-color: var(--bg-color);
    border-radius: var(--border-radius-soft);
    box-shadow: var(--shadow-distance) var(--shadow-distance) var(--shadow-blur) var(--shadow-dark),
                calc(-1 * var(--shadow-distance)) calc(-1 * var(--shadow-distance)) var(--shadow-blur) var(--shadow-light);
    transition: box-shadow var(--transition-speed) var(--transition-easing), transform var(--transition-speed) var(--transition-easing);
}

.neu-element-inset {
    background-color: var(--bg-color);
    border-radius: var(--border-radius-soft);
    box-shadow: inset calc(var(--shadow-distance) / 2) calc(var(--shadow-distance) / 2) calc(var(--shadow-blur) / 2) var(--shadow-dark),
                inset calc(-1 * var(--shadow-distance) / 2) calc(-1 * var(--shadow-distance) / 2) calc(var(--shadow-blur) / 2) var(--shadow-light);
}

.neu-element-pressed,
.input.neu-element-pressed,
.textarea.neu-element-pressed {
    background-color: var(--bg-color-darker); /* Slightly darker bg for pressed state */
    border-radius: var(--border-radius-sharp);
    box-shadow: inset 4px 4px 8px var(--shadow-dark),
                inset -4px -4px 8px var(--shadow-light);
    border: 1px solid transparent; /* Ensure consistent sizing */
    color: var(--text-color);
    padding: 0.75em 1em;
}

.input.neu-element-pressed::placeholder,
.textarea.neu-element-pressed::placeholder {
    color: var(--text-color-light);
    opacity: 0.7;
}


/* 5. Global Component Styles */

/* Buttons */
.button.neu-button, button.neu-button {
    background-color: var(--bg-color); /* Base for neumorphic effect */
    color: var(--primary-color);
    font-family: var(--font-family-headings);
    font-weight: 700;
    border: none;
    border-radius: var(--border-radius-soft);
    padding: 0.8em 1.8em;
    box-shadow: 5px 5px 10px var(--shadow-dark),
                -5px -5px 10px var(--shadow-light);
    transition: all var(--transition-speed) var(--transition-easing);
    text-shadow: 1px 1px 1px var(--shadow-light);
}

.button.neu-button.is-primary {
    color: #FFFFFF;
    background-color: var(--primary-color); /* For primary, base color is solid */
    text-shadow: 1px 1px 2px rgba(0,0,0,0.2);
     box-shadow: 3px 3px 6px color-mix(in srgb, var(--primary-color) 70%, black),
                -3px -3px 6px color-mix(in srgb, var(--primary-color) 70%, white);
}
.button.neu-button.is-primary:hover {
    background-color: var(--primary-color-darker);
     box-shadow: inset 2px 2px 4px color-mix(in srgb, var(--primary-color) 60%, black),
                inset -2px -2px 4px color-mix(in srgb, var(--primary-color) 60%, white);
    transform: translateY(1px);
}


.button.neu-button:hover {
    box-shadow: 3px 3px 6px var(--shadow-dark),
                -3px -3px 6px var(--shadow-light);
    transform: translateY(1px);
}

.button.neu-button:active, .button.neu-button.is-active {
    box-shadow: inset 3px 3px 6px var(--shadow-dark),
                inset -3px -3px 6px var(--shadow-light);
    transform: translateY(2px);
    color: var(--primary-color-darker);
}

/* Forms */
.label {
    color: var(--heading-color);
    font-family: var(--font-family-headings);
    font-weight: 600;
    margin-bottom: 0.5em;
}

.input, .textarea {
    font-family: var(--font-family-sans-serif);
    transition: box-shadow var(--transition-speed) var(--transition-easing);
}
.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: inset 2px 2px 4px var(--shadow-dark),
                inset -2px -2px 4px var(--shadow-light),
                0 0 0 0.125em color-mix(in srgb, var(--primary-color) 25%, transparent) !important; /* Bulma focus style using var */
}

/* Cards */
.card.neu-element { /* Base neumorphic card */
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    display: flex; /* As per strict requirement */
    flex-direction: column;
    align-items: center; /* As per strict requirement */
    overflow: hidden; /* To contain shadows and rounded corners of children */
}
.card .card-image, .card .image-container { /* .image-container is used in HTML */
    width: 100%;
    height: 200px; /* Fixed height for card images */
    border-radius: var(--border-radius-sharp);
    overflow: hidden;
    margin-bottom: 1rem;
    background-color: var(--bg-color-darker); /* Placeholder bg */
}
.card .card-image img, .card .image-container img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Ensures image covers the area, might crop */
    display: block;
    border-radius: var(--border-radius-sharp);
}

.card .card-content {
    width: 100%; /* Ensure content takes full width within the card padding */
}

.card .card-content .title.card-title,
.card .card-content .title { /* Targeting .card-title from HTML */
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
    color: var(--heading-color);
}
.card .card-content .content {
    font-size: 0.9rem;
    color: var(--text-color);
}

/* Specific to team cards which have centered text in HTML */
.team-card .card-content {
    text-align: center;
}
.story-card:hover, .team-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-distance) var(--shadow-distance) var(--shadow-blur) var(--shadow-dark), /* Keep base shadow */
                calc(-1 * var(--shadow-distance)) calc(-1 * var(--shadow-distance)) var(--shadow-blur) var(--shadow-light), /* Keep base shadow */
                0 10px 20px rgba(0,0,0,0.1); /* Add a lift shadow */
}


/* 6. Header & Navigation */
.header.is-fixed-top {
    background-color: var(--bg-color) !important; /* Override Bulma */
    z-index: 100;
    height: auto; /* Allow padding to define height */
}
.header.neu-element { /* Apply neumorphic shadow to header */
    padding: 0.5rem 0; /* Add some padding to the header bar itself */
     box-shadow: 0px var(--shadow-distance) var(--shadow-blur) var(--shadow-dark); /* Only bottom shadow for header */
     border-radius: 0; /* Header is usually full-width, no rounding */
}
.navbar {
    background-color: transparent !important; /* Navbar inside header is transparent */
    min-height: var(--header-height);
}
.navbar-item, .navbar-link {
    font-family: var(--font-family-headings);
    font-weight: 600;
    color: var(--text-color) !important; /* Override Bulma */
    transition: color var(--transition-speed) var(--transition-easing);
    padding: 0.5rem 1rem;
}
.navbar-item:hover, .navbar-link:hover,
.navbar-item.is-active, .navbar-link.is-active {
    background-color: transparent !important; /* No bg color on hover */
    color: var(--primary-color) !important;
}
.site-title.navbar-item {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--primary-color) !important;
}
.navbar-burger {
    color: var(--text-color);
}
.navbar-burger span {
    background-color: var(--text-color) !important; /* Burger lines */
    height: 2px;
}
.navbar-menu.is-active {
    background-color: var(--bg-color);
    box-shadow: 0 8px 16px rgba(0,0,0,0.1);
    border-radius: 0 0 var(--border-radius-sharp) var(--border-radius-sharp);
}

/* 7. Hero Section */
.section-hero {
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    /* Linear gradient for darkening is applied inline in HTML */
}
.hero-title {
    font-size: 3.5rem; /* Adjust as needed */
    font-weight: 800;
    margin-bottom: 1rem;
    /* Color and text-shadow are inline in HTML for specificity */
}
.hero-subtitle {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    /* Color and text-shadow are inline in HTML */
}

/* Section Titles general styling */
.section-title {
    margin-bottom: 1rem;
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--heading-color);
    text-shadow: 1px 1px 2px rgba(0,0,0,0.05);
}
.section-subtitle {
    margin-bottom: 3rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    color: var(--text-color-light);
}

/* 8. Specific Section Styles */

/* Our Process (Timeline) */
.timeline.is-centered .timeline-item {
    margin-bottom: 2rem;
    padding: 1.5rem;
    border-radius: var(--border-radius-soft);
    position: relative;
}
.timeline.is-centered .timeline-item:last-child {
    margin-bottom: 0;
}
.timeline .timeline-marker.is-icon { /* Style the number marker */
    background-color: var(--primary-color);
    color: white;
    border: 3px solid var(--bg-color); /* Create separation from line */
    width: 40px;
    height: 40px;
    font-size: 1.2rem;
    line-height: 34px; /* Adjust for border */
    box-shadow: 0 0 0 3px var(--primary-color); /* Outer glow */
    border-radius: 50%;
}
.timeline .timeline-marker.is-icon i { /* This is the number inside */
    font-style: normal;
    font-weight: bold;
}
.timeline .timeline-content .heading {
    font-family: var(--font-family-headings);
    color: var(--primary-color);
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}
.timeline .timeline-content .content p {
    font-size: 0.95rem;
    color: var(--text-color);
}
/* Add line for timeline (Bulma usually does this, ensure it's visible) */
.timeline.is-centered::before {
    background-color: var(--shadow-dark);
}
.timeline.is-centered .timeline-item .timeline-marker {
    /* Ensure marker is above line */
    z-index: 1;
}

/* Webinars (Accordions) */
.webinar-list .accordion {
    margin-bottom: 1rem;
    border-radius: var(--border-radius-soft);
}
.accordion-header {
    padding: 1rem 1.5rem;
    cursor: pointer;
    border-radius: var(--border-radius-soft);
    transition: background-color var(--transition-speed) var(--transition-easing);
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.accordion-header:hover {
    background-color: var(--bg-color-darker);
}
.accordion-header.active {
    background-color: var(--bg-color-darker);
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
}
.accordion-header h4 {
    margin-bottom: 0;
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--heading-color);
}
.accordion-icon {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--primary-color);
}
.accordion-content {
    max-height: 0;
    overflow: hidden;
    padding: 0 1.5rem;
    background-color: var(--bg-color);
    border-radius: 0 0 var(--border-radius-soft) var(--border-radius-soft);
    transition: max-height 0.4s ease-in-out, padding 0.4s ease-in-out;
}
.accordion-content.active { /* JS will add this or handle max-height */
    /* max-height is set by JS */
    padding: 1.5rem;
    border-top: 1px solid var(--shadow-dark);
}
.accordion-content p {
    font-size: 0.95rem;
    margin-bottom: 1rem;
}
.accordion-content .button.neu-button {
    margin-top: 0.5rem;
    padding: 0.6em 1.2em;
    font-size: 0.9rem;
}


/* Press (Press Items) */
.press-item.box { /* Bulma .box enhanced */
    padding: 1.5rem;
    /* .neu-element-inset is applied in HTML */
}
.press-item .media-content .content p strong {
    font-family: var(--font-family-headings);
    color: var(--primary-color);
}
.press-item .media-content .content small {
    display: block;
    margin-top: 0.25rem;
    color: var(--text-color-light);
    font-size: 0.8rem;
}
.press-item .media-content .content p:last-of-type { /* The description paragraph */
    margin-top: 0.75rem;
    font-size: 0.9rem;
}

/* External Resources */
.resource-list .box.resource-item {
    padding: 1.5rem;
    margin-bottom: 1rem;
    /* .neu-element-inset is applied in HTML */
}
.resource-item h4.title a {
    color: var(--primary-color);
    font-size: 1.1rem;
}
.resource-item h4.title a:hover {
    color: var(--primary-color-darker);
}
.resource-item p {
    font-size: 0.9rem;
    color: var(--text-color-light);
}

/* Contact Section */
.contact-form-wrapper {
    padding: 2rem;
    /* .neu-element-inset applied in HTML */
}
.contact-form-wrapper .field:not(:last-child) {
    margin-bottom: 1.5rem;
}
.contact-info-additional {
    margin-top: 2rem;
    font-size: 0.95rem;
    color: var(--text-color-light);
}
.contact-info-additional a {
    color: var(--primary-color);
}
.contact-info-additional a:hover {
    color: var(--primary-color-darker);
}


/* 9. Footer */
.footer.neu-element-footer { /* Custom class for footer specific neumorphism */
    background-color: var(--bg-color-darker); /* Slightly different bg for footer */
    padding: 3rem 1.5rem 2rem;
    color: var(--text-color);
    border-top-left-radius: var(--border-radius-soft);
    border-top-right-radius: var(--border-radius-soft);
    box-shadow: inset 0px 5px 10px var(--shadow-dark),
                inset 0px -5px 10px var(--shadow-light);
}
.footer .footer-title {
    color: var(--heading-color);
    font-size: 1.2rem;
    margin-bottom: 1rem;
}
.footer p, .footer ul {
    font-size: 0.9rem;
    margin-bottom: 1rem;
}
.footer ul {
    list-style: none;
    padding-left: 0;
}
.footer ul li {
    margin-bottom: 0.5rem;
}
.footer a {
    color: var(--text-color);
}
.footer a:hover {
    color: var(--primary-color);
    text-decoration: underline;
}
.footer .social-links-footer a {
    display: inline-block;
    margin-right: 0.5rem; /* Spacing for text links */
    padding: 0.25rem 0;
    font-weight: 600;
}
.footer .content p { /* Copyright text */
    margin-top: 2rem;
    font-size: 0.85rem;
    color: var(--text-color-light);
}


/* 10. Page-Specific Styles */
/* success.html */
body.page-success { /* Add this class to body of success.html */
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    text-align: center;
    background-color: var(--bg-color);
    padding: 2rem;
    padding-top: var(--header-height); /* if header is on success page */
}
.success-container { /* Wrapper for content on success.html */
    max-width: 600px;
    padding: 3rem;
}
.success-container .title {
    color: var(--primary-color);
    font-size: 2.5rem;
}
.success-container .subtitle {
    font-size: 1.2rem;
    margin-bottom: 2rem;
}

/* privacy.html, terms.html */
body.page-legal main { /* Add .page-legal to body of privacy/terms.html */
    padding-top: 3rem; /* Content start below fixed header + extra space */
    padding-bottom: 3rem;
}
.page-legal .section { /* Ensure sections on legal pages have enough top padding too */
    padding-top: 0; 
}
.page-legal .container h1.title { /* First title on legal page */
    margin-bottom: 2rem;
}
.page-legal .container .content {
    max-width: 800px; /* Readable line length for legal text */
}
.page-legal .container .content h2 {
    font-size: 1.5rem;
    margin-top: 2rem;
    margin-bottom: 1rem;
    color: var(--heading-color);
}
.page-legal .container .content p {
    margin-bottom: 1rem;
    line-height: 1.7;
}
.page-legal .container .content ul {
    list-style: disc;
    margin-left: 2rem;
    margin-bottom: 1rem;
}


/* 11. Animations & Transitions */
.animate-button {
    /* Base style in .button.neu-button, hover there too */
}
.animate-on-scroll { /* For JS-driven scroll animations */
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s var(--transition-easing), transform 0.6s var(--transition-easing);
}
.animate-on-scroll.is-visible { /* Class added by JS */
    opacity: 1;
    transform: translateY(0);
}


/* 12. Responsive Design */
@media screen and (max-width: 1023px) { /* Bulma's tablet breakpoint */
    .navbar-menu {
        box-shadow: 0 8px 16px var(--shadow-dark);
        border-radius: 0 0 var(--border-radius-soft) var(--border-radius-soft);
        padding: 0.5rem 0;
    }
    .navbar-item {
        padding: 0.75rem 1.5rem; /* More touch-friendly padding */
    }
     .navbar-burger {
        margin-top: auto;
        margin-bottom: auto;
        margin-right: 1rem;
    }
    .header.is-fixed-top {
        position: fixed; /* Ensure it stays fixed */
    }
}

@media screen and (max-width: 768px) { /* Bulma's mobile breakpoint */
    html {
        font-size: 95%;
    }
    .section {
        padding: 3rem 1rem;
    }
    .hero-title {
        font-size: 2.5rem;
    }
    .hero-subtitle {
        font-size: 1.1rem;
    }
    .section-title {
        font-size: 2rem;
    }
    .section-subtitle {
        font-size: 1rem;
        margin-bottom: 2rem;
    }
    .card {
        padding: 1rem;
    }
    .contact-form-wrapper {
        padding: 1.5rem;
    }
    .footer .columns {
        text-align: center;
    }
    .footer .column {
        margin-bottom: 1.5rem;
    }
    .footer .social-links-footer {
        display: flex;
        flex-direction: column;
        align-items: center;
    }
     .footer .social-links-footer a {
        margin-right: 0;
        margin-bottom: 0.5rem;
    }
    .timeline.is-centered .timeline-item {
        padding: 1rem;
    }

}

/* Fix for fixed header overlap, especially for anchor links */
[id] {
  scroll-margin-top: calc(var(--header-height) + 20px); /* Adjust 20px as needed for extra spacing */
}

/* Ensure text color contrast for all text on page */
body, p, span, div, li {
    color: var(--text-color); /* Default fallback */
}
h1,h2,h3,h4,h5,h6,.title,.subtitle {
    color: var(--heading-color);
}
.has-text-white { /* Bulma utility for white text */
    color: #fff !important;
}
/* Ensure sufficient contrast for helper text or light text */
.has-text-grey, .has-text-grey-light, .has-text-grey-dark,
.OpenSans.section-subtitle, .OpenSans.hero-subtitle, .OpenSans.footer p,
.OpenSans.is-size-7, .OpenSans.resource-item p, .press-item small {
    /* Check these individually if contrast is an issue */
    /* E.g., ensure they are not too light on var(--bg-color) */
}

/* Ensure hero text remains white and shadowed from HTML */
.hero-title, .hero-subtitle {
    /* Styles are inline in HTML, ensuring visibility */
}

/* Ensure section titles have good contrast */
.section-title {
    color: var(--heading-color); /* Dark color */
    /* text-shadow already applied */
}
@media screen and (max-width: 1023px) {
    .header.is-fixed-top {
        width: 100%;
        position: fixed;
    }
}