/* ===========================
   CSS Reset & Base Styles
   =========================== */

*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

:root {
    /* Color Palette */
    --color-primary: #ffbc00;        /* Yellow/Gold */
    --color-primary-dark: #cc9600;
    --color-primary-light: #ffd34d;
    --color-secondary: #000000;      /* Black */
    --color-secondary-light: #1a1a1a;
    --color-accent: #0a92dd;         /* Blue — sections, accents, borders, links */
    --color-navy: #12395c;           /* Deep navy for headings/card titles */
    --color-background: #FFFFFF;
    --color-background-alt: #F8F9FA;
    --color-text: #000000;
    --color-text-light: #666666;
    --color-border: #DEE2E6;

    /* Typography */
    --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-size-base: 16px;
    --font-size-sm: 0.875rem;
    --font-size-lg: 1.125rem;
    --font-size-xl: 1.25rem;
    --font-size-2xl: 1.5rem;
    --font-size-3xl: 2rem;
    --font-size-4xl: 2.5rem;
    --font-size-5xl: 3rem;

    /* Spacing */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 1.5rem;
    --spacing-lg: 2rem;
    --spacing-xl: 3rem;
    --spacing-2xl: 4rem;
    --spacing-3xl: 6rem;

    /* Layout */
    --container-max-width: 1200px;
    --border-radius: 8px;
    --border-radius-lg: 12px;
    --transition-speed: 0.3s;

    /* Shadows */
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
}

html {
    font-size: var(--font-size-base);
    scroll-behavior: smooth;
    /* Belt-and-suspenders with body's overflow-x: hidden — stops the wide
       feed marquee from creating horizontal scroll on iOS Safari, which
       otherwise shifts centered content (e.g. the logo) slightly left. */
    overflow-x: hidden;
}

body {
    font-family: var(--font-primary);
    color: var(--color-text);
    background-color: var(--color-background);
    line-height: 1.6;
    overflow-x: hidden;
}

/* ===========================
   Skip Link (Accessibility)
   =========================== */

.skip-link {
    position: absolute;
    top: -40px;
    left: 0;
    background: var(--color-primary);
    color: white;
    padding: var(--spacing-sm);
    text-decoration: none;
    z-index: 100;
    font-weight: 600;
}

.skip-link:focus {
    top: 0;
}

/* ===========================
   Visually Hidden (Accessibility)
   =========================== */

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* ===========================
   Container
   =========================== */

.container {
    width: 100%;
    max-width: var(--container-max-width);
    margin: 0 auto;
    padding: 0 var(--spacing-md);
}

/* ===========================
   Background Logo (Scroll Effect)
   =========================== */

.background-logo {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 0;
    opacity: 0;
    transition: opacity 0.6s ease-in-out;
    pointer-events: none;
}

.background-logo.visible {
    opacity: 0.15;
}

.background-logo-img {
    height: 500px;
    width: auto;
    max-width: 90vw;
    object-fit: contain;
}

/* ===========================
   Header & Navigation
   =========================== */

header {
    background-color: var(--color-background);
    padding: var(--spacing-xl) 0;
    box-shadow: var(--shadow-md);
    position: sticky;
    top: 0;
    z-index: 50;
    transition: padding 0.3s ease-in-out;
}

/* Grass-textured header behind the floating logo */
.header-grass {
    background-image:
        linear-gradient(rgba(0, 0, 0, 0.05), rgba(0, 0, 0, 0.12)),
        url("assets/hot_shots_grass_background_image_1920x800.gif");
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
}

header.scrolled {
    padding: var(--spacing-md) 0;
}

.logo-container {
    display: flex;
    justify-content: center;
    align-items: center;
}

.logo-container a {
    display: inline-block;
    text-decoration: none;
    line-height: 0;
}

.logo-container a:focus {
    outline: 3px solid var(--color-accent);
    outline-offset: 4px;
    border-radius: var(--border-radius);
}

.logo-img {
    height: 240px;
    width: auto;
    max-width: 90%;
    object-fit: contain;
    transition: transform var(--transition-speed), height 0.3s ease-in-out;
}

header.scrolled .logo-img {
    height: 120px;
}

.logo-container a:hover .logo-img,
.logo-container a:focus .logo-img {
    transform: scale(1.02);
}

/* ===========================
   Announcement Banner (day camp)
   =========================== */

.announce-banner {
    background: var(--color-primary);
    padding: var(--spacing-sm) 0;
    position: relative;
    z-index: 1;
}

.announce-banner-inner {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: var(--spacing-md);
    text-align: center;
}

.announce-banner-text {
    color: var(--color-navy);
    font-weight: 800;
    font-size: var(--font-size-2xl);
}

.announce-banner-btn {
    display: inline-block;
    background: var(--color-accent);
    color: #ffffff;
    font-weight: 700;
    text-decoration: none;
    padding: 0.5rem 1.5rem;
    border-radius: 999px;
    box-shadow: var(--shadow-sm);
    transition: background-color var(--transition-speed), transform 0.15s;
}

.announce-banner-btn:hover,
.announce-banner-btn:focus {
    background: var(--color-navy);
    transform: translateY(-1px);
}

/* ===========================
   Hero Section
   =========================== */

.hero {
    background-color: var(--color-accent);
    color: white;
    padding: var(--spacing-3xl) 0;
    text-align: center;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 1;
}

.hero-title {
    font-size: var(--font-size-4xl);
    font-weight: 900;
    margin-bottom: var(--spacing-md);
    line-height: 1.2;
    animation: fadeInUp 0.8s ease-out;
}

.hero-subtitle {
    font-size: var(--font-size-xl);
    font-weight: 400;
    margin-bottom: var(--spacing-xl);
    color: #ffffff;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    animation: fadeInUp 0.8s ease-out 0.2s both;
}

.coming-soon-badge {
    display: inline-block;
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
    padding: var(--spacing-md) var(--spacing-xl);
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-lg);
    animation: fadeInUp 0.8s ease-out 0.4s both, pulse 2s ease-in-out infinite;
}

.badge-text {
    font-size: var(--font-size-xl);
    font-weight: 700;
    color: white;
}

/* Hero CTA — yellow pill linking to the pitching-credits purchase page */
.hero-cta-button {
    display: inline-block;
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
    color: var(--color-secondary);
    font-size: var(--font-size-lg);
    font-weight: 800;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    text-decoration: none;
    padding: var(--spacing-md) var(--spacing-2xl);
    border-radius: 999px;
    box-shadow: var(--shadow-lg);
    animation: fadeInUp 0.8s ease-out 0.4s both;
    transition: transform var(--transition-speed), box-shadow var(--transition-speed);
}

.hero-cta-button:hover,
.hero-cta-button:focus {
    transform: translateY(-3px);
    box-shadow: var(--shadow-xl);
}

.hero-cta-button:active {
    transform: translateY(-1px);
}

/* ===========================
   Features Section
   =========================== */

.features {
    padding: var(--spacing-3xl) 0;
    background-color: var(--color-background-alt);
    position: relative;
    z-index: 1;
}

.section-title {
    font-size: var(--font-size-3xl);
    font-weight: 800;
    text-align: center;
    margin-bottom: var(--spacing-xl);
    color: var(--color-navy);
}

/* Short yellow underline accent beneath a section title */
.section-title-accent {
    margin-bottom: var(--spacing-2xl);
}

.section-title-accent::after {
    content: "";
    display: block;
    width: 64px;
    height: 4px;
    margin: var(--spacing-md) auto 0;
    background: var(--color-primary);
    border-radius: 2px;
}

.section-title-accent-light {
    color: white;
}

.features-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--spacing-lg);
    margin-top: var(--spacing-xl);
}

.feature-card {
    background: white;
    padding: var(--spacing-xl);
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-md);
    border-top: 4px solid var(--color-accent);
    transition: transform var(--transition-speed), box-shadow var(--transition-speed), border-color var(--transition-speed);
    text-align: center;
}

.feature-card:hover,
.feature-card:focus-within {
    transform: translateY(-5px);
    box-shadow: var(--shadow-xl);
    border-top-color: var(--color-primary);
}

.feature-icon {
    font-size: var(--font-size-5xl);
    margin-bottom: var(--spacing-md);
}

.feature-icon-img {
    width: 110px;
    height: 110px;
    object-fit: contain;
}

.feature-title {
    font-size: var(--font-size-2xl);
    font-weight: 700;
    margin-bottom: var(--spacing-sm);
    color: var(--color-navy);
}

.feature-description {
    font-size: var(--font-size-lg);
    color: var(--color-text-light);
    line-height: 1.7;
}

/* ===========================
   Social CTA Section
   =========================== */

.signup {
    padding: var(--spacing-3xl) 0;
    background: var(--color-accent);
    color: white;
    position: relative;
    z-index: 1;
}

.signup-content {
    max-width: 600px;
    margin: 0 auto;
    text-align: center;
}

.signup-title {
    font-size: var(--font-size-3xl);
    font-weight: 800;
    margin-bottom: var(--spacing-md);
}

.signup-description {
    font-size: var(--font-size-lg);
    margin-bottom: var(--spacing-xl);
    color: #ffffff;
}

.social-cta-buttons {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--spacing-md);
    max-width: 500px;
    margin: 0 auto;
}

.social-cta-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--spacing-sm);
    padding: var(--spacing-sm) var(--spacing-lg);
    font-size: var(--font-size-xl);
    font-weight: 700;
    color: var(--color-secondary);
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
    text-decoration: none;
    border-radius: 999px;
    transition: transform var(--transition-speed), box-shadow var(--transition-speed);
    box-shadow: var(--shadow-lg);
    flex: 1;
    width: 100%;
    max-width: 280px;
}

.social-cta-button .social-cta-icon {
    width: 46px;
    height: 46px;
    border-radius: 12px;
    flex-shrink: 0;
}

.social-cta-button:hover,
.social-cta-button:focus {
    transform: translateY(-4px);
    box-shadow: var(--shadow-xl);
}

.social-cta-button:focus {
    outline: 3px solid white;
    outline-offset: 4px;
}

.social-cta-button:active {
    transform: translateY(-2px);
}

/* ===========================
   Latest From Our Feeds
   =========================== */

.feed {
    padding: var(--spacing-2xl) 0 var(--spacing-3xl);
    background: var(--color-navy);
    color: white;
    position: relative;
    z-index: 1;
}

.feed-header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--spacing-md);
    flex-wrap: wrap;
    margin-bottom: var(--spacing-xl);
}

.feed-live {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    background: var(--color-primary);
    color: var(--color-secondary);
    font-size: var(--font-size-sm);
    font-weight: 800;
    letter-spacing: 0.08em;
    padding: 0.3rem 0.9rem;
    border-radius: 999px;
}

.feed-live-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #e0245e;
    box-shadow: 0 0 0 0 rgba(224, 36, 94, 0.7);
    animation: livePulse 1.8s ease-out infinite;
}

@keyframes livePulse {
    0% { box-shadow: 0 0 0 0 rgba(224, 36, 94, 0.6); }
    70% { box-shadow: 0 0 0 8px rgba(224, 36, 94, 0); }
    100% { box-shadow: 0 0 0 0 rgba(224, 36, 94, 0); }
}

.feed-title {
    font-size: var(--font-size-2xl);
    font-weight: 800;
    color: white;
    margin: 0;
}

/* Full-bleed marquee viewport (spans the whole screen width) */
.feed-marquee {
    overflow: hidden;
    width: 100%;
    padding: var(--spacing-xs) 0 var(--spacing-md);
}

/* The track is two identical lanes wide; it slides left by exactly one lane
   and loops seamlessly. --marquee-cards (set per-render by JS to the lane's
   card count) drives a constant slow speed. translate3d + will-change force
   the whole track onto one GPU layer — without this, iOS Safari fails to
   repaint cards as they move and they flicker/disappear. */
.feed-track {
    display: flex;
    width: max-content;
    /* Duration is set inline by JS per device (concrete seconds). Do NOT use
       calc(var()*time) here — Safari desktop mishandles it and runs fast.
       This value is only a fallback if the script doesn't run. */
    animation: feedMarquee 96s linear infinite;
    will-change: transform;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
}

.feed-lane {
    display: flex;
}

/* Pause when a visitor hovers or tabs into the feed */
.feed-marquee:hover .feed-track,
.feed-marquee:focus-within .feed-track {
    animation-play-state: paused;
}

@keyframes feedMarquee {
    from { transform: translate3d(0, 0, 0); }
    to { transform: translate3d(-50%, 0, 0); }
}

/* Reduced motion: stop the auto-scroll, let the visitor scroll by hand */
@media (prefers-reduced-motion: reduce) {
    .feed-track {
        animation: none !important;
        transform: none !important;
    }
    .feed-marquee {
        overflow-x: auto;
    }
}

.feed-card {
    flex: 0 0 300px;
    /* margin (not flex gap) so every card carries its own trailing space —
       keeps the two-lane loop seamless. */
    margin-right: var(--spacing-lg);
    background: white;
    color: var(--color-text);
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-lg);
    padding: var(--spacing-md);
    display: flex;
    flex-direction: column;
    gap: var(--spacing-sm);
}

.feed-card-media {
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    border-radius: var(--border-radius);
    background: var(--color-background-alt);
}

.feed-card-head {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
}

.feed-card-avatar {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    flex-shrink: 0;
    background-size: cover;
    background-position: center;
}

.feed-card-avatar-ig {
    background-image: url("assets/social-instagram.png");
}

.feed-card-avatar-fb {
    background-image: url("assets/social-facebook.png");
}

.feed-card-handle {
    display: block;
    font-weight: 700;
    font-size: var(--font-size-base);
    color: var(--color-navy);
    line-height: 1.2;
}

.feed-card-meta {
    display: block;
    font-size: var(--font-size-sm);
    color: var(--color-text-light);
}

.feed-card-body {
    font-size: var(--font-size-base);
    line-height: 1.6;
    color: var(--color-text);
    /* Clamp long captions so cards stay even */
    display: -webkit-box;
    -webkit-line-clamp: 5;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.feed-card-link {
    margin-top: auto;
    font-weight: 700;
    font-size: var(--font-size-sm);
    color: var(--color-accent);
    text-decoration: none;
}

.feed-card-link:hover,
.feed-card-link:focus {
    text-decoration: underline;
}

/* ===========================
   Footer
   =========================== */

footer {
    background-color: var(--color-accent);
    color: #ffffff;
    padding: var(--spacing-xl) 0 var(--spacing-md);
    position: relative;
    z-index: 1;
}

.footer-content {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--spacing-xl);
    margin-bottom: var(--spacing-xl);
}

.footer-section {
    text-align: center;
}

.footer-heading {
    font-size: var(--font-size-xl);
    font-weight: 700;
    color: white;
    margin-bottom: var(--spacing-sm);
}

.footer-text {
    font-size: var(--font-size-base);
    line-height: 1.7;
}

.footer-address {
    font-style: normal;
    font-size: var(--font-size-base);
}

.footer-address a {
    color: var(--color-primary-light);
    text-decoration: none;
    transition: color var(--transition-speed);
}

.footer-address a:hover,
.footer-address a:focus {
    color: #ffffff;
    text-decoration: underline;
}

.footer-links {
    list-style: none;
    padding: 0;
}

.footer-links li {
    margin-bottom: var(--spacing-xs);
}

.footer-links a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: color var(--transition-speed);
}

.footer-links a:hover,
.footer-links a:focus {
    color: var(--color-accent);
    text-decoration: underline;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: var(--spacing-md);
    text-align: center;
}

.copyright {
    font-size: var(--font-size-sm);
    margin-bottom: var(--spacing-xs);
}

.footer-note {
    font-size: var(--font-size-sm);
    color: rgba(255, 255, 255, 0.6);
}

/* ===========================
   Focus Styles (Accessibility)
   =========================== */

a:focus,
button:focus,
input:focus {
    outline: 3px solid var(--color-accent);
    outline-offset: 2px;
}

/* ===========================
   Animations
   =========================== */

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

/* ===========================
   Responsive Design
   =========================== */

/* Tablets and up */
@media (min-width: 768px) {
    .logo-img {
        height: 360px;
    }

    header.scrolled .logo-img {
        height: 180px;
    }

    .background-logo-img {
        height: 600px;
    }

    .hero-title {
        font-size: var(--font-size-5xl);
    }

    .features-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .social-cta-buttons {
        flex-direction: row;
        max-width: 600px;
    }

    .footer-content {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer-section:first-child {
        text-align: left;
    }

    .footer-section:nth-child(2) {
        text-align: center;
    }

    .footer-section:last-child {
        text-align: right;
        margin-right: calc(-1 * var(--spacing-md));
    }
}

/* Large desktops */
@media (min-width: 1024px) {
    .logo-img {
        height: 400px;
    }

    header.scrolled .logo-img {
        height: 200px;
    }

    .background-logo-img {
        height: 700px;
    }

    .container {
        padding: 0 var(--spacing-xl);
    }

    .hero {
        padding: var(--spacing-3xl) 0 var(--spacing-3xl);
    }

    .hero-title {
        font-size: 4rem;
    }
}

/* Reduced motion (Accessibility) */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

/* High contrast mode (Accessibility) */
@media (prefers-contrast: high) {
    :root {
        --color-primary: #ffbc00;
        --color-accent: #0a92dd;
        --color-secondary: #000000;
        --color-text: #000000;
        --color-background: #FFFFFF;
    }

    .feature-card {
        border: 2px solid var(--color-secondary);
    }
}

/* Print styles */
@media print {
    .signup,
    header {
        display: none;
    }

    body {
        color: black;
        background: white;
    }

    a {
        text-decoration: underline;
    }
}
