/* Base Styles */
:root {
    --primary-color: #3a3a3a;
    --secondary-color: #c9a050;
    --dark-color: #1a1a1a;
    --light-color: #f8f9fa;
    --gray-color: #6c757d;
    --success-color: #28a745;
    --danger-color: #dc3545;
}

body {
    font-family: 'Helvetica Neue', Arial, sans-serif;
    color: var(--primary-color);
    line-height: 1.6;
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
}

.section-title {
    position: relative;
    margin-bottom: 25px;
    padding-bottom: 15px;
}

.section-title:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 3px;
    background-color: var(--secondary-color);
}

.text-center .section-title:after {
    left: 50%;
    transform: translateX(-50%);
}

.btn {
    border-radius: 0;
    padding: 10px 20px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
}

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

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

.btn-dark {
    background-color: var(--dark-color);
    border-color: var(--dark-color);
}

.btn-dark:hover {
    background-color: #333;
    border-color: #333;
}

/* Navigation */
.navbar {
    background-color: var(--dark-color);
    padding: 15px 0;
}

.navbar-brand {
    font-weight: 700;
    font-size: 24px;
    display: flex;
    align-items: center;
    gap: 15px; /* Add consistent spacing between logo and text */
}

.navbar-brand img {
    height: 70px;
}

.navbar-dark .navbar-nav .nav-link {
    color: rgba(255, 255, 255, 0.8);
    font-weight: 600;
    text-transform: uppercase;
    padding: 10px 15px;
    transition: all 0.3s ease;
}

.navbar-dark .navbar-nav .nav-link:hover {
    color: white;
}

.navbar-dark .navbar-nav .nav-link.book-now {
    background-color: var(--secondary-color);
    border-radius: 0;
    color: white;
    margin-left: 10px;
}

.navbar-dark .navbar-nav .nav-link.book-now:hover {
    background-color: #b08a40;
}

/* Hero Section */
.hero {
    position: relative;
    background: url('../img/hero-bg.jpg') no-repeat center center;
    background-size: cover;
    height: 85vh;
    min-height: 500px;
    color: white;
    display: flex;
    align-items: center;
    text-align: center;
}

.hero .overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
}

.hero-content {
    position: relative;
    z-index: 1;
}

.hero h1 {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.hero .lead {
    font-size: 1.5rem;
    margin-bottom: 30px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

/* Page Headers */
.page-header {
    position: relative;
    background: url('../img/page-header-bg.jpg') no-repeat center center;
    background-size: cover;
    padding: 100px 0;
    color: white;
    text-align: center;
}

.page-header .overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0); /* Reduced opacity from 0.7 to 0.4 */
}

.page-header h1 {
    position: relative;
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 15px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.page-header .lead {
    position: relative;
    font-size: 1.25rem;
}

/* Features Section */
.features {
    padding: 60px 0;
}

.feature-card {
    padding: 30px 20px;
    border: 1px solid #eee;
    transition: all 0.3s ease;
    height: 100%;
}

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

.feature-card .icon-wrapper {
    width: 80px;
    height: 80px;
    background-color: var(--secondary-color);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    margin: 0 auto 20px;
    font-size: 30px;
}

.feature-card h3 {
    margin-bottom: 15px;
    font-size: 1.5rem;
}

/* Gallery */
.gallery-card {
    position: relative;
    overflow: hidden;
    margin-bottom: 30px;
    border-radius: 5px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    background-color: #333; /* Darker background for empty cards to match barber theme */
    min-height: 300px; /* Ensure consistent height even when image fails to load */
}

.gallery-card img {
    transition: all 0.5s ease;
    width: 100%;
    height: 300px;
    object-fit: cover;
}

.gallery-card img[alt="Image not found"] {
    opacity: 0.7;
}

.gallery-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 15px;
    opacity: 1; /* Always show caption for better UX */
    transition: all 0.3s ease;
}

.gallery-card:hover .gallery-overlay {
    opacity: 1;
    background-color: rgba(0, 0, 0, 0.8); /* Slightly darker on hover */
}

.gallery-caption {
    font-size: 1.1rem;
    font-weight: 600;
}

/* Services */
.service-card {
    padding: 30px 20px;
    border: 1px solid #eee;
    text-align: center;
    transition: all 0.3s ease;
    height: 100%;
}

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

.service-card .service-icon {
    font-size: 40px;
    color: var(--secondary-color);
    margin-bottom: 20px;
}

.service-card h3 {
    margin-bottom: 15px;
    font-size: 1.5rem;
}

.service-card .price {
    font-weight: 700;
    color: var(--secondary-color);
    font-size: 1.2rem;
    margin-top: 10px;
}

/* Service Detail Pages */
.service-item {
    padding: 30px;
    border: 1px solid #eee;
    margin-bottom: 30px;
    transition: all 0.3s ease;
}

.service-item:hover {
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.service-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid #eee;
}

.service-header h3 {
    margin-bottom: 0;
}

.service-header .price {
    font-weight: 700;
    color: var(--secondary-color);
    font-size: 1.2rem;
}

.service-features {
    padding-left: 20px;
    margin: 15px 0;
}

.service-time {
    color: var(--gray-color);
    font-style: italic;
    margin-top: 15px;
}

.service-item.premium {
    border-color: var(--secondary-color);
}

/* Testimonials */
.testimonial-card {
    background-color: white;
    padding: 30px;
    border-radius: 5px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    margin-bottom: 30px;
    position: relative;
}

.testimonial-card.featured {
    border-left: 5px solid var(--secondary-color);
}

.testimonial-rating {
    color: var(--secondary-color);
    font-size: 1.2rem;
    margin-bottom: 15px;
}

.testimonial-text {
    font-style: italic;
    margin-bottom: 15px;
    font-size: 1.1rem;
}

.testimonial-author {
    font-weight: 700;
    text-align: right;
    margin-bottom: 0;
}

/* Team Section */
.team-card {
    background-color: white;
    padding: 30px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    margin-bottom: 30px;
}

.team-card img {
    width: 150px;
    height: 150px;
    object-fit: cover;
    margin-bottom: 20px;
}

.team-card h3 {
    margin-bottom: 5px;
}

/* Contact Page */
.contact-item {
    display: flex;
    margin-bottom: 25px;
}

.contact-item .icon-wrapper {
    width: 50px;
    height: 50px;
    background-color: var(--secondary-color);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    margin-right: 15px;
    flex-shrink: 0;
}

.contact-text h4 {
    margin-bottom: 5px;
}

.contact-form-container {
    background-color: white;
    padding: 30px;
    border-radius: 5px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.map-container {
    height: 450px;
    width: 100%;
    border-radius: 5px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.social-links .social-icons {
    display: flex;
    gap: 15px;
}

.social-icon {
    width: 40px;
    height: 40px;
    background-color: var(--dark-color);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.social-icon:hover {
    background-color: var(--secondary-color);
    color: white;
    transform: translateY(-3px);
}

/* Footer */
footer {
    background-color: var(--dark-color);
    color: white;
    padding: 60px 0 30px;
}

footer h5 {
    color: var(--secondary-color);
    margin-bottom: 20px;
    font-weight: 700;
}

footer p {
    color: rgba(255, 255, 255, 0.7);
}

footer .social-icons a {
    color: white;
    margin-right: 15px;
    transition: all 0.3s ease;
}

footer .social-icons a:hover {
    color: var(--secondary-color);
    transform: translateY(-3px);
}

footer hr {
    margin: 30px 0;
    border-color: rgba(255, 255, 255, 0.1);
}

/* CTA Sections */
.cta {
    background-color: var(--secondary-color);
    padding: 60px 0;
}

/* Review Platforms */
.platform-card {
    padding: 30px 20px;
    background-color: white;
    border-radius: 5px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    text-align: center;
    transition: all 0.3s ease;
    height: 100%;
}

.platform-card:hover {
    transform: translateY(-5px);
}

.platform-card i {
    color: var(--secondary-color);
}

.platform-rating {
    color: var(--secondary-color);
    margin: 10px 0;
}

.rating-value {
    margin-left: 5px;
    font-weight: 700;
}

/* Instagram Section */
.insta-card {
    position: relative;
    overflow: hidden;
    margin-bottom: 15px;
    border-radius: 5px;
}

.insta-card img {
    transition: all 0.3s ease;
    width: 100%;
    height: 150px;
    object-fit: cover;
}

.insta-card:hover img {
    transform: scale(1.1);
}

/* Media Queries */
@media (max-width: 991.98px) {
    .hero h1 {
        font-size: 2.5rem;
    }
    
    .hero .lead {
        font-size: 1.2rem;
    }
    
    .navbar-dark .navbar-nav .nav-link.book-now {
        margin-left: 0;
        margin-top: 10px;
    }
}

@media (max-width: 767.98px) {
    .section-title {
        font-size: 1.8rem;
    }
    
    .hero {
        height: 70vh;
    }
    
    .hero h1 {
        font-size: 2rem;
    }
    
    .service-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .service-header .price {
        margin-top: 10px;
    }
}

@media (max-width: 575.98px) {
    .hero {
        height: 60vh;
    }
    
    .hero h1 {
        font-size: 1.8rem;
    }
    
    .hero-buttons .btn {
        display: block;
        width: 100%;
        margin-bottom: 10px;
    }
}
