/* GLOBAL SETTINGS */
:root {
    --font-primary: 'Inter', sans-serif;
    --font-headings: 'Roboto Mono', monospace;
    --color-background: #F4F7F9;
    --color-text: #333745;
    --color-primary: #2D3250;
    --color-accent: #FFC94A;
    --color-footer-text: #EAEAEA;
}

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

html {
    scroll-behavior: smooth;
}

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

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

a {
    color: inherit;
    text-decoration: none;
    transition: color 0.3s ease;
}

ul {
    list-style: none;
}

h1, h2, h3 {
    font-family: var(--font-headings);
    font-weight: 500;
}

/* HEADER */
.header {
    background-color: #FFFFFF;
    padding: 20px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    border-bottom: 1px solid #e0e0e0;
}

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

.header__logo {
    font-family: var(--font-headings);
    font-size: 24px;
    font-weight: 500;
    color: var(--color-primary);
}

.header__nav-list {
    display: flex;
    gap: 30px;
}

.header__nav-link {
    font-size: 16px;
    font-weight: 500;
    position: relative;
    padding-bottom: 5px;
}

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

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

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

/* FOOTER */
.footer {
    background-color: var(--color-primary);
    color: var(--color-footer-text);
    padding: 60px 0 0;
}

.footer__container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer__logo {
    font-family: var(--font-headings);
    font-size: 28px;
    display: block;
    margin-bottom: 15px;
    color: var(--color-accent);
}

.footer__tagline {
    font-size: 14px;
    line-height: 1.5;
    opacity: 0.8;
}

.footer__heading {
    font-size: 18px;
    margin-bottom: 20px;
    color: #FFFFFF;
}

.footer__list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer__list--contacts li {
    display: flex;
    align-items: center;
    gap: 10px;
}

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

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

.footer__bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 20px 0;
    text-align: center;
    font-size: 14px;
    opacity: 0.7;
}

/* MOBILE ADAPTATION */
@media (max-width: 768px) {
    .header__nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: #FFFFFF;
        box-shadow: 0 10px 10px rgba(0,0,0,0.05);
    }
    
    .header__nav.is-active {
        display: block;
    }

    .header__nav-list {
        flex-direction: column;
        padding: 20px;
        gap: 0;
    }
    
    .header__nav-link {
        display: block;
        padding: 15px 0;
        text-align: center;
    }
    
    .header__nav-link:hover::after {
        width: 0;
    }
    
    .header__nav-link:hover {
        color: var(--color-accent);
    }

    .header__burger {
        display: block;
    }
}

/* HERO SECTION */
.hero {
    padding: 80px 0;
    min-height: calc(100vh - 85px); /* Full height minus header */
    display: flex;
    align-items: center;
}

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

.hero__content {
    animation: fadeIn 1s ease-out forwards;
}

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

.hero__title {
    font-size: 48px;
    line-height: 1.2;
    margin-bottom: 20px;
    color: var(--color-primary);
    min-height: 115px; /* Reserve space for two lines */
}

/* Blinking cursor effect for typewriter */
.hero__title::after,
.hero__prompt-text::after {
    content: '|';
    animation: blink 1s step-end infinite;
    color: var(--color-accent);
    font-weight: 700;
}

@keyframes blink {
    from, to { opacity: 1; }
    50% { opacity: 0; }
}

.hero__subtitle {
    font-size: 18px;
    margin-bottom: 30px;
    max-width: 500px;
    opacity: 0.9;
}

.button {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background-color: var(--color-accent);
    color: var(--color-primary);
    font-family: var(--font-headings);
    font-size: 16px;
    font-weight: 500;
    padding: 12px 24px;
    border-radius: 8px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.button:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.hero__animation {
    perspective: 1000px;
    animation: fadeIn 1s 0.5s ease-out forwards;
    opacity: 0;
}

.hero__prompt-window {
    background-color: #FFFFFF;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    transform: rotateY(-10deg) rotateX(5deg);
    transition: transform 0.5s ease;
}

.hero__prompt-window:hover {
    transform: rotateY(0) rotateX(0);
}

.hero__prompt-header {
    display: flex;
    gap: 8px;
    padding: 12px;
    border-bottom: 1px solid #e0e0e0;
}

.hero__prompt-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.hero__prompt-body {
    padding: 20px;
    display: flex;
    align-items: flex-start;
    gap: 12px;
    min-height: 80px;
}

.hero__prompt-icon {
    color: var(--color-accent);
    flex-shrink: 0;
    margin-top: 4px;
}

.hero__prompt-text {
    font-family: var(--font-headings);
    color: var(--color-primary);
    font-size: 16px;
}

/* ADAPTATION FOR HERO */
@media (max-width: 992px) {
    .hero__container {
        grid-template-columns: 1fr;
        text-align: center;
    }
    .hero__subtitle {
        margin-left: auto;
        margin-right: auto;
    }
    .hero__animation {
        margin-top: 40px;
    }
    .hero__prompt-window {
        transform: rotateY(0) rotateX(0);
    }
}

@media (max-width: 768px) {
    .hero {
        padding: 40px 0;
    }
    .hero__title {
        font-size: 36px;
        min-height: 88px; /* Adjust space for smaller font */
    }
    .hero__subtitle {
        font-size: 16px;
    }
}
/* REUSABLE SECTION HEADER */
.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-header__title {
    font-size: 36px;
    color: var(--color-primary);
    margin-bottom: 15px;
}

.section-header__subtitle {
    font-size: 18px;
    max-width: 700px;
    margin: 0 auto;
    opacity: 0.8;
}

/* PRACTICES SECTION */
.practices {
    padding: 80px 0;
    background-color: #FFFFFF; /* A slight contrast to the body bg */
}

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

.practices__card {
    background-color: var(--color-background);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.practices__card:hover {
    transform: translateY(-8px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}

.practices__card-image-wrapper {
    height: 200px;
    background-color: #e0e0e0; /* Placeholder color */
}

.practices__card-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.practices__card-content {
    padding: 25px;
}

.practices__card-icon-wrapper {
    width: 50px;
    height: 50px;
    background-color: var(--color-accent);
    color: var(--color-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

.practices__card-icon-wrapper i {
    width: 28px;
    height: 28px;
}

.practices__card-title {
    font-size: 22px;
    margin-bottom: 10px;
    color: var(--color-primary);
}

.practices__card-description {
    font-size: 15px;
    line-height: 1.6;
}

/* ADAPTATION FOR SECTION HEADER */
@media (max-width: 768px) {
    .section-header__title {
        font-size: 30px;
    }
    .section-header__subtitle {
        font-size: 16px;
    }
    .practices {
        padding: 60px 0;
    }
}

/* TOOLS SECTION */
.tools {
    padding: 80px 0;
}

.tools__layout {
    display: grid;
    grid-template-columns: 250px 1fr;
    gap: 40px;
    background-color: #FFFFFF;
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 5px 25px rgba(0,0,0,0.05);
}

.tools__list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.tools__list-item {
    display: flex;
    align-items: center;
    gap: 15px;
    width: 100%;
    padding: 15px;
    font-family: var(--font-headings);
    font-size: 16px;
    text-align: left;
    background-color: transparent;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    cursor: pointer;
    transition: background-color 0.3s ease, color 0.3s ease;
    color: var(--color-primary);
}

.tools__list-item:hover {
    background-color: #f0f0f0;
}

.tools__list-item.is-active {
    background-color: var(--color-primary);
    color: #FFFFFF;
    border-color: var(--color-primary);
}

.tools__content-wrapper {
    position: relative;
    min-height: 350px;
}

.tools__content-panel {
    display: none;
    grid-template-columns: 250px 1fr;
    gap: 30px;
    align-items: center;
    animation: fadeInPanel 0.5s ease;
}

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

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

.tools__panel-image {
    width: 100%;
    height: 250px;
    border-radius: 8px;
    overflow: hidden;
    background-color: #f0f0f0;
}

.tools__panel-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.tools__panel-info h3 {
    font-size: 28px;
    color: var(--color-primary);
    margin-bottom: 15px;
}

.tools__panel-info p {
    margin-bottom: 20px;
}

.tools__features-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 30px;
}

.tools__features-list li {
    display: flex;
    align-items: center;
    gap: 10px;
}

.tools__features-list i {
    color: var(--color-accent);
}

/* ADAPTATION FOR TOOLS */
@media (max-width: 992px) {
    .tools__layout {
        grid-template-columns: 1fr;
        padding: 20px;
    }
    .tools__list {
        flex-direction: row;
        overflow-x: auto;
        padding-bottom: 10px; /* For scrollbar */
    }
    .tools__list-item {
        flex-shrink: 0;
    }
}

@media (max-width: 768px) {
    .tools__content-panel {
        grid-template-columns: 1fr;
        text-align: center;
    }
    .tools__panel-image {
        margin: 0 auto 20px;
        width: 250px;
    }
    .tools__features-list {
        display: inline-flex;
        flex-direction: column;
        text-align: left;
    }
}

/* SHOWCASE SECTION */
.showcase {
    padding: 80px 0;
    background-color: #FFFFFF;
}

.showcase__part {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    margin-bottom: 40px;
}

.showcase__part-title {
    font-size: 28px;
    color: var(--color-primary);
    margin-bottom: 20px;
}

.showcase__text-content p {
    margin-bottom: 25px;
}

.showcase__features {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.showcase__features li {
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 500;
}

.showcase__features i {
    color: var(--color-accent);
}

/* Creative Part Gallery */
.showcase__gallery {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: repeat(2, 1fr);
    gap: 15px;
    height: 350px;
}

.showcase__gallery-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}
.showcase__gallery-img:hover {
    transform: scale(1.05);
}

.showcase__gallery-img--1 {
    grid-column: 1 / 3;
    grid-row: 1 / 3;
}
.showcase__gallery-img--2 {
    grid-column: 3 / 4;
    grid-row: 1 / 2;
}
.showcase__gallery-img--3 {
    grid-column: 3 / 4;
    grid-row: 2 / 3;
}

/* Daily Life Part Examples */
.showcase__examples {
    position: relative;
    height: 350px;
}

.showcase__example-card {
    background: var(--color-background);
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    position: absolute;
    width: 70%;
    transition: transform 0.3s ease;
}
.showcase__example-card:hover {
    transform: rotate(2deg) scale(1.02);
}

.showcase__example-card--plan {
    top: 0;
    left: 0;
    transform: rotate(-5deg);
}

.showcase__example-card--plan:hover {
    transform: rotate(-2deg) scale(1.02);
}

.showcase__example-card {
    bottom: 0;
    right: 0;
    transform: rotate(3deg);
    background-color: var(--color-accent);
    color: var(--color-primary);
}

.showcase__card-title {
    font-family: var(--font-primary);
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.showcase__card-body {
    font-size: 14px;
    line-height: 1.5;
}

/* Reversed layout for the second part */
.showcase__part--reversed .showcase__text-content {
    order: 2;
}
.showcase__part--reversed .showcase__visual-content {
    order: 1;
}

.showcase__divider {
    height: 1px;
    background: #e0e0e0;
    margin: 80px auto;
    width: 80%;
}


/* ADAPTATION FOR SHOWCASE */
@media (max-width: 992px) {
    .showcase__part {
        grid-template-columns: 1fr;
    }
     .showcase__part--reversed .showcase__text-content,
     .showcase__part--reversed .showcase__visual-content {
        order: initial;
    }
    .showcase__text-content {
        text-align: center;
    }
    .showcase__features {
        display: inline-flex;
    }
    .showcase__visual-content {
        margin-top: 40px;
    }
}

/* CONTACT SECTION */
.contact {
    padding: 80px 0;
}

.contact__wrapper {
    max-width: 600px;
    margin: 0 auto;
    background: #FFFFFF;
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 5px 25px rgba(0,0,0,0.05);
}

.contact__form-group {
    margin-bottom: 20px;
    position: relative;
}

.contact__form-label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
}

.contact__form-input {
    width: 100%;
    padding: 12px 15px;
    font-size: 16px;
    font-family: var(--font-primary);
    border: 1px solid #ccc;
    border-radius: 8px;
    transition: border-color 0.3s ease;
}

.contact__form-input:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(45, 50, 80, 0.1);
}

.contact__form-input.is-invalid {
    border-color: #e74c3c;
}

.contact__error-message {
    color: #e74c3c;
    font-size: 13px;
    display: block;
    margin-top: 5px;
    height: 15px;
}

#captcha-label {
    display: inline-block;
    margin-right: 10px;
}

.contact__form-group--checkbox {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-top: 25px;
    margin-bottom: 25px;
}

.contact__form-group--checkbox input {
    margin-top: 4px;
    flex-shrink: 0;
}

.contact__form-group--checkbox label {
    font-size: 14px;
    line-height: 1.5;
}

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

.contact__submit-button {
    width: 100%;
    padding: 15px;
    font-size: 18px;
}

.contact__success-message {
    display: none; /* Hidden by default */
    text-align: center;
    animation: fadeInPanel 0.5s ease;
}

.contact__success-icon {
    width: 80px;
    height: 80px;
    background-color: #27c93f;
    color: #FFFFFF;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

.contact__success-icon i {
    width: 40px;
    height: 40px;
}

.contact__success-message h3 {
    font-size: 28px;
    color: var(--color-primary);
    margin-bottom: 10px;
}

/* COOKIE POPUP */
.cookie-popup {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: var(--color-primary);
    color: var(--color-footer-text);
    padding: 20px 0;
    z-index: 1001;
    transform: translateY(100%);
    transition: transform 0.5s ease-in-out;
    display: none; /* Hidden by default, shown by JS */
}

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

.cookie-popup__container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
}

.cookie-popup__text {
    font-size: 14px;
}

.cookie-popup__text a {
    text-decoration: underline;
    font-weight: 500;
}

.cookie-popup__text a:hover {
    color: var(--color-accent);
}

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

@media (max-width: 768px) {
    .cookie-popup__container {
        flex-direction: column;
        text-align: center;
    }
}

/* LEGAL & TEXT PAGES STYLES */
.pages {
    padding: 80px 0;
    background-color: #FFFFFF;
}

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

.pages h1 {
    font-size: 42px;
    margin-bottom: 30px;
    color: var(--color-primary);
}

.pages h2 {
    font-size: 28px;
    margin-top: 40px;
    margin-bottom: 20px;
    color: var(--color-primary);
}

.pages p {
    font-size: 16px;
    line-height: 1.8;
    margin-bottom: 20px;
}

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

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

.pages ul, .pages ol {
    margin-bottom: 20px;
    padding-left: 25px;
}

.pages li {
    margin-bottom: 10px;
    line-height: 1.8;
}

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