/* style.css */

/*
--- TABLE OF CONTENTS ---
1.  CSS Variables
2.  Global Styles & Reset
3.  Typography
4.  Reusable Components (Buttons, Forms, Cards)
5.  Layout & Section Styling
6.  Header & Navigation
7.  Specific Section Styles
    - Hero Section
    - Process (Timeline)
    - Innovation & Awards
    - Customer Stories
    - Resources
    - Contact
    - Footer
8.  Static Pages (Success, Privacy, Terms)
9.  Animations & Interactions
10. Media Queries & Responsiveness
*/

/* 1. CSS Variables */
:root {
    /* Analogous Color Scheme: Based on Earthy Tones + Cool Accent */
    --primary-color: #d97706; /* Amber/Orange */
    --primary-color-dark: #b45309;
    --secondary-color: #0d9488; /* Teal */
    --accent-color: #f59e0b;   /* Bright Gold/Yellow */
    
    /* Neutral & Background Colors */
    --background-light: #f8f7f4;
    --background-dark: #1a1a1a;
    --text-dark: #222222;
    --text-light: #ffffff;
    --border-color: #333333;
    --border-light: #e5e5e5;

    /* Fonts */
    --font-heading: 'Poppins', sans-serif;
    --font-body: 'Work Sans', sans-serif;

    /* Sizing & Spacing */
    --navbar-height: 52px; /* Bulma's default */
    --section-padding: 4rem 1.5rem;
}

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

body {
    font-family: var(--font-body);
    color: var(--text-dark);
    font-size: 1rem;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* 3. Typography */
h1, h2, h3, h4, h5, h6, .title, .subtitle {
    font-family: var(--font-heading);
    color: var(--text-dark);
    font-weight: 700;
}

/* Adaptive Typography using clamp() */
.title.is-1 {
    font-size: clamp(2.5rem, 5vw + 1rem, 4.5rem);
}

.title.is-2 {
    font-size: clamp(2rem, 4vw + 1rem, 3.5rem);
}

.title.is-3 {
    font-size: clamp(1.75rem, 3vw + 1rem, 2.75rem);
}

.title.is-4 {
    font-size: clamp(1.25rem, 2vw + 1rem, 2rem);
}

a {
    color: var(--primary-color);
    transition: color 0.3s ease;
}

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

/* 4. Reusable Components (Buttons, Forms, Cards) */

/* Global Button Styles (Brutalism) */
.button {
    font-family: var(--font-heading);
    font-weight: 700 !important;
    text-transform: uppercase;
    border-radius: 0 !important;
    border-width: 2px !important;
    border-style: solid !important;
    transition: all 0.3s ease;
    letter-spacing: 1px;
}

.button:hover, .button:focus {
    transform: translateY(-3px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

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

.button.is-primary:hover {
    background-color: var(--primary-color-dark);
    border-color: var(--primary-color-dark);
    color: var(--text-light);
}

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

.button.is-primary.is-outlined:hover {
    background-color: var(--primary-color);
    color: var(--text-light);
}

/* Forms */
.input, .textarea {
    border-radius: 0;
    border: 2px solid var(--border-light);
    box-shadow: none;
    transition: border-color 0.3s ease;
}

.input:focus, .textarea:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px rgba(217, 119, 6, 0.2);
}

.label {
    font-family: var(--font-heading);
    font-weight: 600;
    color: var(--text-dark);
}

/* Cards */
.card {
    border-radius: 0;
    border: 2px solid var(--border-light);
    box-shadow: none;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
    background-color: var(--text-light);
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.card .card-content {
    text-align: left; /* Keep content aligned left, but center parent if needed */
}

.card .media {
    align-items: center;
}

/* Card image must be centered and not distorted */
.card .card-image {
    display: block; /* Bulma default */
    position: relative;
}

.card .card-image img {
    width: 100%;
    height: 250px; /* Fixed height for consistency */
    object-fit: cover;
    display: block;
}


/* 5. Layout & Section Styling */
.section {
    padding: var(--section-padding);
}

.has-background-light {
    background-color: var(--background-light) !important;
}

.has-background-dark {
    background-color: var(--background-dark) !important;
}

/* 6. Header & Navigation */
.navbar.is-fixed-top {
    background-color: rgba(26, 26, 26, 0.9);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.navbar-item, .navbar-link {
    font-family: var(--font-body);
    font-weight: 500;
    color: var(--text-light) !important;
}

.navbar-item:hover, .navbar-link:hover, .navbar-item.is-active {
    background-color: transparent !important;
    color: var(--primary-color) !important;
}

.navbar-burger {
    color: var(--text-light);
}


/* 7. Specific Section Styles */

/* Hero Section */
#hero {
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    background-attachment: fixed; /* Parallax effect */
}

#hero .title, #hero .subtitle {
    color: var(--text-light);
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.7);
}

/* Process (Timeline) */
.timeline .timeline-item .timeline-marker.is-primary {
    background: var(--primary-color);
    border-color: var(--primary-color);
}
.timeline .timeline-header .tag.is-primary {
    background-color: var(--primary-color);
}
.timeline .timeline-item.is-primary .timeline-content {
    border-left: 2px solid var(--primary-color);
}

/* Innovation & Awards */
#awards .box {
    border-radius: 0;
    border: 2px solid var(--border-color);
    text-align: center;
}

#innovation .progress.is-primary::-webkit-progress-value {
    background-color: var(--primary-color);
}
#innovation .progress.is-primary::-moz-progress-bar {
    background-color: var(--primary-color);
}

/* Customer Stories */
#stories .card {
    background-color: var(--text-light);
}

#stories .card-content .media-content .title {
    color: var(--text-dark);
}

#stories img.is-rounded {
    border: 3px solid var(--primary-color);
}

/* Resources */
#resources .box {
    border-radius: 0;
    border: 1px solid var(--border-light);
    transition: border-color 0.3s ease;
}

#resources .box:hover {
    border-color: var(--primary-color);
}

/* Footer */
.footer {
    background-color: var(--background-dark);
    color: #a0a0a0;
    padding: 3rem 1.5rem 3rem;
}

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

.footer a {
    color: #a0a0a0;
}

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

.footer .content p {
    color: #a0a0a0;
}

/* 8. Static Pages (Success, Privacy, Terms) */
.static-page-content {
    padding-top: calc(var(--navbar-height) + 2rem);
    padding-bottom: 4rem;
    min-height: calc(100vh - var(--navbar-height));
}

.success-page-container {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    min-height: 100vh;
    padding: 2rem;
    background-color: var(--background-light);
}

.success-page-container .icon {
    font-size: 5rem;
    color: var(--secondary-color);
}


/* 9. Animations & Interactions */
[data-scroll-reveal] {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

[data-scroll-reveal].is-revealed {
    opacity: 1;
    transform: translateY(0);
}

/* 10. Media Queries & Responsiveness */
@media screen and (max-width: 1023px) {
    .navbar-menu {
        background-color: rgba(26, 26, 26, 0.98);
    }
    .navbar-item {
        text-align: center;
    }
}

@media screen and (max-width: 768px) {
    :root {
       --section-padding: 3rem 1rem;
    }

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

    .footer .column {
        margin-bottom: 2rem;
    }
}