﻿
.landing-hero {
    min-height: 480px;
    height: min(64vh, 650px);
    position: relative;
    display: flex;
    align-items: center;
    color: white;
    background-color: #171717;
    background-image: url('/images/barber-shop.jpg');
    background-size: cover;
    background-position: center 55%;
}

.hero-shade {
    position: absolute;
    inset: 0;
    background: linear-gradient( 90deg, rgba(0, 0, 0, .84) 0%, rgba(0, 0, 0, .58) 47%, rgba(0, 0, 0, .25) 100% );
}

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

.hero-copy {
    max-width: 670px;
    padding: 65px 0;
}

.hero-kicker,
.content-kicker {
    display: block;
    margin-bottom: 18px;
    color: #b48b57;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 2.5px;
}

.hero-copy h1 {
    max-width: 650px;
    font-size: clamp(2.6rem, 5vw, 4.3rem);
    font-weight: 750;
    line-height: 1.08;
    letter-spacing: -2px;
    margin-bottom: 22px;
}

.hero-copy p {
    max-width: 460px;
    color: #e0e0e0;
    font-size: 15px;
    line-height: 1.9;
    margin-bottom: 28px;
}

.hero-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
}

.btn-hero {
    min-width: 125px;
    min-height: 43px;
    padding: 13px 22px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .5px;
    transition: background .2s, color .2s;
}

.btn-hero-outline {
    color: white;
    border: 2px solid white;
}

    .btn-hero-outline:hover {
        color: black;
        background: white;
    }

.btn-hero-solid {
    color: white;
    background: var(--color-accent);
    border: 2px solid var(--color-accent);
}

    .btn-hero-solid:hover {
        color: white;
        background: var(--color-accent-hover);
        border-color: var(--color-accent-hover);
    }

.hero-bottom-label {
    position: absolute;
    right: 5%;
    bottom: 22px;
    z-index: 1;
    display: flex;
    align-items: center;
    gap: 10px;
    color: #ddd;
    font-size: 9px;
    letter-spacing: 2px;
}

    .hero-bottom-label span {
        width: 25px;
        height: 1px;
        background: var(--color-accent);
    }

.services-intro {
    padding: 80px 0;
    background: #fff;
}

    .services-intro h2,
    .home-barbers h2,
    .location-heading h2 {
        margin: 0 0 20px;
        color: #171717;
        font-size: clamp(2rem, 3.5vw, 3rem);
        font-weight: 750;
        letter-spacing: -1px;
    }

    .services-intro p,
    .section-top p,
    .location-heading p {
        max-width: 470px;
        color: #646464;
        font-size: 14px;
        line-height: 1.9;
    }

.btn-section {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 12px 20px;
    margin-top: 12px;
    background: #080808;
    color: white;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .5px;
    border: 1px solid #080808;
    transition: .2s ease;
}

    .btn-section:hover {
        color: #080808;
        background: white;
    }

.services-image {
    width: 100%;
    height: 320px;
    display: block;
    object-fit: cover;
}

.home-barbers {
    padding: 80px 0;
    background: #f5f5f5;
}

.section-top {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 35px;
}

    .section-top p {
        margin-bottom: 0;
    }

/* Keep the barber grid inside its Bootstrap container */
#barberList {
    display: flex;
    align-items: stretch;
    row-gap: 24px;
    /* Override Bootstrap's negative row margins */
    margin-left: 0;
    margin-right: 0;
    width: 100%;
    max-width: 100%;
}

    #barberList > [class*="col-"] {
        display: flex;
        min-width: 0;
    }

.barber-public-card {
    width: 100%;
    max-width: 340px;
    height: 100%;
    margin-inline: auto;
    background: white;
    border: 1px solid #e8e8e8;
    overflow: hidden;
}

.barber-public-photo {
    width: 100%;
    height: 280px;
    display: block;
    object-fit: cover;
    background: #e4e4e4;
}

.barber-public-placeholder {
    width: 100%;
    height: 280px;
    display: grid;
    place-items: center;
    background: #e4e4e4;
    color: #777;
    font-size: 4rem;
}

.barber-public-info {
    padding: 22px;
}

    .barber-public-info h3 {
        font-size: 19px;
        font-weight: 700;
    }

    .barber-public-info p {
        color: #777;
        font-size: 13px;
    }

/* Barbershop location */
.location-section {
    padding: 100px 0;
    background: #fff;
}

.location-heading {
    margin-bottom: 35px;
}

.location-card {
    overflow: hidden;
    background: var(--color-dark);
    border: 1px solid var(--color-border);
    border-radius: 8px;
}

.location-info {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 28px;
}

.location-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 52px;
    width: 52px;
    height: 52px;
    color: var(--color-accent);
    background: rgba(198, 155, 98, 0.12);
    border: 1px solid rgba(198, 155, 98, 0.3);
    border-radius: 50%;
    font-size: 1.4rem;
}

.location-info h3 {
    margin: 0 0 7px;
    color: var(--color-white);
    font-size: 1.25rem;
    font-weight: 700;
}

.location-info p {
    margin: 0;
    color: var(--color-muted);
    overflow-wrap: anywhere;
}

.location-directions {
    margin-left: auto;
    flex-shrink: 0;
    text-decoration: none;
}

.barbershop-map {
    width: 100%;
    height: 420px;
    background: #202020;
    position: relative;
    z-index: 1;
}

    .barbershop-map .map-loading {
        padding: 30px;
        color: var(--color-muted);
    }

.location-message {
    padding: 0 28px 20px;
    margin: 0;
    color: var(--color-muted);
    font-size: 0.9rem;
}

    .location-message:empty {
        display: none;
    }

/* Leaflet popup styling */
.barbershop-map .leaflet-popup-content-wrapper,
.barbershop-map .leaflet-popup-tip {
    background: var(--color-dark);
    color: var(--color-white);
}

.barbershop-map .leaflet-popup-content {
    line-height: 1.6;
}

.map-popup-name {
    margin-bottom: 4px;
    color: var(--color-accent);
    font-weight: 700;
}

.map-popup-address {
    margin: 0;
    color: #555;
}

@media (max-width: 991.98px) {
    .barber-public-card {
        max-width: 320px;
    }
}
@media (max-width: 575.98px) {
    #barberList > [class*="col-"] {
        width: 100%;
    }

    .barber-public-card {
        max-width: 360px;
    }

    .barber-public-photo,
    .barber-public-placeholder {
        height: 280px;
    }
}
@media (max-width: 767.98px) {
    .landing-hero {
        height: 570px;
        min-height: 0;
        background-position: 60% center;
    }

    .hero-copy h1 {
        letter-spacing: -1px;
    }

    .hero-bottom-label {
        display: none;
    }

    .services-intro,
    .home-barbers {
        padding: 55px 0;
    }

    .services-image {
        height: 250px;
    }

    .section-top .btn-section {
        margin-top: 0;
    }

    .location-section {
        padding: 65px 0;
    }

    .location-info {
        align-items: flex-start;
        flex-wrap: wrap;
        padding: 22px;
        gap: 15px;
    }

        .location-info > div:nth-child(2) {
            flex: 1;
            min-width: 0;
        }

    .location-directions {
        margin-left: 0;
        width: 100%;
        text-align: center;
    }

    .barbershop-map {
        height: 320px;
    }

    .location-message {
        padding: 0 22px 18px;
    }
}

/* Prevent landing page content from exceeding the viewport */
.landing-hero,
.services-intro,
.home-barbers,
.location-section {
    width: 100%;
    max-width: 100%;
    min-width: 0;
}

    .landing-hero,
    .hero-content,
    .hero-copy,
    .services-intro .container,
    .home-barbers .container,
    .location-section .container {
        min-width: 0;
    }

        .hero-copy h1,
        .hero-copy p,
        .location-heading h2,
        .location-heading p {
            overflow-wrap: anywhere;
        }

    /* Keep Bootstrap grid content within its container */
    .services-intro .row,
    .home-barbers .row {
        max-width: 100%;
    }

        .services-intro .row > *,
        .home-barbers .row > * {
            min-width: 0;
        }

/* Prevent the location details from expanding the page */
.location-card,
.location-info {
    min-width: 0;
    max-width: 100%;
}

    .location-info > div:nth-child(2) {
        min-width: 0;
        overflow-wrap: anywhere;
    }

.location-directions {
    white-space: normal;
}

/* Keep the map within the location card */
.barbershop-map {
    width: 100%;
    max-width: 100%;
    min-width: 0;
}

@media (max-width: 767.98px) {
    .hero-copy {
        padding: 45px 0;
    }

    .hero-buttons {
        max-width: 100%;
    }

    .btn-hero {
        max-width: 100%;
        white-space: normal;
    }

    .location-info {
        width: 100%;
    }
}
