html { scroll-behavior: smooth; }

/* HERO */
.hero {
    position: relative;
    height: 100vh;
    min-height: 500px;
    width: 100%;
    overflow: hidden;
}
.hero img {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    object-fit: cover;
}
.overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.4);
    z-index: 5;
}
.hero-content {
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    z-index: 10;
    color: white;
    width: 100%;
    max-width: 1400px;
    padding: 0 20px;
    font-size: 140px;
    white-space: nowrap;
}
.hero-content h1 {
    font-family: 'Great Vibes', cursive;
    font-size: 140px;
    color: #cc3b3b;
    text-shadow: 5px 5px 10px black;
    margin: 0;
    letter-spacing: 1px;
}
.hero-content p {
    font-family: 'Great Vibes', cursive;
    font-size: 45px;
    color: #992828;
    text-shadow: 2px 2px 5px black;
}

.hero-location {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 15;

    background: rgba(0,0,0,0.65);
    backdrop-filter: blur(8px);
    padding: 12px 28px;
    border-radius: 40px;

    font-family: 'Lato', sans-serif;
    font-size: 18px;
    color: #ddd;
    letter-spacing: 0.5px;

    display: flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.6);
}

.address-text {
    position: absolute;
    bottom: 20px; left: 20px;
    z-index: 20;
    color: #cfcfcf;
    font-size: 25px;
    text-shadow: 1px 1px 3px black;
    font-family: 'Playfair Display', serif;
}

/* ABOUT */
#about-us { padding: 60px 20px; background: #1a1a1a; }
.about-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 30px;
    max-width: 1000px;
    margin: 0 auto;
    flex-wrap: wrap;
}
.about-text { flex: 1; min-width: 300px; text-align: center; }
.about-text h2 { font-size: 80px; font-family: 'Great Vibes', cursive; margin-bottom: 20px; color: #ddd; }
.about-text p { font-size: 18px; color: #777; line-height: 1.6; }
.about-image img {
    width: 100%; max-width: 450px;
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(0,0,0,0.15);
}

/* BARBERS */
#team { padding: 20px 20px 40px; background: #111111; }
.barbers-container { max-width: 1000px; margin: 0 auto; text-align: center; }
.barbers-container h2 { font-size: 120px; font-family: 'Great Vibes', cursive; color: #ddd; margin-bottom: 5px; }

.barbers-grid {
    display: flex;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
}

.barber {
    flex: 1;
    min-width: 200px;
    text-align: center;
}

.barber img {
    width: 100%; max-width: 300px;
    border-radius: 12px;
    box-shadow: 0 0 20px rgba(204,59,59,0.3);
    transform: scale(1.1);
    margin: 15px 0;
}
.barber h3 {
    color: #ddd;
    font-family: 'Great Vibes', cursive;
    font-size: 55px;
    margin-top: 5px;
}

/* SERVICES */
#services { padding: 60px 20px; background: #1a1a1a; }
.services-title {
    max-width: 1000px; margin: 0 auto 40px;
    text-align: center;
    font-size: 120px;
    font-family: 'Great Vibes', cursive;
    color: #ddd;
}
.services-wrapper {
    max-width: 1200px; margin: 0 auto;
    display: flex; gap: 40px;
    align-items: flex-start; flex-wrap: wrap;
}
.service-grid {
    flex: 2; min-width: 500px;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 25px;
}
.service-card {
    background: #222;
    padding: 25px;
    border-radius: 12px;
    border: 1px solid #333;
    color: #ddd;
    cursor: pointer;
    transition: 0.3s ease;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}
.service-card:hover {
    background: #992828;
    color: white;
    transform: scale(1.03);
    border-color: #e74c3c;
}
.service-icon {
    width: 42px; height: 42px;
    padding: 8px;
    background: rgba(255,255,255,0.05);
    border-radius: 50%;
    margin-bottom: 12px;
}
.service-title { font-size: 28px; font-weight: 800; margin-top: 5px; }
.service-desc { font-size: 18px; margin-top: 8px; color: #bbb; }
.service-images {
    flex: 1; min-width: 200px;
    display: flex; flex-direction: column; gap: 20px;
}
.service-images img {
    width: 100%;
    box-shadow: 0 0 10px rgba(0,0,0,0.3);
}

/* CONTACT SECTION */
.contact-wrapper {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1.1fr;
    gap: 60px;
    align-items: stretch;
}

.contact-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 14px;
    box-shadow: 0 20px 50px rgba(0,0,0,0.5);
}

.contact-card {
    background: #111;
    padding: 5px;
    border-radius: 14px;
    box-shadow: 0 20px 50px rgba(0,0,0,0.6);
    display: flex;
    flex-direction: column;
    text-align: center;
    justify-content: space-between;
}

.contact-card h2 {
    font-family: 'Great Vibes', cursive;
    font-size: 100px;
    color: #ddd;
    margin-bottom: 25px;
}

.contact-details {
    margin-bottom: 30px;
}

.contact-email a {
    color: #ddd;
    font-size: 36px;
    text-decoration: none;
    display: inline-block;
    margin-bottom: 10px;
    font-family: 'Lato', sans-serif;
}

.contact-email a:hover {
    color: #cc3b3b;
}

.contact-address {
    font-size: 36px;
    line-height: 1.6;
    color: #bbb;
    font-family: 'Lato', sans-serif;
}

.contact-map iframe {
    width: 100%;
    height: 260px;
    border: none;
    border-radius: 12px;
}


/* MODAL */
.modal-overlay {
    position: fixed; inset: 0;
    background: rgba(0,0,0,0.7);
    display: none; align-items: center; justify-content: center;
    z-index: 999;
}
.modal-overlay.active { display: flex; }
.modal-content {
    background: #fff; color: #111;
    padding: 25px; border-radius: 12px;
    width: 320px; text-align: center;
}
.modal-btn {
    background: #e74c3c; color: white;
    padding: 10px 20px; border: none;
    font-size: 18px; border-radius: 8px;
    cursor: pointer; margin-top: 10px;
    width: 100%; display: block;
}
.modal-btn:hover { background: #c0392b; }
.modal-close {
    margin-top: 10px; padding: 5px 10px;
    background: #ccc; border: none;
    border-radius: 5px; cursor: pointer;
}

/* =========================
   RESPONSIVE
   ========================= */

/* Tablets & small laptops */
@media (max-width: 1024px) {
    .hero-content h1 {
        font-size: 100px;
        white-space: normal;
    }

    .services-wrapper {
        flex-direction: column;
    }

    .service-grid {
        grid-template-columns: repeat(2, 1fr);
        min-width: 100%;
    }

    .service-images {
        display: none;
    }
}

/* Mobile */
@media (max-width: 900px) {
    .contact-image {
        max-height: 600px;
        overflow: hidden;
    }

    .contact-image img {
        height: auto;
        object-fit: contain;
        width: 100%;
    }

    .contact-wrapper {
        gap: 40px;
    }

    .contact-card {
        padding: 35px 25px;
    }

    .contact-card h2 {
        font-size: 48px;
        text-align: center;
    }

    .contact-details {
        text-align: center;
    }
}

/* Tablets & large phones */
@media (max-width: 768px) {

    .hero {
        height: 70svh; /* fixes mobile browser chrome issue */
        min-height: 50svh;
    }

    .hero img {
        object-fit: cover;
        object-position: center;
    }

    .hero-content h1 {
        font-size: 70px;
    }

    .hero-content p {
        font-size: 28px;
    }

    .hero-location {
        font-size: 15px;
        padding: 10px 18px;
        bottom: 20px;
        text-align: center;
    }

    .address-text {
        display: none;
    }

    .about-text h2,
    .barbers-container h2,
    .services-title {
        font-size: 70px !important;
    }

    .barber h3 {
        font-size: 40px;
    }

    .barber img {
        transform: scale(1);
        max-width: 220px;
    }

    .service-grid {
        gap: 18px;
    }

    .service-card {
        padding: 20px;
    }

    .service-title {
        font-size: 24px;
    }

    .service-desc {
        font-size: 16px;
    }

    .contact-wrapper {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .contact-card {
        justify-content: flex-start;
        gap: 25px;
        padding: 25px 20px;
    }

    .contact-map iframe {
        height: 200px;
    }

    .contact-email a,
    .contact-address {
        font-size: 26px;
    }


    .contact-card h2 {
        font-size: 48px;
    }
}

/* Small phones */
@media (max-width: 480px) {
    .hero-content h1 {
        font-size: 78px;
        letter-spacing: 0;
    }

    .hero-content p {
        font-size: 22px;
    }

    .hero-location {
        display: none;
    }

    .about-text h2,
    .barbers-container h2,
    .services-title {
        font-size: 55px !important;
    }

    section {
        padding: 50px 15px !important;
    }

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