/* style.css */

/* -------------------------------------------------------------------
   1. CSS Variables (Theme Configuration)
------------------------------------------------------------------- */
:root {
    /* Tetradic Color Scheme */
    --primary-color: #0D3B66;      /* Deep Sapphire Blue */
    --secondary-color: #F95738;    /* Fiery Orange */
    --accent-color-1: #00A878;     /* Sea Green */
    --accent-color-2: #EE964B;     /* Muted Orange/Gold */

    /* Neutral & Text Colors */
    --background-light: #F4F4F4;
    --background-dark: #333333;
    --text-dark: #222222;
    --text-light: #FFFFFF;
    --border-color: #222222;

    /* Typography */
    --font-heading: 'Archivo Black', sans-serif;
    --font-body: 'Roboto', sans-serif;

    /* Sizing & Spacing */
    --header-height: 80px;
    --border-width: 3px;
    --border-radius: 0; /* Brutalism: Sharp corners */
}

/* -------------------------------------------------------------------
   2. Base & General Styles
------------------------------------------------------------------- */
html {
    scroll-behavior: smooth;
    background-color: var(--background-light);
}

body {
    font-family: var(--font-body);
    color: var(--text-dark);
    line-height: 1.7;
    font-size: 1.1rem;
    overflow-x: hidden;
}

#page-container {
    position: relative;
    min-height: 100vh;
}

#content-wrap {
    padding-bottom: 250px; /* Footer height */
}

/* Specific styles for legal pages to avoid header overlap */
.page-content {
    padding-top: var(--header-height);
}

/* -------------------------------------------------------------------
   3. Typography
------------------------------------------------------------------- */
h1, h2, h3, h4, h5, h6, .title, .subtitle {
    font-family: var(--font-heading);
    color: var(--text-dark);
    text-transform: uppercase;
    letter-spacing: 1px;
    text-shadow: 2px 2px 0 rgba(0,0,0,0.05);
}

.title.is-1, .title.is-2 {
    line-height: 1.2;
}

.section-title {
    margin-bottom: 3rem !important;
}

a {
    color: var(--secondary-color);
    transition: all 0.3s ease-in-out;
}

a:hover {
    color: var(--primary-color);
    text-decoration: underline;
}

/* -------------------------------------------------------------------
   4. Header & Navigation
------------------------------------------------------------------- */
.header.is-fixed-top {
    height: var(--header-height);
    background: var(--text-light);
    border-bottom: var(--border-width) solid var(--border-color);
}

.navbar {
    height: 100%;
}

.navbar-item.logo {
    font-family: var(--font-heading);
    font-size: 2rem;
    color: var(--primary-color);
}

.navbar-item {
    font-family: var(--font-body);
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--text-dark);
    transition: background-color 0.3s, color 0.3s;
}

.navbar-item:hover, .navbar-item:focus {
    background-color: var(--secondary-color) !important;
    color: var(--text-light) !important;
}

.navbar-burger {
    color: var(--text-dark);
    height: var(--header-height);
    width: var(--header-height);
}

@media screen and (max-width: 1023px) {
    .navbar-menu {
        background-color: var(--text-light);
        border: var(--border-width) solid var(--border-color);
        border-top: none;
    }
}

/* -------------------------------------------------------------------
   5. Global Components (Brutalist Style)
------------------------------------------------------------------- */
/* Buttons */
.button.brutalist-button {
    font-family: var(--font-heading);
    background-color: var(--secondary-color);
    color: var(--text-light);
    border: var(--border-width) solid var(--border-color);
    border-radius: var(--border-radius);
    text-transform: uppercase;
    box-shadow: 5px 5px 0 var(--border-color);
    transition: transform 0.2s ease-out, box-shadow 0.2s ease-out, background-color 0.2s ease-out;
}

.button.brutalist-button:hover,
.button.brutalist-button:focus {
    background-color: var(--accent-color-1);
    color: var(--text-light);
    transform: translate(2px, 2px);
    box-shadow: 3px 3px 0 var(--border-color);
}

.button.brutalist-button:active {
    transform: translate(5px, 5px);
    box-shadow: none;
}

.button.is-primary {
     background-color: var(--primary-color);
}

.button.is-primary:hover,
.button.is-primary:focus {
     background-color: var(--accent-color-2);
}


/* Form Inputs */
.input.brutalist-input,
.textarea.brutalist-textarea {
    background-color: var(--background-light);
    border: var(--border-width) solid var(--border-color);
    border-radius: var(--border-radius);
    box-shadow: none;
    transition: box-shadow 0.2s ease;
}

.input.brutalist-input:focus,
.textarea.brutalist-textarea:focus {
    border-color: var(--secondary-color);
    box-shadow: 0 0 0 3px rgba(249, 87, 56, 0.25);
}

/* Cards */
.card.brutalist-card, .box.brutalist-box {
    border: var(--border-width) solid var(--border-color);
    border-radius: var(--border-radius);
    box-shadow: 8px 8px 0 rgba(0, 0, 0, 0.1);
    background-color: white;
}

.card .card-image .image-container {
    overflow: hidden;
    height: 250px; /* Fixed height for consistency */
}

.card .card-image img {
    height: 100%;
    width: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.card:hover .card-image img {
    transform: scale(1.05);
}


/* -------------------------------------------------------------------
   6. Section-Specific Styles
------------------------------------------------------------------- */

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

#hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(0deg, rgba(13, 59, 102, 0.6), rgba(0, 0, 0, 0.4));
    z-index: 1;
}

#hero .hero-body {
    position: relative;
    z-index: 2;
}

.hero-title, .hero-subtitle {
    text-shadow: 2px 2px 5px rgba(0,0,0,0.7);
}

/* Innovation Section */
#innovation {
    color: var(--text-light);
    position: relative;
    background-size: cover;
    background-position: center;
    background-attachment: fixed; /* Parallax effect */
}

#innovation::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(13, 59, 102, 0.85); /* Dark blue overlay */
    z-index: 1;
}
#innovation .container {
    position: relative;
    z-index: 2;
}

.stat-number {
    font-family: var(--font-heading);
    font-size: 5rem;
    color: var(--accent-color-2) !important;
}

/* History Section (Bulma Timeline) */
.timeline {
    margin-top: 4rem;
}

.timeline .timeline-item .timeline-marker {
    background-color: var(--primary-color);
    border: var(--border-width) solid var(--border-color);
}
.timeline .timeline-item .timeline-content {
    background: var(--background-light);
    padding: 1.5rem;
    border: var(--border-width) solid var(--border-color);
    border-radius: var(--border-radius);
}
.timeline .timeline-content .heading {
    color: var(--secondary-color);
    font-family: var(--font-heading);
}

/* Testimonials Section */
.testimonial-carousel {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.testimonial-card {
    border: var(--border-width) solid var(--border-color);
    border-radius: var(--border-radius);
    background: white;
    box-shadow: 6px 6px 0 var(--accent-color-2);
}

.testimonial-card .media-left img {
    border: var(--border-width) solid var(--border-color);
}


/* -------------------------------------------------------------------
   7. Footer
------------------------------------------------------------------- */
.footer {
    position: absolute;
    bottom: 0;
    width: 100%;
    height: auto;
    padding: 3rem 1.5rem 3rem;
    background-color: var(--background-dark);
    color: var(--text-light);
}

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

.footer a {
    color: var(--accent-color-2);
}

.footer a:hover {
    color: var(--text-light);
    text-decoration: underline;
}

.footer ul {
    list-style: none;
    margin-left: 0;
}

/* -------------------------------------------------------------------
   8. Animations & Transitions
------------------------------------------------------------------- */
/* Initial state for scroll animations */
.animated-element {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

/* Final state for scroll animations */
.animated-element.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* -------------------------------------------------------------------
   9. Media Queries (Responsiveness)
------------------------------------------------------------------- */
@media screen and (max-width: 768px) {
    body {
        font-size: 1rem;
    }

    .title.is-1 {
        font-size: 2.5rem;
    }

    .title.is-2 {
        font-size: 2rem;
    }
    
    .stat-number {
        font-size: 4rem;
    }

    #content-wrap {
        padding-bottom: 400px; /* Adjust footer height for mobile */
    }

    .footer .columns {
        text-align: center;
    }
}