/* ROOT VARIABLES ======================================================= */
:root {
    --primary-color: #0D47A1; /* Deep Blue - Corporate, professional */
    --primary-color-darker: #002171; /* Darker Blue for hovers/accents */
    --secondary-color: #FF8F00; /* Amber/Orange - Complementary, energetic accent */
    --secondary-color-darker: #E65100; /* Darker Orange for hovers */
    --accent-color: #4FC3F7; /* Light Blue - Softer accent */

    --text-color-dark: #333333; /* Dark gray for readability */
    --text-color-light: #FFFFFF;
    --text-color-medium: #555555;
    --text-color-subtle: #777777;

    --background-color-light: #F4F6F8; /* Very light gray - Eco-minimalism */
    --background-color-white: #FFFFFF;
    --card-background-color: var(--background-color-white);
    --footer-background-color: #212121; /* Dark gray for footer */
    --overlay-color: rgba(0, 0, 0, 0.5); /* Overlay for text on images */

    --font-family-headings: 'Raleway', sans-serif;
    --font-family-body: 'Open Sans', sans-serif;

    --border-radius-small: 4px;
    --border-radius-medium: 8px;
    --border-radius-large: 16px;

    --box-shadow-light: 0 2px 8px rgba(0, 0, 0, 0.08);
    --box-shadow-medium: 0 5px 15px rgba(0, 0, 0, 0.12);
    --box-shadow-heavy: 0 10px 25px rgba(0, 0, 0, 0.15);

    --transition-speed-fast: 0.2s;
    --transition-speed-normal: 0.3s;
    --transition-speed-slow: 0.5s;
    --easing-function: ease-in-out;

    --section-padding-vertical: 5rem;
    --container-max-width: 1140px;
}

/* GLOBAL STYLES ======================================================== */
html {
    scroll-behavior: smooth;
    font-size: 16px; /* Base font size */
    background-color: var(--background-color-white); /* Default page background */
}

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

/* Headings */
h1, h2, h3, h4, h5, h6, .title, .subtitle {
    font-family: var(--font-family-headings);
    color: var(--text-color-dark); /* Ensure high contrast for titles */
    font-weight: 700;
}

.title {
    color: #222222; /* Even darker for main titles for extra contrast */
}

h1.title, .hero .title { color: var(--text-color-light); } /* Hero titles are on dark bg */
h2.subtitle, .hero .subtitle { color: var(--text-color-light); opacity: 0.9; }

.section-title {
    margin-bottom: 1.5rem !important;
    position: relative;
    padding-bottom: 0.5rem;
    color: #222222; /* Darker for section titles */
}

.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background-color: var(--secondary-color);
    margin: 0.75rem auto 0;
}


/* Links */
a {
    color: var(--primary-color);
    transition: color var(--transition-speed-fast) var(--easing-function);
}

a:hover {
    color: var(--primary-color-darker);
}

/* Buttons - Global Styles */
.button, button, input[type="submit"], input[type="button"] {
    font-family: var(--font-family-headings);
    font-weight: 700;
    border-radius: var(--border-radius-medium);
    padding: 0.75em 1.5em;
    transition: background-color var(--transition-speed-normal) var(--easing-function),
                color var(--transition-speed-normal) var(--easing-function),
                transform var(--transition-speed-fast) var(--easing-function),
                box-shadow var(--transition-speed-normal) var(--easing-function);
    border: none;
    cursor: pointer;
    text-decoration: none; /* Ensure no underline */
    display: inline-block;
    line-height: 1.5; /* Bulma default */
}

.button:focus, button:focus, input[type="submit"]:focus, input[type="button"]:focus {
    outline: 2px solid var(--accent-color);
    outline-offset: 2px;
}


.button.is-primary {
    background-color: var(--primary-color);
    color: var(--text-color-light);
    border: 1px solid var(--primary-color);
}
.button.is-primary:hover {
    background-color: var(--primary-color-darker);
    color: var(--text-color-light);
    transform: translateY(-2px);
    box-shadow: var(--box-shadow-medium);
}
.button.is-primary:active {
    transform: translateY(0);
    box-shadow: var(--box-shadow-light);
}

.button.is-secondary, .button.is-link.is-light { /* For "Read More" or secondary actions */
    background-color: var(--background-color-white);
    color: var(--secondary-color);
    border: 1px solid var(--secondary-color);
}
.button.is-secondary:hover, .button.is-link.is-light:hover {
    background-color: var(--secondary-color);
    color: var(--text-color-light);
    border-color: var(--secondary-color);
    transform: translateY(-2px);
    box-shadow: var(--box-shadow-medium);
}
.button.is-secondary:active, .button.is-link.is-light:active {
    transform: translateY(0);
    box-shadow: var(--box-shadow-light);
}

.button.is-large {
    font-size: 1.25rem; /* Bulma default */
    padding: 1em 2em;
}

/* Ensure Bulma button styles are enhanced */
.button.is-link { /* Default Bulma link button - often blue */
    background-color: var(--accent-color);
    color: var(--text-color-light);
}
.button.is-link:hover {
    background-color: var(--primary-color);
}


/* Paragraphs and Text */
p {
    margin-bottom: 1rem;
    color: var(--text-color-medium);
}
.content p:last-child, .content ul:last-child, .content ol:last-child {
    margin-bottom: 0;
}
.content ul li {
    margin-bottom: 0.5em;
}

/* Sections */
.section {
    padding-top: var(--section-padding-vertical);
    padding-bottom: var(--section-padding-vertical);
    background-color: var(--background-color-white);
}
.section.has-background-light {
    background-color: var(--background-color-light);
}

/* Container */
.container {
    max-width: var(--container-max-width);
    margin-left: auto;
    margin-right: auto;
    padding-left: 15px;
    padding-right: 15px;
}

/* Animations (AOS can be customized here if needed) */
[data-aos] {
    transition-property: transform, opacity;
}

/* Background Image Styling */
[style*="background-image"] {
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
}
.has-parallax-effect {
    background-attachment: fixed;
}


/* HEADER / NAVBAR ====================================================== */
.header .navbar {
    background-color: rgba(255, 255, 255, 0.95); /* Semi-transparent white for eco-minimalism */
    box-shadow: var(--box-shadow-light);
    transition: background-color var(--transition-speed-normal) var(--easing-function);
    backdrop-filter: blur(5px); /* Subtle glassmorphism */
    -webkit-backdrop-filter: blur(5px);
}
.header .navbar.is-fixed-top {
    position: fixed;
    width: 100%;
    z-index: 1000;
}

.navbar-item, .navbar-link {
    font-family: var(--font-family-headings);
    font-weight: 700;
    color: var(--text-color-dark);
    transition: color var(--transition-speed-fast) var(--easing-function);
}
.navbar-item:hover, .navbar-link:hover, .navbar-item.is-active {
    background-color: transparent !important; /* Override Bulma */
    color: var(--primary-color) !important;
}
.navbar-item.logo-text {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--primary-color);
}
.navbar-item.logo-text:hover {
    color: var(--primary-color-darker);
}

.navbar-burger {
    color: var(--primary-color);
}
.navbar-burger span {
    background-color: var(--primary-color);
    height: 2px; /* Thinner burger lines */
    width: 20px;
}
.navbar-burger:hover {
    background-color: rgba(0,0,0,0.05);
}

/* Responsive Navbar */
@media screen and (max-width: 1023px) {
    .navbar-menu {
        background-color: var(--background-color-white);
        box-shadow: 0 8px 16px rgba(0,0,0,0.1);
        padding: 0.5rem 0;
    }
    .navbar-menu .navbar-item {
        padding: 0.75rem 1.5rem;
    }
}


/* HERO SECTION ========================================================= */
#hero {
    position: relative;
    color: var(--text-color-light); /* Enforced by prompt */
    background-color: var(--primary-color-darker); /* Fallback if image fails */
    min-height: calc(100vh - 52px); /* 52px is default Bulma navbar height */
    display: flex;
    align-items: center;
    justify-content: center;
}
#hero .hero-body {
    padding: 3rem 1.5rem;
    z-index: 2; /* Above the ::before pseudo-element */
}
#hero .title.is-1 {
    font-size: 3.5rem; /* Larger for impact */
    margin-bottom: 1.5rem;
    color: var(--text-color-light) !important; /* Ensure white text */
    text-shadow: 1px 1px 3px rgba(0,0,0,0.5);
}
#hero .subtitle.is-4 {
    font-size: 1.3rem;
    margin-bottom: 2.5rem;
    color: var(--text-color-light) !important; /* Ensure white text */
    opacity: 0.9;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.3);
}
#hero .button.is-primary {
    background-color: var(--secondary-color);
    border-color: var(--secondary-color);
    color: var(--text-color-dark); /* Good contrast on orange */
}
#hero .button.is-primary:hover {
    background-color: var(--secondary-color-darker);
    border-color: var(--secondary-color-darker);
    color: var(--text-color-light);
}

/* Overlay for Hero background image to ensure text readability */
#hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--overlay-color); /* Defined in :root */
    z-index: 1;
}

/* SERVICES SECTION ===================================================== */
.service-card {
    background-color: var(--card-background-color);
    border-radius: var(--border-radius-medium);
    box-shadow: var(--box-shadow-light);
    transition: transform var(--transition-speed-normal) var(--easing-function),
                box-shadow var(--transition-speed-normal) var(--easing-function);
    display: flex; /* For card structure */
    flex-direction: column;
    height: 100%; /* Make cards in a row same height */
    text-align: center; /* Center content */
}
.service-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--box-shadow-medium);
}
.service-card .card-image.image-container { /* Ensure image container in card is centered */
    width: 100%;
    height: 200px; /* Fixed height for image container */
    overflow: hidden;
    border-top-left-radius: var(--border-radius-medium);
    border-top-right-radius: var(--border-radius-medium);
    margin-left: auto;
    margin-right: auto;
}
.service-card .card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Cover the fixed height container */
    border-top-left-radius: var(--border-radius-medium);
    border-top-right-radius: var(--border-radius-medium);
}
.service-card .card-content {
    padding: 1.5rem;
    flex-grow: 1; /* Allows content to expand and push button down */
    display: flex;
    flex-direction: column;
    justify-content: space-between; /* Pushes button to bottom if card height is fixed */
}
.service-card .card-content .title.is-4 {
    margin-bottom: 0.75rem;
    color: var(--primary-color);
}
.service-card .card-content p {
    font-size: 0.95rem;
    color: var(--text-color-medium);
    margin-bottom: 1rem;
}
.service-card .modal-trigger.button { /* "Read More" button */
    margin-top: auto; /* Pushes button to the bottom */
    align-self: center; /* Center button horizontally */
}

/* Modals */
.modal-card {
    border-radius: var(--border-radius-medium);
    max-width: 700px; /* Control modal width */
}
.modal-card-head {
    background-color: var(--primary-color);
    border-bottom: 1px solid var(--primary-color-darker);
    border-top-left-radius: var(--border-radius-medium);
    border-top-right-radius: var(--border-radius-medium);
}
.modal-card-title {
    color: var(--text-color-light);
}
.modal-card-head .delete {
    background-color: rgba(10,10,10,.3);
}
.modal-card-head .delete:hover {
    background-color: rgba(10,10,10,.5);
}
.modal-card-body {
    padding: 1.5rem;
    font-size: 1rem;
    line-height: 1.7;
}
.modal-card-body p {
    margin-bottom: 1.25rem;
}
.modal-card-body h4 {
    color: var(--primary-color);
    margin-bottom: 0.75rem;
}
.modal-card-foot {
    border-top: 1px solid #dbdbdb;
    border-bottom-left-radius: var(--border-radius-medium);
    border-bottom-right-radius: var(--border-radius-medium);
    justify-content: flex-end; /* Align button to the right */
}
.modal-card-foot .button {
    background-color: var(--secondary-color);
    color: var(--text-color-dark);
}
.modal-card-foot .button:hover {
    background-color: var(--secondary-color-darker);
    color: var(--text-color-light);
}


/* PORTFOLIO SECTION ==================================================== */
.portfolio-card {
    background-color: var(--card-background-color);
    border-radius: var(--border-radius-medium);
    box-shadow: var(--box-shadow-light);
    transition: transform var(--transition-speed-normal) var(--easing-function),
                box-shadow var(--transition-speed-normal) var(--easing-function);
    overflow: hidden; /* Ensures image corners are rounded with card */
    display: flex;
    flex-direction: column;
    align-items: center; /* Center content, including image container */
    text-align: center;
    height: 100%;
}
.portfolio-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--box-shadow-medium);
}
.portfolio-card .card-image.image-container {
    width: 100%; /* Full width of card */
    height: 220px; /* Fixed height for image */
    overflow: hidden;
    /* No border-radius here, as img will have it if needed or card has overflow:hidden */
}
.portfolio-card .card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.portfolio-card .card-content {
    padding: 1.5rem;
}
.portfolio-card .card-content .title.is-4 {
    margin-bottom: 0.5rem;
    color: var(--primary-color);
}
.portfolio-card .card-content p {
    font-size: 0.9rem;
    color: var(--text-color-subtle);
}

/* GALLERY SECTION ====================================================== */
.gallery-card {
    border-radius: var(--border-radius-small);
    overflow: hidden;
    box-shadow: var(--box-shadow-light);
    transition: transform var(--transition-speed-normal) var(--easing-function),
                box-shadow var(--transition-speed-normal) var(--easing-function);
    display: flex;
    flex-direction: column;
    align-items: center;
}
.gallery-card:hover {
    transform: scale(1.05);
    box-shadow: var(--box-shadow-medium);
    z-index: 10;
}
.gallery-card .card-image.image-container {
    width: 100%;
    height: 200px; /* Fixed height for gallery images */
}
.gallery-card .card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}


/* CASE STUDIES SECTION (Accordions) ===================================== */
.accordion-item {
    background-color: var(--background-color-white);
    border-radius: var(--border-radius-small);
    margin-bottom: 1rem;
    box-shadow: var(--box-shadow-light);
    border: 1px solid #e0e0e0;
}
.accordion-item summary.accordion-header {
    padding: 1rem 1.5rem;
    cursor: pointer;
    outline: none;
    font-weight: 700;
    color: var(--primary-color);
    position: relative;
    list-style: none; /* Remove default marker */
    transition: background-color var(--transition-speed-fast) var(--easing-function);
}
.accordion-item summary.accordion-header:hover {
    background-color: #f9f9f9;
}
.accordion-item summary.accordion-header::-webkit-details-marker {
    display: none; /* Hide default arrow in Chrome/Safari */
}
.accordion-item summary.accordion-header::after { /* Custom arrow */
    content: '+';
    font-size: 1.5rem;
    color: var(--secondary-color);
    position: absolute;
    right: 1.5rem;
    top: 50%;
    transform: translateY(-50%);
    transition: transform var(--transition-speed-fast) var(--easing-function);
}
.accordion-item[open] summary.accordion-header::after {
    transform: translateY(-50%) rotate(45deg);
}
.accordion-item .accordion-content.box { /* Bulma box for content */
    border-top: 1px solid #e0e0e0;
    padding: 1.5rem;
    border-radius: 0 0 var(--border-radius-small) var(--border-radius-small);
    background-color: var(--background-color-white); /* Ensure clean background */
}
.accordion-item .accordion-content h4 {
    color: var(--text-color-dark);
    font-weight: 700;
}
.accordion-item .accordion-content p {
    color: var(--text-color-medium);
    font-size: 0.95rem;
}
.accordion-item .accordion-content strong {
    color: var(--text-color-dark);
}

/* INNOVATION SECTION =================================================== */
#innovation {
    background-color: rgba(255, 255, 255, 0.8); /* From HTML style */
}
#innovation .title.is-3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
}
#innovation .content.is-medium p, #innovation .content.is-medium ul {
    font-size: 1.1rem; /* Slightly larger for readability */
    color: var(--text-color-dark);
}
#innovation .content.is-medium ul {
    list-style: disc;
    padding-left: 20px;
}
#innovation .content.is-medium ul li {
    margin-bottom: 0.75em;
}
#innovation .content.is-medium ul li::marker {
    color: var(--secondary-color);
}
#innovation figure.image img {
    border-radius: var(--border-radius-medium);
    box-shadow: var(--box-shadow-medium);
}

/* EXTERNAL RESOURCES SECTION ========================================== */
#external-resources .resource-box {
    background-color: var(--card-background-color);
    border-radius: var(--border-radius-small);
    box-shadow: var(--box-shadow-light);
    transition: box-shadow var(--transition-speed-normal) var(--easing-function);
    padding: 1.25rem;
}
#external-resources .resource-box:hover {
    box-shadow: var(--box-shadow-medium);
}
#external-resources .resource-box strong a {
    color: var(--primary-color);
    font-size: 1.1rem;
}
#external-resources .resource-box strong a:hover {
    color: var(--primary-color-darker);
    text-decoration: underline;
}
#external-resources .resource-box .content p {
    font-size: 0.95rem;
    color: var(--text-color-medium);
    margin-top: 0.25rem;
}

/* CONTACT CTA SECTION =============================================== */
#contact-cta .button.is-primary {
    background-color: var(--secondary-color);
    border-color: var(--secondary-color);
    color: var(--text-color-dark);
}
#contact-cta .button.is-primary:hover {
    background-color: var(--secondary-color-darker);
    border-color: var(--secondary-color-darker);
    color: var(--text-color-light);
}

/* CONTACT PAGE FORM (contacts.html) =================================== */
#contact-form-section {
    padding-top: calc(var(--section-padding-vertical) + 52px); /* 52px navbar height if fixed */
}
.contact-form-container {
    background-color: var(--background-color-white);
    padding: 2.5rem;
    border-radius: var(--border-radius-medium);
    box-shadow: var(--box-shadow-heavy);
    max-width: 700px;
    margin: 0 auto;
}
.contact-form-container .title {
    color: var(--primary-color);
}
.contact-form-container .field .label {
    color: var(--text-color-dark);
    font-weight: 700;
}
.contact-form-container .input,
.contact-form-container .textarea {
    border-radius: var(--border-radius-small);
    border: 1px solid #dbdbdb;
    box-shadow: inset 0 1px 2px rgba(10,10,10,.1);
    transition: border-color var(--transition-speed-fast) var(--easing-function),
                box-shadow var(--transition-speed-fast) var(--easing-function);
}
.contact-form-container .input:focus,
.contact-form-container .textarea:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.125em rgba(var(--primary-color-rgb, 13, 71, 161), 0.25); /* Use RGB for Bulma's focus */
}
/* Define --primary-color-rgb for Bulma focus */
:root {
    --primary-color-rgb: 13, 71, 161;
}

.contact-form-container .button.is-primary {
    width: 100%;
    padding: 1em; /* Larger button for form submission */
}


/* FOOTER =============================================================== */
.footer {
    background-color: var(--footer-background-color);
    color: var(--text-color-light);
    padding: 3rem 1.5rem 2rem; /* Adjusted padding */
}
.footer .title.is-5.footer-title {
    color: var(--text-color-light);
    margin-bottom: 1rem;
    text-transform: uppercase;
    font-size: 1rem;
    letter-spacing: 0.5px;
}
.footer p, .footer li {
    color: #a0a0a0; /* Lighter gray for footer text */
    font-size: 0.9rem;
}
.footer a {
    color: #cccccc;
    transition: color var(--transition-speed-fast) var(--easing-function);
}
.footer a:hover {
    color: var(--secondary-color);
    text-decoration: underline;
}
.footer ul {
    list-style: none;
    padding-left: 0;
}
.footer ul li {
    margin-bottom: 0.5rem;
}
.footer .content.has-text-centered p {
    color: #777777; /* Subtler color for copyright */
    font-size: 0.85rem;
    margin-top: 2rem;
}

/* Footer social links (text-based) */
.footer .column ul li a[target="_blank"] { /* Style for social media links */
    display: inline-block; /* Allows padding and consistent look */
}


/* SPECIFIC PAGE STYLES =============================================== */

/* Privacy & Terms Pages */
.legal-page-content {
    padding-top: calc(52px + var(--section-padding-vertical)); /* Navbar height + section padding */
    padding-bottom: var(--section-padding-vertical);
    min-height: calc(100vh - 52px - 145px); /* Full height minus navbar and approx footer */
}
.legal-page-content .container {
    max-width: 800px; /* Narrower content for readability */
}
.legal-page-content h1.title {
    margin-bottom: 2rem;
    color: var(--primary-color);
}
.legal-page-content h2.subtitle, .legal-page-content h3.title {
    color: var(--primary-color-darker);
    margin-top: 2rem;
    margin-bottom: 1rem;
}
.legal-page-content p, .legal-page-content li {
    color: var(--text-color-medium);
    margin-bottom: 1rem;
}
.legal-page-content ul {
    list-style: disc;
    padding-left: 25px;
}

/* Success Page */
.success-page {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    text-align: center;
    background-color: var(--background-color-light);
    padding: 2rem;
}
.success-page .success-container {
    background-color: var(--background-color-white);
    padding: 3rem;
    border-radius: var(--border-radius-large);
    box-shadow: var(--box-shadow-heavy);
    max-width: 600px;
}
.success-page .icon.is-large .fa-check-circle { /* Assuming FontAwesome is used for icon */
    font-size: 4rem;
    color: #4CAF50; /* Green for success */
    margin-bottom: 1.5rem;
}
.success-page h1.title {
    color: #4CAF50;
    margin-bottom: 1rem;
}
.success-page p {
    font-size: 1.1rem;
    color: var(--text-color-medium);
    margin-bottom: 2rem;
}

/* Cookie Consent Popup */
#cookieConsentPopup p {
    color: white; /* Ensure text is white as per HTML */
}
#cookieConsentPopup button {
    background-color: #4CAF50; /* Green as per HTML */
    color: white;
}
#cookieConsentPopup button:hover {
    background-color: #3e8e41; /* Darker green */
}


/* UTILITY CLASSES & RESPONSIVENESS ===================================== */
.is-hidden-desktop {
    display: none !important;
}
@media screen and (max-width: 1023px) {
    .is-hidden-touch {
        display: none !important;
    }
    .is-hidden-desktop {
        display: block !important;
    }
    .title.is-1 { font-size: 2.5rem; }
    .title.is-2 { font-size: 2rem; }
    .hero .title.is-1 { font-size: 2.8rem; }
    .hero .subtitle.is-4 { font-size: 1.1rem; }
}

@media screen and (max-width: 768px) {
    .section {
        padding-top: calc(var(--section-padding-vertical) * 0.7);
        padding-bottom: calc(var(--section-padding-vertical) * 0.7);
    }
    .title.is-1 { font-size: 2.2rem; }
    .title.is-2 { font-size: 1.8rem; }
    .hero .title.is-1 { font-size: 2.4rem; }

    .columns.is-multiline .column {
        margin-bottom: 1.5rem; /* Add space between stacked columns */
    }
     .footer .columns {
        text-align: center;
    }
    .footer .column {
        margin-bottom: 2rem;
    }
    .footer .column:last-child {
        margin-bottom: 0;
    }
}

/* Card image centering (strict rule) */
.card .card-image, .card .image-container {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-left: auto; /* for block elements if parent is text-align: center */
    margin-right: auto; /* for block elements if parent is text-align: center */
}

/* General card content centering (strict rule) */
.card, .item, .testimonial, .team-member, .product-card {
    /* If content inside needs to be centered, text-align: center can be applied here or on specific child elements */
    /* Many cards already have text-align: center applied (e.g., service-card, portfolio-card) */
}