html{
    font-size: 19px;
}

#video-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -1; 
    background: transparent;
  }
  
/*FONT*/
p {
    margin: 1em;
  }

@font-face {
    font-family: 'LondonBetween';
    src: url('LondonBetween.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}



#barber-photo {
    flex: 0 0 280px;
    max-width: 280px;
    height: auto;
    border-radius: 12px;
    margin-right: 2rem;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.4);
    object-fit: cover;
}







/* General Styles */
body {
    font-family: 'LondonBetween', 'Times New Roman', Times, serif;;
    color: #e0e0e0;
    margin: 0;
    padding: 0;
    overflow-y: auto;
    overflow-x: hidden;
    position: relative;
}

/* Video Background */
#video-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1; /* Keeps the video behind all content */
    object-fit: cover;
}

/* Header Styling */
header {
    color: #ffffff;
    padding: 1.5rem 0;
    text-align: left;
    position: relative; 
    z-index: 1;
    background: rgba(0, 0, 0, 0.0); 
    width: 100%;
}

header h1 {
    font-size: 5.5rem;
    font-weight: bold;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.7);
    margin: 0;
}

nav ul {
    list-style: none;
    padding: 0;
    margin: 1rem 0 0 0;
    display: flex;
    justify-content: center;
}

nav ul li {
    margin: 0 15px;
}

nav ul li a {
    color: #ffffff;
    text-decoration: none;
    font-size: 1.3rem;
    padding: 0.5rem 1rem;
    border: 1px solid #e0e0e0;
    border-radius: 5px;
    transition: background-color 0.3s, color 0.3s;
}

nav ul li a:hover {
    background-color: #333;
    color: #fff;
}

/* Section Styling */
section {
    padding: 2rem;
    margin: 2rem auto;
    text-align: center;
    z-index: 1; /* Keeps sections in front of the video */
    position: relative;
    background: rgba(0, 0, 0, 0.5); /* Semi-transparent background */
    max-width: 800px;
    color: #fff;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.5);
}

section h2 {
    font-size: 2.75rem;
    font-weight: bold;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.7);
    margin-bottom: 1.5rem;
}

section p {
    font-size: 1.3rem;
    line-height: 1.8;
    text-shadow: 1px 1px 5px rgba(0, 0, 0, 0.5);
}

/* Footer Styling */
footer {
    background: rgba(0, 0, 0, 0.5); 
    color: #fff;
    text-align: center;
    padding: 1.5rem 0;
    position: relative;
    z-index: 1;
    text-shadow: 1px 1px 5px rgba(0, 0, 0, 0.5);
    border-top: 1px solid rgba(255, 255, 255, 0.2);
}

/* Adjustments for responsiveness */
@media (max-width: 768px) {
    header h1 {
        font-size: 2rem;
    }

    nav ul li a {
        font-size: 1rem;
        padding: 0.4rem 0.8rem;
    }

    section h2 {
        font-size: 2rem;
    }

    section p {
        font-size: 1rem;
    }
}
/* Barber Profiles */
/* Tab Styling */
.tabs {
    margin: 2rem auto;
    max-width: 800px;
    text-align: center;
}

.tab-buttons {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 1rem;
}

.tab-button {
    padding: 0.6rem 1.2rem;
    margin: 0.5rem;
    font-size: 1.1rem;
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s, color 0.3s;
}


.tab-button:hover,
.tab-button.active {
    background-color: #4CAF50;
    color: #fff;
    border-color: #4CAF50;
    font-weight: bold;
}


.tab-content {
    display: none;
    background: rgba(255, 255, 255, 0.1);
    padding: 1.5rem;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.5);
    color: #fff;
    text-align: left;
}

.tab-content.active {
    display: block;
}

/* Services Section */
#services {
    padding: 2rem;
    max-width: 1400px;
    margin: 0 auto;
    color: #fff;
}


#services h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 2rem;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.7);
}

.service-item {
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.5);
    overflow: hidden;
    text-align: justify;
}


.service-item {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1.5rem;
    text-align: left;
}

.service-item img {
    flex: 1 1 300px;
    max-width: 45%;
    border-radius: 10px;
}

.service-item p {
    flex: 1 1 300px;
    font-size: 1.25rem;
    line-height: 1.7;
    text-shadow: 1px 1px 5px rgba(0, 0, 0, 0.5);
}


.service-item p {
    flex: 1;
    font-size: 1.15rem;
    line-height: 1.7;
    text-shadow: 1px 1px 5px rgba(0, 0, 0, 0.5);
}


.service-item:nth-child(odd) {
    flex-direction: row;
}

.service-item:nth-child(even) {
    flex-direction: row-reverse;
}


/* Barber Profiles Section */
#barber-profiles {
    text-align: center;
    margin: 2rem auto;
    padding: 2.5rem;
    max-width: 1400px;
    width: 90%;
    background: rgba(0, 0, 0, 0.55);
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.45);
}

#barber-profiles h2 {
    font-size: 2.9rem;
    margin-bottom: 0.5rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    text-shadow: 2px 2px 12px rgba(0, 0, 0, 0.8);
}

.barber-profiles-ornament {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    margin: 0 auto 0.75rem;
    max-width: 300px;
}

.ornament-line {
    flex: 1;
    height: 1px;
    background: linear-gradient(to right, transparent, rgba(255, 255, 255, 0.35), transparent);
}

.ornament-symbol {
    color: #4CAF50;
    font-size: 0.7rem;
    opacity: 0.85;
}

.barber-profiles-subtitle {
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.45);
    margin: 0 0 1.75rem 0;
    text-shadow: none;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    font-style: italic;
}

.tab-buttons {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.tab-button {
    padding: 0.5rem 1rem;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid #e0e0e0;
    border-radius: 5px;
    color: #fff;
    cursor: pointer;
    transition: background-color 0.3s, color 0.3s;
}

.tab-button:hover {
    background-color: #333;
    color: #fff;
}









#barber-video {
    margin-top: 1rem;
    width: 100%;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.5);
    display: none;
}

/* Book Button Container */




#back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 100;
    width: 48px;
    height: 48px;
    background: rgba(0, 0, 0, 0.65);
    border: 1px solid rgba(255, 255, 255, 0.25);
    color: #fff;
    font-size: 1.3rem;
    border-radius: 50%;
    cursor: pointer;
    display: none;
    align-items: center;
    justify-content: center;
    transition: background 0.25s ease, border-color 0.25s ease, transform 0.25s ease;
}

#back-to-top:hover {
    background: #4CAF50;
    border-color: #4CAF50;
    transform: translateY(-3px);
}

@media (max-width: 480px) {
    .tab-button {
        width: 100%;
        font-size: 1rem;
        padding: 0.6rem;
        margin: 0.3rem 0;
    }
    header img {
        width: 80%;
    }
}
@media (max-width: 768px) {
    .service-item {
        display: flex;
        flex-direction: column;
        align-items: center;
        text-align: justify;
    }
    .service-item img {
        float: none;
        max-width: 90%;
        margin: 0 0 1rem 0;
    }
}

@media (max-width: 768px) {
    html, body {
        overflow-x: hidden;
    }

    *, *::before, *::after {
        box-sizing: border-box;
    }

    #video-background {
        width: 100vw;
        height: 100vh;
        object-fit: cover;
        overflow: hidden;
    }
}
@media (max-width: 768px) {
    

    
}
@media (max-width: 768px) {
    #services {
        padding: 1rem;
        width: 95%;
        margin: 0 auto;
    }

    .service-item {
        padding: 1.2rem;
        font-size: 1rem;
        line-height: 1.6;
        flex-direction: column;
        align-items: center;
        text-align: justify;
    }

    .service-item img {
        max-width: 100%;
        margin: 0 0 1rem 0;
    }

    .service-item p {
        font-size: 1rem;
        line-height: 1.6;
    }
}



.service-item {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1.5rem;
    text-align: left;
}

.service-item p {
    flex: 1 1 300px;
}#scroll-to-barbers {
    background: #4CAF50;
    border-color: #4CAF50;
    color: #fff;
    font-weight: bold;
    letter-spacing: 0.06em;
    box-shadow: 0 0 18px rgba(76, 175, 80, 0.45);
    animation: book-pulse 2.8s ease-in-out infinite;
}

#scroll-to-barbers:hover {
    background: #3d8b40;
    border-color: #3d8b40;
    box-shadow: 0 0 28px rgba(76, 175, 80, 0.7);
    animation: none;
}

@keyframes book-pulse {
    0%, 100% { box-shadow: 0 0 18px rgba(76, 175, 80, 0.45); }
    50%       { box-shadow: 0 0 32px rgba(76, 175, 80, 0.8); }
}



.book-now-small {
    font-size: 1.3rem;
    padding: 0.8rem 2rem;
    margin: 0.5rem 0;
    background: rgba(0, 0, 0, 0.6);
    color: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s, color 0.3s;
}
.book-now-small:hover {
    background-color: #4CAF50;
    color: #fff;
    border-color: #4CAF50;
    font-weight: bold;
}

.book-now-small {
    display: block;
    width: fit-content;
    margin-top: 1rem;
    align-self: flex-start;
}

.service-item {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 1.5rem;
    text-align: left;
}

.service-item p {
    flex: 1 1 300px;
}

.service-text {
    flex: 1 1 300px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

.service-text p {
    margin-top: 0;
    margin-bottom: 0.6em;
}
@media (max-width: 480px) {
    .tab-button {
      display: block;
      width: 95%;
      max-width: 95%;
      font-size: 1rem;
      padding: 0.6rem;
      margin: 0.5rem auto;
      box-sizing: border-box;
    }
  
    #scroll-to-barbers,
    #scroll-to-services,
    #scroll-to-contact {
      padding: 0.6rem 0.5rem !important;
      font-size: 1rem !important;
    }
  }

@media (max-width: 768px) {
    

    

    

    #barber-photo {
        margin: 0 0 1rem 0;
        max-width: 100%;
        width: 100%;
    }
}

@media (max-width: 480px) {
    

    
}

@media (max-width: 480px) {
    

    

    

    #barber-photo {
        width: 100%;
        max-width: 100%;
        height: auto;
        margin-bottom: 1rem;
    }
}



  #barber-photo {
    width: 100%;
    max-width: 90%;
    margin-bottom: 1rem;
    border-radius: 10px;
  }


/* Accessibility Improvements */
a:focus,
button:focus {
    outline: 3px solid #4CAF50;
    outline-offset: 3px;
}

/* Enhanced Mobile Spacing */
@media (max-width: 480px) {
    body, section {
        padding-left: 1rem;
        padding-right: 1rem;
    }

    .service-item {
        padding: 1rem 0.5rem;
    }

    .book-now-small {
        font-size: 1.1rem;
        width: 100%;
        text-align: center;
    }

    .tab-buttons {
        flex-direction: column;
        align-items: center;
    }

    

    
}


/* === Barber Profile Polish === */

/* === Barber Box Content Unified Styling === */



#barber-photo {
    flex: 0 0 280px;
    max-width: 280px;
    width: 100%;
    height: auto;
    border-radius: 12px;
    margin-right: 2rem;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.4);
    object-fit: cover;
}



/* Unified styling for paragraph tags inside the barber box */


/* === Mobile-Friendly Adjustments === */


    #barber-photo {
        margin: 0 0 1rem 0;
        max-width: 100%;
        width: 100%;
    }

    








/* === Final Barber Box Rebuild === */

/* === Final Barber Layout Matching Services === */

.barber-box {
  display: block;
  background: rgba(255, 255, 255, 0.1);
  padding: 1.5rem;
  margin: 2rem auto;
  max-width: 1200px;
  width: 95%;
  border-radius: 10px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.5);
  text-align: left;
}

.barber-box h3 {
  font-size: 1.7rem;
  margin-bottom: 1rem;
  text-align: center;
}

.barber-box-content {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1.5rem;
}

#barber-photo {
  flex: 1 1 300px;
  max-width: 280px;
  border-radius: 10px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.4);
  object-fit: cover;
  width: 100%;
}

#barber-details {
  flex: 1 1 300px;
  font-size: 1.2rem;
  line-height: 1.7;
  text-align: justify;
}

/* Button & spacing inside box */
.barber-box a {
  display: inline-block;
  margin-top: 1.5rem;
  text-align: center;
  font-size: 1.1rem;
}


/* === Mobile === */
@media (max-width: 768px) {
  .barber-box-content {
    flex-direction: column;
    align-items: center;
    text-align: justify;
    gap: 1rem;
  }

  #barber-photo {
    max-width: 100%;
    width: 100%;
    margin-bottom: 1rem;
  }

  #barber-details {
    font-size: 1rem;
    line-height: 1.6;
  }

  .barber-box h3 {
    font-size: 1.4rem;
  }

  .barber-box {
    padding: 1rem;
  }

  .barber-box a {
    font-size: 1rem;
    width: 100%;
  }
}

/* === Barber Card Grid === */
.barber-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
    padding: 0.5rem 0 1rem;
    max-width: 640px;
    margin: 0 auto;
}

.barber-card {
    cursor: pointer;
    border-radius: 12px;
    overflow: hidden;
    position: relative;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: transform 0.28s ease, box-shadow 0.28s ease, border-color 0.28s ease;
}

.barber-card img {
    width: 100%;
    aspect-ratio: 3 / 4;
    object-fit: cover;
    object-position: top;
    display: block;
    transition: transform 0.35s ease;
}

.barber-card:hover img {
    transform: scale(1.06);
}

.barber-card-name {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 2.5rem 0.75rem 0.75rem;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.88) 0%, transparent 100%);
    color: #fff;
    font-size: 0.92rem;
    text-shadow: 1px 1px 5px rgba(0, 0, 0, 0.9);
    letter-spacing: 0.02em;
}

.barber-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.6);
    border-color: #4CAF50;
}

/* === Barber Detail Panel === */
.barber-detail {
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    padding: 0 1.5rem;
    margin-top: 0;
    background: rgba(255, 255, 255, 0.07);
    border-radius: 12px;
    border: 1px solid transparent;
    position: relative;
    transition: max-height 0.45s ease, opacity 0.35s ease, margin-top 0.45s ease, padding 0.45s ease, border-color 0.45s ease;
}

.barber-detail.open {
    max-height: 800px;
    opacity: 1;
    padding: 1.75rem 1.5rem;
    margin-top: 1.5rem;
    border-color: rgba(255, 255, 255, 0.12);
}

.barber-detail-close {
    position: absolute;
    top: 0.75rem;
    right: 1rem;
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.5);
    font-size: 1.8rem;
    line-height: 1;
    cursor: pointer;
    padding: 0.1rem 0.4rem;
    transition: color 0.2s;
}

.barber-detail-close:hover {
    color: #4CAF50;
}

.barber-detail-body {
    display: flex;
    gap: 1.75rem;
    align-items: flex-start;
}

.barber-detail-body img {
    flex: 0 0 210px;
    width: 210px;
    height: 250px;
    object-fit: cover;
    object-position: top;
    border-radius: 10px;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.5);
}

.barber-detail-text {
    flex: 1;
    color: #e0e0e0;
}

.barber-detail-text h3 {
    font-size: 1.5rem;
    margin: 0 0 0.85rem 0;
    color: #fff;
    text-shadow: 1px 1px 6px rgba(0, 0, 0, 0.6);
}

.barber-detail-text p {
    font-size: 1.05rem;
    line-height: 1.7;
    margin: 0 0 1.25rem 0;
    text-align: left;
}

.detail-quote {
    font-style: italic;
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.6);
    border-left: 2px solid #4CAF50;
    margin: 1.1rem 0 0.5rem 0;
    padding: 0.4rem 0 0.4rem 1rem;
    line-height: 1.6;
    text-align: left;
}

.detail-signature {
    font-family: 'Pinyon Script', cursive;
    font-size: 2rem;
    color: rgba(255, 255, 255, 0.75);
    text-shadow: 1px 2px 8px rgba(0, 0, 0, 0.5);
    margin: 0 0 1.25rem 0.25rem;
    text-align: left;
}

.detail-book-link {
    display: inline-block;
    padding: 0.7rem 1.5rem;
    background-color: #4CAF50;
    color: #fff;
    text-decoration: none;
    border-radius: 6px;
    font-size: 1.05rem;
    transition: background-color 0.2s ease;
}

.detail-book-link:hover {
    background-color: #3d8b40;
}

.barber-card.active {
    border-color: #4CAF50;
    box-shadow: 0 0 0 2px rgba(76, 175, 80, 0.4);
}

@media (max-width: 600px) {
    .barber-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 0.9rem;
    }

    .barber-detail-body {
        flex-direction: column;
        align-items: center;
    }

    .barber-detail-body img {
        flex: none;
        width: 100%;
        height: auto;
        max-width: 240px;
    }

    .barber-detail.open {
        max-height: 1000px;
        padding: 1.25rem 1rem;
    }

    .barber-detail-text p {
        font-size: 0.95rem;
    }
}

/* === Founder Signatures === */
.founder-photo-wrap {
    flex: 1 1 300px;
    max-width: 45%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.founder-photo-wrap img {
    width: 100%;
    border-radius: 10px;
}

.founder-signatures {
    display: flex;
    justify-content: space-around;
    width: 100%;
    margin-top: 0.75rem;
    padding: 0 0.5rem;
}

.signature {
    font-family: 'Pinyon Script', cursive;
    font-size: 1.9rem;
    color: rgba(255, 255, 255, 0.88);
    text-shadow: 1px 2px 8px rgba(0, 0, 0, 0.6);
    letter-spacing: 0.02em;
    line-height: 1.2;
}

@media (max-width: 768px) {
    .founder-photo-wrap {
        max-width: 100%;
    }

    .founder-signatures {
        justify-content: space-evenly;
    }

    .signature {
        font-size: 1.6rem;
    }
}

/* === Contact Section === */
#contact h2 {
    font-size: 2.5rem;
    margin-bottom: 0.4rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    text-shadow: 2px 2px 12px rgba(0, 0, 0, 0.8);
}

.contact-ornament {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    margin: 0 auto 0.6rem;
    max-width: 200px;
}

.contact-subtitle {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.45);
    letter-spacing: 0.1em;
    text-transform: uppercase;
    font-style: italic;
    margin: 0 0 2rem 0;
    text-shadow: none;
}

.contact-grid {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    flex-wrap: wrap;
    margin-bottom: 2rem;
}

.contact-item {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 1.5rem 2rem;
    min-width: 190px;
    transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.contact-item:hover {
    border-color: #4CAF50;
    box-shadow: 0 4px 20px rgba(76, 175, 80, 0.12);
}

.contact-icon {
    font-size: 1.4rem;
    margin-bottom: 0.5rem;
}

.contact-label {
    font-size: 0.72rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.38);
    margin-bottom: 0.45rem;
}

.contact-value {
    font-size: 1rem;
    color: #fff;
    line-height: 1.6;
    display: block;
}

.contact-link {
    text-decoration: none;
    transition: color 0.2s;
}

.contact-link:hover {
    color: #4CAF50;
}

.contact-social {
    display: flex;
    justify-content: center;
    gap: 1rem;
}

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 46px;
    height: 46px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.07);
    border: 1px solid rgba(255, 255, 255, 0.12);
    transition: background 0.25s ease, border-color 0.25s ease, transform 0.25s ease;
    overflow: hidden;
}

.social-link:hover {
    background: rgba(76, 175, 80, 0.15);
    border-color: #4CAF50;
    transform: translateY(-3px);
}

.social-link img {
    width: 26px;
    height: 26px;
    object-fit: contain;
}

/* === Nav Button Base Sizes (desktop) === */
#scroll-to-barbers,
#scroll-to-services,
#scroll-to-contact {
    font-size: 1.3rem;
    padding: 0.8rem 2rem;
    margin: 0.4rem;
}

#scroll-to-services,
#scroll-to-contact {
    background: rgba(0, 0, 0, 0.6);
}

/* ===================================
   MOBILE OPTIMIZATION
   =================================== */
@media (max-width: 768px) {
    html {
        font-size: 16px;
    }

    header {
        padding: 0.75rem 0;
    }

    section {
        margin: 1rem auto;
        padding: 1.25rem 1rem;
    }

    #services {
        padding: 0.75rem;
        width: 95%;
    }

    #barber-profiles {
        width: 95%;
        padding: 1.5rem 1rem;
    }

    #barber-profiles h2 {
        font-size: 2rem;
        letter-spacing: 0.07em;
    }

    .barber-grid {
        max-width: 100%;
        gap: 0.75rem;
    }

    .barber-card-name {
        font-size: 0.78rem;
        padding: 1.75rem 0.4rem 0.5rem;
    }

    .barber-detail.open {
        max-height: 1400px;
        padding: 1.25rem 1rem;
    }

    .barber-detail-body {
        flex-direction: column;
        align-items: center;
    }

    .barber-detail-body img {
        flex: none;
        width: 100%;
        height: auto;
        max-width: 220px;
    }

    .barber-detail-text h3 {
        font-size: 1.25rem;
        text-align: center;
    }

    .barber-detail-text p,
    .detail-quote {
        font-size: 0.95rem;
    }

    .detail-signature {
        font-size: 1.6rem;
        text-align: center;
    }

    .detail-book-link {
        display: block;
        text-align: center;
    }

    .contact-grid {
        flex-direction: column;
        align-items: center;
    }

    .contact-item {
        width: 100%;
        min-width: unset;
        box-sizing: border-box;
    }

    #back-to-top {
        width: 42px;
        height: 42px;
        font-size: 1.1rem;
        bottom: 20px;
        right: 15px;
    }

    #scroll-to-barbers,
    #scroll-to-services,
    #scroll-to-contact {
        font-size: 1.05rem;
        padding: 0.7rem 1.5rem;
        margin: 0.3rem;
    }
}

@media (max-width: 480px) {
    html {
        font-size: 15px;
    }

    #scroll-to-barbers,
    #scroll-to-services,
    #scroll-to-contact {
        display: block;
        width: 80%;
        margin: 0.35rem auto;
        padding: 0.75rem 1rem;
        font-size: 1rem;
    }

    #barber-profiles {
        padding: 1.1rem 0.75rem;
    }

    #barber-profiles h2 {
        font-size: 1.65rem;
    }

    .barber-grid {
        gap: 0.5rem;
    }

    .barber-detail.open {
        max-height: 1600px;
    }
}
