/* =========================================
   1. VARIABLES & RESET
   ========================================= */
:root {
    --primary-color: #e63946; /* Sporty Red */
    --bg-main: #ffffff;       /* Clean White Background */
    --bg-alt: #f8f9fa;        /* Light Gray for alternating sections */
    --text-main: #222222;     /* Dark Gray/Black for main text */
    --text-muted: #6c757d;    /* Medium Gray for secondary text */
    --border-color: #e0e0e0;  /* Light subtle borders */
    --font-main: 'Roboto', sans-serif;
    --max-width: 1200px;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: var(--font-main);
    background-color: var(--bg-main);
    color: var(--text-main);
    line-height: 1.6;
}

a { text-decoration: none; color: inherit; transition: 0.3s; }
ul { list-style: none; }
img { max-width: 100%; display: block; }

/* =========================================
   2. UTILITY CLASSES
   ========================================= */
.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 20px;
}

.btn {
    display: inline-block;
    padding: 10px 25px;
    border-radius: 4px;
    font-weight: bold;
    text-transform: uppercase;
    cursor: pointer;
}

.btn-primary {
    background-color: var(--primary-color);
    color: white;
    border: 2px solid var(--primary-color);
}
.btn-primary:hover {
    background-color: transparent;
    color: var(--primary-color);
}

.btn-outline {
    background-color: transparent;
    border: 2px solid var(--bg-main);
    color: var(--bg-main);
}
.btn-outline:hover {
    background-color: var(--bg-main);
    color: var(--text-main);
}

.section-padding { padding: 60px 0; }
.section-title { text-align: center; margin-bottom: 40px; font-size: 2rem; color: var(--text-main); }
.bg-dark { background-color: var(--bg-alt); } /* Repurposed to light gray so you don't have to edit HTML */
.align-center { align-items: center; }

/* =========================================
   3. HEADER & NAVIGATION
   ========================================= */
.main-header {
    background-color: var(--bg-main);
    padding: 20px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid var(--border-color);
    box-shadow: 0 2px 10px rgba(0,0,0,0.05); /* Soft shadow for depth */
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap; 
}

.logo a {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--text-main);
    letter-spacing: 1px;
}

.logo span { color: var(--primary-color); }

.main-nav ul {
    display: flex;
    gap: 20px;
}

.main-nav a {
    color: var(--text-muted);
    font-size: 1rem;
    font-weight: bold;
}

.main-nav a:hover, .main-nav a.active {
    color: var(--primary-color);
}

/* =========================================
   4. HERO SECTIONS
   ========================================= */
.hero {
    position: relative;
    height: 80vh; 
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -2;
}

.hero-overlay {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.5); /* Keeps text readable over images */
    z-index: -1;
}

.hero-content {
    color: white; /* Force white text over the dark hero overlay */
}

.hero-content h1 {
    font-size: 3rem;
    margin-bottom: 20px;
    text-transform: uppercase;
}

.hero-content p {
    font-size: 1.2rem;
    margin-bottom: 30px;
}

/* Page Headers (Service, About, Contact) */
.page-header {
    background-color: var(--bg-alt);
    padding: 60px 0;
    text-align: center;
    border-bottom: 1px solid var(--border-color);
}
.page-header h1 { color: var(--primary-color); margin-bottom: 10px; }
.page-header p { color: var(--text-muted); }

/* =========================================
   5. GRIDS & CARDS
   ========================================= */
.grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.grid-2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
}

/* Feature Cards (Home) */
.card {
    background: var(--bg-main);
    padding: 30px;
    text-align: center;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
    transition: transform 0.3s, border-color 0.3s;
}
.card:hover { transform: translateY(-5px); border-color: var(--primary-color); }
.card p { color: var(--text-muted); }
.icon-box { font-size: 2.5rem; margin-bottom: 15px; }

/* Service Items (Service Page) */
.service-item {
    background: var(--bg-main);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
}
.service-img { width: 100%; height: 250px; object-fit: cover; }
.service-info { padding: 20px; }
.service-info h3 { color: var(--primary-color); margin-bottom: 10px; }
.service-info p { color: var(--text-muted); }

/* Team Members (About Page) */
.team-member { text-align: center; }
.team-member img {
    width: 150px; height: 150px;
    border-radius: 50%;
    object-fit: cover;
    margin: 0 auto 15px;
    border: 3px solid var(--primary-color);
}
.team-member p { color: var(--text-muted); }

/* =========================================
   6. FORMS & FOOTER
   ========================================= */
.form-group { margin-bottom: 20px; }
.form-group label { display: block; margin-bottom: 5px; color: var(--text-main); font-weight: bold; }
.form-group input, .form-group textarea, .form-group select {
    width: 100%;
    padding: 10px;
    background: var(--bg-main);
    border: 1px solid var(--border-color);
    border-radius: 4px;
    color: var(--text-main);
    font-family: var(--font-main);
}
.form-group input:focus, .form-group textarea:focus { 
    border-color: var(--primary-color); 
    outline: none; 
}

.promo-banner {
    background-color: var(--primary-color);
    color: white;
    padding: 50px 0;
    text-align: center;
}
.promo-banner h2 { margin-bottom: 10px; }

/* Kept the footer dark for a grounded, professional contrast */
footer {
    background-color: #111111;
    padding: 30px 0;
    text-align: center;
    color: #888888;
    font-size: 0.9rem;
    margin-top: auto;
}
.social-links a { margin: 0 10px; color: #dddddd; }
.social-links a:hover { color: var(--primary-color); }

/* =========================================
   7. RESPONSIVE MEDIA QUERIES
   ========================================= */
@media (max-width: 768px) {
    .grid-3, .grid-2 { grid-template-columns: 1fr; }
    .hero-content h1 { font-size: 2rem; }
    .main-nav { margin-top: 15px; width: 100%; }
    .main-nav ul { justify-content: center; gap: 15px; }
    .nav-container { flex-direction: column; text-align: center; }
}

@media (max-width: 480px) {
    .section-padding { padding: 40px 0; }
    .hero { height: 60vh; }
    .main-nav ul { flex-direction: column; gap: 10px; }
    .card, .service-item { margin-bottom: 20px; }
}