:root {
    --font-primary: 'Oswald', sans-serif;
    --font-secondary: 'Nunito', sans-serif;

    --color-black: #000000;
    --color-white: #ffffff;
    --color-dark-gray: #222222; /* For text, section titles on light bg */
    --color-medium-gray: #333333; /* For primary text on light bg */
    --color-gray: #6c757d; /* Muted text, borders */
    --color-light-gray: #f0f0f0; /* Light backgrounds, card backgrounds */
    --color-very-light-gray: #f8f9fa; /* Subtle backgrounds, Bootstrap light */
    --color-border-brutalist: #111111;

    --color-primary-action: var(--color-dark-gray); /* Main action color for buttons in monochrome brutalism */
    --color-primary-action-text: var(--color-white);

    --color-text-on-dark: var(--color-white);
    --color-text-on-light: var(--color-dark-gray);
    --color-text-subtle-on-dark: #adb5bd;
    --color-text-subtle-on-light: var(--color-gray);

    --brutalist-border: 2px solid var(--color-black);
    --brutalist-border-light: 1px solid var(--color-medium-gray);
    --brutalist-shadow: 3px 3px 0px var(--color-black);
    --brutalist-shadow-hover: 5px 5px 0px var(--color-dark-gray);

    --transition-smooth: all 0.3s ease-in-out;
    --section-padding-y: 5rem; /* Consistent padding for sections */

    --navbar-height: 70px; /* Approximate navbar height for page content offset */
}

/* Global Styles */
body {
    font-family: var(--font-secondary);
    color: var(--color-text-on-light);
    background-color: var(--color-white);
    line-height: 1.7;
    overflow-x: hidden; /* Prevent horizontal scroll */
    padding-top: 0px !important;
}

h1, h2, h3, h4, h5, h6, .oswald-font {
    font-family: var(--font-primary);
    font-weight: 700;
    color: var(--color-dark-gray);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

h1 { font-size: 2.8rem; margin-bottom: 1rem;}
h2 { font-size: 2.2rem; margin-bottom: 0.75rem;} /* section-title */
h3 { font-size: 1.8rem; margin-bottom: 0.5rem;}
h4 { font-size: 1.5rem; margin-bottom: 0.5rem;}

p, .nunito-font {
    font-family: var(--font-secondary);
    font-size: 1.05rem;
    color: var(--color-medium-gray);
}

a {
    color: var(--color-primary-action);
    text-decoration: none;
    transition: var(--transition-smooth);
}

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

/* Utility Classes */
.section-title {
    font-size: 2.5rem; /* Ensure consistent size */
    color: var(--color-dark-gray); /* Dark color for light backgrounds */
    text-shadow: 1px 1px 2px rgba(0,0,0,0.1); /* Subtle shadow for depth */
    margin-bottom: 3rem !important;
}

.text-white .section-title,
.section-textured[style*="dark"] .section-title, /* Titles on dark textured backgrounds */
#testimonials .section-title,
#contact .section-title,
#events .section-title {
    color: var(--color-white); /* White color for dark backgrounds */
    text-shadow: 1px 1px 3px rgba(0,0,0,0.5); /* Stronger shadow for readability */
}

.text-shadow-strong {
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
}
.text-shadow-subtle {
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
}

.parallax-background {
    background-attachment: fixed;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
}

.section-textured {
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
}

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

.py-5 {
    padding-top: var(--section-padding-y) !important;
    padding-bottom: var(--section-padding-y) !important;
}

/* Header & Navbar */
.navbar {
    padding-top: 0.8rem;
    padding-bottom: 0.8rem;
    height: var(--navbar-height);
}

.bg-dark-brutalist {
    background-color: var(--color-dark-gray) !important;
    border-bottom: var(--brutalist-border);
}

.navbar-brand {
    font-size: 2rem;
    font-weight: 700;
    color: var(--color-white) !important;
}

.navbar .nav-link {
    color: rgba(255, 255, 255, 0.75) !important;
    text-transform: uppercase;
    font-size: 0.9rem;
    padding: 0.5rem 1rem;
    transition: var(--transition-smooth);
    letter-spacing: 0.5px;
}

.navbar .nav-link:hover,
.navbar .nav-link.active {
    color: var(--color-white) !important;
}

.navbar-toggler {
    border-color: rgba(255,255,255,0.3);
}
.navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28255, 255, 255, 0.8%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}


/* Global Button Styles */
.btn, button, input[type="submit"], input[type="button"] {
    font-family: var(--font-primary);
    text-transform: uppercase;
    padding: 0.75rem 1.8rem;
    border-radius: 2px; /* Subtle rounding for modern feel, not fully sharp brutalist */
    border: var(--brutalist-border);
    transition: var(--transition-smooth);
    font-weight: 500;
    letter-spacing: 0.5px;
    box-shadow: var(--brutalist-shadow);
    cursor: pointer;
}

.btn:hover, button:hover, input[type="submit"]:hover, input[type="button"]:hover {
    box-shadow: var(--brutalist-shadow-hover);
    transform: translate(-2px, -2px);
}

.btn-primary.custom-btn,
.btn-primary {
    background-color: var(--color-primary-action);
    color: var(--color-primary-action-text);
    border-color: var(--color-black);
}

.btn-primary.custom-btn:hover,
.btn-primary:hover {
    background-color: var(--color-black);
    color: var(--color-white);
    border-color: var(--color-black);
}

.btn-outline-dark {
    color: var(--color-dark-gray);
    background-color: transparent;
    border-color: var(--color-dark-gray);
    box-shadow: none; /* Outline buttons might not need the heavy shadow */
}

.btn-outline-dark:hover {
    color: var(--color-white);
    background-color: var(--color-dark-gray);
    border-color: var(--color-dark-gray);
    box-shadow: var(--brutalist-shadow);
    transform: translate(0,0); /* Reset transform from general button hover if needed */
}

.btn-outline-light {
    color: var(--color-white);
    background-color: transparent;
    border-color: var(--color-white);
    box-shadow: none;
}
.btn-outline-light:hover {
    color: var(--color-dark-gray);
    background-color: var(--color-white);
    border-color: var(--color-white);
    box-shadow: 2px 2px 0px var(--color-white);
}


/* Hero Section */
.hero-section {
    min-height: calc(100vh - var(--navbar-height)); /* Ensure it takes viewport height below navbar */
    position: relative;
    color: var(--color-white); /* Explicitly white text for hero */
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-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)); /* Dark overlay for text readability */
    z-index: 1;
}

.hero-section .container {
    position: relative;
    z-index: 2;
}

.hero-section h1 {
    color: var(--color-white);
}
.hero-section p {
    color: var(--color-very-light-gray);
    font-size: 1.2rem;
}

/* Mission Section */
#mission img {
    max-width: 100%;
    height: auto;
    border: var(--brutalist-border-light);
}

/* Services Section - Brutalist Card */
.brutalist-card {
    background-color: var(--color-white);
    border: var(--brutalist-border);
    box-shadow: var(--brutalist-shadow);
    transition: var(--transition-smooth);
    display: flex; /* As per strict requirement */
    flex-direction: column; /* As per strict requirement */
    /* align-items: center; */ /* Centering content blocks if they are not full width. Bootstrap cards typically have full-width image/body */
    border-radius: 0; /* Sharp edges */
    height: 100%; /* For equal height cards in a row */
}

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

.brutalist-card .card-image {
    width: 100%; /* Image container spans card width */
    height: 200px; /* Fixed height for image container */
    overflow: hidden; /* Crop image within container */
    border-bottom: var(--brutalist-border); /* Separator line */
    background-color: var(--color-light-gray); /* Placeholder bg */
}

.brutalist-card .card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Cover and center image */
    object-position: center;
    transition: transform 0.3s ease;
}

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

.brutalist-card .card-body {
    padding: 1.5rem;
    text-align: left; /* Default text alignment */
    display: flex;
    flex-direction: column;
    flex-grow: 1; /* Makes card body take remaining space */
}

.brutalist-card .card-title {
    color: var(--color-dark-gray);
    margin-bottom: 1rem;
}
.brutalist-card .card-text {
    color: var(--color-medium-gray);
    flex-grow: 1; /* Pushes button to bottom if card-body is flex */
    margin-bottom: 1.5rem; /* Space before button */
}


/* How to Start Section */
.step-card {
    background-color: var(--color-white);
    border: var(--brutalist-border);
    padding: 2rem;
    text-align: center;
    box-shadow: var(--brutalist-shadow);
    transition: var(--transition-smooth);
}
.step-card:hover {
    box-shadow: var(--brutalist-shadow-hover);
    transform: translateY(-5px);
}

.step-number {
    font-size: 3rem;
    font-weight: 700;
    color: var(--color-dark-gray);
    line-height: 1;
}
.step-card h4 {
    margin-top: 1rem;
    color: var(--color-dark-gray);
}
.step-card p {
    color: var(--color-medium-gray);
    font-size: 0.95rem;
}

/* Customer Stories Section */
.brutalist-card-alt { /* For horizontal story card */
    border: var(--brutalist-border);
    box-shadow: var(--brutalist-shadow);
    background-color: var(--color-white);
    border-radius: 0;
}
.brutalist-card-alt .card-image img {
    object-fit: cover;
    height: 100%; /* Ensure image fills height of its column */
    border-right: var(--brutalist-border); /* Line between image and text on md+ */
}
@media (max-width: 767.98px) {
    .brutalist-card-alt .card-image img {
        border-right: none;
        border-bottom: var(--brutalist-border); /* Line on top for sm screens */
        max-height: 250px; /* Limit height on mobile */
    }
}
.brutalist-card-alt .card-body {
    padding: 1.5rem;
}
.carousel-control-prev-icon,
.carousel-control-next-icon {
    background-color: rgba(0,0,0,0.5);
    border-radius: 2px;
    padding: 0.8rem; /* Make icons slightly larger/more visible */
    background-size: 60%;
}

/* Testimonials Section */
#testimonials .carousel-inner {
    padding-bottom: 30px; /* Space for indicators if they are outside */
}
.testimonial-card {
    background-color: rgba(0,0,0,0.3); /* Semi-transparent card on textured bg */
    border: 1px solid rgba(255,255,255,0.2);
    padding: 2rem;
    border-radius: 4px; /* Softer edges for testimonials */
    max-width: 650px;
}
.testimonial-card img {
    border: 3px solid var(--color-white);
}
.testimonial-card p.fst-italic {
    color: var(--color-text-on-dark);
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
}
.testimonial-card h5 {
    color: var(--color-text-on-dark);
}
.testimonial-card .text-white-50 {
    color: var(--color-text-subtle-on-dark) !important;
}
#testimonials .carousel-indicators button {
    background-color: rgba(255,255,255,0.5);
}
#testimonials .carousel-indicators button.active {
    background-color: var(--color-white);
}

/* Resources Section */
.resource-card {
    background-color: var(--color-white);
    border: var(--brutalist-border-light);
    box-shadow: 2px 2px 0px var(--color-gray);
    transition: var(--transition-smooth);
    border-radius: 0;
}
.resource-card:hover {
    box-shadow: 3px 3px 0px var(--color-dark-gray);
    transform: translate(-1px, -1px);
}
.resource-card h5 {
    margin-bottom: 0.5rem;
}
.resource-card a.resource-link {
    color: var(--color-primary-action);
    font-weight: 500;
}
.resource-card a.resource-link:hover {
    color: var(--color-black);
}
.resource-card p.small {
    font-size: 0.9rem;
    color: var(--color-medium-gray);
}

/* Events Calendar Section */
.event-card {
    background-color: rgba(0,0,0,0.4); /* Darker cards on textured bg */
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 2px;
    color: var(--color-text-on-dark);
}
.event-card h4 {
    color: var(--color-text-on-dark);
}
.event-card p {
    color: var(--color-text-subtle-on-dark);
}

/* Community Section */
#community img {
    border: var(--brutalist-border-light);
}

/* Contact Section */
.brutalist-form .form-label {
    color: var(--color-text-on-dark);
    font-family: var(--font-secondary);
    font-weight: 600;
    margin-bottom: 0.3rem;
}
.brutalist-form .form-control {
    background-color: rgba(255,255,255,0.9);
    border: 1px solid var(--color-gray);
    border-radius: 0;
    padding: 0.75rem 1rem;
    color: var(--color-dark-gray);
    font-family: var(--font-secondary);
}
.brutalist-form .form-control:focus {
    background-color: var(--color-white);
    border-color: var(--color-black);
    box-shadow: 0 0 0 0.2rem rgba(0,0,0,0.1);
}
.brutalist-form textarea.form-control {
    min-height: 120px;
}
#contact .link-light {
    color: var(--color-white) !important;
    text-decoration: underline !important;
}
#contact .link-light:hover {
    color: var(--color-light-gray) !important;
}


/* Footer */
footer.bg-dark-brutalist {
    background-color: var(--color-dark-gray) !important; /* Consistent dark bg */
    color: var(--color-text-subtle-on-dark);
    padding-top: var(--section-padding-y);
    padding-bottom: calc(var(--section-padding-y) / 2);
}
footer h5 {
    color: var(--color-white);
    margin-bottom: 1rem;
}
footer p {
    color: var(--color-text-subtle-on-dark);
    font-size: 0.95rem;
}
footer ul {
    padding-left: 0;
}
footer ul li {
    margin-bottom: 0.5rem;
}
footer a.text-white-50 {
    color: var(--color-text-subtle-on-dark) !important;
    text-decoration: none;
    transition: var(--transition-smooth);
}
footer a.text-white-50:hover,
footer a.hover-link:hover { /* .hover-link class from HTML */
    color: var(--color-white) !important;
    text-decoration: underline;
}
footer hr.border-secondary {
    border-color: var(--color-gray) !important;
}
footer .small {
    font-size: 0.85rem;
}


/* Specific Page Styles */
/* success.html */
.success-page-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: calc(100vh - var(--navbar-height)); /* Full height below navbar */
    text-align: center;
    padding: 2rem;
    background-color: var(--color-light-gray);
}
.success-page-container h1 {
    color: var(--color-dark-gray);
    margin-bottom: 1.5rem;
}
.success-page-container p {
    color: var(--color-medium-gray);
    font-size: 1.2rem;
    margin-bottom: 2rem;
}

/* privacy.html & terms.html */
.legal-page-content {
    padding-top: calc(var(--navbar-height) + 2rem); /* Offset for fixed navbar + some space */
    padding-bottom: var(--section-padding-y);
    min-height: calc(100vh - var(--navbar-height) - var(--footer-height, 200px)); /* Adjust footer height estimate */
}
.legal-page-content h1 {
    margin-bottom: 2rem;
}
.legal-page-content h2 {
    margin-top: 2.5rem;
    margin-bottom: 1rem;
    font-size: 1.8rem;
}
.legal-page-content p, .legal-page-content li {
    color: var(--color-medium-gray);
    line-height: 1.8;
}

/* Cookie Consent Popup (basic from HTML, can refine here if needed) */
#cookieConsentPopup {
    font-family: var(--font-secondary);
}
#cookieConsentPopup p {
    color: #f1f1f1; /* Ensure this overrides body text color for this specific popup */
}
#acceptCookieConsent { /* Ensure this uses global button styles if desired, or keep specific */
    font-family: var(--font-primary);
    background-color: var(--color-primary-action); /* Match main action buttons */
    color: var(--color-primary-action-text);
    border: 1px solid var(--color-black); /* Consistent border */
    box-shadow: 2px 2px 0px var(--color-black);
}
#acceptCookieConsent:hover {
    background-color: var(--color-black);
    color: var(--color-white);
    box-shadow: 3px 3px 0px var(--color-black);
}

/* Barba.js transition (Example - fade) */
.barba-leave-active,
.barba-enter-active {
  transition: opacity .5s ease;
}
.barba-leave-to,
.barba-enter-from {
  opacity: 0;
}

/* Responsive Adjustments */
@media (max-width: 991.98px) {
    .navbar-nav {
        margin-top: 1rem;
        background-color: var(--color-dark-gray); /* Ensure menu dropdown has BG */
        border-top: 1px solid var(--color-gray);
    }
    .navbar .nav-link {
        padding: 0.8rem 1rem;
        border-bottom: 1px solid rgba(255,255,255,0.1);
    }
    .navbar .nav-link:last-child {
        border-bottom: none;
    }
    .hero-section {
        min-height: auto; /* Adjust for smaller screens */
        padding-top: 4rem;
        padding-bottom: 4rem;
    }
    .hero-section h1 {
        font-size: 2.2rem;
    }
    .hero-section p {
        font-size: 1rem;
    }
    .section-title {
        font-size: 2rem;
    }
}

@media (max-width: 767.98px) {
    h1 { font-size: 2.2rem; }
    h2, .section-title { font-size: 1.8rem; }
    h3 { font-size: 1.5rem; }

    .btn, button, input[type="submit"], input[type="button"] {
        padding: 0.6rem 1.5rem;
        font-size: 0.9rem;
    }
    footer .col-md-4, footer .col-md-2, footer .col-md-3 {
        text-align: center; /* Center footer columns on small screens */
    }
    footer ul {
        margin-bottom: 1.5rem;
    }
    .brutalist-card .card-image {
        height: 180px; /* Adjust image height for smaller cards */
    }
}

/* Ensure image containers in cards are robust */
.card .card-image {
    display: block; /* Ensure it behaves as a block for width/height */
    position: relative; /* For potential absolute positioning of elements inside */
}

/* Ensure all cards (Bootstrap or custom) follow flex column rule for content stacking */
.card {
    display: flex;
    flex-direction: column;
}

/*
  For cards where content inside needs centering if it's not full-width,
  the 'align-items: center;' on the .card itself (as per strict prompt)
  would require the .card-image and .card-body to NOT be width: 100%.
  Bootstrap cards usually have these as width: 100%.
  If specific cards (e.g. .step-card) require internal centering,
  it's better to apply text-align: center to their content block or use flex on content block.
  The current .brutalist-card style has card-image at 100% width.
*/

.step-card, /* Already has text-align: center */
.testimonial-card, /* Already has text-align: center */
.text-center /* Bootstrap utility for centering text and inline/inline-block children */
{
    /* These demonstrate content centering */
}
html,body{
    overflow-x: hidden;
}