/* 
 * Funcloria - Sports Nutrition Studio
 * Main Stylesheet
 * 
 * Colors:
 * - Background: light gray (#ECEFF1)
 * - Accent: vibrant green (#4CAF50)
 * - Secondary accent: royal blue (#1976D2)
 * - Text: black (#212121)
 * - Buttons: green (#4CAF50)
 * 
 * Fonts:
 * - Headings: Poppins
 * - Body: Inter
 */

/* ==================
   Base Styles
   ================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: 'Inter', sans-serif;
    font-weight: 400;
    line-height: 1.6;
    color: #212121;
    background-color: #ECEFF1;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    line-height: 1.3;
    margin-bottom: 1rem;
}

h1 {
    font-size: 2.75rem;
}

h2 {
    font-size: 2.25rem;
}

h3 {
    font-size: 1.75rem;
}

h4 {
    font-size: 1.5rem;
}

h5 {
    font-size: 1.25rem;
}

h6 {
    font-size: 1rem;
}

p {
    margin-bottom: 1rem;
}

a {
    color: #1976D2;
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: #4CAF50;
}

ul, ol {
    margin-bottom: 1rem;
    padding-left: 1.5rem;
}

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

button {
    cursor: pointer;
    font-family: 'Inter', sans-serif;
}

/* ==================
   Container
   ================== */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* ==================
   Section
   ================== */
.section {
    padding: 5rem 0;
}

.section__title {
    text-align: center;
    margin-bottom: 1rem;
    color: #212121;
}

.section__subtitle {
    text-align: center;
    font-size: 1.125rem;
    color: #424242;
    margin-bottom: 3rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

/* ==================
   Buttons
   ================== */
.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    border-radius: 4px;
    font-weight: 500;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    font-size: 1rem;
}

.btn--primary {
    background-color: #4CAF50;
    color: #fff;
}

.btn--primary:hover {
    background-color: #388E3C;
    color: #fff;
}

.btn--secondary {
    background-color: #1976D2;
    color: #fff;
}

.btn--secondary:hover {
    background-color: #1565C0;
    color: #fff;
}

.btn--outline {
    background-color: transparent;
    border: 2px solid #4CAF50;
    color: #4CAF50;
}

.btn--outline:hover {
    background-color: #4CAF50;
    color: #fff;
}

.btn--nav {
    background-color: #4CAF50;
    color: #fff;
    padding: 0.5rem 1rem;
}

.btn--full {
    width: 100%;
    display: block;
}

/* ==================
   Header
   ================== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: rgba(255, 255, 255, 0.95);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    z-index: 100;
    transition: all 0.3s ease;
    padding: 1rem 0;
}

.header.scrolled {
    padding: 0.5rem 0;
    background-color: rgba(255, 255, 255, 0.98);
}

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

.logo {
    display: block;
    height: 60px;
    transition: all 0.3s ease;
}

.logo img {
    height: 100%;
    width: auto;
}

.header.scrolled .logo {
    height: 50px;
}

.nav__list {
    display: flex;
    list-style: none;
    padding: 0;
    margin: 0;
}

.nav__list li {
    margin-left: 2rem;
}

.nav__list li:not(:last-child) {
    margin-top: .7em;
}

.nav__list a {
    color: #212121;
    font-weight: 500;
    position: relative;
}

.nav__list a:hover {
    color: #4CAF50;
}

.nav__list a::after {
    content: "";
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -4px;
    left: 0;
    background-color: #4CAF50;
    transition: width 0.3s ease;
}

.nav__list a:hover::after {
    width: 100%;
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    width: 30px;
    height: 24px;
    position: relative;
    z-index: 150;
}

.menu-toggle span {
    display: block;
    width: 100%;
    height: 3px;
    background-color: #212121;
    position: absolute;
    left: 0;
    transition: all 0.3s ease;
}

.menu-toggle span:first-child {
    top: 0;
}

.menu-toggle span:nth-child(2) {
    top: 50%;
    transform: translateY(-50%);
}

.menu-toggle span:last-child {
    bottom: 0;
}

.menu-toggle.active span:first-child {
    transform: translateY(10px) rotate(45deg);
}

.menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.menu-toggle.active span:last-child {
    transform: translateY(-10px) rotate(-45deg);
}

/* ==================
   Hero Section
   ================== */
.hero {
    padding: 8rem 0 5rem;
    background-color: #ECEFF1;
    position: relative;
    overflow: hidden;
}

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

.hero__content {
    flex: 1;
    max-width: 600px;
}

.hero__title {
    font-size: 3rem;
    margin-bottom: 1.5rem;
    color: #212121;
}

.hero__slogan {
    font-size: 1.5rem;
    margin-bottom: 2rem;
    color: #4CAF50;
    font-weight: 500;
}

.hero__buttons {
    display: flex;
    gap: 1rem;
}

.hero__image {
    flex: 1;
    max-width: 500px;
    margin-left: 2rem;
    position: relative;
}

.hero__image img {
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

/* ==================
   About Section
   ================== */
.about {
    background-color: #fff;
}

.about__inner {
    display: flex;
    align-items: center;
    gap: 4rem;
}

.about__content {
    flex: 1;
}

.about__text {
    font-size: 1.125rem;
    margin-bottom: 1.5rem;
}

.about__image {
    flex: 1;
}

.about__image img {
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.about__stats {
    display: flex;
    gap: 2rem;
    margin-top: 2rem;
}

.stat {
    text-align: center;
}

.stat__number {
    display: block;
    font-size: 2.5rem;
    font-weight: 700;
    color: #4CAF50;
    margin-bottom: 0.5rem;
    font-family: 'Poppins', sans-serif;
}

.stat__label {
    font-size: 1rem;
    color: #616161;
}

/* ==================
   Services Section
   ================== */
.services__grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(380px, 1fr));
    gap: 2rem;
}

.service-card {
    background-color: #fff;
    border-radius: 8px;
    padding: 2rem;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.service-card__icon {
    margin-bottom: 1.5rem;
}

.service-card__title {
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.service-card__text {
    color: #616161;
}

/* ==================
   Success Stories Section
   ================== */
.success-stories {
    background-color: #fff;
}

.testimonials-slider {
    position: relative;
}

.testimonial {
    display: flex;
    gap: 2rem;
    background-color: #F5F5F5;
    border-radius: 8px;
    padding: 2rem;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    margin-bottom: 2rem;
}

.testimonial__image {
    flex: 0 0 120px;
}

.testimonial__image img {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
}

.testimonial__content {
    flex: 1;
}

.testimonial__name {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.testimonial__sport {
    font-size: 1rem;
    color: #4CAF50;
    font-weight: 500;
    margin-bottom: 1rem;
}

.testimonial__text {
    font-style: italic;
    color: #616161;
}

.testimonials-nav {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1.5rem;
    margin-top: 2rem;
}

.testimonials-nav__prev,
.testimonials-nav__next {
    background: none;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #F5F5F5;
    transition: background-color 0.3s ease;
}

.testimonials-nav__prev:hover,
.testimonials-nav__next:hover {
    background-color: #E0E0E0;
}

.testimonials-nav__dots {
    display: flex;
    gap: 0.5rem;
}

.dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: #E0E0E0;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.dot.active {
    background-color: #1976D2;
}

/* ==================
   Products Section
   ================== */
.products__grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 2rem;
}

.product-card {
    background-color: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.product-card__image {
    height: 200px;
    overflow: hidden;
}

.product-card__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.product-card:hover .product-card__image img {
    transform: scale(1.05);
}

.product-card__content {
    padding: 1.5rem;
}

.product-card__title {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.product-card__text {
    color: #616161;
    margin-bottom: 1.5rem;
}

/* ==================
   FAQ Section
   ================== */
.faq {
    background-color: #fff;
}

.accordion__item {
    margin-bottom: 1rem;
    border-radius: 4px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.accordion__header {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem;
    background-color: #F5F5F5;
    border: none;
    text-align: left;
    font-size: 1.125rem;
    font-weight: 500;
    color: #212121;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.accordion__header:hover {
    background-color: #E0E0E0;
}

.accordion__icon {
    transition: transform 0.3s ease;
}

.accordion__item.active .accordion__header {
    background-color: #E0E0E0;
}

.accordion__item.active .accordion__icon {
    transform: rotate(180deg);
}

.accordion__content {
    padding: 0;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
    background-color: #fff;
}

.accordion__item.active .accordion__content {
    padding: 1.5rem;
    max-height: 500px;
}

/* ==================
   Pricing Section
   ================== */
.pricing__grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
}

.pricing-card {
    background-color: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    display: flex;
    flex-direction: column;
}

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

.pricing-card--featured {
    transform: scale(1.05);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    border: 2px solid #4CAF50;
}

.pricing-card--featured:hover {
    transform: scale(1.05) translateY(-5px);
}

.pricing-card__tag {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background-color: #4CAF50;
    color: #fff;
    padding: 0.25rem 0.75rem;
    font-size: 0.875rem;
    border-radius: 2rem;
    font-weight: 500;
}

.pricing-card__header {
    padding: 2rem;
    background-color: #F5F5F5;
    text-align: center;
}

.pricing-card__title {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.pricing-card__price {
    margin-bottom: 1rem;
}

.pricing-card__currency {
    font-size: 1.25rem;
    font-weight: 500;
    color: #616161;
    vertical-align: super;
}

.pricing-card__amount {
    font-size: 3rem;
    font-weight: 700;
    color: #212121;
    font-family: 'Poppins', sans-serif;
}

.pricing-card__period {
    font-size: 1rem;
    color: #616161;
}

.pricing-card__features {
    padding: 2rem;
    list-style: none;
    flex-grow: 1;
}

.pricing-card__features li {
    padding: 0.5rem 0 0.5rem 1.5rem;
    position: relative;
}

.pricing-card__features li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.95rem;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: #4CAF50;
}

.pricing-card .btn {
    margin: 0 2rem 2rem;
    width: auto;
}

/* ==================
   Contact Section
   ================== */
.contact {
    background-color: #fff;
}

.contact__inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
}

.contact__info {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

.contact__item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.contact__icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: #F5F5F5;
    display: flex;
    align-items: center;
    justify-content: center;
}

.contact__text h3 {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
}

.contact__form {
    background-color: #F5F5F5;
    padding: 2rem;
    border-radius: 8px;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #BDBDBD;
    border-radius: 4px;
    background-color: #fff;
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #4CAF50;
}

.form-group--checkbox {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
}

.form-group--checkbox input {
    width: auto;
    margin-top: 0.25rem;
}

.form-group--checkbox label {
    margin-bottom: 0;
    font-weight: 400;
}

/* ==================
   Footer
   ================== */
.footer {
    background-color: #212121;
    color: #fff;
    padding: 4rem 0 2rem;
}

.footer__top {
    display: flex;
    justify-content: space-between;
    margin-bottom: 3rem;
}

.footer__brand {
    max-width: 300px;
}

.footer__slogan {
    color: #BDBDBD;
    margin-top: 1rem;
}

.footer__brand img {
    background-color: #F5F5F5;
    border-radius: .3rem;
}

.footer__links {
    display: flex;
    gap: 4rem;
}

.footer__heading {
    font-size: 1.25rem;
    margin-bottom: 1.5rem;
    color: #fff;
}

.footer__nav {
    list-style: none;
    padding: 0;
}

.footer__nav li {
    margin-bottom: 0.75rem;
}

.footer__nav a {
    color: #BDBDBD;
    transition: color 0.3s ease;
}

.footer__nav a:hover {
    color: #4CAF50;
}

.footer__bottom {
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
}

.footer__copyright {
    color: #9E9E9E;
    font-size: 0.875rem;
}

/* ==================
   Back to Top Button
   ================== */
.back-to-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: #4CAF50;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 90;
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background-color: #388E3C;
    transform: translateY(-3px);
}

/* ==================
   Legal Pages
   ================== */
.legal {
    padding-top: 10rem;
    padding-bottom: 5rem;
}

.legal__title {
    margin-bottom: 2rem;
    text-align: center;
}

.legal__content {
    background-color: #fff;
    padding: 3rem;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.legal__intro {
    font-size: 1.125rem;
    margin-bottom: 2rem;
}

.legal__content h2 {
    margin-top: 2.5rem;
    margin-bottom: 1.5rem;
    font-size: 1.75rem;
}

.legal__content h3 {
    margin-top: 2rem;
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.legal__updated {
    margin-top: 3rem;
    font-style: italic;
    color: #616161;
    font-size: 0.875rem;
}

/* ==================
   Success Page
   ================== */
.success-page {
    padding-top: 10rem;
    padding-bottom: 5rem;
}

.success-page__content {
    background-color: #fff;
    padding: 3rem;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    text-align: center;
}

.success-page__icon {
    margin: 0 auto 2rem;
    width: 96px;
    height: 96px;
}

.success-page__title {
    margin-bottom: 1.5rem;
}

.success-page__message {
    font-size: 1.125rem;
    max-width: 600px;
    margin: 0 auto 2rem;
}

.success-page__details {
    background-color: #F5F5F5;
    padding: 1.5rem;
    border-radius: 8px;
    text-align: left;
    max-width: 600px;
    margin: 0 auto 2rem;
}

.success-page__next {
    margin: 3rem 0;
    text-align: left;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.success-page__steps {
    list-style: none;
    padding: 0;
    margin: 2rem 0;
}

.success-page__steps li {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.step__number {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: #4CAF50;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 1.25rem;
    flex-shrink: 0;
}

.step__content h3 {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
}

.success-page__buttons {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 2rem;
}

/* ==================
   Media Queries
   ================== */
@media (max-width: 1200px) {
    h1 {
        font-size: 2.5rem;
    }
    
    h2 {
        font-size: 2rem;
    }
    
    .hero__title {
        font-size: 2.5rem;
    }
    
    .about__inner {
        gap: 3rem;
    }
}

@media (max-width: 992px) {
    .menu-toggle {
        display: block;
    }
    
    .nav__list {
        position: fixed;
        top: 0;
        right: -100%;
        width: 280px;
        height: 100vh;
        background-color: #fff;
        box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
        flex-direction: column;
        padding: 6rem 2rem 2rem;
        transition: right 0.3s ease;
        z-index: 100;
    }
    
    .nav__list.active {
        right: 0;
    }
    
    .nav__list li {
        margin: 0 0 1.5rem;
    }
    
    .nav__list .btn {
        display: inline-block;
        margin-top: 1rem;
    }
    
    .hero .container {
        flex-direction: column;
    }
    
    .hero__content {
        text-align: center;
        margin-bottom: 3rem;
    }
    
    .hero__buttons {
        justify-content: center;
    }
    
    .hero__image {
        margin-left: 0;
    }
    
    .about__inner {
        flex-direction: column-reverse;
        gap: 2rem;
    }
    
    .contact__inner {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    
    .pricing__grid {
        gap: 3rem;
    }
    
    .pricing-card--featured {
        transform: scale(1);
    }
    
    .pricing-card--featured:hover {
        transform: translateY(-5px);
    }
}

@media (max-width: 768px) {
    html {
        font-size: 15px;
    }
    
    .section {
        padding: 4rem 0;
    }
    
    .testimonial {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    
    .testimonial__image {
        margin-bottom: 1.5rem;
    }
    
    .footer__top {
        flex-direction: column;
        gap: 2rem;
    }
    
    .footer__brand {
        max-width: 100%;
        text-align: center;
    }
    
    .footer__links {
        justify-content: space-between;
        width: 100%;
    }
    
    .success-page__buttons {
        flex-direction: column;
        gap: 1rem;
    }
    
    .about__stats {
        flex-direction: column;
        gap: 1.5rem;
    }
}

@media (max-width: 576px) {
    .hero {
        padding-top: 7rem;
    }
    
    .hero__buttons {
        flex-direction: column;
        gap: 1rem;
    }
    
    .contact__info {
        grid-template-columns: 1fr;
    }
    
    .legal__content {
        padding: 1.5rem;
    }
    
    .footer__links {
        flex-direction: column;
        gap: 2rem;
    }
}