/* style.css */

:root {
    /* Color Palette (Complementary: Yellow & Purple/Blue for accents) */
    --primary-color: #F7CA18; /* Vibrant Yellow */
    --primary-color-darker: #E0B600; /* Darker Yellow for hovers/borders */
    --secondary-color: #6A0DAD; /* Deep Purple - adjusted for better harmony */
    --secondary-color-light: #9B59B6; /* Lighter Purple for accents */

    --text-color-dark: #1E1E1E; /* Very Dark Gray / Off-Black */
    --text-color-light: #FFFFFF;
    --text-color-body: #333333;
    --text-color-muted: #555555; /* Muted text on light backgrounds */
    --text-color-inverted-muted: #CCCCCC; /* Muted text on dark backgrounds */

    --background-light: #FFFFFF;
    --background-medium: #F5F5F5; /* Slightly off-white for some sections */
    --background-dark: #1A1A1A; /* Dark for dark sections */
    --background-accent-light: #EFEFEF; /* Light accent for sections */

    /* Fonts */
    --font-family-headings: 'Raleway', "Helvetica Neue", Helvetica, Arial, sans-serif;
    --font-family-body: 'Open Sans', "Helvetica Neue", Helvetica, Arial, sans-serif;

    /* Brutalism Elements */
    --border-thickness: 2px;
    --border-standard: var(--border-thickness) solid var(--text-color-dark);
    --border-accent: var(--border-thickness) solid var(--primary-color);
    --border-light-on-dark: var(--border-thickness) solid var(--primary-color);

    --shadow-hard-offset: 4px;
    --shadow-hard: var(--shadow-hard-offset) var(--shadow-hard-offset) 0px var(--text-color-dark);
    --shadow-hard-primary: var(--shadow-hard-offset) var(--shadow-hard-offset) 0px var(--primary-color-darker);
    --shadow-hard-hover: 6px 6px 0px var(--text-color-dark);
    --shadow-hard-active: 2px 2px 0px var(--text-color-dark);


    /* Transitions */
    --transition-speed: 0.25s;
    --transition-timing: ease-in-out;

    /* Navbar */
    --navbar-height: 3.25rem; /* Default Bulma navbar height (52px) */
    --navbar-padding-vertical: 1rem;
    --navbar-padding-horizontal: 2rem;
    --navbar-background: var(--background-light);
    --navbar-border-bottom: var(--border-standard);

    /* Section Padding */
    --section-padding: 4rem 1.5rem;
    --section-padding-medium: 6rem 1.5rem;
}

/* Global Reset & Base Styles */
*, *::before, *::after {
    box-sizing: border-box;
}

html {
    font-size: 16px; /* Base font size */
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

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

/* For pages like privacy & terms, ensure specific padding */
body.page-privacy main,
body.page-terms main {
    padding-top: 3rem; /* Additional padding if navbar isn't enough or for aesthetics */
}
/* Fallback for pages that might not have specific body class but are static content pages */
.page-title-section + .section .container.content {
    padding-top: 1rem; /* Ensure content below title section has space */
}

/* Headings */
h1, h2, h3, h4, h5, h6, .title, .subtitle {
    font-family: var(--font-family-headings);
    color: var(--text-color-dark);
    font-weight: 700; /* Raleway bold */
    line-height: 1.2;
}

.title {
    font-weight: 900; /* Raleway Black for main titles */
    margin-bottom: 1rem !important;
}
.subtitle {
    font-weight: 400; /* Open Sans or Raleway regular */
    color: var(--text-color-muted);
    margin-bottom: 1.5rem !important;
}

p {
    margin-bottom: 1rem;
    font-size: 1rem; /* Standard paragraph size */
}
.content p:not(:last-child), 
.content ul:not(:last-child),
.content ol:not(:last-child) {
    margin-bottom: 1em;
}

a {
    color: var(--secondary-color);
    text-decoration: none;
    transition: color var(--transition-speed) var(--transition-timing);
}
a:hover {
    color: var(--primary-color-darker);
    text-decoration: underline;
}

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

/* Global Button Styles (Extending/Customizing Bulma's .button) */
.button, button, input[type="submit"], input[type="button"], input[type="reset"] {
    font-family: var(--font-family-headings);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-radius: 0 !important;
    border: var(--border-standard) !important;
    padding: 0.75em 1.75em !important;
    transition: all var(--transition-speed) var(--transition-timing) !important;
    box-shadow: var(--shadow-hard) !important;
    cursor: pointer;
    text-decoration: none !important;
    line-height: 1.5; /* Ensure text is vertically centered */
}

.button:hover, button:hover, input[type="submit"]:hover, input[type="button"]:hover, input[type="reset"]:hover {
    box-shadow: var(--shadow-hard-hover) !important;
    transform: translate(-2px, -2px);
}

.button:active, button:active, input[type="submit"]:active, input[type="button"]:active, input[type="reset"]:active {
    box-shadow: var(--shadow-hard-active) !important;
    transform: translate(2px, 2px);
}

/* Primary Button */
.button.is-primary {
    background-color: var(--primary-color) !important;
    border-color: var(--text-color-dark) !important;
    color: var(--text-color-dark) !important;
}
.button.is-primary:hover {
    background-color: var(--primary-color-darker) !important;
}

/* Outlined Button on light background */
.button.is-outlined,
.button.is-primary.is-outlined {
    background-color: transparent !important;
    border-color: var(--text-color-dark) !important;
    color: var(--text-color-dark) !important;
}
.button.is-primary.is-outlined:hover {
    background-color: var(--primary-color) !important;
    color: var(--text-color-dark) !important;
    border-color: var(--text-color-dark) !important;
}
.button.is-primary.is-inverted.is-outlined { /* Specific for Hero */
    background-color: transparent !important;
    border-color: var(--primary-color) !important;
    color: var(--primary-color) !important;
    box-shadow: var(--shadow-hard-offset) var(--shadow-hard-offset) 0px var(--primary-color-darker) !important;
}
.button.is-primary.is-inverted.is-outlined:hover {
    background-color: var(--primary-color) !important;
    color: var(--text-color-dark) !important;
    box-shadow: var(--shadow-hard-offset) var(--shadow-hard-offset) 0px var(--text-color-dark) !important;
}

/* "Read More" Link as a Button Style (if using Bulma classes) */
.button.is-link.is-small { /* Re-style Bulma's is-link */
    background-color: transparent !important;
    border: none !important; /* No border for link-like button */
    color: var(--secondary-color) !important;
    padding: 0.25em 0 !important; /* Minimal padding */
    text-transform: none;
    font-weight: 700;
    letter-spacing: normal;
    box-shadow: none !important;
    text-decoration: underline !important;
}
.button.is-link.is-small:hover {
    color: var(--primary-color) !important;
    transform: none !important;
    box-shadow: none !important;
}


/* Global Section Styling */
.section {
    padding: var(--section-padding);
    position: relative; /* For pseudo-elements or absolute positioned items */
}
.section.is-medium {
    padding: var(--section-padding-medium);
}
.section.section-dark {
    background-color: var(--background-dark);
    color: var(--text-color-light);
}
.section.section-dark .title,
.section.section-dark .subtitle,
.section.section-dark h1, .section.section-dark h2, .section.section-dark h3, .section.section-dark h4,
.section.section-dark p {
    color: var(--text-color-light);
}
.section.section-dark .subtitle {
    color: var(--text-color-inverted-muted);
}
.section.section-dark .button.is-outlined {
    border-color: var(--primary-color) !important;
    color: var(--primary-color) !important;
    box-shadow: var(--shadow-hard-offset) var(--shadow-hard-offset) 0px var(--primary-color-darker) !important;
}
.section.section-dark .button.is-outlined:hover {
    background-color: var(--primary-color) !important;
    color: var(--text-color-dark) !important;
    box-shadow: var(--shadow-hard-offset) var(--shadow-hard-offset) 0px var(--text-color-dark) !important;
}

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

.section-title {
    font-family: var(--font-family-headings);
    font-weight: 900;
    color: var(--text-color-dark);
    margin-bottom: 2.5rem !important;
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
    display: inline-block;
    padding-bottom: 0.75rem;
    text-shadow: 1px 1px 0px rgba(0,0,0,0.1); /* Subtle shadow for depth */
}
.section-title::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 60%;
    height: 5px;
    background-color: var(--primary-color);
}
.section-title.inverted {
    color: var(--text-color-light);
    text-shadow: 1px 1px 0px rgba(255,255,255,0.1);
}
.section-title.inverted::after {
    background-color: var(--primary-color);
}
.has-text-centered .section-title::after {
    left: 50%;
    transform: translateX(-50%);
}

/* Header & Navbar */
.header .navbar.is-fixed-top {
    background-color: var(--navbar-background);
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    border-bottom: var(--navbar-border-bottom);
    min-height: var(--navbar-height);
}
.navbar-item.site-title {
    font-family: var(--font-family-headings);
    font-weight: 900;
    font-size: 1.5rem;
    color: var(--text-color-dark) !important;
    letter-spacing: -0.5px;
}
.navbar-item, .navbar-link {
    font-family: var(--font-family-body);
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.875rem;
    letter-spacing: 0.5px;
    color: var(--text-color-muted) !important;
    transition: color var(--transition-speed) var(--transition-timing);
}
.navbar-item:hover, .navbar-link:hover,
.navbar-item.is-active, .navbar-link.is-active {
    background-color: transparent !important;
    color: var(--primary-color) !important;
}
.navbar-burger {
    color: var(--text-color-dark);
    border-radius: 0;
}
.navbar-burger:hover {
    background-color: rgba(0,0,0,0.05) !important;
}
@media screen and (max-width: 1023px) {
    .navbar-menu {
        background-color: var(--navbar-background);
        box-shadow: 0 8px 16px rgba(10,10,10,.1);
        padding: 0.5rem 0;
        border-top: var(--border-standard);
    }
    .navbar-item {
        padding: 0.75rem 1.5rem;
    }
}

/* Hero Section */
.section-hero {
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    position: relative;
}
.hero-text-overlay {
    background: linear-gradient(rgba(0,0,0,0.5), rgba(0,0,0,0.7));
    padding: 2rem;
    display: inline-block; /* To make the overlay only as wide as content needs + padding */
    max-width: 800px; /* Control width of the overlay */
    margin: 0 auto;
}
.hero .hero-title {
    font-size: 3rem; /* Adjust as needed */
    font-weight: 900;
    color: var(--text-color-light) !important; /* Explicitly white */
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}
.hero .hero-subtitle {
    font-size: 1.5rem; /* Adjust as needed */
    color: var(--text-color-light) !important; /* Explicitly white */
    margin-bottom: 2rem;
    font-weight: 400;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.5);
}
@media screen and (min-width: 769px) {
    .hero .hero-title {
        font-size: 4rem;
    }
    .hero .hero-subtitle {
        font-size: 1.75rem;
    }
}

/* Card Styles */
.card {
    background-color: var(--background-light);
    border: var(--border-standard);
    border-radius: 0;
    box-shadow: var(--shadow-hard);
    overflow: visible; /* Allow shadow to be seen */
    display: flex;
    flex-direction: column;
    height: 100%;
    transition: transform var(--transition-speed) var(--transition-timing), box-shadow var(--transition-speed) var(--transition-timing);
}
.card:hover {
    transform: translate(-3px, -3px);
    box-shadow: var(--shadow-hard-hover);
}
.card .card-image { /* Bulma's .card-image div */
    border-bottom: var(--border-standard);
    text-align: center;
    padding: 0; /* Remove default padding if any */
}
.card .image-container { /* Your custom wrapper for img */
    width: 100%;
    height: 220px; /* Fixed height for image containers in cards */
    overflow: hidden;
    background-color: var(--background-medium); /* Placeholder bg */
}
.card .image-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.card .card-content {
    padding: 1.5rem;
    text-align: center;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: flex-start; /* Align content to top, then center with text-align */
}
.card .card-content .title,
.card .card-content .subtitle {
    color: var(--text-color-dark);
    text-align: center;
}
.card .card-content .content {
    font-size: 0.95rem;
    color: var(--text-color-body);
}
.card .card-content .content p {
     text-align: left; /* Default for readability */
}
.card .card-content .content p.has-text-centered {
    text-align: center !important;
}

/* Brutalist Card specific style (already defined in HTML with this class) */
.brutalist-card {
    border: 3px solid var(--text-color-dark);
    box-shadow: 6px 6px 0 var(--primary-color-darker); /* Different shadow color */
}
.brutalist-card:hover {
    box-shadow: 8px 8px 0 var(--primary-color);
}

/* Testimonial Card */
.testimonial-card .media-left img.is-rounded {
    border: var(--border-accent);
    padding: 3px;
    background-color: var(--background-light);
}
.testimonial-card .content {
    font-style: italic;
    padding: 1rem;
    border-left: 4px solid var(--primary-color);
    background-color: var(--background-accent-light);
    margin-top: 1rem;
}

/* Accordion Styles */
.accordions .accordion {
    border: var(--border-standard);
    margin-bottom: 1rem;
    background-color: var(--background-light);
}
.accordions .accordion .accordion-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.5rem;
    cursor: pointer;
    background-color: var(--background-accent-light);
    border-bottom: var(--border-standard);
}
.accordions .accordion .accordion-header:hover {
    background-color: var(--primary-color);
    color: var(--text-color-dark);
}
.accordions .accordion .accordion-header p {
    font-weight: 700;
    margin-bottom: 0;
    font-family: var(--font-family-headings);
}
.accordions .accordion .toggle-accordion {
    background: none;
    border: none;
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--text-color-dark);
    padding: 0 0.5rem;
}
.accordions .accordion .accordion-body {
    max-height: 0;
    overflow: hidden;
    transition: max-height var(--transition-speed) ease-out, padding var(--transition-speed) ease-out;
}
.accordions .accordion.is-active .accordion-body {
    /* max-height will be set by JS */
    padding: 1.5rem;
    border-top: 1px solid var(--background-medium);
}
.accordions .accordion.is-active .toggle-accordion::before {
    content: "-";
}
.accordions .accordion:not(.is-active) .toggle-accordion::before {
    content: "+";
}

/* External Resources List */
.external-resources-list .resource-item.card {
    box-shadow: var(--shadow-hard);
}
.external-resources-list .resource-item.card .card-content .title a {
    color: var(--secondary-color);
}
.external-resources-list .resource-item.card .card-content .title a:hover {
    color: var(--primary-color);
}

/* Client Logos */
.client-logos .column img {
    max-height: 60px; /* Control logo size */
    width: auto;
    margin: 0 auto;
    filter: grayscale(100%);
    opacity: 0.7;
    transition: filter var(--transition-speed) var(--transition-timing), opacity var(--transition-speed) var(--transition-timing);
}
.client-logos .column img:hover {
    filter: grayscale(0%);
    opacity: 1;
}

/* Contact Form */
.brutalist-form .label {
    font-family: var(--font-family-headings);
    font-weight: 700;
    color: var(--text-color-dark);
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 0.5px;
}
.brutalist-form .input, .brutalist-form .textarea {
    border-radius: 0;
    border: var(--border-standard);
    box-shadow: none; /* Override Bulma's default input shadow */
    padding: 0.75em 1em;
    font-family: var(--font-family-body);
    transition: border-color var(--transition-speed) var(--transition-timing);
}
.brutalist-form .input:focus, .brutalist-form .textarea:focus,
.brutalist-form .input:active, .brutalist-form .textarea:active {
    border-color: var(--primary-color) !important;
    box-shadow: 0 0 0 2px var(--primary-color-darker) !important; /* Focus ring */
}
.contact-details p {
    margin-bottom: 0.5rem;
}
.contact-details strong {
    color: var(--text-color-dark);
}

/* Footer */
.footer {
    padding: 3rem 1.5rem 2rem; /* Reduced bottom padding */
    border-top: var(--border-standard);
}
.footer.section-dark {
    border-top: var(--border-thickness) solid var(--primary-color); /* Accent border for dark footer */
}
.footer .title.is-5.inverted {
    color: var(--primary-color) !important;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 1rem;
}
.footer-links li {
    margin-bottom: 0.5rem;
}
.footer-links a.inverted-link {
    color: var(--text-color-inverted-muted) !important;
    text-decoration: none;
    font-weight: normal;
    text-transform: none; /* Social links can be normal case */
}
.footer-links a.inverted-link:hover {
    color: var(--text-color-light) !important;
    text-decoration: underline;
}
.footer-hr {
    background-color: rgba(255,255,255,0.1);
    height: 1px;
    margin: 1.5rem 0;
}
.footer .content p.inverted-faded {
    color: var(--text-color-inverted-muted);
    font-size: 0.9rem;
}

/* Success Page */
body.page-success { /* Add this class to body of success.html */
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}
body.page-success .page-wrapper {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}
body.page-success main {
    flex-grow: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}
.success-container { /* Styles already in HTML, this is for consistency if needed */
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 2rem;
}
.success-container .title {
    color: var(--secondary-color); /* Or success green */
}

/* Scroll-dependent animations (initial states) */
.animated-text, .animated-button, .animated-card, .animated-section-title,
.animated-item { /* Generic class for other animated elements */
    opacity: 0;
    transform: translateY(25px);
    transition: opacity 0.6s var(--transition-timing), transform 0.6s var(--transition-timing);
}
.is-visible .animated-text, .is-visible .animated-button, .is-visible .animated-card,
.is-visible .animated-section-title, .is-visible .animated-item { /* Class added by GSAP/ScrollTrigger */
    opacity: 1;
    transform: translateY(0);
}

/* Cookie Consent Popup */
#cookieConsentPopup {
    border-top: var(--border-thickness) solid var(--primary-color) !important;
}
#cookieConsentPopup p {
    font-family: var(--font-family-body);
    font-size: 0.9rem !important;
    color: var(--text-color-light) !important;
}
#cookieConsentPopup #acceptCookieButton {
    font-family: var(--font-family-headings) !important;
    background-color: var(--primary-color) !important;
    color: var(--text-color-dark) !important;
    border-radius: 0 !important;
    border: var(--border-thickness) solid var(--text-color-dark) !important;
    font-weight: 700 !important;
    padding: 8px 18px !important;
    box-shadow: var(--shadow-hard-offset) var(--shadow-hard-offset) 0px var(--text-color-dark);
    transition: all var(--transition-speed) var(--transition-timing);
}
#cookieConsentPopup #acceptCookieButton:hover {
    background-color: var(--primary-color-darker) !important;
    box-shadow: var(--shadow-hard-hover);
    transform: translate(-2px, -2px);
}

/* Utility Classes (example, Bulma has many) */
.skewed-section-top {
    position: relative;
    overflow: hidden; /* Important for skewed pseudo-elements */
}
.skewed-section-top::before {
    content: '';
    position: absolute;
    top: 0;
    left: -5%; /* Extend to avoid gaps */
    width: 110%;
    height: 100px; /* Height of the skew */
    background-color: var(--background-medium); /* Or color of the section below */
    transform: skewY(-3deg); /* Adjust angle */
    transform-origin: top left;
    z-index: 0; /* Behind content */
}
.skewed-section-top > .container {
    position: relative; /* Keep content above skew */
    z-index: 1;
}

/* Specific image centering for certain elements if needed beyond cards */
.image.is-96x96, .image.is-square { /* Bulma image wrappers */
    margin-left: auto;
    margin-right: auto;
}
.image.is-96x96 img.is-rounded,
.image.is-square img.is-rounded { /* If img itself has is-rounded */
    margin-left: auto;
    margin-right: auto;
}
.has-text-centered .image { /* If parent has has-text-centered */
    margin-left: auto;
    margin-right: auto;
}

/* Ensuring correct responsive behavior for Bulma columns */
@media screen and (min-width: 769px) { /* tablet and up */
    .columns.is-centered .column.is-two-thirds {
        flex: none; /* Override Bulma's flex basis if needed */
        width: 66.6666%;
    }
}

/* Ensure content in main element of static pages like privacy/terms is not too wide */
.container.content {
    max-width: 800px; /* Or Bulma's $container-max-width if customized */
    margin-left: auto;
    margin-right: auto;
}