/* =========================================
   Basic Reset & Defaults
   ========================================= */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Proxima Nova', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    line-height: 1.6;
    color: #333; /* Default text color */
    background-color: #fff; /* Default background */
}

h1, h2, h3 {
    margin-bottom: 1rem;
    font-weight: bold;
}

h1 {
    font-size: 2.8rem; /* Base size, adjusted in hero */
    line-height: 1.1;
}

h2 {
    font-size: 2rem;
    margin-bottom: 2rem;
}

h3 {
    font-size: 1.4rem;
}

p {
    margin-bottom: 1rem;
}

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

img {
    max-width: 100%;
    height: auto;
    display: block;
    /* Remove default borders from image links */
    border: none;
}

ul {
    list-style: none;
    padding-left: 0;
}

li {
    margin-bottom: 0.5rem;
}

blockquote {
    font-size: 1.5rem;
    font-style: italic;
    margin-bottom: 1rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

cite {
    display: block;
    margin-bottom: 1.5rem;
    font-weight: bold;
    color: #aaa;
    text-decoration: underline;
    font-style: normal;
}

/* =========================================
   Placeholder Styles (Optional, for missing assets)
   ========================================= */
img[src^="placeholder-"] {
     min-height: 45px; /* Base height */
     background-color: #e0e0e0;
     color: #888;
     display: flex;
     align-items: center;
     justify-content: center;
     text-align: center;
     font-size: 0.8rem;
     padding: 5px;
     border: 1px dashed #ccc;
     object-fit: contain;
}
/* Specific placeholder sizes */
img[src="placeholder-appstore.png"],
img[src="placeholder-googleplay.png"] {
    height: 45px;
    width: 135px;
}
img[src^="placeholder-community-"] {
    height: 300px;
    width: 100%;
    object-fit: cover;
    min-height: 300px; /* Ensure height */
}


/* =========================================
   Header
   ========================================= */
.header-section {
    padding: 5px 15px;   /* 32px top / 24px right / 16px bottom / 24px left */
    background-color: #fff;   /* let the art-board’s #000 show through */
    position: absolute;              /* sit atop the hero image */
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    box-shadow: none;                /* remove the white drop-shadow */
    overflow: hidden;
}

.header-section .logo {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 50px;
}

.logo-icon {
    height: 32px;                     /* match the 35px artboard logo-height */
    width: auto;
}

.menu-icon {
    font-size: 28px;                 /* approx. 28px for the hamburger icon */
    line-height: 1;
    color: #303030;                     /* white icon */
    cursor: pointer;
    margin-top: 4px;                 /* nudge it down to align with the logo */
}

.menu-icon-close {
    font-size: 50px;
    transform: rotate(45deg) translate(3px, -10px);
    font-weight: 100;
    display: none;
    appearance: none;
}

.header-section .box {
    display: none;
}
.header-section .box  p {
    padding-top: 15px;
    line-height: 1.1;
    color: #7e8084;
    width: 90%;
}

.header-section ul {
    padding:5px 0 20px;
    line-height: 2.2;
}
.header-section ul span {
    text-decoration: underline;
    color: #000;
    font-size: 18px;
}
.header-section ul li a {
    display: block;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.header-section ul i {
    display: inline-block;
    width: 16px;
    height: 16px;
    background: url(../images/arrow-gray.png) center center no-repeat;
    background-size: 100%;
}
/* =========================================
   Hero Section
   ========================================= */
/* ——— Hero Section ——— */
#hero {
    position: relative;
    height: 697px; /* matches Figma Frame height */
    /* background: url('/images/sports-tracker-hero.webp') no-repeat center center/cover; */
    overflow: hidden;
}

#hero::before {
    content: '';
    position: absolute;
    top: 201px; /* start of gradient as per Figma */
    left: 0;
    width: 100%;
    height: 610px; /* gradient height from Figma */
    background: linear-gradient(0deg, #181512 16.83%, rgba(24,21,18,0) 100%);
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 1; /* sit above the gradient */
    max-width: 324px; /* per Figma artboard width */
    padding-top: 7vh; /* match Figma top padding inside Frame */
    text-align: left;  /* artboard shows left-aligned text */
}

.hero-content h1 {
    font-family: 'Proxima Nova', sans-serif;
    font-weight: 900;
    line-height: 95%;      /* ~33px */
    letter-spacing: -0.5px;
    color: #FFFFFF;
    margin-bottom: 16px;    /* small gap to subtitle */
}

.hero-content p {
    font-family: 'Proxima Nova', sans-serif;
    font-weight: 200;      /* Regular */
    font-size: 20px;
    line-height: 120%;     /* ~19px */
    color: #FFFFFF;        /* Dark grey per Figma */
    margin-bottom: 32px;   /* gap before buttons */
}

/* Adjust app-store buttons container to Figma width */
.hero-content .app-buttons {
    max-width: 350px;
    /* display: flex; */
    gap: 16px;  /* Figma shows 16px between buttons */
}

.hero-content .app-buttons a {
    display: block;
    margin-bottom: 10px;
}
/* =========================================
   General Section Styling
   ========================================= */
section {
    padding: 2rem 1.5rem;
}

.dark-section {
    background-color: #181512;
    color: #f0f0f0;
    width: 100%;
    overflow-x: hidden;
}
.dark-section h2, .dark-section h3 {
    line-height: 1.1;
    color: #fff;
    font-family: 'Proxima Nova', Helvetica, Arial, sans-serif;
}
.dark-section p {
    color: #ccc;
}

.light-section {
    background-color: #EBE6E1;
    color: #000;
}


/* =========================================
   Carousel Sections (Swiper)
   ========================================= */
.carousel-section h2 {
    margin-bottom: 1rem;
    text-align: left;
    font-weight: 900;
}

.carousel-section .swiper {
    margin: 0 auto !important;
    /* padding: clamp(1rem, 3vw, 4rem) !important; */
    width: 100%;
    overflow: visible; /* Allow seeing edges */
}

/* Individual Slide Styling */
.swiper-slide {
    /* height: auto; */
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    box-sizing: border-box;
    /* text-align: center; */
    /* Add slight transparency to non-active slides if desired */
    transition: opacity 0.3s ease;
}
.swiper-slide:not(.swiper-slide-active) {
     /* opacity: 0.7; */ /* Optional: makes non-centered slides dimmer */
}

/* Move pagination dots downward below cards */
.carousel-section .swiper-pagination {
    bottom: -1.5rem !important;
}

/* Inherited .slide class styling */
.slide {
    /* padding: clamp(1rem, 4vw, 3.5rem) clamp(1rem, 7vw, 4.5rem); */
    border-radius: 8px;
    min-height: 300px;
    background-color: #EBE6E1;
    color: #ccc;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    box-shadow: 0 2px 12px rgba(0,0,0,0.07);
   /*  margin: 0 5%;      Center slides with side margins */
    width: 90%;       /* Scale with viewport width */
    max-width: 520px; /* Cap max slide width */
    transition: box-shadow 0.2s ease;
    position: relative;
    overflow: hidden;
    margin: 10px 16px 20px 0!important;
}
/* Removed min-width/max-width breakpoints for .slide */
.slide .swiper-box{
    background-color: #fff;
    height: 150px;
    width: 100%;
}
.slide h3 {
    color: #000;
    margin-bottom: 0.5rem;
    font-size: 1.2rem;
    padding: 20px 20px 0 20px;
}
.slide p {
    font-size: 0.95rem;
    margin-bottom: 0.3rem;
    flex-grow: 1;
    color: #7E8084;
    padding: 0 20px 35px 20px;
    line-height: 1.2;
    font-weight: 200;
}
.slide-image {
    display: block; 
    max-width: 90%;
    margin: 1rem auto 0 auto;
    border-radius: 8px;
    max-height: 400px; /* Limit height of vertical mobile images */
    object-fit: contain;
}
.watch-image {
    /* Min 260px, scale up to 580px */
    max-width: 95%;                  /* Never overflow */
    height: auto;
    object-fit: contain;
    margin: 0.5rem auto;            /* Consistent spacing */
}
.sport-modes-image {
    width: 100%;
    max-width: 350px; /* Control max size of the grid */
    margin: 0 auto 0 auto !important; /* Absolutely no top spacing */
    object-fit: contain;
    border-radius: 8px; /* Match other images */
}

/* Remove margin below last p in the final mobile app slide */
#mobile-app .swiper-slide:last-child p {
    margin-bottom: 0 !important;
}


/* Light section slide adjustments */
.light-section .slide {
     background-color: #fff;
     color: #555;
}
.light-section .slide h3 {
    color: #333;
}

/* Community Slide Specific Overrides */
.community-slide {
     background-color: #fff !important;
     color: #333 !important;
     padding: 0;
     overflow: hidden;
     text-align: left;
     border-radius: 12px; /* More rounded corners for cards */
}
.community-map {
    width: 100%;
    height: 300px;
    object-fit: cover;
    /* Placeholder styles handle the missing ones */
}
.activity-info {
    padding: 1rem 1.2rem; /* Adjust padding */
    display: flex;
    gap: 1rem;
}
.activity-icon {
    font-size: 1.8rem;
    margin-top: 0.2rem;
    flex-shrink: 0; /* Prevent icon from shrinking */
}
/* Style for image icon in community card */
.inline-activity-icon {
    width: 32px;  /* Adjust size */
    height: 32px; /* Adjust size */
    display: inline-block; /* Align properly */
    vertical-align: middle; /* Align with text */
}
.activity-details h4 {
    margin-bottom: 0.2rem;
    font-size: 1.1rem;
    color: #333;
    font-weight: 600; /* Bolder title */
}
.activity-details p {
    font-size: 0.85rem;
    color: #666 !important;
    margin-bottom: 0.5rem;
}
.stats {
    font-size: 0.9rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem 1.5rem; /* More horizontal gap */
    margin-bottom: 0.8rem; /* More space before comment */
    color: #333;
}
.stats span {
    line-height: 1.2; /* Adjust line height */
}
.stats span strong {
    display: block;
    font-size: 0.7rem; /* Smaller label */
    color: #888;
    font-weight: normal;
    text-transform: uppercase; /* Uppercase label */
    margin-bottom: 0.1rem;
}
.comment {
    font-size: 0.9rem !important;
    color: #444 !important; /* Slightly darker comment text */
    margin-bottom: 0 !important;
    line-height: 1.4;
}

/* Swiper Pagination Styles */
.swiper-pagination {
    position: absolute;
    bottom: 10px !important;
    left: 0;
    width: 100%;
    text-align: center;
    z-index: 10;
}

.swiper-pagination-bullet {
    width: 8px;
    height: 8px;
    display: inline-block;
    border-radius: 50%;
    background: #888;
    opacity: 0.6;
    margin: 0 5px !important;
    transition: opacity 0.2s, background-color 0.2s;
    cursor: pointer;
}

.swiper-pagination-bullet-active {
    opacity: 1;
    background: #fff;
}

/* Specific Pagination Colors */
.dark-section .swiper-pagination-bullet { background-color: #666; }
.dark-section .swiper-pagination-bullet-active { background-color: #fff; }
.light-section .swiper-pagination-bullet { background-color: #ccc; }
.light-section .swiper-pagination-bullet-active { background-color: #555; }


/* =========================================
   Testimonial Section
   ========================================= */
#testimonial {
    text-align: center;
}

.testimonial-nav {
    display: flex;
    justify-content: center;
    gap: 1rem;
}

.arrow {
    background-color: #444;
    color: #fff;
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    font-size: 1.5rem;
    cursor: pointer;
    line-height: 40px;
    transition: background-color 0.2s ease;
}
.arrow:hover { background-color: #555; }

/* =========================================
   Belt Section
   ========================================= */
#belt {
    text-align: center;
}

.belt-image {
    max-width: 300px;
    margin: 0 auto 1.5rem auto;
}

.cta-button {
    display: inline-block;
    background-color: #e54d42;
    color: #fff !important;
    padding: 0.8rem 1.5rem;
    border-radius: 25px;
    font-weight: bold;
    margin-top: 1rem;
    transition: background-color 0.2s ease;
}
.cta-button:hover { background-color: #d43c31; }

/* =========================================
   System Requirements Section
   ========================================= */
.devices-image {
    display: block;
    width: 100%;
    height: auto;          /* maintain aspect ratio */
}
#requirements > p {
    max-width: 600px;
    margin: 0 auto 1.5rem auto;
    line-height: 1.3;
    font-size: 18px;
}

.requirements-columns {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    text-align: left;
    max-width: 800px;
    margin: 0 auto;
}
.requirements-columns1 {
    display: none;
}
.requirements-columns h2 {
    line-height: 1;
}
.requirements-columns li {
    margin-bottom: 1rem;
    line-height: 1.2;
}
.requirements-columns li p{
    color: #000;
    margin-bottom: 2px;
    font-size: 18px;
    font-weight: bold;
    line-height: 1;
}

/* =========================================
   Final CTA Section
   ========================================= */
#final-cta {
    overflow: hidden; /* Hide overflow from pattern */
    position: relative; /* For pattern positioning if needed */
    padding: 0;
}

#final-cta h2 {
    font-size: 45px;
    line-height: 1;
    padding: 0 1.5rem;
}


.cta-flex-row {
    display: flex;
    flex-direction: row;
   
    align-items: center;
    gap: 1rem;
    margin: 4rem 0 4rem 0;
}

.footer-section .box{
  text-align: center;
}
.footer-section .box h3 {
    font-size: 18px;
}
.footer-section .box .icon {
    display: inline-block;
    width: 40px;
    height: 40px;
    margin: 8px;
}
.footer-section .box p {
    margin-bottom: 30px;
    font-size: 12px;
}
.footer-section  p{
    font-size: 12px;
}
.footer-section .copyright {
    margin-top: 1.8rem;
}
.footer-section .box .logo {
    width: 107px;
    margin: 20px auto;
}
.footer-section .line {
    width: 310px;
    height: 1px;
    background-color: #E6E6E6;
    margin: 10px auto 20px;
}
.footer-section .box p{
    font-size: 14px;
    line-height: 1.2;
}

.cta-app-icon {
    display: flex;
    align-items: center;
    justify-content: center;
}

.cta-app-buttons {
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
    align-items: flex-start;
}

.cta-app-buttons .app-button img {
    width: 146px;
    height: 43px;
    object-fit: contain;
    box-shadow: 0 2px 8px rgba(0,0,0,0.07);
    border-radius: 12px;
}





.runner-icon {
    width: 99px;
    height: 99px;
    margin: 0 auto 1rem 1.5rem;
    /* Background color removed, using image transparency */
}
.runners-pattern {
   height: 453px;
   background: url(../images/sports-tracker-pattern.webp) top center no-repeat;
   background-size: 1157px;
}


/* =========================================
   Footer
   ========================================= */
footer {
    text-align: center;
    padding: 2.5rem 1.3rem;
    background-color: #222;
    color: #f0f0f0;
}
.footer-logo {
    height: 25px; /* Adjust size */
    width: auto;
    margin: 0 auto 1.5rem auto; /* Center and add space below */
    display: block;
}
footer h3 {
    margin-bottom: 1rem;
    color: #fff;
    font-size: 0.9rem; /* Smaller heading */
    letter-spacing: 1px; /* Add spacing */
    text-transform: uppercase;
}
.social-icons a {
    margin: 0 0.75rem;
    font-size: 1.5rem;
    color: #ccc;
    transition: color 0.2s ease;
    /* Use actual icons (e.g., Font Awesome) here ideally */
    display: inline-block;
    text-decoration: none;
    font-weight: bold; /* Make text bold */
}
.social-icons a:hover { color: #fff; }







/* —— Hero Video Responsive Styling —— */
#hero {
    height: 100vh;              /* full viewport height */
    position: relative;         /* container for video */
    overflow: hidden;           /* hide overflow */
}
.hero-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;                /* fill width */
    height: 100%;               /* fill height */
    object-fit: cover;          /* cover container */
    z-index: 0;                 /* behind hero content */
}
.hero-cover {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;                /* fill width */
    height: 100%;               /* fill height */
    background: rgba(0,0,0,0.4) url(../images/hero-phone.png) center right no-repeat;
    background-size: 120px;
    z-index: 1; 
}
.hero-content {
    position: relative;         /* above video */
    z-index: 1;
}

/* Prevent Hero H1 from scaling */
.hero-content h1 {
    font-size: 58px !important;
    line-height: 1.1;
}

/* Watch Swiper Continuous Scaling Overrides */
.watch-swiper .slide,
.accessories-swiper .slide {
    width: clamp(300px, 60vw, 520px);           /* Dynamic width based on viewport */
    /* padding: clamp(1rem, 4vw, 3.5rem) clamp(1rem, 7vw, 4.5rem); */
    margin: 0;                          /* Remove extra side margins */
    min-height: auto;                   /* Let height adjust to content */
}
.accessories-swiper a {
    display: block;
    width: 100%;
}

.watch-swiper .watch-image {
    width: 100%;                        /* Fill slide width */
    height: auto;                       /* Maintain aspect ratio */
    margin: 0;                          /* No extra vertical space */
}

/* Mobile Swiper Continuous Scaling Overrides */
.mobile-swiper .slide {
    flex: 0 0 auto; /* Prevent flex shrink/grow */
    width: clamp(300px, 60vw, 520px); /* Larger initial min, continuous scaling */
    margin: 0; /* Centered by slider centeredSlides */
    /* padding: clamp(1rem, 4vw, 3.5rem) clamp(1rem, 7vw, 4.5rem); */
    border-radius: 12px;
    overflow: hidden;
    
}
/* Override default max-height for mobile app images */
/* Ensure mobile images fill updated slide width */
.mobile-swiper .slide-image {
    width: 100%;                     /* Fill slide width */
    max-width: 100%;                 /* Override default cap */
    height: auto;                    /* Maintain aspect ratio */
    margin: clamp(1rem, 3vw, 2rem) auto;
    object-fit: contain;
    max-height: none !important;
}
.mobile-swiper .slide-image {
    width: 60% !important;
     height: auto;
    object-fit: contain;
}

.mobile-swiper .slide-image-big {
    width: 99.5% !important;
}
.watch-swiper .watch-image {
    width: 100% !important;
    padding: 30px 0;
}

.footer-section  ul li{
    display: block;
    padding: 0 5px; 
}
.footer-section  ul {
    color:#d2d2d2;
    text-align: left;
    /* text-decoration: underline; */
    line-height: 2;
    width: 310px;
    margin: 0 auto;
}
.footer-section  ul li a {
    position: relative;
    &::after {
        content: "";
        position: absolute;
        width: 100%;
        height: 1px;
        background-color: #999;
        left: 0;
        bottom: -1px;
        
    }
}
/* Increase watch and mobile images on narrow screens */
@media (max-width: 576px) {
    .mobile-swiper .slide,
    .accessories-swiper .slide,
    .watch-swiper .slide {
        width: 75vw !important;
        /* padding: clamp(0.5rem, 4vw, 1.5rem) !important; */
    }
    .mobile-swiper .slide-image {
        width: 60% !important;
        height: auto;
        object-fit: contain;
    }

    .mobile-swiper .slide-image-big {
        width: 99.5% !important;
    }
    
    .hero-content {
       max-width: 200px;
    }
    
}

/* =========================================
   Media Queries for Responsiveness
   ========================================= */
   @media (min-width: 768px) {
    h2 { font-size: 2.5rem; }
    .hero-content h1 { font-size: 4rem; }
    .mobile-swiper .slide,
    .accessories-swiper .slide,
    .watch-swiper .slide {
        width: 40vw;
    }
    section { padding: 4rem 2rem; }
    #hero { padding: 6rem 2rem 3rem 2rem; }

    .carousel-section .swiper {
        padding: clamp(1rem, 1vw, 5rem) !important;
    }

    .requirements-columns {
        flex-direction: row;
        justify-content: space-around;
        gap: 3rem;
    }
    .requirements-columns .column { flex-basis: 45%; }
    .requirements-columns h3 { text-align: left; }
    .requirements-columns ul { padding-left: 0; }

    footer { padding: 3rem 2rem; }
    .runners-pattern {
        height: 500px;
      }

      .hero-cover {
        background-size: 370px;
        background-image:  url(../images/hero-phone-pc.webp);
        background-position: calc(50% + 300px) center;
    }
    .footer-section  ul{
        width: auto;
        text-align: center;
    }
    .footer-section  ul li{
       display: inline-block;
    }
}

@media (min-width: 1024px) {
    .header-wrap {
        width: 900px;
        margin: 0 auto;
    }
    .hero-content {
        max-width: 480px;
    }
    .hero-content h1 {
        font-size: 5rem !important;    
    }
    .activity-info { padding: 1.5rem; }
    .mobile-swiper .slide,
    .accessories-swiper .slide,
    .watch-swiper .slide {
        width: 30vw;
    }

    .light-section h1,
    #requirements > p {
      display: none;
    }
    .requirements-columns1 {
        display: block;
    }
}

@media (min-width: 1200px) {
    .runners-pattern {
      height: 600px;
    }
    .header-wrap {
        width: 1100px;
        margin: 0 auto;
    }
    .hero-content {
      left: calc(50% - 550px);
      max-width: 500px;
    }
    .hero-content p {
        margin: 30px 0;
    }
    .hero-content h1 {
      font-size: 5.3rem !important;    
    }
    #final-cta h2,
    .cta-flex-row {
      width: 1163px;
    } 
    #final-cta h2 {
      margin: 0 auto;
      font-size: 60px;
    }
    .cta-flex-row {
      margin: 3rem auto;
    }
    .devices-image {
        width: 1167px;
        margin: 0 auto;
    }

    .requirements-columns {
        max-width: 1100px;
    }
    .mobile-swiper .slide,
    .accessories-swiper .slide,
    .watch-swiper .slide {
        width: 292px;
    }

    .mobile-swiper .slide-image
     {
        margin: 20px 0;
        width: 162px;
    }

    .carousel-section h2 {
        width: 1100px;
        margin: 0 auto;
        font-size: 40px;
    }
    .carousel-section .swiper {
        width: 1130px;
    }
}