html {
    scroll-behavior: smooth;
    width: 100%;
    overflow-x: hidden;
}

body {
    margin: 0;
    padding: 0;
    width: 100%;
    font-family: 'Roboto', sans-serif;
    background-color: #f4f4f4;
}

body > *:first-child {
    margin-top: 0;
}

h1, h2, h3, h4, .nav-logo, .cta-button, .cta-button-mobile {
    font-family: 'Oswald', sans-serif;
}

header {
    background-color: #1a1a1a;
    padding: 15px 5%;
    border-bottom: 2px solid #c59d5f;
    position: sticky; 
    top: 0;
    z-index: 1000; 
}

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

.nav-logo {
    font-size: 1.8rem;
    font-weight: bold;
    color: #ffffff;
    text-decoration: none;
}

.nav-logo img {
    height: 60px;
    display: block;
}

.nav-menu {
    list-style: none;
    display: flex;
    align-items: center; 
    gap: 30px;
    margin: 0;
    padding: 0;
}

.nav-link {
    color: #e0e0e0;
    text-decoration: none;
    font-size: 1rem;
    font-weight: bold;
    text-transform: uppercase;
    transition: color 0.3s ease;
}

.nav-link:hover {
    color: #c59d5f;
}

.cta-button {
    background-color: #c59d5f;
    color: #1a1a1a;
    padding: 10px 20px;
    text-decoration: none;
    font-weight: bold;
    border-radius: 5px;
    text-transform: uppercase;
    transition: background-color 0.3s ease;
}

.cta-button:hover {
    background-color: #a7844f;
}

.cta-button-mobile {
    display: none;
}

.hamburger {
    display: none;
    cursor: pointer;
}

.bar {
    display: block;
    width: 25px;
    height: 3px;
    margin: 5px auto;
    background-color: #ffffff;
    transition: all 0.3s ease-in-out;
}

/* ----------------------------------------- */
/* ----- RESPONSIVE STYLES (MEDIA QUERY) ----- */
/* ----------------------------------------- */

@media screen and (max-width: 768px) {
    .hamburger {
        display: block;
    }

    .hamburger.active .bar:nth-child(2) {
        opacity: 0;
    }
    .hamburger.active .bar:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }
    .hamburger.active .bar:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }

    .nav-menu {
        position: fixed; 
        left: -100%;   
        top: 75px;      
        flex-direction: column; 
        background-color: #1a1a1a;
        width: 100%;
        text-align: center;
        transition: 0.3s;
        gap: 0;
    }

    .nav-menu.active {
        left: 0;
    }

    .nav-item {
        padding: 16px 0;
        width: 100%;
        border-bottom: 1px solid #2e2e2e;
    }

    .cta-button {
        display: none;
    }

    .cta-button-mobile {
        display: inline-block;
        background-color: #c59d5f;
        color: #1a1a1a;
        padding: 10px 20px;
        border-radius: 5px;
    }
}

/* -------------------- */
/* --- HERO SECTION --- */
/* -------------------- */

.hero-section {
    background-image: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)), url('images/barbershop.png');
    background-size: cover;
    background-position: center;
    
    height: 90vh; 
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: #ffffff;
}

.hero-content h1 {
    font-size: 3.5rem; 
    margin-bottom: 10px;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.7); 
}

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

/* --------------------------------------------- */
/* ----- HERO SECTION - RESPONSIVE STYLES ------ */
/* --------------------------------------------- */

@media screen and (max-width: 768px) {
    .hero-section {
        height: 80vh;
    }

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

    .hero-content p {
        font-size: 1rem;
        padding: 0 15px;
    }
}

/* ----------------------- */
/* --- SERVICES SECTION --- */
/* ----------------------- */

.services-section {
    padding: 60px 5%;
    background-color: #f9f9f9;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 40px;
    color: #1a1a1a;
    font-family: 'Oswald', sans-serif;
}

.services-grid {
    display: flex;
    flex-direction: column; 
    align-items: center;    
    gap: 30px;             
}

.service-card {
    background-color: #ffffff;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    width: 100%;           
    max-width: 700px;      
}

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

.service-card h3 {
    font-size: 1.5rem;
    margin-top: 0;
    color: #1a1a1a;
    font-family: 'Oswald', sans-serif;
}

.service-card p {
    font-size: 1rem;
    color: #666;
    line-height: 1.6;
}

.service-price {
    font-size: 1.8rem;
    font-weight: bold;
    color: #c59d5f;
    margin-top: auto; 
}

@media screen and (max-width: 768px) {
    .section-title {
        font-size: 2rem;
    }
}
.services-section .cta-button {
    padding: 15px 40px;      
    font-size: 1.2rem;       
    margin-top: 30px;        
    display: inline-block;   
}

.services-section .container {
    text-align: center;
}

/* -------------------- */
/* --- GALLERY SECTION --- */
/* -------------------- */

.gallery-section {
    padding: 60px 5%;
    background-color: #ffffff; 
}

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

.gallery-grid img {
    width: 100%;
    height: 350px; 
    object-fit: cover; 
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.gallery-grid img:hover {
    transform: scale(1.05); 
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

.gallery-grid video {
    width: 100%;
    height: 350px;
    object-fit: cover; 
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

/* -------------------- */
/* --- TEAM SECTION --- */
/* -------------------- */

.team-section {
    padding: 60px 5%;
    background-color: #f9f9f9; 
}

.team-profile {
    display: flex;
    align-items: center; 
    justify-content: center;
    gap: 50px; 
    max-width: 900px;
    margin: 0 auto; 
    background-color: #ffffff;
    padding: 40px;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.profile-image img {
    width: 200px;
    height: 200px;
    border-radius: 50%; 
    object-fit: cover; 
    border: 5px solid #c59d5f;
}

.profile-info h3 {
    font-size: 2rem;
    margin: 0 0 5px 0;
    color: #1a1a1a;
}

.profile-title {
    font-size: 1.1rem;
    font-weight: bold;
    color: #c59d5f; 
    margin: 0 0 15px 0;
}

.profile-info p {
    font-size: 1rem;
    line-height: 1.7;
    color: #666;
}

/* --- TEAM SECTION - RESPONSIVE --- */
@media screen and (max-width: 768px) {
    .team-profile {
        flex-direction: column; 
        text-align: center; 
        padding: 30px;
        gap: 20px;
    }

    .profile-image img {
        width: 150px;
        height: 150px;
    }
}

/* -------------------- */
/* --- REVIEWS SECTION --- */
/* -------------------- */

.reviews-section {
    padding: 60px 5%;
    background-color: #ffffff; 
}

.reviews-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px;
}

.review-card {
    background-color: #f9f9f9;
    padding: 30px;
    border-left: 5px solid #c59d5f;
    border-radius: 0 8px 8px 0;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    flex-basis: 350px; 
    flex-grow: 1; 
}

.review-stars {
    color: #c59d5f; 
    font-size: 1.2rem;
    margin-bottom: 15px;
}

.review-card blockquote {
    margin: 0;
    font-style: italic;
    color: #333;
    line-height: 1.6;

    quotes: "“" "”" "‘" "’"; 
}

.review-card blockquote::before {
    content: open-quote;
    font-size: 2rem;
    font-weight: bold;
    color: #e0e0e0;
    margin-right: 5px;
    line-height: 0;
}

.review-author {
    display: block;
    text-align: right;
    margin-top: 15px;
    font-weight: bold;
    color: #1a1a1a;
}

/* -------------------- */
/* --- CONTACT SECTION --- */
/* -------------------- */

.contact-section {
    padding: 60px 5%;
    background-color: #1a1a1a;
    color: #e0e0e0;
}

.contact-section .section-title {
    color: #ffffff;
}

.contact-container {
    display: grid;
    grid-template-columns: 1fr 1fr; 
    gap: 50px;
    align-items: center;
}

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

.info-item svg {
    width: 30px;
    height: 30px;
    fill: #c59d5f; 
    flex-shrink: 0; 
}

.info-item h4 {
    margin: 0 0 5px 0;
    font-size: 1.2rem;
    color: #ffffff;
}

.info-item p {
    margin: 0;
    line-height: 1.6;
}

.info-item a {
    color: #c59d5f; 
    text-decoration: none;
    transition: color 0.3s ease;
}

.info-item a:hover {
    color: #ffffff;
}

.contact-map iframe {
    width: 100%;
    height: 400px;
    border: 3px solid #c59d5f;
    border-radius: 8px;
}

/* --- CONTACT SECTION - RESPONSIVE --- */
@media screen and (max-width: 900px) {
    .contact-container {
        grid-template-columns: 1fr; 
    }
}

/* -------------------- */
/* --- FOOTER SECTION --- */
/* -------------------- */

.footer-brand {
    display: flex; 
    align-items: center; 
    gap: 10px; 
}

.footer-logo {
    height: 40px; 
    width: auto;
    opacity: 0.8; 
}

@media screen and (max-width: 768px) {
    .footer-brand {
        order: 2; 
        flex-direction: column;
        text-align: center;
    }
    .footer-logo {
        margin-bottom: 5px; 
    }
    .copyright-text {
        order: unset; 
    }
}

.site-footer {
    background-color: #1a1a1a;
    color: #a0a0a0;
    padding: 30px 5%;
    border-top: 2px solid #c59d5f; 
}

.footer-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;  
    gap: 20px;
}

.copyright-text {
    margin: 0;
    font-size: 0.9rem;
}

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

.social-links a svg {
    width: 24px;
    height: 24px;
    fill: #a0a0a0;
    transition: fill 0.3s ease;
}

.social-links a:hover svg {
    fill: #c59d5f; 
}

/* --- FOOTER - RESPONSIVE --- */

@media screen and (max-width: 768px) {
    .footer-container {
        flex-direction: column; 
        justify-content: center;
    }
    
    .copyright-text {
        order: 2; 
    }

    .social-links {
        order: 1; 
    }
}

/* -------------------- */
/* --- FADE-IN SECTION --- */
/* -------------------- */

@keyframes fadeInOnLoad {
    from {
        opacity: 0;
        transform: translateY(20px); 
    }
    to {
        opacity: 1;
        transform: translateY(0);  
    }
}

header,
.hero-section {
    opacity: 0; 
    
    animation-name: fadeInOnLoad;
    animation-duration: 0.8s; 
    animation-timing-function: ease-out;
    animation-fill-mode: forwards; 
}

.hero-section {
    animation-delay: 0.4s;
}

/* -------------------- */
/* --- MODAL SECTION --- */
/* -------------------- */

.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    display: flex; 
    justify-content: center;
    align-items: center;
    z-index: 2000;

    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.modal-overlay.visible{
    opacity: 1;
    visibility: visible;
}

.modal-content {
    background: #ffffff;
    padding: 30px 40px;
    border-radius: 8px;
    text-align: center;
    max-width: 400px;
    width: 90%;
    position: relative;
    color: #1a1a1a;
}

.modal-content h2 {
    font-family: 'Oswald', sans-serif;
    font-size: 2rem;
    margin-top: 0;
}

.modal-phone-number {
    display: inline-block;
    margin-top: 15px;
    font-size: 1.5rem;
    color: #c59d5f;
    text-decoration: none;
    font-weight: bold;
}

.close-button {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 2rem;
    color: #aaa;
    cursor: pointer;
    transition: color 0.3s ease;
}

.close-button:hover {
    color: #1a1a1a;
}