/*=============== GLOBAL STYLES ===============*/
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@700&family=Roboto:wght@400;500&display=swap');

:root {
    /* Colors */
    --background-color: #FFFFFF;
    --text-color: #0B132B;
    --primary-color: #5BC0BE;
    --primary-hover-color: #6FFFE9;
    --secondary-text-color: #ADB5BD;
    --border-color: #E9ECEF;
    
    /* Fonts */
    --font-family-headings: 'Playfair Display', serif;
    --font-family-body: 'Roboto', sans-serif;

    /* Other */
    --container-width: 1140px;
    --header-height: 60px;
}

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

html {
    scroll-behavior: smooth;
}

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

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-family-headings);
    color: var(--text-color);
}

ul {
    list-style: none;
}

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

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

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

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

/*=============== HEADER ===============*/
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: var(--background-color);
    z-index: 100;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    height: var(--header-height);
}

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

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

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

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

.header__menu-link {
    color: var(--text-color);
    font-weight: 500;
    position: relative;
    padding-bottom: 5px;
}

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

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

.header__menu-link--button {
    background-color: var(--primary-color);
    color: #fff;
    padding: 8px 20px;
    border-radius: 50px;
    transition: background-color 0.3s ease;
}

.header__menu-link--button:hover {
    background-color: var(--primary-hover-color);
    color: var(--text-color);
}

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

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

/* Mobile Nav */
@media screen and (max-width: 768px) {
    .header__nav {
        position: fixed;
        top: var(--header-height);
        right: -100%;
        width: 60%;
        height: 100vh;
        background-color: var(--background-color);
        box-shadow: -2px 0 5px rgba(0,0,0,0.1);
        padding: 2rem;
        transition: right 0.4s ease;
    }
    
    .header__nav.show-menu {
        right: 0;
    }

    .header__menu {
        flex-direction: column;
        align-items: flex-start;
        gap: 1.5rem;
    }

    .header__toggle {
        display: block;
    }
}

/*=============== FOOTER ===============*/
.footer {
    background-color: #04091a;
    color: var(--secondary-text-color);
    padding-top: 4rem;
}

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

.footer__logo {
    font-family: var(--font-family-headings);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--background-color);
    margin-bottom: 1rem;
    display: inline-block;
}

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

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

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

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

.footer__list--contact .lucide {
    flex-shrink: 0;
    margin-top: 3px;
    color: var(--primary-color);
}

.footer__link {
    color: var(--secondary-text-color);
}

.footer__bottom {
    border-top: 1px solid #2c2f42;
    padding: 1.5rem 0;
}

.footer__bottom-container {
    text-align: center;
    font-size: 0.85rem;
}
/*=============== BUTTONS ===============*/
.button {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background-color: var(--primary-color);
    color: #fff;
    padding: 12px 24px;
    border-radius: 50px;
    font-weight: 500;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

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

/*=============== HERO ===============*/
.hero {
    position: relative;
    height: 100vh;
    min-height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding-top: var(--header-height); /* Offset for fixed header */
}

.hero__canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.hero__container {
    position: relative;
    z-index: 2;
    text-align: center;
}

.hero__content {
    max-width: 750px;
    margin: 0 auto;
}

.hero__title {
    font-size: 3.5rem;
    line-height: 1.2;
    margin-bottom: 1rem;
}

.hero__subtitle {
    font-size: 1.125rem;
    color: #4b5269; /* Slightly softer than pure black */
    margin-bottom: 2rem;
}

.hero__cta .lucide {
    transition: transform 0.3s ease;
}

.hero__cta:hover .lucide {
    transform: translateX(5px);
}

/* Responsive adjustments for Hero */
@media screen and (max-width: 768px) {
    .hero__title {
        font-size: 2.5rem;
    }

    .hero__subtitle {
        font-size: 1rem;
    }
}

/*=============== REUSABLE SECTION STYLES ===============*/
.section {
    padding: 6rem 0;
    overflow: hidden; /* Prevents horizontal scroll on animations */
}

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

.section__title {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

.section__subtitle {
    color: #4b5269;
    line-height: 1.7;
}

/*=============== SERVICES ===============*/
.services {
    background-color: #f8f9fc; /* A very light grey for subtle contrast */
}

.services__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}

.service-card {
    background-color: var(--background-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;
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.07);
}

.service-card__icon {
    margin-bottom: 1.5rem;
}

.service-card__icon .lucide {
    width: 48px;
    height: 48px;
    color: var(--primary-color);
    transition: color 0.3s ease;
}

.service-card:hover .service-card__icon .lucide {
    color: var(--primary-hover-color);
}

.service-card__title {
    font-family: var(--font-family-body); /* Using body font for card titles */
    font-size: 1.25rem;
    font-weight: 500;
    margin-bottom: 0.75rem;
}

.service-card__description {
    font-size: 0.95rem;
    color: #4b5269;
    line-height: 1.6;
}

/* Responsive adjustments for Section */
@media screen and (max-width: 768px) {
    .section {
        padding: 4rem 0;
    }
    
    .section__title {
        font-size: 2rem;
    }
}

/*=============== CASES (ACCORDION) ===============*/
.cases {
    background-color: var(--background-color);
}

.cases__accordion {
    max-width: 800px;
    margin: 0 auto;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    overflow: hidden;
}

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

.accordion-item:last-child {
    border-bottom: none;
}

.accordion-item__header {
    width: 100%;
    background: none;
    border: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem;
    cursor: pointer;
    text-align: left;
}

.accordion-item__title {
    font-family: var(--font-family-body);
    font-size: 1.1rem;
    font-weight: 500;
    color: var(--text-color);
}

.accordion-item__icon {
    color: var(--primary-color);
    transition: transform 0.4s ease;
}

.accordion-item__content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, padding 0.4s ease;
}

.accordion-item__body {
    padding: 0 1.5rem 1.5rem;
    color: #4b5269;
    line-height: 1.7;
}

.accordion-item__body h4 {
    font-family: var(--font-family-body);
    font-weight: 700;
    color: var(--text-color);
    margin-top: 1rem;
}

.accordion-item__body p {
    margin-bottom: 0.5rem;
}

.accordion-item__body h4:first-child {
    margin-top: 0;
}

/* Active state for Accordion */
.accordion-item.active .accordion-item__icon {
    transform: rotate(180deg);
}

.accordion-item.active .accordion-item__content {
    /* max-height will be set by JS for smooth animation */
}

/*=============== APPROACH ===============*/
.approach {
    background-color: #f8f9fc;
}

.approach__steps {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    position: relative;
}

.approach-step {
    text-align: center;
    position: relative;
}

/* Connecting line */
.approach-step:not(:last-child)::after {
    content: '';
    position: absolute;
    top: 40px; /* Vertically center with the icon */
    left: calc(50% + 40px);
    width: calc(100% - 80px + 2rem); /* Full width + gap */
    height: 2px;
    background-image: linear-gradient(to right, var(--border-color) 50%, transparent 50%);
    background-size: 10px 2px;
    background-repeat: repeat-x;
    z-index: 1;
}

.approach-step__icon-wrapper {
    position: relative;
    display: inline-block;
    margin-bottom: 1.5rem;
    z-index: 2;
}

.approach-step__icon {
    width: 80px;
    height: 80px;
    background-color: var(--background-color);
    border: 2px solid var(--border-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    transition: all 0.3s ease;
}

.approach-step__icon .lucide {
    width: 32px;
    height: 32px;
    color: var(--primary-color);
    transition: all 0.3s ease;
}

.approach-step:hover .approach-step__icon {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.approach-step:hover .approach-step__icon .lucide {
    color: #fff;
    transform: scale(1.1);
}

.approach-step__number {
    position: absolute;
    top: -10px;
    right: -10px;
    background-color: var(--primary-hover-color);
    color: var(--text-color);
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    font-weight: 700;
}

.approach-step__title {
    font-family: var(--font-family-body);
    font-size: 1.2rem;
    font-weight: 500;
    margin-bottom: 0.5rem;
}

.approach-step__description {
    font-size: 0.9rem;
    color: #4b5269;
}

/* Responsive adjustments for Approach */
@media screen and (max-width: 992px) {
    .approach__steps {
        grid-template-columns: repeat(2, 1fr);
        gap: 3rem 2rem;
    }
    
    /* Hide horizontal lines and draw vertical ones */
    .approach-step:not(:last-child)::after {
        display: none;
    }

    .approach-step:nth-child(1)::after,
    .approach-step:nth-child(2)::after {
        content: '';
        position: absolute;
        top: 80px; /* Below the icon */
        left: 50%;
        transform: translateX(-50%);
        width: 2px;
        height: calc(100% - 40px + 3rem); /* Full height + gap */
        background-image: linear-gradient(to bottom, var(--border-color) 50%, transparent 50%);
        background-size: 2px 10px;
    }
}

@media screen and (max-width: 576px) {
    .approach__steps {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }

    .approach-step:not(:last-child)::after {
        content: '';
        position: absolute;
        display: block;
        top: 80px;
        left: 50%;
        transform: translateX(-50%);
        width: 2px;
        height: calc(100% - 40px + 2.5rem);
    }
    
    .approach-step:nth-child(2)::after {
        display: block;
    }
}

/*=============== BLOG ===============*/
.blog {
    background-color: var(--background-color);
}

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

.blog-card {
    background-color: #fff;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    overflow: hidden;
    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 20px rgba(0, 0, 0, 0.07);
}

.blog-card__image-wrapper {
    overflow: hidden;
    height: 200px;
}

.blog-card__image {
    width: 100%;
    height: 100%;
    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 bottom */
}

.blog-card__category {
    display: inline-block;
    background-color: #eef8f8;
    color: var(--primary-color);
    padding: 4px 10px;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 500;
    margin-bottom: 1rem;
    align-self: flex-start; /* Aligns item to the start of the flex container */
}

.blog-card__category:hover {
    background-color: #dcf2f1;
}

.blog-card__title {
    font-family: var(--font-family-body);
    font-size: 1.2rem;
    font-weight: 500;
    line-height: 1.4;
    margin-bottom: 0.75rem;
}

.blog-card__title a {
    color: var(--text-color);
}

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

.blog-card__excerpt {
    font-size: 0.95rem;
    color: #4b5269;
    margin-bottom: 1rem;
    flex-grow: 1; /* Pushes meta to the bottom */
}

.blog-card__meta {
    font-size: 0.85rem;
    color: var(--secondary-text-color);
    padding-top: 1rem;
    border-top: 1px solid var(--border-color);
}

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

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

/*=============== CONTACT ===============*/
.contact {
    background-color: #f8f9fc;
}

.contact__grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 3rem;
    align-items: flex-start;
}

.contact__info-title {
    font-size: 1.8rem;
    margin-bottom: 1rem;
}

.contact__info-description {
    color: #4b5269;
    margin-bottom: 2rem;
}

.contact__info-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.contact__info-item .lucide {
    color: var(--primary-color);
    width: 28px;
    height: 28px;
    margin-top: 5px;
}

.contact__info-item h4 {
    font-family: var(--font-family-body);
    font-weight: 500;
    margin-bottom: 0.25rem;
}

.contact__form {
    background-color: #fff;
    padding: 2.5rem;
    border-radius: 8px;
    border: 1px solid var(--border-color);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    font-size: 0.9rem;
}

.form-input {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    font-size: 1rem;
    font-family: var(--font-family-body);
    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(91, 192, 190, 0.2);
}

.form-group--captcha {
    display: flex;
    align-items: center;
    gap: 1rem;
}
.form-group--captcha .form-label {
    margin-bottom: 0;
}
.form-group--captcha .form-input {
    width: 100px;
}

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

.form-checkbox {
    width: 18px;
    height: 18px;
}

.form-checkbox-label {
    font-size: 0.9rem;
    color: #4b5269;
}
.form-checkbox-label a {
    text-decoration: underline;
}

.button--full {
    width: 100%;
    justify-content: center;
    padding: 15px;
    font-size: 1rem;
}

.form-message {
    margin-top: 1.5rem;
    padding: 1rem;
    border-radius: 4px;
    text-align: center;
    font-weight: 500;
    display: none; /* Hidden by default */
}

.form-message--success {
    background-color: #e3fcf2;
    color: #128059;
    display: block;
}

.form-message--error {
    background-color: #fdeeee;
    color: #c72c2c;
    display: block;
}

/* Responsive adjustments for Contact */
@media screen and (max-width: 992px) {
    .contact__grid {
        grid-template-columns: 1fr;
    }
}

/*=============== COOKIE POPUP ===============*/
.cookie-popup {
    position: fixed;
    bottom: 20px;
    left: 20px;
    right: 20px;
    max-width: 500px;
    background-color: var(--text-color);
    color: var(--background-color);
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.2);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    z-index: 200;
    transform: translateY(200%);
    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: var(--primary-hover-color);
    text-decoration: underline;
}

.cookie-popup__button {
    flex-shrink: 0;
    padding: 8px 16px;
}

@media screen and (max-width: 576px) {
    .cookie-popup {
        flex-direction: column;
        text-align: center;
        left: 10px;
        right: 10px;
        bottom: 10px;
    }
}
/*=============== POLICY & TEXT PAGES ===============*/
.pages {
    padding: calc(var(--header-height) + 4rem) 0 4rem; /* Top padding to offset fixed header */
    background-color: var(--background-color);
}

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

.pages h1,
.pages h2,
.pages h3 {
    font-family: var(--font-family-headings);
    color: var(--text-color);
    margin-bottom: 1rem;
}

.pages h1 {
    font-size: 2.8rem;
    margin-bottom: 2rem;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 1rem;
}

.pages h2 {
    font-size: 2rem;
    margin-top: 2.5rem;
}

.pages h3 {
    font-size: 1.5rem;
    margin-top: 2rem;
}

.pages p {
    font-size: 1rem;
    line-height: 1.8;
    color: #4b5269;
    margin-bottom: 1.5rem;
}

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

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

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

.pages li {
    margin-bottom: 0.75rem;
    line-height: 1.8;
    color: #4b5269;
}

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