:root {
    /* Colors */
    --color-background: rgba(249, 249, 249, 1);
    --color-text: rgba(26, 26, 26, 1);
    --color-text-light: rgba(245, 245, 245, 1);
    --color-dark: rgba(26, 26, 26, 1);
    --color-hover: rgba(126, 144, 168, 1);
    

    /* Typography */
    --font-head: 'Bricolage Grotesque', serif;
    --font-text: 'Quicksand', sans-serif;
    --font-logo: 'Urbanist', sans-serif;


    /* Font sizes */
    --fs-body: 1rem;
    --fs-h1: 3rem;
    --fs-h2: 2rem;
    --fs-h3: 1.6rem;
    --fs-h1-desktop: 3rem;
    --fs-h2-desktop: 2.8rem;

    /* Border radius */
    --br-small: 24px;
    --br-large: 40px;

    /* Spacing */
    --space-xs: 0.5rem;
    --space-sm: 1rem;
    --space-md: 2rem;
    --space-lg: 4rem;
    --space-xl: 8rem;
    --space-xxl: 11rem;

    /* Container */
    --container-width: 1200px;

    /* Transition */
    --transition: 250ms ease;
}

/* ========================================
   RESET
======================================== */

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

/* ========================================
   BASE
======================================== */

html {
  scroll-behavior: smooth;

}

body {
  font-family: var(--font-text);
  color: var(--color-text);
  background: linear-gradient(
            rgba(181, 186, 221, 1) 0%,
            rgba(181, 186, 221, 1) 20%,
            rgba(245, 245, 245, 1) 20%,
            rgba(245, 245, 245, 1) 40%,
            rgba(245, 245, 245, 1) 80%,
            rgba(30, 30, 30, 1) 81%,
            rgba(30, 30, 30, 1) 100%
        );
  line-height: 1.6;
  
  overflow-x: hidden;
}

html,
body {
    width: 100%;
    max-width: 100%;
    overflow-x: clip;
}

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

a {
  color: inherit;
  text-decoration: none;
}

ul {
  list-style: none;
}

button,
input,
textarea {
  font: inherit;
}

h1,
h2 {
    font-family: var(--font-head);
}

h3 {
    font-weight: 600;
}

p {
    line-height: 1.3rem;
}


/* ========================================
   LAYOUT
======================================== */


.section-content {
    max-width: min(100%, 55ch);
    margin-inline: auto;
}

@media (min-width: 900px) {
    #content {
    padding-inline: 10rem;
}
}

#content {
    padding-top: 4rem;
    margin-top: 4rem;
}

/* ==================================
   HEADER
================================== */

.header {
    position: absolute;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 100;
    top: 0;
    width: 100%;
}

/* ==================================
   NAV
================================== */

.topnav {
    position: fixed;
    top: 1rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1000;

    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;

    list-style: none;
    gap: 0.5rem;

    background: rgba(245, 245, 245, .4);
    backdrop-filter: blur(6px);
    border: 1px solid rgba(245, 245, 245, 1);
    border-radius: 60px;
    padding: .2rem;
}

.topnav a {
    font-family: 'Bricolage Grotesque', sans-serif;
    font-size: 1rem;
    font-weight: 600;
    color: #1e1e1e;
    border-radius: 34px;
    padding: .4rem .8rem;
    background-color: transparent;
    transition:
        background-color .3s ease-out,
        transform .3s ease-out;
}

.topnav a:hover {
    background: rgba(30, 30, 30, 1);
    color: rgba(245, 245, 245, 1);
    
}

/*=======================
    Loader
=======================*/

.loader {
    position: fixed;
    inset: 0;
    z-index: 99999;

    display: flex;
    align-items: center;
    justify-content: center;

    background: #f5f5f5;

    opacity: 1;
    visibility: visible;

    transition: opacity .5s ease, visibility .5s ease;
}

.loader-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
}

.loader img {
    width: 100px;
    height: 100px;
}


/* loading bar */

.loading-bar {
    width: 80px;
    height: 5px;
    border-radius: 60px;
    background: #d8d8d8;
    overflow: hidden;
}

.loading-progress {
    width: 0;
    height: 100%;

    background: #1e1e1e;

    animation: loading 3s ease forwards;
}

@keyframes loading {
    from {
        width: 0;
    }

    to {
        width: 100%;
    }
}


/* loader eltűnése */

.loader-hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

/*========================
    Hero
============================*/


.hero {
    position: relative;
    width: 100%;
    height: 110svh;
    overflow: hidden; }

.hero-video {
    position: absolute;
    height: 160%;
    width: auto;
    max-width: none;
    top: -130px;
    left: 40%;
    transform: translateX(-50%);
    z-index: 0;
    background: #9c2530;
}

@media (min-width: 900px) {
    .hero-video {
        top: -280px;
        left: 65%;
        height: 180%;
    }
}
@media (min-width: 1440px) {
    .hero-video {
        top: -450px;
        left: 60%;
        height: 180%;
    }
}
.hero-content {
    position: relative;
    top: 0;
    z-index: 2;

    height: 100svh;
    overflow: hidden;
    padding-inline: 2.4rem;
}

.heading {
    position: relative;
    z-index: 2;

    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-start;

    gap: 1.6rem;
    padding-top: 1rem;
}

.heading h1 {
    max-width: 13ch;
    letter-spacing: -1px;
    line-height: 2rem;
    font-size: 2.6rem;
    padding-bottom: 3rem;
}

.heading p {
    max-width: 35ch;
}

.heading .pricing-link {
    background-color: #1e1e1e;
    color: #f5f5f5;
    font-family: 'Bricolage Grotesque', sans-serif;
    font-weight: 600;
    font-size: 1.2rem;
    text-decoration: none;
    padding: 6px;
    width: 300px;
    border-radius: 40px;
    text-align: center;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
    border: none;
    transition: 0.3s;
}
.heading .workflow-link {
    text-decoration: underline;
    transition: 0.3s;
    transform: translateY(-2px);
}

.heading .pricing-link:hover {
    color: #1e1e1e;
    background: #f5f5f5;
}
.heading .workflow-link:hover {
    color: #7D8CA6;

}

@media (min-width: 900px) {



    .heading {
        width: 100%;
        gap: 2rem;
        margin-top: 0;
    }

    .heading h1 {
        font-size: 3rem;
        line-height: 2.5rem;
        padding-bottom: 3rem;
    }
}

@media (min-width: 1440px) {


    .heading {
        width: 100%;
        gap: 2rem;
        margin-top: 0;
    }

    .heading h1 {
        font-size: 5rem;
        line-height: 4rem;
        padding-bottom: 6rem;
    }
}
/*

@media (min-width: 900px) {
    .hero-flower {
        left: 80%;
        width: 80vw;
    }
}
@media (min-width: 1440px) {
    .hero-flower {
        left: 80%;
        bottom: 0;
        width: 110vw;
    }
}
*/
/*==================================
    portfolio
==================================*/

.portfolio {
    background: #f5f5f5;
    border-radius: 60px 60px 0 0;
    margin-top: -140px;
}

.portfolio-content {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    gap: 2rem;
    width: 100%;
    padding: 4rem 2rem 4rem 2rem;
}

.portfolio-heading {
    flex: 0 0 300px;
    margin-top: 3rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
}

.portfolio-image {
    flex: 1 1 450px;
    min-width: 0;
}

.portfolio-image img {
    display: block;
    width: 100%;
    height: auto;
}

.portfolio h2 {
    font-size: 1.6rem;
    letter-spacing: -1px;
    line-height: 1.6rem;
    max-width: 14ch;
    color: #1e1e1e;
    justify-self: flex-start;
}

@media (min-width: 900px) {
    .portfolio h2 {
        font-size: 2rem;
        line-height: 2rem;
    }
}

@media (min-width: 1440px) {
    .portfolio {
        margin-top: -300px;
    }
}
.portfolio-btn button {
    background-color: #1e1e1e;
    color: #f5f5f5;
    font-family: 'Bricolage Grotesque', sans-serif;
    font-weight: 600;
    font-size: 1.2rem;
    text-decoration: none;
    padding: 6px;
    width: 300px;
    border-radius: 40px;
    text-align: center;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
    border: none;
    margin-top: 2rem;
    margin-bottom: var(--space-lg);
}


/*===========================
    Pricing
============================*/


.pricing-heading {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    gap: 2rem;
    padding: 0 2rem 4rem 2rem;
}
.pricing h2 {
    font-size: 1.6rem;
    letter-spacing: -1px;
    line-height: 1.6rem;
    max-width: 18ch;
    color: #1e1e1e;
    justify-self: flex-start;
}
@media (min-width: 900px) {
    .pricing-heading {
        padding: 0;
    }
    .pricing h2 {
        font-size: 2rem;
        line-height: 2rem;
    }
}

.pricing p {
    max-width: 45ch;
}

.pricing .cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
    justify-content: center;
    align-items: stretch;
    gap: 3rem;
    margin: 2rem;
    height: max-content;
    padding-bottom: 4rem;
}

@media (min-width: 900px) {
    .pricing .cards {
        margin: 3rem 0 3rem 0;
    }
}

.bemutatkozo {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: flex-start;
    gap: 0.5rem;
    padding: 3rem 2rem 3rem 2rem;
    background: linear-gradient(
        -135deg,
        rgba(245, 245, 245, 1),
        rgba(181, 186, 221, 1)
    );
    border: 1px solid #d9d9d9;
    border-radius: 60px;
}

.uzleti {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: flex-start;
    gap: 0.5rem;
    padding: 3rem 2rem 3rem 2rem;
    background: linear-gradient(
        135deg,
        rgba(245, 245, 245, 1),
        rgba(181, 186, 221, 1)
    );
    border: 1px solid #d9d9d9;
    border-radius: 60px;
}

.card-heading {
    font-family: 'Bricolage Grotesque', sans-serif;
    font-size: 1.6rem;
    font-weight: 700;
    line-height: 1.8rem;
    letter-spacing: -1px;
}

.cards p {
    margin-top: 1.6rem;
}

.pricing-btn {
    background-color: #1e1e1e;
    color: #f5f5f5;
    font-family: 'Bricolage Grotesque', sans-serif;
    font-weight: 600;
    font-size: 1.2rem;
    text-decoration: none;
    padding: 6px;
    width: 280px;
    border-radius: 40px;
    text-align: center;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
    border: none;
    align-self: center;
    margin-top: 2rem;
}

@media (min-width: 900px) {
    .bemutatkozo,
    .uzleti {
        padding: 3rem 4rem 3rem 4rem;
    }
    .pricing-btn {
        width: 400px;
    }
}

.pricing-span {
    font-size: 1rem;
    opacity: 0.5;
    padding: 0.7rem;
}
/*============================
    Workflow
=============================*/

.workflow {
    background: #f5f5f5;
    border-radius: 60px 60px 0 0;
    margin-top: -60px;

}

.workflow-content {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    gap: 2rem;

    width: 100%;
    padding: 4rem 2rem;
}

.workflow-heading {
    /* Ez kapjon több helyet */
    flex: 1 1 450px;
    min-width: 0;

    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 2rem;
}

.workflow-heading-text {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}
.more-content-inner p {
    max-width: 55ch;
    margin-bottom: 1.5rem;
}

.workflow-image {
    /* Ez kapjon kevesebb helyet */
    flex: 0 1 300px;
    min-width: 0;
    
    display: flex;
    justify-content: flex-end;
}

.workflow-image img {
    display: block;
    width: min(100%, 270px);
    height: auto;
}

.workflow h2 {
    font-size: 1.6rem;
    letter-spacing: -1px;
    line-height: 1.6rem;
    max-width: 14ch;
    color: #1e1e1e;
    justify-self: flex-start;
}

@media (min-width: 900px) {
    .workflow h2 {
        font-size: 2rem;
        line-height: 2rem;
    }
}

.more-btn {
    display: inline-block;
    color: #1e1e1e;
    background: none;
    border: none;
    padding: 0;
    font: inherit;
    text-decoration: underline;
    cursor: pointer;
}

.more-btn:hover {
    color: #7D8CA6;
    transition: 0.3s ease-in-out;
}

.more-content {
    display: grid;
    grid-template-rows: 0fr;
    opacity: 0;

    transition:
        grid-template-rows 0.5s ease,
        opacity 0.5s ease;
}

.more-content-inner {
    overflow: hidden;
    padding-top: 2rem;
}

.more-content.open {
    grid-template-rows: 1fr;
    opacity: 1;
}

@media (min-width: 900px) {
    .workflow-content {
        display: grid;
        grid-template-columns: 300px 1fr 300px;
        align-items: start;
        gap: 2rem;
    }

    .workflow-heading {
        grid-column: 1;
        transform: translateX(200px);
        transition: transform 0.6s ease;
    }

    .more-content {
        display: block;
        grid-column: 2;
        min-width: 0;

        opacity: 0;
        visibility: hidden;
        transform: translateX(-30px);

        transition:
            opacity 0.5s ease,
            transform 0.6s ease,
            visibility 0.6s;
    }

    .more-content.open {
        opacity: 1;
        visibility: visible;
        transform: translateX(0);
    }

    .more-content-inner {
        padding-top: 0;
    }

    .workflow-image {
        grid-column: 3;
        transform: translateX(-200px);
        transition: transform 0.6s ease;
    }

    .workflow-content:has(.more-content.open) .workflow-heading {
        transform: translateX(0);
    }

    .workflow-content:has(.more-content.open) .workflow-image {
        transform: translateX(0);
    }
}
/*==========================
    About
=========================*/

.about-content {
    padding: 4rem 2rem;
}

.about-contents {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}
.about h2 {
    font-size: 1.6rem;
    letter-spacing: -1px;
    line-height: 1.6rem;
    max-width: 14ch;
    margin-bottom: 2rem;
}

@media (min-width: 900px) {
    .about h2 {
        font-size: 2rem;
        line-height: 2rem;
    }
}
.about .about-text p{
    max-width: 55ch;
    margin-bottom: 1.5rem;
}

.about-image {
    height: max-content;
    max-width: auto;
}

.about-image img {
    border-radius: 40px;
}


/*================================
    Contact
===============================*/

.contact-content {
    background: #1e1e1e;
    border-radius: 60px 60px 0 0;
    padding: 4rem 2rem;
}

.contact-contents {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
    gap: 4rem;
}
.contact-content h2 {
    color: #f5f5f5;
    font-size: 1.6rem;
    letter-spacing: -1px;
    line-height: 1.6rem;
    max-width: 18ch;
    margin-bottom: 2rem;
}

@media (min-width: 900px) {
    .contact-content h2 {
        font-size: 2rem;
        line-height: 2rem;
    }
}

.contact p {
    color: #f5f5f5;
    max-width: 45ch;
    margin-bottom: 1.5rem;
}

.contact .container {
    width: 100%;
    box-sizing: border-box;
}

.contact-form {
    width: 100%;
    max-width: 500px;
}

.form {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: .5rem;
}

.form-group {
    width: 100%;
}

.form-group input,
.form-group textarea {
    display: block;
    width: 100%;
    box-sizing: border-box;

    padding: 14px 18px;
    border: 2px solid rgba(181, 186, 221, .5);
    border-radius: 18px;
    font: inherit;
    outline: none;
}

.form-group textarea {
    min-height: 150px;
    border-radius: 18px;
    resize: vertical;
}

.form button {
    width: 100%;
    background-color: rgba(181, 186, 221, 1);
    color: #1e1e1e;
    font-family: 'Bricolage Grotesque', sans-serif;
    font-weight: 600;
    font-size: 1.2rem;
    text-decoration: none;
    padding: 6px;
    border-radius: 40px;
    text-align: center;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
    border: none;
    align-self: center;
    margin-top: 1rem;
}

/*=======================
    Footer
===========================*/

footer #content {
    margin-top: 0;
    
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4rem;
    background: #1e1e1e;
    color: #f5f5f5;
    padding: 4rem 1rem 2rem 1em;
}

footer .section-content p {
    max-width: 35ch;
    
}

.footer-logo {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    gap: .5rem;
    width: 100%;
}

.luna-logo {
    display: block;
    height: 3rem;
    width: 3rem;
    color: #f5f5f5;
    flex-shrink: 0;
}
.footer-logo h1 {
    font-family: 'Bricolage Grotesque', sans-serif;
    font-size: 4rem;
    line-height: 1;
    margin: 0;
}

@media (min-width: 900px) {
    .luna-logo {
        height: 8rem;
        width: 8rem;
    }
    .footer-logo h1{
        font-size: 11rem;
    }
}

.navigation {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    width: 90%;
    gap: 4rem;
}

.footer-nav {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: start;
    width: 100%;
    gap: .5rem;
}

.footer-legal {
    display: flex;
    flex-direction: row;
    justify-content: start;
    align-items: center;
    width: 100%;
    gap: 1.2rem;
}


/*===========================
    Scroll
============================*/

.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition:
        opacity .9s ease,
        transform .9s cubic-bezier(.22,.61,.36,1);
}

.reveal.show {
    opacity: 1;
    transform: translateY(0);
}

/*=========================
    Form
=======================*/

.website-field {
    position: absolute !important;
    left: -9999px !important;
    width: 1px !important;
    height: 1px !important;
    overflow: hidden !important;
    opacity: 0 !important;
    pointer-events: none !important;
}

.form-status {
    padding: 10px;
    margin-top: 15px;
    border-radius: 6px;
    font-weight: 500;
}

.form-status.success {
    background: rgba(40, 167, 69, 0.1);
    color: #1f6f36;
}

.form-status.error {
    background: rgba(220, 53, 69, 0.1);
    color: #9c2530;
}

.form-btn:disabled {
    opacity: 0.65;
    cursor: not-allowed;
}