:root {
    --primary-color: #0056b3;
    --secondary-color: #333;
    --bg-color: #f4f4f4;
    --text-color: #333;
    --white: #fff;
    --border-radius: 5px;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    background-color: var(--bg-color);
    color: var(--text-color);
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* Navigation */
header {
    background: var(--white);
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    padding: 0;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    height: 70px;
}

.logo a {
    color: var(--primary-color);
    text-decoration: none;
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: -0.5px;
}

.nav-links {
    list-style: none;
    display: flex;
    height: 100%;
    align-items: center;
}

.nav-links li {
    margin-left: 30px;
    height: 100%;
    display: flex;
    align-items: center;
}

.nav-links a {
    color: var(--text-color);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
    position: relative;
    padding: 5px 0;
}

/* Animated Underline Effect */
.nav-links a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 0;
    background-color: var(--primary-color);
    transition: width 0.3s ease;
}

.nav-links a:hover {
    color: var(--primary-color);
}

.nav-links a:hover::after {
    width: 100%;
}

/* Mobile Menu Button */
.menu-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.bar {
    height: 3px;
    width: 25px;
    background-color: var(--secondary-color);
    margin: 3px 0;
    transition: 0.4s;
}

/* Main Content */
main {
    flex: 1;
    width: 90%;
    max-width: 1200px;
    margin: 2rem auto;
}

.hero {
    text-align: center;
    background: var(--white);
    padding: 3rem 1rem;
    margin-bottom: 2rem;
    border-radius: var(--border-radius);
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.hero h1 {
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.hero-contact {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 1.5rem;
    flex-wrap: wrap;
}

.hero-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 24px;
    border-radius: var(--border-radius);
    text-decoration: none;
    font-weight: 600;
    transition: all 0.2s ease;
    min-width: 160px;
}

.hero-btn.primary {
    background: var(--primary-color);
    color: var(--white);
    border: 2px solid var(--primary-color);
}

.hero-btn.primary:hover {
    background: #004494;
    border-color: #004494;
}

.hero-btn.outline {
    background: transparent;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
}

.hero-btn.outline:hover {
    background: var(--primary-color);
    color: var(--white);
}

.hero-offer {
    background-color: #f8f9fa;
    border-left: 4px solid var(--primary-color);
    padding: 15px;
    margin: 1.5rem auto;
    max-width: 600px;
    text-align: left;
    border-radius: 4px;
}

.hero-offer strong {
    color: var(--primary-color);
    display: block;
    margin-bottom: 5px;
    font-size: 1.1em;
}

.hero-offer ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.hero-offer li {
    position: relative;
    padding-left: 20px;
    margin-bottom: 4px;
}

.hero-offer li::before {
    content: "✓";
    color: #28a745;
    position: absolute;
    left: 0;
    font-weight: bold;
}

/* Services Section */
.services {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

.service-card {
    background: var(--white);
    padding: 20px;
    border-radius: var(--border-radius);
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    text-align: center;
}

.service-card h3 {
    margin-bottom: 10px;
    color: var(--primary-color);
}

/* Contact Form */
.contact-container {
    background: var(--white);
    padding: 2rem;
    border-radius: var(--border-radius);
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    max-width: 800px;
    margin: 0 auto;
}

.form-group {
    margin-bottom: 15px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: var(--border-radius);
}

button[type="submit"] {
    background: var(--primary-color);
    color: var(--white);
    padding: 10px 20px;
    border: none;
    border-radius: var(--border-radius);
    cursor: pointer;
    font-size: 1rem;
}

button[type="submit"]:hover {
    background: #004494;
}

/* Pricing Table */
.pricing-table {
    width: 100%;
    border-collapse: collapse;
    background: var(--white);
    margin-top: 1rem;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.pricing-table th, 
.pricing-table td {
    padding: 15px;
    border-bottom: 1px solid #ddd;
    text-align: left;
}

.pricing-table th {
    background: var(--primary-color);
    color: var(--white);
}

.category-header {
    cursor: pointer;
    background-color: #f4f4f4;
}

.category-header:hover {
    background-color: #e9e9e9;
}

/* Arrow indicator */
.category-header td:first-child::after {
    content: "▲";
    float: right;
    font-size: 0.8em;
    margin-left: 10px;
    transition: transform 0.3s;
}

/* Arrow rotation when collapsed */
tbody.collapsed .category-header td:first-child::after {
    transform: rotate(180deg);
}

.pricing-note {
    font-size: 0.8em;
    font-style: italic;
    color: #555;
    margin-top: 4px;
    line-height: 1.4;
    display: block;
}

.pricing-note a {
    color: var(--primary-color);
    text-decoration: underline;
}

/* Hide rows when tbody is collapsed */
tbody.collapsed tr:not(.category-header) {
    display: none;
}

/* Sale Styles */
.sale s {
    color: #999;
    font-size: 0.9em;
    text-decoration: line-through;
    margin-right: 5px;
}

.sale b {
    color: #d9534f; /* Bootstrap dangerously red */
    font-weight: bold;
    margin-left: 5px;
}

/* Legal Pages */
.legal-content {
    background: var(--white);
    padding: 2rem;
    border-radius: var(--border-radius);
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.legal-content h2 {
    margin-top: 1.5rem;
    color: var(--primary-color);
}

/* Footer */
footer {
    background: var(--secondary-color);
    color: var(--white);
    text-align: center;
    padding: 1.5rem 0;
    margin-top: auto;
}

footer a {
    color: #ddd;
    text-decoration: none;
    margin: 0 10px;
}

footer p {
    margin-bottom: 10px;
}

/* Responsive */
@media (max-width: 768px) {
    .menu-toggle {
        display: flex;
    }

    .nav-links {
        display: none;
        flex-direction: column;
        width: 100%;
        position: absolute;
        top: 70px; /* Match header height */
        left: 0;
        background: var(--white);
        padding: 0; /* Reset padding */
        text-align: center;
        z-index: 999; /* Ensure menu is above other content */
        box-shadow: 0 4px 6px rgba(0,0,0,0.1);
        border-top: 1px solid #eee;
        align-items: stretch; /* Override desktop align-items: center */
        height: auto; /* Reset height from desktop (was 100%) */
    }

    .nav-links.active {
        display: flex;
    }

    .nav-links li {
        margin: 0; /* Reset margin */
        height: auto; /* Reset height from desktop */
        display: block; /* Reset flex from desktop */
        width: 100%;
        border-bottom: 1px solid #f0f0f0;
    }
    
    .nav-links a {
        display: block;
        width: 100%;
        padding: 20px 0; /* Larger touch area */
    }
    
    /* Remove hover underline effect on mobile as it can look weird */
    .nav-links a::after {
        display: none;
    }

    /* Responsive Pricing Table - Stacked Card View */
    .pricing-table thead {
        display: none; /* Hide headers on mobile */
    }

    .pricing-table, 
    .pricing-table tbody, 
    .pricing-table tr, 
    .pricing-table td {
        display: block;
        width: 100%;
    }

    .pricing-table tr {
        margin-bottom: 10px;
        border: 1px solid #eee;
        border-radius: var(--border-radius);
    }
    
    /* Category Headers on Mobile */
    .pricing-table .category-header {
        border: none;
        box-shadow: none;
    }
    
    .pricing-table .category-header td {
        background-color: #f4f4f4;
        font-weight: bold;
        padding: 12px;
        position: relative; /* For arrow positioning */
    }

    /* Regular Service Rows on Mobile */
    .pricing-table tr:not(.category-header) td {
        text-align: left;
        padding: 10px 15px;
    }

    /* Service Name Cell */
    .pricing-table tr:not(.category-header) td:first-child {
        font-weight: 600;
        padding-bottom: 5px; /* Bring closer to price */
        border-bottom: none;
    }

    /* Price Cell */
    .pricing-table tr:not(.category-header) td:last-child {
        color: var(--primary-color);
        font-weight: bold;
        padding-top: 0;
        border-top: none;
        padding-bottom: 15px;
    }

    /* Fix arrow indicator position on mobile */
    .category-header td:first-child::after {
        float: right; 
        margin-top: 2px;
    }
    
    /* Hide rows when tbody is collapsed override for block display */
    tbody.collapsed tr:not(.category-header) {
        display: none;
    }
}
