/* Mobile-First Responsive Styles */

/* Base Mobile Styles */
.hero {
    padding: 1rem 0 2rem;
}

/* CTA heading size improvements on small screens */
@media (max-width: 575.98px) {
  .cta .display-1 {
    font-size: clamp(2.25rem, 12vw, 3rem) !important;
    line-height: 1.1 !important;
    letter-spacing: -0.015em;
  }
}

@media (min-width: 576px) and (max-width: 991.98px) {
  .cta .display-1 {
    font-size: clamp(2.5rem, 6vw, 3.5rem) !important;
    line-height: 1.1 !important;
    letter-spacing: -0.015em;
  }
}

.hero-container {
    padding: 0 1rem;
    max-width: 100%;
}

.hero-row {
    flex-direction: column;
    gap: 2rem;
}

.hero-left {
    text-align: left;
    padding: 1rem 0;
}

.hero-title {
    font-size: calc(1.75rem + 1vw);
    letter-spacing: -0.5px;
    margin-bottom: 1rem;
}

.hero-subtext {
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 2rem;
    max-width: 100%;
}

/* App store badges layout on mobile: tighter spacing, single row with wrap */
.hero-badges {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem;
}

/* Override inline widths for badge images to avoid excessive spacing on small screens */
.hero .hero-badges img {
    width: 40vw !important;
    max-width: 170px !important;
    min-width: 96px !important;
    height: auto;
}

/* Also apply same tighter sizing to CTA badges */
.cta .hero-badges img { width: auto !important; max-width: none !important; }

/* Reduce the gap in CTA specifically and ensure centered alignment */
.cta .hero-badges {
    gap: 0 !important; /* absolutely no gap between badges */
    justify-content: center !important;
    flex-wrap: nowrap !important;
}

/* Provide a hairline space if rendering appears cramped on some devices */
.cta .hero-badges a + a { margin-left: 4px !important; }

/* Remove any default margins around anchors in CTA badges */
.cta .hero-badges a { margin: 0 !important; }

.hero-image {
    transform: none !important;
    margin: 0 auto;
    max-width: 95%;
    box-shadow: 
        0 4px 6px rgba(48, 179, 174, 0.05),
        0 10px 15px rgba(48, 179, 174, 0.1);
}

/* Navbar Mobile Styles */
.navbar {
    padding: 0.5rem 0;
}

.navbar-container {
    padding: 0.5rem 1rem;
}

 .navbar-nav{
   position:absolute; top:100%; left:0; right:0;
   background:var(--background-light);
   padding:1rem;
   box-shadow:0 4px 6px rgba(0,0,0,0.1);
 }
 html[data-theme="dark"] .navbar-nav{ background:var(--background-light); }
 /* Collapse control */
 .navbar-nav.collapse{ display:none; }
 .navbar-nav.collapse.show{
   display:flex;
   flex-direction:column;
   align-items:flex-start;
   gap:1rem;
 }

.navbar-toggler {
    display: block;
    background: transparent;
    border: none;
    padding: 0.5rem;
}

.nav-link {
    padding: 0.5rem 0;
    width: 100%;
}

/* Improve contrast and affordance on teal menu */

.nav-link.cta-link {
    margin-top: 0.5rem;
    text-align: center;
    width: auto;
}

/* Tablet Breakpoint */
@media (min-width: 576px) {
    .hero {
        padding: 2rem 0 3rem;
    }

    .hero-container {
        padding: 0 1.5rem;
    }

    .hero-title {
        font-size: calc(2rem + 1vw);
    }

    .hero-subtext {
        font-size: 1.125rem;
    }

    .hero-badges {
        flex-direction: row;
        align-items: center;
        gap: 0.75rem;
    }

    .store-badge {
        width: auto;
    }

    .cta .hero-badges img { width: auto !important; max-width: none !important; }
}

/* Desktop Breakpoint */
@media (min-width: 992px) {
    .hero {
        padding: 6rem 0;
    }

    .hero-container {
        padding: 0 2rem;
        max-width: 1200px;
        margin: 0 auto;
    }

    .hero-row {
        flex-direction: row;
        align-items: center;
        gap: 4rem;
    }

    .hero-title {
        font-size: 3.5rem;
        margin-bottom: 1.5rem;
    }

    .hero-subtext {
        font-size: 1.25rem;
        max-width: 580px;
    }

    .hero-image {
        transform: perspective(1000px) rotateY(-5deg) translateZ(0) !important;
        max-width: 100%;
    }

    .navbar-nav {
        display: flex !important;
        position: static;
        flex-direction: row;
        padding: 0;
        box-shadow: none;
        background: transparent;
    }

    .navbar-toggler {
        display: none;
    }
}
