/* ==========================================================================
   1. ROOT & VARIABLES
   ========================================================================== */

:root {
    /* Fonts */
    --font-heading: 'Space Grotesk', sans-serif;
    --font-body: 'DM Sans', sans-serif;

    /* Monochrome Color Palette */
    --color-background: #f0f0f0;
    --color-foreground: #ffffff;
    --color-text: #222222;
    --color-dark-bg: #111111;
    --color-light-text: #ffffff;
    --color-primary: #000000;
    --color-accent: #b0b0b0;
    --color-border: #000000;
    
    /* Brutalism Styles */
    --brutal-border: 2px solid var(--color-border);
    --brutal-shadow: 6px 6px 0px rgba(0, 0, 0, 0.8);
    --brutal-shadow-light: 4px 4px 0px var(--color-accent);
    --brutal-shadow-hover: 8px 8px 0px rgba(0, 0, 0, 1);

    /* Transitions */
    --transition-fast: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ==========================================================================
   2. BASE & TYPOGRAPHY
   ========================================================================== */

html {
    background-color: var(--color-background);
    scroll-behavior: smooth;
}

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

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    color: var(--color-text);
    font-weight: 700;
}

.title {
    font-family: var(--font-heading);
}

.subtitle {
    font-family: var(--font-body);
}

a {
    color: var(--color-primary);
    transition: var(--transition-fast);
    text-decoration: underline;
    text-underline-offset: 4px;
}

a:hover {
    color: #555;
    background-color: rgba(0,0,0,0.05);
}

.section {
    padding: 6rem 1.5rem;
}


/* ==========================================================================
   3. GLOBAL COMPONENTS & BUTTONS
   ========================================================================== */

/* Global Button Styles */
.button, button, input[type='submit'] {
    font-family: var(--font-heading);
    border: var(--brutal-border);
    box-shadow: var(--brutal-shadow-light);
    transition: var(--transition-fast);
    text-transform: uppercase;
    font-weight: 700;
    border-radius: 0 !important;
}

.button:hover, button:hover, input[type='submit']:hover {
    transform: translate(-4px, -4px);
    box-shadow: var(--brutal-shadow-hover);
}

.button:active, button:active, input[type='submit']:active {
    transform: translate(0, 0);
    box-shadow: none;
}

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

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

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


/* Brutalist Card Styles */
.card.brutalist-card {
    border-radius: 0;
    border: var(--brutal-border);
    box-shadow: var(--brutal-shadow);
    background-color: var(--color-foreground);
    transition: var(--transition-fast);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    height: 100%;
}

.card.brutalist-card:hover {
    transform: translate(-6px, -6px);
    box-shadow: var(--brutal-shadow-hover);
}

.card.brutalist-card .card-image {
    width: 100%;
}

.card.brutalist-card .card-image img {
    border-radius: 0;
    object-fit: cover;
    width: 100%;
    height: 250px; /* Fixed height for image containers */
}

.card.brutalist-card .card-content {
    width: 100%;
}


/* Brutalist Box Styles (for events) */
.box.brutalist-box {
    border-radius: 0;
    border: var(--brutal-border);
    box-shadow: var(--brutal-shadow-light);
    margin-bottom: 2rem;
}


/* ==========================================================================
   4. HEADER & NAVIGATION
   ========================================================================== */
.header.is-fixed-top {
    background-color: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.navbar-item, .navbar-link {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    text-transform: uppercase;
}

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

@media screen and (max-width: 1023px) {
    .navbar-menu {
        background-color: var(--color-foreground);
        box-shadow: 0 8px 16px rgba(0,0,0,.1);
    }
}


/* ==========================================================================
   5. SECTION-SPECIFIC STYLES
   ========================================================================== */

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

#hero .hero-body {
    display: flex;
    justify-content: center;
    align-items: center;
}

#hero h1, #hero p {
    color: var(--color-light-text); /* Enforce white text */
}

/* Features Section */
#features .progress {
    border-radius: 0;
    border: 2px solid var(--color-accent);
    height: 1.5rem;
}
#features .progress::-webkit-progress-bar {
    background-color: #444;
}
#features .progress::-webkit-progress-value {
    background-color: var(--color-light-text);
}
#features .progress::-moz-progress-bar {
    background-color: var(--color-light-text);
}
.feature-progress {
    margin-bottom: 1.5rem;
}

/* Customer Stories (Timeline) */
.timeline .timeline-item .timeline-content {
    background: var(--color-foreground);
    border: var(--brutal-border);
    padding: 1.5rem;
    border-radius: 0;
    box-shadow: var(--brutal-shadow-light);
}
.timeline .timeline-marker {
    border: 2px solid var(--color-border);
}

/* External Resources Section */
.resource-list {
    list-style: none;
    padding: 0;
    margin: 2rem auto;
    max-width: 600px;
}
.resource-list li {
    margin-bottom: 1rem;
}
.resource-list a {
    display: block;
    padding: 1rem;
    border: var(--brutal-border);
    background-color: var(--color-foreground);
    font-family: var(--font-heading);
    font-size: 1.2rem;
    text-decoration: none;
    box-shadow: var(--brutal-shadow-light);
    transition: var(--transition-fast);
}
.resource-list a:hover {
    background-color: var(--color-primary);
    color: var(--color-light-text);
    transform: translate(-4px, -4px);
    box-shadow: var(--brutal-shadow-hover);
}


/* Press Section */
.press-logos {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 3rem;
}
.press-logos img {
    filter: grayscale(100%) contrast(0%) brightness(1.2);
    opacity: 0.7;
    transition: var(--transition-fast);
}
.press-logos img:hover {
    filter: grayscale(0%) contrast(100%);
    opacity: 1;
}

/* Contact Section */
.contact-form-wrapper {
    padding: 3rem;
    border: var(--brutal-border);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    box-shadow: var(--brutal-shadow);
}
.brutalist-input {
    border-radius: 0 !important;
    border: var(--brutal-border) !important;
    background-color: rgba(255, 255, 255, 0.9) !important;
    padding: 1.5rem 1rem !important;
    font-family: var(--font-body);
    font-size: 1rem;
    box-shadow: inset 2px 2px 0px rgba(0,0,0,0.1);
    transition: var(--transition-fast);
}
.brutalist-input:focus {
    border-color: var(--color-primary) !important;
    box-shadow: 0 0 0 2px var(--color-primary) !important;
}

.contact-form-wrapper .label {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    text-transform: uppercase;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.5);
}


/* ==========================================================================
   6. FOOTER
   ========================================================================== */

.footer {
    padding: 4rem 1.5rem;
}

.footer .title {
    font-family: var(--font-heading);
}

.footer a {
    color: var(--color-accent);
    text-decoration: none;
    border-bottom: 1px dotted var(--color-accent);
}

.footer a:hover {
    color: var(--color-light-text);
    border-bottom: 1px solid var(--color-light-text);
    background: none;
}

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

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


/* ==========================================================================
   7. OTHER PAGES (SUCCESS, PRIVACY, TERMS)
   ========================================================================== */

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

.success-box {
    max-width: 600px;
    padding: 3rem;
    background-color: var(--color-foreground);
    border: var(--brutal-border);
    box-shadow: var(--brutal-shadow);
}

.legal-page-content {
    padding-top: 120px; /* Space for fixed header */
    padding-bottom: 4rem;
}
.legal-page-content h1 {
    margin-bottom: 2rem;
}
.legal-page-content h2 {
    margin-top: 2rem;
    margin-bottom: 1rem;
}


/* ==========================================================================
   8. ANIMATIONS & RESPONSIVENESS
   ========================================================================== */

/* Scroll Animation Placeholder */
[data-animate-on-scroll] {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

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


/* Responsive Adjustments */
@media screen and (max-width: 768px) {
    .section {
        padding: 4rem 1rem;
    }
    
    h1.title.is-1 {
        font-size: 2.5rem;
    }

    h2.title.is-2 {
        font-size: 2rem;
    }

    .brutalist-card, .contact-form-wrapper {
        box-shadow: 4px 4px 0px rgba(0, 0, 0, 0.8);
    }
    .brutalist-card:hover {
        transform: translate(-4px, -4px);
        box-shadow: 6px 6px 0px rgba(0, 0, 0, 1);
    }

    .footer {
        text-align: center;
    }
    .footer .columns {
        flex-direction: column;
    }
    .footer .column {
        margin-bottom: 2rem;
    }
}