/* style.css */

:root {
    /* Color Palette (Triad Example with Orange as Base) */
    --primary-color: #E67E22; /* Bold Orange */
    --primary-color-darker: #D35400; /* Darker Orange */
    --secondary-color: #1ABC9C; /* Teal/Green */
    --secondary-color-darker: #16A085; /* Darker Teal/Green */
    --tertiary-color: #8E44AD; /* Purple */
    --tertiary-color-darker: #7D3C98; /* Darker Purple */

    /* Text Colors */
    --text-color-dark: #222222; /* Very dark grey for high contrast on light backgrounds */
    --text-color-medium: #333333;
    --text-color-light: #FFFFFF;
    --text-color-subtle: #6c757d; /* Lighter grey for less prominent text */

    /* Background Colors */
    --bg-color-light: #FFFFFF;
    --bg-color-dark: #1a1a1a; /* Dark background for sections like hero/contact */
    --bg-color-off-white: #f4f5f7; /* Subtle off-white for content sections */
    --bg-color-brutalist-card: #FFFFFF;
    --bg-color-footer: #111111;

    /* Fonts */
    --font-family-headings: 'Raleway', Helvetica, Arial, sans-serif;
    --font-family-body: 'Open Sans', Helvetica, Arial, sans-serif;

    /* Borders & Shadows (Brutalism) */
    --border-width-strong: 2px; /* Slightly less thick for a cleaner modern brutalism */
    --border-color-strong: var(--text-color-dark);
    --border-radius-sharp: 0px;
    --border-radius-subtle: 4px;
    --box-shadow-brutalist: 4px 4px 0px var(--text-color-dark);
    --box-shadow-brutalist-hover: 6px 6px 0px var(--primary-color-darker);
    --box-shadow-subtle: 0 5px 15px rgba(0, 0, 0, 0.08);
    --box-shadow-card-hover: 0 8px 25px rgba(0,0,0,0.12);

    /* Transitions */
    --transition-speed: 0.3s;
    --transition-timing: ease-in-out;

    /* Header Height */
    --header-height: 70px; /* Approximate height of the sticky header */
}

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

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

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

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

.title.is-1 { font-size: 3rem; font-weight: 800; }
.title.is-2 { font-size: 2.5rem; font-weight: 800; }
.title.is-3 { font-size: 2rem; }
.title.is-4 { font-size: 1.5rem; }
.subtitle { color: var(--text-color-subtle); }

.section-title {
    margin-bottom: 3rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-color-dark);
    text-shadow: 1px 1px 2px rgba(0,0,0,0.1);
}

.section-title.has-text-white {
    color: var(--text-color-light);
    text-shadow: 1px 1px 3px rgba(0,0,0,0.5);
}


/* Links */
a {
    color: var(--primary-color);
    transition: color var(--transition-speed) var(--transition-timing);
}
a:hover {
    color: var(--primary-color-darker);
}

.read-more-link {
    display: inline-block;
    font-weight: 600;
    text-decoration: none;
    padding-bottom: 2px;
    border-bottom: 2px solid var(--primary-color);
    transition: all var(--transition-speed) var(--transition-timing);
}
.read-more-link:hover {
    color: var(--primary-color-darker);
    border-bottom-color: var(--primary-color-darker);
    transform: translateY(-2px);
}

/* Buttons (Global Brutalist Style) */
.brutalist-button,
button.button, /* General buttons */
input[type="submit"].button { /* Submit inputs styled as buttons */
    font-family: var(--font-family-headings);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    background-color: var(--primary-color);
    color: var(--text-color-light);
    border: var(--border-width-strong) solid var(--text-color-dark);
    border-radius: var(--border-radius-sharp);
    padding: 0.75em 1.5em;
    box-shadow: var(--box-shadow-brutalist);
    transition: all var(--transition-speed) var(--transition-timing);
    cursor: pointer;
    text-decoration: none; /* For <a> tags styled as buttons */
    display: inline-flex; /* Align icon and text */
    align-items: center;
    justify-content: center;
}

.brutalist-button:hover,
button.button:hover,
input[type="submit"].button:hover {
    background-color: var(--primary-color-darker);
    color: var(--text-color-light);
    box-shadow: var(--box-shadow-brutalist-hover);
    transform: translate(-2px, -2px); /* Slight lift effect */
    border-color: var(--text-color-dark); /* Keep border color consistent on hover */
}

.brutalist-button:active,
button.button:active,
input[type="submit"].button:active {
    box-shadow: 2px 2px 0px var(--text-color-dark);
    transform: translate(2px, 2px);
}

.brutalist-button .icon {
    margin-left: 0.5em;
}

/* Override Bulma's primary button if .brutalist-button is also applied */
.button.is-primary.brutalist-button {
    background-color: var(--primary-color); /* Ensure our primary color is used */
}
.button.is-primary.brutalist-button:hover {
    background-color: var(--primary-color-darker);
}


/* General Section Styling */
.section {
    padding: 4rem 1.5rem; /* Default Bulma padding can be adjusted */
}

/* Header */
.header.sticky-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background-color: rgba(255, 255, 255, 0.9);
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    transition: background-color var(--transition-speed) var(--transition-timing);
}
.header.sticky-header .navbar {
    background-color: transparent; /* Navbar itself is transparent, header provides bg */
}
.logo-text {
    font-family: var(--font-family-headings);
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--text-color-dark);
}
.logo-accent {
    color: var(--primary-color);
}
.navbar-item {
    font-family: var(--font-family-headings);
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--text-color-medium);
    transition: color var(--transition-speed) var(--transition-timing);
}
.navbar-item:hover, .navbar-item.is-active {
    background-color: transparent !important; /* Override Bulma */
    color: var(--primary-color) !important;
}
.navbar-burger span {
    background-color: var(--text-color-dark);
}

/* Hero Section */
.section-hero {
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    position: relative; /* For overlay */
}
.hero-content-overlay {
    position: relative;
    z-index: 1;
    padding: 2rem;
    background: linear-gradient(0deg, rgba(0,0,0,0.6) 0%, rgba(0,0,0,0.3) 100%);
    border-radius: var(--border-radius-subtle);
}
.section-hero .title, .section-hero .subtitle {
    color: var(--text-color-light); /* Enforce white text */
    text-shadow: 1px 1px 5px rgba(0,0,0,0.7);
}
.section-hero .title.is-1 {
    font-size: 3.5rem; /* Larger for hero */
}
@media screen and (max-width: 768px) {
    .section-hero .title.is-1 { font-size: 2.5rem; }
    .section-hero .subtitle.is-3 { font-size: 1.25rem; }
}

/* History Section */
.section-history .content p {
    color: var(--text-color-medium);
    text-align: justify;
}

/* Card Styling (Brutalist Card, General Card enhancements) */
.card.brutalist-card {
    background-color: var(--bg-color-brutalist-card);
    border: var(--border-width-strong) solid var(--border-color-strong);
    box-shadow: var(--box-shadow-brutalist);
    border-radius: var(--border-radius-sharp);
    transition: transform var(--transition-speed) var(--transition-timing), box-shadow var(--transition-speed) var(--transition-timing);
    height: 100%; /* For consistent height in columns */
    display: flex; /* Enforce flex for consistent structure */
    flex-direction: column;
}
.card.brutalist-card:hover {
    transform: translateY(-5px) translateX(-5px);
    box-shadow: var(--box-shadow-brutalist-hover);
}
.card { /* General card improvements for all cards */
    display: flex;
    flex-direction: column;
    align-items: stretch; /* Stretch items like card-image, card-content */
    text-align: center; /* Center text within card-content */
    background-color: var(--bg-color-light);
    box-shadow: var(--box-shadow-subtle);
    border-radius: var(--border-radius-subtle);
    overflow: hidden; /* Ensure content stays within rounded corners */
    transition: box-shadow var(--transition-speed) var(--transition-timing), transform var(--transition-speed) var(--transition-timing);
}
.card:hover {
    box-shadow: var(--box-shadow-card-hover);
    transform: translateY(-3px);
}
.card .card-image { /* Container for the image figure */
    width: 100%;
    overflow: hidden; /* Important for object-fit */
    display: flex; /* Center the figure if it's smaller */
    justify-content: center;
    align-items: center;
}
.card .card-image figure.image { /* Bulma's figure */
    margin: 0 !important; /* Override Bulma's default margin */
    width: 100%;
}
.card .card-image figure.image img {
    width: 100%;
    height: 220px; /* Fixed height for card images */
    object-fit: cover; /* Cover the area, may crop */
    display: block; /* Remove extra space below image */
}
.card .card-content {
    padding: 1.5rem;
    flex-grow: 1; /* Allows content to take remaining space */
    display: flex;
    flex-direction: column;
    justify-content: space-between; /* Pushes content and potentially a button apart */
    text-align: left; /* Default text align */
}
.card .card-content .title, .card .card-content .subtitle {
    margin-bottom: 0.75rem;
}
.card .card-content .content {
    font-size: 0.95rem;
    color: var(--text-color-medium);
}
/* Specifically for .brutalist-card content centering if needed */
.brutalist-card .card-content {
    text-align: center; /* Center text for brutalist cards */
}

/* Services Section */
.section-services {
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
}
/* Overlay for services section if background is too busy */
.section-services::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background-color: rgba(0,0,0,0.3); /* Adjust opacity as needed */
    z-index: 0;
}
.section-services .container {
    position: relative; /* To be above the pseudo-element overlay */
    z-index: 1;
}
.service-card {
    background-color: rgba(255,255,255,0.95); /* Semi-transparent white cards */
    backdrop-filter: blur(5px); /* Glassmorphism element if browser supports */
    border: 1px solid rgba(255,255,255,0.2);
}
.service-card .card-image {
    padding-top: 1rem; /* Space for icon */
}
.service-icon {
    font-size: 3rem; /* Placeholder size */
    color: var(--primary-color) !important; /* Bulma text color override */
}
/* Animated icon placeholder styling */
.animated-icon-placeholder {
    display: inline-block;
    padding: 10px;
    font-style: italic;
    color: var(--text-color-subtle);
    font-size: 0.9em;
}

.service-card.has-glow-hover:hover {
    box-shadow: 0 0 25px var(--secondary-color-darker);
}
.service-card .card-content .title {
    color: var(--text-color-dark); /* Ensure titles are dark on light cards */
}
.service-card .card-content .content {
    color: var(--text-color-medium); /* Ensure content text is readable */
}

/* Statistics Section */
.section-statistics.parallax-section {
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    background-attachment: fixed; /* Parallax effect */
    padding: 5rem 1.5rem;
    position: relative;
}
.section-statistics::before { /* Dark overlay for text readability */
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background-color: rgba(0,0,0,0.65);
    z-index: 0;
}
.section-statistics .container {
    position: relative;
    z-index: 1;
}
.stat-item .title.stat-number {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 0.25rem;
}
.stat-item .subtitle.stat-label {
    font-size: 1.1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Innovation Section */
.section-innovation .image img {
    border-radius: var(--border-radius-subtle);
    box-shadow: var(--box-shadow-subtle);
}
.section-innovation .content h3 {
    margin-bottom: 1rem;
}

/* Portfolio Section */
.section-portfolio {
    background-color: var(--bg-color-off-white);
}
.portfolio-card .card-image figure.image img {
    height: 250px; /* Slightly taller for portfolio items */
}

/* Clientele Section */
.section-clientele .image img {
    border-radius: var(--border-radius-subtle);
    box-shadow: var(--box-shadow-subtle);
}

/* Community Section */
.section-community {
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
}
.community-content-overlay {
    position: relative;
    z-index: 1;
    padding: 2rem;
    background: linear-gradient(rgba(0,0,0,0.6), rgba(0,0,0,0.6));
    border-radius: var(--border-radius-subtle);
}
.section-community .has-text-white p {
    color: var(--text-color-light) !important;
    text-align: justify;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}
.community-image-showcase img {
    border-radius: var(--border-radius-subtle);
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    margin-top: 2rem;
}

/* Resources Section */
.section-resources .brutalist-box.resource-list {
    background-color: var(--bg-color-light);
    border: var(--border-width-strong) solid var(--border-color-strong);
    box-shadow: var(--box-shadow-brutalist);
    padding: 2rem;
    border-radius: var(--border-radius-sharp);
}
.resource-list article .content p strong a {
    color: var(--text-color-dark);
}
.resource-list article .content p strong a:hover {
    color: var(--primary-color);
}
.resource-list article .content p small {
    color: var(--text-color-subtle);
}
.resource-divider {
    background-color: var(--text-color-subtle);
    height: 1px;
    margin: 1.5rem 0;
}

/* Contact Section */
.section-contact.parallax-section {
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed; /* Parallax effect */
    position: relative;
}
.section-contact::before { /* Dark overlay for form readability */
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background-color: rgba(0,0,0,0.7);
    z-index: 0;
}
.section-contact .container {
    position: relative;
    z-index: 1;
}
.contact-form-container {
    max-width: 700px;
    margin: 0 auto;
    background-color: rgba(34,34,34,0.8); /* Dark semi-transparent background for the form itself */
    padding: 2.5rem;
    border-radius: var(--border-radius-subtle);
    border: 1px solid rgba(255,255,255,0.1);
}
.brutalist-input, .brutalist-textarea {
    background-color: var(--bg-color-light);
    color: var(--text-color-dark);
    border: var(--border-width-strong) solid var(--border-color-strong);
    border-radius: var(--border-radius-sharp);
    padding: 0.75em 1em;
    font-family: var(--font-family-body);
    transition: border-color var(--transition-speed) var(--transition-timing), box-shadow var(--transition-speed) var(--transition-timing);
}
.brutalist-input::placeholder, .brutalist-textarea::placeholder {
    color: var(--text-color-subtle);
}
.brutalist-input:focus, .brutalist-textarea:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.125em var(--primary-color-darker); /* Bulma-like focus */
    outline: none;
}
.section-contact .label.has-text-white {
    color: var(--text-color-light) !important;
    font-weight: 600;
}

/* Footer */
.footer.brutalist-footer {
    background-color: var(--bg-color-footer);
    color: var(--text-color-subtle);
    padding: 3rem 1.5rem 2rem; /* Reduced bottom padding */
    border-top: var(--border-width-strong) * 2 solid var(--primary-color);
}
.footer.brutalist-footer .title.footer-title {
    color: var(--text-color-light);
    margin-bottom: 1rem;
    text-transform: uppercase;
    font-size: 1.1rem;
    letter-spacing: 0.5px;
}
.footer.brutalist-footer p {
    color: var(--text-color-subtle);
    font-size: 0.95rem;
}
.footer.brutalist-footer ul {
    list-style: none;
    margin: 0;
    padding: 0;
}
.footer.brutalist-footer ul li {
    margin-bottom: 0.5rem;
}
.footer.brutalist-footer ul li a {
    color: var(--text-color-subtle);
    text-decoration: none;
    transition: color var(--transition-speed) var(--transition-timing);
}
.footer.brutalist-footer ul li a:hover {
    color: var(--primary-color);
}
.footer-hr {
    background-color: var(--text-color-medium);
    height: 1px;
    margin: 2rem 0;
}
.footer.brutalist-footer .content.has-text-centered p {
    font-size: 0.9rem;
}


/* Specific Page Styles */

/* Success Page */
body.page-success {
    display: flex;
    flex-direction: column; /* Ensure header/footer can stack if present, though not in this specific request */
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    background-color: var(--bg-color-off-white);
    text-align: center;
    padding: 2rem;
}
.success-container {
    background-color: var(--bg-color-light);
    padding: 3rem;
    border-radius: var(--border-radius-subtle);
    box-shadow: var(--box-shadow-subtle);
    max-width: 600px;
}
.success-container .icon.is-large {
    font-size: 4rem;
    color: var(--secondary-color);
    margin-bottom: 1.5rem;
}
.success-container .title {
    color: var(--text-color-dark);
    margin-bottom: 1rem;
}
.success-container p {
    color: var(--text-color-medium);
    margin-bottom: 1.5rem;
}

/* Privacy & Terms Pages */
body.page-legal .main-content-page, /* Add .page-legal to body of privacy/terms */
body.page-about .main-content-page { /* Add .page-about to body of about */
    padding-top: calc(var(--header-height) + 3rem); /* Header height + extra space */
    padding-bottom: 3rem;
    min-height: calc(100vh - var(--header-height) - 150px); /* Adjust 150px based on footer height */
}
.main-content-page .container {
    max-width: 800px; /* Readable content width */
    margin-left: auto;
    margin-right: auto;
}
.main-content-page h1, .main-content-page h2 {
    margin-bottom: 1.5rem;
}
.main-content-page p, .main-content-page ul, .main-content-page ol {
    margin-bottom: 1rem;
    color: var(--text-color-medium);
}
.main-content-page ul, .main-content-page ol {
    margin-left: 1.5rem;
}


/* Responsive adjustments */
@media screen and (max-width: 768px) {
    .section {
        padding: 3rem 1rem;
    }
    .section-title {
        margin-bottom: 2rem;
    }
    .title.is-1 { font-size: 2.25rem; }
    .title.is-2 { font-size: 1.85rem; }

    .header.sticky-header .navbar-menu {
        background-color: rgba(255,255,255,0.98);
        box-shadow: 0 8px 16px rgba(10,10,10,.1);
        padding: .5rem 0;
    }
    .columns.is-vcentered .column.is-half:first-child { /* Stack image on top in innovation/clientele */
        order: -1;
    }
}

/* Cookie Consent Popup (from HTML, minor tweaks if needed) */
#cookieConsentPopup {
    /* Styles are mostly inline in HTML, but can be enhanced here if complex */
    font-family: var(--font-family-body);
}
#cookieConsentPopup p {
    color: var(--text-color-light); /* ensure readability */
}
#acceptCookieButton {
    background-color: var(--primary-color);
    font-family: var(--font-family-headings);
    font-weight: 600;
}
#acceptCookieButton:hover {
    background-color: var(--primary-color-darker);
}

/* Helper class for general dark text on light backgrounds */
.has-text-dark-strong {
    color: var(--text-color-dark) !important;
}