/* ══════════════════════════════════════════════════════════════
   HERICANES VOLLEYBALL CLUB - ATHLETIC DESIGN SYSTEM
   Mobile-Optimized Girls Middle & High School Club Volleyball Site
   ══════════════════════════════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@600;700;800;900&family=Inter:wght@400;500;600;700&display=swap');

:root {
    --pink-primary: #e57b9d;
    --pink-hover: #d3688a;
    --pink-light: #fef0f4;
    --pink-dark: #b84368;
    --dark-bg: #121316;
    --dark-card: #1c1d22;
    --dark-border: #2c2e36;
    --bg-light: #f5f6fa;
    --bg-white: #ffffff;
    --text-dark: #16171b;
    --text-muted: #646875;
    --text-light: #f0f1f5;
    --border-light: #e2e4ed;
    --radius-sm: 6px;
    --radius-md: 12px;
    --radius-lg: 18px;
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 6px 20px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 12px 36px rgba(0, 0, 0, 0.12);
}

/* ── Reset & Base ── */
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    background-color: var(--bg-light);
    color: var(--text-dark);
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    -webkit-tap-highlight-color: transparent;
}

h1, h2, h3, h4, .brand-font {
    font-family: 'Montserrat', sans-serif;
    letter-spacing: -0.02em;
    font-weight: 800;
    text-transform: uppercase;
}

a { color: inherit; text-decoration: none; transition: all 0.2s ease; }
img { max-width: 100%; height: auto; display: block; }

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

/* ── Buttons & Badges ── */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.8rem 1.6rem;
    min-height: 46px;
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 0.88rem;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    border-radius: var(--radius-sm);
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
    touch-action: manipulation;
}

.btn-primary {
    background-color: var(--pink-primary);
    color: #ffffff;
    box-shadow: 0 4px 14px rgba(229, 123, 157, 0.35);
}
.btn-primary:hover, .btn-primary:active {
    background-color: var(--pink-hover);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(229, 123, 157, 0.45);
}

.btn-dark {
    background-color: var(--dark-bg);
    color: #ffffff;
}
.btn-dark:hover, .btn-dark:active {
    background-color: #26272e;
    transform: translateY(-2px);
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--pink-primary);
    color: var(--pink-primary);
}
.btn-outline:hover, .btn-outline:active {
    background-color: var(--pink-primary);
    color: #ffffff;
}

.badge {
    display: inline-block;
    padding: 0.3rem 0.8rem;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.75rem;
    font-weight: 700;
    border-radius: 50px;
    text-transform: uppercase;
}
.badge-pink { background-color: var(--pink-light); color: var(--pink-dark); }
.badge-dark { background-color: var(--dark-bg); color: #ffffff; }
.badge-black { background-color: #000000; color: #ffffff; border: 1px solid #333; }
.badge-gray { background-color: #555964; color: #ffffff; }
.badge-white { background-color: #ffffff; color: var(--dark-bg); border: 1px solid #ccc; }
.badge-success { background-color: #e8f5e9; color: #2e7d32; }
.badge-warning { background-color: #fff3e0; color: #e65100; }

/* ── Header & Navigation ── */
.site-header {
    background-color: var(--dark-bg);
    border-bottom: 3px solid var(--pink-primary);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 4px 16px rgba(0,0,0,0.3);
}

.header-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 65px;
}

.brand-logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.brand-logo img {
    height: 24px;
    width: auto;
    object-fit: contain;
}

.main-nav {
    display: flex;
    align-items: center;
    gap: 1.6rem;
}

.nav-link {
    font-family: 'Montserrat', sans-serif;
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--text-light);
    text-transform: uppercase;
    letter-spacing: 0.04em;
    position: relative;
    padding: 0.4rem 0;
}

.nav-link:hover, .nav-link.active {
    color: var(--pink-primary);
}

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 100%;
    height: 3px;
    background-color: var(--pink-primary);
    border-radius: 2px;
}

.mobile-nav-toggle {
    display: none;
    background: none;
    border: none;
    color: #ffffff;
    font-size: 1.6rem;
    cursor: pointer;
    padding: 0.5rem;
    line-height: 1;
}

/* ── Hero Section ── */
.hero-section {
    background: linear-gradient(90deg, #121316 0%, rgba(18, 19, 22, 0.94) 40%, rgba(18, 19, 22, 0.65) 75%, rgba(18, 19, 22, 0.35) 100%),
                url('/assets/images/hero_bg.jpg') center right / cover no-repeat;
    color: #ffffff;
    padding: 5.5rem 0 5rem;
    position: relative;
    overflow: hidden;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 3rem;
    align-items: center;
}

.hero-content h1 {
    font-size: 3.2rem;
    line-height: 1.08;
    margin-bottom: 1.2rem;
    color: #ffffff;
    text-shadow: 0 2px 10px rgba(0,0,0,0.8);
}

.hero-content p {
    font-size: 1.15rem;
    color: #d0d4e0;
    margin-bottom: 2.2rem;
    max-width: 540px;
    text-shadow: 0 2px 8px rgba(0,0,0,0.8);
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

/* Mobile Hero Photo Card */
.mobile-hero-photo {
    display: none;
}

/* ── Content Sections ── */
.section { padding: 3.5rem 0; }
.section-title {
    font-size: 2.1rem;
    text-align: center;
    margin-bottom: 0.5rem;
}
.section-subtitle {
    text-align: center;
    color: var(--text-muted);
    font-size: 1rem;
    margin-bottom: 2.5rem;
}

/* ── Grids ── */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.6rem; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.8rem; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.4rem; }

.card {
    background-color: var(--bg-white);
    border-radius: var(--radius-md);
    border: 1px solid var(--border-light);
    padding: 1.6rem;
    box-shadow: var(--shadow-sm);
    transition: all 0.25s ease;
}

.card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
    border-color: rgba(229, 123, 157, 0.35);
}

/* ── Tournament Cards ── */
.tournament-card {
    border-top: 4px solid var(--pink-primary);
}

.tournament-date {
    display: inline-block;
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    color: var(--pink-dark);
    font-size: 0.85rem;
    margin-bottom: 0.4rem;
}

.tournament-title {
    font-size: 1.2rem;
    margin-bottom: 0.4rem;
    color: var(--text-dark);
}

.tournament-location {
    font-size: 0.88rem;
    color: var(--text-muted);
    margin-bottom: 1rem;
}

.tournament-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 0.8rem;
    border-top: 1px solid var(--border-light);
}

/* ── Team Cards ── */
.team-card {
    border-top: 5px solid var(--pink-primary);
}
.team-card-black { border-top-color: #000000; }
.team-card-gray { border-top-color: #606470; }
.team-card-white { border-top-color: #e57b9d; }

/* ── Forms ── */
.form-group { margin-bottom: 1.2rem; }
.form-label {
    display: block;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.82rem;
    font-weight: 700;
    margin-bottom: 0.4rem;
    text-transform: uppercase;
}

.form-control {
    width: 100%;
    padding: 0.85rem 1rem;
    font-family: 'Inter', sans-serif;
    font-size: 16px;
    border: 1px solid var(--border-light);
    border-radius: var(--radius-sm);
    background-color: var(--bg-white);
    transition: all 0.2s ease;
}

.form-control:focus {
    outline: none;
    border-color: var(--pink-primary);
    box-shadow: 0 0 0 3px rgba(229, 123, 157, 0.2);
}

/* ── Coach Portal ── */
.dues-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 0.8rem;
    min-width: 500px;
}

.dues-table th, .dues-table td {
    padding: 0.85rem 1rem;
    text-align: left;
    border-bottom: 1px solid var(--border-light);
}

.dues-table th {
    background-color: var(--bg-light);
    font-family: 'Montserrat', sans-serif;
    font-size: 0.78rem;
    font-weight: 800;
    text-transform: uppercase;
}

.table-responsive {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

/* ── Footer ── */
.site-footer {
    background-color: var(--dark-bg);
    color: var(--text-light);
    padding: 3rem 0 1.8rem;
    margin-top: auto;
    border-top: 4px solid var(--pink-primary);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 2.5rem;
    margin-bottom: 2rem;
}

.footer-brand p {
    color: #a0a4b2;
    margin-top: 0.8rem;
    font-size: 0.9rem;
    max-width: 380px;
}

.footer-title {
    color: #ffffff;
    font-size: 0.95rem;
    margin-bottom: 1rem;
}

.footer-links { list-style: none; }
.footer-links li { margin-bottom: 0.5rem; }
.footer-links a { color: #a0a4b2; font-size: 0.88rem; display: inline-block; padding: 0.2rem 0; }
.footer-links a:hover { color: var(--pink-primary); }

.footer-bottom {
    text-align: center;
    padding-top: 1.5rem;
    border-top: 1px solid var(--dark-border);
    color: #707482;
    font-size: 0.82rem;
}

/* ══════════════════════════════════════════════════════════════
   MOBILE & TABLET RESPONSIVE STYLES
   ══════════════════════════════════════════════════════════════ */

@media (max-width: 900px) {
    .hero-grid { grid-template-columns: 1fr; gap: 1.8rem; text-align: center; }
    .hero-content h1 { font-size: 2.5rem; }
    .hero-content p { margin-left: auto; margin-right: auto; }
    .hero-buttons { justify-content: center; }
    .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
    .grid-2 { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
    
    /* Make hero image prominently featured on mobile */
    .mobile-hero-photo {
        display: block;
        margin-top: 0.5rem;
        border-radius: var(--radius-md);
        overflow: hidden;
        box-shadow: 0 16px 40px rgba(0,0,0,0.6);
        border: 3px solid rgba(229, 123, 157, 0.5);
    }
    
    .hero-section {
        background: linear-gradient(180deg, #121316 0%, #1c1d22 100%);
        padding: 3.5rem 0 3rem;
    }
}

@media (max-width: 768px) {
    .header-container { height: 60px; }
    .mobile-nav-toggle { display: block; }
    
    .main-nav {
        display: none;
        position: absolute;
        top: 60px;
        left: 0;
        width: 100%;
        background-color: var(--dark-bg);
        border-bottom: 3px solid var(--pink-primary);
        flex-direction: column;
        padding: 1.2rem 1.5rem;
        gap: 1rem;
        box-shadow: 0 10px 25px rgba(0,0,0,0.5);
    }
    
    .main-nav.active {
        display: flex;
    }

    .main-nav .nav-link {
        font-size: 1rem;
        padding: 0.5rem 0;
        width: 100%;
        border-bottom: 1px solid var(--dark-border);
    }

    .main-nav .btn {
        width: 100%;
        margin-top: 0.5rem;
    }
}

@media (max-width: 580px) {
    .container { padding: 0 1rem; }
    .hero-content h1 { font-size: 2.1rem; }
    .hero-content p { font-size: 1rem; margin-bottom: 1.5rem; }
    .section-title { font-size: 1.7rem; }
    .grid-3, .grid-4, .grid-2 { grid-template-columns: 1fr; }
    .btn { width: 100%; }
}
