/*
 * Global styles for ContestPrepCoach.com
 * The color palette uses dark backgrounds with red accents to convey a
 * cinematic, motivational vibe. The layout is responsive and simple,
 * employing CSS grid and flexbox to adapt across screen sizes. Feel free
 * to adjust breakpoints, font families or colours to better suit your
 * brand guidelines.
 */

/* Reset some default browser spacing */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: Arial, Helvetica, sans-serif;
    background-color: #0f0f0f;
    color: #f5f5f5;
    line-height: 1.6;
}

/* Navigation */
header {
    background-color: #080808;
    position: sticky;
    top: 0;
    z-index: 1000;
    width: 100%;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

nav {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
}

nav .logo {
    font-size: 1.8rem;
    font-weight: bold;
    color: #e50914;
}

nav ul {
    list-style: none;
    display: flex;
    gap: 1rem;
}

nav ul li a {
    color: #f5f5f5;
    text-decoration: none;
    font-weight: bold;
    transition: color 0.3s;
}

nav ul li a:hover {
    color: #e50914;
}

/* Hero section */
.hero {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 70vh;
    text-align: center;
    color: #fff;
    background-image: url('images/hero.jpg');
    background-size: cover;
    background-position: center;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.65);
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
    padding: 0 1rem;
}

.hero h1 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
    color: #e50914;
}

.hero p {
    font-size: 1.25rem;
    margin-bottom: 1rem;
}

.cta-buttons {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.cta-buttons a {
    background: #e50914;
    color: #fff;
    padding: 0.75rem 1.5rem;
    border-radius: 4px;
    text-decoration: none;
    font-weight: bold;
    transition: background 0.3s;
}

.cta-buttons a:hover {
    background: #c40610;
}

/* Generic section styling */
.section {
    padding: 4rem 1rem;
    max-width: 1200px;
    margin: 0 auto;
}

.section-title {
    font-size: 2.2rem;
    margin-bottom: 1.5rem;
    color: #e50914;
    text-align: center;
}

.features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.feature {
    background: #1a1a1a;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

.feature h3 {
    margin-top: 0;
    margin-bottom: 0.5rem;
    color: #e50914;
}

.feature p {
    margin-bottom: 0;
    font-size: 0.95rem;
}

.call-to-action {
    text-align: center;
    margin-top: 2rem;
}

.call-to-action a {
    display: inline-block;
    background: #e50914;
    color: #fff;
    padding: 1rem 2rem;
    border-radius: 4px;
    text-decoration: none;
    font-weight: bold;
    transition: background 0.3s;
}

.call-to-action a:hover {
    background: #c40610;
}

/* Testimonials */
.testimonials {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    justify-content: center;
    margin-top: 2rem;
}

.testimonial {
    background: #1a1a1a;
    padding: 1.5rem;
    border-radius: 8px;
    flex: 1 1 300px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

.testimonial p {
    font-style: italic;
    font-size: 0.95rem;
}

.testimonial h4 {
    margin-top: 1rem;
    color: #e50914;
}

/* Footer */
.footer {
    background: #080808;
    padding: 2rem 1rem;
    text-align: center;
    color: #8f8f8f;
    font-size: 0.9rem;
}

/* Utility classes */
.hidden {
    display: none;
}

/* Responsive typography */
@media (min-width: 768px) {
    .hero h1 {
        font-size: 3rem;
    }
    .hero p {
        font-size: 1.5rem;
    }
    .section-title {
        font-size: 2.5rem;
    }
}

/* Results grid */
.results-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.result-item {
    background: #1a1a1a;
    padding: 1rem;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
    text-align: center;
}

.result-item img {
    width: 100%;
    height: auto;
    border-radius: 4px;
    margin-bottom: 0.75rem;
}

/* Team gallery grid for group photos */
.team-grid {
    display: grid;
    /* Create flexible columns that scale nicely across screen sizes */
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.team-grid img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}