/* Base Styles */
:root {
    --primary-color: #ff9e1b;
    --secondary-color: #4d4d4d;
    --light-grey: #f5f5f5;
    --white: #ffffff;
    --box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Open Sans', sans-serif;
    line-height: 1.6;
    color: var(--secondary-color);
    background-color: var(--white);
}

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

section {
    padding: 80px 0;
}

h1, h2, h3, h4 {
    font-weight: 700;
    line-height: 1.2;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
}

.btn {
    display: inline-block;
    padding: 12px 24px;
    border-radius: 30px;
    font-weight: 600;
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
    border: none;
}

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

.btn-primary:hover {
    background-color: #e08500;
}

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

.btn-secondary:hover {
    background-color: #333333;
}

.section-header {
    text-align: center;
    margin-bottom: 50px;
}

.section-header h2 {
    font-size: 2.5rem;
    margin-bottom: 15px;
    position: relative;
    display: inline-block;
}

.section-header h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    height: 3px;
    background-color: var(--primary-color);
}

.section-header p {
    max-width: 700px;
    margin: 0 auto;
    color: #777;
}

/* Header Styles */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: var(--white);
    box-shadow: var(--box-shadow);
    z-index: 1000;
    padding: 15px 0;
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo a {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.logo h1 {
    font-size: 1.8rem;
    color: var(--secondary-color);
}

.logo span {
    color: var(--primary-color);
}

.logo p {
    font-size: 0.9rem;
    margin-top: -5px;
}

.nav-links {
    display: flex;
}

.nav-links li {
    margin: 0 15px;
}

.nav-links a {
    font-weight: 600;
    transition: var(--transition);
}

.nav-links a:hover {
    color: var(--primary-color);
}

.header-buttons {
    display: flex;
    gap: 10px;
}

.menu-toggle {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
}

/* Hero Section */
.hero {
    height: 80vh;
    min-height: 500px;
    display: flex;
    align-items: center;
    color: var(--white);
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 1;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
}

.hero picture {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
    position: relative;
    z-index: 2;
}

.hero h1 {
    font-size: 3rem;
    margin-bottom: 20px;
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 30px;
}

.hero-buttons {
    display: flex;
    justify-content: center;
    gap: 15px;
}

/* Services Section */
.services {
    background-color: var(--light-grey);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.service-card {
    background-color: var(--white);
    border-radius: 10px;
    padding: 30px;
    text-align: center;
    box-shadow: var(--box-shadow);
    transition: var(--transition);
}

.service-card:hover {
    transform: translateY(-10px);
}

.service-icon {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.service-image {
    margin-bottom: 15px;
    border-radius: 10px;
    overflow: hidden;
    height: 200px;
}

.service-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.service-card:hover .service-image img {
    transform: scale(1.05);
}

/* Add JavaScript to log when images are loaded */
/* This helps with debugging image loading issues */
/* Example: 
document.querySelectorAll('.service-image img').forEach(img => {
    img.addEventListener('load', () => {
        console.log('Service image loaded successfully:', img.src);
        img.classList.add('loaded');
    });
});
*/

/* Areas Section Styles */
.areas {
    background-color: var(--light-bg);
    padding: 60px 0;
}

.areas-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 40px;
    
    /* Debug log to verify grid layout */
    /* console.log('Areas grid: 3 columns on desktop'); */
}

.area-card {
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    padding: 30px;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.area-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.area-card h3 {
    color: var(--primary-color);
    margin-bottom: 15px;
    font-size: 1.5rem;
}

.area-card p {
    margin-bottom: 20px;
    color: var(--text-color);
    line-height: 1.6;
}

/* Responsive adjustments for areas grid */
@media (max-width: 992px) {
    .areas-grid {
        grid-template-columns: repeat(2, 1fr);
        /* Debug log to verify grid layout */
        /* console.log('Areas grid: 2 columns on tablet'); */
    }
}

@media (max-width: 768px) {
    .areas-grid {
        grid-template-columns: 1fr;
        /* Debug log to verify grid layout */
        /* console.log('Areas grid: 1 column on mobile'); */
    }
}

.service-card h3 {
    margin-bottom: 15px;
}

/* Reviews Section */
.reviews {
    background-color: var(--white);
}

/* Areas We Serve Section */
.areas {
    background-color: var(--light-grey);
}

.areas-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.area-card {
    background-color: var(--white);
    border-radius: 10px;
    padding: 20px;
    box-shadow: var(--box-shadow);
    transition: var(--transition);
}

.area-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
}

.area-card h3 {
    color: var(--primary-color);
    margin-bottom: 10px;
    border-bottom: 2px solid var(--light-grey);
    padding-bottom: 8px;
}

.area-card p {
    font-size: 0.95rem;
    color: var(--secondary-color);
}

.review-link {
    display: inline-block;
    color: var(--primary-color);
    font-weight: 600;
    margin-top: 10px;
}

.reviews-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.review-card {
    background-color: var(--light-grey);
    border-radius: 10px;
    padding: 30px;
    box-shadow: var(--box-shadow);
}

.stars {
    color: var(--primary-color);
    margin-bottom: 15px;
}

.review-text {
    font-style: italic;
    margin-bottom: 15px;
}

.reviewer {
    font-weight: 600;
    text-align: right;
}

/* Contact Section */
.contact {
    background-color: var(--light-grey);
}

.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 50px;
}

.info-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 30px;
}

.info-item i {
    font-size: 1.5rem;
    color: var(--primary-color);
    margin-right: 15px;
    margin-top: 5px;
}

.info-item h3 {
    margin-bottom: 5px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 600;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-family: inherit;
}

/* Footer */
footer {
    background-color: var(--secondary-color);
    color: var(--white);
    padding: 50px 0 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    margin-bottom: 30px;
}

.footer-links h3,
.footer-social h3 {
    margin-bottom: 20px;
    position: relative;
    display: inline-block;
}

.footer-links h3::after,
.footer-social h3::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 30px;
    height: 2px;
    background-color: var(--primary-color);
}

.footer-links ul li {
    margin-bottom: 10px;
}

.footer-links ul li a {
    transition: var(--transition);
}

.footer-links ul li a:hover {
    color: var(--primary-color);
    padding-left: 5px;
}

.social-icon {
    display: inline-block;
    width: 40px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    text-align: center;
    line-height: 40px;
    margin-right: 10px;
    transition: var(--transition);
}

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

.footer-seo {
    margin: 30px 0;
    padding: 20px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-seo h3 {
    color: var(--primary-color);
    margin-bottom: 15px;
    font-size: 1.3rem;
}

.footer-seo p {
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 15px;
    font-size: 0.9rem;
    line-height: 1.6;
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* Location Pages Styles */
.location-hero {
    height: 60vh;
    min-height: 400px;
}

.location-content {
    padding: 60px 0;
}

.location-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 40px;
}

.location-info h2 {
    color: var(--secondary-color);
    margin-bottom: 20px;
    font-size: 2rem;
}

.location-info h3 {
    color: var(--primary-color);
    margin: 30px 0 15px;
    font-size: 1.5rem;
}

.location-info p {
    margin-bottom: 15px;
    line-height: 1.7;
}

.location-info ul {
    margin-bottom: 20px;
    padding-left: 20px;
}

.location-info ul li {
    margin-bottom: 10px;
    list-style-type: disc;
}

.location-info .btn {
    margin-top: 20px;
}

.location-sidebar {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.sidebar-card {
    background-color: var(--light-grey);
    border-radius: 10px;
    padding: 25px;
    box-shadow: var(--box-shadow);
}

.sidebar-card h3 {
    color: var(--primary-color);
    margin-bottom: 15px;
    font-size: 1.3rem;
    border-bottom: 2px solid var(--white);
    padding-bottom: 10px;
}

.sidebar-card p {
    margin-bottom: 10px;
}

.sidebar-card i {
    color: var(--primary-color);
    margin-right: 10px;
    width: 20px;
    text-align: center;
}

/* Media Queries */
@media (max-width: 992px) {
    .nav-links,
    .header-buttons {
        display: none;
    }

    .menu-toggle {
        display: block;
    }

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

@media (max-width: 768px) {
    section {
        padding: 60px 0;
    }

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

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

    .section-header h2 {
        font-size: 2rem;
    }
}

@media (max-width: 576px) {
    .hero-buttons {
        flex-direction: column;
        gap: 10px;
    }

    .contact-grid {
        grid-template-columns: 1fr;
    }

    .services-grid, .reviews-grid, .areas-grid, .location-grid {
        grid-template-columns: 1fr;
    }
    
    .location-sidebar {
        margin-top: 30px;
    }
}

/* Mobile Navigation */
.mobile-nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--secondary-color);
    z-index: 999;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transform: translateY(-100%);
    transition: var(--transition);
}

.mobile-nav.active {
    transform: translateY(0);
}

.mobile-nav-links {
    text-align: center;
}

.mobile-nav-links li {
    margin: 20px 0;
}

.mobile-nav-links a {
    color: var(--white);
    font-size: 1.5rem;
    font-weight: 600;
}

.mobile-nav-buttons {
    margin-top: 30px;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.close-menu {
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 2rem;
    color: var(--white);
    cursor: pointer;
}

/* Booking Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.7);
}

.modal-content {
    background-color: var(--white);
    margin: 5% auto;
    padding: 30px;
    border-radius: 8px;
    width: 90%;
    max-width: 800px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
    position: relative;
}

.close-modal {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 28px;
    font-weight: bold;
    color: var(--text-color);
    cursor: pointer;
    transition: var(--transition);
}

.close-modal:hover {
    color: var(--primary-color);
}

.form-section {
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--light-grey);
}

.form-section:last-child {
    border-bottom: none;
}

.form-section h3 {
    color: var(--secondary-color);
    margin-bottom: 15px;
    font-size: 1.2rem;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

/* Enhanced checkbox group styling */
.checkbox-group {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 15px;
}

.checkbox-group label {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    padding: 8px 12px;
    background-color: #f5f5f5;
    border-radius: 4px;
    transition: all 0.3s ease;
    min-width: 100px;
    justify-content: center;
}

.checkbox-group label:hover {
    background-color: #e9e9e9;
}

.checkbox-group input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: var(--primary-color);
}

/* Success message styling */
.success-message {
    text-align: center;
    padding: 30px 20px;
}

.success-message i {
    font-size: 4rem;
    color: #4CAF50;
    margin-bottom: 20px;
}

.success-message p {
    font-size: 1.2rem;
    margin-bottom: 10px;
    color: var(--text-color);
}

/* Enhanced form controls */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 16px;
}

.form-group select[multiple] {
    height: auto;
    min-height: 120px;
}

/* Enhanced button styling */
#bookingForm .btn {
    padding: 12px 24px;
    font-size: 16px;
    min-width: 180px;
}

.form-note {
    font-size: 0.9rem;
    color: var(--text-color-light);
    margin-top: 15px;
    font-style: italic;
}

/* Debug styling */
.form-debug {
    margin-top: 20px;
    padding: 10px;
    background-color: #f8f9fa;
    border-left: 4px solid #17a2b8;
    font-family: monospace;
    font-size: 12px;
    color: #666;
    display: none;
}

/* Print debug logs in development mode */
#DEBUG:target ~ .form-debug {
    display: block;
}

/* Map Styles */
.map-container {
    margin-top: 40px;
    width: 100%;
}

.map {
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--box-shadow);
    margin-top: 15px;
}

.map iframe {
    display: block;
}

.map-directions {
    margin-top: 15px;
    text-align: center;
}

.map-directions a {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    color: var(--primary-color);
    font-weight: 600;
    transition: var(--transition);
}

.map-directions a:hover {
    color: var(--secondary-color);
}

/* FAQ Section Styles */
.faq {
    padding: 80px 0;
    background-color: var(--light-grey);
}

.faq-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    margin-top: 40px;
}

.faq-item {
    background-color: var(--white);
    border-radius: 8px;
    padding: 25px;
    box-shadow: var(--box-shadow);
    transition: var(--transition);
}

.faq-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.faq-item h3 {
    color: var(--secondary-color);
    margin-bottom: 15px;
    font-size: 1.2rem;
    position: relative;
    padding-left: 25px;
}

.faq-item h3::before {
    content: '?';
    position: absolute;
    left: 0;
    top: 0;
    color: var(--primary-color);
    font-weight: bold;
}

.faq-item p {
    color: #666;
    line-height: 1.6;
}

/* Success Message Styles */
.success-message {
    background-color: #dff0d8;
    border: 1px solid #d6e9c6;
    color: #3c763d;
    padding: 20px;
    border-radius: 5px;
    margin: 20px 0;
    text-align: center;
    animation: fadeIn 0.5s ease-in-out;
}

.success-message i {
    font-size: 48px;
    color: #5cb85c;
    margin-bottom: 15px;
    display: block;
}

.success-message p {
    margin-bottom: 10px;
    font-size: 16px;
    line-height: 1.5;
}

.success-message p.small {
    font-size: 14px;
    color: #5a8754;
    margin-top: 15px;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* Debug log for success message */
#debug-log::after {
    content: 'Success message styles loaded';
    display: none;
}

/* FAQ Responsive Styles */
@media screen and (max-width: 768px) {
    .faq-grid {
        grid-template-columns: 1fr;
    }
    
    /* Responsive Modal Styles */
    .modal-content {
        width: 95%;
        padding: 20px;
        margin: 10% auto;
    }
    
    .form-row {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    /* Debug log for responsive styles */
    #debug-log::after {
        content: 'Mobile responsive styles loaded for booking modal';
        display: none;
    }
    
    /* Responsive Map Styles */
    .map-container {
        margin-top: 30px;
    }
    
    .map iframe {
        height: 250px;
    }
    
    /* Contact section responsive layout */
    .contact .container {
        flex-direction: column;
    }
    
    .contact-info, .contact-form {
        width: 100%;
    }
    
    .faq-item {
        padding: 20px;
    }
    
    .faq-item h3 {
        font-size: 1.1rem;
    }
}
