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

:root {
    --primary-color: #8B4513;  /* Rich Brown */
    --secondary-color: #D2691E;  /* Chocolate */
    --text-color: #333;
    --background-color: #FFF8E7;
}

body {
    font-family: 'Roboto', sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--background-color);
    font-size: 16px;
}

/* Navigation */
nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 5%;
    background-color: var(--primary-color);
    color: white;
}

nav .logo {
    font-size: 1.5rem;
    font-weight: bold;
}

nav ul {
    display: flex;
    list-style: none;
}

nav ul li {
    margin-left: 1.5rem;
}

nav ul li a {
    color: white;
    text-decoration: none;
    transition: color 0.3s ease;
}

nav ul li a:hover {
    color: var(--secondary-color);
}

/* Hero Section */
.hero {
    background: linear-gradient(rgba(0,0,0,0.6), rgba(0,0,0,0.6)), url('images/hero-bg.jpg');
    background-size: cover;
    background-position: center;
    color: white;
    text-align: center;
    padding: 10rem 0;
}

.hero-content h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.hero-content p {
    font-size: 1.5rem;
    margin-bottom: 2rem;
}

.cta-buttons {
    display: flex;
    justify-content: center;
    gap: 1rem;
}

.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    text-decoration: none;
    border-radius: 5px;
    transition: all 0.3s ease;
}

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

.btn-secondary {
    background-color: transparent;
    border: 2px solid white;
    color: white;
}

/* Services Section */
.services, .hairstyles, .about, .pricing, .testimonials {
    padding: 4rem 5%;
    text-align: center;
}

.services-grid, .styles-gallery, .team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.service-card, .style-card, .team-member, .testimonial-card {
    background-color: white;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    padding: 1.5rem;
    transition: transform 0.3s ease;
}

.service-card:hover, .style-card:hover, .team-member:hover {
    transform: scale(1.05);
}

.service-card img, .style-card img, .team-member img {
    max-width: 100%;
    border-radius: 10px;
}

/* Pricing Table */
.pricing table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 2rem;
}

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

/* Location Section Styles */
.location-section {
    background-color: #f9f5f0;
    padding: 4rem 2rem;
    text-align: center;
}

.location-section .container {
    max-width: 800px;
    margin: 0 auto;
}

.location-section h2 {
    color: #333;
    margin-bottom: 1rem;
    font-size: 2.5rem;
}

.map-container {
    margin: 2rem 0;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.map-container iframe {
    width: 100%;
    max-width: 800px;
    height: 450px;
    border: none;
}

.location-details {
    background-color: #fff;
    padding: 1.5rem;
    border-radius: 10px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.location-details p {
    margin: 0.5rem 0;
    color: #666;
    font-size: 1.1rem;
}

@media (max-width: 768px) {
    .map-container iframe {
        height: 300px;
    }
}

/* Booking Section Styles */
.booking {
    background-color: var(--background-color);
    padding: 4rem 5%;
    text-align: center;
}

.booking-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    background-color: white;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    padding: 2rem;
}

.booking-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    text-align: left;
}

.form-group label {
    margin-bottom: 0.5rem;
    font-weight: bold;
}

.form-group input,
.form-group select {
    padding: 0.75rem;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 1rem;
}

.booking-form .btn {
    margin-top: 1rem;
    align-self: flex-start;
}

.booking-info {
    background-color: var(--primary-color);
    color: white;
    padding: 2rem;
    border-radius: 10px;
    text-align: left;
}

.booking-info ul {
    list-style-type: disc;
    padding-left: 1.5rem;
    margin-bottom: 1.5rem;
}

.booking-contact {
    margin-top: 1rem;
    border-top: 1px solid rgba(255,255,255,0.2);
    padding-top: 1rem;
}

/* Mobile Responsiveness for Booking Section */
@media screen and (max-width: 768px) {
    .booking-container {
        grid-template-columns: 1fr;
    }

    .booking-info {
        margin-top: 1rem;
    }
}

/* Footer */
footer {
    background-color: var(--primary-color);
    color: white;
    padding: 3rem 5%;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.footer-content a {
    color: white;
    text-decoration: none;
}

.copyright {
    grid-column: 1 / -1;
    text-align: center;
    padding-top: 1rem;
    border-top: 1px solid rgba(255,255,255,0.1);
}

/* AI Recommendation Styles */
.ai-recommendations {
    background-color: #f4f4f4;
    border-radius: 8px;
    padding: 15px;
    margin-top: 20px;
    text-align: center;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.ai-recommendations h3 {
    color: #333;
    margin-bottom: 10px;
}

.ai-recommendations ul {
    list-style-type: none;
    padding: 0;
}

.ai-recommendations li {
    background-color: #fff;
    margin: 10px 0;
    padding: 10px;
    border-radius: 5px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* Mobile Responsiveness Enhancements */
@media screen and (max-width: 768px) {
    /* Navigation */
    nav {
        flex-direction: column;
        padding: 1rem;
    }

    nav .logo {
        margin-bottom: 1rem;
    }

    nav ul {
        flex-direction: column;
        width: 100%;
        text-align: center;
    }

    nav ul li {
        margin: 0.5rem 0;
        width: 100%;
    }

    /* Hero Section */
    .hero {
        padding: 5rem 1rem;
        text-align: center;
    }

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

    .hero-content p {
        font-size: 1.2rem;
    }

    .cta-buttons {
        flex-direction: column;
        gap: 1rem;
    }

    .btn {
        width: 100%;
        text-align: center;
    }

    /* Services and Styles Grid */
    .services-grid, 
    .styles-gallery, 
    .team-grid,
    .testimonial-grid {
        grid-template-columns: 1fr;
    }

    /* Pricing Table */
    .pricing table {
        font-size: 0.9rem;
    }

    /* Footer */
    footer {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .footer-content {
        padding: 1rem;
    }

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

    /* Responsive Typography */
    h1 { font-size: 2rem; }
    h2 { font-size: 1.8rem; }
    h3 { font-size: 1.5rem; }

    /* Mobile Menu Toggle */
    .nav-toggle {
        display: block;
        position: absolute;
        top: 1rem;
        right: 1rem;
        font-size: 1.5rem;
        cursor: pointer;
        z-index: 1000;
    }

    nav ul {
        display: none;
    }

    nav ul.show {
        display: flex;
    }

    /* Responsive Map */
    .map iframe {
        width: 100%;
        height: 300px;
    }
}

/* Mobile-First Adjustments */
.service-card, 
.style-card, 
.team-member, 
.testimonial-card {
    transition: all 0.3s ease;
}

/* Touch-Friendly Elements */
@media (pointer: coarse) {
    .service-card, 
    .style-card, 
    .team-member, 
    .testimonial-card {
        padding: 1rem;
    }

    .btn {
        padding: 1rem 1.5rem;
        font-size: 1rem;
    }
}

/* Accessibility Improvements */
@media (prefers-reduced-motion: reduce) {
    * {
        animation: none !important;
        transition: none !important;
    }
}

/* High Contrast Mode */
@media (prefers-contrast: high) {
    body {
        background-color: white;
        color: black;
    }

    .btn {
        border: 2px solid black;
    }
}
