/* ===== GOOGLE FONTS ===== */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500&family=Manrope:wght@600;700&display=swap');

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

    /* Colors */
    --primary-color: #0D1B2A;
    --primary-color-alt: #2A9D8F;
    --text-color: #495057;
    --title-color: #0D1B2A;
    --background-color: #FFFFFF;
    --container-color: #F7F9FB;
    --border-color: #E0E1DD;

    /* Fonts */
    --body-font: 'Inter', sans-serif;
    --title-font: 'Manrope', sans-serif;

    --h1-font-size: 2.5rem;
    --h2-font-size: 1.5rem;
    --normal-font-size: 1rem;
    --small-font-size: 0.875rem;

    /* z-index */
    --z-fixed: 100;
    --z-modal: 200;
}

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

html {
    scroll-behavior: smooth;
}

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

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

ul {
    list-style: none;
}

a {
    text-decoration: none;
    color: inherit;
}

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

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

/* ===== HEADER ===== */
.header {
    width: 100%;
    position: fixed;
    top: 0;
    left: 0;
    z-index: var(--z-fixed);
    background-color: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-color);
}

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

.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-family: var(--title-font);
    font-weight: 700;
    font-size: 1.25rem;
    color: var(--title-color);
}

.logo__img {
    width: 32px;
    height: 32px;
}

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

.nav__link {
    font-weight: 500;
    color: var(--title-color);
    transition: color 0.3s;
}

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

.nav__link--button {
    background-color: var(--primary-color-alt);
    color: #fff;
    padding: 0.5rem 1.5rem;
    border-radius: 2rem;
    transition: background-color 0.3s;
}

.nav__link--button:hover {
    background-color: #217a70;
    color: #fff;
}

.header__toggle {
    display: none; /* Hidden on desktop */
    font-size: 1.5rem;
    cursor: pointer;
    background: none;
    border: none;
    color: var(--title-color);
}

/* Mobile Navigation */
@media screen and (max-width: 768px) {
    .nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 70%;
        height: 100vh;
        background-color: var(--background-color);
        box-shadow: -2px 0 12px rgba(0,0,0,0.1);
        padding: 4rem 2rem;
        transition: right 0.4s ease;
    }
    
    .nav.nav--open {
        right: 0;
    }

    .nav__list {
        flex-direction: column;
        align-items: flex-start;
        gap: 2.5rem;
    }

    .header__toggle {
        position: relative;
        z-index: 10;
        display: block;
    }
}

/* ===== FOOTER ===== */
.footer {
    background-color: var(--container-color);
    padding-top: 4rem;
    padding-bottom: 2rem;
    border-top: 1px solid var(--border-color);
}

.footer__container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 2.5rem;
}

.footer__description {
    margin-top: 1rem;
    font-size: var(--small-font-size);
    max-width: 250px;
}

.footer__title {
    font-size: var(--h2-font-size);
    margin-bottom: 1rem;
}

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

.footer__link {
    transition: color 0.3s;
}

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

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

.footer__icon {
    color: var(--primary-color-alt);
    width: 20px;
}

.footer__bottom {
    margin-top: 4rem;
    text-align: center;
    font-size: var(--small-font-size);
    color: var(--text-color);
}

/* ===== BUTTONS ===== */
.button {
    display: inline-block;
    background-color: var(--primary-color-alt);
    color: #fff;
    padding: 1rem 2.5rem;
    border-radius: 2rem;
    font-weight: 500;
    transition: background-color 0.3s, transform 0.3s;
    border: none;
    cursor: pointer;
}

.button:hover {
    background-color: #217a70;
    transform: translateY(-3px);
}

/* ===== HERO SECTION ===== */
.hero {
    padding-top: var(--header-height);
    min-height: 100vh;
    display: flex;
    align-items: center;
    background-color: var(--container-color);
}

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

.hero__title {
    font-size: var(--h1-font-size);
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

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

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

.hero__image {
    width: 100%;
    border-radius: 1rem;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

/* Animation on load */
.animate-on-load {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

/* Responsive */
@media screen and (max-width: 992px) {
    .hero__title {
        font-size: 2rem;
    }
}

@media screen and (max-width: 768px) {
    .hero {
        min-height: auto;
        padding: 4rem 0;
        text-align: center;
    }
    .hero__container {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    .hero__content {
        order: 2; /* Text below image on mobile */
    }
    .hero__image-wrapper {
        order: 1;
    }
    .hero__description {
        margin-left: auto;
        margin-right: auto;
    }
}

/* ===== REUSABLE CSS CLASSES ===== */
.section {
    padding: 6rem 0 2rem;
}

.section__title {
    font-size: var(--h2-font-size);
    margin-bottom: 1rem;
    text-align: center;
}

.section__subtitle {
    text-align: center;
    margin-bottom: 3rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}


/* ===== ABOUT SECTION ===== */
.about {
    background-color: #fff;
}

.about__container {
    display: grid;
    grid-template-columns: 1fr 1.1fr;
    align-items: center;
    gap: 4rem;
}

.about__image-wrapper {
    text-align: center;
}

.about__image {
    width: 100%;
    max-width: 400px;
    border-radius: 1rem;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
}

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

.about__features-list {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    margin-top: 2.5rem;
}

.about__feature-item {
    display: flex;
    align-items: flex-start;
    gap: 1.5rem;
}

.about__feature-icon {
    min-width: 40px; /* Ensures alignment */
    height: 40px;
    color: var(--primary-color-alt);
    background-color: #e4f4f2;
    padding: 8px;
    border-radius: 50%;
}

.about__feature-title {
    font-size: 1.125rem;
    margin-bottom: 0.25rem;
    color: var(--title-color);
}

.about__feature-text {
    font-size: var(--normal-font-size);
}

/* Responsive */
@media screen and (max-width: 992px) {
    .about__container {
        gap: 2rem;
    }
}

@media screen and (max-width: 768px) {
    .section {
        padding: 4rem 0 2rem;
    }
    
    .about__container {
        grid-template-columns: 1fr;
    }

    .about__content .section__title,
    .about__content .section__subtitle {
        text-align: center;
        max-width: 600px;
        margin-left: auto;
        margin-right: auto;
    }
}

/* ===== FEATURES SECTION ===== */
.features {
    background-color: var(--container-color);
}

.features__container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 4rem;
}

.features__card {
    background-color: #fff;
    padding: 2.5rem 2rem;
    border-radius: 1rem;
    text-align: center;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
    transition: transform 0.3s, box-shadow 0.3s;
}

.features__card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.08);
}

.features__card-icon {
    display: inline-flex;
    background-color: #e4f4f2;
    padding: 1rem;
    border-radius: 50%;
    margin-bottom: 1.5rem;
}

.features__card-icon i {
    width: 32px;
    height: 32px;
    color: var(--primary-color-alt);
}

.features__card-title {
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
}

.features__card-description {
    font-size: var(--normal-font-size);
}

/* Responsive */
@media screen and (max-width: 992px) {
    .features__container {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media screen and (max-width: 768px) {
    .features__container {
        grid-template-columns: 1fr;
    }
}

/* ===== HOW IT WORKS SECTION ===== */
.how-it-works {
    background-color: #fff;
}

.how-it-works__container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 4rem;
}

.how-it-works__step {
    border: 1px solid var(--border-color);
    padding: 2.5rem 2rem;
    border-radius: 1rem;
    position: relative;
    overflow: hidden; /* To contain the pseudo-element */
}

.how-it-works__step::before {
    content: '0' counter(step);
    counter-increment: step;
    position: absolute;
    top: 0.5rem;
    right: 1.5rem;
    font-size: 4rem;
    font-weight: 700;
    color: var(--primary-color);
    opacity: 0.05;
    line-height: 1;
}

.how-it-works__icon {
    width: 40px;
    height: 40px;
    color: var(--primary-color-alt);
    margin-bottom: 1.5rem;
}

.how-it-works__title {
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
}

/* To enable the counter */
body {
    counter-reset: step;
}

/* Responsive */
@media screen and (max-width: 992px) {
    .how-it-works__container {
        grid-template-columns: 1fr;
    }
}

/* ===== REVIEWS SECTION ===== */
.reviews {
    background-color: var(--container-color);
}

.reviews__container {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    margin-top: 4rem;
}

.reviews__card {
    background-color: #fff;
    padding: 2rem;
    border-radius: 1rem;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}

.reviews__header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.reviews__avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
}

.reviews__name {
    font-size: 1.125rem;
    margin-bottom: 0.25rem;
}

.reviews__rating {
    display: flex;
    gap: 0.25rem;
}

.reviews__star {
    width: 16px;
    height: 16px;
}

.reviews__star--filled {
    color: #FFC107;
    fill: #FFC107;
}

.reviews__text {
    font-style: italic;
    color: var(--text-color);
}

/* Responsive */
@media screen and (max-width: 768px) {
    .reviews__container {
        grid-template-columns: 1fr;
    }
}

/* ===== CONTACT SECTION ===== */
.contact {
    background-color: #fff;
    padding-bottom: 6rem;
}

.contact__container {
    max-width: 700px;
    margin: 4rem auto 0;
}

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

.contact__form-group--full {
    grid-column: 1 / -1;
}

.contact__input {
    width: 100%;
    padding: 1rem;
    border-radius: 0.5rem;
    border: 1px solid var(--border-color);
    font-family: var(--body-font);
    font-size: var(--normal-font-size);
    outline: none;
    transition: border-color 0.3s;
}

.contact__input:focus {
    border-color: var(--primary-color-alt);
}

.contact__form-group--checkbox {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.contact__checkbox {
    width: 1.25rem;
    height: 1.25rem;
}

.contact__checkbox-label {
    font-size: var(--small-font-size);
}
.contact__checkbox-label a {
    color: var(--primary-color-alt);
    text-decoration: underline;
}

.contact__button {
    width: 100%;
    justify-content: center;
}

.contact__message {
    display: none; /* Hidden by default */
    grid-column: 1 / -1;
    text-align: center;
    padding: 1rem;
    border-radius: 0.5rem;
    font-weight: 500;
    margin-bottom: 1rem;
}

.contact__message.color-success {
    background-color: #e4f4f2;
    color: #217a70;
}

.contact__message.color-error {
    background-color: #f8d7da;
    color: #721c24;
}

/* ===== COOKIE POP-UP ===== */
.cookie-popup {
    position: fixed;
    bottom: -100%; /* Initially hidden */
    left: 50%;
    transform: translateX(-50%);
    max-width: 90%;
    width: 500px;
    background-color: var(--primary-color);
    color: #fff;
    padding: 1.5rem;
    border-radius: 1rem;
    box-shadow: 0 4px 20px rgba(0,0,0,0.2);
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    z-index: var(--z-modal);
    transition: bottom 0.5s ease-in-out;
}

.cookie-popup--show {
    bottom: 1.5rem;
}

.cookie-popup__text {
    font-size: var(--small-font-size);
}

.cookie-popup__text a {
    color: #fff;
    text-decoration: underline;
}

.cookie-popup__button {
    padding: 0.5rem 1rem;
    white-space: nowrap; /* Prevent button text from wrapping */
}

@media screen and (max-width: 500px) {
    .cookie-popup {
        flex-direction: column;
        text-align: center;
    }
}


/* ===== POLICY PAGES STYLES ===== */
.pages {
    padding-top: calc(var(--header-height) + 4rem);
    padding-bottom: 6rem;
}

.pages .container {
    max-width: 800px;
}

.pages h1 {
    font-size: 1.5rem;
    margin-bottom: 2rem;
}

.pages h2 {
    font-size: 1.5rem;

    margin-top: 2.5rem;
    margin-bottom: 1rem;
}

.pages p {
    margin-bottom: 1rem;
    line-height: 1.7;
}

.pages ul {
    list-style: disc;
    padding-left: 1.5rem;
    margin-bottom: 1rem;
}

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

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

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

.pages strong {
    color: var(--title-color);
}