/* ------------------- */
/* GLOBAL STYLES & SETUP */
/* ------------------- */
:root {
    --bg-color: #FDFEFF;
    --text-color: #1A1D21;
    --primary-color: #059669; /* Emerald Green */
    --secondary-color: #6B7280; /* Cool Gray */
    --border-color: #E5E7EB;

    --font-primary: 'Inter', sans-serif;
    --font-headings: 'Space Grotesk', sans-serif;

    --container-width: 1200px;
    --container-padding: 1.5rem;
}

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

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

.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 var(--container-padding);
}

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

a:hover {
    color: #047857; /* Darker shade of primary */
}

ul {
    list-style: none;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-headings);
    line-height: 1.3;
}

/* ------------------- */
/* HEADER              */
/* ------------------- */
.header {
    background-color: var(--bg-color);
    border-bottom: 1px solid var(--border-color);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 100;
    backdrop-filter: blur(8px);
    background-color: rgba(253, 254, 255, 0.85);
}

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

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

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

.nav__list {
    display: flex;
    gap: 1.5rem;
}

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

.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%;
}

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

/* ------------------- */
/* FOOTER              */
/* ------------------- */
.footer {
    background-color: #F3F4F6; /* Slightly darker than background */
    color: var(--secondary-color);
    padding-top: 4rem;
    border-top: 1px solid var(--border-color);
}

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

.footer__logo {
    font-family: var(--font-headings);
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--text-color);
    display: inline-block;
    margin-bottom: 0.5rem;
}

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

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

.footer__heading {
    font-size: 1.1rem;
    color: var(--text-color);
    margin-bottom: 1rem;
    font-weight: 500;
}

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

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

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

.footer__list--contacts li {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
}

.footer__icon {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    margin-top: 3px;
    color: var(--secondary-color);
}

.footer__address {
    font-style: normal;
    font-size: 0.95rem;
    line-height: 1.5;
}

.footer__bottom {
    border-top: 1px solid var(--border-color);
    padding: 1.5rem var(--container-padding);
    text-align: center;
    font-size: 0.85rem;
}

/* ------------------- */
/* RESPONSIVE STYLES   */
/* ------------------- */

/* For Tablets */
@media (max-width: 992px) {
    .footer__container {
        grid-template-columns: repeat(2, 1fr);
        gap: 2.5rem;
    }
}

/* For Mobile */
@media (max-width: 768px) {
    body {
        font-size: 15px;
    }
    
    .header__nav {
        display: none; /* We will implement mobile menu logic later */
    }

    .header__menu-button {
        display: block;
    }

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

    .footer__column {
        text-align: center;
    }

    .footer__tagline {
        margin: 0 auto 1rem;
    }

    .footer__list--contacts li {
        justify-content: center;
        text-align: left;
    }
}

/* ------------------- */
/* BUTTON (reusable)   */
/* ------------------- */
.button {
    display: inline-block;
    padding: 0.85rem 2rem;
    font-family: var(--font-headings);
    font-weight: 500;
    font-size: 1rem;
    text-align: center;
    color: #fff;
    background-color: var(--primary-color);
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.button:hover {
    background-color: #047857; /* Darker primary */
    color: #fff;
    transform: translateY(-2px);
}

.button:active {
    transform: translateY(0);
}


/* ------------------- */
/* HERO SECTION        */
/* ------------------- */
.hero {
    padding: 6rem 0;
    min-height: 85vh;
    display: flex;
    align-items: center;
}

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

.hero__title {
    font-size: 3.2rem;
    margin-bottom: 1rem;
    font-weight: 700;
    color: var(--text-color);
}

.hero__subtitle {
    font-size: 1.25rem;
    color: var(--secondary-color);
    margin-bottom: 2.5rem;
    max-width: 500px;
}

.hero__animation-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    perspective: 1000px; /* For 3D effects */
}

.hero__animation-word {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    color: var(--secondary-color);
    font-family: var(--font-headings);
    font-size: 1rem;
    text-align: center;
    background-color: #F9FAFB;
    transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.hero__animation-word--active {
    color: var(--primary-color);
    background-color: #ECFDF5; /* Light green */
    border-color: #A7F3D0;
    font-weight: 500;
    transform: scale(1.05) rotateX(10deg);
    box-shadow: 0 10px 20px rgba(0,0,0,0.05);
}

/* ------------------- */
/* HERO RESPONSIVE     */
/* ------------------- */

@media (max-width: 992px) {
    .hero {
        padding: 4rem 0;
        text-align: center;
    }
    .hero__container {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    .hero__subtitle {
        margin-left: auto;
        margin-right: auto;
    }
    .hero__animation {
        grid-row: 1; /* Move animation block to the top on smaller screens */
        max-width: 500px;
        margin: 0 auto;
    }
    .hero__title {
        font-size: 2.5rem;
    }
    .hero__subtitle {
        font-size: 1.1rem;
    }
}

@media (max-width: 480px) {
    .hero__title {
        font-size: 2rem;
    }
    .hero__animation-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* ------------------- */
/* SECTION STYLES (reusable) */
/* ------------------- */
.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 0.75rem;
    color: var(--text-color);
}

.section-subtitle {
    font-size: 1.15rem;
    color: var(--secondary-color);
    text-align: center;
    max-width: 650px;
    margin: 0 auto 3.5rem auto;
}

/* ------------------- */
/* PRACTICES SECTION   */
/* ------------------- */
.practices {
    padding: 6rem 0;
    background-color: #F9FAFB; /* Off-white background */
}

.practices__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
    gap: 2rem;
}

.practice-card {
    background-color: var(--bg-color);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0,0,0,0.02);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    display: flex;
    flex-direction: column;
}

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

.practice-card__image-wrapper {
    height: 200px;
    background-color: #f0f0f0; /* Placeholder color */
}

.practice-card__image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.practice-card__content {
    padding: 1.5rem;
    flex-grow: 1; /* Allows content to fill space */
}

.practice-card__header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
}

.practice-card__icon {
    color: var(--primary-color);
    width: 24px;
    height: 24px;
}

.practice-card__title {
    font-size: 1.25rem;
    font-weight: 500;
    color: var(--text-color);
}

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

.practice-card__tag {
    position: absolute;
    top: 1rem;
    right: 1rem;
    font-size: 0.75rem;
    font-weight: 500;
    padding: 0.25rem 0.6rem;
    background-color: #ECFDF5; /* Light green */
    color: var(--primary-color);
    border-radius: 99px;
    border: 1px solid #A7F3D0;
}

/* ------------------- */
/* PRACTICES RESPONSIVE */
/* ------------------- */
@media (max-width: 768px) {
    .practices {
        padding: 4rem 0;
    }
    .section-title {
        font-size: 2rem;
    }
    .section-subtitle {
        font-size: 1rem;
        margin-bottom: 2.5rem;
    }
}

@media (max-width: 480px) {
    .practices__grid {
        grid-template-columns: 1fr;
    }
}

/* ------------------- */
/* TOOLS SECTION       */
/* ------------------- */
.tools {
    padding: 6rem 0;
}

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

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

.accordion__item:last-child {
    border-bottom: none;
}

.accordion__header {
    display: flex;
    width: 100%;
    align-items: center;
    gap: 1.5rem;
    padding: 1.5rem;
    background-color: var(--bg-color);
    border: none;
    cursor: pointer;
    text-align: left;
    font-size: 1.1rem;
    transition: background-color 0.2s ease;
}

.accordion__header:hover {
    background-color: #F9FAFB;
}

.accordion__logo-placeholder {
    width: 48px;
    height: 48px;
    border-radius: 8px;
    flex-shrink: 0;
}

.accordion__title {
    flex-grow: 1;
    font-family: var(--font-headings);
    font-weight: 500;
    font-size: 1.25rem;
    color: var(--text-color);
}

.accordion__icon {
    transition: transform 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    color: var(--secondary-color);
}

.accordion__header[aria-expanded="true"] .accordion__icon {
    transform: rotate(180deg);
}

.accordion__content {
    overflow: hidden;
    max-height: 0;
    transition: max-height 0.4s cubic-bezier(0.25, 0.8, 0.25, 1), 
                padding 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    background-color: #F9FAFB;
    padding: 0 1.5rem;
}

.accordion__content p, 
.accordion__content ul {
    padding-left: calc(48px + 1.5rem); /* Align with title */
}

.accordion__description {
    color: var(--secondary-color);
    margin-bottom: 1.5rem;
}

.accordion__features-title {
    font-family: var(--font-primary);
    font-weight: 700;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-color);
    margin-bottom: 0.75rem;
}

.accordion__features-list {
    list-style-type: disc;
    padding-left: calc(48px + 1.5rem + 1rem); /* Align + list ident */
    margin-bottom: 2rem;
    color: var(--secondary-color);
}

.accordion__features-list li {
    margin-bottom: 0.5rem;
}

.button--secondary {
    background-color: transparent;
    color: var(--primary-color);
    border: 1px solid var(--border-color);
    box-shadow: 0 1px 2px rgba(0,0,0,0.05);
}

.button--secondary:hover {
    background-color: #F9FAFB;
    color: var(--primary-color);
    border-color: #D1D5DB;
    transform: translateY(-2px);
}

/* ------------------- */
/* NEWCOMERS SECTION   */
/* ------------------- */
.newcomers {
    padding: 6rem 0;
}

.newcomers__grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    max-width: 1000px;
    margin: 0 auto;
}

.newcomers-card {
    display: flex;
    align-items: flex-start;
    gap: 1.5rem;
    background-color: #F9FAFB;
    border: 1px solid var(--border-color);
    padding: 2rem;
    border-radius: 12px;
}

.newcomers-card__number {
    font-family: var(--font-headings);
    font-size: 3rem;
    font-weight: 700;
    line-height: 1;
    color: #E5E7EB; /* Lightest gray */
    flex-shrink: 0;
}

.newcomers-card__header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
}

.newcomers-card__icon {
    width: 24px;
    height: 24px;
    color: var(--primary-color);
    flex-shrink: 0;
}

.newcomers-card__title {
    font-size: 1.25rem;
    font-weight: 500;
}

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

/* ------------------- */
/* NEWCOMERS RESPONSIVE */
/* ------------------- */

@media (max-width: 992px) {
    .newcomers__grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .newcomers {
        padding: 4rem 0;
    }
    .newcomers-card {
        padding: 1.5rem;
        gap: 1rem;
    }
    .newcomers-card__number {
        font-size: 2.5rem;
    }
    .newcomers-card__title {
        font-size: 1.15rem;
    }
}
/* ------------------- */
/* CONTACT SECTION     */
/* ------------------- */
.contact {
    padding: 6rem 0;
}

.contact__wrapper {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 3rem;
    background-color: #F9FAFB;
    border: 1px solid var(--border-color);
    padding: 3rem;
    border-radius: 16px;
    max-width: 1100px;
    margin: 0 auto;
}

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

.contact__info-text {
    color: var(--secondary-color);
    margin-bottom: 2rem;
    max-width: 350px;
}
.contact__info .footer__list {
    text-align: left;
}
.contact__info .footer__list--contacts li {
    justify-content: flex-start;
}

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

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

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

.form-input {
    padding: 0.8rem 1rem;
    font-size: 1rem;
    font-family: var(--font-primary);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form-input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(5, 150, 105, 0.1);
}

.form-input.input-error {
    border-color: #EF4444; /* Red for error */
}

.form-group--checkbox {
    flex-direction: row;
    align-items: center;
    gap: 0.75rem;
    margin-top: 0.5rem;
}

.form-group--checkbox input[type="checkbox"] {
    width: 1.15em;
    height: 1.15em;
    accent-color: var(--primary-color);
}

.form-group--checkbox label {
    margin: 0;
    font-size: 0.9rem;
    font-weight: 400;
    color: var(--secondary-color);
}

.form-group--checkbox a {
    color: var(--primary-color);
    text-decoration: underline;
}

.form-error {
    color: #EF4444;
    font-size: 0.85rem;
    margin-top: 0.5rem;
}

.contact__button {
    margin-top: 1rem;
}

.form-success {
    text-align: center;
    padding: 3rem;
    border: 1px dashed var(--border-color);
    border-radius: 12px;
}

.form-success__icon {
    width: 60px;
    height: 60px;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.form-success__title {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.form-success__text {
    color: var(--secondary-color);
    font-size: 1.1rem;
}

/* ------------------- */
/* CONTACT RESPONSIVE  */
/* ------------------- */
@media (max-width: 992px) {
    .contact__wrapper {
        grid-template-columns: 1fr;
        gap: 2.5rem;
        padding: 2rem;
    }
}
@media (max-width: 768px) {
    .contact {
        padding: 4rem 0;
    }
}

/* ------------------- */
/* COOKIE POPUP        */
/* ------------------- */
.cookie-popup {
    position: fixed;
    bottom: 1.5rem;
    left: 1.5rem;
    right: 1.5rem;
    max-width: 600px; /* Limits width on large screens */
    margin: 0 auto;
    
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1.5rem;
    
    background-color: rgba(26, 29, 33, 0.9);
    color: #FDFEFF;
    padding: 1rem 1.5rem;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    z-index: 200;

    /* Animation */
    transform: translateY(200%);
    transition: transform 0.5s cubic-bezier(0.25, 0.8, 0.25, 1);
}

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

.cookie-popup[hidden] {
    display: flex; /* Override default hidden behavior for animation */
}

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

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

.cookie-popup__button {
    flex-shrink: 0; /* Prevents button from shrinking */
    padding: 0.6rem 1.2rem;
    background-color: var(--primary-color);
    border: none;
}
.cookie-popup__button:hover {
    background-color: #047857;
}

/* Responsive for Cookie Popup */
@media (max-width: 576px) {
    .cookie-popup {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
        bottom: 1rem;
        left: 1rem;
        right: 1rem;
    }
    .cookie-popup__button {
        width: 100%;
    }
}
/* ------------------- */
/* STYLES FOR STATIC PAGES (privacy, terms, etc.) */
/* ------------------- */
.pages {
    padding: 4rem 0;
}

.pages h1 {
    font-size: 2.8rem;
    margin-bottom: 2rem;
    text-align: center;
}

.pages h2 {
    font-family: var(--font-headings);
    font-size: 1.8rem;
    margin-top: 3rem;
    margin-bottom: 1rem;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 0.5rem;
}

.pages p, 
.pages li {
    font-size: 1.1rem;
    line-height: 1.7;
    color: var(--secondary-color);
}

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

.pages ul {
    list-style-type: disc;
    padding-left: 1.5rem; /* Indent for bullets */
    margin-bottom: 1.5rem;
}

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

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

.pages a:hover {
    color: #047857;
}

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

/* Responsive for Static Pages */
@media (max-width: 768px) {
    .pages {
        padding: 3rem 0;
    }
    .pages h1 {
        font-size: 2.2rem;
    }
    .pages h2 {
        font-size: 1.5rem;
    }
    .pages p, .pages li {
        font-size: 1rem;
    }
}