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

/* ==================== CSS VARIABLES ==================== */
:root {
  /* Colors */
  --bg-color: #F8F9FA;
  --text-color: #2D3748;
  --primary-color: #4A6CFD;
  --primary-color-hover: #3b56c9;
  --secondary-color: #E2E8F0;
  --white-color: #FFFFFF;
  --footer-bg-color: #2D3748;
  --footer-text-color: #A0AEC0;
  --footer-link-hover: #FFFFFF;

  /* Fonts */
  --font-body: 'Figtree', sans-serif;
  --font-heading: 'Plus Jakarta Sans', sans-serif;
  --h1-font-size: 2.5rem;
  --h2-font-size: 2rem;
  --h3-font-size: 1.25rem;
  --normal-font-size: 1rem;
  --small-font-size: 0.875rem;

  /* Other */
  --header-height: 5rem;
  --border-radius: 0.5rem;
  --transition: all 0.3s ease-in-out;
}

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

html {
  scroll-behavior: smooth;
}

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

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

ul {
  list-style: none;
}

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

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

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

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

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

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

.header__logo {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.5rem;
  color: var(--text-color);
}
.header__logo:hover {
  color: var(--primary-color);
}

.header__toggle,
.nav__close {
  display: none; /* Hidden on desktop */
  cursor: pointer;
  background: none;
  border: none;
  color: var(--text-color);
}

.header__toggle i,
.nav__close i {
    width: 28px;
    height: 28px;
}

/* ==================== NAVIGATION ==================== */
.nav__list {
  display: flex;
  gap: 2rem;
  align-items: center;
}

.nav__link {
  color: var(--text-color);
  font-weight: 700;
  font-size: var(--small-font-size);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  position: relative;
  padding-bottom: 0.25rem;
}

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

.nav__link:hover::after {
    width: 100%;
}

/* Mobile Menu Styles */
@media screen and (max-width: 768px) {
  .header__toggle {
    display: block;
  }
  
  .nav {
    position: fixed;
    top: 0;
    right: -100%;
    width: 100%;
    height: 100%;
    background-color: var(--bg-color);
    padding: 6rem 2rem 4rem;
    transition: right 0.4s ease-in-out;
    z-index: 110;
  }

  .nav--open {
    right: 0;
  }
  
  .nav__list {
    flex-direction: column;
    gap: 2.5rem;
  }

  .nav__link {
    font-size: var(--h3-font-size);
  }
  
  .nav__close {
    display: block;
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
  }
}

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

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

.footer__logo {
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 1.5rem;
    color: var(--white-color);
    margin-bottom: 1rem;
    display: inline-block;
}

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

.footer__title {
    font-family: var(--font-heading);
    color: var(--white-color);
    font-size: var(--h3-font-size);
    margin-bottom: 1rem;
}

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

.footer__link {
    color: var(--footer-text-color);
    font-size: var(--small-font-size);
}

.footer__link:hover {
    color: var(--footer-link-hover);
    padding-left: 0.25rem;
}

.footer__address p {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
    font-style: normal;
}

.footer__icon {
    width: 18px;
    height: 18px;
    color: var(--primary-color);
}

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

/* ==================== ADAPTIVE STYLES ==================== */
@media screen and (min-width: 992px) {
  :root {
    --h1-font-size: 3.5rem;
    --h2-font-size: 2.5rem;
    --h3-font-size: 1.5rem;
    --normal-font-size: 1.125rem;
  }
}

/* ==================== BUTTONS ==================== */
.button {
    display: inline-block;
    padding: 0.875rem 2rem;
    border-radius: var(--border-radius);
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: var(--normal-font-size);
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
    border: 2px solid transparent;
}

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

.button--primary:hover {
    background-color: var(--primary-color-hover);
    border-color: var(--primary-color-hover);
    color: var(--white-color);
    transform: translateY(-3px);
    box-shadow: 0 4px 15px rgba(74, 108, 253, 0.4);
}

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

.hero__container {
    display: grid;
    align-items: center;
    gap: 3rem;
    grid-template-columns: 1fr;
    padding-top: 2rem;
    padding-bottom: 4rem;
}

.hero__content {
    text-align: center;
}

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

.hero__description {
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 2.5rem;
    font-size: var(--normal-font-size);
}

/* Hero Animation */
.hero__visual {
    display: flex;
    justify-content: center;
    align-items: center;
    perspective: 1000px;
}

.hero__animation-grid {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: 0.75rem;
    transform: rotateX(20deg) rotateY(-10deg);
    width: 100%;
    max-width: 300px;
}

.hero__animation-dot {
    width: 100%;
    padding-bottom: 100%; /* Creates a square aspect ratio */
    background-color: var(--secondary-color);
    border-radius: 50%;
    transition: all 0.5s ease-in-out;
}

.hero__animation-dot--active {
    background-color: var(--primary-color);
    transform: scale(1.3);
}

/* ==================== ADAPTIVE STYLES (HERO) ==================== */
@media screen and (min-width: 768px) {
    .hero__container {
        grid-template-columns: 1.2fr 0.8fr;
        gap: 2rem;
    }
    .hero__content {
        text-align: left;
    }
    .hero__description {
        margin-left: 0;
        margin-right: 0;
    }
    .hero__animation-grid {
        max-width: 350px;
    }
}

@media screen and (min-width: 992px) {
    .hero__animation-grid {
        gap: 1rem;
        max-width: 400px;
    }
}

/* ==================== REUSABLE SECTION STYLES ==================== */
.section {
    padding-top: 5rem;
    padding-bottom: 5rem;
    overflow: hidden; /* Prevents scrollbars during animations */
}

.section__header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 4rem auto;
}

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

.section__subtitle {
    font-size: var(--normal-font-size);
    color: #64748B; /* A slightly lighter text color */
}


/* ==================== HOW IT WORKS ==================== */
.how-it-works__steps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.step-card {
    background-color: var(--white-color);
    border: 1px solid var(--secondary-color);
    border-radius: var(--border-radius);
    padding: 2.5rem 2rem;
    text-align: center;
    transition: var(--transition);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.03);
    
    /* For scroll animation */
    opacity: 0;
    transform: translateY(30px);
}

.step-card--visible {
    opacity: 1;
    transform: translateY(0);
}

.step-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.07);
    border-color: var(--primary-color);
}

.step-card__icon {
    margin: 0 auto 1.5rem auto;
    width: 60px;
    height: 60px;
    background-color: #ECF0FF; /* Light blue bg for icon */
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    color: var(--primary-color);
    transition: var(--transition);
}

.step-card:hover .step-card__icon {
    transform: scale(1.1) rotate(10deg);
}

.step-card__icon i {
    width: 32px;
    height: 32px;
}

.step-card__title {
    font-size: var(--h3-font-size);
    margin-bottom: 0.75rem;
}

.step-card__description {
    font-size: var(--small-font-size);
    line-height: 1.7;
}

/* ==================== DIRECTIONS ==================== */
.directions__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.direction-card {
    background-color: var(--white-color);
    border-radius: var(--border-radius);
    border: 1px solid var(--secondary-color);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.03);
    transition: var(--transition);
    
    /* For scroll animation */
    opacity: 0;
    transform: scale(0.95);
}

.direction-card--visible {
    opacity: 1;
    transform: scale(1);
}

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

.direction-card__image-wrapper {
    overflow: hidden;
    aspect-ratio: 16 / 9;
}

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

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

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

.direction-card__category {
    display: inline-block;
    align-self: flex-start;
    background-color: #ECF0FF;
    color: var(--primary-color);
    padding: 0.25rem 0.75rem;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 700;
    margin-bottom: 1rem;
    text-transform: uppercase;
}

.direction-card__title {
    font-size: 1.25rem; /* Slightly smaller than h3 */
    margin-bottom: 0.75rem;
}

.direction-card__description {
    font-size: var(--small-font-size);
    line-height: 1.6;
    flex-grow: 1;
}

/* ==================== APPROACH ==================== */
.approach__grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
    align-items: center;
}

.section__title--left {
    text-align: left;
}

.approach__description {
    margin-top: 1.5rem;
    font-size: var(--normal-font-size);
    line-height: 1.7;
    color: #64748B;
}

.principles__list {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.principle-item {
    display: flex;
    align-items: flex-start;
    gap: 1.5rem;
    
    /* For scroll animation */
    opacity: 0;
    transform: translateX(30px);
}

.principle-item--visible {
    opacity: 1;
    transform: translateX(0);
}

.principle-item__icon {
    flex-shrink: 0;
    width: 50px;
    height: 50px;
    background-color: #E2E8F0; /* A neutral gray */
    border-radius: var(--border-radius);
    display: flex;
    justify-content: center;
    align-items: center;
    color: var(--text-color);
}

.principle-item__icon i {
    width: 28px;
    height: 28px;
}

.principle-item__title {
    font-size: var(--h3-font-size);
    margin-bottom: 0.5rem;
}

.principle-item__text p {
    font-size: var(--normal-font-size);
    color: #64748B;
}


/* General animation classes */
[data-anim="fade-up"] {
    opacity: 0;
    transform: translateY(30px);
}

[data-anim="fade-up"].is-visible {
    opacity: 1;
    transform: translateY(0);
}


/* ==================== ADAPTIVE STYLES (APPROACH) ==================== */
@media screen and (min-width: 992px) {
    .approach__grid {
        grid-template-columns: 1fr 1fr;
        gap: 5rem;
    }
}

/* ==================== FAQ ==================== */
.faq__container {
    max-width: 800px;
    margin: 0 auto;
    border-top: 1px solid var(--secondary-color);
}

.faq__item {
    border-bottom: 1px solid var(--secondary-color);
    padding: 1.5rem 0;
}

.faq__item[data-anim="fade-up"] {
    opacity: 0;
    transform: translateY(30px);
}
.faq__item[data-anim="fade-up"].is-visible {
    opacity: 1;
    transform: translateY(0);
}

.faq__question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    cursor: pointer;
    font-size: var(--h3-font-size);
    font-family: var(--font-heading);
    font-weight: 700;
}

/* Remove default marker from summary */
.faq__question::-webkit-details-marker {
    display: none;
}
.faq__question {
    list-style: none;
}

.faq__icon {
    position: relative;
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    margin-left: 1rem;
}

.faq__icon::before,
.faq__icon::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 16px;
    height: 2px;
    background-color: var(--primary-color);
    transition: transform 0.3s ease-in-out;
}

.faq__icon::before {
    transform: translate(-50%, -50%);
}

.faq__icon::after {
    transform: translate(-50%, -50%) rotate(90deg);
}

.faq__item[open] .faq__icon::after {
    transform: translate(-50%, -50%) rotate(0deg);
}


.faq__answer {
    overflow: hidden;
    transition: max-height 0.4s ease-in-out;
    max-height: 0;
}

.faq__answer p {
    padding-top: 1rem;
    font-size: var(--normal-font-size);
    line-height: 1.7;
    color: #64748B;
}

.faq__item[open] .faq__answer {
    max-height: 300px; /* Set a sufficient max-height for the content */
}
/* ==================== CONTACT ==================== */
.contact__container {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
    margin-top: 4rem;
}

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

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

.contact__info-icon {
    flex-shrink: 0;
    width: 50px;
    height: 50px;
    background-color: #ECF0FF;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    color: var(--primary-color);
}
.contact__info-icon i {
    width: 24px;
    height: 24px;
}
.contact__info-text h4 {
    font-family: var(--font-heading);
    font-size: 1.125rem;
    margin-bottom: 0.25rem;
}
.contact__info-text p,
.contact__info-text a {
    color: #64748B;
    font-size: var(--normal-font-size);
}
.contact__info-text a:hover {
    color: var(--primary-color);
}

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

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

.form__label {
    font-weight: 700;
    margin-bottom: 0.5rem;
    font-size: var(--small-font-size);
}

.form__input {
    width: 100%;
    padding: 0.875rem 1rem;
    border: 1px solid var(--secondary-color);
    border-radius: var(--border-radius);
    background-color: var(--white-color);
    font-family: var(--font-body);
    font-size: var(--normal-font-size);
    transition: var(--transition);
}

.form__input:focus,
.form__input:focus-visible {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px rgba(74, 108, 253, 0.2);
}

textarea.form__input {
    resize: vertical;
}

.contact__button {
    width: 100%;
}

.form__message {
    padding: 1rem;
    border-radius: var(--border-radius);
    text-align: center;
    font-weight: 700;
    margin-top: 1rem;
    display: none; /* Hidden by default */
}
.form__message--success {
    background-color: #D1FAE5;
    color: #065F46;
    display: block;
}
.form__message--error {
    background-color: #FEE2E2;
    color: #991B1B;
    display: block;
}

@media screen and (min-width: 992px) {
    .contact__container {
        grid-template-columns: 1fr 1.5fr;
        gap: 5rem;
    }
    .contact__button {
        width: auto;
        align-self: flex-start;
    }
}

/* ==================== GENERIC PAGES (LEGAL) ==================== */
.pages {
    padding-top: calc(var(--header-height) + 4rem);
    padding-bottom: 6rem;
    background-color: var(--white-color);
}

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

.pages h1,
.pages h2,
.pages p,
.pages ul {
    margin-bottom: 1.5rem;
}

.pages h1 {
    font-size: var(--h1-font-size);
    font-weight: 800;
}

.pages h2 {
    font-size: var(--h2-font-size);
    font-weight: 700;
    margin-top: 3rem;
}

.pages p {
    font-size: var(--normal-font-size);
    line-height: 1.8;
    color: #4A5568; /* Slightly lighter than main text */
}

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

.pages li {
    margin-bottom: 1rem;
    font-size: var(--normal-font-size);
    line-height: 1.8;
    color: #4A5568;
}

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

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

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

/* ==================== COOKIE POPUP ==================== */
.button--small {
    padding: 0.5rem 1.25rem;
    font-size: var(--small-font-size);
}

.cookie-popup {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: var(--footer-bg-color);
    color: var(--footer-text-color);
    z-index: 200;
    padding: 1rem;
    box-shadow: 0 -5px 15px rgba(0, 0, 0, 0.1);
    transform: translateY(100%);
    transition: transform 0.5s ease-in-out;
}

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

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

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

.cookie-popup__link {
    color: var(--white-color);
    text-decoration: underline;
}

.cookie-popup__link:hover {
    color: var(--primary-color);
}

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

/* Universal visible state for scroll animations */
.step-card.is-visible,
.direction-card.is-visible,
.principle-item.is-visible,
.faq__item.is-visible,
[data-anim="fade-up"].is-visible {
    opacity: 1;
    transform: none; /* Reset transform for all */
}