/* style.css */

/* CSS Variables */
:root {
    /* Analogous Color Scheme with Eco-Minimalism Tones */
    --clr-primary: #4A7C59; /* Calm, natural green */
    --clr-primary-analogous-1: #426E7A; /* Slightly Bluer Green */
    --clr-primary-analogous-2: #5D8A4B; /* Slightly Yellower Green */
    --clr-accent: #6AB04C; /* Vibrant green for CTAs and highlights */
    --clr-accent-dark: #5a9a3f; /* Darker accent for hover */

    /* Neutral Colors */
    --clr-text-dark: #222222; /* For high contrast on light backgrounds */
    --clr-text-light: #FFFFFF; /* For high contrast on dark backgrounds */
    --clr-text-medium: #555555; /* For secondary text */
    --clr-bg-light: #FDFEFC; /* Very light, almost white */
    --clr-bg-medium: #E8F0E9; /* Light muted green for subtle backgrounds */
    --clr-bg-dark-overlay: rgba(0, 0, 0, 0.5); /* Overlay for images with text */
    --clr-border: #DDE2DB; /* Light border color */

    /* Glassmorphism */
    --glass-bg-color: rgba(255, 255, 255, 0.1);
    --glass-bg-color-darker: rgba(0, 0, 0, 0.1); /* For cards on lighter backgrounds */
    --glass-border-color: rgba(255, 255, 255, 0.2);
    --glass-blur: 10px;
    --glass-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.17);

    /* Typography */
    --font-heading: 'Montserrat', sans-serif;
    --font-body: 'Merriweather', serif;

    /* Spacing & Layout */
    --spacing-unit: 1rem; /* 16px */
    --container-max-width: 1140px;
    --header-height: 80px;

    /* Borders & Shadows */
    --border-radius-small: 4px;
    --border-radius-medium: 8px;
    --border-radius-large: 16px;
    --box-shadow-light: 0 2px 10px rgba(0, 0, 0, 0.05);
    --box-shadow-medium: 0 4px 15px rgba(0, 0, 0, 0.1);

    /* Transitions */
    --transition-speed-fast: 0.2s;
    --transition-speed-normal: 0.3s;
    --transition-timing: ease-in-out;
}

/* Global Styles & Resets */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 100%; /* 16px */
}

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

.page-wrapper {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.main-content {
    flex-grow: 1;
}

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

.title {
    margin-bottom: calc(var(--spacing-unit) * 1.5);
}
.subtitle {
    color: var(--clr-text-medium);
    font-weight: 400;
}

.section-title {
    color: var(--clr-text-dark); /* Enforce dark color for section titles */
    text-shadow: none; /* Remove any potential light text shadows */
    margin-bottom: calc(var(--spacing-unit) * 3);
    font-weight: 700;
}

.card-title {
    color: var(--clr-text-dark);
    margin-bottom: var(--spacing-unit);
}

/* Paragraphs & Content */
p, .content p {
    font-family: var(--font-body);
    margin-bottom: var(--spacing-unit);
    color: var(--clr-text-medium);
}
.content ul, .content ol {
     font-family: var(--font-body);
     color: var(--clr-text-medium);
     margin-left: calc(var(--spacing-unit) * 1.5);
     margin-bottom: var(--spacing-unit);
}
.content li {
    margin-bottom: calc(var(--spacing-unit) / 2);
}

/* Links */
a {
    color: var(--clr-primary);
    text-decoration: none;
    transition: color var(--transition-speed-fast) var(--transition-timing);
}

a:hover, a:focus {
    color: var(--clr-accent);
    text-decoration: underline;
}

/* Buttons - Global Styles */
.button.custom-button,
button.custom-button {
    font-family: var(--font-heading);
    background-color: var(--clr-accent);
    color: var(--clr-text-light) !important; /* Ensure text is light */
    border: 2px solid var(--clr-accent);
    border-radius: var(--border-radius-medium);
    padding: calc(var(--spacing-unit) * 0.75) calc(var(--spacing-unit) * 1.5);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: background-color var(--transition-speed-normal) var(--transition-timing),
                transform var(--transition-speed-fast) var(--transition-timing),
                box-shadow var(--transition-speed-normal) var(--transition-timing);
    box-shadow: var(--box-shadow-light);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.button.custom-button .icon img,
button.custom-button .icon img {
    filter: brightness(0) invert(1); /* Make SVG icons white if they are dark */
    margin-right: calc(var(--spacing-unit) / 2);
}

.button.custom-button:hover,
button.custom-button:hover {
    background-color: var(--clr-accent-dark);
    border-color: var(--clr-accent-dark);
    transform: translateY(-2px);
    box-shadow: var(--box-shadow-medium);
    color: var(--clr-text-light) !important;
}

.button.custom-button:focus,
button.custom-button:focus {
    outline: 2px solid var(--clr-accent-dark);
    outline-offset: 2px;
}

.button.custom-button.is-primary { /* Bulma specific */
    background-color: var(--clr-accent);
    border-color: var(--clr-accent);
}
.button.custom-button.is-primary:hover {
    background-color: var(--clr-accent-dark);
    border-color: var(--clr-accent-dark);
}

.button.is-link.is-outlined.custom-button { /* For "Read More" style links */
    background-color: transparent;
    border-color: var(--clr-primary);
    color: var(--clr-primary) !important;
    font-weight: bold;
    text-transform: none;
    letter-spacing: normal;
}

.button.is-link.is-outlined.custom-button:hover {
    background-color: var(--clr-primary);
    color: var(--clr-text-light) !important;
    border-color: var(--clr-primary);
    transform: none;
    box-shadow: none;
}


/* Header & Navigation */
.header {
    position: sticky;
    top: 0;
    z-index: 1000;
    width: 100%;
    background-color: var(--clr-bg-light); /* Solid for eco-minimalism, glass for sections */
    box-shadow: var(--box-shadow-light);
}

.glassmorphic-nav .navbar {
    background-color: var(--glass-bg-color);
    backdrop-filter: blur(var(--glass-blur));
    -webkit-backdrop-filter: blur(var(--glass-blur));
    border-bottom: 1px solid var(--glass-border-color);
    min-height: var(--header-height);
}
.navbar {
    min-height: var(--header-height);
}

.site-title {
    font-family: var(--font-heading);
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--clr-primary) !important;
}
.site-title:hover {
    color: var(--clr-accent) !important;
}

.navbar-item {
    font-family: var(--font-heading);
    color: var(--clr-text-dark);
    font-weight: 500;
    transition: color var(--transition-speed-fast) var(--transition-timing);
    padding: 0.5rem 1rem;
}

.navbar-item:hover,
.navbar-item.is-active {
    background-color: transparent !important; /* Override Bulma */
    color: var(--clr-accent) !important;
}

.navbar-burger {
    color: var(--clr-primary);
    height: var(--header-height); /* Align with navbar height */
    width: var(--header-height);
}
.navbar-burger span {
    background-color: var(--clr-primary);
    height: 2px;
    transition: transform var(--transition-speed-normal) var(--transition-timing),
                opacity var(--transition-speed-normal) var(--transition-timing);
}
.navbar-burger.is-active span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}
.navbar-burger.is-active span:nth-child(2) {
    opacity: 0;
}
.navbar-burger.is-active span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

@media screen and (max-width: 1023px) {
    .navbar-menu {
        background-color: rgba(253, 254, 252, 0.95); /* Almost solid with slight transparency */
        backdrop-filter: blur(5px);
        -webkit-backdrop-filter: blur(5px);
        box-shadow: 0 8px 16px rgba(0,0,0,0.1);
        padding: var(--spacing-unit);
        border-radius: 0 0 var(--border-radius-medium) var(--border-radius-medium);
    }
    .navbar-menu .navbar-item {
        padding: var(--spacing-unit);
        border-bottom: 1px solid var(--clr-border);
    }
    .navbar-menu .navbar-item:last-child {
        border-bottom: none;
    }
    .navbar-menu .buttons .button {
        width: 100%;
        margin-top: var(--spacing-unit);
    }
}


/* Hero Section */
.hero-section {
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    position: relative; /* For overlay */
}

.hero-section::before { /* Dark overlay for text readability */
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, rgba(0,0,0,0.3), rgba(0,0,0,0.6));
    z-index: 1;
}

.hero-section .hero-body {
    position: relative; /* To be above the overlay */
    z-index: 2;
    padding: calc(var(--spacing-unit) * 4) calc(var(--spacing-unit) * 1.5);
}

.hero-title {
    color: var(--clr-text-light) !important; /* IMPORTANT for readability */
    font-size: 2.8rem; /* Responsive font size */
    margin-bottom: var(--spacing-unit);
    text-shadow: 1px 1px 3px rgba(0,0,0,0.7);
}

.hero-subtitle {
    color: var(--clr-text-light) !important; /* IMPORTANT for readability */
    font-size: 1.25rem;
    margin-bottom: calc(var(--spacing-unit) * 2);
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.6);
}

.hero-section .button.custom-button {
    margin-top: var(--spacing-unit);
}

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


/* General Card Styling (Glassmorphism & Eco-Minimalism) */
.card.glassmorphic-card {
    background: var(--glass-bg-color-darker); /* Slightly darker for contrast on light page bg */
    border-radius: var(--border-radius-large);
    border: 1px solid var(--glass-border-color);
    box-shadow: var(--glass-shadow);
    backdrop-filter: blur(var(--glass-blur));
    -webkit-backdrop-filter: blur(var(--glass-blur));
    transition: transform var(--transition-speed-normal) var(--transition-timing),
                box-shadow var(--transition-speed-normal) var(--transition-timing);
    overflow: hidden; /* Important for border-radius on images */
    display: flex;
    flex-direction: column;
    height: 100%; /* Ensure cards in a row have same height if content differs */
}

.card.glassmorphic-card:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.2);
}

.card .card-image { /* Bulma's card-image */
    position: relative; /* For potential overlays or absolutely positioned elements */
}
.card .card-image .image-container { /* Custom container for fixed height and object-fit */
    width: 100%;
    height: 200px; /* Fixed height for image containers in cards */
    overflow: hidden; /* Clip image to container bounds */
    display: flex; /* For centering image if not 100% width/height */
    align-items: center;
    justify-content: center;
}
.card .card-image .image-container img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Cover the container, might crop */
    display: block; /* Remove extra space below image */
    transition: transform var(--transition-speed-normal) var(--transition-timing);
}
.card.glassmorphic-card:hover .card-image .image-container img {
    transform: scale(1.05);
}

.card .card-content {
    padding: calc(var(--spacing-unit) * 1.5);
    flex-grow: 1; /* Allows content to expand and push footer/buttons down */
    display: flex;
    flex-direction: column;
}
.card .card-content .content {
    font-size: 0.95rem;
    flex-grow: 1; /* Push buttons to bottom */
}
.card .card-content .content p:last-child {
    margin-bottom: 0;
}
.card .card-content .button {
    margin-top: auto; /* Push button to the bottom of card content */
    align-self: flex-start; /* Default, can be centered too */
}


/* Sections General Padding */
.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);
    }
}

/* Features Section */
.features-section .feature-card .card-title {
    color: var(--clr-primary);
}
.features-section .feature-card .card-content .content {
    min-height: 120px; /* Example to give some consistent text block height */
}

/* Insights Section */
.insights-section .insight-card .card-image .image-container {
    height: 225px; /* Specific height for insight images */
}
.insights-section .button.is-link.is-outlined { /* Read More button styling */
    margin-top: var(--spacing-unit);
    align-self: flex-start;
}

/* Customer Stories Section */
.customer-stories-section .story-card .media-left .image-container {
    width: 96px;
    height: 96px;
    border-radius: 50%;
    overflow: hidden;
}
.customer-stories-section .story-card .media-left .image-container img {
    border-radius: 50%;
}
.customer-stories-section .story-card .media-content .title {
    margin-bottom: 0.25rem;
}
.customer-stories-section .story-card .media-content .subtitle {
    color: var(--clr-primary-analogous-1);
}
.customer-stories-section .story-card .content {
    font-style: italic;
    padding-top: var(--spacing-unit);
    border-top: 1px solid var(--clr-border);
    margin-top: var(--spacing-unit);
}

/* External Resources Section */
.external-resources-section .resource-card {
    background-color: var(--clr-bg-medium); /* Slightly different background */
    border: none;
    box-shadow: var(--box-shadow-light);
}
.external-resources-section .resource-card .title a {
    color: var(--clr-primary);
}
.external-resources-section .resource-card .title a:hover {
    color: var(--clr-accent);
}

/* Pricing Section */
.pricing-section .pricing-card {
    text-align: center;
}
.pricing-section .pricing-card .price-tag {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--clr-accent);
    margin: var(--spacing-unit) 0;
}
.pricing-section .pricing-card ul {
    list-style: none;
    margin-left: 0;
    margin-bottom: calc(var(--spacing-unit) * 1.5);
}
.pricing-section .pricing-card ul li {
    padding: calc(var(--spacing-unit) / 3) 0;
    border-bottom: 1px dashed var(--clr-border);
}
.pricing-section .pricing-card ul li:last-child {
    border-bottom: none;
}
.pricing-section .popular-plan {
    border: 2px solid var(--clr-accent);
    box-shadow: 0 0 20px rgba(var(--clr-accent), 0.3);
    transform: scale(1.05); /* Make popular plan slightly larger */
    position: relative;
}
.pricing-section .popular-plan .corner-ribbon {
    position: absolute;
    top: -1px; /* Adjust as needed */
    right: -1px;
    width: 100px; /* Adjust size */
    height: 100px;
    overflow: hidden;
}
.pricing-section .popular-plan .corner-ribbon span {
    position: absolute;
    display: block;
    width: 150px; /* Adjust size */
    padding: 8px 0;
    background-color: var(--clr-accent);
    color: var(--clr-text-light);
    font-size: 0.8rem;
    font-weight: bold;
    text-align: center;
    transform: rotate(45deg) translateY(-20px) translateX(30px); /* Adjust positioning */
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}


/* Community Section */
.community-section .image-container {
    border-radius: var(--border-radius-medium);
    overflow: hidden;
    box-shadow: var(--box-shadow-medium);
}
.community-section .gallery-placeholder .image-container {
    border-radius: var(--border-radius-small);
    height: 150px; /* Fixed height for gallery items */
}
.community-section .gallery-placeholder .image-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Careers Section */
.careers-section .image-container {
    border-radius: var(--border-radius-medium);
    overflow: hidden;
    box-shadow: var(--box-shadow-medium);
}
.careers-section ul {
    margin-bottom: calc(var(--spacing-unit) * 1.5);
}
.careers-section ul li {
    font-weight: 500;
}

/* Contact CTA Section */
.contact-cta-section {
    background-color: var(--clr-bg-medium);
}

/* Contact Page Specifics */
.contact-section .contact-form-card {
    padding: calc(var(--spacing-unit) * 0.5); /* Less padding to not double up with card-content */
}
.contact-section .label {
    color: var(--clr-text-dark);
    font-weight: 600;
}
.contact-section .input.custom-input,
.contact-section .textarea.custom-textarea {
    border-radius: var(--border-radius-small);
    border: 1px solid var(--clr-border);
    box-shadow: var(--box-shadow-light);
    font-family: var(--font-body);
    padding: calc(var(--spacing-unit) * 0.75);
    transition: border-color var(--transition-speed-normal) var(--transition-timing),
                box-shadow var(--transition-speed-normal) var(--transition-timing);
}
.contact-section .input.custom-input:focus,
.contact-section .textarea.custom-textarea:focus {
    border-color: var(--clr-primary);
    box-shadow: 0 0 0 0.125em rgba(var(--clr-primary), 0.25); /* Bulma-like focus */
}
.contact-section .checkbox label {
    font-family: var(--font-body);
    color: var(--clr-text-medium);
}
.contact-section .image-container img {
    border-radius: var(--border-radius-medium);
}

/* Footer */
.site-footer {
    background-color: var(--clr-text-dark);
    color: var(--clr-bg-light);
    padding: calc(var(--spacing-unit) * 3) calc(var(--spacing-unit) * 1.5);
    font-family: var(--font-body);
}
.site-footer .footer-title {
    color: var(--clr-text-light);
    font-family: var(--font-heading);
    margin-bottom: var(--spacing-unit);
}
.site-footer .content,
.site-footer p {
    color: #bdc3c7; /* Lighter gray for footer text */
    font-size: 0.9rem;
}
.site-footer a {
    color: var(--clr-accent);
    transition: color var(--transition-speed-fast) var(--transition-timing);
}
.site-footer a:hover {
    color: var(--clr-text-light);
    text-decoration: underline;
}
.site-footer ul {
    list-style: none;
    margin-left: 0;
}
.site-footer .social-links li {
    display: inline-block; /* Or use flex */
    margin-right: var(--spacing-unit);
}
.site-footer .social-links li a { /* Text-based social links */
    font-size: 0.9rem;
    font-weight: 500;
}
.site-footer .content.has-text-centered p {
    margin-top: calc(var(--spacing-unit) * 2);
    font-size: 0.85rem;
    border-top: 1px solid #444;
    padding-top: var(--spacing-unit);
}

/* Success Page */
.success-section.section { /* Ensure it uses the .section base padding */
    min-height: calc(100vh - var(--header-height) - 150px); /* Approximate footer height */
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}
.success-section .success-icon-container img {
    animation: popIn 0.5s var(--transition-timing) forwards;
}
@keyframes popIn {
    0% { transform: scale(0.5); opacity: 0; }
    100% { transform: scale(1); opacity: 1; }
}

/* Policy Pages (Privacy, Terms) */
.policy-section .container .content {
    padding-top: var(--header-height); /* Prevent overlap with fixed header */
}
.policy-section h1.section-title {
    margin-top: 0; /* Adjust if padding-top on content is enough */
}
.policy-section h2.section-subtitle, .policy-section h3.title {
    margin-top: calc(var(--spacing-unit) * 2);
    margin-bottom: var(--spacing-unit);
    color: var(--clr-primary);
}


/* Animated Icons (Example - simple pulse for attention) */
.animated-icon.pulse {
    animation: pulseAnimation 1.5s infinite var(--transition-timing);
}
@keyframes pulseAnimation {
    0% { transform: scale(1); }
    50% { transform: scale(1.1); }
    100% { transform: scale(1); }
}

/* Microinteractions for form elements (already covered by focus states) */
/* Microinteractions for buttons (already covered by hover states) */

/* Responsive Adjustments for smaller screens */
@media screen and (max-width: 768px) {
    .hero-title {
        font-size: 2.2rem;
    }
    .hero-subtitle {
        font-size: 1.1rem;
    }
    .section {
        padding: calc(var(--spacing-unit) * 2) var(--spacing-unit);
    }
    .section-title {
        font-size: 1.8rem;
        margin-bottom: calc(var(--spacing-unit) * 2);
    }
    .columns.is-multiline .column {
        margin-bottom: var(--spacing-unit); /* Add some space between stacked columns */
    }
    .pricing-section .popular-plan {
        transform: scale(1); /* Reset scale for mobile to prevent layout issues */
    }
    .site-footer .columns > .column { /* Stack footer columns */
        margin-bottom: calc(var(--spacing-unit) * 1.5);
    }
}

/* High Contrast Check (WCAG AA for normal text is 4.5:1, large text 3:1)
   --clr-text-dark (#222222) on --clr-bg-light (#FDFEFC) is very high.
   --clr-text-light (#FFFFFF) on --clr-accent (#6AB04C) (buttons) is good.
   --clr-text-light (#FFFFFF) on --clr-text-dark (footer) is very high.
   --clr-primary (#4A7C59) as link on --clr-bg-light (#FDFEFC) is good.
*/
.title:not(.is-spaced)+.subtitle{
    margin: 0;
}