/* style.css */

/* ---------------------------------- */
/*      1. ROOT & GLOBAL STYLES       */
/* ---------------------------------- */

:root {
    /* Color Palette (Triad: Blue, Green, Red-Orange) */
    --primary-color: #2c3e50;    /* Deep Slate Blue */
    --secondary-color: #18bc9c;  /* Vibrant Teal */
    --accent-color: #e74c3c;     /* Bright Red-Orange */
    
    --dark-text-color: #34495e;  /* Wet Asphalt */
    --light-text-color: #ffffff;
    --light-bg-color: #f8f9fa;   /* Very Light Gray */
    --border-color: #ecf0f1;     /* Clouds */

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

    /* Spacing & Sizing */
    --header-height: 80px;
    --section-padding: 5rem 0;
    --card-border-radius: 15px;
    --btn-border-radius: 50px;
}

*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
    scroll-padding-top: var(--header-height);
}

body {
    font-family: var(--font-body);
    color: var(--dark-text-color);
    background-color: var(--light-text-color);
    line-height: 1.6;
    overflow-x: hidden;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 1rem;
    padding-right: 1rem;
}

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

a {
    color: var(--secondary-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

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

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    color: var(--primary-color);
    line-height: 1.2;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.05);
}

.section {
    padding: var(--section-padding);
}

.section-bg-light {
    background-color: var(--light-bg-color);
}

.section-title {
    font-size: 2.8rem;
    text-align: center;
    margin-bottom: 1.5rem;
    color: #222222;
}

.section-intro {
    font-size: 1.1rem;
    text-align: center;
    max-width: 800px;
    margin: 0 auto 3rem auto;
    color: #555;
}

/* ---------------------------------- */
/*      2. HEADER & NAVIGATION      */
/* ---------------------------------- */

.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background-color: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    height: var(--header-height);
    transition: background-color 0.3s ease;
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
}

.nav-logo {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    color: var(--primary-color);
    text-decoration: none;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-link {
    font-weight: 700;
    color: var(--dark-text-color);
    padding: 0.5rem 0;
    position: relative;
    text-decoration: none;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background-color: var(--secondary-color);
    transform: scaleX(0);
    transform-origin: bottom right;
    transition: transform 0.3s ease-out;
}

.nav-link:hover::after {
    transform: scaleX(1);
    transform-origin: bottom left;
}

.hamburger {
    display: none;
    cursor: pointer;
}

.bar {
    display: block;
    width: 25px;
    height: 3px;
    margin: 5px auto;
    background-color: var(--primary-color);
    transition: all 0.3s ease-in-out;
}


/* ---------------------------------- */
/*          3. HERO SECTION           */
/* ---------------------------------- */

.hero-section {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--light-text-color);
    background-position: center center;
    background-size: cover;
    background-repeat: no-repeat;
    background-attachment: fixed; /* Parallax Effect */
}

.hero-content {
    max-width: 900px;
}

.hero-title {
    font-size: 4rem;
    margin-bottom: 1rem;
    color: var(--light-text-color);
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.7);
}

.hero-subtitle {
    font-size: 1.5rem;
    margin-bottom: 2.5rem;
    font-weight: 400;
    text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.7);
}

/* ---------------------------------- */
/*      4. REUSABLE COMPONENTS        */
/* ---------------------------------- */

/* --- Buttons --- */
.btn {
    display: inline-block;
    padding: 0.9rem 2.2rem;
    font-family: var(--font-body);
    font-weight: 700;
    font-size: 1rem;
    border-radius: var(--btn-border-radius);
    border: none;
    cursor: pointer;
    text-align: center;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.btn-primary {
    background-color: var(--secondary-color);
    color: var(--light-text-color);
}

.btn-primary:hover {
    background-color: #15a388;
    color: var(--light-text-color);
    transform: translateY(-3px);
    box-shadow: 0 7px 20px rgba(24, 188, 156, 0.4);
}

.btn-secondary {
    background-color: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.btn-secondary:hover {
    background-color: var(--primary-color);
    color: var(--light-text-color);
    transform: translateY(-3px);
}

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

.card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.12);
}

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

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Ensures image covers the area without distortion */
    transition: transform 0.4s ease;
}

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

.card-content {
    padding: 1.8rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.card-content h3 {
    margin-bottom: 0.8rem;
    font-size: 1.4rem;
}

.card-content p {
    flex-grow: 1;
    margin-bottom: 1.5rem;
}

/* ---------------------------------- */
/*       5. SECTION-SPECIFIC          */
/* ---------------------------------- */

/* --- Accolades --- */
.stats-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    text-align: center;
}

.stat-widget .stat-value {
    font-family: var(--font-heading);
    font-size: 3.5rem;
    color: var(--secondary-color);
}

.stat-widget .stat-label {
    font-size: 1.1rem;
    color: var(--dark-text-color);
    font-weight: 700;
}

/* --- Carousels (Case Studies, Partners) --- */
.carousel-container {
    position: relative;
}

.carousel-track {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none; /* Firefox */
}

.carousel-track::-webkit-scrollbar {
    display: none; /* Chrome, Safari, Opera */
}

.carousel-track .card {
    flex: 0 0 100%;
    scroll-snap-align: center;
    margin-right: 2rem;
}

.carousel-buttons {
    text-align: center;
    margin-top: 2rem;
}

.carousel-btn {
    background-color: var(--primary-color);
    color: white;
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    font-size: 1.5rem;
    cursor: pointer;
    transition: background-color 0.3s;
    margin: 0 0.5rem;
}

.carousel-btn:hover {
    background-color: var(--secondary-color);
}

/* --- Behind the Scenes --- */
.columns-container {
    display: flex;
    gap: 3rem;
    align-items: center;
}

.column {
    flex: 1;
}

.volumetric-image {
    border-radius: var(--card-border-radius);
    box-shadow: 15px 15px 0px var(--secondary-color);
    transition: all 0.3s ease;
}

.volumetric-image img {
    border-radius: var(--card-border-radius);
}

.volumetric-image:hover {
    box-shadow: 20px 20px 0px var(--accent-color);
    transform: translate(-5px, -5px);
}

/* --- Workshops --- */
.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2.5rem;
}

/* --- Sustainability --- */
.parallax-section {
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
    background-attachment: fixed;
    color: var(--light-text-color);
}

.parallax-section .section-title.on-dark-bg {
    color: var(--light-text-color);
    text-shadow: 1px 1px 3px rgba(0,0,0,0.5);
}

.parallax-section .is-two-thirds {
    max-width: 66%;
    margin: 0 auto;
    background: rgba(0, 0, 0, 0.2);
    padding: 2rem;
    border-radius: var(--card-border-radius);
}

/* --- Partners --- */
.partners-carousel {
    display: flex;
    align-items: center;
    justify-content: space-around;
    flex-wrap: wrap;
    gap: 2rem;
}

.partner-logo img {
    filter: grayscale(100%);
    opacity: 0.7;
    transition: all 0.3s ease;
}

.partner-logo img:hover {
    filter: grayscale(0%);
    opacity: 1;
    transform: scale(1.1);
}

/* --- External Resources --- */
.resources-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 1.5rem;
}

.resource-card {
    display: block;
    padding: 1.5rem;
    border: 1px solid var(--border-color);
    border-radius: var(--card-border-radius);
    background: var(--light-text-color);
    transition: all 0.3s ease;
}

.resource-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.07);
    border-color: var(--secondary-color);
}

.resource-card h4 {
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.resource-card p {
    color: var(--dark-text-color);
    margin-bottom: 1rem;
    font-size: 0.9rem;
}

.resource-link {
    font-weight: 700;
    color: var(--secondary-color);
}

/* --- Contact Form --- */
.contact-form {
    max-width: 700px;
    margin: 0 auto;
}

.form-group {
    position: relative;
    margin-bottom: 2rem;
}

.contact-form input,
.contact-form textarea,
.contact-form select {
    width: 100%;
    padding: 1rem;
    border: 2px solid var(--border-color);
    border-radius: 10px;
    font-size: 1rem;
    font-family: var(--font-body);
    background-color: var(--light-text-color);
    transition: all 0.3s ease;
}

.contact-form input:focus,
.contact-form textarea:focus,
.contact-form select:focus {
    outline: none;
    border-color: var(--secondary-color);
    box-shadow: 0 0 0 4px rgba(24, 188, 156, 0.2);
}

.contact-form label {
    position: absolute;
    top: 1rem;
    left: 1rem;
    color: #999;
    pointer-events: none;
    transition: all 0.3s ease;
}

.contact-form input:focus + label,
.contact-form input:not(:placeholder-shown) + label,
.contact-form textarea:focus + label,
.contact-form textarea:not(:placeholder-shown) + label {
    top: -0.75rem;
    left: 0.75rem;
    font-size: 0.8rem;
    background-color: var(--light-bg-color);
    padding: 0 0.5rem;
    color: var(--secondary-color);
}
/* Special label handling for select */
.contact-form select:focus + label,
.contact-form select:valid + label {
     top: -0.75rem;
    left: 0.75rem;
    font-size: 0.8rem;
    background-color: var(--light-bg-color);
    padding: 0 0.5rem;
    color: var(--secondary-color);
}

.btn-submit {
    width: 100%;
}

/* ---------------------------------- */
/*      6. FOOTER                     */
/* ---------------------------------- */
.footer {
    background-color: var(--primary-color);
    color: rgba(255, 255, 255, 0.8);
    padding: 4rem 0 2rem 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.footer-title {
    font-size: 1.2rem;
    color: var(--light-text-color);
    margin-bottom: 1rem;
}

.footer-col ul {
    list-style: none;
}

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

.footer-col a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
}

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

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    font-size: 0.9rem;
}


/* ---------------------------------- */
/*      7. OTHER PAGES & MODALS       */
/* ---------------------------------- */

/* --- Success Page --- */
.success-page-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    text-align: center;
    padding: 2rem;
    background-color: var(--light-bg-color);
}
.success-card {
    background: var(--light-text-color);
    padding: 3rem 4rem;
    border-radius: var(--card-border-radius);
    box-shadow: 0 10px 40px rgba(0,0,0,0.1);
}
.success-card h1 { color: var(--secondary-color); }

/* --- Static Pages (Terms, Privacy) --- */
.static-page-container {
    padding-top: calc(var(--header-height) + 3rem);
    padding-bottom: 3rem;
}
.static-page-container h1 { margin-bottom: 2rem; }
.static-page-container h2 { margin-top: 2rem; margin-bottom: 1rem; }

/* --- Cookie Popup --- */
#cookie-popup {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: rgba(44, 62, 80, 0.95);
    color: white;
    padding: 1rem 2rem;
    z-index: 9999;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}
#cookie-popup p { margin: 0; }
#cookie-popup a { color: var(--secondary-color); text-decoration: underline; }
#accept-cookie {
    padding: 0.5rem 1.5rem;
    background-color: var(--secondary-color);
    color: white;
    border: none;
    border-radius: var(--btn-border-radius);
    cursor: pointer;
}

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

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


/* ---------------------------------- */
/*      8. RESPONSIVE DESIGN          */
/* ---------------------------------- */

@media (max-width: 992px) {
    .section-title { font-size: 2.2rem; }
    .hero-title { font-size: 3rem; }
    .hero-subtitle { font-size: 1.2rem; }
    
    .columns-container { flex-direction: column; }
    .volumetric-image { margin-top: 2rem; }
    .parallax-section .is-two-thirds { max-width: 90%; }
}

@media (max-width: 768px) {
    :root { --section-padding: 3.5rem 0; }
    
    /* Mobile Navigation */
    .nav-menu {
        position: fixed;
        left: -100%;
        top: var(--header-height);
        flex-direction: column;
        background-color: var(--light-text-color);
        width: 100%;
        height: calc(100vh - var(--header-height));
        text-align: center;
        transition: 0.3s;
        gap: 2rem;
        padding-top: 2rem;
        box-shadow: 0 10px 20px rgba(0,0,0,0.1);
    }
    .nav-menu.active {
        left: 0;
    }
    .nav-item { margin: 1rem 0; }
    .hamburger {
        display: block;
    }
    .hamburger.active .bar:nth-child(2) { opacity: 0; }
    .hamburger.active .bar:nth-child(1) { transform: translateY(8px) rotate(45deg); }
    .hamburger.active .bar:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

    /* Layout adjustments */
    .hero-title { font-size: 2.5rem; }
    .section-title { font-size: 2rem; }
    
    .carousel-track .card {
        flex-basis: 90%;
        margin-left: 5%;
        margin-right: 5%;
    }
    .carousel-track {
        padding-left: 0;
    }

    .footer-grid { grid-template-columns: 1fr; }
    .footer-col { text-align: center; }

    #cookie-popup { flex-direction: column; text-align: center; }
}

@media (max-width: 576px) {
    .container {
        padding-left: 0.8rem;
        padding-right: 0.8rem;
    }
    .hero-title {
        font-size: 2rem;
    }
    .hero-subtitle {
        font-size: 1.1rem;
    }
    .cards-grid, .resources-grid {
        grid-template-columns: 1fr;
    }
}