/* ==================== GOOGLE FONTS ==================== */
/* Included via <link> in HTML */

/* ==================== CSS VARIABLES ==================== */
:root {
    --header-height: 4.5rem;

    /* Colors */
    --primary-color: #2C3E50;
    --accent-color: #1ABC9C;
    --body-bg-color: #FDFEFE;
    --text-color-light: #FDFEFE;
    --border-color: #EAECEE;

    /* Fonts */
    --body-font: 'Lato', sans-serif;
    --title-font: 'Poppins', sans-serif;

    /* Font sizes */
    --big-font-size: 2.5rem;
    --h1-font-size: 2rem;
    --h2-font-size: 1.5rem;
    --h3-font-size: 1.125rem;
    --normal-font-size: 1rem;
    --small-font-size: 0.875rem;

    /* Font weight */
    --font-normal: 400;
    --font-semi-bold: 600;
    --font-bold: 700;

    /* Margins & Paddings */
    --mb-0-5: 0.5rem;
    --mb-1: 1rem;
    --mb-1-5: 1.5rem;
    --mb-2: 2rem;

    /* Z-index */
    --z-tooltip: 10;
    --z-fixed: 100;
}

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

html {
    scroll-behavior: smooth;
}

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

h1, h2, h3 {
    font-family: var(--title-font);
    font-weight: var(--font-semi-bold);
    color: var(--primary-color);
}

ul {
    list-style: none;
}

a {
    text-decoration: none;
    color: var(--primary-color);
}

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

address {
    font-style: normal;
}

/* ==================== REUSABLE CSS CLASSES ==================== */
.container {
    max-width: 1140px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 1rem;
    padding-right: 1rem;
}

/* ==================== HEADER ==================== */
.header {
    width: 100%;
    background-color: var(--body-bg-color);
    position: fixed;
    top: 0;
    left: 0;
    z-index: var(--z-fixed);
    transition: box-shadow 0.3s ease;
    border-bottom: 1px solid var(--border-color);
}

.header__container {
    height: var(--header-height);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.header__logo {
    font-family: var(--title-font);
    font-weight: var(--font-bold);
    font-size: 1.5rem;
    color: var(--primary-color);
    transition: color 0.3s ease;
}

.header__logo:hover {
    color: var(--accent-color);
}

.header__nav-list {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.header__nav-link {
    font-weight: var(--font-semi-bold);
    position: relative;
    padding: 0.5rem 0;
    transition: color 0.3s ease;
}

.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-in-out;
}

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

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

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

.header__burger-icon--close {
    display: none;
}


/* ==================== FOOTER ==================== */
.footer {
    background-color: var(--primary-color);
    color: var(--text-color-light);
    padding-top: 4rem;
}

.footer__container {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1.5fr;
    gap: 2.5rem;
    padding-bottom: 4rem;
}

.footer__logo {
    font-family: var(--title-font);
    font-weight: var(--font-bold);
    font-size: 1.5rem;
    color: var(--text-color-light);
    display: inline-block;
    margin-bottom: var(--mb-1);
}

.footer__tagline {
    font-size: var(--small-font-size);
    color: #bdc3c7; /* A lighter shade of grey for the tagline */
    margin-bottom: var(--mb-1-5);
}

.footer__socials {
    display: flex;
    gap: 1rem;
}

.footer__social-link {
    color: var(--text-color-light);
    transition: color 0.3s ease, transform 0.3s ease;
}

.footer__social-link:hover {
    color: var(--accent-color);
    transform: translateY(-2px);
}

.footer__title {
    font-size: var(--h3-font-size);
    color: var(--text-color-light);
    margin-bottom: var(--mb-1-5);
}

.footer__list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

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

.footer__contact-icon {
    flex-shrink: 0;
    margin-top: 4px;
    width: 18px;
    height: 18px;
}

.footer__link {
    color: #bdc3c7;
    transition: color 0.3s ease, padding-left 0.3s ease;
    position: relative;
}

.footer__link:hover {
    color: var(--accent-color);
    padding-left: 5px;
}

.footer__bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 1.5rem 0;
    text-align: center;
    font-size: var(--small-font-size);
    color: #bdc3c7;
}


/* ==================== RESPONSIVENESS ==================== */
@media screen and (max-width: 992px) {
    .container {
        padding-left: 1.5rem;
        padding-right: 1.5rem;
    }
    .footer__container {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media screen and (max-width: 768px) {
    body.nav-open {
        overflow: hidden;
    }

    .header__nav {
        position: fixed;
        top: var(--header-height);
        right: -100%;
        width: 100%;
        height: calc(100vh - var(--header-height));
        background-color: var(--body-bg-color);
        transition: right 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
        padding: 2rem;
    }

    .header__nav--active {
        right: 0;
    }

    .header__nav-list {
        flex-direction: column;
        gap: 2.5rem;
        text-align: center;
    }
    
    .header__nav-link {
        font-size: var(--h2-font-size);
    }
    
    .header__burger-btn {
        display: block;
    }

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

    .footer__column--brand {
        align-items: center;
    }

    .footer__socials, .footer__list--contact li {
        justify-content: center;
    }
}

/* ==================== REUSABLE CSS CLASSES (Add Button) ==================== */
.container {
    max-width: 1140px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 1rem;
    padding-right: 1rem;
}

.button {
    display: inline-block;
    background-color: var(--accent-color);
    color: #FFF;
    padding: 1rem 2rem;
    font-family: var(--title-font);
    font-weight: var(--font-semi-bold);
    border-radius: 5px;
    transition: background-color 0.3s ease, transform 0.3s ease;
    text-align: center;
}

.button:hover {
    background-color: #17a589; /* Darker accent */
    transform: translateY(-3px);
}

/* ==================== HERO ==================== */
.hero {
    position: relative;
    height: 100vh;
    min-height: 600px;
    display: flex;
    align-items: center;
    overflow: hidden;
    color: var(--text-color-light);
}

.hero__video-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -2;
}

.hero__overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(44, 62, 80, 0.65); /* Using primary color for overlay */
    z-index: -1;
}

.hero__video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
}

.hero__container {
    position: relative;
    z-index: 1;
}

.hero__content {
    max-width: 750px;
}

.hero__title {
    font-size: 3.5rem;
    font-weight: var(--font-bold);
    color: var(--text-color-light);
    line-height: 1.2;
    margin-bottom: var(--mb-1-5);
}

.hero__title-line-mask {
    display: block;
    overflow: hidden;
    padding-bottom: 0.5rem;
}

.hero__title-line {
    display: block;
    transform: translateY(110%);
    transition: transform 0.8s cubic-bezier(0.165, 0.84, 0.44, 1);
}

/* Animation trigger */
.hero--animate .hero__title-line {
    transform: translateY(0);
}

.hero--animate .hero__title-line:nth-child(2) {
    transition-delay: 0.15s;
}

.hero__subtitle {
    font-size: 1.125rem;
    line-height: 1.7;
    margin-bottom: var(--mb-2);
    max-width: 600px;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.8s ease 0.5s, transform 0.8s ease 0.5s;
}

.hero__cta {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.8s ease 0.7s, transform 0.8s ease 0.7s;
}

/* Animation trigger */
.hero--animate .hero__subtitle,
.hero--animate .hero__cta {
    opacity: 1;
    transform: translateY(0);
}

/* ==================== HERO RESPONSIVENESS ==================== */
@media screen and (max-width: 768px) {
    .hero__title {
        font-size: 2.5rem;
    }
    .hero__subtitle {
        font-size: 1rem;
    }
}

@media screen and (max-width: 480px) {
    .hero {
        text-align: center;
    }
    .hero__title {
        font-size: 2rem;
    }
    .button {
        padding: 0.8rem 1.6rem;
    }
}

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

.section__title,
.section__subtitle {
    text-align: center;
}

.section__title {
    font-size: var(--h1-font-size);
    font-family: var(--title-font);
    margin-bottom: var(--mb-2);
}

.section__subtitle {
    display: block;
    font-size: var(--small-font-size);
    font-weight: var(--font-semi-bold);
    color: var(--accent-color);
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: var(--mb-0-5);
}


/* ==================== ABOUT ==================== */
.about__container {
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    align-items: center;
    gap: 4rem;
}

.about__image-wrapper {
    position: relative;
    padding: 1rem;
}

.about__image {
    width: 100%;
    border-radius: 8px;
    position: relative;
    z-index: 1;
}

.about__image-decoration {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 3px solid var(--accent-color);
    border-radius: 8px;
    z-index: 0;
    transition: transform 0.4s ease;
}

.about__image-wrapper:hover .about__image-decoration {
    transform: translate(12px, 12px);
}

.about__content {
    text-align: left;
}

.about__content .section__title,
.about__content .section__subtitle {
    text-align: left;
}

.about__description {
    margin-bottom: var(--mb-2);
    color: #566573; /* Slightly lighter text for description */
    line-height: 1.7;
}

.about__stats {
    display: flex;
    gap: 2rem;
    margin-top: 2rem;
    flex-wrap: wrap;
}

.about__stat-item {
    text-align: left;
    flex-basis: 120px;
}

.about__stat-number {
    font-size: 2.5rem;
    font-family: var(--title-font);
    font-weight: var(--font-bold);
    color: var(--primary-color);
}

.about__stat-label {
    font-size: var(--small-font-size);
    color: #566573;
}


/* ==================== ABOUT RESPONSIVENESS ==================== */
@media screen and (max-width: 992px) {
    .about__container {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    .about__image-wrapper {
        max-width: 450px;
        margin: 0 auto;
    }
    .about__content {
        text-align: center;
    }
    .about__content .section__title,
    .about__content .section__subtitle {
        text-align: center;
    }
    .about__stats {
        justify-content: center;
    }
     .about__stat-item {
        text-align: center;
    }
}
/* ==================== SERVICES ==================== */
.services {
    background-color: #F8F9F9; /* A very light grey to separate sections */
}

.services__container {
    display: grid;
    /* This creates a responsive grid that fits as many columns as possible with a minimum width of 280px */
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    padding-top: 2rem;
}

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

.services__card:hover {
    transform: translateY(-8px);
    box-shadow: 0 10px 25px rgba(44, 62, 80, 0.1);
}

.services__card-icon-wrapper {
    width: 70px;
    height: 70px;
    margin: 0 auto var(--mb-1-5);
    background-color: #E8F8F5; /* A very light shade of the accent color */
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.3s ease;
}

.services__card-icon {
    width: 32px;
    height: 32px;
    color: var(--accent-color);
    stroke-width: 2;
    transition: color 0.3s ease;
}

.services__card:hover .services__card-icon-wrapper {
    background-color: var(--accent-color);
}

.services__card:hover .services__card-icon {
    color: var(--text-color-light);
}

.services__card-title {
    font-size: var(--h3-font-size);
    font-family: var(--title-font);
    margin-bottom: var(--mb-1);
    color: var(--primary-color);
}

.services__card-description {
    font-size: var(--small-font-size);
    color: #566573;
    line-height: 1.6;
}

/* ==================== BLOG ==================== */
.blog {
    /* This section will have the default white background, creating a stripe effect */
    padding-bottom: 6rem;
}

.blog__container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2.5rem;
    padding-top: 2rem;
}

.blog__card {
    background-color: var(--body-bg-color);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    overflow: hidden; /* Crucial for image zoom and border-radius */
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.blog__card:hover {
    transform: translateY(-8px);
    box-shadow: 0 10px 25px rgba(44, 62, 80, 0.1);
}

.blog__card-image-wrapper {
    overflow: hidden;
    position: relative;
    display: block;
}

.blog__card-image {
    width: 100%;
    aspect-ratio: 16 / 10;
    object-fit: cover;
    transition: transform 0.4s ease;
}

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

.blog__card-content {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1; /* Allows footer to stick to the bottom */
}

.blog__card-category {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: var(--font-bold);
    color: var(--accent-color);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: var(--mb-1);
}

.blog__card-title {
    font-size: 1.25rem;
    font-family: var(--title-font);
    margin-bottom: var(--mb-1);
    line-height: 1.4;
}

.blog__card-title a {
    color: var(--primary-color);
    transition: color 0.3s ease;
}

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

.blog__card-excerpt {
    color: #566573;
    font-size: var(--small-font-size);
    margin-bottom: var(--mb-1-5);
    flex-grow: 1; /* Pushes the 'read more' link down */
    line-height: 1.6;
}

.blog__card-readmore {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: var(--font-bold);
    color: var(--primary-color);
    transition: color 0.3s ease, gap 0.3s ease;
    margin-top: auto; /* Pushes itself to the bottom */
    align-self: flex-start;
}

.blog__card-readmore-icon {
    width: 18px;
    height: 18px;
    transition: transform 0.3s ease;
}

.blog__card:hover .blog__card-readmore {
    color: var(--accent-color);
    gap: 0.75rem;
}

.blog__card:hover .blog__card-readmore-icon {
    transform: translateX(4px);
}

/* ==================== INSIGHTS ==================== */
.insights {
    background-color: #F8F9F9;
}

.insights__container {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    align-items: flex-start;
    gap: 3.5rem;
    padding-top: 2rem;
}

/* Featured Insight Styles */
.insights__featured {
    background-color: var(--body-bg-color);
    border-radius: 8px;
    border: 1px solid var(--border-color);
    overflow: hidden;
}

.insights__featured-image {
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
}

.insights__featured-content {
    padding: 2rem;
}

.insights__tag {
    display: inline-block;
    background-color: var(--accent-color);
    color: #fff;
    padding: 0.25rem 0.75rem;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: var(--font-bold);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: var(--mb-1);
}

.insights__featured-title {
    font-size: 1.75rem;
    font-family: var(--title-font);
    margin-bottom: var(--mb-1);
    line-height: 1.3;
}

.insights__featured-description {
    color: #566573;
    margin-bottom: var(--mb-2);
}

.insights__featured-button {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
}

/* Insights List Styles */
.insights__list-title {
    font-size: var(--h2-font-size);
    font-family: var(--title-font);
    margin-bottom: var(--mb-1-5);
    padding-bottom: var(--mb-1);
    border-bottom: 2px solid var(--accent-color);
    display: inline-block;
}

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

.insights__list-item {
    border-bottom: 1px solid var(--border-color);
}

.insights__list-link {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.25rem 0.5rem;
    transition: background-color 0.3s ease;
    border-radius: 4px;
}

.insights__list-link:hover {
    background-color: #eaf2f8;
}

.insights__list-item-title {
    font-size: 1.1rem;
    font-weight: var(--font-semi-bold);
    color: var(--primary-color);
    margin-bottom: 0.25rem;
    line-height: 1.4;
    transition: color 0.3s ease;
}

.insights__list-link:hover .insights__list-item-title {
    color: var(--accent-color);
}

.insights__list-item-meta {
    font-size: var(--small-font-size);
    color: #566573;
}

.insights__list-icon {
    color: var(--primary-color);
    flex-shrink: 0;
    margin-left: 1rem;
    transition: color 0.3s ease, transform 0.3s ease;
}

.insights__list-link:hover .insights__list-icon {
    color: var(--accent-color);
    transform: scale(1.1);
}

/* ==================== INSIGHTS RESPONSIVENESS ==================== */
@media screen and (max-width: 992px) {
    .insights__container {
        grid-template-columns: 1fr;
        gap: 4rem;
    }
}

@media screen and (max-width: 480px) {
    .insights__featured-title {
        font-size: 1.5rem;
    }
}

/* ==================== CONTACT ==================== */
.contact {
    padding-bottom: 6rem;
}

.contact__container {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 4rem;
    padding-top: 2rem;
}

/* Contact Info Styles */
.contact__info-title {
    font-size: var(--h2-font-size);
    font-family: var(--title-font);
    margin-bottom: var(--mb-1);
}

.contact__info-description {
    color: #566573;
    margin-bottom: var(--mb-2);
}

.contact__info-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin-bottom: var(--mb-2);
}

.contact__info-item {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.contact__info-item a,
.contact__info-item span {
    color: var(--primary-color);
    font-weight: var(--font-semi-bold);
    transition: color 0.3s ease;
}

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

.contact__info-icon {
    color: var(--accent-color);
    width: 24px;
    height: 24px;
    flex-shrink: 0;
}

.contact__map {
    margin-top: 2rem;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid var(--border-color);
}

.contact__map img {
    width: 100%;
    display: block;
    transition: transform 0.3s ease;
}

.contact__map a:hover img {
    transform: scale(1.03);
}

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

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

.contact__form-input::placeholder {
    color: #85929E;
}

.contact__form-input:focus {
    outline: none;
    border-color: var(--accent-color);
    box-shadow: 0 0 0 2px rgba(26, 188, 156, 0.2);
}

textarea.contact__form-input {
    resize: vertical;
    min-height: 120px;
}

.contact__form-consent {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    font-size: var(--small-font-size);
    color: #566573;
}

.contact__form-consent input {
    margin-top: 4px;
    flex-shrink: 0;
}

.contact__form-consent a {
    color: var(--accent-color);
    text-decoration: underline;
}

.contact__form-message {
    padding: 1rem;
    border-radius: 5px;
    text-align: center;
    font-weight: var(--font-semi-bold);
    display: none; /* Hidden by default */
}

.contact__form-message--success {
    background-color: #D4EFDF;
    color: #196F3D;
    display: block;
}

.contact__form-message--error {
    background-color: #FADBD8;
    color: #A93226;
    display: block;
}

/* ==================== CONTACT RESPONSIVENESS ==================== */
@media screen and (max-width: 992px) {
    .contact__container {
        grid-template-columns: 1fr;
        gap: 4rem;
    }
}

/* ==================== COOKIE POPUP ==================== */
.cookie-popup {
    position: fixed;
    bottom: -150%; /* Initially hidden */
    left: 0;
    width: 100%;
    background-color: var(--primary-color);
    color: var(--text-color-light);
    padding: 1.5rem 2rem;
    box-shadow: 0 -5px 15px rgba(0, 0, 0, 0.1);
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    flex-wrap: wrap;
    z-index: 1000;
    transition: bottom 0.5s ease-in-out;
}

.cookie-popup--active {
    bottom: 0;
}

.cookie-popup__text {
    margin: 0;
    text-align: center;
}

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

.cookie-popup__btn {
    padding: 0.75rem 1.5rem;
    flex-shrink: 0;
}


/* ==================== POLICY PAGES (.pages) ==================== */
.pages {
    padding: 6rem 0;
}

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

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

.pages h2 {
    font-size: var(--h1-font-size);
    font-family: var(--title-font);
    margin-top: 2.5rem;
    margin-bottom: var(--mb-1);
    border-bottom: 2px solid var(--border-color);
    padding-bottom: 0.5rem;
}

.pages p,
.pages ul {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #566573;
    margin-bottom: var(--mb-1-5);
}

.pages ul {
    list-style: none;
    padding-left: 1rem;
}

.pages li {
    padding-left: 1.75rem;
    position: relative;
    margin-bottom: var(--mb-1);
}

.pages li::before {
    content: '✔';
    position: absolute;
    left: 0;
    top: 5px;
    color: var(--accent-color);
    font-weight: bold;
}

.pages a {
    color: var(--accent-color);
    font-weight: var(--font-semi-bold);
    text-decoration: underline;
    transition: color 0.3s ease;
}

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

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