/* ROOT VARIABLES ======================================================= */
:root {
    --font-heading: 'Archivo Black', sans-serif;
    --font-body: 'Roboto', sans-serif;

    --color-text-dark: #222222;       /* For text on light backgrounds */
    --color-text-light: #FFFFFF;      /* For text on dark backgrounds & Hero */
    --color-bg-light: #F5F5F5;        /* Primary light background */
    --color-bg-medium: #EAEAEA;       /* Alternative light background */
    --color-bg-dark: #1E1E1E;         /* Dark section background */

    --color-primary-accent: #FF8811;  /* Vibrant Orange - Main action color, was FF8C00 */
    --color-split-accent-1: #008037;  /* Deep Green - Split complementary, was #4CAF50 */
    --color-split-accent-2: #007bff;  /* Bright Blue - Split complementary, was #2196F3 */

    --brutalist-border-width: 2px;
    --brutalist-border-color: var(--color-text-dark);
    --brutalist-border: var(--brutalist-border-width) solid var(--brutalist-border-color);

    --brutalist-shadow-x: 4px;
    --brutalist-shadow-y: 4px;
    --brutalist-shadow-color: var(--color-text-dark);
    --brutalist-shadow: var(--brutalist-shadow-x) var(--brutalist-shadow-y) 0px var(--brutalist-shadow-color);
    
    --brutalist-shadow-hover-x: 6px;
    --brutalist-shadow-hover-y: 6px;
    --brutalist-shadow-hover-color: var(--color-primary-accent);
    --brutalist-shadow-hover: var(--brutalist-shadow-hover-x) var(--brutalist-shadow-hover-y) 0px var(--brutalist-shadow-hover-color);
    --brutalist-shadow-hover-depth2-color: var(--color-split-accent-1);
    --brutalist-shadow-hover-depth2: 
        calc(var(--brutalist-shadow-hover-x) / 2) calc(var(--brutalist-shadow-hover-y) / 2) 0px var(--brutalist-shadow-hover-color),
        var(--brutalist-shadow-hover-x) var(--brutalist-shadow-hover-y) 0px var(--brutalist-shadow-hover-depth2-color);


    --transition-snap: all 0.2s cubic-bezier(0.68, -0.55, 0.27, 1.55); /* For snappy 3D effects */
    --transition-smooth: all 0.3s ease-in-out;
    --transition-color: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease, transform 0.3s ease;

    --container-max-width: 1200px;
    --container-padding: 0 1.5rem;
    --section-padding: 4rem 0; /* Natural height, this is vertical padding */
}

/* GLOBAL STYLES ======================================================== */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--font-body);
    line-height: 1.7;
    color: var(--color-text-dark);
    background-color: var(--color-bg-light);
    overflow-x: hidden; /* Prevent horizontal scroll from AOS or other effects */
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    color: var(--color-text-dark);
    margin-bottom: 1rem;
    line-height: 1.3;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.1); /* Subtle shadow for better contrast/pop */
}
h1 { font-size: 2.8rem; margin-bottom: 1.5rem; }
h2 { font-size: 2.2rem; margin-bottom: 1.25rem; } /* Section titles */
h3 { font-size: 1.6rem; }
h4 { font-size: 1.3rem; }

p {
    margin-bottom: 1.25rem;
    max-width: 70ch; /* Optimal reading line length */
}
.section-intro p, .hero-subtitle {
    max-width: 75ch;
    margin-left: auto;
    margin-right: auto;
}


a {
    color: var(--color-primary-accent);
    text-decoration: none;
    transition: var(--transition-color);
}
a:hover {
    color: var(--color-split-accent-2);
    text-decoration: underline;
}

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

ul {
    list-style: none;
}

/* UTILITY CLASSES ====================================================== */
.container {
    max-width: var(--container-max-width);
    margin-left: auto;
    margin-right: auto;
    padding: var(--container-padding);
}

.section-title {
    text-align: center;
    margin-bottom: 3rem;
    font-size: 2.5rem; /* Archivo Black is bold, can be larger */
    position: relative;
    padding-bottom: 0.5rem;
    color: var(--color-text-dark);
}
.section-title::after { /* Brutalist underline */
    content: '';
    display: block;
    width: 80px;
    height: 4px;
    background-color: var(--color-primary-accent);
    margin: 0.75rem auto 0;
}

.section-intro {
    text-align: center;
    margin-bottom: 3rem;
    font-size: 1.1rem;
    color: #555;
}

.columns {
    display: flex;
    gap: 2.5rem;
    flex-wrap: wrap;
}

.column {
    flex: 1 1 auto;
}

@media (min-width: 769px) {
    .column.is-two-thirds {
        flex: 0 0 calc(66.666% - 1.25rem); /* Adjust for gap: 2.5rem / 2 */
        max-width: calc(66.666% - 1.25rem);
    }
    .column.image-column {
        flex: 0 0 calc(33.333% - 1.25rem);
        max-width: calc(33.333% - 1.25rem);
    }
}
@media (max-width: 768px) {
    .columns {
        flex-direction: column;
    }
    .column.is-two-thirds,
    .column.image-column {
        flex-basis: 100%;
        max-width: 100%;
    }
    .column.image-column { /* Optional: image first on mobile for some sections */
       /* order: -1; */
    }
}

.image-column .image-container {
    border: var(--brutalist-border);
    box-shadow: var(--brutalist-shadow);
    overflow: hidden; /* Ensures image respects border */
}
.image-column .image-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}


/* HEADER & NAVIGATION ================================================== */
.site-header {
    background-color: var(--color-bg-light);
    border-bottom: var(--brutalist-border-width) solid var(--brutalist-border-color);
    padding: 0.8rem 0;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    transition: background-color 0.3s ease, box-shadow 0.3s ease;
}
.site-header.scrolled { /* Example for JS-added class on scroll */
    background-color: rgba(245, 245, 245, 0.95); /* Slightly transparent */
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    color: var(--color-text-dark);
    text-decoration: none;
    font-weight: bold;
}
.logo:hover {
    color: var(--color-primary-accent);
}

.main-navigation .nav-list {
    display: flex;
    gap: 1.8rem;
}

.main-navigation .nav-list a {
    font-family: var(--font-body);
    font-weight: 700;
    color: var(--color-text-dark);
    text-decoration: none;
    padding: 0.5rem 0;
    position: relative;
    transition: var(--transition-color);
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 0.5px;
}

.main-navigation .nav-list a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 3px;
    background-color: var(--color-primary-accent);
    transition: width 0.3s ease;
}

.main-navigation .nav-list a:hover,
.main-navigation .nav-list a.active { /* Assuming JS adds 'active' class */
    color: var(--color-primary-accent);
}
.main-navigation .nav-list a:hover::after,
.main-navigation .nav-list a.active::after {
    width: 100%;
}

.menu-toggle {
    display: none; /* Hidden on desktop */
    font-size: 1.8rem;
    background: none;
    border: none;
    color: var(--color-text-dark);
    cursor: pointer;
}

/* HERO SECTION ========================================================= */
.hero-section {
    position: relative;
    min-height: 90vh; /* Use min-height for hero to ensure it's substantial */
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--color-text-light); /* IMPORTANT: Hero text is white */
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    padding: 6rem 1.5rem 4rem; /* Top padding to account for fixed header */
}

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

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

.hero-title {
    font-size: clamp(2.5rem, 6vw, 4.5rem); /* Responsive font size */
    color: var(--color-text-light);
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

.hero-subtitle {
    font-size: clamp(1.1rem, 2.5vw, 1.5rem);
    color: var(--color-text-light);
    margin-bottom: 2.5rem;
    opacity: 0.9;
    max-width: 70ch;
    margin-left: auto;
    margin-right: auto;
}

/* GENERAL SECTION STYLES =============================================== */
.content-section {
    padding: var(--section-padding);
}
.content-section.section-alternative-bg {
    background-color: var(--color-bg-medium);
    border-top: var(--brutalist-border-width) solid var(--color-text-dark);
    border-bottom: var(--brutalist-border-width) solid var(--color-text-dark);
}
.content-section.section-alternative-bg .section-title,
.content-section.section-alternative-bg h3 {
    /* color: var(--color-text-dark); /* Ensure titles are still dark for contrast */
}

/* --- Component Styles --- */

/* BUTTONS (GLOBAL) ===================================================== */
.cta-button,
.submit-button,
button[type="submit"] { /* General button styling */
    display: inline-block;
    font-family: var(--font-heading);
    font-size: 1rem;
    font-weight: normal; /* Archivo Black is already bold */
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 0.8em 2em;
    background-color: var(--color-primary-accent);
    color: var(--color-text-light);
    border: var(--brutalist-border-width) solid var(--brutalist-border-color);
    box-shadow: var(--brutalist-shadow);
    text-decoration: none;
    cursor: pointer;
    transition: var(--transition-snap);
    transform-origin: center;
    text-align: center;
}

.cta-button:hover,
.submit-button:hover,
button[type="submit"]:hover {
    background-color: var(--color-split-accent-1); /* Green on hover */
    color: var(--color-text-light);
    transform: translate(calc(-1 * var(--brutalist-shadow-x) / 2), calc(-1 * var(--brutalist-shadow-y) / 2));
    box-shadow: var(--brutalist-shadow-hover-x) var(--brutalist-shadow-hover-y) 0px var(--brutalist-shadow-color),
                calc(var(--brutalist-shadow-hover-x) + 4px) calc(var(--brutalist-shadow-hover-y) + 4px) 0px var(--color-split-accent-2); /* Dynamic 3D shadow */
}

.cta-button:active,
.submit-button:active,
button[type="submit"]:active {
    transform: translate(0,0);
    box-shadow: none; /* Flat on active/click */
}


/* CARDS (Generic, Media, Resource) ===================================== */
.card-slider-container,
.media-grid,
.resource-cards-container,
.gallery-slider-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.card {
    background-color: var(--color-bg-light);
    border: var(--brutalist-border);
    box-shadow: var(--brutalist-shadow);
    display: flex;
    flex-direction: column;
    overflow: hidden; /* Important for child elements and border-radius if ever used */
    transition: var(--transition-snap);
    text-align: left; /* Default text align for card content */
}
.card:hover {
    transform: translateY(-5px) translateX(-5px);
    box-shadow: 10px 10px 0px var(--color-primary-accent);
}

.card-image { /* Container for the image */
    width: 100%;
    height: 200px; /* Fixed height for card images */
    overflow: hidden; /* Ensure image fits */
    background-color: var(--color-bg-medium); /* Placeholder bg */
    border-bottom: var(--brutalist-border);
}
.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Cover the area, cropping if necessary */
    transition: transform 0.4s ease;
}
.card:hover .card-image img {
    transform: scale(1.05); /* Subtle zoom on hover */
}

.card-content {
    padding: 1.5rem;
    flex-grow: 1; /* Allows content to fill space if cards have varying heights */
    display: flex;
    flex-direction: column;
}
.card-content h3 {
    margin-bottom: 0.75rem;
    font-size: 1.4rem;
}
.card-content p {
    font-size: 0.95rem;
    color: #444;
    flex-grow: 1; /* Pushes link to bottom if card content varies */
    margin-bottom: 1rem;
}

.read-more-link {
    display: inline-block;
    margin-top: auto; /* Pushes to bottom */
    font-weight: bold;
    color: var(--color-primary-accent);
    text-decoration: none;
    padding: 0.3em 0;
    border-bottom: 2px solid transparent;
    transition: var(--transition-color);
    align-self: flex-start; /* Align to the start of the content flex */
}
.read-more-link:hover {
    color: var(--color-split-accent-2);
    border-bottom-color: var(--color-split-accent-2);
    text-decoration: none;
}

.resource-card .card-content h3 a {
    color: var(--color-text-dark);
}
.resource-card .card-content h3 a:hover {
    color: var(--color-primary-accent);
}

/* TIMELINE ============================================================= */
.timeline {
    position: relative;
    max-width: 800px;
    margin: 2rem auto;
}
.timeline::before { /* The central line */
    content: '';
    position: absolute;
    left: 18px; /* Adjust based on icon size */
    top: 0;
    bottom: 0;
    width: 4px;
    background-color: var(--color-text-dark);
    box-shadow: var(--brutalist-shadow-x) var(--brutalist-shadow-y) 0px var(--color-bg-medium);
}

.timeline-item {
    position: relative;
    margin-bottom: 3rem;
    padding-left: 50px; /* Space for icon */
}
.timeline-item:last-child {
    margin-bottom: 0;
}

.timeline-icon {
    position: absolute;
    left: 0;
    top: 0;
    width: 40px;
    height: 40px;
    background-color: var(--color-primary-accent);
    color: var(--color-text-light);
    border-radius: 0; /* Brutalist - no radius */
    border: var(--brutalist-border-width) solid var(--brutalist-border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-heading);
    font-size: 1.2rem;
    box-shadow: var(--brutalist-shadow);
}

.timeline-content {
    background-color: var(--color-bg-light);
    padding: 1.5rem;
    border: var(--brutalist-border);
    box-shadow: var(--brutalist-shadow-x) var(--brutalist-shadow-y) 0px var(--color-bg-medium); /* Shadow against the line */
}
.timeline-content h3 {
    margin-top: 0;
    color: var(--color-primary-accent);
}


/* LOGO GRID (Clientele, Partners) ====================================== */
.logo-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 2rem;
    align-items: center;
}
.logo-item {
    padding: 1rem;
    background-color: transparent; /* Or var(--color-bg-light) if on dark bg */
    display: flex;
    justify-content: center;
    align-items: center;
    border: var(--brutalist-border-width) dashed var(--brutalist-border-color); /* Dashed border for a raw look */
    min-height: 100px;
}
.logo-item img {
    max-width: 100%;
    max-height: 60px; /* Control logo height */
    object-fit: contain;
    filter: grayscale(0.7); /* Subtle desaturation for brutalist feel */
    transition: filter 0.3s ease;
}
.logo-item:hover img {
    filter: grayscale(0);
}

/* PRESS LIST =========================================================== */
.press-list {
    list-style: none;
    padding-left: 0;
}
.press-list li {
    padding: 1rem 0;
    border-bottom: 1px solid var(--color-bg-medium);
    font-size: 1.05rem;
}
.press-list li:last-child {
    border-bottom: none;
}
.press-list li strong {
    color: var(--color-text-dark);
    margin-right: 0.5rem;
}
.press-list li a {
    font-weight: bold;
}


/* FORM STYLES ========================================================== */
.contact-form {
    max-width: 700px;
    margin: 2rem auto 0;
    background-color: var(--color-bg-light); /* Or transparent */
    padding: 2rem;
    border: var(--brutalist-border);
    box-shadow: var(--brutalist-shadow-x) var(--brutalist-shadow-y) 0px var(--color-bg-medium);
}
.form-group {
    margin-bottom: 1.5rem;
}
.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: bold;
    color: var(--color-text-dark);
}
.form-group input[type="text"],
.form-group input[type="email"],
.form-group textarea {
    width: 100%;
    padding: 0.8rem 1rem;
    font-family: var(--font-body);
    font-size: 1rem;
    border: var(--brutalist-border);
    background-color: var(--color-bg-light);
    color: var(--color-text-dark);
    transition: var(--transition-color);
}
.form-group input[type="text"]:focus,
.form-group input[type="email"]:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--color-primary-accent);
    box-shadow: 0 0 0 2px rgba(255, 136, 17, 0.3); /* Orange glow, was FF8811 */
}
.form-group textarea {
    min-height: 120px;
    resize: vertical;
}
.form-group.full-width {
    /* For elements that span full width if form uses columns */
}
.contact-form .submit-button {
    width: 100%; /* Full width submit button */
    padding: 1em 2em;
}

/* GALLERY SLIDER (Behind the scenes) Placeholder styling */
.gallery-slider-container .card h3 {
    text-align: center;
}
.gallery-slider-container .card p {
    text-align: center;
    font-size: 0.9rem;
}


/* FOOTER =============================================================== */
.site-footer {
    background-color: var(--color-bg-dark);
    color: var(--color-text-light);
    padding: 3rem 0 1rem;
    border-top: 4px solid var(--color-primary-accent); /* Strong top border */
}
.site-footer h3 {
    color: var(--color-primary-accent);
    margin-bottom: 1rem;
    font-size: 1.3rem;
}
.site-footer p {
    color: var(--color-bg-medium); /* Lighter gray for footer text */
    font-size: 0.95rem;
    max-width: none; /* Override general p max-width */
}
.footer-columns {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}
.footer-nav-list li a,
.footer-social-list li a {
    color: var(--color-bg-medium);
    text-decoration: none;
    padding: 0.25rem 0;
    display: inline-block;
    border-bottom: 1px solid transparent;
    transition: var(--transition-color);
    font-size: 0.95rem;
}
.footer-nav-list li a:hover,
.footer-social-list li a:hover {
    color: var(--color-primary-accent);
    border-bottom-color: var(--color-primary-accent);
    text-decoration: none;
}
.footer-bottom {
    text-align: center;
    padding-top: 1.5rem;
    border-top: 1px solid #444; /* Separator line */
    font-size: 0.9rem;
    color: #aaa;
}
.footer-bottom p {
    color: #aaa;
}


/* --- Page Specific Styles --- */

/* PRIVACY & TERMS PAGE ================================================= */
.privacy-page-content,
.terms-page-content {
    padding-top: 100px; /* Account for fixed header */
    padding-bottom: 4rem;
}
.privacy-page-content h1,
.terms-page-content h1 {
    margin-bottom: 2rem;
    text-align: center;
}
.privacy-page-content h2,
.terms-page-content h2 {
    margin-top: 2.5rem;
    margin-bottom: 1rem;
    color: var(--color-primary-accent);
}

/* SUCCESS PAGE ========================================================= */
.success-page body, .success-page html {
    height: 100%;
}
.success-page body {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    text-align: center;
    background-color: var(--color-bg-light);
    padding: 2rem;
}
.success-message-container {
    background-color: var(--color-bg-light);
    padding: 3rem;
    border: var(--brutalist-border);
    box-shadow: var(--brutalist-shadow-x) var(--brutalist-shadow-y) 0px var(--color-bg-medium);
    max-width: 600px;
}
.success-message-container h1 {
    color: var(--color-split-accent-1); /* Green for success */
    font-size: 2.5rem;
}
.success-message-container p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
}
.success-message-container .cta-button {
    background-color: var(--color-split-accent-1);
}
.success-message-container .cta-button:hover {
    background-color: var(--color-primary-accent);
    box-shadow: var(--brutalist-shadow-hover-x) var(--brutalist-shadow-hover-y) 0px var(--color-text-dark);
}


/* RESPONSIVE DESIGN (Media Queries) ==================================== */
@media (max-width: 992px) {
    h1 { font-size: 2.4rem; }
    h2, .section-title { font-size: 2rem; }
}

@media (max-width: 768px) {
    .site-header {
        padding: 0.5rem 0;
    }
    .main-navigation .nav-list {
        display: none; /* Hidden by default on mobile */
        flex-direction: column;
        position: absolute;
        top: 100%; /* Position below header */
        left: 0;
        width: 100%;
        background-color: var(--color-bg-light);
        border-top: var(--brutalist-border);
        border-bottom: var(--brutalist-border);
        padding: 1rem 0;
        box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    }
    .main-navigation .nav-list.active {
        display: flex; /* Shown when active */
    }
    .main-navigation .nav-list li {
        width: 100%;
        text-align: center;
    }
    .main-navigation .nav-list a {
        padding: 0.8rem 1rem;
        display: block;
        width: 100%;
        border-bottom: 1px solid var(--color-bg-medium);
    }
    .main-navigation .nav-list li:last-child a {
        border-bottom: none;
    }
    .main-navigation .nav-list a::after { /* Disable underline effect for mobile stacked menu */
        display: none;
    }
    .menu-toggle {
        display: block; /* Visible on mobile */
    }

    .hero-title {
        font-size: clamp(2rem, 8vw, 3rem);
    }
    .hero-subtitle {
        font-size: clamp(1rem, 4vw, 1.2rem);
    }

    .footer-columns {
        grid-template-columns: 1fr; /* Stack footer columns */
        text-align: center;
    }
    .footer-columns .footer-column {
        margin-bottom: 1.5rem;
    }
     .footer-nav-list li a,
    .footer-social-list li a {
        padding: 0.5rem 0; /* Easier tap target */
    }
}

@media (max-width: 480px) {
    :root {
        --section-padding: 3rem 0;
    }
    h1 { font-size: 2rem; }
    h2, .section-title { font-size: 1.8rem; }
    .container {
        padding: 0 1rem;
    }
    .card-slider-container,
    .media-grid,
    .resource-cards-container,
    .gallery-slider-container {
        grid-template-columns: 1fr; /* Single column for cards on very small screens */
    }
    .contact-form {
        padding: 1.5rem;
    }
}

/* AOS Animation Customization (Optional) */
[data-aos="fade-up"] {
  transform: translate3d(0, 30px, 0); /* Example: slightly more pronounced up-fade */
}