/* style.css */

/*------------------------------------------------------------------
[Table of Contents]

1. ROOT VARIABLES & GLOBAL STYLES
    - Color Palette
    - Typography
    - Spacing
    - Basic Resets
2. LAYOUT & HELPERS
    - Container
    - Section Styling
    - Utility Classes (Animation)
3. HEADER & NAVIGATION
    - Sticky Header
    - Navbar Styling
    - Burger Menu
4. HERO SECTION
5. CARD STYLES (GENERAL & SPECIFIC)
    - Base Card
    - Pricing Card
    - Team Card
    - Testimonial Card
    - Blog Card
    - Process Card
    - Resource Card
6. BUTTONS & FORMS
    - Global Button Styles
    - Form Element Styles
7. SECTION-SPECIFIC STYLES
    - Methodology
    - Our Process
    - Pricing (Cards styled above)
    - Team (Cards styled above)
    - Testimonials (Cards styled above)
    - Blog (Cards styled above)
    - Media (Logos)
    - External Resources (Cards styled above)
    - Contact
8. FOOTER
9. SPECIFIC PAGE STYLES
    - success.html
    - privacy.html, terms.html
10. ANIMATIONS & TRANSITIONS
    - Microinteractions
    - Scroll Animations
11. RESPONSIVE DESIGN
    - Media Queries
-------------------------------------------------------------------*/

/* 1. ROOT VARIABLES & GLOBAL STYLES */
:root {
    /* Bright Color Palette - Adapt as needed */
    --primary-color: #FF6B6B; /* Lively Coral */
    --primary-color-darker: #E05252;
    --secondary-color: #4ECDC4; /* Medium Aquamarine */
    --accent-color: #FFD166; /* Sunglow Yellow */
    --accent-color-darker: #E6B800;

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

    --background-color: #FDFDFD;
    --background-light-dynamic: linear-gradient(135deg, #F8F9FA 0%, #E9ECEF 100%); /* Subtle light grey gradient */
    --card-background-color: #FFFFFF;
    --footer-background-color: #2C3A47; /* Dark Slate */
    --border-color: #E0E0E0;
    --input-border-color: #DBDBDB; /* Bulma default */
    --input-focus-border-color: var(--primary-color);

    /* Typography */
    --font-heading: 'Space Grotesk', sans-serif;
    --font-body: 'DM Sans', sans-serif;

    /* Spacing */
    --spacing-unit: 1rem; /* Approx 16px */
    --navbar-height: 52px; /* Bulma default, adjust if custom */
}

html {
    scroll-behavior: smooth;
    font-size: 16px; /* Base font size */
    overflow-x: hidden; /* Prevent horizontal scroll */
}

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

.site-wrapper {
    overflow-x: hidden; /* Ensure no horizontal overflow from animations */
}

/* Basic Resets & Bulma Overrides */
h1, h2, h3, h4, h5, h6, .title, .subtitle {
    font-family: var(--font-heading);
    color: var(--heading-color);
    font-weight: 700;
}

.title {
    color: var(--heading-color); /* Ensure titles are dark for contrast */
}

.section-title {
    margin-bottom: calc(var(--spacing-unit) * 2.5); /* More space below section titles */
    color: var(--heading-color);
    text-shadow: 1px 1px 2px rgba(0,0,0,0.1); /* Subtle shadow for depth */
}

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

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

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

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

/* Ensure Bulma container doesn't get too wide on very large screens */
.container {
    max-width: 1180px; /* Or 1344px for widescreen support */
    margin-left: auto;
    margin-right: auto;
}

/* 2. LAYOUT & HELPERS */
.section {
    padding: calc(var(--spacing-unit) * 3) calc(var(--spacing-unit) * 1.5);
}

@media screen and (min-width: 769px) {
    .section {
        padding: calc(var(--spacing-unit) * 4) calc(var(--spacing-unit) * 1.5);
    }
}

.content-section { /* Added for more consistent padding within sections if needed */
    padding-top: var(--spacing-unit);
    padding-bottom: var(--spacing-unit);
}

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

.sticky-header {
    position: sticky;
    top: 0;
    z-index: 1000; /* Ensure header is above other content */
    background-color: rgba(255, 255, 255, 0.9); /* Semi-transparent white */
    backdrop-filter: blur(10px); /* Glassmorphism effect for supported browsers */
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}


/* 3. HEADER & NAVIGATION */
.header .navbar {
    min-height: var(--navbar-height);
}

.header .navbar-item, .header .navbar-link {
    font-family: var(--font-body);
    font-weight: 500;
    color: var(--text-color);
    transition: color 0.3s ease, background-color 0.3s ease;
}

.header .navbar-item:hover, .header .navbar-link:hover {
    color: var(--primary-color);
    background-color: transparent; /* Override Bulma's default hover */
}

.header .navbar-item.logo-text {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
}

.navbar-burger {
    color: var(--text-color);
}

.navbar-burger span {
    background-color: var(--text-color);
}

/* Active link styling (example, might need JS to set 'is-active') */
.navbar-item.is-active {
    color: var(--primary-color);
    font-weight: 700;
}


/* 4. HERO SECTION */
#hero.hero {
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    color: var(--text-color-light); /* Ensures text on hero is white */
}

#hero .hero-title {
    font-size: 3rem; /* Adjust as needed */
    font-weight: 700;
    margin-bottom: var(--spacing-unit);
    color: var(--text-color-light); /* Explicitly white */
    text-shadow: 2px 2px 8px rgba(0,0,0,0.7);
}

#hero .hero-subtitle {
    font-size: 1.5rem; /* Adjust as needed */
    margin-bottom: calc(var(--spacing-unit) * 2);
    color: var(--text-color-light); /* Explicitly white */
    text-shadow: 1px 1px 6px rgba(0,0,0,0.6);
}

@media screen and (min-width: 769px) {
    #hero .hero-title {
        font-size: 4rem;
    }
    #hero .hero-subtitle {
        font-size: 1.75rem;
    }
}


/* 5. CARD STYLES */
.card {
    background-color: var(--card-background-color);
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    height: 100%; /* Make cards in a row same height */
    overflow: hidden; /* Ensures content respects border-radius */
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}

.card .card-image { /* Container for image */
    display: flex; /* For centering if needed */
    justify-content: center; /* Center image if it's smaller than container */
    align-items: center; /* Center image vertically if needed */
    overflow: hidden; /* Important for object-fit */
    position: relative; /* For potential overlays */
}

.card .card-image .image-container { /* Strict: extra div for image centering */
    width: 100%; /* Ensure it spans the card width */
    display: flex;
    justify-content: center;
    align-items: center;
}

.card .card-image img {
    width: 100%;
    object-fit: cover; /* Ensures image covers the area without distortion */
    border-top-left-radius: 8px;
    border-top-right-radius: 8px;
    transition: transform 0.3s ease;
}

.card:hover .card-image img {
    transform: scale(1.05); /* Subtle zoom on hover */
}

.card .card-content {
    padding: calc(var(--spacing-unit) * 1.5);
    text-align: left; /* Default text align */
    flex-grow: 1; /* Allows card content to expand and push footer down */
    display: flex;
    flex-direction: column;
}

.card .card-content .title, .card .card-content .subtitle {
    margin-bottom: calc(var(--spacing-unit) * 0.75);
}

.card .card-content .content {
    flex-grow: 1; /* Pushes actions/footer to bottom of content area */
}

/* Specific Card Types */
.pricing-card .card-header-title {
    font-size: 1.25rem;
    justify-content: center;
    color: var(--heading-color);
    background-color: transparent; /* Ensure no Bulma default BG */
    border-bottom: 1px solid var(--border-color);
}

.pricing-card .price-tag {
    color: var(--primary-color);
    margin-top: var(--spacing-unit);
}

.pricing-card .card-footer-item {
    font-weight: bold;
    color: var(--primary-color);
    transition: background-color 0.3s ease, color 0.3s ease;
}
.pricing-card .card-footer-item:hover {
    background-color: var(--primary-color);
    color: var(--text-color-light);
}


.team-card {
    text-align: center; /* Center content within team card */
}
.team-card .card-image .image-container { /* Ensure team images are centered */
    margin: 0 auto; /* Center image container if it has fixed width */
}
.team-card .card-image img { /* Team images are often square */
    aspect-ratio: 1 / 1;
    border-radius: 50%; /* Circular team member photos */
    width: 150px; /* Fixed size for team images */
    height: 150px;
    margin: var(--spacing-unit) auto; /* Center image and add space */
    object-fit: cover;
    border: 3px solid var(--accent-color);
}
.team-card .card-content {
    text-align: center;
}
.team-card .card-content .title {
    margin-bottom: 0.25rem;
}
.team-card .card-content .subtitle {
    margin-bottom: 0.5rem;
    color: var(--secondary-color);
}


.testimonial-card .media-left img {
    width: 64px;
    height: 64px;
    object-fit: cover;
}
.testimonial-card .content {
    font-style: italic;
}


.blog-card .card-image img {
    aspect-ratio: 3 / 2; /* Common aspect ratio for blog images */
}
.blog-card .card-content .title {
    font-size: 1.2rem;
    line-height: 1.3;
}
.blog-card .card-content .subtitle {
    font-size: 0.85rem;
    color: #777;
}
.blog-card .read-more {
    display: inline-block;
    margin-top: calc(var(--spacing-unit) * 0.75);
    font-weight: bold;
    color: var(--secondary-color);
    text-decoration: none;
}
.blog-card .read-more:hover {
    color: var(--primary-color);
    text-decoration: underline;
}


.process-card {
    text-align: center;
    background: linear-gradient(145deg, var(--card-background-color), #e9ecef);
}
.process-card .card-content .title {
    color: var(--secondary-color);
}


.resource-card .card-content .title a {
    font-size: 1.1rem;
    color: var(--secondary-color);
}
.resource-card .card-content .title a:hover {
    color: var(--primary-color);
}


/* 6. BUTTONS & FORMS */
/* Global Button Styles */
.button, button, input[type="submit"], input[type="button"] {
    font-family: var(--font-body);
    font-weight: 500;
    border-radius: 25px; /* Pill-shaped buttons */
    padding: calc(var(--spacing-unit) * 0.75) calc(var(--spacing-unit) * 1.75);
    transition: background-color 0.3s ease, color 0.3s ease, transform 0.2s ease, box-shadow 0.3s ease;
    border: none; /* Remove default border */
    cursor: pointer;
    text-decoration: none; /* For <a> styled as button */
    display: inline-block; /* For <a> styled as button */
    text-align: center;
}

.button.is-primary {
    background-color: var(--primary-color);
    color: var(--text-color-light);
}
.button.is-primary:hover {
    background-color: var(--primary-color-darker);
    color: var(--text-color-light);
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0,0,0,0.15);
}

.button.is-secondary {
    background-color: var(--secondary-color);
    color: var(--text-color-light);
}
.button.is-secondary:hover {
    background-color: #3ABCA1; /* Darker secondary */
    color: var(--text-color-light);
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0,0,0,0.15);
}

.button.is-accent {
    background-color: var(--accent-color);
    color: var(--text-color); /* Accent might need dark text for contrast */
}
.button.is-accent:hover {
    background-color: var(--accent-color-darker);
    color: var(--text-color);
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0,0,0,0.15);
}

.button.is-large {
    font-size: 1.25rem; /* Bulma default, can adjust */
    padding: var(--spacing-unit) calc(var(--spacing-unit) * 2);
}

/* Form Element Styles */
.field .label {
    font-family: var(--font-heading);
    font-weight: 600;
    color: var(--text-color);
    margin-bottom: calc(var(--spacing-unit) * 0.5);
}

.input, .textarea {
    font-family: var(--font-body);
    border-radius: 6px;
    border: 1px solid var(--input-border-color);
    box-shadow: inset 0 1px 2px rgba(0,0,0,0.075);
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.input:focus, .textarea:focus {
    border-color: var(--input-focus-border-color);
    box-shadow: 0 0 0 0.125em rgba(var(--primary-color), 0.25); /* Use RGB if var() doesn't work in rgba */
}

/* 7. SECTION-SPECIFIC STYLES */

/* Methodology Section */
#methodology .is-size-5 {
    line-height: 1.7;
}
#methodology figure img {
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

/* Media Section (Logos) */
#media .media-logos img {
    max-height: 60px; /* Control logo height */
    width: auto;
    margin: 0 auto; /* Center logos within columns */
    filter: grayscale(100%);
    opacity: 0.7;
    transition: filter 0.3s ease, opacity 0.3s ease;
}
#media .media-logos img:hover {
    filter: grayscale(0%);
    opacity: 1;
}

/* Contact Section */
#contact .column.is-two-thirds { /* Ensure form column is wide enough */
    /* Bulma handles this with is-two-thirds */
}
#contact .column:not(.is-two-thirds) p { /* Contact details column */
    margin-bottom: calc(var(--spacing-unit) * 0.5);
}
#contact .column:not(.is-two-thirds) a {
    word-break: break-all; /* Prevent long emails/links from breaking layout */
}


/* 8. FOOTER */
.footer {
    background-color: var(--footer-background-color);
    color: var(--text-color-light);
    padding: calc(var(--spacing-unit) * 3) calc(var(--spacing-unit) * 1.5);
}

.footer .title.footer-title {
    color: var(--text-color-light);
    font-size: 1.2rem;
    margin-bottom: var(--spacing-unit);
}

.footer p, .footer li {
    color: #BDC3C7; /* Lighter grey for footer text */
    font-size: 0.95rem;
}

.footer a {
    color: var(--accent-color);
    transition: color 0.3s ease;
}

.footer a:hover {
    color: var(--text-color-light);
    text-decoration: underline;
}

.footer ul {
    list-style: none;
    margin-left: 0;
}

.footer ul li {
    margin-bottom: calc(var(--spacing-unit) * 0.5);
}

.footer .copyright {
    margin-top: calc(var(--spacing-unit) * 2);
    padding-top: calc(var(--spacing-unit) * 1.5);
    border-top: 1px solid #4A5568; /* Slightly lighter border within footer */
    color: #A0AEC0; /* Even lighter for copyright */
    font-size: 0.9rem;
}


/* 9. SPECIFIC PAGE STYLES */
/* success.html */
.success-page-container {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    text-align: center;
    padding: var(--spacing-unit);
    background: var(--background-light-dynamic);
}
.success-page-container .card {
    max-width: 500px;
    width: 100%;
}
.success-page-container .title {
    color: var(--secondary-color);
}

/* privacy.html, terms.html */
.legal-page-content {
    padding-top: calc(var(--navbar-height) + var(--spacing-unit) * 2); /* Ensure content is below sticky header */
    padding-bottom: calc(var(--spacing-unit) * 3);
}
.legal-page-content .container {
    background-color: var(--card-background-color);
    padding: calc(var(--spacing-unit) * 2);
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
}
.legal-page-content h1.title {
    margin-bottom: calc(var(--spacing-unit) * 1.5);
}
.legal-page-content h2.subtitle, .legal-page-content h3.title {
    margin-top: calc(var(--spacing-unit) * 2);
    margin-bottom: var(--spacing-unit);
    color: var(--secondary-color);
}


/* 10. ANIMATIONS & TRANSITIONS */
/* For elements animated on scroll by JavaScript */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.animate-on-scroll.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* Simple text reveal for hero */
.animate-text-reveal {
    opacity: 0;
    transform: translateY(20px);
    animation: textReveal 0.8s 0.2s forwards cubic-bezier(0.2, 0.8, 0.2, 1);
}
.animate-text-reveal-delayed {
    opacity: 0;
    transform: translateY(20px);
    animation: textReveal 0.8s 0.5s forwards cubic-bezier(0.2, 0.8, 0.2, 1);
}
.animate-button-pop {
    opacity: 0;
    transform: scale(0.8);
    animation: buttonPop 0.6s 0.8s forwards cubic-bezier(0.2, 0.8, 0.2, 1.2);
}

@keyframes textReveal {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
@keyframes buttonPop {
    to {
        opacity: 1;
        transform: scale(1);
    }
}


/* 11. RESPONSIVE DESIGN */
@media screen and (max-width: 1023px) { /* Tablet and below */
    .navbar-menu {
        background-color: rgba(255, 255, 255, 0.98); /* Solid BG for mobile menu */
        box-shadow: 0 8px 16px rgba(10,10,10,.1);
        padding: 0.5rem 0;
    }
    .navbar-item {
        padding: 0.75rem 1rem;
    }
}

@media screen and (max-width: 768px) { /* Mobile */
    .section {
        padding: calc(var(--spacing-unit) * 2) var(--spacing-unit);
    }
    #hero .hero-title {
        font-size: 2.2rem;
    }
    #hero .hero-subtitle {
        font-size: 1.2rem;
    }
    .button.is-large {
        font-size: 1.1rem;
    }

    .columns.is-multiline .column {
        margin-bottom: var(--spacing-unit); /* Add space between stacked columns */
    }

    /* Ensure contact form input groups stack nicely */
    #contact .field:not(:last-child) {
        margin-bottom: calc(var(--spacing-unit) * 0.75);
    }
}