html, body {
  overscroll-behavior-y: none;
  overscroll-behavior-x: none;
  margin: 0;
  padding: 0;
  scroll-behavior: smooth;
  overflow: hidden;
}

body {
    position: relative;
    font-family: var(--main-font, Arial, sans-serif);
    color: var(--color-text-primary);
}
header {
    position: fixed;
    z-index: 1000;
    width: 100%;
    height: auto;
    top: 0;
    left: 0;
    background-color: var(--color-bg-primary);
    display: flex;
    justify-content: center;
    align-items: center;
}

#content > div {
  scroll-snap-align: start;
}

.fixed-header {
    width: 100%;
    max-width: 1200px;
    text-align: center;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    margin: 0px 15px;
    line-height: 60px;
}

.fixed-header h2 {
    color: var(--color-text-logo);
    font-family: var(--heading-font, Arial, sans-serif);
    font-weight: var(--heading-font-weight, 200);
    margin: 0;
}

.fixed-header nav{
    display: flex;
    flex-direction: row;
    align-items: center;
    height: 100%;
}

.fixed-header nav a{
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 15px;
    text-decoration: none;
    font-weight: 600;
    text-size-adjust: 100%;
    color: var(--color-text-nav);
}

.fixed-header nav a::before {
    position: absolute;
    content: '';
    bottom: 0;
    left: 0;
    right: 0;
    width: 0;
    height: 5px;
    margin: auto;
    background-color: var(--color-accent-primary);
    background-image: var(--color-accent-gradient);
    transition: all 0.25s cubic-bezier(0.37, 0.31, 0.2, 0.85);
    transition-delay: 0s;
}

.fixed-header nav a:hover::before {
    transition-delay: 0s;
}

.fixed-header nav a:hover::before,
.fixed-header nav a.active::before {
    width: 100%;
}

.main-section, .blocks-section, .text-image-section, .text-section, .contact-section {
    position: relative;
    min-height: 100vh;
    min-height: 100dvh;
    display: flex;
    justify-content: center;
    align-items: center;
    box-sizing: border-box;
}

.main-section, .text-image-section,  .contact-section {
    padding: min(2rem, 2vw);
}

.blocks-section, .text-section {
    padding: min(2rem, 2vw);
    padding-top: calc(60px + min(2rem, 2vw));
}

.main-section .content-wrapper {
    position: relative;
    z-index: 1;
    max-width: 1100px;
    width: 100%;
    text-align: left;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.main-section h1 {
    font-size: 2.5em;
    color: var(--color-text-primary);
    position: relative;
    margin: 0;
}

.main-section p {
    font-size: 2em;
    color: var(--color-text-secondary);
}

.blocks-section {
    flex-direction: column;
}

.blocks-section .intro{
    z-index: 1;
    text-align: left;
    color: var(--color-text-primary);
    margin: 2rem 0;
    padding: 1rem;
    border-radius: 5px;
    color: #ffffff;
    font-size: 1.1rem;
    line-height: 1.6;
    max-width: 1100px;
    margin-left: auto;
    margin-right: auto;
    font-weight: bold;
    opacity: 0;

}

.blocks-section .list {
    position: relative;
    z-index: 1;
    display: flex;
    flex-wrap: wrap;
    max-width: 1100px;
    width: 100%;
    justify-content: center;
    pointer-events: none;
    opacity: 0;
}

.blocks-section .block img,
.text-section .title-area,
.text-section .text-area {
  will-change: transform, opacity;
}


.blocks-section.active .intro,  .blocks-section.active .list{
    pointer-events: auto;
    animation: fadeListIn 1s ease forwards;
    animation-delay: 0.6s;
    transition: none;
}

.blocks-section.subtype-1 .intro {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    gap: 1rem;
    max-width: 1200px;
    width: 100%;
    margin: 2rem 0 5rem 0;
    padding: 1rem;
    text-align:left;
}

.blocks-section.subtype-1 .intro-item {
    display: flex;
    flex-direction: column;
    flex: 1;
}

.blocks-section.subtype-1 .intro-item h3 {
    font-size: 1.5rem;
    color: var(--color-text-primary);
    margin: 0 0 0.5rem 0;
}

.blocks-section.subtype-1 .intro-item p {
    font-size: 1rem;
    line-height: 1.5;
    color: var(--color-text-secondary);
    margin: 0;
    text-align:left;
}

.blocks-section.subtype-1 .block {
    flex: 0 0 calc(33.33% - 2rem);
    max-width: calc(33.33% - 2rem);
    padding: 0 2rem 0 0;
}

.blocks-section.subtype-1 .block img {
    height: 2.5em;
}

.blocks-section.subtype-1 .block h3 {
    font-size: 1.2em;
}

.blocks-section.subtype-1 .block p {
    font-size: 0.9rem;
}

.blocks-section.subtype-2 .intro {
    text-align: left;
    max-width: 1100px;
    width: 100%;
    margin: 2rem 0;
    padding: 1rem;
}

.blocks-section.subtype-2 .intro h3 {
    font-size: 1.5rem;
    color: var(--color-text-primary);
    margin: 0 0 0.5rem 0;
}

.blocks-section.subtype-2 .intro p {
    font-size: 1.1rem;
    line-height: 1.6;
    color: var(--color-text-secondary);
    margin: 0;

}

.blocks-section.subtype-2 .block {
    flex: 0 0 calc(50% - 3rem);
    max-width: calc(50% - 3rem);
    padding: 0 3rem 0 0;
}

.blocks-section.subtype-2 .block img {
    height: 4em;
}

.blocks-section.subtype-2 .block h3 {
    font-size: 1.5em;
}

.blocks-section.subtype-2 .block p {
    font-size: 1rem;
}

@media (max-width: 768px) {
    .blocks-section.subtype-1 .intro {
        flex-direction: column;
        gap: 1.5rem;
    }

    .blocks-section.subtype-1 .block {
        flex: 0 0 100%;
        max-width: 90%;
        padding: 0;
    }

    .blocks-section.subtype-2 .block {
        flex: 0 0 100%;
        max-width: 90%;
        padding: 0;
    }
}

@keyframes fadeListIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes jump {
    0%, 100% {
        transform: translateY(0);
    }
    20% {
        transform: translateY(-15px);
    }
    40% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-5px);
    }
}

.blocks-section .block {
    flex: 0 0 calc(50% - 3rem);
    max-width: calc(50% - 3rem);
    min-height: 150px;
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    text-align: left;
    padding: 0 3rem 0 0;
}

.blocks-section .block img {
    height: 4em;
    aspect-ratio: 1/1;
    margin-right: 1.5rem;
}

.blocks-section .block:hover img {
    animation: jump 0.6s ease-in-out infinite;
}

.blocks-section .block h3 {
    font-size: 1.5em;
    color: var(--color-text-primary);
    margin: 0;
}

.blocks-section .block p {
    font-size: 1rem;
    line-height: 1.6;
    color: var(--color-text-secondary);
}

.text-image-section .text-image-container {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: row;
    max-width: 1200px;
    width: 100%;
    align-items: center;
    gap: 2rem;
}

.text-image-section .text-area {
    flex: 1;
    max-width: calc(50% - 3rem);
    padding-right: 3rem;
    display: flex;
    flex-direction: column;
    text-align: left;
}

.text-image-section .text-area span, .text-section .title-area span, .contact-section .form-area span{
    font-size: 0.8rem;
    color: var(--color-accent-secondary);
    text-transform: uppercase;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.text-image-section .text-area h2, .text-section .title-area h2 {
    font-size: 3rem;
    color: var(--color-text-primary);
    margin: 0 0 1rem 0;
}

.text-section {
    position: relative;
    width: 100%;
}
.quote-container{
    position: absolute;
    top: calc(60px + 8rem);
    left: 0;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.quote {
    max-width: 1200px;
    width: 100%;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    z-index: 999;
    opacity: 0;
}

.quote blockquote {
    line-height: 30px;
    border-left: 2px solid var(--color-accent-primary);
    border-radius: 5px;
    margin: 0;
    padding: 0.5rem;
    font-style: italic;
    font-size: 1.3rem;
    color:var(--color-accent-primary);
}

.quote blockquote p {
    margin: 0;
}

blockquote p::before {
  content: "\201C";
}

blockquote p::after {
  content: "\201D";
}

.text-image-section .text-area p {
    font-size: 1.1rem;
    line-height: 1.6;
    font-weight: 400;
    margin:0;
    margin-bottom: 15px;
    color: var(--color-text-secondary);
}

.text-image-section img {
    flex: 1;
    max-width: 40%;
    height: auto;
    object-fit: cover;
    opacity: 0;
}

.text-image-section.active img {
    animation: fadeInRight 1s ease forwards;
    animation-delay: 0.6s;
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translate3d(100%,0,0)
    }

    to {
        opacity: 1;
        transform: none
    }
}
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translate3d(0,100%,0)
    }

    to {
        opacity: 1;
        transform: none;
    }
}

.text-section .text-container {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: row;
    max-width: 1200px;
    width: 100%;
    align-items: center;
    gap: 2rem;
}

.text-section .title-area {
    flex: 1;
    display: flex;
    flex-direction: column;
    text-align: left;
    justify-content: center;
    opacity: 0;
}
.text-section.active .title-area, .text-section.active .quote {
    animation: fadeInUp 1s ease forwards;
    animation-delay: 0.6s;
}

.text-section .text-area {
    display: flex;
    flex-direction: column;
    flex: 3;
    font-size: 1.1rem;
    line-height: 1.6;
    color: var(--color-text-secondary);
    font-family: var(--heading-font, Arial, sans-serif);
    margin: 0;
    opacity: 0;
}

.text-section.active .text-area {
    animation: fadeInUp 1s ease forwards;
    animation-delay: 0.8s;
}

.text-section .text-area p {
    margin: 0 0 15px 0;
    font-weight: 400;
}
.contact-section {
    width: 100%;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.contact-section .data-area {
    position: relative;
    width: 100%;
    max-width: 1170px;
    display: flex;
    flex-direction: row;
    align-items: stretch;
}

.contact-section .image-area {
    width: 54%;
    background-size: cover;
    background-position: center;
    max-height: 70%;
}

.contact-section .form-area {
    width: calc(46% - 2rem);
    background-color: var(--color-bg-primary);
    padding: 1.2rem 1rem;
}

.contact-section h3 {
    font-size: 2rem;
    color: var(--color-text-primary);
    margin: 5px 0 10px 0;
}

.contact-section p {
    font-size: 0.85rem;
    color: var(--color-text-secondary);
    margin: 0;
}

.contact-section p a {
    text-decoration: none;
    color: var(--color-link);
}
.contact-section p a:hover, .contact-section p a:active{
    color: var(--color-link-hover);
}

.contact-section .form-group input,
.contact-section .form-group textarea {
    width: calc(100% - 1rem);
    padding: 0.5rem;
    margin-bottom: 0.7rem;
    background-color: var(--color-input-bg);
    border: 1px solid var(--color-border);
    color: var(--color-text-primary);
    font-family: var(--heading-font, Arial, sans-serif);
}

.contact-section .form-group textarea {
    height: 130px;
    resize: vertical;
}

.contact-section .form-group input::placeholder,
.contact-section .form-group textarea::placeholder {
    color: var(--color-placeholder);
}

.contact-section button {
    width: 100%;
}

.main-section .buttons {
    width: 100%;
    position: absolute;
    bottom: -8rem;
    display: flex;
    flex-direction: row;
    justify-content: center;
    gap: 10rem;
}
button {
    width: 20vw;
    font-size: 1rem;
    font-weight: 700;
    color: var(--color-text-primary);
    padding: 0.8rem;
    font-family: var(--main-font, Arial, sans-serif);
    border-radius: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    cursor: pointer;
    border: 1px solid transparent;
    background-color: transparent;
    background-size: 300%;
    background-position: 0%;
    transition: all 200ms linear;
    margin-bottom: 1rem;
}
 button:hover {
    border: 1px solid var(--color-accent-primary);
    box-shadow: 0 12px 15px rgba(12, 12, 12, 0.2);
    transition: all 0.25s cubic-bezier(0.37, 0.31, 0.2, 0.85);

}

.contact-section button .button-icon {
    width: 1.2rem;
    height: 1.2rem;
    margin-right: 0.5rem;
    filter: brightness(0) invert(1);
}

.contact-section footer {
    width: 100%;
    max-width: 1170px;
    padding: 1rem;
    display: flex;
    flex-direction: column;
}

.contact-section footer .footer-content {
    position: relative;
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    gap: 2rem;
    width: 100%;
}

.contact-section footer .address {
    width: 54%;
}

.contact-section footer .media {
    position: relative;
    width: 46%;
    display: flex;
    flex-direction: row;
    justify-content: flex-end;
    align-items: center;
    padding-right: 1rem;
    gap: 0.5rem;
    height: 100%;
}

.contact-section footer .media a {
    display: flex;
    height: 100%;
    justify-content: center;
    align-items: center;
    gap: 2px;

}

.contact-section footer .social-link {
    text-decoration: none;
    color: var(--color-link);
    font-size: 1rem;
    font-weight: 600;
}

.contact-section footer .social-link:hover {
    color: var(--color-link-hover);
}

.contact-section footer .social-icon {
    width: 3rem;
    height: 3rem;
    object-fit: contain;
}

.contact-section footer p {
    font-size: 1rem;
    color: var(--color-text-primary);
    margin: 0;
}

.contact-section footer span {
    font-size: 0.9rem;
    color: var(--color-accent-primary);
    margin-bottom: 0.5rem;
}

.contact-section footer p{
    font-size: 1rem;
    color: var(--color-text-primary);
    margin:0;
}

.contact-section footer span {
    font-size: 0.9rem;
    color: var(--color-accent-primary);
    margin-bottom: 0.5rem;
}

.elementor-background-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--color-overlay);
    opacity: var(--color-overlay-opacity);
    z-index: 0;
    transition: background 0.3s, border-radius 0.3s, opacity 0.3s;
}

.blocks-section .elementor-background-overlay {
    opacity: var(--color-overlay-blocks);
}

.form-error-message {
    position: relative;
    margin: 2em 0px 2em;
    padding: 0.2em 1em;
    border: 2px solid var(--color-error-border);
    font-size: 13px;
    background-color: var(--color-error-bg);
    border-radius: 5px;
    box-sizing: border-box;
    line-height: 1.875;
    color: var(--color-error-text);
    display: none;
}

#fp-nav {
    position: fixed;
    top: 50%;
    right: 20px;
    transform: translateY(-50%);
    z-index: 1000;
}

#fp-nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

#fp-nav ul li {
    margin: 12px 0;
    position: relative;
}

#fp-nav ul li a {
    display: block;
    position: relative;
    width: 16px;
    height: 16px;
    text-align: center;
    cursor: pointer;
}

#fp-nav ul li a span {
    border-radius: 50%;
    position: absolute;
    z-index: 1;
    height: 4px;
    width: 4px;
    background: var(--color-button-text);
    left: 50%;
    top: 50%;
    margin: -2px 0 0 -2px;
    transition: all 0.2s ease-in-out;
}

#fp-nav ul li a:hover span {
    height: 8px;
    width: 8px;
    margin: -4px 0 0 -4px;
}

#fp-nav ul li a.active span {
    height: 12px;
    width: 12px;
    margin: -6px 0 0 -6px;
}


.nav-toggle {
    display: none;
}

.mobile-nav {
    display: none;
}


@media (max-width: 768px) {

    html, body {
        overflow: auto;
    }
    .fixed-header h2 {
        font-size: 1.2rem;
    }

    .fixed-header nav {
        display: none;
    }

    .mobile-nav nav {
        display: flex;
        flex-direction: column;
    }

    .nav-toggle {
        position: relative;
        padding: 0;
        width: 30px;
        height: 30px;
        line-height: 32px;
        display: flex;
        flex-direction: column;
        justify-content: space-around;
        cursor: pointer;
        background: none;
        border: none;
        z-index: 2000; 
    }

    .nav-toggle span {
        display: block;
        height: 3px;
        width: 100%;
        background: var(--color-text-primary);
        border-radius: 2px;
        transition: all 0.3s ease;
    }

    .nav-toggle.active span:nth-child(1),
    .nav-toggle.active span:nth-child(3) {
        opacity: 0;
        transform: translateX(-10px);
    }

    .nav-toggle.active span:nth-child(2) {
        transform: rotate(45deg);
        position: absolute;
    }

    .nav-toggle.active span:nth-child(3) {
        transform: rotate(-45deg);
        position: absolute;
        opacity: 1;
    }

    button.nav-toggle:hover {
        border: none;
    }
    button.nav-toggle:focus {
        border: none;
    }


    .mobile-nav {
        position: fixed;
        top: 0;
        left: calc(-250px - 4rem);
        width: 250px;
        height: 100%;
        background: var(--color-bg-primary);
        display: flex;
        flex-direction: column;
        padding: 2rem;
        transition: left 0.3s ease;
        z-index: 1500;
        align-items: flex-start;
    }

    .mobile-title {
        font-size: 5vw;
        font-family: var(--heading-font);
        margin-bottom: 2rem;
    }

    .mobile-nav.open {
        left: 0;
    }

    .mobile-nav nav.mobile-nav-links a {
        text-align: left;
        justify-content: flex-start;
        width: 100%;
        margin: 0;
        text-decoration: none;
        color: var(--color-text-primary);
        font-size: 1rem;
        padding:  0;
        border-bottom: 2px solid var(--color-mobile-nav-border);
        line-height: 50px;
        color: var(--color-mobile-nav);
        font-weight: 600;
    }
    .mobile-nav nav.mobile-nav-links a.active::before {
        display: none;
    }

    .mobile-nav nav.mobile-nav-links {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        justify-content: flex-start;
        width: 100%;
    }
    .main-section .buttons {
        gap: 2rem;
    }

    .main-section button {
        width: 40vw;
    }

    .main-section h1 {
        font-size: 1.5rem;
    }
    .main-section p {
        font-size: 1.2rem;
    }
    .blocks-section.subtype-1 .intro,  .blocks-section.subtype-2 .intro{
        margin-top: 0;
    }
    .text-image-section .text-image-container,
    .text-section .text-container {
        flex-direction: column;
    }

    .text-image-section .text-area {
        max-width: calc(90vw - 3rem);
    }

    .text-image-section .text-area h2, .text-section .title-area h2 {
        font-size: 2rem;
    }

    .text-image-section img {
        max-width: 100%;
        width: 90vw;
        max-height: 40dvh;
        background-size: cover;
        background-position: center;
        background-repeat: no-repeat;
    }
    .text-section .text-container {
        width: 90vw;
        align-items: flex-start;
    }

    .text-section {
        flex-direction: column;

    }
    .quote-container {
        position: relative;
        top: 0;
        margin: 0 0 2rem 0;
    }

    .quote {
        max-width: 90vw;
        flex-direction: column;
    }

    .blocks-section .block {
        flex: 0 0 100%;
        max-width: 90%;
        padding: 0;
    }

    .contact-section .data-area {
        flex-direction: column;
        width: 90vw;
    }

    .contact-section .data-area .form-area {
        width: calc(100% - 2rem);

    }

    .contact-section .data-area .image-area {
        width: 100%;
        height: 30dvh;
        background-size: cover;
        background-position: center;
        background-repeat: no-repeat;
    }

    .contact-section footer {
        width: 90vw;
        line-height: 1.5rem;
        flex-direction: column;
    }

    .contact-section footer .footer-content {
        flex-direction: column;
    }

    .contact-section footer .address, .contact-section footer .media {
         width: 100%;
         justify-content: flex-start;
    }

    #fp-nav {
        display: none;
        pointer-events: none;
    }
}
