/* ====================
   GLOBAL STYLES (ETAP 0)
   ==================== */
:root {
    --bg-color: #F8F5F2;
    --text-color: #2C3E50;
    --primary-color: #34495E;
    --accent-color: #E67E22;
    --accent-hover-color: #D35400;
    --white-color: #FFFFFF;
    --border-color: #EAEAEA;
    
    --font-heading: 'Montserrat', sans-serif;
    --font-body: 'Lato', sans-serif;
}

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

html {
    scroll-behavior: smooth;
}

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

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

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

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

ul {
    list-style: none;
}

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

/* ====================
   HEADER STYLES (ETAP 1)
   ==================== */
.header {
    background-color: var(--bg-color);
    padding: 20px 0;
    position: sticky;
    top: 0;
    z-index: 100;
    border-bottom: 1px solid var(--border-color);
}

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

.header__logo {
    font-family: var(--font-heading);
    font-size: 24px;
    font-weight: 700;
    color: var(--primary-color);
}

.header__nav-list {
    display: flex;
    align-items: center;
    gap: 30px;
}

.header__nav-link {
    font-size: 16px;
    font-weight: 700;
    position: relative;
    padding: 5px 0;
}

.header__nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--accent-color);
    transition: width 0.3s ease;
}

.header__nav-link:hover::after {
    width: 100%;
}

.header__nav-link--button {
    background-color: var(--accent-color);
    color: var(--white-color);
    padding: 10px 20px;
    border-radius: 5px;
    transition: background-color 0.3s ease;
}

.header__nav-link--button:hover {
    background-color: var(--accent-hover-color);
    color: var(--white-color);
}

.header__nav-link--button::after {
    display: none;
}

.header__burger-button {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    color: var(--primary-color);
}

/* ====================
   FOOTER STYLES (ETAP 2)
   ==================== */
.footer {
    background-color: var(--primary-color);
    color: var(--white-color);
    padding: 60px 0 0;
}

.footer__container {
    display: grid;
    grid-template-columns: 2fr 1fr 1.5fr 1.5fr;
    gap: 40px;
    padding-bottom: 40px;
}

.footer__logo {
    font-family: var(--font-heading);
    font-size: 28px;
    font-weight: 700;
    color: var(--white-color);
    display: block;
    margin-bottom: 10px;
}

.footer__tagline {
    font-size: 14px;
    opacity: 0.8;
    max-width: 250px;
}

.footer__title {
    font-size: 18px;
    font-weight: 600;
    color: var(--white-color);
    margin-bottom: 15px;
}

.footer__list li {
    margin-bottom: 10px;
}

.footer__link {
    color: var(--white-color);
    opacity: 0.8;
    transition: opacity 0.3s ease;
}

.footer__link:hover {
    opacity: 1;
    color: var(--white-color);
}

.footer__link--with-icon {
    display: flex;
    align-items: center;
    gap: 10px;
}

.footer__list--contacts .lucide {
    flex-shrink: 0;
    width: 20px;
    height: 20px;
}

.footer__bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 20px 0;
    text-align: center;
    font-size: 14px;
    opacity: 0.7;
}

/* ====================
   ADAPTIVE STYLES
   ==================== */

/* Medium devices (tablets, less than 992px) */
@media (max-width: 991.98px) {
    .header__nav {
        display: none; /* Will be handled by JS */
    }

    .header__burger-button {
        display: block;
    }
    
    .footer__container {
        grid-template-columns: 1fr 1fr;
    }
}

/* Small devices (landscape phones, less than 768px) */
@media (max-width: 767.98px) {
    body {
        font-size: 15px;
    }

    .footer__container {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .footer__column {
        display: flex;
        flex-direction: column;
        align-items: center;
    }
    
    .footer__link--with-icon {
        justify-content: center;
    }
    
    .footer__tagline {
        margin: 0 auto;
    }
}

/* ====================
   HERO SECTION STYLES (ETAP 3)
   ==================== */
.hero {
    padding: 80px 0;
    overflow: hidden; /* To prevent horizontal scroll on small animations */
}

.hero__container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 60px;
}

.hero__title {
    font-size: 48px;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 20px;
    min-height: 115px; /* Reserve space to prevent layout shift during typing */
}

/* Blinking cursor for typing effect */
.hero__title::after {
    content: '|';
    animation: blink 1s step-end infinite;
    color: var(--accent-color);
    font-weight: 400;
}

@keyframes blink {
    from, to {
        opacity: 1;
    }
    50% {
        opacity: 0;
    }
}

.hero__subtitle {
    font-size: 18px;
    line-height: 1.7;
    margin-bottom: 40px;
    max-width: 500px;
}

.hero__cta {
    display: inline-block;
    background-color: var(--accent-color);
    color: var(--white-color);
    padding: 15px 35px;
    border-radius: 5px;
    font-weight: 700;
    font-size: 16px;
    transition: background-color 0.3s ease, transform 0.3s ease;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.hero__cta:hover {
    background-color: var(--accent-hover-color);
    color: var(--white-color);
    transform: translateY(-3px);
}

.hero__visual {
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero__image {
    max-width: 100%;
    height: auto;
    border-radius: 15px;
    animation: float 6s ease-in-out infinite;
}

/* Floating animation for image */
@keyframes float {
    0% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-20px);
    }
    100% {
        transform: translateY(0px);
    }
}

/* ============================
   HERO ADAPTIVE STYLES
   ============================ */

/* Medium devices (tablets, less than 992px) */
@media (max-width: 991.98px) {
    .hero__title {
        font-size: 40px;
        min-height: 96px;
    }

    .hero__subtitle {
        font-size: 16px;
    }
}

/* Small devices (landscape phones, less than 768px) */
@media (max-width: 767.98px) {
    .hero {
        padding: 60px 0;
        text-align: center;
    }

    .hero__container {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .hero__content {
        order: 2; /* Text goes below the image */
    }

    .hero__visual {
        order: 1;
    }
    
    .hero__title {
        font-size: 36px;
        min-height: 0; /* No need to reserve space on mobile */
    }
    
    .hero__subtitle {
        max-width: 100%;
        margin-bottom: 30px;
    }
}

/* ========================
   SHARED SECTION STYLES
   ======================== */

.section-title {
    font-size: 36px;
    text-align: center;
    margin-bottom: 15px;
}

.section-subtitle {
    font-size: 18px;
    text-align: center;
    max-width: 600px;
    margin: 0 auto 60px;
    color: var(--text-color);
    opacity: 0.9;
}


/* ===========================
   STRATEGIES SECTION STYLES
   =========================== */
.strategies {
    padding: 100px 0;
    background-color: var(--white-color);
}

.strategies__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.strategies__card {
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 40px 30px;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    
    /* Styles for scroll animation */
    opacity: 0;
    transform: translateY(30px);
}

.strategies__card.is-visible {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}
/* Add staggered delay for cards */
.strategies__card.is-visible:nth-child(2) {
    transition-delay: 0.2s;
}
.strategies__card.is-visible:nth-child(3) {
    transition-delay: 0.4s;
}


.strategies__card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.07);
}

.strategies__card-icon {
    margin-bottom: 25px;
}

.strategies__card-icon .lucide {
    width: 48px;
    height: 48px;
    color: var(--accent-color);
}

.strategies__card-title {
    font-size: 22px;
    margin-bottom: 15px;
}

.strategies__card-description {
    font-size: 16px;
    line-height: 1.6;
}

/* ================================
   STRATEGIES ADAPTIVE STYLES
   ================================ */

@media (max-width: 991.98px) {
    .strategies__grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 767.98px) {
    .strategies {
        padding: 80px 0;
    }
    .section-title {
        font-size: 32px;
    }
    .section-subtitle {
        font-size: 16px;
        margin-bottom: 40px;
    }
}

/* ========================
   CASES SECTION STYLES
   ======================== */
.cases {
    padding: 100px 0;
}

.cases__layout {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 50px;
    align-items: flex-start;
}

.cases__tabs-nav {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.cases__tab-btn {
    display: block;
    width: 100%;
    padding: 20px;
    border: 1px solid var(--border-color);
    background-color: var(--white-color);
    border-radius: 8px;
    text-align: left;
    cursor: pointer;
    transition: background-color 0.3s ease, border-color 0.3s ease;
    font-family: var(--font-body);
}

.cases__tab-btn:hover {
    background-color: var(--bg-color);
    border-color: #ddd;
}

.cases__tab-btn--active {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    color: var(--white-color);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.cases__tab-btn--active:hover {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.cases__tab-title {
    display: block;
    font-family: var(--font-heading);
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 5px;
}

.cases__tab-btn--active .cases__tab-title {
    color: var(--white-color);
}

.cases__tab-description {
    font-size: 14px;
    line-height: 1.5;
    opacity: 0.7;
}

.cases__tab-btn--active .cases__tab-description {
    opacity: 0.9;
}

.cases__tab-panel {
    display: none; /* Hidden by default */
    background-color: var(--white-color);
    border-radius: 8px;
    border: 1px solid var(--border-color);
    padding: 40px;
    animation: fadeIn 0.5s ease-in-out;
}

.cases__tab-panel--active {
    display: block; /* Shown when active */
}

.cases__panel-content h3 {
    font-size: 16px;
    font-weight: 700;
    color: var(--accent-color);
    margin-top: 20px;
    margin-bottom: 5px;
}
.cases__panel-content h3:first-child {
    margin-top: 0;
}

.cases__panel-content p {
    line-height: 1.7;
}

.cases__panel-visual {
    margin-bottom: 30px;
}

.cases__panel-visual img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    object-fit: cover;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ===========================
   CASES ADAPTIVE STYLES
   =========================== */

@media (max-width: 991.98px) {
    .cases__layout {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .cases__tabs-nav {
        flex-direction: row;
        overflow-x: auto; /* Allow horizontal scroll for tabs */
        padding-bottom: 10px; /* Space for scrollbar */
    }

    .cases__tab-btn {
        flex-shrink: 0; /* Prevent buttons from shrinking */
        width: 250px;
    }
}

@media (max-width: 767.98px) {
    .cases {
        padding: 80px 0;
    }
    .cases__tab-panel {
        padding: 30px;
    }
}

/* ========================
   RESOURCES SECTION STYLES
   ======================== */
.resources {
    padding: 100px 0;
    background-color: var(--white-color);
}

.resources__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.resources__card {
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 30px;
    background-color: var(--bg-color);
    display: flex;
    flex-direction: column;
    
    /* Styles for scroll animation */
    opacity: 0;
    transform: translateY(30px);
}

.resources__card.is-visible {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}
/* Add staggered delay for cards */
.resources__card.is-visible:nth-child(2) {
    transition-delay: 0.2s;
}
.resources__card.is-visible:nth-child(3) {
    transition-delay: 0.4s;
}

.resources__card-icon {
    margin-bottom: 20px;
}

.resources__card-icon .lucide {
    width: 44px;
    height: 44px;
    color: var(--primary-color);
}

.resources__card-title {
    font-size: 20px;
    margin-bottom: 10px;
}

.resources__card-description {
    font-size: 15px;
    line-height: 1.6;
    margin-bottom: 25px;
    flex-grow: 1; /* Pushes the button to the bottom */
}

.resources__card-cta {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    padding: 12px;
    background: none;
    border: 1px solid var(--accent-color);
    color: var(--accent-color);
    border-radius: 5px;
    font-weight: 700;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.resources__card-cta .lucide {
    width: 18px;
    height: 18px;
}

.resources__card-cta:hover {
    background-color: var(--accent-color);
    color: var(--white-color);
}

/* ================================
   RESOURCES ADAPTIVE STYLES
   ================================ */

@media (max-width: 991.98px) {
    .resources__grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 767.98px) {
    .resources {
        padding: 80px 0;
    }
}

/* ========================
   ABOUT SECTION STYLES
   ======================== */
.about {
    padding: 100px 0;
}

.about__layout {
    display: grid;
    grid-template-columns: 1fr 2fr;
    align-items: center;
    gap: 60px;
    
    /* Styles for scroll animation */
    opacity: 0;
    transform: translateY(30px);
}

.about__layout.is-visible {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}


.about__image-wrapper {
    width: 100%;
    max-width: 350px;
    margin: 0 auto;
}

.about__image {
    width: 100%;
    height: auto;
    border-radius: 50%; /* Makes the image circular */
    border: 5px solid var(--white-color);
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.about__text {
    margin-bottom: 20px;
    line-height: 1.7;
    font-size: 17px;
}

.about__stats {
    display: flex;
    gap: 40px;
    margin-top: 40px;
    padding-top: 30px;
    border-top: 1px solid var(--border-color);
}

.about__stats-item {
    text-align: left;
}

.about__stats-number {
    display: block;
    font-size: 36px;
    font-weight: 700;
    color: var(--accent-color);
    line-height: 1;
}

.about__stats-label {
    font-size: 14px;
    color: var(--text-color);
    opacity: 0.8;
}

/* ===========================
   ABOUT ADAPTIVE STYLES
   =========================== */

@media (max-width: 991.98px) {
    .about__layout {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .about__stats {
        justify-content: center;
        gap: 30px;
    }
    
    .about__stats-item {
        text-align: center;
    }
}

@media (max-width: 767.98px) {
    .about {
        padding: 80px 0;
    }
    .about__layout {
        gap: 40px;
    }
    .about__stats {
        flex-direction: column;
        align-items: center;
        gap: 20px;
        margin-top: 30px;
        padding-top: 20px;
    }
    .about__image-wrapper {
        max-width: 250px;
    }
}

/* ========================
   CONTACT SECTION STYLES
   ======================== */
.contact {
    padding: 100px 0;
    background-color: var(--white-color);
}

.contact__layout {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 60px;
    background-color: var(--bg-color);
    padding: 50px;
    border-radius: 15px;
}

.contact__info h3 {
    font-size: 24px;
    margin-bottom: 15px;
}
.contact__info p {
    margin-bottom: 30px;
    line-height: 1.7;
}

.contact__info-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-bottom: 40px;
}

.contact__info-link {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
}

.contact__info-image {
    margin-top: auto;
}
.contact__info-image img {
    max-width: 100%;
    opacity: 0.1;
}

/* Form Styles */
.form-group {
    margin-bottom: 20px;
}

.form-label {
    display: block;
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 8px;
}

.form-input {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid var(--border-color);
    border-radius: 5px;
    font-size: 16px;
    font-family: var(--font-body);
    transition: border-color 0.3s, box-shadow 0.3s;
}

.form-input:focus {
    outline: none;
    border-color: var(--accent-color);
    box-shadow: 0 0 0 3px rgba(230, 126, 34, 0.2);
}

.form-group--checkbox {
    display: flex;
    align-items: center;
    gap: 10px;
}
.form-group--checkbox input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: var(--accent-color);
}
.form-group--checkbox label {
    margin: 0;
    font-size: 14px;
    font-weight: 400;
}

#captcha-question {
    font-weight: bold;
    color: var(--primary-color);
}

.contact__submit-btn {
    width: 100%;
    padding: 15px;
    border: none;
    background-color: var(--accent-color);
    color: var(--white-color);
    font-size: 18px;
    font-weight: 700;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s;
}
.contact__submit-btn:hover {
    background-color: var(--accent-hover-color);
}
.contact__submit-btn:disabled {
    background-color: #ccc;
    cursor: not-allowed;
}

.form-message {
    padding: 15px;
    border-radius: 5px;
    margin-bottom: 20px;
    font-size: 15px;
    display: none; /* Hidden by default */
}
.form-message--success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
    display: block;
}
.form-message--error {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
    display: block;
}

/* ===========================
   CONTACT ADAPTIVE STYLES
   =========================== */
@media (max-width: 991.98px) {
    .contact__layout {
        grid-template-columns: 1fr;
        padding: 30px;
    }
    .contact__info-image { display: none; }
}

@media (max-width: 767.98px) {
    .contact {
        padding: 80px 0;
    }
}

/* ========================
   COOKIE POP-UP STYLES (ETAP 5)
   ======================== */
.cookie-popup {
    position: fixed;
    bottom: -100%; /* Initially hidden */
    left: 0;
    width: 100%;
    background-color: var(--primary-color);
    color: var(--white-color);
    padding: 20px;
    z-index: 200;
    transition: bottom 0.5s ease-in-out;
    box-shadow: 0 -5px 20px rgba(0,0,0,0.1);
}

.cookie-popup.is-visible {
    bottom: 0; /* Show the popup */
}

.cookie-popup__content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    gap: 20px;
}

.cookie-popup__text {
    font-size: 15px;
}

.cookie-popup__text a {
    color: var(--white-color);
    text-decoration: underline;
    font-weight: bold;
}
.cookie-popup__text a:hover {
    text-decoration: none;
}

.cookie-popup__button {
    background-color: var(--accent-color);
    color: var(--white-color);
    border: none;
    padding: 10px 25px;
    border-radius: 5px;
    cursor: pointer;
    font-weight: 700;
    flex-shrink: 0;
    transition: background-color 0.3s ease;
}

.cookie-popup__button:hover {
    background-color: var(--accent-hover-color);
}

@media (max-width: 767.98px) {
    .cookie-popup__content {
        flex-direction: column;
        text-align: center;
    }
}


/* ========================
   POLICY PAGES STYLES (ETAP 5)
   ======================== */
.pages {
    padding: 80px 0;
    background-color: var(--white-color);
}

.pages .container {
    max-width: 800px; /* Narrower container for better readability */
}

.pages h1 {
    font-size: 42px;
    margin-bottom: 30px;
}

.pages h2 {
    font-size: 28px;
    margin-top: 40px;
    margin-bottom: 20px;
}

.pages p, 
.pages li {
    font-size: 17px;
    line-height: 1.8;
    margin-bottom: 20px;
}

.pages a {
    color: var(--accent-color);
    text-decoration: underline;
    font-weight: bold;
}

.pages a:hover {
    text-decoration: none;
}

.pages ul {
    list-style: disc;
    padding-left: 20px;
}

.pages ul li {
    margin-bottom: 15px;
}

.pages strong {
    font-weight: 700;
    color: var(--primary-color);
}