/* Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Variables */
:root {
    --green: #7BC5B5;
    --green-dark: #5FA99A;
    --dark: #2c3e50;
    --gray: #666;
    --light: #f5f5f5;
    --white: #fff;
}

/* Base */
body {
    font-family: 'Montserrat', sans-serif;
    line-height: 1.6;
    color: var(--dark);
}

html {
    scroll-behavior: smooth;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Navbar */
.navbar {
    background: var(--white);
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: var(--dark);
    font-size: 1.5rem;
    font-weight: 700;
}

.logo img {
    height: 50px;
    width: auto;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 30px;
    align-items: center;
}

.nav-menu a {
    text-decoration: none;
    color: var(--dark);
    font-weight: 500;
    transition: color 0.3s;
}

.nav-menu a:hover {
    color: var(--green);
}

.menu-btn {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
}

.menu-btn span {
    width: 25px;
    height: 3px;
    background: var(--dark);
    transition: all 0.3s;
}

/* EU Funding Banner */
.eu-funding-banner {
    background: #ffffff;
    padding: 12px 20px;
    border-bottom: none;
    font-family: 'Montserrat', Arial, Helvetica, sans-serif;
    margin-top: 80px;
}

.eu-funding-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.eu-left {
    display: flex;
    align-items: center;
    gap: 12px;
}

.eu-flag {
    width: 72px;
    height: auto;
    border-radius: 4px;
}

.eu-main {
    max-width: 420px;
    width: 100%;
    height: auto;
    display: block;
}

.eu-text {
    color: #0052a5;
    display: flex;
    flex-direction: column;
    line-height: 1;
}

.eu-text strong {
    font-size: 11px;
    color: #0070c0;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin: 0;
}

.eu-text span {
    font-size: 20px;
    font-weight: 800;
    color: #003e7e;
    margin-top: 2px;
}

.gov-logo {
    width: 90px;
    height: auto;
}

.gov-main {
    width: 70px;
    max-width: 90px;
    height: auto;
    display: block;
    object-fit: contain;
}

.eu-funding-bottom {
    text-align: center;
    margin-top: 25px;
}

.project-title {
    font-size: 18px;
    color: #777;
    margin-bottom: 5px;
}

.project-description {
    font-size: 16px;
    color: #777;
    max-width: 1000px;
    margin: 0 auto;
    line-height: 1.5;
}

/* Hero */
.hero {
    background-image: 
        linear-gradient(135deg, rgba(123, 197, 181, 0.85) 0%, rgba(95, 169, 154, 0.85) 100%),
        url('echipa de lucru in fata magazinului .jpeg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    color: var(--white);
    text-align: center;
    padding: 120px 20px 80px;
}

.hero h1 {
    font-size: 3rem;
    margin-bottom: 20px;
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    opacity: 0.95;
}

.btn {
    display: inline-block;
    padding: 15px 40px;
    background: var(--white);
    color: var(--green);
    text-decoration: none;
    border-radius: 5px;
    font-weight: 600;
    transition: all 0.3s;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

/* Section */
.section {
    padding: 80px 20px;
}

.section h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 50px;
    color: var(--dark);
}

.bg-light {
    background: var(--light);
}

/* About Section */
.about-wrapper {
    display: grid;
    grid-template-columns: 400px 1fr;
    gap: 60px;
    align-items: center;
    margin-top: 40px;
    max-width: 1100px;
    margin-left: auto;
    margin-right: auto;
}

.about-image img {
    width: 100%;
    border-radius: 15px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
    transition: transform 0.3s;
}

.about-image img:hover {
    transform: scale(1.02);
}

.about-text p {
    color: var(--gray);
    line-height: 1.9;
    margin-bottom: 20px;
    font-size: 1.15rem;
    text-align: justify;
}

.about-text p:first-child {
    font-size: 1.2rem;
    color: var(--dark);
    font-weight: 500;
}

/* Grid */
.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

/* Card */
.card {
    background: var(--white);
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
    transition: transform 0.3s;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 20px rgba(0,0,0,0.15);
}

.card h3 {
    color: var(--green);
    margin-bottom: 15px;
    font-size: 1.5rem;
}

.card p {
    color: var(--gray);
    line-height: 1.8;
}

.highlight-intro,
.case-intro {
    max-width: 920px;
    margin: 0 auto 35px;
    text-align: center;
}

.highlight-intro p,
.case-intro p {
    font-size: 1.08rem;
    color: var(--gray);
    margin-bottom: 12px;
}

.in-category-intro {
    padding: 14px 14px 0;
    margin-bottom: 0;
}

#cazuri {
    background: linear-gradient(180deg, #f8fbfa 0%, #ffffff 35%);
}

#cazuri .container {
    max-width: 1100px;
}

.cases-stack {
    display: grid;
    gap: 18px;
    counter-reset: case-category;
}

#cazuri .photo-category {
    background: var(--white);
    border-radius: 16px;
    border: 1px solid rgba(95, 169, 154, 0.2);
    box-shadow: 0 12px 32px rgba(30, 58, 57, 0.08);
    overflow: hidden;
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

#cazuri .photo-category:hover {
    transform: translateY(-2px);
    box-shadow: 0 16px 34px rgba(30, 58, 57, 0.12);
    border-color: rgba(95, 169, 154, 0.38);
}

#cazuri .photo-category summary {
    list-style: none;
    cursor: pointer;
    padding: 18px 22px;
    font-size: 1.03rem;
    color: var(--dark);
    font-weight: 700;
    letter-spacing: 0.01em;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    background: linear-gradient(92deg, rgba(123, 197, 181, 0.2), rgba(255, 255, 255, 0.9));
}

#cazuri .photo-category summary::-webkit-details-marker {
    display: none;
}

#cazuri .photo-category summary::before {
    counter-increment: case-category;
    content: counter(case-category, decimal-leading-zero);
    min-width: 34px;
    height: 34px;
    border-radius: 999px;
    background: var(--white);
    color: var(--green-dark);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.82rem;
    font-weight: 700;
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.08);
}

#cazuri .photo-category summary::after {
    content: "+";
    width: 30px;
    height: 30px;
    border-radius: 50%;
    border: 1px solid rgba(95, 169, 154, 0.35);
    color: var(--green-dark);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    line-height: 1;
    flex-shrink: 0;
    background: rgba(255, 255, 255, 0.8);
}

#cazuri .photo-category[open] summary::after {
    content: "-";
}

#cazuri .photo-category[open] {
    border-color: rgba(95, 169, 154, 0.42);
    box-shadow: 0 18px 36px rgba(30, 58, 57, 0.14);
}

#cazuri .photo-category .gallery,
#cazuri .photo-category .case-gallery,
#cazuri .photo-category .sponge-image,
#cazuri .photo-category .academy-proof,
#cazuri .photo-category .case-detail-content {
    padding: 18px;
}

#cazuri .photo-category[open] > *:not(summary) {
    animation: categoryReveal 0.28s ease;
}

@keyframes categoryReveal {
    from {
        opacity: 0;
        transform: translateY(-6px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.sponge-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
    align-items: stretch;
    margin-top: 25px;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.sponge-content {
    margin: 0;
    padding: 40px;
    text-align: center;
}

.sponge-content h3 {
    margin-bottom: 15px;
    font-size: 1.8rem;
    color: var(--green-dark);
}

.sponge-content p {
    font-size: 1.05rem;
    line-height: 1.8;
}

.benefits-list {
    list-style: none;
    margin: 18px 0;
    padding: 0;
}

.benefits-list li {
    position: relative;
    padding-left: 28px;
    margin-bottom: 10px;
    color: var(--gray);
    font-weight: 500;
}

.benefits-list li::before {
    content: "✔";
    position: absolute;
    left: 0;
    top: 0;
    color: var(--green-dark);
    font-weight: 700;
}

.sponge-note {
    color: var(--dark);
    font-weight: 600;
}

.sponge-image img,
.academy-proof img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 12px;
    box-shadow: 0 8px 22px rgba(0, 0, 0, 0.14);
}

.academy-proof {
    max-width: 680px;
    margin: 32px auto 0;
}

.academy-category {
    margin-top: 26px;
}

.academy-gallery {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-top: 32px;
}

.academy-gallery .academy-proof {
    max-width: 100%;
    margin: 0;
}

.case-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 14px;
}

.case-gallery img {
    width: 100%;
    height: 260px;
    object-fit: cover;
    border-radius: 12px;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.12);
    transition: transform 0.3s, box-shadow 0.3s;
}

.case-gallery img:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.18);
}

.case-detail-content {
    display: grid;
    grid-template-columns: minmax(240px, 340px) 1fr;
    gap: 22px;
    align-items: start;
}

.case-detail-content > img {
    width: 100%;
    border-radius: 10px;
    object-fit: cover;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.12);
}

.case-description h3 {
    color: var(--green-dark);
    margin-bottom: 10px;
    font-size: 1.3rem;
}

.case-description p {
    color: var(--gray);
    margin-bottom: 10px;
    line-height: 1.7;
}

.case-list {
    margin: 0 0 14px 20px;
    color: var(--gray);
}

.case-list li {
    margin-bottom: 6px;
}

#cazuri .benefits-list {
    margin-top: 14px;
}

/* Gallery */
.gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    grid-auto-rows: 280px;
    gap: 10px;
    margin-top: 40px;
    grid-auto-flow: dense;
}

.gallery img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 8px;
    transition: transform 0.3s, box-shadow 0.3s;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.gallery img:hover {
    transform: scale(1.02);
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    z-index: 1;
}

/* Contact */
.contact-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-top: 40px;
}

.info {
    text-align: center;
}

.info h4 {
    color: var(--green);
    margin-bottom: 10px;
    font-size: 1.2rem;
}

.info p,
.info a {
    color: var(--gray);
    text-decoration: none;
}

.info a:hover {
    color: var(--green);
}

.contact-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
    align-items: center;
}

.contact-btn {
    display: inline-block;
    padding: 10px 16px;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--green), var(--green-dark));
    color: var(--white) !important;
    text-decoration: none;
    font-weight: 600;
    box-shadow: 0 6px 14px rgba(95, 169, 154, 0.28);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.contact-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 18px rgba(95, 169, 154, 0.34);
}

/* Footer */
.footer {
    background: var(--dark);
    color: var(--white);
    padding: 60px 20px 30px;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 50px;
    margin-bottom: 40px;
}

.footer-brand .logo {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
}

.footer-brand .logo img {
    height: 40px;
}

.footer-brand .logo span {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--white);
}

.footer-brand p {
    opacity: 0.8;
    line-height: 1.6;
}

.footer-links h4,
.footer-contact h4 {
    margin-bottom: 15px;
    color: var(--green);
}

.footer-links a {
    display: block;
    color: var(--white);
    text-decoration: none;
    opacity: 0.8;
    margin-bottom: 10px;
    transition: opacity 0.3s;
}

.footer-links a:hover {
    opacity: 1;
}

.footer-contact p {
    opacity: 0.8;
    margin-bottom: 8px;
}

.footer-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 10px;
}

.footer-btn {
    display: inline-block;
    padding: 8px 14px;
    border-radius: 999px;
    background: rgba(123, 197, 181, 0.16);
    border: 1px solid rgba(123, 197, 181, 0.5);
    color: #d8f5ee;
    text-decoration: none;
    font-weight: 600;
}

.footer-btn:hover {
    background: rgba(123, 197, 181, 0.28);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.6);
}

.eu-funding-text {
    background: rgba(255, 255, 255, 0.05);
    padding: 1.5rem;
    border-radius: 8px;
    margin-bottom: 1.5rem;
    border-left: 4px solid var(--green);
}

.eu-funding-text p {
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 0.8rem;
    line-height: 1.6;
}

.eu-funding-text p:last-child {
    margin-bottom: 0;
}

.eu-funding-text strong {
    color: var(--white);
    font-weight: 600;
}

.eu-funding-text a {
    color: var(--green);
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.eu-funding-text a:hover {
    text-decoration: underline;
    color: #95d5c5;
}

.footer-bottom > p:last-child {
    opacity: 0.7;
    margin-top: 15px;
}

/* Mobile */
@media (max-width: 768px) {
    .menu-btn {
        display: flex;
    }
    
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 80px;
        flex-direction: column;
        background: var(--white);
        width: 100%;
        text-align: center;
        transition: left 0.3s;
        box-shadow: 0 10px 27px rgba(0, 0, 0, 0.1);
        padding: 40px 0;
    }
    
    .nav-menu.active {
        left: 0;
    }
    
    .eu-funding-banner {
        padding: 12px 16px;
    }
    
    .eu-funding-top {
        flex-direction: column;
        text-align: center;
        gap: 12px;
        align-items: center;
    }
    
    .eu-flag {
        width: 70px;
    }
    
    .gov-logo {
        width: 80px;
    }
    
    .eu-text strong {
        font-size: 13px;
    }
    
    .eu-text span {
        font-size: 16px;
    }
    
    .eu-main {
        max-width: 300px;
    }
    
    .gov-main {
        width: 60px;
    }
    
    .hero {
        background-attachment: scroll;
        padding: 100px 20px 60px;
    }
    
    .hero h1 {
        font-size: 2rem;
    }
    
    .hero p {
        font-size: 1rem;
    }
    
    .section h2 {
        font-size: 2rem;
    }
    
    .about-wrapper {
        grid-template-columns: 1fr;
        gap: 30px;
        text-align: center;
    }

    .about-image {
        max-width: 400px;
        margin: 0 auto;
    }

    .academy-gallery {
        grid-template-columns: 1fr;
    }

    .sponge-grid {
        grid-template-columns: 1fr;
    }

    .case-detail-content {
        grid-template-columns: 1fr;
    }

    #cazuri .photo-category summary {
        padding: 16px;
        font-size: 0.95rem;
    }

    #cazuri .photo-category summary::before {
        min-width: 30px;
        height: 30px;
        font-size: 0.74rem;
    }

    .sponge-image img {
        max-height: 480px;
    }

    .highlight-intro p,
    .case-intro p {
        font-size: 1rem;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .grid,
    .gallery,
    .contact-info {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .logo {
        font-size: 1.2rem;
    }
    
    .logo img {
        height: 40px;
    }
    
    .eu-funding-banner {
        margin-top: 100px;
        padding: 6px 6px !important;
    }
    
    .eu-funding-top {
        display: flex !important;
        flex-direction: row !important;
        justify-content: space-between !important;
        align-items: center !important;
        gap: 6px !important;
        padding: 0 6px !important;
        flex-wrap: nowrap !important;
    }
    
    .eu-left {
        align-items: center !important;
        gap: 8px !important;
        min-width: 0;
        flex: 1 1 auto;
    }
    
    .eu-flag {
        width: 34px !important;
        height: auto !important;
        flex: 0 0 auto;
    }
    
    .eu-text {
        display: flex !important;
        flex-direction: column !important;
        font-size: 12px !important;
        color: #0052a5 !important;
        margin-left: 6px !important;
        max-width: calc(100% - 88px) !important;
    }
    
    .eu-text strong {
        font-size: 11px;
        font-weight: 700;
        color: #0052a5;
        display: block;
    }
    
    .eu-text span {
        font-size: 13px;
        font-weight: 700;
        color: #0052a5;
        display: block;
    }
    
    .eu-right {
        flex: 0 0 auto;
    }
    
    .gov-logo {
        width: 34px !important;
        height: auto !important;
    }
    
    .eu-funding-bottom {
        display: none !important;
    }
    
    .eu-main {
        max-width: 180px;
    }
    
    .gov-main {
        width: 34px;
    }
    
    .project-title {
        font-size: 1rem;
    }
    
    .project-description {
        font-size: 0.9rem;
    }
    
    .hero {
        padding: 120px 20px 60px;
    }
    
    .section {
        padding: 60px 20px;
    }
    
    .btn {
        padding: 12px 30px;
        font-size: 0.9rem;
    }

    #cazuri .photo-category .case-gallery,
    #cazuri .photo-category .case-detail-content {
        padding: 14px;
    }

    .case-gallery img {
        height: 240px;
    }
}
