/* Shared styles for suburbanlegend.app */

html {
    scroll-behavior: smooth;
}

/* Navy brand gradient, as on the app icon and App Store header */
.hero,
.page-header {
    background: linear-gradient(135deg, #22334F 0%, #1B2A41 55%, #121D30 100%);
}

.nav-link {
    color: #374151;
    transition: color 0.2s;
}

.nav-link:hover {
    color: #34D06A;
}

/* Sticky header: transparent over the hero, white once scrolled */
.sticky-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 50;
    background: transparent;
    box-shadow: none;
    transition: background 0.3s ease, box-shadow 0.3s ease;
}

.sticky-header:not(.scrolled) .nav-link {
    color: rgba(255, 255, 255, 0.9);
}

.sticky-header.scrolled {
    background: white;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.header-logo {
    opacity: 0;
    transform: translateX(-10px);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.header-logo.visible {
    opacity: 1;
    transform: translateX(0);
}

/* The brand progress bar: green walked, red remaining, white marker */
.progress-track {
    position: relative;
    height: 8px;
    border-radius: 9999px;
    background: rgba(240, 113, 120, 0.75);
}

.progress-fill {
    height: 100%;
    border-radius: 9999px;
    background: #34D06A;
}

.progress-marker {
    position: absolute;
    top: 50%;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: white;
    transform: translate(-50%, -50%);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

.progress-marker::after {
    content: "";
    position: absolute;
    inset: 4px;
    border-radius: 50%;
    background: #34D06A;
}

/* iPhone frame carousel */
.iphone-frame {
    position: relative;
    width: 280px;
    height: 570px;
    background: #1a1a1a;
    border-radius: 45px;
    padding: 12px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.4);
}

.iphone-screen {
    width: 100%;
    height: 100%;
    background: #000;
    border-radius: 35px;
    overflow: hidden;
    position: relative;
}

.iphone-screen img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.carousel-container-vertical {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.carousel-btn-light {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #f3f4f6;
    border: 1px solid #e5e7eb;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.carousel-btn-light:hover {
    background: #e5e7eb;
    transform: scale(1.1);
}

.carousel-btn-light svg {
    width: 20px;
    height: 20px;
    color: #1B2A41;
}

.carousel-dots-light {
    display: flex;
    gap: 8px;
    align-items: center;
}

.carousel-dot-light {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #d1d5db;
    cursor: pointer;
    transition: all 0.2s;
}

.carousel-dot-light.active {
    background: #34D06A;
    transform: scale(1.2);
}
