/* style.css */

/* -------------------------------------------------------------------------- */
/* Variables                                                                  */
/* -------------------------------------------------------------------------- */
:root {
    /* Color Palette (Split-Complementary & Neomorphism Friendly) */
    --primary-color: #3D8BFD; /* Bright Blue */
    --primary-color-dark: #1B68D3;
    --secondary-color: #FFA726; /* Orange Accent */
    --secondary-color-dark: #F57C00;
    --tertiary-color: #26A69A; /* Teal/Green Accent */
    --tertiary-color-dark: #00796B;

    --neomorphism-bg: #F0F3F8; /* Very Light Gray/Blueish - Main BG for Neomorphic elements */
    --neomorphism-bg-darker: #D9DDE3;
    --neomorphism-bg-darkest: #C0C5CB;

    --text-color-base: #363636; /* Bulma's default for body */
    --text-color-light: #FFFFFF;
    --text-color-headings: #222222; /* Dark for section titles */
    --text-color-muted: #7a7a7a;

    /* Neomorphism Shadows */
    --shadow-neumorphic-main: 6px 6px 12px #d1d9e6, -6px -6px 12px #ffffff;
    --shadow-neumorphic-inset: inset 4px 4px 8px #d1d9e6, inset -4px -4px 8px #ffffff;
    --shadow-neumorphic-raised: 8px 8px 16px #d1d9e6, -8px -8px 16px #ffffff;
    --shadow-neumorphic-pressed: inset 4px 4px 8px #d1d9e6, inset -4px -4px 8px #ffffff;

    /* Fonts */
    --font-family-headings: 'Oswald', sans-serif;
    --font-family-body: 'Nunito', sans-serif;

    /* Layout */
    --navbar-height: 3.25rem; /* Default Bulma navbar height */
    --section-padding: 4rem 1.5rem;
    --card-border-radius: 15px;
    --button-border-radius: 10px;

    /* Transitions */
    --transition-speed-fast: 0.2s;
    --transition-speed-normal: 0.3s;
}

/* -------------------------------------------------------------------------- */
/* Global Styles                                                              */
/* -------------------------------------------------------------------------- */
html {
    scroll-behavior: smooth;
    background-color: var(--neomorphism-bg); /* Base background for the page */
}

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

/* Apply top padding for fixed navbar on content pages */
.content-page-padding {
    padding-top: calc(var(--navbar-height) + 2rem); /* Adjust as needed */
}

h1, h2, h3, h4, h5, h6,
.title, .subtitle {
    font-family: var(--font-family-headings);
    color: var(--text-color-headings);
    font-weight: 700;
}
.title { margin-bottom: 1rem; }
.subtitle { margin-bottom: 2rem; color: var(--text-color-muted);}


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

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

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

.section {
    padding: var(--section-padding);
}

/* Utility class for full viewport height centering (e.g., success.html) */
.full-vh-centered {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 2rem;
    background-color: var(--neomorphism-bg);
}

.full-vh-centered .title {
    color: var(--primary-color);
}
.full-vh-centered .button {
    margin-top: 1.5rem;
}

/* Main container to constrain width */
.main-container {
    background-color: var(--neomorphism-bg);
}


/* -------------------------------------------------------------------------- */
/* Neomorphism Styles                                                         */
/* -------------------------------------------------------------------------- */

/* Base Neomorphic Button Styles (Bulma's .button is base) */
.button.neomorphic-button,
.button.neomorphic-button-raised {
    background-color: var(--neomorphism-bg);
    color: var(--primary-color);
    border: none;
    box-shadow: var(--shadow-neumorphic-main);
    transition: all var(--transition-speed-normal) ease;
    font-weight: bold;
    border-radius: var(--button-border-radius);
    padding-left: 1.5em;
    padding-right: 1.5em;
}

.button.neomorphic-button:hover,
.button.neomorphic-button-raised:hover {
    color: var(--primary-color-dark);
    box-shadow: var(--shadow-neumorphic-raised);
    transform: translateY(-2px);
}

.button.neomorphic-button:active,
.button.neomorphic-button-raised:active {
    box-shadow: var(--shadow-neumorphic-pressed);
    transform: translateY(1px);
}

.button.is-primary.neomorphic-button,
.button.is-primary.neomorphic-button-raised {
    background-color: var(--primary-color);
    color: var(--text-color-light);
    box-shadow: 6px 6px 12px #b3c0d1, -6px -6px 12px #ffffff, inset 1px 1px 2px rgba(255,255,255,0.5), inset -1px -1px 2px rgba(0,0,0,0.1);
}
.button.is-primary.neomorphic-button:hover,
.button.is-primary.neomorphic-button-raised:hover {
    background-color: var(--primary-color-dark);
    box-shadow: 8px 8px 16px #b3c0d1, -8px -8px 16px #ffffff, inset 1px 1px 2px rgba(255,255,255,0.5), inset -1px -1px 2px rgba(0,0,0,0.1);
}
.button.is-primary.neomorphic-button:active,
.button.is-primary.neomorphic-button-raised:active {
    box-shadow: inset 4px 4px 8px #165bb6, inset -4px -4px 8px #2075f0;
}


/* Neomorphic Cards */
.card.neomorphic-card {
    background-color: var(--neomorphism-bg);
    box-shadow: var(--shadow-neumorphic-main);
    border-radius: var(--card-border-radius);
    transition: all var(--transition-speed-normal) ease;
    overflow: hidden; /* Ensures border-radius applies to images */
    display: flex;
    flex-direction: column;
}
.card.neomorphic-card:hover {
    box-shadow: var(--shadow-neumorphic-raised);
    transform: translateY(-5px);
}
.card.neomorphic-card .card-image {
    border-top-left-radius: var(--card-border-radius);
    border-top-right-radius: var(--card-border-radius);
    overflow: hidden; /* Clip image to rounded corners */
}
.card.neomorphic-card .card-image img {
    display: block;
    width: 100%;
    height: 200px; /* Fixed height for card images */
    object-fit: cover; /* Ensures image covers the area without distortion */
}
.card.neomorphic-card .card-content {
    padding: 1.5rem;
    flex-grow: 1; /* Allows content to fill available space */
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}
.card.neomorphic-card .card-content .title.card-title {
    margin-bottom: 0.75rem;
    color: var(--text-color-headings);
    font-size: 1.25rem;
}
.card.neomorphic-card .card-content .content {
    font-size: 0.9rem;
    color: var(--text-color-base);
    margin-bottom: 1rem;
}
.card.neomorphic-card .button {
    margin-top: auto; /* Pushes button to the bottom */
}

/* Neomorphic Flat Cards (for news, resources - less pronounced shadow) */
.card.neomorphic-card-flat {
    background-color: var(--neomorphism-bg);
    border-radius: var(--card-border-radius);
    box-shadow: 4px 4px 8px #d1d9e6, -4px -4px 8px #ffffff;
    padding: 1.5rem;
    transition: box-shadow var(--transition-speed-normal) ease;
}
.card.neomorphic-card-flat:hover {
     box-shadow: 6px 6px 12px #c8d0db, -6px -6px 12px #ffffff;
}

/* Neomorphic Inputs & Textarea */
.input.neomorphic-input,
.textarea.neomorphic-textarea {
    background-color: var(--neomorphism-bg);
    border: 1px solid var(--neomorphism-bg-darker); /* Subtle border */
    box-shadow: var(--shadow-neumorphic-inset);
    border-radius: var(--button-border-radius);
    color: var(--text-color-base);
    transition: box-shadow var(--transition-speed-normal) ease;
}
.input.neomorphic-input::placeholder,
.textarea.neomorphic-textarea::placeholder {
    color: var(--text-color-muted);
}
.input.neomorphic-input:focus,
.textarea.neomorphic-textarea:focus {
    border-color: var(--primary-color);
    box-shadow: var(--shadow-neumorphic-inset), 0 0 0 0.125em rgba(var(--primary-color), 0.25);
    outline: none;
}

/* Neomorphic Timeline Elements */
.timeline .timeline-marker.neomorphic-marker {
    background-color: var(--neomorphism-bg);
    box-shadow: var(--shadow-neumorphic-main);
    border: none;
}
.timeline .timeline-marker.neomorphic-marker.is-image img {
    border-radius: 50%;
}
.timeline .timeline-content.neomorphic-panel {
    background-color: var(--neomorphism-bg);
    box-shadow: var(--shadow-neumorphic-main);
    border-radius: var(--card-border-radius);
    padding: 1.5rem;
}
.timeline .timeline-header .tag.neomorphic-tag {
    background-color: var(--primary-color);
    color: var(--text-color-light);
    box-shadow: 3px 3px 6px #b3c0d1, -3px -3px 6px #ffffff;
    border-radius: var(--button-border-radius);
    padding: 0.5em 1em;
}

/* -------------------------------------------------------------------------- */
/* Header / Navbar                                                            */
/* -------------------------------------------------------------------------- */
.site-header.is-fixed-top {
    background-color: rgba(240, 243, 248, 0.85); /* Semi-transparent neomorphic bg */
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    z-index: 1000;
}

.site-header .navbar-item,
.site-header .navbar-link {
    color: var(--text-color-base);
    font-family: var(--font-family-body);
    font-weight: 700;
}
.site-header .navbar-item:hover,
.site-header .navbar-link:hover {
    background-color: var(--neomorphism-bg-darker);
    color: var(--primary-color);
}
.site-header .navbar-item.logo-text {
    font-family: var(--font-family-headings);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
}
.site-header .navbar-item.logo-text:hover {
    color: var(--primary-color-dark);
    background-color: transparent;
}

.site-header .navbar-burger {
    color: var(--primary-color);
}

/* Active state for navbar burger (JS will toggle .is-active) */
@media screen and (max-width: 1023px) {
    .navbar-menu.is-active {
        background-color: var(--neomorphism-bg);
        box-shadow: 0 8px 16px rgba(10,10,10,.1);
        border-radius: 0 0 var(--card-border-radius) var(--card-border-radius);
    }
}

/* -------------------------------------------------------------------------- */
/* Hero Section                                                               */
/* -------------------------------------------------------------------------- */
.hero-section {
    position: relative;
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    color: var(--text-color-light);
}

.hero-background-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(rgba(0,0,0,0.5), rgba(0,0,0,0.5));
    z-index: 1;
}

.hero-section .hero-body {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-section .hero-title {
    color: var(--text-color-light); /* Ensure white text, as per req */
    font-size: 3.5rem;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 8px rgba(0,0,0,0.7);
}

.hero-section .hero-subtitle {
    color: var(--text-color-light); /* Ensure white text */
    font-size: 1.5rem;
    margin-bottom: 2rem;
    text-shadow: 1px 1px 6px rgba(0,0,0,0.6);
}

.hero-section .button.is-primary.neomorphic-button-raised {
    font-size: 1.2rem;
    padding: 1em 2em;
}

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

/* -------------------------------------------------------------------------- */
/* Section Titles                                                             */
/* -------------------------------------------------------------------------- */
.section-title {
    color: var(--text-color-headings);
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}
.section-subtitle {
    color: var(--text-color-muted);
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 3rem;
}

/* -------------------------------------------------------------------------- */
/* Services Section                                                           */
/* -------------------------------------------------------------------------- */
/* Uses default .card.neomorphic-card styles */
.services-section .card .button {
    background-color: transparent;
    border-color: var(--primary-color);
    color: var(--primary-color);
    box-shadow: none;
}
.services-section .card .button:hover {
    background-color: var(--primary-color);
    color: var(--text-color-light);
    border-color: var(--primary-color);
}

/* -------------------------------------------------------------------------- */
/* News Section                                                               */
/* -------------------------------------------------------------------------- */
.news-section.textured-background {
    background-color: var(--neomorphism-bg-darker); /* Example textured background */
    /* background-image: url('path/to/subtle-texture.png'); */
}
.news-section .article-card .article-title {
    color: var(--text-color-headings);
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
}
.news-section .article-card .article-date {
    color: var(--text-color-muted);
    font-size: 0.85rem;
    margin-bottom: 0.75rem;
}
.read-more-link {
    display: inline-block;
    color: var(--primary-color);
    font-weight: bold;
    text-decoration: none;
    transition: color var(--transition-speed-normal) ease, transform var(--transition-speed-normal) ease;
    margin-top: 0.5rem;
}
.read-more-link:hover {
    color: var(--secondary-color);
    text-decoration: underline;
    transform: translateX(4px);
}


/* -------------------------------------------------------------------------- */
/* Behind The Scenes (Timeline)                                               */
/* -------------------------------------------------------------------------- */
.behind-scenes-section .timeline.is-centered .timeline-header {
    width: auto; /* Allow tag to determine width */
    margin-bottom: 1.5rem;
}
.behind-scenes-section .timeline-item .timeline-content p.heading {
    color: var(--primary-color); /* Highlight headings in timeline items */
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 0.25rem;
}
.behind-scenes-section .timeline-item .timeline-content p:not(.heading) {
    font-size: 0.95rem;
}


/* -------------------------------------------------------------------------- */
/* Gallery Section                                                            */
/* -------------------------------------------------------------------------- */
.gallery-section .card.neomorphic-card .card-image img {
    height: 220px; /* Slightly taller for gallery */
}
.gallery-section .card.neomorphic-card .card-content .title.card-title {
    font-size: 1.1rem;
}


/* -------------------------------------------------------------------------- */
/* External Resources Section                                                 */
/* -------------------------------------------------------------------------- */
.external-resources-section.textured-background-alt {
    background-color: var(--neomorphism-bg-darker);
}
.external-resources-section .resource-card .title a {
    color: var(--primary-color);
    font-size: 1.15rem;
}
.external-resources-section .resource-card .title a:hover {
    color: var(--primary-color-dark);
    text-decoration: underline;
}
.external-resources-section .resource-card .content {
    font-size: 0.9rem;
    color: var(--text-color-muted);
}

/* -------------------------------------------------------------------------- */
/* Contact Section                                                            */
/* -------------------------------------------------------------------------- */
.contact-section .neomorphic-form .label {
    color: var(--text-color-headings);
    font-weight: bold;
}
.contact-section .neomorphic-form .button.is-primary {
    min-width: 150px; /* Give button a decent size */
}


/* -------------------------------------------------------------------------- */
/* Footer                                                                     */
/* -------------------------------------------------------------------------- */
.site-footer {
    background-color: var(--neomorphism-bg-darkest); /* Darker shade for footer */
    color: var(--text-color-base);
    padding: 3rem 1.5rem;
    margin-top: 2rem; /* Ensure space above footer */
}
.site-footer .footer-title {
    font-family: var(--font-family-headings);
    font-size: 1.2rem;
    color: var(--text-color-headings);
    margin-bottom: 1rem;
    text-transform: uppercase;
}
.site-footer p, .site-footer li {
    font-size: 0.9rem;
    color: var(--text-color-muted);
}
.site-footer ul {
    list-style: none;
    margin-left: 0;
}
.site-footer ul li {
    margin-bottom: 0.5rem;
}
.site-footer a {
    color: var(--primary-color);
    font-weight: normal; /* Override Bulma's bold for footer links unless specified */
}
.site-footer a:hover {
    color: var(--primary-color-dark);
    text-decoration: underline;
}
.site-footer .content.has-text-centered p {
    color: var(--text-color-muted); /* Ensure copyright text is also muted */
}
.site-footer .column.is-one-third p a { /* Social media links */
    margin: 0 0.25rem;
}


/* -------------------------------------------------------------------------- */
/* Cookie Consent Popup                                                       */
/* -------------------------------------------------------------------------- */
/* HTML already has inline styles, but can be enhanced here if needed,
   though prompt said minimal CSS in HTML.
   e.g., #cookie-consent-popup { font-family: var(--font-family-body); }
*/

/* -------------------------------------------------------------------------- */
/* Responsive Adjustments (Bulma handles most)                                */
/* -------------------------------------------------------------------------- */
@media screen and (max-width: 768px) {
    .section {
        padding: 3rem 1rem;
    }
    .title.is-1 { font-size: 2.5rem; }
    .title.is-2 { font-size: 2rem; }
    .subtitle.is-3 { font-size: 1.25rem; }

    .columns.is-centered .column.is-two-thirds {
        width: 90%; /* More width on mobile for forms */
    }
}