/* --- Google Fonts Import --- */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;700&family=Playfair+Display:wght@700&display=swap');

/* --- CSS Variables --- */
:root {
    --font-primary: 'Inter', sans-serif;
    --font-headings: 'Playfair Display', serif;
    
    --color-background: #FFFFFF;
    --color-text: #111827;
    --color-muted: #6b7280;
    --color-accent: #4f46e5;
    --color-border: #e5e7eb;

    --header-height: 80px;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-primary);
    font-size: 16px;
    line-height: 1.6;
    color: var(--color-text);
    background-color: var(--color-background);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-headings);
    line-height: 1.2;
    margin-bottom: 0.5em;
}

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

a:hover {
    color: #3730a3; /* Darker accent */
}

ul {
    list-style: none;
}

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

.container {
    width: 100%;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 1.5rem;
    padding-right: 1.5rem;
}

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

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

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

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

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

.nav__link {
    font-weight: 500;
    color: var(--color-text);
    position: relative;
    padding: 0.5rem 0;
}

.nav__link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: var(--color-accent);
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.3s ease-in-out;
}

.nav__link:hover::after {
    transform: scaleX(1);
    transform-origin: left;
}

.nav__link--button {
    background-color: var(--color-accent);
    color: white;
    padding: 0.6rem 1.5rem;
    border-radius: 50px;
    transition: background-color 0.3s ease;
}

.nav__link--button:hover {
    background-color: #3730a3;
    color: white;
}
.nav__link--button::after {
    display: none;
}

.burger {
    display: none;
    cursor: pointer;
    background: transparent;
    border: none;
    z-index: 1100;
}

/* --- Footer --- */
.footer {
    background-color: #f9fafb;
    border-top: 1px solid var(--color-border);
    padding: 4rem 0;
    color: var(--color-muted);
}

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

.footer__column--brand {
    display: flex;
    flex-direction: column;
}

.footer__logo {
    margin-bottom: 1rem;
}

.footer__copy {
    font-size: 0.9rem;
}

.footer__title {
    font-family: var(--font-primary);
    font-weight: 700;
    font-size: 1rem;
    color: var(--color-text);
    margin-bottom: 1rem;
}

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

.footer__link {
    color: var(--color-muted);
    font-size: 0.95rem;
}

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

.footer__list--contacts .footer__item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.footer__icon {
    width: 20px;
    height: 20px;
    color: var(--color-muted);
    flex-shrink: 0;
}

.footer__text {
    font-size: 0.95rem;
    color: var(--color-muted);
}

/* --- Mobile-first: Header & Footer adjustments --- */
@media (max-width: 992px) {
    .footer__container {
        grid-template-columns: 1fr 1fr;
    }
    .footer__column--brand {
        grid-column: 1 / -1;
    }
}

@media (max-width: 768px) {
    .nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 70%;
        max-width: 300px;
        height: 100vh;
        background-color: white;
        box-shadow: -5px 0 15px rgba(0,0,0,0.1);
        transition: right 0.4s cubic-bezier(0.23, 1, 0.32, 1);
        padding-top: calc(var(--header-height) + 2rem);
    }
    .nav.is-active {
        right: 0;
    }
    .nav__list {
        flex-direction: column;
        align-items: flex-start;
        padding: 0 2rem;
        gap: 1.5rem;
    }
    .nav__link--button {
        width: 100%;
        text-align: center;
    }
    .burger {
        display: flex;
        flex-direction: column;
        gap: 5px;
        width: 24px;
        height: 20px;
    }
    .burger__line {
        width: 100%;
        height: 2px;
        background-color: var(--color-text);
        border-radius: 2px;
        transition: transform 0.3s ease, opacity 0.3s ease;
    }
    .burger.is-active .burger__line:nth-child(1) {
        transform: translateY(7px) rotate(45deg);
    }
    .burger.is-active .burger__line:nth-child(2) {
        opacity: 0;
    }
    .burger.is-active .burger__line:nth-child(3) {
        transform: translateY(-7px) rotate(-45deg);
    }
    .footer__container {
        grid-template-columns: 1fr;
        text-align: center;
    }
    .footer__column--brand,
    .footer__list--contacts .footer__item {
        align-items: center;
        justify-content: center;
    }
}

/* --- Main Content --- */
.main {
    padding-top: var(--header-height);
}

/* --- Button Component --- */
.button {
    display: inline-block;
    font-family: var(--font-primary);
    font-weight: 500;
    font-size: 1rem;
    text-align: center;
    cursor: pointer;
    border: none;
    border-radius: 50px;
    padding: 0.8rem 2rem;
    transition: all 0.3s ease;
}

.button:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px -10px var(--color-accent);
}

/* --- Hero Section --- */
.hero {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: calc(100vh - var(--header-height));
    padding: 4rem 0;
    overflow: hidden;
    text-align: center;
}

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

.hero__container {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.hero__title {
    font-size: clamp(2.5rem, 5vw, 4rem); /* Responsive font size */
    max-width: 800px;
    margin-bottom: 1.5rem;
}

.hero__subtitle {
    font-size: 1.125rem;
    color: var(--color-muted);
    max-width: 650px;
    margin-bottom: 2.5rem;
    line-height: 1.7;
}

.hero__cta {
    background-color: var(--color-accent);
    color: white;
}
.hero__cta:hover {
    background-color: #3730a3;
    color: white;
}
/* --- Section Base & Header Component --- */
.section {
    padding: 6rem 0;
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
    max-width: 750px;
    margin-left: auto;
    margin-right: auto;
}

.section-header__title {
    font-size: clamp(2rem, 4vw, 2.75rem);
    margin-bottom: 1rem;
}

.section-header__subtitle {
    font-size: 1.125rem;
    color: var(--color-muted);
    line-height: 1.7;
}

/* --- Trajectories Section --- */
.trajectories {
    background-color: #f9fafb; /* Light gray background to separate sections */
}

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

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

.trajectory-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 30px -15px rgba(0,0,0,0.1);
}

.trajectory-card__icon-wrapper {
    margin: 0 auto 1.5rem;
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background-color: #eef2ff; /* Light accent background */
    display: flex;
    align-items: center;
    justify-content: center;
}

.trajectory-card__icon {
    width: 32px;
    height: 32px;
    color: var(--color-accent);
}

.trajectory-card__title {
    font-family: var(--font-primary);
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--color-text);
    margin-bottom: 0.75rem;
}

.trajectory-card__description {
    color: var(--color-muted);
    font-size: 0.95rem;
    line-height: 1.6;
}

/* --- Responsive adjustments --- */
@media (max-width: 992px) {
    .trajectories__grid {
        grid-template-columns: 1fr;
        max-width: 450px;
        margin: 0 auto;
    }
}

@media (max-width: 768px) {
    .section {
        padding: 4rem 0;
    }
    .section-header {
        margin-bottom: 3rem;
    }
}

/* --- Tools Section --- */
.tools {
    background-color: var(--color-background);
}

.tools__tabs-wrapper {
    max-width: 1000px;
    margin: 0 auto;
}

.tools__tabs {
    display: flex;
    justify-content: center;
    border-bottom: 1px solid var(--color-border);
    margin-bottom: 2rem;
}

.tools__tab-button {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1rem;
    font-weight: 500;
    font-family: var(--font-primary);
    padding: 1rem 1.5rem;
    cursor: pointer;
    border: none;
    background-color: transparent;
    border-bottom: 2px solid transparent;
    margin-bottom: -1px; /* Overlap border */
    transition: all 0.3s ease;
    color: var(--color-muted);
}

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

.tools__tab-button.is-active {
    color: var(--color-accent);
    border-bottom-color: var(--color-accent);
}

.tools__tab-icon {
    width: 20px;
    height: 20px;
}

.tools__content-pane {
    display: none;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 3rem;
    animation: fadeIn 0.5s ease;
}

.tools__content-pane.is-active {
    display: grid;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.tools__content-title {
    font-size: 1.75rem;
    margin-bottom: 1rem;
}

.tools__content-text p {
    color: var(--color-muted);
    margin-bottom: 1.5rem;
}

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

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

.tools__list i {
    width: 20px;
    height: 20px;
    color: var(--color-accent);
    flex-shrink: 0;
}

.tools__content-image img {
    border-radius: 12px;
    width: 100%;
    height: auto;
    object-fit: cover;
}


/* --- Responsive adjustments --- */
@media (max-width: 768px) {
    .tools__tabs {
        flex-direction: column;
        border-bottom: none;
    }
    .tools__tab-button {
        border-bottom: 1px solid var(--color-border);
        justify-content: center;
    }
    .tools__tab-button.is-active {
        border-bottom-color: var(--color-accent);
        background-color: #f9fafb;
    }
    .tools__content-pane {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    .tools__content-image {
        order: -1; /* Move image to top on mobile */
    }
}

/* --- Cases Section --- */
.cases {
    background-color: #f9fafb;
}

.cases__slider {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
}

.cases__slider-viewport {
    overflow: hidden;
    width: 100%;
}

.cases__slider-track {
    display: flex;
    transition: transform 0.5s cubic-bezier(0.23, 1, 0.32, 1);
}

.case-card {
    flex: 0 0 100%;
    min-width: 100%;
    padding: 2rem;
    box-sizing: border-box;
    background-color: var(--color-background);
    border: 1px solid var(--color-border);
    border-radius: 12px;
    text-align: center;
}

.case-card__quote {
    font-family: var(--font-headings);
    font-size: 1.5rem;
    line-height: 1.4;
    font-style: italic;
    color: var(--color-text);
    margin: 0 0 1.5rem;
    position: relative;
}

.case-card__quote::before,
.case-card__quote::after {
    color: var(--color-accent);
    font-size: 3rem;
    position: absolute;
    line-height: 1;
}
.case-card__quote::before {
    content: '“';
    top: -0.5rem;
    left: -1rem;
}
.case-card__quote::after {
    content: '”';
    bottom: -1.5rem;
    right: -1rem;
}

.case-card__story {
    font-size: 0.95rem;
    color: var(--color-muted);
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.case-card__author {
    font-weight: 700;
    color: var(--color-text);
}

.cases__slider-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 2rem;
    padding: 0 1rem;
}

.cases__nav-button {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 1px solid var(--color-border);
    background-color: var(--color-background);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.cases__nav-button:hover {
    background-color: var(--color-accent);
    border-color: var(--color-accent);
    color: white;
}

.cases__dots {
    display: flex;
    gap: 0.75rem;
}

.cases__dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: var(--color-border);
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.3s ease;
}

.cases__dot:hover {
    background-color: var(--color-muted);
}

.cases__dot.is-active {
    background-color: var(--color-accent);
    transform: scale(1.2);
}

@media (max-width: 768px) {
    .case-card {
        padding: 1.5rem;
    }
    .case-card__quote {
        font-size: 1.25rem;
    }
    .case-card__quote::before, .case-card__quote::after {
        display: none;
    }
}

/* --- Blog Section --- */
.blog {
    background-color: var(--color-background);
}

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

.article-card {
    display: flex;
    flex-direction: column;
    background-color: var(--color-background);
    border-radius: 12px;
    border: 1px solid var(--color-border);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    color: var(--color-text); /* Ensure link color is reset */
}

.article-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 30px -15px rgba(0,0,0,0.1);
    color: var(--color-text);
}

.article-card__image-wrapper {
    overflow: hidden;
    aspect-ratio: 16 / 10;
}

.article-card__image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.article-card:hover .article-card__image {
    transform: scale(1.05);
}

.article-card__content {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.article-card__category {
    display: inline-block;
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--color-accent);
    margin-bottom: 0.75rem;
    text-transform: uppercase;
}

.article-card__title {
    font-family: var(--font-primary);
    font-size: 1.25rem;
    font-weight: 700;
    line-height: 1.4;
    margin-bottom: 0.75rem;
}

.article-card__excerpt {
    font-size: 0.95rem;
    color: var(--color-muted);
    line-height: 1.6;
    margin-bottom: 1rem;
    flex-grow: 1; /* Pushes date to the bottom */
}

.article-card__date {
    font-size: 0.85rem;
    color: var(--color-muted);
}

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

@media (max-width: 768px) {
    .blog__grid {
        grid-template-columns: 1fr;
        max-width: 400px;
        margin: 0 auto;
    }
}

/* --- Contact Section --- */
.contact {
    background-color: #f9fafb;
}

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

.contact__title {
    font-size: clamp(2rem, 4vw, 2.75rem);
}

.contact__subtitle {
    font-size: 1.125rem;
    color: var(--color-muted);
    line-height: 1.7;
    margin-bottom: 2rem;
}

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

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

.contact__list-item a {
    font-weight: 500;
    color: var(--color-text);
}
.contact__list-item a:hover {
    color: var(--color-accent);
}

.contact__list-icon {
    width: 24px;
    height: 24px;
    color: var(--color-accent);
}

.contact__form-container {
    background-color: var(--color-background);
    padding: 3rem;
    border-radius: 12px;
    border: 1px solid var(--color-border);
    box-shadow: 0 10px 25px -15px rgba(0,0,0,0.05);
}

.contact__form {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.form-group {
    display: flex;
    flex-direction: column;
}

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

.form-group__input {
    width: 100%;
    padding: 0.8rem 1rem;
    border: 1px solid var(--color-border);
    border-radius: 8px;
    font-family: var(--font-primary);
    font-size: 1rem;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.form-group__input:focus {
    outline: none;
    border-color: var(--color-accent);
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.2);
}

.form-group--checkbox {
    flex-direction: row;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.9rem;
}
.form-group--checkbox input[type="checkbox"] {
    width: 1.2em;
    height: 1.2em;
    accent-color: var(--color-accent);
}
.form-group--checkbox label {
    margin: 0;
    color: var(--color-muted);
}
.form-group--checkbox a {
    color: var(--color-text);
    text-decoration: underline;
}

.contact__form-button {
    width: 100%;
    padding-top: 1rem;
    padding-bottom: 1rem;
    font-size: 1.1rem;
}

.contact__success-message {
    text-align: center;
    padding: 2rem;
}
.contact__success-icon {
    width: 60px;
    height: 60px;
    color: #10b981; /* Green */
    margin-bottom: 1rem;
}
.contact__success-title {
    font-size: 1.75rem;
}

/* --- Responsive adjustments --- */
@media (max-width: 992px) {
    .contact__wrapper {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    .contact__info {
        text-align: center;
    }
    .contact__list {
        justify-content: center;
    }
}
@media (max-width: 768px) {
    .contact__form-container {
        padding: 2rem;
    }
}

/* --- Cookie Pop-up --- */
.cookie-popup {
    position: fixed;
    bottom: 1.5rem;
    left: 1.5rem;
    right: 1.5rem;
    max-width: 400px;
    background-color: var(--color-text);
    color: white;
    padding: 1.5rem;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    display: flex;
    align-items: center;
    gap: 1.5rem;
    transform: translateY(200%);
    transition: transform 0.5s cubic-bezier(0.23, 1, 0.32, 1);
    z-index: 2000;
}

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

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

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

.cookie-popup__button {
    flex-shrink: 0;
    padding: 0.6rem 1.2rem;
    background-color: var(--color-background);
    color: var(--color-text);
    box-shadow: none;
}

.cookie-popup__button:hover {
    background-color: #f0f0f0;
    color: var(--color-text);
    transform: none;
}

@media (max-width: 480px) {
    .cookie-popup {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
        bottom: 1rem;
        left: 1rem;
        right: 1rem;
    }
}

/* --- Policy & Text Pages Styles --- */
.pages {
    padding: 5rem 0;
}

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

.pages h1 {
    font-size: clamp(2.25rem, 5vw, 3rem);
    margin-bottom: 2rem;
    border-bottom: 1px solid var(--color-border);
    padding-bottom: 1rem;
}

.pages h2 {
    font-family: var(--font-primary);
    font-weight: 700;
    font-size: 1.5rem;
    margin-top: 2.5rem;
    margin-bottom: 1rem;
}

.pages p, 
.pages li {
    font-size: 1rem;
    line-height: 1.8;
    color: var(--color-muted);
}

.pages p {
    margin-bottom: 1.5rem;
}

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

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

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

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

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