:root {
    --primary-color: #A2D2FF; /* Pastel Blue */
    --secondary-color: #CDB4DB; /* Pastel Lavender/Pink */
    --accent-color: #FFB7B2; /* Pastel Coral/Peach */
    --highlight-color: #FFDAC1; /* Pastel Light Peach for subtle highlights */

    --text-color: #333333;
    --heading-color: #222222;
    --light-text-color: #FFFFFF;
    --subtle-text-color: #555555;
    --link-color: #1E3A8A; /* Darker blue for links, good contrast */
    --link-hover-color: #1c3166;

    --background-color: #FCFDFD;
    --section-bg-light: #F0F5FA; /* For alternating sections like case studies, insights */
    --card-background-color: #FFFFFF;
    --footer-background-color: #2b2b2b;
    --footer-text-color: #E0E0E0;
    --footer-link-color: var(--primary-color);

    --font-primary: 'Playfair Display', serif;
    --font-secondary: 'Source Sans Pro', sans-serif;

    --shadow-light: 0 4px 15px rgba(0, 0, 0, 0.07);
    --shadow-medium: 0 8px 25px rgba(0, 0, 0, 0.1);
    --border-radius-small: 5px;
    --border-radius-medium: 8px;

    --header-height: 70px; /* Adjust if actual header height differs */
}

/* Global Reset & Base Styles */
html {
    scroll-behavior: smooth;
    font-size: 100%; /* Corresponds to 16px by default */
}

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

/* Headings & Text */
h1, h2, h3, h4, h5, h6,
.title, .subtitle { /* Bulma classes */
    font-family: var(--font-primary);
    color: var(--heading-color);
    font-weight: 700; /* Playfair Display typically bold */
    line-height: 1.3;
}

.title.is-1 { font-size: 3rem; }
.title.is-2 { font-size: 2.5rem; margin-bottom: 2rem !important; }
.title.is-3 { font-size: 2rem; }
.title.is-4 { font-size: 1.5rem; }
.title.is-5 { font-size: 1.25rem; }

.subtitle {
    color: var(--subtle-text-color);
    font-family: var(--font-secondary);
    font-weight: 400;
    line-height: 1.5;
}

p {
    margin-bottom: 1.25rem;
    color: var(--text-color);
}

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

/* Sections */
.section {
    padding: 4rem 1.5rem;
    min-height: auto !important; /* Ensure natural height */
}
.section.has-background-light {
    background-color: var(--section-bg-light) !important;
}

/* Background image handling */
[style*="background-image"] {
    background-size: cover !important;
    background-position: center center !important;
    background-repeat: no-repeat !important;
}
/* Hero section uses inline linear-gradient, this is for other potential uses */
.has-background-image-overlay { position: relative; }
.has-background-image-overlay::before {
    content: ''; position: absolute; top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(rgba(0,0,0,0.5), rgba(0,0,0,0.5)); z-index: 1;
}
.has-background-image-overlay > * { position: relative; z-index: 2; }


/* Global Button Styles */
.button, button, input[type="submit"], input[type="button"] {
    font-family: var(--font-secondary);
    font-weight: 600;
    border-radius: var(--border-radius-small);
    padding: 0.8em 1.8em;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    cursor: pointer;
    box-shadow: var(--shadow-light);
    border: 1px solid transparent; /* Base for outlined */
    letter-spacing: 0.5px;
}

.button.is-primary { /* Bulma's primary, used for main CTA in Hero */
    background-color: var(--primary-color) !important;
    color: var(--link-color) !important; /* Text color from HTML */
    border-color: var(--primary-color) !important;
}
.button.is-primary:hover, .button.is-primary:focus {
    background-color: #8cbce6 !important; /* Darker primary */
    border-color: #8cbce6 !important;
    box-shadow: var(--shadow-medium);
    transform: translateY(-3px);
}
.button.is-primary.is-outlined { /* Used for phone in header */
    background-color: transparent !important;
    border-color: var(--primary-color) !important;
    color: var(--primary-color) !important;
}
.button.is-primary.is-outlined:hover, .button.is-primary.is-outlined:focus {
    background-color: var(--primary-color) !important;
    color: var(--link-color) !important;
}


/* Modern Button & Input (Custom classes from HTML) */
.modern-button { /* For contact form submit */
    background-color: var(--primary-color) !important; /* Match hero CTA */
    color: var(--link-color) !important;
    padding: 0.9em 2em !important;
}
.modern-button:hover {
    background-color: #8cbce6 !important;
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(162, 210, 255, 0.45) !important;
}

.modern-input {
    border-radius: var(--border-radius-small) !important;
    border: 1px solid #D1D5DB !important;
    box-shadow: none !important;
    transition: border-color 0.3s ease, box-shadow 0.3s ease !important;
    padding: 0.8em 1em !important;
    font-size: 0.95rem;
}
.modern-input:focus, .modern-input.is-focused, .modern-input:active, .modern-input.is-active {
    border-color: var(--primary-color) !important;
    box-shadow: 0 0 0 0.125em rgba(162, 210, 255, 0.35) !important;
}
textarea.modern-input {
    min-height: 120px;
}

/* Header */
.header.is-fixed-top {
    background-color: var(--card-background-color) !important;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    z-index: 1020; /* High z-index */
    height: var(--header-height);
    transition: background-color 0.3s ease, box-shadow 0.3s ease;
}
.header .navbar-item, .header .navbar-link {
    font-family: var(--font-secondary);
    font-weight: 600;
    color: var(--text-color);
    transition: color 0.3s ease;
    font-size: 0.95rem;
    padding: 0.5rem 1rem; /* Adjust padding for navbar items */
}
.header .navbar-item:hover, .header .navbar-link:hover, .header .navbar-item.is-active {
    background-color: transparent !important;
    color: var(--primary-color) !important;
}
.header .navbar-brand .navbar-item { /* Logo/Brand name */
    font-family: var(--font-primary);
    font-size: 1.6rem !important;
    color: var(--heading-color) !important;
    font-weight: 700;
}
.header .navbar-burger span {
    background-color: var(--heading-color);
    height: 2px; /* Thinner burger lines */
}
/* Ensure navbar items are vertically centered */
.navbar { min-height: var(--header-height); }
.navbar-menu { align-items: stretch; } /* Bulma default */
.navbar-item, .navbar-link { display: flex; align-items: center; }


/* Hero Section */
#hero.hero.is-fullheight {
    /* is-fullheight from Bulma provides min-height: 100vh */
    /* Background image is inline with linear-gradient */
}
#hero .hero-body {
    padding: 3rem 1.5rem; /* Ensure padding */
    display: flex;
    justify-content: center;
    align-items: center;
}
#hero .title.is-1 {
    font-size: clamp(2.5rem, 6vw, 4rem); /* Responsive font size */
    margin-bottom: 1.5rem;
    color: var(--light-text-color) !important;
    text-shadow: 2px 2px 8px rgba(0,0,0,0.5);
}
#hero .subtitle.is-3 {
    font-size: clamp(1.2rem, 3vw, 1.6rem);
    color: var(--light-text-color) !important;
    opacity: 0.95;
    font-weight: 400; /* Source Sans Pro for subtitle */
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    text-shadow: 1px 1px 6px rgba(0,0,0,0.4);
}
#hero .button.is-primary {
    padding: 1em 2.5em; /* Larger CTA button */
    font-size: 1.1rem;
}

/* General Card Styling */
.card {
    background-color: var(--card-background-color);
    border-radius: var(--border-radius-medium);
    box-shadow: var(--shadow-light);
    transition: transform 0.35s cubic-bezier(0.25, 0.8, 0.25, 1), box-shadow 0.35s cubic-bezier(0.25, 0.8, 0.25, 1);
    height: 100%;
    display: flex;
    flex-direction: column;
    /* align-items: center; /* This centers .card-image and .card-content as blocks */
    /* If card-image/card-content are 100% width (typical), this won't be visible. Content within is centered below. */
    overflow: hidden; /* For children with border-radius */
}
.card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-medium);
}

.card .card-image { /* Bulma's .card-image */
    border-top-left-radius: var(--border-radius-medium); /* Match card radius */
    border-top-right-radius: var(--border-radius-medium);
    overflow: hidden; /* Critical for img object-fit and radius */
    width: 100%; /* Ensure it spans the card width */
    position: relative; /* For aspect ratio with Bulma .image */
}
.card .card-image .image-container { /* This is the <figure class="image is-4by3"> in the HTML */
    /* Bulma's .image and .is-XbyY will handle aspect ratio. */
    /* No specific style needed here if Bulma structure is used correctly. */
}
.card .card-image img {
    object-fit: cover;
    width: 100%;
    height: 100%; /* Essential for Bulma aspect ratio containers */
    display: block; /* Removes bottom space under img */
    border-top-left-radius: var(--border-radius-medium);
    border-top-right-radius: var(--border-radius-medium);
}

.card .card-content {
    padding: 1.75rem;
    flex-grow: 1; /* Allow content to fill available space */
    width: 100%; /* Span full width of card */
    text-align: center; /* Center text and inline-block children */
}
.card .card-content .title {
    margin-bottom: 0.75rem;
    font-size: 1.3rem; /* Adjust card title size */
}
.card .card-content .subtitle {
    margin-bottom: 1rem;
    font-size: 0.9rem;
    color: var(--accent-color); /* Use accent for card subtitles */
}
.card .card-content .content p {
    color: var(--subtle-text-color);
    font-size: 0.9rem;
    line-height: 1.6;
}
.card .card-content .content p:last-child {
    margin-bottom: 0;
}

/* "Read more" link style (applied to small outlined buttons in cards) */
.card .button.is-link.is-outlined.is-small {
    color: var(--link-color);
    border-color: var(--link-color);
    font-weight: 600;
    margin-top: 1rem;
    padding: 0.5em 1.2em;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.card .button.is-link.is-outlined.is-small:hover {
    background-color: var(--link-color);
    border-color: var(--link-color);
    color: var(--light-text-color);
}


/* Specific Section Card Types */
.feature-card .card-content { padding-top: 1rem; }
.feature-card .card-image { margin-bottom: 0; }
.feature-card .title.is-4 { margin-top: 1rem; font-size: 1.4rem; }

.testimonial-card .media { align-items: center; }
.testimonial-card .media-left { margin-right: 1rem; }
.testimonial-card .image.is-48x48 img { border-radius: 50%; }
.testimonial-card .media-content { text-align: left; }
.testimonial-card .media-content .title { margin-bottom: 0.15rem; font-size: 1.1rem; }
.testimonial-card .media-content .subtitle { font-size: 0.85rem; color: var(--subtle-text-color); }
.testimonial-card > .card-content > .content { /* Direct child content */
    margin-top: 1rem;
    font-style: italic;
    color: var(--text-color);
    font-size: 1rem;
    text-align: left; /* Testimonials usually left aligned quote */
    padding: 0 0.5rem;
    position: relative;
}
.testimonial-card > .card-content > .content::before {
    content: "“";
    font-family: var(--font-primary);
    font-size: 3rem;
    color: var(--primary-color);
    opacity: 0.5;
    position: absolute;
    left: -0.5rem;
    top: -1rem;
}


/* Awards Section */
#awards .image.is-128x128 {
    margin: 0 auto 0.5rem auto; /* Center the figure */
}
#awards .image.is-128x128 img {
    max-height: 90px;
    width: auto;
    filter: grayscale(30%);
    transition: filter 0.3s ease;
}
#awards .column.is-narrow:hover .image.is-128x128 img {
    filter: grayscale(0%);
}
#awards .title.is-6 { color: var(--heading-color); }
#awards p { color: var(--subtle-text-color); font-size: 0.9rem; }

/* Gallery Section */
#gallery .card { box-shadow: var(--shadow-light); }
#gallery .card .card-image img {
    transition: transform 0.4s cubic-bezier(0.25, 0.8, 0.25, 1), filter 0.4s ease;
    filter: saturate(0.8);
}
#gallery .card:hover .card-image img {
    transform: scale(1.03);
    filter: saturate(1.1);
}

/* Timeline (Careers Section) - Bulma Timeline assumed or basic style */
.timeline { /* If using Bulma Timeline extension, it may have its own classes */
    max-width: 900px;
    margin: 2rem auto;
    position: relative;
}
.timeline.is-centered .timeline-item .timeline-marker {
    background-color: var(--primary-color) !important; /* Custom marker color */
    border: 3px solid var(--background-color) !important;
}
.timeline.is-centered .timeline-item .timeline-marker.is-icon svg {
    fill: var(--light-text-color);
    width: 14px; height: 14px;
}
.timeline.is-centered .timeline-item .timeline-marker.is-primary { /* Last item */
    background-color: var(--accent-color) !important;
}
.timeline.is-centered .timeline-item .timeline-marker.is-primary.is-icon svg {
    fill: var(--light-text-color);
}
.timeline.is-centered .timeline-header {
    background-color: var(--primary-color);
    color: var(--light-text-color);
    font-weight: 600;
}
.timeline.is-centered .timeline-item .timeline-content {
    background-color: var(--card-background-color);
    border-radius: var(--border-radius-small);
    box-shadow: var(--shadow-light);
    padding: 1rem 1.25rem;
}
.timeline.is-centered .timeline-item .timeline-content .heading {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--subtle-text-color);
}
.timeline.is-centered .timeline-item .timeline-content p {
    font-size: 0.9rem;
    color: var(--text-color);
}
.timeline.is-centered::before { /* The central line of Bulma timeline */
    background-color: var(--primary-color) !important;
    opacity: 0.3;
}


/* External Resources Section */
.resource-card { text-align: left; } /* Override card's general text-align: center */
.resource-card .card-content .title a {
    color: var(--link-color);
    font-size: 1.1rem;
}
.resource-card .card-content .title a:hover {
    color: var(--link-hover-color);
    text-decoration: underline;
}
.resource-card .card-content p {
    font-size: 0.85rem;
}


/* Contact Form Box */
.contact-form-box {
    background-color: #ffffff; /* Slightly different from default card for emphasis */
    padding: 2.5rem 3rem;
    border-radius: var(--border-radius-medium);
    box-shadow: var(--shadow-medium);
}
.contact-form-box .label {
    color: var(--heading-color);
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 0.5em;
}

/* Footer */
.footer {
    background-color: var(--footer-background-color) !important;
    color: var(--footer-text-color) !important;
    padding: 4rem 1.5rem 2.5rem !important;
    border-top: 4px solid var(--primary-color);
}
.footer .title {
    color: var(--light-text-color) !important;
    margin-bottom: 1rem;
}
.footer p, .footer li {
    color: var(--footer-text-color);
    font-size: 0.9rem;
    line-height: 1.6;
}
.footer a {
    color: var(--footer-link-color);
    transition: color 0.3s ease, opacity 0.3s ease;
}
.footer a:hover {
    color: var(--light-text-color);
    opacity: 1;
}
.footer .content p { /* Copyright */
    color: var(--footer-text-color) !important;
    font-size: 0.85rem;
    opacity: 0.8;
}
.footer .content p span[style*="color"] { /* Heart icon color */
    filter: brightness(1.2);
}

/* Specific page styling: privacy.html, terms.html */
.content-page-body { /* Add this class to body tag of these pages */
    padding-top: var(--header-height); /* Ensure fixed header doesn't overlap */
}
.content-page-container {
    padding-top: 2rem; /* Additional padding after header body padding */
    padding-bottom: 3rem;
    max-width: 800px; /* Constrain width for readability */
    margin: 0 auto;
}
.content-page-container .title.is-1,
.content-page-container .title.is-2 {
    margin-bottom: 2rem;
    text-align: center;
}
.content-page-container h2, .content-page-container h3 { /* Subheadings within content */
    margin-top: 2.5rem;
    margin-bottom: 1rem;
    font-weight: 600;
}
.content-page-container p, .content-page-container li {
    font-size: 1.05rem;
    line-height: 1.8;
    color: var(--text-color);
}
.content-page-container ul {
    list-style: disc;
    margin-left: 1.5em;
    margin-bottom: 1.5em;
}

/* success.html styling */
.success-page-body { /* Add to body tag of success.html */
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    background-color: var(--background-color);
}
.success-page-container { /* Main container for success page content */
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 2rem;
}
.success-page-container .box {
    padding: 2.5rem 3rem;
    background-color: var(--card-background-color);
    border-radius: var(--border-radius-medium);
    box-shadow: var(--shadow-medium);
    max-width: 500px;
    width: 100%;
}
.success-page-container .icon.is-large svg {
    width: 70px;
    height: 70px;
    fill: #48C774; /* Bulma's success green */
}
.success-page-container .title { margin-bottom: 0.75rem; font-size: 2rem; }
.success-page-container p { font-size: 1.1rem; color: var(--subtle-text-color); }
.success-page-container .button { margin-top: 2rem; }


/* ScrollReveal initial states (JS library handles the animation trigger) */
[data-sr] {
    visibility: hidden;
    opacity: 0;
    transform: translateY(25px) scale(0.98);
    transition: opacity 0.6s cubic-bezier(0.645, 0.045, 0.355, 1),
                transform 0.6s cubic-bezier(0.645, 0.045, 0.355, 1),
                visibility 0.6s cubic-bezier(0.645, 0.045, 0.355, 1);
}
/* When ScrollReveal makes it visible, it often adds inline styles.
   If it adds a class (e.g., 'sr-is-visible'), you can use that:
[data-sr].sr-is-visible {
    visibility: visible;
    opacity: 1;
    transform: translateY(0) scale(1);
}
*/

/* Cookie Popup (Styling for HTML provided popup) */
#cookie-popup p {
    color: #f1f1f1;
    font-size: 0.9rem;
    line-height: 1.5;
}
#cookie-popup #accept-cookie {
    transition: background-color 0.3s ease, transform 0.2s ease;
}
#cookie-popup #accept-cookie:hover {
    background-color: #8cbce6 !important; /* Darker pastel blue */
    transform: scale(1.05);
}

/* Parallax Background (simple CSS version) */
.parallax-background {
    background-attachment: fixed;
}


/* Responsive Adjustments */
@media screen and (max-width: 1023px) { /* Tablet and below */
    .title.is-1 { font-size: 2.5rem; }
    .title.is-2 { font-size: 2rem; }
    .navbar-menu {
        box-shadow: 0 8px 16px rgba(10,10,10,.1);
        border-bottom-left-radius: var(--border-radius-medium);
        border-bottom-right-radius: var(--border-radius-medium);
        padding: 0.5rem 0;
    }
}

@media screen and (max-width: 768px) { /* Mobile */
    .section { padding: 3rem 1rem; }
    #hero .hero-body { padding-top: calc(var(--header-height) + 2rem); } /* Ensure content visible below header */
    .title.is-1 { font-size: 2.2rem; }
    .title.is-2 { font-size: 1.8rem; margin-bottom: 1.5rem !important; }
    #hero .subtitle.is-3 { font-size: 1.1rem; }

    .card .card-content { padding: 1.25rem; }
    .contact-form-box { padding: 2rem 1.5rem; }

    .content-page-body { padding-top: var(--header-height); }
    .content-page-container { padding-top: 1.5rem; }
    .content-page-container p, .content-page-container li { font-size: 1rem; }

    .footer { padding: 3rem 1.5rem 2rem !important; text-align: center; }
    .footer .columns > .column { margin-bottom: 1.5rem; }

    .timeline.is-centered .timeline-item .timeline-content,
    .timeline.is-centered .timeline-item:nth-child(odd) .timeline-item .timeline-content {
        width: calc(100% - 45px) !important; /* From Bulma Timeline */
        margin-left: 0 !important; /* Override potential Bulma Timeline shifts */
        float: none !important; /* Ensure it stacks correctly */
        transform: translateX(30px); /* Adjust to align with line */
        text-align: left !important;
    }
     .timeline.is-centered::before {
        left: 15px !important; /* Adjust line position */
        transform: translateX(0) !important;
    }
    .timeline.is-centered .timeline-item .timeline-marker {
        left: 15px !important; /* Align marker with the line */
        transform: translateX(-50%) !important;
    }
}
*{
    opacity: 1 !important;
}