
body {
    font-family: Arial, sans-serif;
    margin:0;
    padding:0;
    background-color: #FFFFFF;
}

body.no-scroll {
    overflow: hidden;
    touch-action: none;
}

.scroll-watcher {
    height: 10px;
    position: fixed;
    top: 0;
    left:0;
    z-index: 1000;
    background-color: #E6AD54;
    width: 100%;
    opacity: 0.8;
    scale: 0 1;
    transform-origin: left;
    animation: scroll-watcher linear;
    animation-timeline: scroll(y);
}

@keyframes scroll-watcher {
    to {
        scale: 1 1;
    }
}

header {
    background-image: url("../images/Group 1895.svg");
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
    min-height: 100vh; 
    overflow: hidden;
}

.main-menu {
    width: 80%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1000;
    margin: auto;
    padding-top: 1.5rem;
}
.logo {
    width: 200px;
}
.logo-espa {
    display:flex;
    align-items: center;
    gap: 1rem;
    width: fit-content;
}
.header-espa {
    width: 300px;
}
@media (max-width:2050px) {
    .logo {
        width: 250px;
    }
    .logo-espa {
        flex-direction: column;
        align-items: start;
    }
    .header-espa {
        width: 250px;
    }
}

nav{
    width: fit-content;
}
.nav-items {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    gap: 40px;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 30px;
}

.nav-link{
    position: relative;
    display: inline-block;
    text-decoration: none;
    font-size: 20px;
    color: #FFFFFF;
    font-weight: bolder;
    transition: all 0.25s;
    padding: 4px 2px;
    text-wrap: nowrap;
    font-weight: 500;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    inset-inline: 0;
    margin-inline: auto;
    height: 3px;
    width: 0;
    background-color: #E6AD54;
    transition: width 0.3s ease-in-out;
}
.nav-link:hover::after {
    width: 100%;
}

.lang-switch {
    display: flex;
    align-items: center;
    justify-content: center;
    text-wrap: nowrap;
    overflow: hidden;
    min-width: fit-content;
    border-radius: 30px;
    border: 2px solid #FFFFFF;
}

.lang-btn{
    background-color: transparent;
    border: none;
    padding: 0.5rem 0.3rem;
    color: #FFFFFF;
    font-weight: 200;
    font-size: medium;
    cursor: pointer;
}

.lang-btn[aria-pressed="true"] {
    background-color: #FFFFFF;
    color: #131313;
}

#menuToggle {
    position: relative;
    display: flex;
    align-items: center;
    flex-direction: column;
    gap: 2px;
    right: 40px;
}

#menuToggle input{
    display: none;
    position: absolute;
    left: -12px;
    width: 45px;
    height: 100%;
    opacity: 0;
    cursor: pointer;
    z-index: 30;
}

#menuToggle span{
    display: none;
    width: 32px;
    height: 3px;
    background: black;
    margin: 4px 0;
    border-radius: 10px;
    z-index: 10;
    transition: transform .45s cubic-bezier(.77,.2,.05,1.5), opacity .35s;
    transform-origin: 3px 1px;
    border: 1px solid #FFFFFF
}

.header-container {
    position: relative;
    width: 80%;
    margin: auto;
    height: 100%;
}

.header-content {
    display: grid;
    grid-template-columns: 45% 55%;
    height: 100%;
    justify-items: center;
    align-items: center;
    padding-top: 6rem;
}

.header-left img {
    max-width: 350px;
    height: auto;
}

.header-right {
    color: #FFFFFF;
}

.header-right .espa {
    width: min(400px, 100%);
    height: auto;
}
h1 {
    font-weight: 100;
}

.header-text-contents {
    display: flex;
    justify-content: start;
    align-items: center;
    gap: 2rem;
}
.header-text {
    font-weight: 100;
    font-size: 1.4rem;
    letter-spacing: 1px;
}
span {
    color: #E6AD54;
}

.section-learn {
    background-image: url("../images/grayBG.e6223e78@2x.png");
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
    padding: 3rem 0;
}

.section-learn h1 , .section-support h1{
    color: #064C7B;
    margin: auto;
    width: fit-content;
    padding: 0 2rem;
    text-align: center;
}

.learn-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    justify-content: center;
    max-width: 1200px;
    width: 80%;
    margin: auto;
    justify-items: start;
    align-items: start;
    gap:7rem;
    margin-top: 3rem;
}

.learn-content-left-text {
    font-size: larger;
}
.learn-content-right-text {
    margin-top: 2rem;
    margin-bottom: 2.5rem;
    font-size: larger;
}
.download-btn {
    text-decoration: none;
    border-radius: 2rem;
    background-color: #064C7B;
    border: 1px solid #064C7B;
    padding: 0.5rem 1.5rem;
    color:#FFFFFF;
    display: flex;
    align-items: center;
    width: fit-content;
    transition: all 0.3s ease-in-out;
    gap: 0.7rem;
}

.download-btn:hover svg path{
    stroke: #E6AD54;
}


.section-trust {
    background-color: #FFFFFF;
}

.trust-container {
    max-width: 1100px;
    width: 80%;
    margin: 5rem auto;
    display: grid;
    grid-template-columns: 1fr 2fr;
    justify-items: center;
    align-items: center;
}

.trust-text {
    color: #E6AD54;
    max-width: 35rem;
    font-size: larger;
}

.section-tools{
    min-height: 37.5rem;
    display: grid;
    grid-template-columns: 1fr 1fr;
}

.tools-left {
    background-image: url("../images/toolsleft.9b501ba6.svg");
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center left;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 0 3rem 0rem 8rem;
}

.tools-left-content {
    max-width: 35rem;
    display: flex;
    flex-direction: column;
}

.tools-text {
    font-size: larger;
    color: #FFFFFF
}

.tools-left-content ul li {
    margin-bottom: 1rem;
}

.tools-right {
    background-image: url("../images/pictureWithPhoneAndPass@2x.png");
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
}

.section-support {
    background-color: #FFFFFF;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 6rem 0;
}

.section-support h2 {
    color: #E6AD54;
    font-weight: 100;
    margin-top: 2.5rem;
    opacity: 0.8;
    text-align: center;
}

.support-text {
    text-align: center;
    max-width: 30rem;
    width: 80%;
    margin: 2rem 0;
    color: #064C7B;
    font-size: larger;
}
.section-support a{
    text-decoration: none;
    color: #FFFFFF;
    background-color: #064C7B;
    box-shadow: 0px 3px 6px #00000029;
    border-radius: 5rem;
    border: 1px solid #064C7B;
    padding: 0.7rem 2rem;
    margin-top: 1.5rem;
    transition: all 0.3s ease-in-out;
    text-align: center;
}

.section-support a:hover, .download-btn:hover {
    scale: 1.02;
    background-color: #FFFFFF;
    color: #064C7B;
}
footer {
    background-color: #054C7B;
    padding: 0.5rem 0;
    text-align: center;
}

footer a {
    text-decoration: none;
    margin: auto;
    width: fit-content;
    color: #FFFFFF;
    display: flex;
    align-items: center;
}

footer a p {
    white-space: nowrap;
    display: flex;
    align-items: center;
    gap:0.6rem;
}

@media (max-width: 750px) {
    footer a {
        flex-direction: column;
    }
}
.back-to-top {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
    background-color: #E6AD54;
    color: white;
    border: none;
    border-radius: 50%;
    font-size: 24px;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 50;
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
}
  
.back-to-top:hover {
    background-color: #B0B0B0;
    transform: translateY(-5px); 
}
  
.back-to-top svg {
    width: 24px;
    height: 24px;
    transition: transform 0.3s ease;
}
  
.back-to-top:hover svg {
    transform: translateY(-3px); 
}

@media (prefers-reduced-motion: no-preference){
  .fade-in-animation{
    opacity: 0;
    scale: 0.8;
    animation: fade-in linear forwards;
    animation-timeline: view();
    animation-range: 50px 36%;
  }

  @keyframes fade-in {
    to {
      opacity: 1;
      scale: 1;
    }
  }
}

@media (max-width: 1750px){

    .main-menu {
        width: 90%;
    }
    #menuToggle span{ 
        display: block;
    }

    #menuToggle input {
        display: block;
    }

    .nav-items{
        position: fixed;
        top: 0;
        right: 0;
        justify-content:start;
        align-items: start;
        height: 100%;
        width: 260px;
        padding-top: 150px;
        padding-left: 10px;
        background: #FFFFFF;
        box-shadow: 0 0 20px rgba(0,0,0,.18);
        flex-direction: column;
        gap: 30px;
        transform: translateX(110%);
        transition: transform .45s cubic-bezier(.77,.2,.05,1);
        z-index: 2;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
    }

    .nav-links {
        flex-direction: column;
        align-items: start;
        gap:20px;
    }

    .nav-card-btn {
        color: #131313 !important;
        width: 100%;
        text-align: center;
    }

    .nav-link {
        color: #131313;
    }

    .lang-switch {
        border: 2px solid #054C7B;
    }

    .lang-btn{
        color: #131313;
    }

    .lang-btn[aria-pressed="true"] {
        background-color: #054C7B;
        color: #FFFFFF;
    }

    #menuToggle input:checked ~ .nav-items{
        transform: translateX(0);
    }

    #menuToggle input:checked ~ span:nth-of-type(1){
        transform: rotate(45deg) translate(2px, 6px);
    }

    #menuToggle input:checked ~ span:nth-of-type(2){
        opacity: 0;
        transform: scaleX(.2);
    }

    #menuToggle input:checked ~ span:nth-of-type(3){
        transform: rotate(-45deg) translate(0px, -6px);
    }
}

@media screen and (max-width: 1200px) {
    .header-content {
        grid-template-columns: 1fr;
        padding-bottom: 5rem;
        gap:5rem;
    }

    .header-content > *:nth-child(1) {
        order: 2;
    }
  
    .header-content > *:nth-child(2) {
        order: 1;
    }
}


@media screen and (max-width: 1000px) {
    .main-menu {
        padding-left:1rem;
        width: 100%;
    }

    .header-text {
        font-size: 1.4rem;
    }

    .section-learn {
        padding: 5rem 0;
    }
    .learn-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap:1rem;

    }

    .learn-content-right {
        text-align: center;
        margin: auto;
    }

    .download-btn{
        margin: auto;
    }

    .trust-container {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .section-tools{
        grid-template-columns: 1fr;
        min-height: none;
    }

    .tools-left {
        height: fit-content;
        padding: 3rem 0;
    }

    .tools-left-content {
        width: 80%;
        max-width: none;
    }
    .tools-right {
        height: 40rem;
    }
}

@media screen and (max-width: 750px) {

    .header-right h1 {
        text-align: center;
    }
    .header-text-contents {
        flex-direction: column;
        margin-top: 4rem;
        text-align: center;
    }

    .header-left img {
        max-width: 300px;
    }

    .section-support a{
        padding: 0.7rem 1rem;
    }

    .modal-panel {
        margin: 3vh auto;
        padding: 1.5rem;
    }
}


body .uwy.userway_p3 .userway_buttons_wrapper  {
    left: 12px !important; 
    right: auto !important;
    transform: none !important;
}

.nav-card-btn {
    border: 1px solid #E6AD54;
    background-color: transparent;
    color: #FFFFFF;
    border-radius: 999px;
    padding: 0.4rem 1.1rem;
    font-size: 20px;
    font-weight: 500;
    cursor: pointer;
    text-wrap: nowrap;
    transition: all 0.25s ease;
}

.nav-card-btn:hover {
    background-color: #E6AD54;
}

.modal-overlay[hidden] {
    display: none;
}

.modal-overlay {
    position: fixed;
    inset: 0;
    z-index: 2000;
    overflow-y: auto;
}

.modal-backdrop {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.55);
}

.modal-panel {
    position: relative;
    z-index: 1;
    width: min(520px, 80%);
    margin: 150px auto;
    background: #FFFFFF;
    border-radius: 24px;
    padding: 1.5rem;
    height: fit-content;
    box-shadow: 0 20px 60px rgba(0,0,0,0.2);
}

.modal-close {
    position: absolute;
    top: 12px;
    right: 16px;
    border: none;
    background: transparent;
    font-size: 2rem;
    line-height: 1;
    cursor: pointer;
    color: #064C7B;
}

.modal-panel h2 {
    color: #064C7B;
    margin-top: 0;
    margin-bottom: 1.5rem;
    padding-right: 2rem;
}

.business-card-form {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.business-card-form label {
    color: #064C7B;
    font-weight: 700;
    margin-left: 10px;
}

.business-card-form input {
    border: 1px solid #d0d7de;
    border-radius: 14px;
    padding: 0.9rem 1rem;
    font-size: 1rem;
    margin-bottom: 1rem;
}

.business-card-form input:focus {
    outline: 2px solid rgba(6, 76, 123, 0.2);
    border-color: #064C7B;
}

.create-card-btn {
    margin-top: 0.75rem;
    border: 1px solid #064C7B;
    background: #064C7B;
    color: #FFFFFF;
    border-radius: 999px;
    padding: 0.9rem 1.25rem;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.25s ease;
}

.create-card-btn:hover {
    background: #FFFFFF;
    color: #064C7B;
}

.form-message {
    min-height: 1.5rem;
    margin-top: 1rem;
    color: #2f7d32;
    font-weight: 700;
}