/* ======== GLOBAL STYLES & VARIABLES ======== */
:root {
    /* Colors */
    --bg-color: #F8F9FA;
    --text-color: #212529;
    --primary-color: #0B5345;
    --secondary-text-color: #6c757d;
    --accent-bg-color: #EAF2F8;
    --border-color: #dee2e6;

    /* Fonts */
    --font-family-headings: 'Playfair Display', serif;
    --font-family-body: 'Inter', sans-serif;

    /* Spacing */
    --container-width: 1200px;
    --container-padding: 1rem;
}

/* Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-family-body);
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.6;
}

.container {
    max-width: var(--container-width);
    margin-left: auto;
    margin-right: auto;
    padding-left: var(--container-padding);
    padding-right: var(--container-padding);
}

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

a:hover {
    color: #0F715D; /* Slightly lighter green */
}

ul {
    list-style: none;
}

/* ======== HEADER ======== */
.header {
    background-color: var(--bg-color);
    padding: 1rem 0;
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 100;
    backdrop-filter: blur(5px);
    background-color: rgba(248, 249, 250, 0.8);
}

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

.header__logo {
    font-family: var(--font-family-headings);
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--text-color);
}

.header__nav {
    display: none; /* Hidden on mobile */
}

.header__toggle {
    background: none;
    border: none;
    cursor: pointer;
    color: var(--text-color);
}

.header__nav-link--button {
    background-color: var(--primary-color);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 5px;
    transition: background-color 0.3s ease;
}

.header__nav-link--button:hover {
    background-color: #0F715D;
    color: white;
}

/* Desktop styles for header */
@media (min-width: 768px) {
    .header__toggle {
        display: none;
    }
    .header__nav {
        display: block;
    }
    .header__nav-list {
        display: flex;
        align-items: center;
        gap: 1.5rem;
    }
}


/* ======== FOOTER ======== */
.footer {
    background-color: var(--accent-bg-color);
    padding-top: 4rem;
    color: var(--secondary-text-color);
    border-top: 1px solid var(--border-color);
}

.footer__container {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    padding-bottom: 3rem;
}

@media (min-width: 576px) {
    .footer__container {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 992px) {
    .footer__container {
        grid-template-columns: 1.5fr 1fr 1.5fr 1.5fr;
        gap: 3rem;
    }
}

.footer__logo {
    font-family: var(--font-family-headings);
    font-size: 1.75rem;
    color: var(--text-color);
    display: inline-block;
    margin-bottom: 0.5rem;
}

.footer__description {
    font-size: 0.9rem;
    max-width: 250px;
}

.footer__title {
    font-family: var(--font-family-body);
    font-weight: 700;
    font-size: 1rem;
    color: var(--text-color);
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.footer__list li {
    margin-bottom: 0.5rem;
}

.footer__link {
    font-size: 0.9rem;
    color: var(--secondary-text-color);
}

.footer__link:hover {
    color: var(--primary-color);
}

.footer__list--contact li {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
}

.footer__icon {
    width: 16px;
    height: 16px;
    margin-top: 4px; /* Align icon with first line of text */
    flex-shrink: 0;
    color: var(--primary-color);
}

.footer__bottom {
    text-align: center;
    padding: 1.5rem 0;
    border-top: 1px solid var(--border-color);
    font-size: 0.85rem;
}

/* ======== REUSABLE COMPONENTS ======== */
.button {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    font-family: var(--font-family-body);
    font-weight: 500;
    font-size: 1rem;
    border-radius: 5px;
    text-align: center;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.button--primary {
    background-color: var(--primary-color);
    color: white;
}

.button--primary:hover {
    color: white;
    background-color: #0F715D;
    transform: translateY(-3px);
    box-shadow: 0 4px 15px rgba(11, 83, 69, 0.2);
}


/* ======== HERO SECTION ======== */
.hero {
    padding: 5rem 0;
    overflow: hidden; /* To contain hover effects */
}

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

@media (min-width: 992px) {
    .hero__container {
        grid-template-columns: 1.2fr 1fr; /* Give text a bit more space */
        gap: 5rem;
    }
}

.hero__title {
    font-family: var(--font-family-headings);
    font-size: 2.5rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1.5rem;
    color: var(--text-color);
}

@media (min-width: 768px) {
    .hero__title {
        font-size: 3.5rem;
    }
}

.hero__subtitle {
    font-size: 1.1rem;
    color: var(--secondary-text-color);
    margin-bottom: 2.5rem;
    max-width: 500px;
}

.hero__image-wrapper {
    perspective: 1000px; /* For 3D hover effect */
}

.hero__image {
    width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: transform 0.4s ease;
}

.hero__image:hover {
    transform: rotateY(-5deg) rotateX(5deg) scale(1.05);
}

/* ======== REUSABLE SECTION STYLES ======== */
.section {
    padding: 5rem 0;
}

.section__header {
    text-align: center;
    margin-bottom: 3rem;
}

.section__title {
    font-family: var(--font-family-headings);
    font-size: 2.25rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--text-color);
}

@media (min-width: 768px) {
    .section__title {
        font-size: 2.75rem;
    }
}

.section__subtitle {
    font-size: 1.1rem;
    color: var(--secondary-text-color);
    max-width: 600px;
    margin: 0 auto;
}

/* ======== METHODOLOGY SECTION ======== */
.methodology {
    background-color: var(--accent-bg-color);
}

.methodology__grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

@media (min-width: 576px) {
    .methodology__grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 992px) {
    .methodology__grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

.methodology__card {
    background-color: var(--bg-color);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 2rem;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.methodology__card:hover {
    transform: translateY(-8px);
    border-color: var(--primary-color);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.07);
}

.methodology__card-icon {
    margin-bottom: 1.5rem;
}

.methodology__card-icon i {
    width: 48px;
    height: 48px;
    color: var(--primary-color);
}

.methodology__card-title {
    font-family: var(--font-family-body);
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-color);
    margin-bottom: 0.75rem;
}

.methodology__card-description {
    font-size: 0.95rem;
    color: var(--secondary-text-color);
    line-height: 1.7;
}

/* ======== CASES SECTION ======== */
.cases__grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

@media (min-width: 992px) {
    .cases__grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

.cases__card {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    color: white;
    min-height: 500px;
    display: flex;
    flex-direction: column;
}

.cases__card-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
    transition: transform 0.4s ease-out;
}

.cases__card:hover .cases__card-bg {
    transform: scale(1.05);
}

.cases__card-content {
    position: relative;
    z-index: 2;
    padding: 2rem;
    background: linear-gradient(to top, rgba(11, 83, 69, 0.9), rgba(11, 83, 69, 0.5) 70%);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    flex-grow: 1;
}

.cases__card-tags {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.cases__card-tag {
    background-color: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(5px);
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
}

.cases__card-title {
    font-family: var(--font-family-headings);
    font-size: 1.75rem;
    line-height: 1.3;
}

.cases__card-description {
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
    opacity: 0.9;
}

.cases__card-metrics {
    margin-bottom: 2rem;
}

.cases__card-metric {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
}

.cases__card-metric i {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

.cases__card-link {
    display: inline-block;
    color: white;
    font-weight: 500;
    text-decoration: underline;
    text-underline-offset: 4px;
    transition: text-underline-offset 0.3s ease;
}

.cases__card-link:hover {
    color: white;
    text-underline-offset: 8px;
}

/* ======== ARTICLES SECTION ======== */
.articles {
    background-color: var(--accent-bg-color);
}

.articles__grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

@media (min-width: 576px) {
    .articles__grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 992px) {
    .articles__grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.articles__card {
    background-color: var(--bg-color);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}

.articles__card:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
}

.articles__card-image-link {
    display: block;
    aspect-ratio: 16 / 10;
    overflow: hidden;
}

.articles__card-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.articles__card-content {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.articles__card-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.85rem;
    color: var(--secondary-text-color);
    margin-bottom: 1rem;
}

.articles__card-category {
    color: var(--primary-color);
    font-weight: 500;
}

.articles__card-title {
    font-family: var(--font-family-body);
    font-size: 1.2rem;
    font-weight: 700;
    line-height: 1.4;
    margin-bottom: 1.5rem;
    flex-grow: 1; /* Pushes the link to the bottom */
}

.articles__card-title a {
    color: var(--text-color);
}

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

.articles__card-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--primary-color);
    font-weight: 500;
}

.articles__card-link i {
    width: 18px;
    height: 18px;
    transition: transform 0.3s ease;
}

.articles__card:hover .articles__card-link i {
    transform: translateX(4px);
}

/* ======== ABOUT SECTION ======== */
.about__container {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
    align-items: center;
}

@media (min-width: 992px) {
    .about__container {
        grid-template-columns: 1.2fr 1fr;
        gap: 5rem;
    }
}

.about__text {
    font-size: 1.1rem;
    line-height: 1.7;
    color: var(--secondary-text-color);
    margin-bottom: 2.5rem;
}

.about__values {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.about__value-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.about__value-item i {
    width: 24px;
    height: 24px;
    flex-shrink: 0;
    color: var(--primary-color);
    margin-top: 2px;
}

.about__value-item span {
    font-size: 1.05rem;
    line-height: 1.6;
}

.about__image-wrapper {
    text-align: center; /* Center image on mobile */
}

.about__image {
    width: 100%;
    max-width: 400px; /* Control max size */
    height: auto;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

/* ======== CONTACT SECTION ======== */
.contact {
    background-color: var(--accent-bg-color);
}

.contact__container {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
}

@media (min-width: 992px) {
    .contact__container {
        grid-template-columns: 1fr 1.5fr;
        gap: 5rem;
    }
}

.contact__info-title {
    font-family: var(--font-family-headings);
    font-size: 1.75rem;
    margin-bottom: 1rem;
}

.contact__info-text {
    color: var(--secondary-text-color);
    line-height: 1.7;
    margin-bottom: 2rem;
}

.contact__info-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.contact__info-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 1.1rem;
    font-weight: 500;
}

.contact__info-item i {
    width: 24px;
    height: 24px;
    color: var(--primary-color);
}

/* Form Styles */
.contact__form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form__group {
    display: flex;
    flex-direction: column;
}

.form__label {
    margin-bottom: 0.5rem;
    font-weight: 500;
    font-size: 0.9rem;
    color: var(--secondary-text-color);
}

.form__input {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid var(--border-color);
    border-radius: 5px;
    font-family: var(--font-family-body);
    font-size: 1rem;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.form__input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(11, 83, 69, 0.1);
}

textarea.form__input {
    resize: vertical;
}

.form__group--captcha #captcha-label {
    font-weight: 700;
    color: var(--text-color);
}

#form-message {
    padding: 1rem;
    border-radius: 5px;
    margin-bottom: 1rem;
    display: none; /* Hidden by default */
    font-weight: 500;
}

#form-message.success {
    background-color: #d1e7dd;
    border: 1px solid #badbcc;
    color: #0f5132;
    display: block;
}

#form-message.error {
    background-color: #f8d7da;
    border: 1px solid #f5c2c7;
    color: #842029;
    display: block;
}

.form__button {
    width: 100%;
}

@media (min-width: 576px) {
    .form__button {
        width: auto;
        align-self: flex-start;
    }
}

/* ======== POLICY & TEXT PAGES STYLES ======== */
.pages {
    padding: 4rem 0;
    background-color: var(--bg-color);
}

.pages .container {
    max-width: 800px; /* Optimal width for reading long text */
}

.pages h1 {
    font-family: var(--font-family-headings);
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 2rem;
    color: var(--text-color);
}

.pages h2 {
    font-family: var(--font-family-headings);
    font-size: 1.8rem;
    margin-top: 3rem;
    margin-bottom: 1.5rem;
    color: var(--text-color);
}

.pages p,
.pages ul {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--secondary-text-color);
    margin-bottom: 1.5rem;
}

.pages ul {
    padding-left: 1.5rem;
    list-style-type: disc;
}

.pages li {
    margin-bottom: 1rem;
}

.pages strong {
    color: var(--text-color);
    font-weight: 600;
}

.pages a {
    color: var(--primary-color);
    text-decoration: underline;
    text-underline-offset: 3px;
    font-weight: 500;
}

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

/* ======== COOKIE POPUP ======== */
.cookie-popup {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: var(--text-color);
    color: var(--bg-color);
    padding: 1.5rem 2rem;
    z-index: 200;
    
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 2rem;
    
    box-shadow: 0 -5px 15px rgba(0, 0, 0, 0.1);
    transform: translateY(150%);
    transition: transform 0.5s ease-in-out;
}

.cookie-popup.show {
    transform: translateY(0);
}

.cookie-popup__text {
    font-size: 0.9rem;
}

.cookie-popup__text a {
    color: white;
    font-weight: 700;
    text-decoration: underline;
}

.cookie-popup__button {
    background-color: var(--bg-color);
    color: var(--text-color);
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 5px;
    cursor: pointer;
    font-weight: 700;
    flex-shrink: 0; /* Prevent button from shrinking */
    transition: background-color 0.3s ease, color 0.3s ease;
}

.cookie-popup__button:hover {
    background-color: #e2e6ea;
}

@media (max-width: 768px) {
    .cookie-popup {
        flex-direction: column;
        text-align: center;
        gap: 1.5rem;
    }
}