body {
    margin:0;
    padding:0;
    font-family: "Outfit", sans-serif;
    font-optical-sizing: auto;
    font-style: normal;
    font-weight: 300;
    font-size: 18px;
    background: #10141A;
    color: white;
    text-align: center;
  }

  body.no-scroll {
    overflow: hidden;
  }

  h1 {
    font-size: 80px;
    margin-bottom: 24px;
    line-height: 100%;
  }

  h2{
    font-size: 68px;
    font-weight: 500;
    margin:0;
  }

  h3{
    font-size: 38px;
    font-weight: 500;
    margin: 16px 0;
  }

  h4{
    font-size: 27px;
    font-weight: 300;
    margin: 0;
    margin-bottom: 8px;
  }

  p {
    margin:0;
  }

  ul {
    list-style-type: none;
    padding-inline-start: 0;
  }

  .btn-main {
    height: 80px;
    padding: 0 80px; /* horizontal padding */
    border: none;
    border-radius: 40px;
    background: linear-gradient(to right, #871E14, #ED3524);
    color: white;
    font-size: 1.8rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    cursor: pointer;
    box-shadow: 0 6px 20px rgba(0,0,0,0.15);
    margin-top: 40px;
  }
  
  .btn-main:hover {
    background: white;
    color: #ED3524;
    box-shadow: 0 8px 24px rgba(0,0,0,0.2);
  }
  
  .btn-main:active {
    transform: translateY(0);
    box-shadow: 0 4px 10px rgba(0,0,0,0.15);
  }



/* HEADER */

section.hero {
    background-image: url('../images/hero-sm.png');
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
    transition: background-image 0.5s ease;
    height: 100vh;
    position: relative;
}

.hero.loaded {
    background-image: url('../images/hero.png');
  }

header {
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    width: 1280px;
    max-width: 90%;
    margin:auto;
    padding: 16px 0;
}

header .logo {
    width: 54px;
    height: 40px;
    display: inline-block;
    background-image: url('../images/LOGO.svg');
    background-repeat: no-repeat;
    background-size: contain;
    padding-bottom: 2px;
  }

header div.menu img {
    height: 40px;
    object-fit: cover; /* crops the image to fill container */
    object-position: center; /* centers it (optional) */
}

section.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.4); /* darkness level */
    z-index: 1;
  }

  section.hero .hero-content {
    position: relative;
    z-index: 2;
    padding-bottom: 152px;
  }

  section.hero .menu {
    position: relative;
    z-index: 2;
  }

header nav ul {
    padding: 0;
    margin: 0;
}

header nav li {
    display: inline-block;
    margin-left: 64px;
    vertical-align: bottom;
}

header div .menu-icon {
    padding: 0px;
    display: none;
}

header nav li a {
    text-decoration: none;
    color: white;
    border-bottom: 1px solid transparent;
    transition: border-color 0.3s ease;
}

header nav li a:hover {
    border-bottom: 1px solid white;
}

header .menu div.logo {
    display: inline-block;
}

header .menu {
    height: 48px;
    display: flex;
    justify-content: space-between;

}

header .menu .left-side{
    height: 48px;
    display: flex;
    justify-content: flex-start;
    align-items: center;

}

.wrapper {
    height: 100vh;
    width: 100vw;
    position: fixed;
    right: 100%;
    background-color: #10141A;
    transition: all 0.6s ease-in-out;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    z-index: 999;
} 

.nav-opened {
    right: 0;
}

.wrapper li {
    padding: 24px;
}

.wrapper li a {
    text-decoration: none;
    font-size: 38px;
    font-weight: 500;
    color: white;
    border-bottom: 1px solid transparent;
    transition: border-color 0.3s ease;
}

.wrapper li a:hover {
    border-bottom: 1px solid white;
}

.main-title.mobile {
    display: none;
  }

ul.quotes {
    margin: 0;

}

.quotes {
    display: block;
}

.quotes.mobile {
    display: none;
  }

.quotes li {
    display: inline-block;
    font-size: 27px;
    font-weight: 300;
    margin-right: 16px;
    padding-bottom: 4px;
}

.quotes .quote-2 {
    color: #F38B81;
}

.quotes .quote-3 {
    margin-right: 0px;
    color: #EA3423;
    display: block;

}


/* MAIN SECTION */
.main {
    width: 1280px;
    max-width: 90%;
    margin:auto;
    margin-top: 192px;
    margin-bottom: 192px;
}

.opening {
    margin: 192px 0;
}

.opening .red-highlight {
    color:#EA3423;
}

/* LM PROGRAMS */

section .lmprograms .container {
    display: flex;
    flex-direction: row;
    gap: 24px;
    justify-content: flex-start;
    overflow-x: auto;          /* enable horizontal scroll */
    scroll-snap-type: x mandatory; /* smooth snapping */
    scrollbar-width: thin;
}

section .lmprograms .container div {
    height: 400px;
    text-align: left;
    flex: 0 0 640px;           /* card width */

    padding: 32px;
    scroll-snap-align: start;  /* snap point (optional) */
    position: relative;

    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
}

#sprint {
    background-image: url('../images/sprint.JPG');
}

#bodypump {
    background-image: url('../images/bp.jpg');
}

#strengthdev {
    background-image: url('../images/sd.jpg');
}

#core {
    background-image: url('../images/core.jpg');
}

section .lmprograms .container div.program::before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.5); /* darkness level */
    z-index: 1;
  }

section .lmprograms .container div.about {
    position: relative;
    max-width: 400px;
    background-color: transparent;
    background-image: none;
    padding: 24px 48px 0 0;
}

section .lmprograms .container div.about p {
    padding-top: 32px;
}

section .lmprograms .container div.about img.arrows {
    position: absolute;
    bottom: 0;
    right: 0;
}

section .lmprograms .container .program h4 {
    color: hsla(0, 0%, 100%, 0.4);
    padding-top: 200px;
    position: relative;
    z-index: 2;
}

section .lmprograms .container .program p {
    position: relative;
    z-index: 2;
}

section .lmprograms .container .program img {
    position: relative;
    z-index: 2;
    width: 200px;
    height: auto;
}


/* CERTIFICATES */

section .certificates .container {
    display: flex;
    flex-direction: row;
    gap: 24px;
    justify-content: flex-start;
    overflow-x: auto; /* enable horizontal scroll */
    scroll-snap-type: x mandatory; /* smooth snapping */
    scrollbar-width: thin;
    margin: 192px 0;
}

section .certificates .container div {
    height: 240px;
    text-align: left;
    flex: 0 0 320px; /* card width */
    padding: 0px;
    scroll-snap-align: start;  /* snap point (optional) */
}

section .certificates .container div img {
    width: 320px;
    height: 240px;
    object-fit: cover; /* crops the image to fill container */
    object-position: center; /* centers it (optional) */
}

/* OFFERS */

.goals {
    text-align: left;
    margin: 192px 0;
    position: relative;
}

.arrows {
    position: absolute;
    bottom: 0;
    left: 0;
}

.goals ul {
    padding-left: 128px;
    margin: 48px 0;
}

.goals li {
    margin-bottom: 48px;
}

.cta {
    margin: 192px 0;
}

.offers {
    text-align: left;
}

.offers .container {
    display: flex;
    flex-direction: row;
    justify-content: center;
    gap:24px;
    flex-wrap: wrap;
    margin: 32px 0;

}
.offers .container div.offer {
    background-color: #455772;
    max-width: 346px;
    min-width: 280px;
    height: 400px;
    text-align: left;
    padding: 32px;
    margin: 0;
    position: relative;
}

.offers .container div.offer.n1{
    background-color: #455772;

}

.offers .container div.offer.n1:hover{
    background-color: #587092;

}

.offers .container div.offer.n2{
    background-color: #323F52;
    outline: 6px solid #EA3423;

}

.offers .container div.offer.n2:hover{
    background-color: #455772;
    outline: 6px solid #EA3423;

}

.offers .container div.offer.n3{
    background-color: #1F2733;

}

.offers .container div.offer.n3:hover{
    background-color: #323F52;

}

.badge {
    position: absolute;
    right: 16px;
    top: 16px;
}

.offers .container div.offer p.tagline {
    opacity: 0.2;
    margin-bottom: 160px;
}

/* GALLERY */

section .gallery {
    display: flex;
    flex-direction: column;
    margin-bottom: 192px;
}

section .gallery .shoots {
    display: flex;
    flex-direction: row;
}

section .gallery .shoots img {
    aspect-ratio: 4 / 3;
    min-width: 50%;
    object-fit: cover; 
    object-position: center;
}

section .gallery .speech {
    background-color: #232C39;
    padding: 96px;
}

.speech {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: flex-start;
    
}

.speech img {
    margin-right: 24px;
}

.speech p {
    max-width: 800px;
    text-align: left;
}

/* FOOTER */

.contacts ul {
    margin: 48px 0 24px;
}

.contacts a {
    color: #fff;
    text-decoration: none;
  }
  .contacts a:hover {
    opacity: 0.8;
  }

.social ul li{
    display: inline-block;
    padding-right: 8px;
    opacity: 0.2;
}

.social ul li:hover{
    opacity: 1.0;
}

.social ul li:last-child{
    padding-right: 0;
}

footer {
    margin: 64px 0 64px;
}

footer img{
    opacity: 0.2;
}

footer img:hover {
    opacity: 1.0;
}



/* Popup overlay */
.popup {
    display: none; 
    position: fixed;
    inset: 0; 
    background: rgba(0, 0, 0, 0.6);
    justify-content: center;
    align-items: center;
    z-index: 1000;

  }
  
  .popup-content {
    background: white;
    color:#10141A;
    padding: 96px 80px 96px;
    margin: 64px;
    border-radius: 32px;
    max-width: 100%;
    width: 680px;
    text-align: center;
    box-shadow: 0 8px 20px rgba(0,0,0,0.3);
    position: relative;
  }
  
  .close {
    position: absolute;
    right: 32px;
    top: 16px;
    font-size: 48px;
    cursor: pointer;
  }
  
  input[type="tel"] {
    width: 80%;
    max-width: 400px;
    padding: 24px;
    margin: 16px 0;
    font-size: 27px;
    background-color: #E4E4E4;
    border: 0;
    border-radius: 8px;

  }

  input:focus {
    outline: none;
  }
  
  .hidden {
    display: none;
  }

  .btn-popup {
    height: 80px;
    padding: 0 80px;
    border: none;
    border-radius: 40px;
    background: linear-gradient(to right, #871E14, #ED3524);
    color: white;
    font-size: 1.8rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    cursor: pointer;
    box-shadow: 0 6px 20px rgba(0,0,0,0.15);
    margin: 32px 0 64px;
  }
  
  .btn-popup:hover {
    background: #871E14;
    box-shadow: 0 8px 24px rgba(0,0,0,0.2);
  }
  
  .btn-popup:active {
    transform: translateY(0);
    box-shadow: 0 4px 10px rgba(0,0,0,0.15);
  }

  .btn-popup:disabled {
    opacity: 0.5;
    cursor: not-allowed;
  }

  .social-popup ul {
    padding: 8px;
    display: flex;
    flex-direction: row;
    justify-content: center;
    gap: 16px;
  }

  .social-popup ul li img {
        opacity: 0.2;
        width: 48px;
        height: 48px;
  }
    
    .social-popup ul li img:hover {
        opacity: 1.0;
  }

  




@media screen and (max-width: 768px) {
    h1 {
        font-size: 54px;
      }
    
    h2{
        font-size: 48px;
      }
    
    h3{
        font-size: 32px;
      }

    .btn-main {
        height: 64px;
        padding: 0 48px;
        border-radius: 32px;
        font-size: 1.6rem;
        font-weight: 600;
        letter-spacing: 0.5px;
        cursor: pointer;
        box-shadow: 0 6px 18px rgba(0,0,0,0.15);
        margin-top: 24px;
      }

    header .logo {
        width: 243px;
        background-image: url('../images/AE_Logo_mob.svg');
      }

    header nav li {
        display: none;
    }
    
    header div .menu-icon {
        display: inline-block;
    }

    section.hero .hero-content {
        padding-bottom: 124px;
      }
    
    .main-title.desktop {
        display: none;
      }
    .main-title.mobile {
        display: block;
        padding: 0 32px;
        margin-bottom: 16px;
      }
      

    .quotes {
        display: none;
      }
    
    .quotes li {
        display: none;

    }

    .quotes.mobile {
        display: block;
        margin-bottom: 120px;
      }
    
      .quotes.mobile li {
        display: block;
        padding-bottom: 16px;

    }

    .opening .red-highlight {
        color:#fff;
    }


    section .lmprograms .container div.about {
        max-width: 300px;
        padding: 24px 16px 0 0;
    }

    section .lmprograms .container div.about img {
        width: 240px;
    }

    section .lmprograms .container div {
        height: 400px;
        flex: 0 0 300px; 
    
        padding: 32px;

    }

    section .lmprograms .container .program h4 {
        padding-top: 160px;
    }

    .offers .container div.offer {
        height: 320px;
    }

    .offers .container div.offer h3 {
        margin: 0;
    }

    .offers .container div.offer p.tagline {
        margin-bottom: 100px;
        margin-top: 16px;
    }

    .badge {
        position: absolute;
        right: 0;
        top: 0;
    }

    section .gallery .shoots {
        flex-direction: column;
    }

    section .gallery .shoots img {
        max-width: 100%;
    }

    section .gallery .speech {
        padding: 64px 64px 96px;
    }

    .speech {
        flex-direction: column;
    }

    .speech img {
        margin-right: 0;
        margin-bottom: 24px;
    }

    a[href^="tel"],
    a[href^="mailto"] {
        color: inherit !important;
        text-decoration: none !important;
        cursor: default;
    }
      
    /* POPUP */

    .popup {
        position: fixed;
        width: 100%;
        height: 100%;
        right: 0;
        top: 0;
        background: white;
        justify-content: flex-start;
        align-items: flex-start;
    }
      
    .popup-content {
        width: 100vw;
        padding: 112px 48px;
        border-radius: 0px;
        margin: 0;
        text-align: center;
        box-shadow: 0 0px 0px rgba(0,0,0,0.3);
        position: relative;
      }

      input[type="tel"] {
        padding: 20px;
        font-size: 20px;
        margin: 8px 0;
      }

      .btn-popup {
        height: 64px;
        padding: 0 48px;
        border-radius: 32px;
        font-size: 1.6rem;
        margin: 24px 0 64px;
      }

      #formView h3 {
        font-size: 24px;
      }

      #popup h4 {
        font-size: 24px;
      }

      .social-popup ul {
        padding: 0px;
      }

      .social-popup ul li img {
        opacity: 1;
        visibility: inherit;
  }

}


 /* LOADER OVERLAY */

#loader {
    position: fixed;
    inset: 0;
    background-color: #10141A;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 0.6s ease, visibility 0.6s ease;
  }
  
  #loader.hidden {
    opacity: 0;
    visibility: hidden;
  }
  
  .spinner {
    position: relative;
    width: 96px;
    height: 96px;
    animation: spin 1.5s linear infinite;
  }
  
/* Dots around the circle */
.spinner .dot {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 12px;
    height: 12px;
    background-color: #ED3524;
    border-radius: 50%;

  }
  
  /* 8 dots rotated evenly */
  .spinner .dot:nth-child(1) { transform: rotate(0deg) translateX(30px); }
  .spinner .dot:nth-child(2) { transform: rotate(45deg) translateX(30px); }
  .spinner .dot:nth-child(3) { transform: rotate(90deg) translateX(30px); }
  .spinner .dot:nth-child(4) { transform: rotate(135deg) translateX(30px); }
  .spinner .dot:nth-child(5) { transform: rotate(180deg) translateX(30px); }
  .spinner .dot:nth-child(6) { transform: rotate(225deg) translateX(30px); }
  .spinner .dot:nth-child(7) { transform: rotate(270deg) translateX(30px); }
  .spinner .dot:nth-child(8) { transform: rotate(315deg) translateX(30px); }
  
  @keyframes spin {
    100% {
      transform: rotate(360deg);
    }
  }