/* style.css */

/* 0. CSS Variables
-------------------------------------------------------------- */
:root {
    /* Tetrad Color Scheme & Neutrals */
    --color-primary: #D7AE00; /* Vibrant Gold/Yellow (from cookie banner) */
    --color-primary-darker: #b38f00;
    --color-primary-text: #333333; /* Text for primary buttons */

    --color-secondary: #007BA7; /* Cerulean Blue */
    --color-secondary-darker: #005c7a;
    --color-secondary-text: #FFFFFF;

    --color-accent1: #C41E3A; /* Cardinal Red */
    --color-accent1-darker: #9b182d;
    --color-accent1-text: #FFFFFF;

    --color-accent2: #008000; /* Green */
    --color-accent2-darker: #006400;
    --color-accent2-text: #FFFFFF;

    --color-text: #363636; /* Bulma's default text color, good for contrast */
    --color-text-strong: #222222; /* For section titles, stronger contrast */
    --color-text-light: #FFFFFF;
    --color-text-muted: #7a7a7a; /* Bulma's grey-darker */

    --color-background-body: #FFFFFF;
    --color-background-light: #f5f5f5; /* Bulma's white-ter */
    --color-background-medium: #e0e0e0;
    --color-background-dark: #212529; /* Dark for footer */
    --color-background-hero-overlay: rgba(0, 0, 0, 0.55);

    --color-border: #dbdbdb; /* Bulma's border color */
    --color-border-strong: #333333;
    --color-neo-shadow: rgba(0, 0, 0, 0.75); /* For Neo-Brutalism shadows */

    /* Typography */
    --font-family-headings: 'Manrope', sans-serif;
    --font-family-body: 'Rubik', sans-serif;

    /* UI Elements */
    --border-radius-sharp: 2px;
    --border-radius-soft: 4px;
    --neo-border: 2px solid var(--color-border-strong);
    --neo-shadow-offset: 3px; /* For x and y offset */

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

    /* Header Height */
    --header-height: 52px; /* Bulma's default navbar height, adjust if custom */
    --header-height-padded: 70px; /* header height + some extra space */
}

/* 1. Global Styles & Resets
-------------------------------------------------------------- */
html {
    scroll-behavior: smooth;
    background-color: var(--color-background-body);
    font-size: 16px; /* Base font size */
    overflow-x: hidden;
}

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

/* Bulma class for fixed navbar padding */
body.has-navbar-fixed-top {
    padding-top: var(--header-height);
}

/* Add this class to body on pages like privacy, terms */
.page-content-below-fixed-header > .main-page-container > section:first-child {
    padding-top: calc(var(--header-height) + 3rem); /* Header height + extra space */
}


/* Headings */
h1, h2, h3, h4, h5, h6, .title, .subtitle {
    font-family: var(--font-family-headings);
    font-weight: 800;
    color: var(--color-text-strong);
    text-shadow: 1px 1px 2px rgba(0,0,0,0.1); /* Subtle shadow for readability */
}

.title {
    color: var(--color-text-strong);
}

.subtitle {
    color: var(--color-text-muted);
    font-family: var(--font-family-body);
    font-weight: 400;
}

p {
    margin-bottom: 1rem;
    font-family: var(--font-family-body);
}

a {
    color: var(--color-primary);
    transition: color var(--transition-speed) var(--transition-timing);
}

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

/* Section Styling */
section.section {
    padding: 3rem 1.5rem; /* Default Bulma padding, can be overridden */
    position: relative; /* For absolute positioned children or pseudo-elements */
}

.section-title {
    margin-bottom: 2.5rem;
    font-size: 2.5rem; /* Responsive font size */
    font-weight: 800;
    color: var(--color-text-strong);
    text-align: center;
}

@media screen and (max-width: 768px) {
    .section-title {
        font-size: 2rem;
        margin-bottom: 2rem;
    }
    section.section {
        padding: 2rem 1rem;
    }
}

/* Styled Images */
.styled-image {
    border: var(--neo-border);
    box-shadow: var(--neo-shadow-offset) var(--neo-shadow-offset) 0px var(--color-neo-shadow);
    border-radius: var(--border-radius-sharp);
    margin-top: 1.5rem;
    margin-bottom: 1.5rem;
    max-width: 100%;
    height: auto;
}

/* 2. Buttons & Interactive Elements (Neo-Brutalism touch)
-------------------------------------------------------------- */
/* Extending Bulma's button */
.button {
    font-family: var(--font-family-headings);
    font-weight: 700;
    border-radius: var(--border-radius-sharp);
    border-width: 2px;
    border-style: solid;
    box-shadow: var(--neo-shadow-offset) var(--neo-shadow-offset) 0px var(--color-neo-shadow);
    transition: transform var(--transition-speed) var(--transition-timing), box-shadow var(--transition-speed) var(--transition-timing);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.button:hover, .button:focus {
    transform: translate(-2px, -2px);
    box-shadow: calc(var(--neo-shadow-offset) + 2px) calc(var(--neo-shadow-offset) + 2px) 0px var(--color-neo-shadow);
}

.button:active {
    transform: translate(0px, 0px);
    box-shadow: 1px 1px 0px var(--color-neo-shadow);
}

/* Primary Button */
.button.is-primary {
    background-color: var(--color-primary);
    border-color: var(--color-primary-darker);
    color: var(--color-primary-text);
}
.button.is-primary:hover, .button.is-primary:focus {
    background-color: var(--color-primary-darker);
    border-color: var(--color-primary-darker);
    color: var(--color-primary-text);
}

/* Primary Outlined Button */
.button.is-primary.is-outlined {
    background-color: transparent;
    border-color: var(--color-primary);
    color: var(--color-primary);
    box-shadow: var(--neo-shadow-offset) var(--neo-shadow-offset) 0px var(--color-primary-darker);
}

.button.is-primary.is-outlined:hover, .button.is-primary.is-outlined:focus {
    background-color: var(--color-primary);
    border-color: var(--color-primary);
    color: var(--color-primary-text);
    box-shadow: calc(var(--neo-shadow-offset) + 2px) calc(var(--neo-shadow-offset) + 2px) 0px var(--color-primary-darker);
}


/* Input fields - Neo-Brutalism touch */
.input, .textarea {
    font-family: var(--font-family-body);
    border-radius: var(--border-radius-sharp);
    border: 2px solid var(--color-border-strong);
    box-shadow: var(--neo-shadow-offset) var(--neo-shadow-offset) 0px var(--color-neo-shadow);
    transition: box-shadow var(--transition-speed) var(--transition-timing), border-color var(--transition-speed) var(--transition-timing);
}

.input:focus, .textarea:focus,
.input:active, .textarea:active {
    border-color: var(--color-primary);
    box-shadow: var(--neo-shadow-offset) var(--neo-shadow-offset) 0px var(--color-primary-darker);
}

/* 3. Header & Navigation
-------------------------------------------------------------- */
.header.is-fixed-top {
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    background-color: var(--color-background-body) !important; /* Override Bulma potential !important */
}

.navbar-item.logo-text strong {
    font-family: var(--font-family-headings);
    font-size: 1.5rem;
    color: var(--color-text-strong);
}
.navbar-item.logo-text .has-text-primary {
    color: var(--color-primary) !important;
}

.navbar-item {
    font-family: var(--font-family-headings);
    font-weight: 700;
    color: var(--color-text-strong);
    transition: background-color var(--transition-speed) var(--transition-timing), color var(--transition-speed) var(--transition-timing);
}

.navbar-item:hover, .navbar-item.is-active {
    background-color: var(--color-primary-darker) !important; /* Important to override Bulma */
    color: var(--color-primary-text) !important;
}

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

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

.hero-background-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--color-background-hero-overlay);
    z-index: 1;
}

#hero .hero-body {
    position: relative; /* To be above overlay */
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
}

#hero .hero-title, #hero .hero-subtitle {
    color: var(--color-text-light) !important; /* IMPORTANT: Ensure text is white */
    text-shadow: 2px 2px 4px rgba(0,0,0,0.7);
}

#hero .hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 1rem;
}

#hero .hero-subtitle {
    font-size: 1.5rem;
    font-weight: 400;
    margin-bottom: 2rem;
    font-family: var(--font-family-body);
}

.animated-icon {
    display: inline-block;
    transition: transform var(--transition-speed) var(--transition-timing);
}

#hero .button:hover .animated-icon {
    transform: translateX(5px);
}

@media screen and (max-width: 768px) {
    #hero .hero-title {
        font-size: 2.5rem;
    }
    #hero .hero-subtitle {
        font-size: 1.2rem;
    }
}

/* 5. About Us & Vision Sections
-------------------------------------------------------------- */
#about, #vision {
    /* General styling inherited */
}
#about.has-background-light, #vision.has-background-light {
    background-color: var(--color-background-light) !important;
}

/* 6. Services Section & Cards
-------------------------------------------------------------- */
#services.has-background-grey-lighter {
    background-color: var(--color-background-light) !important;
}

.service-card, .news-card { /* Applying to both for consistency */
    border: var(--neo-border);
    box-shadow: var(--neo-shadow-offset) var(--neo-shadow-offset) 0px var(--color-neo-shadow);
    border-radius: var(--border-radius-sharp);
    transition: transform var(--transition-speed) var(--transition-timing), box-shadow var(--transition-speed) var(--transition-timing);
    height: 100%; /* Make cards in a row equal height */
    display: flex;
    flex-direction: column;
}

.service-card:hover, .news-card:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: calc(var(--neo-shadow-offset) + 3px) calc(var(--neo-shadow-offset) + 3px) 0px var(--color-primary-darker);
}

.service-card .card-image, .news-card .card-image {
    border-bottom: var(--neo-border);
    overflow: hidden; /* Ensures image respects border radius if any */
}

.service-card .card-image figure, .news-card .card-image figure {
    height: 200px; /* Fixed height for image container */
}
.service-card .card-image img, .news-card .card-image img {
    object-fit: cover;
    width: 100%;
    height: 100%;
    transition: transform 0.4s ease;
}
.service-card:hover .card-image img, .news-card:hover .card-image img {
    transform: scale(1.05);
}


.card-content {
    padding: 1.5rem;
    text-align: left; /* Default, can be centered if needed */
    flex-grow: 1; /* Allows content to fill space for equal height cards */
    display: flex;
    flex-direction: column;
}
.card-content .content {
    flex-grow: 1;
}

.card-title {
    font-family: var(--font-family-headings);
    color: var(--color-text-strong) !important;
    margin-bottom: 0.75rem !important;
}

/* 7. External Resources Section
-------------------------------------------------------------- */
.external-links-container .box.resource-link-item {
    border: 2px solid var(--color-border);
    border-radius: var(--border-radius-sharp);
    box-shadow: none; /* More subtle for list items */
    transition: border-color var(--transition-speed) var(--transition-timing), transform var(--transition-speed) var(--transition-timing);
    margin-bottom: 1rem;
}

.external-links-container .box.resource-link-item:hover {
    border-color: var(--color-primary);
    transform: translateX(3px);
}

.external-links-container .box.resource-link-item h4 a {
    color: var(--color-secondary);
}
.external-links-container .box.resource-link-item h4 a:hover {
    color: var(--color-secondary-darker);
}

/* 8. Partners Section
-------------------------------------------------------------- */
#partners.has-background-light {
    background-color: var(--color-background-light) !important;
}

.partners-logos img {
    max-height: 60px; /* Control logo size */
    width: auto;
    margin: 1rem;
    filter: grayscale(100%);
    transition: filter var(--transition-speed) var(--transition-timing), transform var(--transition-speed) var(--transition-timing);
}

.partners-logos img:hover {
    filter: grayscale(0%);
    transform: scale(1.1);
}

/* 9. News Section
-------------------------------------------------------------- */
.news-read-more {
    display: inline-block;
    margin-top: 0.75rem;
    font-weight: bold;
    color: var(--color-primary);
    text-decoration: none;
    transition: color var(--transition-speed) var(--transition-timing);
}

.news-read-more:hover {
    color: var(--color-primary-darker);
    text-decoration: underline;
}
.news-read-more::after {
    content: ' →';
    transition: transform 0.2s ease-out;
    display: inline-block;
}
.news-read-more:hover::after {
    transform: translateX(4px);
}

.news-card .subtitle.is-muted {
    color: var(--color-text-muted) !important;
    font-size: 0.85rem;
}

/* 10. Gallery Section
-------------------------------------------------------------- */
#gallery.has-background-grey-lighter {
    background-color: var(--color-background-light) !important;
}

.gallery-item img {
    border: var(--neo-border);
    box-shadow: var(--neo-shadow-offset) var(--neo-shadow-offset) 0px var(--color-neo-shadow);
    border-radius: var(--border-radius-sharp);
    object-fit: cover;
    width: 100%;
    height: 100%; /* For Bulma is-square */
    cursor: pointer;
    transition: transform var(--transition-speed) var(--transition-timing), box-shadow var(--transition-speed) var(--transition-timing);
}

.gallery-item img:hover {
    transform: scale(1.05) rotate(1deg);
    box-shadow: calc(var(--neo-shadow-offset) + 2px) calc(var(--neo-shadow-offset) + 2px) 0px var(--color-primary-darker);
}

/* Bulma Modal Customization (Optional, default is usually fine) */
.modal-content {
    border-radius: var(--border-radius-soft);
    overflow: hidden; /* if image is direct child */
}
.modal-content img {
    display: block; /* remove extra space below image */
}

/* 11. Contact Details Section
-------------------------------------------------------------- */
.contact-info-block {
    margin: 2rem 0;
    padding: 1.5rem;
    border: 2px dashed var(--color-primary);
    border-radius: var(--border-radius-soft);
    background-color: var(--color-background-light);
}
.contact-info-block p {
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}
.contact-info-block strong {
    color: var(--color-text-strong);
}

/* 12. Footer
-------------------------------------------------------------- */
.footer {
    background-color: var(--color-background-dark);
    color: var(--color-text-light);
    padding: 3rem 1.5rem 2rem; /* More top padding */
}

.footer .title.has-text-white {
    color: var(--color-text-light) !important;
    font-weight: 700;
    margin-bottom: 1rem;
}
.footer .logo-text .has-text-primary {
    color: var(--color-primary) !important;
}

.footer-links li {
    margin-bottom: 0.5rem;
}

.footer-links a, .footer .social-links a {
    color: var(--color-text-light) !important; /* Override Bulma's link colors for footer */
    opacity: 0.8;
    transition: opacity var(--transition-speed) var(--transition-timing);
    font-family: var(--font-family-body);
}

.footer-links a:hover, .footer .social-links a:hover {
    opacity: 1;
    color: var(--color-primary) !important;
}

.footer .content p {
    color: var(--color-text-light) !important;
    opacity: 0.7;
}

/* 13. Scroll-dependent Animations
-------------------------------------------------------------- */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s var(--transition-timing), transform 0.6s var(--transition-timing);
}

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

/* 14. Specific Page Styles (Success Page)
-------------------------------------------------------------- */
body.success-page {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    text-align: center;
    background-color: var(--color-background-light);
    padding: 2rem;
}
body.success-page .success-container {
    background-color: var(--color-background-body);
    padding: 3rem;
    border-radius: var(--border-radius-soft);
    border: var(--neo-border);
    box-shadow: var(--neo-shadow-offset) var(--neo-shadow-offset) 0px var(--color-neo-shadow);
}
body.success-page .success-icon {
    font-size: 4rem;
    color: var(--color-accent2); /* Green for success */
    margin-bottom: 1rem;
}

/* 15. Responsive adjustments for columns
-------------------------------------------------------------- */
.columns.is-two-thirds .column.is-two-thirds { /* Ensure content is well-distributed */
    margin-left: auto;
    margin-right: auto;
}

/* 16. Cookie Consent Popup (Inline styles in HTML are primary)
    This is just for reference or minor additions if needed.
    The HTML provided has its own styling.
-------------------------------------------------------------- */
#cookieConsentPopup {
    box-shadow: 0 -2px 10px rgba(0,0,0,0.2);
}

#acceptCookieButton {
    /* Style is in HTML, but if more specific needed: */
    /* font-family: var(--font-family-headings); */
}

/* Text selection color */
::selection {
    background-color: var(--color-primary);
    color: var(--color-primary-text);
}
::-moz-selection { /* Firefox */
    background-color: var(--color-primary);
    color: var(--color-primary-text);
}