/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #1a365d;
    --secondary-color: #2563eb;
    --accent-color: #f59e0b;
    --dark-color: #0f172a;
    --light-bg: #f8fafc;
    --text-dark: #1e293b;
    --text-light: #64748b;
    --white: #ffffff;
    --border-color: #e2e8f0;
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--white);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    width: 100%;
}

/* Header Styles */
.main-header {
    background-color: var(--white);
    border-bottom: 2px solid var(--border-color);
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 0;
}

.logo {
    flex-shrink: 0;
}

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

.logo a {
    display: inline-block;
    text-decoration: none;
}

/* Navigation Styles */
.main-nav ul {
    display: flex;
    list-style: none;
    gap: 2rem;
    align-items: center;
}

/* Hide admin menu items on desktop (only show on mobile) */
@media (min-width: 769px) {
    .main-nav ul li.admin-menu-separator,
    .main-nav ul li.admin-menu-item {
        display: none !important;
    }
}

.main-nav a {
    color: var(--text-dark);
    text-decoration: none;
    font-weight: 500;
    font-size: 1rem;
    padding: 0.5rem 0;
    position: relative;
    transition: color 0.3s ease;
}

.main-nav a:hover {
    color: var(--secondary-color);
}

.main-nav a.active {
    color: var(--secondary-color);
}

.main-nav a.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: var(--secondary-color);
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 4px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
}

.mobile-menu-toggle span {
    width: 25px;
    height: 3px;
    background-color: var(--text-dark);
    border-radius: 2px;
    transition: all 0.3s ease;
}

/* Main Content */
.main-content {
    flex: 1;
    padding: 3rem 0;
}

/* Remove padding-top when hero is first child */
.main-content > .hero:first-child {
    margin-top: -3rem;
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--dark-color) 100%);
    color: var(--white);
    padding: 4rem 0;
    margin-bottom: 3rem;
    text-align: center;
}

.hero h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    font-weight: 700;
}

.hero p {
    font-size: 1.25rem;
    opacity: 0.9;
    max-width: 800px;
    margin: 0 auto;
}

/* Page Content */
.page-header {
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid var(--border-color);
}

.page-header h1 {
    font-size: 2.25rem;
    color: #000000 !important;
    margin-bottom: 0.5rem;
}

.page-header p {
    color: var(--text-light);
    font-size: 1.1rem;
}

/* Content Sections */
.content-section {
    margin-bottom: 3rem;
}

.content-section h2 {
    color: #000000 !important;
    font-size: 1.75rem;
    margin-bottom: 1rem;
}

.content-section p {
    margin-bottom: 1rem;
    color: var(--text-dark);
    line-height: 1.8;
}

/* Global header color overrides - all headers black */
h2, 
h3,
h2.content-section,
.content-section h2,
h2.page-header,
.page-header h2,
h2.service-card,
.service-card h2,
h2.rental-card,
.rental-card h2 {
    color: #000000 !important;
}

/* Grid Layouts */
.services-grid,
.rentals-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.service-card,
.rental-card {
    background: var(--white);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 1.5rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-card:hover,
.rental-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: var(--secondary-color);
}

.service-card h3,
.rental-card h3 {
    color: #000000 !important;
    margin-bottom: 0.75rem;
    font-size: 1.5rem;
}

/* Contact Form */
.contact-form {
    max-width: 600px;
    margin: 2rem 0;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--text-dark);
    font-weight: 500;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    font-size: 1rem;
    font-family: inherit;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--secondary-color);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.btn {
    display: inline-block;
    padding: 0.75rem 2rem;
    background-color: var(--secondary-color);
    color: var(--white);
    text-decoration: none;
    border: none;
    border-radius: 4px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.btn:hover {
    background-color: var(--primary-color);
}

.btn-primary {
    background-color: var(--secondary-color);
}

.btn-primary:hover {
    background-color: var(--primary-color);
}

/* Footer */
.main-footer {
    background-color: #343434;
    color: var(--white);
    padding: 2rem 0;
    margin-top: auto;
    text-align: center;
}

.main-footer p {
    margin: 0;
    color: rgba(255, 255, 255, 0.8);
}

/* Responsive Design */
@media (max-width: 768px) {
    .header-content {
        flex-wrap: wrap;
    }

    .main-nav {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        width: 100vw;
        height: 100vh;
        background-color: #343434;
        z-index: 9999;
        overflow-y: auto;
        order: 3;
    }

    .main-nav.active {
        display: flex;
        align-items: center;
        justify-content: center;
        flex-direction: column;
    }

    .main-nav ul {
        flex-direction: column;
        gap: 0;
        padding: 0;
        height: auto;
        width: 100%;
        display: flex;
        align-items: center;
        justify-content: center;
        list-style: none;
        margin: 0;
        flex: 0 0 auto;
    }

    /* Show admin menu items on mobile */
    .main-nav ul li.admin-menu-separator,
    .main-nav ul li.admin-menu-item {
        display: block !important;
    }

    .main-nav li {
        width: 100%;
        text-align: center;
    }

    .main-nav a {
        display: block;
        padding: 1.5rem;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        color: #fff !important;
        font-size: 1.2rem;
        text-align: center;
    }

    .main-nav a:hover {
        background-color: rgba(255, 255, 255, 0.1);
        color: #fff !important;
    }

    .main-nav a.active {
        color: #fff !important;
        background-color: rgba(255, 255, 255, 0.15);
    }

    .main-nav a.active::after {
        display: none;
    }

    .mobile-menu-toggle {
        display: flex;
        z-index: 10000;
        position: relative;
    }

    .mobile-menu-toggle span {
        background-color: var(--text-dark);
    }

    /* Invert hamburger icon when menu is open (dark background) */
    body.menu-open .mobile-menu-toggle span {
        background-color: #fff !important;
    }

    /* Prevent body scroll when menu is open */
    body.menu-open {
        overflow: hidden;
    }

    .hero h1 {
        font-size: 2rem;
    }

    .hero p {
        font-size: 1.1rem;
    }

    .page-header h1 {
        font-size: 1.75rem;
    }

    .services-grid,
    .rentals-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }

    .main-content {
        padding: 2rem 0;
    }

    .hero {
        padding: 2.5rem 0;
    }

    .hero h1 {
        font-size: 1.75rem;
    }
}

