/* Bell Buckle Park - Optimized Stylesheet */

/* CSS Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Root Variables */
:root {
    --primary-color: #2c5f2d;
    --secondary-color: #97be5a;
    --text-color: #333;
    --light-bg: #f5f5f5;
    --white: #ffffff;
    --shadow: 0 2px 4px rgba(0,0,0,0.1);
    --max-width: 1200px;
    --font-main: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

/* Base Styles */
html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-main);
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--white);
}

/* Header */
header {
    background-color: var(--white);
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.logo {
    display: flex;
    align-items: center;
    gap: 1rem;
    text-decoration: none;
    color: var(--text-color);
}

.logo img {
    height: 60px;
    width: auto;
}

.logo h1 {
    font-size: 1.5rem;
    color: var(--primary-color);
}

/* Navigation */
nav ul {
    list-style: none;
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

nav a {
    display: block;
    padding: 0.5rem 1rem;
    text-decoration: none;
    color: var(--text-color);
    border-radius: 4px;
    transition: background-color 0.3s, color 0.3s;
}

nav a:hover,
nav a.active {
    background-color: var(--primary-color);
    color: var(--white);
}

/* Main Content */
main {
    max-width: var(--max-width);
    margin: 2rem auto;
    padding: 0 2rem;
    min-height: calc(100vh - 300px);
}

.page-title {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 3px solid var(--secondary-color);
}

.content-section {
    margin-bottom: 2rem;
}

.content-section h2 {
    font-size: 1.8rem;
    color: var(--primary-color);
    margin: 1.5rem 0 1rem;
}

.content-section h3 {
    font-size: 1.4rem;
    color: var(--primary-color);
    margin: 1.2rem 0 0.8rem;
}

.content-section p,
.content-section li {
    margin-bottom: 1rem;
}

/* Lists */
ul.content-list {
    list-style: none;
    padding-left: 0;
}

ul.content-list li {
    padding: 0.5rem 0;
    border-bottom: 1px solid #e0e0e0;
}

ul.content-list li:last-child {
    border-bottom: none;
}

ul.rules-list {
    list-style: none;
    padding-left: 0;
}

ul.rules-list li {
    padding: 0.75rem 0 0.75rem 1.5rem;
    position: relative;
}

ul.rules-list li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--secondary-color);
    font-weight: bold;
}

/* Info Boxes */
.info-box {
    background-color: var(--light-bg);
    padding: 1.5rem;
    margin: 1.5rem 0;
    border-left: 4px solid var(--secondary-color);
    border-radius: 4px;
}

.info-box h3 {
    margin-top: 0;
}

.rental-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    margin: 1.5rem 0;
}

.rental-card {
    background-color: var(--white);
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 1.5rem;
    box-shadow: var(--shadow);
}

.rental-card h3 {
    margin-top: 0;
    color: var(--primary-color);
}

.price {
    font-size: 1.25rem;
    font-weight: bold;
    color: var(--secondary-color);
    margin: 0.5rem 0;
}

/* Images */
img {
    max-width: 100%;
    height: auto;
    display: block;
}

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

.image-gallery img {
    border-radius: 8px;
    box-shadow: var(--shadow);
    transition: transform 0.3s;
}

.image-gallery img:hover {
    transform: scale(1.02);
}

/* Tables */
table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.5rem 0;
}

th, td {
    padding: 0.75rem;
    text-align: left;
    border-bottom: 1px solid #ddd;
}

th {
    background-color: var(--primary-color);
    color: var(--white);
    font-weight: 600;
}

tr:hover {
    background-color: var(--light-bg);
}

/* Footer */
footer {
    background-color: var(--primary-color);
    color: var(--white);
    padding: 2rem;
    margin-top: 4rem;
}

.footer-container {
    max-width: var(--max-width);
    margin: 0 auto;
    text-align: center;
}

.footer-container p {
    margin: 0.5rem 0;
}

.footer-container a {
    color: var(--secondary-color);
    text-decoration: none;
}

.footer-container a:hover {
    text-decoration: underline;
}

/* Responsive Design */
@media (max-width: 768px) {
    .header-container {
        flex-direction: column;
        gap: 1rem;
    }

    nav ul {
        justify-content: center;
    }

    .page-title {
        font-size: 2rem;
    }

    main {
        padding: 0 1rem;
        margin: 1rem auto;
    }

    .rental-info {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .logo h1 {
        font-size: 1.2rem;
    }

    .logo img {
        height: 50px;
    }

    nav a {
        padding: 0.4rem 0.8rem;
        font-size: 0.9rem;
    }

    .page-title {
        font-size: 1.5rem;
    }
}

/* Accessibility */
.skip-link {
    position: absolute;
    top: -40px;
    left: 0;
    background: var(--primary-color);
    color: var(--white);
    padding: 8px;
    text-decoration: none;
    z-index: 200;
}

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

/* Print Styles */
@media print {
    header nav,
    footer {
        display: none;
    }

    main {
        max-width: 100%;
        margin: 0;
        padding: 0;
    }
}
