/* ==================== GLOBAL STYLES ==================== */

/* Google Fonts Import */
@import url('https://fonts.googleapis.com/css2?family=Manrope:wght@700;800&family=Roboto:wght@400;500&display=swap');

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

    /* Colors */
    --primary-color: #14213D;
    --accent-color: #FCA311;
    --text-color: #333;
    --text-color-light: #6c757d;
    --body-bg-color: #FFFFFF;
    --container-bg-color: #F8F9FA;
    --border-color: #E5E5E5;

    /* Fonts */
    --font-primary: 'Manrope', sans-serif;
    --font-secondary: 'Roboto', sans-serif;

    /* Typography */
    --fs-h1: 2.5rem;
    --fs-h2: 2rem;
    --fs-h3: 1.5rem;
    --fs-normal: 1rem;
    --fs-small: 0.875rem;

    /* Transitions & Shadows */
    --transition-fast: 0.3s ease;
    --shadow-light: 0 4px 15px rgba(0, 0, 0, 0.05);
    --shadow-medium: 0 8px 25px rgba(0, 0, 0, 0.1);
}

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

html {
    scroll-behavior: smooth;
}

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

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

ul {
    list-style: none;
}

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

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

/* 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: 100;
    box-shadow: var(--shadow-light);
    transition: var(--transition-fast);
}

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

.header__logo {
    font-family: var(--font-primary);
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--primary-color);
    transition: var(--transition-fast);
}

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

.header__nav {
    display: none; /* Mobile first: hide on small screens */
}

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

.header__nav-link {
    font-weight: 500;
    color: var(--primary-color);
    position: relative;
    transition: var(--transition-fast);
}

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

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

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

.header__nav-link--cta {
    background-color: var(--accent-color);
    color: var(--body-bg-color);
    padding: 0.5rem 1.5rem;
    border-radius: 50px;
}

.header__nav-link--cta:hover {
    color: var(--body-bg-color);
    background-color: var(--primary-color);
}

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

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

/* ==================== FOOTER ==================== */
.footer {
    background-color: var(--primary-color);
    color: #fff;
    padding: 4rem 0 0;
    margin-top: 5rem; /* Placeholder to see footer below header */
}

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

.footer__logo {
    font-family: var(--font-primary);
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--body-bg-color);
    display: inline-block;
    margin-bottom: 1rem;
}

.footer__description,
.footer__address {
    color: var(--border-color);
    font-size: var(--fs-small);
}

.footer__title {
    color: var(--body-bg-color);
    font-size: 1.25rem;
    margin-bottom: 1rem;
}

.footer__link {
    color: var(--border-color);
    transition: var(--transition-fast);
    display: inline-block;
    margin-bottom: 0.5rem;
    font-size: var(--fs-normal);
}

.footer__link:hover {
    color: var(--accent-color);
    transform: translateX(5px);
}

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


/* ==================== MEDIA QUERIES ==================== */
@media screen and (min-width: 768px) {
    body {
        /* Add padding to prevent content from hiding behind fixed header */
        padding-top: var(--header-height);
    }

    .header__burger-btn {
        display: none;
    }

    .header__nav {
        display: block;
    }
}

/* ==================== BUTTONS ==================== */
.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.9rem 2rem;
    border-radius: 50px;
    font-family: var(--font-primary);
    font-weight: 700;
    font-size: var(--fs-normal);
    border: 2px solid transparent;
    cursor: pointer;
    transition: all var(--transition-fast);
    text-align: center;
}

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

.button--primary:hover {
    background-color: transparent;
    border-color: var(--accent-color);
    color: var(--accent-color);
}

.button--secondary {
    background-color: transparent;
    color: var(--primary-color);
    border-color: var(--border-color);
}

.button--secondary:hover {
    background-color: var(--primary-color);
    color: var(--body-bg-color);
    border-color: var(--primary-color);
}

.button__icon {
    width: 1.2rem;
    height: 1.2rem;
}

/* ==================== HERO ==================== */
.hero {
    padding-top: calc(var(--header-height) + 2rem);
    padding-bottom: 4rem;
    background-color: var(--body-bg-color);
    overflow: hidden; /* To contain decorative elements */
}

.hero__container {
    display: grid;
    align-items: center;
    gap: 3rem;
}

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

.hero__title--highlight {
    color: var(--accent-color);
    display: block;
    margin-top: 0.5rem;
}

.hero__description {
    font-size: 1.1rem;
    line-height: 1.7;
    color: var(--text-color-light);
    margin-bottom: 2.5rem;
    max-width: 500px;
}

.hero__cta-group {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.hero__image-wrapper {
    position: relative;
    justify-self: center;
}

.hero__image {
    border-radius: 20px;
    width: 100%;
    max-width: 450px;
    box-shadow: var(--shadow-medium);
}

.hero__image-decor {
    position: absolute;
    background-color: var(--accent-color);
    border-radius: 50%;
    opacity: 0.1;
    animation: pulse 5s infinite ease-in-out;
}

.hero__image-decor--1 {
    width: 150px;
    height: 150px;
    top: -10%;
    left: -15%;
    animation-delay: 0s;
}

.hero__image-decor--2 {
    width: 100px;
    height: 100px;
    bottom: -5%;
    right: -10%;
    animation-delay: 1s;
}

.hero__image-decor--3 {
    width: 50px;
    height: 50px;
    top: 20%;
    right: -15%;
    animation-delay: 2s;
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
        opacity: 0.1;
    }
    50% {
        transform: scale(1.2);
        opacity: 0.15;
    }
}


/* ==================== MEDIA QUERIES (Hero) ==================== */
@media screen and (min-width: 768px) {
    .hero__container {
        grid-template-columns: 1.2fr 1fr;
        gap: 2rem;
    }
    
    .hero__content {
        text-align: left;
    }
}

@media screen and (min-width: 992px) {
    .hero {
        padding-top: 5rem;
        padding-bottom: 5rem;
    }

    .hero__title {
        font-size: calc(var(--fs-h1) * 1.5);
    }
}

/* Animation for observer */
.hero__content, .hero__image-wrapper {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.hero__content.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.hero__image-wrapper.is-visible {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 0.2s; /* Staggered effect */
}

/* ==================== REUSABLE SECTION HEADER ==================== */
.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-header__title {
    font-size: var(--fs-h2);
    margin-bottom: 0.5rem;
}

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

/* ==================== FEATURES ==================== */
.features {
    padding: 5rem 0;
    background-color: var(--container-bg-color);
}

.features__grid {
    display: grid;
    gap: 1.5rem;
}

.features__card {
    background-color: var(--body-bg-color);
    padding: 2.5rem 2rem;
    border-radius: 16px;
    border: 1px solid var(--border-color);
    text-align: center;
    box-shadow: var(--shadow-light);
    transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}

.features__card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-medium);
}

.features__card-icon {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background-color: #fde6be; /* Light orange tint */
    margin-bottom: 1.5rem;
}

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

.features__card-title {
    font-size: var(--fs-h3);
    margin-bottom: 0.75rem;
}

.features__card-description {
    color: var(--text-color-light);
    line-height: 1.7;
}

/* ==================== MEDIA QUERIES (Features) ==================== */
@media screen and (min-width: 576px) {
    .features__grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media screen and (min-width: 992px) {
    .features__grid {
        grid-template-columns: repeat(3, 1fr);
    }
}
/* Animation for observer (Features) */
.features__card {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out, box-shadow 0.3s ease, transform 0.3s ease;
}

.features__card.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* ==================== HOW IT WORKS ==================== */
.how-it-works {
    padding: 5rem 0;
}

.how-it-works__timeline {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
}

/* The vertical line */
.how-it-works__timeline::after {
    content: '';
    position: absolute;
    width: 3px;
    background-color: var(--border-color);
    top: 0;
    bottom: 0;
    left: 50%;
    margin-left: -1.5px;
}

.how-it-works__item {
    padding: 10px 40px;
    position: relative;
    width: 50%;
}

/* The circle on the timeline */
.how-it-works__item-icon {
    position: absolute;
    width: 60px;
    height: 60px;
    right: -30px;
    top: 32px;
    background-color: var(--body-bg-color);
    border: 3px solid var(--border-color);
    border-radius: 50%;
    z-index: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: var(--transition-fast);
}

.how-it-works__item:hover .how-it-works__item-icon {
    border-color: var(--accent-color);
    transform: scale(1.1);
}

.how-it-works__item-icon span {
    position: absolute;
    top: -25px;
    font-family: var(--font-primary);
    font-weight: 800;
    font-size: 1.5rem;
    color: var(--text-color-light);
}

.how-it-works__item-icon i {
    color: var(--primary-color);
    width: 28px;
    height: 28px;
}

/* Align items to the left */
.how-it-works__item:nth-child(odd) {
    left: 0;
    text-align: right;
}

/* Align items to the right */
.how-it-works__item:nth-child(even) {
    left: 50%;
}

/* Icon position for left items */
.how-it-works__item:nth-child(odd) .how-it-works__item-icon {
    right: -30px;
}

/* Icon position for right items */
.how-it-works__item:nth-child(even) .how-it-works__item-icon {
    left: -30px;
}

.how-it-works__item-content {
    padding: 20px 30px;
    background-color: var(--container-bg-color);
    position: relative;
    border-radius: 12px;
    border: 1px solid var(--border-color);
}

.how-it-works__item-title {
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
}

.how-it-works__item-description {
    color: var(--text-color-light);
}

/* ==================== MEDIA QUERIES (How It Works) ==================== */
@media screen and (max-width: 768px) {
    .how-it-works__timeline::after {
        left: 30px;
    }

    .how-it-works__item {
        width: 100%;
        padding-left: 70px;
        padding-right: 15px;
    }
    
    .how-it-works__item:nth-child(odd),
    .how-it-works__item:nth-child(even) {
        left: 0;
        text-align: left;
    }

    .how-it-works__item-icon,
    .how-it-works__item:nth-child(odd) .how-it-works__item-icon,
    .how-it-works__item:nth-child(even) .how-it-works__item-icon {
        left: 0;
    }
}

/* Animation for observer (How It Works) */
.how-it-works__item {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.how-it-works__item.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* ==================== REVIEWS ==================== */
.reviews {
    padding: 5rem 0;
    background-color: var(--container-bg-color);
}

.reviews__slider-wrapper {
    position: relative;
    max-width: 850px;
    margin: 0 auto;
}

.reviews__slider {
    padding: 2rem 0; /* Padding for shadow visibility */
}

.reviews__card {
    background-color: var(--body-bg-color);
    border-radius: 16px;
    padding: 2rem;
    margin: 0 1rem; /* Margin for shadow visibility */
    box-shadow: var(--shadow-light);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    height: 100%;
}

.reviews__card-img {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 1.5rem;
    border: 3px solid var(--border-color);
}

.reviews__card-text {
    font-size: 1.1rem;
    color: var(--text-color);
    line-height: 1.7;
    margin-bottom: 1.5rem;
    flex-grow: 1; /* Pushes author to the bottom */
}

.reviews__card-text::before {
    content: '“';
    font-family: Georgia, serif;
    font-size: 4rem;
    color: var(--accent-color);
    position: absolute;
    transform: translate(-120%, -40%);
    opacity: 0.2;
}


.reviews__card-author {
    margin-top: auto;
}

.reviews__card-name {
    font-family: var(--font-primary);
    font-size: 1.2rem;
    color: var(--primary-color);
    margin-bottom: 0.25rem;
}

.reviews__card-role {
    font-size: var(--fs-small);
    color: var(--text-color-light);
}

/* Swiper Navigation Buttons */
.swiper-button-next,
.swiper-button-prev {
    color: var(--accent-color);
    width: 50px;
    height: 50px;
    background-color: #fff;
    border-radius: 50%;
    box-shadow: var(--shadow-light);
    transition: var(--transition-fast);
}

.swiper-button-next:hover,
.swiper-button-prev:hover {
    background-color: var(--accent-color);
    color: #fff;
}

.swiper-button-next::after,
.swiper-button-prev::after {
    font-size: 1.2rem;
    font-weight: 800;
}

@media screen and (max-width: 768px) {
    .swiper-button-next,
    .swiper-button-prev {
        display: none;
    }
}

/* ==================== BLOG ==================== */
.blog {
    padding: 5rem 0;
}

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

.blog__card {
    background-color: var(--body-bg-color);
    border-radius: 16px;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-light);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}

.blog__card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-medium);
}

.blog__card-image-link {
    display: block;
    overflow: hidden;
}

.blog__card-image {
    width: 100%;
    height: 220px;
    object-fit: cover;
    transition: transform var(--transition-fast);
}

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

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

.blog__card-category {
    display: inline-block;
    margin-bottom: 0.75rem;
    font-size: var(--fs-small);
    font-weight: 700;
    color: var(--accent-color);
    text-transform: uppercase;
}

.blog__card-title {
    font-size: 1.3rem;
    margin-bottom: 0.75rem;
    line-height: 1.4;
}

.blog__card-title a {
    color: var(--primary-color);
    transition: color var(--transition-fast);
}

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

.blog__card-excerpt {
    color: var(--text-color-light);
    margin-bottom: 1.5rem;
    flex-grow: 1;
}

.blog__card-readmore {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--primary-color);
    font-weight: 700;
    transition: color var(--transition-fast);
}

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

.blog__card-icon {
    width: 1.1rem;
    height: 1.1rem;
}

/* ==================== MEDIA QUERIES (Blog) ==================== */
@media screen and (min-width: 576px) {
    .blog__grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

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

/* Animation for observer (Blog) */
.blog__card {
    opacity: 0;
    transform: translateY(30px);
}

.blog__card.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* ==================== CONTACT ==================== */
.contact {
    padding: 5rem 0;
}

.contact__wrapper {
    display: grid;
    gap: 3rem;
    margin-top: 3rem;
}

@media screen and (min-width: 992px) {
    .contact__wrapper {
        grid-template-columns: 1fr 1.2fr;
        gap: 5rem;
        align-items: center;
    }
}

.contact__info-title {
    font-size: var(--fs-h3);
    margin-bottom: 1rem;
}

.contact__info-text {
    color: var(--text-color-light);
    margin-bottom: 2rem;
}

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

.contact__info-list li {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
}

.contact__info-list i {
    color: var(--accent-color);
    width: 20px;
    height: 20px;
    margin-top: 2px;
    flex-shrink: 0;
}

/* Form Styles */
.contact__form {
    background-color: var(--container-bg-color);
    padding: 2.5rem;
    border-radius: 16px;
    border: 1px solid var(--border-color);
}

.form__group {
    margin-bottom: 1.5rem;
}

.form__label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.form__input {
    width: 100%;
    padding: 0.9rem 1.2rem;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    font-size: var(--fs-normal);
    font-family: var(--font-secondary);
    transition: var(--transition-fast);
}

.form__input:focus {
    outline: none;
    border-color: var(--accent-color);
    box-shadow: 0 0 0 3px hsla(39, 98%, 53%, 0.2);
}

.form__group--captcha #captcha-label {
    font-weight: 700;
}

.form__group--checkbox {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
}

.form__group--checkbox input {
    margin-top: 4px;
    width: 1.2em;
    height: 1.2em;
}
.form__group--checkbox label {
    font-size: var(--fs-small);
    color: var(--text-color-light);
}
.form__group--checkbox a {
    color: var(--primary-color);
    text-decoration: underline;
}
.form__group--checkbox a:hover {
    color: var(--accent-color);
}

.contact__form-btn {
    width: 100%;
    font-size: 1.1rem;
}

/* Form Message Styles */
.form__message {
    padding: 1rem;
    margin-bottom: 1.5rem;
    border-radius: 8px;
    font-weight: 500;
    display: none; /* Hidden by default */
}

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

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

/* ==================== COOKIE POPUP ==================== */
.cookie-popup {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: var(--primary-color);
    color: var(--body-bg-color);
    padding: 1.5rem 1rem;
    box-shadow: 0 -5px 20px rgba(0,0,0,0.1);
    z-index: 200;
    transform: translateY(120%);
    transition: transform 0.5s ease-in-out;
}

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

.cookie-popup__content {
    max-width: 1140px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    text-align: center;
}

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

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

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

@media screen and (min-width: 768px) {
    .cookie-popup__content {
        flex-direction: row;
        justify-content: space-between;
        text-align: left;
    }
}

/* ==================== GENERIC PAGES (Privacy, Terms, etc.) ==================== */
.pages {
    padding-top: calc(var(--header-height) + 4rem);
    padding-bottom: 5rem;
}

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

.pages h2 {
    font-size: var(--fs-h2);
    margin-top: 3rem;
    margin-bottom: 1.5rem;
}

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

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

.pages li {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-color-light);
    margin-bottom: 1rem;
}

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

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

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