/* style.css */

:root {
    --primary-color: #3A7D7C; /* Muted Teal/Green - Eco touch */
    --primary-darker-color: #2c5f5e;
    --accent-color: #E0A458;   /* Warm Earthy Orange - Eco touch */
    --accent-darker-color: #c88f4a;

    --text-color: #363636; /* Bulma's default text color, good for neutrality */
    --text-light-color: #555555;
    --heading-color: #222222; /* Darker for strong headings */
    --link-color: var(--primary-color);
    --link-hover-color: var(--primary-darker-color);

    --background-color: #FFFFFF;
    --background-alt-color: #f5f5f5; /* Light gray for alternating sections */
    --card-background-color: #FFFFFF;
    --footer-background-color: #2c3e50; /* Dark neutral for footer */
    --footer-text-color: #ecf0f1;
    --footer-link-color: #bdc3c7;
    --footer-link-hover-color: var(--accent-color);

    --border-color: #dbdbdb; /* Bulma's default border */
    --input-border-color: #cccccc;
    --input-focus-border-color: var(--primary-color);

    --font-heading: 'Inter', sans-serif;
    --font-body: 'IBM Plex Sans', sans-serif;

    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 10px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 20px rgba(0, 0, 0, 0.1);

    --border-radius-sm: 4px;
    --border-radius-md: 6px;

    --transition-smooth: all 0.3s ease-in-out;
    --transition-fast: all 0.2s ease-in-out;
}

/* Global Styles */
html {
    scroll-behavior: smooth;
    font-size: 16px; /* Base font size */
}

body {
    font-family: var(--font-body);
    color: var(--text-color);
    background-color: var(--background-color);
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden; /* Prevent horizontal scroll */
}

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);
}

.subtitle {
    color: var(--text-light-color);
    font-family: var(--font-body); /* Subtitles might look better with body font */
    font-weight: 400;
}

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

a {
    color: var(--link-color);
    text-decoration: none;
    transition: var(--transition-smooth);
}

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

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

/* Bulma Overrides & Enhancements */
.section {
    padding: 4rem 1.5rem; /* Consistent section padding */
}

.section-title {
    margin-bottom: 2.5rem;
    font-size: 2.5rem; /* Adjusted for impact */
    color: var(--heading-color);
    text-shadow: 1px 1px 2px rgba(0,0,0,0.05);
}
@media screen and (max-width: 768px) {
    .section-title {
        font-size: 2rem;
        margin-bottom: 2rem;
    }
    .section {
        padding: 3rem 1rem;
    }
}


/* Button Styles (Global) */
.button, button, input[type="submit"], input[type="button"] {
    font-family: var(--font-body);
    font-weight: 700;
    border-radius: var(--border-radius-sm);
    transition: var(--transition-smooth);
    box-shadow: var(--shadow-sm);
    padding: 0.75em 1.5em; /* Slightly larger padding for modern feel */
    text-transform: uppercase; /* Optional: for a bolder CTA style */
    letter-spacing: 0.5px;
}

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

.button.is-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    color: #fff;
}
.button.is-primary:hover {
    background-color: var(--primary-darker-color);
    border-color: var(--primary-darker-color);
    color: #fff;
}

.button.is-accent { /* Custom accent button */
    background-color: var(--accent-color);
    border-color: var(--accent-color);
    color: #fff;
}
.button.is-accent:hover {
    background-color: var(--accent-darker-color);
    border-color: var(--accent-darker-color);
    color: #fff;
}

.button.is-link {
    color: var(--primary-color);
    background-color: transparent;
    text-decoration: none;
    box-shadow: none;
}
.button.is-link:hover {
    color: var(--primary-darker-color);
    background-color: rgba(0,0,0,0.03);
    text-decoration: underline;
    transform: none;
    box-shadow: none;
}

.button.is-outlined {
    background-color: transparent;
    border-color: var(--primary-color);
    color: var(--primary-color);
    box-shadow: none;
}
.button.is-outlined:hover {
    background-color: var(--primary-color);
    color: #fff;
    transform: none;
    box-shadow: none;
}


/* Header & Navigation */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background-color: rgba(255, 255, 255, 0.95); /* Slight glassmorphism */
    backdrop-filter: blur(5px);
    box-shadow: var(--shadow-md);
    transition: background-color 0.3s ease;
}

.navbar-item, .navbar-link {
    font-family: var(--font-body);
    font-weight: 700;
    color: var(--text-color);
    padding: 0.75rem 1.25rem;
}
.navbar-item:hover, .navbar-link:hover, .navbar-item.is-active {
    background-color: transparent;
    color: var(--primary-color);
}
.navbar-item img {
    max-height: 2.5rem; /* Adjust logo size */
}
.navbar-burger {
    color: var(--text-color);
}
.navbar-burger:hover {
    background-color: rgba(0,0,0,0.03);
}
.navbar-menu.is-active {
    background-color: rgba(255, 255, 255, 0.98); /* Match header */
    box-shadow: 0 8px 16px rgba(0,0,0,0.1);
}


/* Hero Section */
#hero {
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    position: relative;
    color: #FFFFFF;
    /* background-attachment: fixed; /* Simple Parallax */
}
.hero-background-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(rgba(0, 0, 0, 0.55), rgba(0, 0, 0, 0.55));
    z-index: 1;
}
#hero .hero-body {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
}
#hero .title, #hero .subtitle {
    color: #FFFFFF;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.7);
}
#hero .title {
    font-size: 3.5rem;
    font-weight: 700;
}
#hero .subtitle {
    font-size: 1.5rem;
    margin-top: 1rem;
    margin-bottom: 2rem;
}
@media screen and (max-width: 768px) {
    #hero .title {
        font-size: 2.5rem;
    }
    #hero .subtitle {
        font-size: 1.25rem;
    }
}

/* Card Styles */
.card {
    background-color: var(--card-background-color);
    border-radius: var(--border-radius-md);
    box-shadow: var(--shadow-md);
    transition: var(--transition-smooth);
    height: 100%; /* For consistent height in columns */
    display: flex;
    flex-direction: column;
}
.card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.card .card-image { /* Bulma's .card-image */
    border-top-left-radius: var(--border-radius-md);
    border-top-right-radius: var(--border-radius-md);
    overflow: hidden; /* Ensures image respects border radius */
    display: flex; 
    flex-direction: column; 
    align-items: center;
    text-align: center; 
}

.card .card-image .image-container {
    width: 100%;
    height: 220px; /* Fixed height for consistent card image sizes */
    overflow: hidden;
}
.card .card-image .image-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}
.card:hover .card-image .image-container img {
    transform: scale(1.05);
}

.card .card-content {
    padding: 1.5rem;
    flex-grow: 1; /* Allows content to fill space if card heights are equalized */
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}
.card .card-content .title,
.card .card-content .subtitle {
    margin-bottom: 0.75rem;
}
.card .card-content .title.is-4, .card .card-content .title.is-5 {
    line-height: 1.3;
}
.card .card-content p:last-child {
    margin-bottom: 0;
}

/* Feature Section Switch */
.switch[type="checkbox"] + label {
    cursor: pointer;
    font-family: var(--font-body);
}
.switch[type="checkbox"] + label::before {
    border-radius: 1em;
}
.switch[type="checkbox"]:checked + label::before {
    background: var(--primary-color) !important; /* Bulma override */
}
.switch[type="checkbox"]:checked + label::after {
    background: #fff !important; /* Bulma override */
}
#serviceDetailsMoreInfo {
    background-color: var(--background-alt-color);
    padding: 1.5rem;
    border-radius: var(--border-radius-sm);
    margin-top: 1rem;
    border-left: 4px solid var(--primary-color);
}

/* Partners Section */
#partners .column {
    padding: 1rem;
}
#partners .image img {
    max-height: 70px; /* Adjust as needed */
    width: auto;
    margin: 0 auto;
    filter: grayscale(80%);
    opacity: 0.75;
    transition: var(--transition-smooth);
}
#partners .column:hover .image img {
    filter: grayscale(0%);
    opacity: 1;
    transform: scale(1.05);
}
#partners p.mt-2 {
    font-size: 0.9rem;
    color: var(--text-light-color);
    margin-top: 0.5rem;
}

/* Customer Stories Section (Testimonials) */
#customer-stories .card .media-left .image img {
    border-radius: 50%;
    width: 48px; /* Ensure fixed size from HTML is respected */
    height: 48px;
    object-fit: cover;
}
#customer-stories .card .content {
    font-style: italic;
    color: var(--text-light-color);
    border-left: 3px solid var(--accent-color);
    padding-left: 1rem;
    margin-top: 0.5rem;
}

/* Events Section */
.event-card .media-left .image img {
    border-radius: var(--border-radius-sm);
    background-color: var(--primary-color); /* For icons with transparency */
    padding: 8px;
}
.event-card .button.is-link {
    font-weight: bold;
}

/* Press Section */
#press .card-image .image-container { /* Logos might need different aspect ratio */
    height: 100px; /* Adjust for logos */
}
#press .card-image .image-container img {
    object-fit: contain; /* For logos to fit well */
}
#press .card-content .title.is-5 {
    margin-bottom: 0.5rem;
}
#press .card-content .subtitle.is-6 {
    margin-bottom: 1rem;
    color: var(--text-light-color);
}

/* External Resources Section */
.resource-card {
    border-left: 4px solid var(--accent-color);
}
.resource-card .title.is-5 a {
    color: var(--primary-color);
    font-weight: bold;
}
.resource-card .title.is-5 a:hover {
    color: var(--primary-darker-color);
}
.resource-card p:not(.title) {
    font-size: 0.9rem;
    color: var(--text-light-color);
}


/* Contact Form */
#contact .label {
    color: var(--heading-color);
    font-weight: 600;
}
#contact .input, #contact .textarea {
    border-radius: var(--border-radius-sm);
    border: 1px solid var(--input-border-color);
    box-shadow: none; /* Minimalist */
    transition: var(--transition-fast);
}
#contact .input:focus, #contact .textarea:focus {
    border-color: var(--input-focus-border-color);
    box-shadow: 0 0 0 0.125em rgba(58, 125, 124, 0.25); /* Bulma's focus shadow with our primary color */
}
#contact .checkbox label {
    font-size: 0.9rem;
}


/* Footer */
.footer {
    background-color: var(--footer-background-color);
    color: var(--footer-text-color);
    padding: 3rem 1.5rem 3rem; /* Reduced bottom padding as Bulma default is 6rem */
}
.footer a {
    color: var(--footer-link-color);
    font-weight: 500;
}
.footer a:hover {
    color: var(--footer-link-hover-color);
    text-decoration: underline;
}
.footer strong {
    color: #fff; /* Make main company name stand out */
}
.footer .content p {
    color: var(--footer-text-color);
}
.footer .social-links a {
    margin: 0 0.75rem;
    font-size: 1.1rem; /* Slightly larger for social links */
    display: inline-block;
}
.footer .social-links a:hover {
    transform: scale(1.1);
}

/* Animation on Scroll (JS will toggle .is-visible) */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px); /* Non-linear feel with a bit more travel */
    transition: opacity 0.7s cubic-bezier(0.645, 0.045, 0.355, 1), transform 0.7s cubic-bezier(0.645, 0.045, 0.355, 1);
    transition-delay: 0.1s; /* Slight delay for staggered effect if multiple elements */
}
.animate-on-scroll.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* Specific Page Styles */
/* success.html */
body.success-page { /* Add this class to body tag of success.html */
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    text-align: center;
    padding: 2rem;
    background-color: var(--background-alt-color);
}
.success-page .success-container {
    background-color: #fff;
    padding: 3rem;
    border-radius: var(--border-radius-md);
    box-shadow: var(--shadow-lg);
}
.success-page .success-container .icon {
    font-size: 4rem;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
}
.success-page .success-container h1 {
    color: var(--heading-color);
    margin-bottom: 1rem;
}
.success-page .success-container p {
    margin-bottom: 2rem;
}

/* privacy.html, terms.html */
/* Add .page-content-wrapper class to the main content div on these pages */
.page-content-wrapper {
    padding-top: calc(52px + 3rem); /* 52px is Bulma's navbar height, plus some extra space */
    padding-bottom: 3rem;
    min-height: calc(100vh - 150px); /* Ensure content area is substantial */
}
.page-content-wrapper .content h1,
.page-content-wrapper .content h2,
.page-content-wrapper .content h3 {
    margin-top: 2rem;
    margin-bottom: 1rem;
}
.page-content-wrapper .content ul,
.page-content-wrapper .content ol {
    margin-left: 1.5em;
    margin-bottom: 1rem;
}


/* Responsive adjustments */
@media screen and (max-width: 1023px) {
    .navbar-menu {
        padding-bottom: 1rem; /* Space for items in mobile menu */
    }
    .navbar-item {
        padding: 0.5rem 1rem; /* Adjust padding for mobile */
    }
}

@media screen and (max-width: 768px) {
    .columns.is-multiline .column {
        margin-bottom: 1.5rem; /* Ensure cards don't touch */
    }
    .card {
        margin-left: auto;
        margin-right: auto; /* Center cards if column is wider */
    }
    .page-content-wrapper {
        padding-top: calc(52px + 2rem);
    }
}