/* General Styles */
:root {
  --primary-color: #000000;
  --secondary-color: #ffffff;
  --accent-color: #333333;
  --light-gray: #f8f9fa;
  --dark-gray: #212529;
  --transition: all 0.3s ease;
  --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.12);
  --shadow-xl: 0 16px 32px rgba(0, 0, 0, 0.15);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Nunito Sans", sans-serif;
  color: var(--dark-gray);
  line-height: 1.6;
  overflow-x: hidden;
  font-weight: 400;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: "Cormorant Garamond", serif;
  font-weight: 700;
  margin-bottom: 1.2rem;
  letter-spacing: -0.02em;
}

a {
  color: var(--primary-color);
  text-decoration: none;
  transition: var(--transition);
}

a:hover {
  color: var(--accent-color);
}

img {
  max-width: 100%;
  height: auto;
}

.section-title {
  font-size: 2.8rem;
  margin-bottom: 1.2rem;
  position: relative;
  color: var(--primary-color);
  font-weight: 700;
}

.section-subtitle {
  font-size: 1.1rem;
  max-width: 700px;
  margin: 0 auto 2rem;
  color: var(--dark-gray);
  opacity: 0.85;
}

.divider {
  width: 60px;
  height: 3px;
  background-color: var(--primary-color);
  margin: 0 auto 2.5rem;
  position: relative;
}

.divider::after {
  content: "";
  position: absolute;
  right: -10px;
  top: 50%;
  transform: translateY(-50%);
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: var(--primary-color);
}

.btn {
  padding: 14px 32px;
  font-weight: 500;
  border-radius: 50px;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-size: 0.9rem;
  transition: var(--transition);
  border: 2px solid var(--primary-color);
  outline: none !important;
  box-shadow: none !important;
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.btn:focus,
.btn:active,
.btn:hover {
  outline: none !important;
  box-shadow: none !important;
}

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

.btn-primary:hover,
.btn-primary:focus {
  background-color: transparent;
  color: var(--primary-color);
  border-color: var(--primary-color);
  outline: none !important;
  box-shadow: none !important;
}

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

.btn-outline-dark:hover,
.btn-outline-dark:focus {
  background-color: var(--primary-color);
  color: var(--secondary-color);
  border-color: var(--primary-color);
  outline: none !important;
  box-shadow: none !important;
}

.btn-outline-light {
  background-color: transparent;
  color: var(--secondary-color);
  border-color: var(--secondary-color);
}

.btn-outline-light:hover,
.btn-outline-light:focus {
  background-color: var(--secondary-color);
  color: var(--primary-color);
  border-color: var(--secondary-color);
  outline: none !important;
  box-shadow: none !important;
}

.btn-book {
  background-color: var(--primary-color);
  color: var(--secondary-color);
  border: none;
  border-radius: 50px;
}

.btn-book:hover,
.btn-book:focus {
  background-color: var(--accent-color);
  color: var(--secondary-color);
  outline: none !important;
  box-shadow: none !important;
}

/* Preloader Styles */
.preloader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: var(--primary-color);
  z-index: 9999;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: opacity 0.5s ease, visibility 0.5s ease;
}

.preloader.fade-out {
  opacity: 0;
  visibility: hidden;
}

.preloader-content {
  text-align: center;
  width: 80%;
  max-width: 600px;
}

.preloader-logo {
  max-height: 160px;
  margin-bottom: 2rem;
  opacity: 0;
  animation: fadeInLogo 1s ease forwards 0.3s;
}

.preloader-text {
  color: var(--secondary-color);
  font-size: 1.8rem;
  margin-bottom: 2rem;
  font-family: "Cormorant Garamond", serif;
  font-weight: 600;
  letter-spacing: -0.02em;
  opacity: 0;
  animation: fadeInText 1s ease forwards 0.6s;
}

.progress-container {
  width: 100%;
  height: 4px;
  background-color: rgba(255, 255, 255, 0.2);
  border-radius: 2px;
  overflow: hidden;
  opacity: 0;
  animation: fadeInProgress 1s ease forwards 0.9s;
}

.progress-bar {
  height: 100%;
  background-color: var(--secondary-color);
  width: 0;
  transition: width 0.3s ease;
  border-radius: 2px;
}

/* Preloader animations */
@keyframes fadeInLogo {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

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

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

/* Header Styles */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background-color: transparent;
  transition: background-color 0.3s ease;
}

/* Scrolled state for header */
.header.scrolled {
  background-color: rgba(0, 0, 0, 0.9);
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.announcement-bar {
  background-color: var(--primary-color);
  color: var(--secondary-color);
  padding: 10px 0;
  font-size: 0.9rem;
  letter-spacing: 0.5px;
}

.navbar {
  padding: 2px 0;
}

.logo {
  height: 120px;
  transition: var(--transition);
}

.navbar-nav .nav-link {
  color: var(--secondary-color);
  font-weight: 500;
  margin: 0 15px;
  position: relative;
  padding: 8px 0;
  font-size: 1.2rem;
  letter-spacing: 0.5px;
}

.navbar-nav .nav-link::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--secondary-color);
  transition: var(--transition);
}

.navbar-nav .nav-link:hover::after,
.navbar-nav .nav-link.active::after {
  width: 100%;
}

/* Active navigation link styling */
.navbar-nav .nav-link.active {
  color: var(--secondary-color) !important;
}

.navbar-toggler {
  border: none;
  padding: 5px;
}

.navbar-toggler:focus {
  box-shadow: none;
}

.navbar-toggler-icon {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28255, 255, 255, 0.55%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
  width: 24px;
  height: 24px;
}

/* Mobile Menu Styles */
.mobile-menu-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.95);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.mobile-menu-overlay.active {
  opacity: 1;
  visibility: visible;
}

.mobile-menu-container {
  position: relative;
  width: 100%;
  max-width: 500px;
  padding: 2rem;
}

.mobile-menu-close {
  position: absolute;
  top: 20px;
  right: 20px;
  background: none;
  border: none;
  color: var(--secondary-color);
  font-size: 2rem;
  cursor: pointer;
  transition: var(--transition);
}

.mobile-menu-close:hover {
  transform: rotate(90deg);
}

.mobile-menu-content {
  text-align: center;
}

.mobile-menu-nav {
  list-style: none;
  padding: 0;
  margin: 0 0 2rem;
}

.mobile-menu-item {
  margin-bottom: 1.8rem;
}

.mobile-menu-link {
  color: var(--secondary-color);
  font-size: 1.5rem;
  font-weight: 600;
  font-family: "Playfair Display", serif;
  text-transform: uppercase;
  letter-spacing: 2px;
  position: relative;
  display: inline-block;
  transition: var(--transition);
}

.mobile-menu-link::after {
  content: "";
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--secondary-color);
  transition: var(--transition);
}

.mobile-menu-link:hover::after {
  width: 100%;
}

.mobile-menu-social {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-bottom: 2rem;
}

.mobile-menu-social a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 50px;
  height: 50px;
  background-color: rgba(255, 255, 255, 0.1);
  color: var(--secondary-color);
  border-radius: 50%;
  transition: var(--transition);
  font-size: 1.2rem;
}

.mobile-menu-social a:hover {
  background-color: var(--secondary-color);
  color: var(--primary-color);
  transform: translateY(-5px);
}

.mobile-menu-cta {
  margin-top: 2rem;
}

/* Hero Section */
.hero {
  height: 100vh;
  background: linear-gradient(rgba(0, 0, 0, 1), rgba(0, 0, 0, 0.4)),
    url("../images/shop-background.jpg");
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  position: relative;
  padding-top: 120px;
  display: flex;
  align-items: center;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

.hero .container {
  position: relative;
  z-index: 2;
}

.hero-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-top: 2rem;
}

.hero-title {
  font-size: 4.2rem;
  color: var(--secondary-color);
  margin-bottom: 1.8rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.1;
}

.hero-subtitle {
  font-size: 1.6rem;
  color: var(--secondary-color);
  margin-bottom: 2.5rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
  opacity: 0.9;
  font-weight: 300;
}

.hero-buttons {
  margin-bottom: 2.5rem;
}

.hero-phone {
  color: var(--secondary-color);
}

/* Hero Social Icons */
.hero-social {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 25px;
}

.social-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 50px;
  height: 50px;
  background-color: rgba(255, 255, 255, 0.1);
  color: var(--secondary-color);
  border-radius: 50%;
  transition: var(--transition);
  font-size: 1.2rem;
}

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

/* Services Section */
.services {
  background-color: var(--secondary-color);
  padding: 80px 0;
}

.service-card {
  background-color: var(--secondary-color);
  border: 1px solid rgba(0, 0, 0, 0.08);
  padding: 2rem 2rem;
  text-align: center;
  height: 100%;
  transition: var(--transition);
  border-radius: 8px;
  box-shadow: var(--shadow-sm);
}

.service-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-10px);
}

.service-icon {
  width: 80px;
  height: 80px;
  background-color: var(--primary-color);
  color: var(--secondary-color);
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  margin: 0 auto 1.8rem;
  font-size: 1.8rem;
  transition: var(--transition);
}

.service-card:hover .service-icon {
  transform: scale(1.1);
}

.service-title {
  font-size: 1.3rem;
  margin-bottom: 1.2rem;
  min-height: 3rem;
  font-weight: 600;
}

.service-price {
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--primary-color);
  margin-bottom: 1.2rem;
}

.service-desc {
  margin-bottom: 1.8rem;
  min-height: 3rem;
  opacity: 0.85;
}

/* About Section */
.about {
  background-color: var(--light-gray);
  padding: 80px 0;
}

.barber-card {
  background-color: var(--secondary-color);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: var(--shadow-md);
  transition: var(--transition);
  height: 100%;
  max-width: 280px; /* Set a max-width for the cards */
  padding: 15px;
  text-align: center;
}

.barber-img-container {
  position: relative;
  overflow: hidden;
  height: 220px; /* Reduced from 300px */
}

.barber-img {
  width: 100%;
  height: 100%;
  border-radius: 8px;
  object-fit: cover;
  transition: var(--transition);
}

.barber-name,
.barber-title {
  padding: 0 10px;
}

.barber-name {
  font-size: 1.2rem; /* Reduced from 1.4rem */
  margin: 1rem 0 0.5rem; /* Adjusted margin */
  font-weight: 600;
}

.barber-title {
  color: var(--dark-gray);
  margin-bottom: 1rem; /* Adjusted margin */
  opacity: 0.85;
  font-size: 0.9rem; /* Reduced font size */
}

/* Barbers Social Icons - Updated */
.barber-social {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-top: 10px;
}

.barber-social a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  background-color: var(--primary-color);
  color: var(--secondary-color);
  border-radius: 50%;
  transition: var(--transition);
  font-size: 1rem;
}

.barber-social a:hover {
  background-color: var(--accent-color);
  color: var(--secondary-color);
  transform: scale(1.1);
}

/* Portfolio Section */
.portfolio {
  background-color: var(--secondary-color);
  padding: 80px 0;
}

.portfolio-item {
  position: relative;
  overflow: hidden;
  border-radius: 8px;
  box-shadow: var(--shadow-md);
  transition: var(--transition);
  height: 250px;
}

.portfolio-item:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-xl);
}

.portfolio-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition);
}

.portfolio-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: var(--transition);
}

.portfolio-item:hover .portfolio-overlay {
  opacity: 1;
}

.portfolio-info {
  text-align: center;
  color: var(--secondary-color);
  padding: 1rem;
}

.portfolio-info h4 {
  font-size: 1.4rem;
  margin-bottom: 0.5rem;
  font-weight: 600;
}

/* Timings & Contact Section */
.timings-contact {
  background-color: var(--light-gray);
  padding: 80px 0;
}

.timings-card {
  background-color: var(--secondary-color);
  padding: 2.5rem;
  box-shadow: var(--shadow-md);
  height: 100%;
  border-radius: 8px;
}

.timings-list {
  margin-top: 1.8rem;
}

.timing-item {
  display: flex;
  justify-content: space-between;
  padding: 1.2rem 0;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.timing-item:last-child {
  border-bottom: none;
}

.day {
  font-weight: 600;
}

.time {
  color: var(--dark-gray);
}

.map-container {
  box-shadow: var(--shadow-md);
  height: 450px;
  border-radius: 8px;
  overflow: hidden;
}

.contact-item {
  display: flex;
  align-items: flex-start;
  margin-bottom: 1.2rem;
}

.contact-item i {
  font-size: 1.6rem;
  margin-right: 1.2rem;
  color: var(--primary-color);
}

.contact-item h5 {
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
  font-weight: 600;
}

.contact-item a {
  color: var(--dark-gray);
}

.contact-item a:hover {
  color: var(--primary-color);
}

/* Reviews Section */
.reviews {
  background-color: var(--light-gray);
  padding: 80px 0;
}

.review-card {
  background-color: var(--secondary-color);
  padding: 2.5rem;
  height: 100%;
  box-shadow: var(--shadow-md);
  border-radius: 8px;
  transition: var(--transition);
}

.review-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}

.review-rating {
  color: #ffc107;
  margin-bottom: 1.2rem;
  font-size: 1.1rem;
}

.review-text {
  font-style: italic;
  margin-bottom: 1.8rem;
  line-height: 1.7;
  opacity: 0.9;
}

.review-author h5 {
  font-weight: 600;
  margin-bottom: 0;
  font-size: 1.1rem;
}

/* Footer */
.footer {
  background-color: var(--primary-color);
  color: var(--secondary-color);
  padding: 60px 0 30px;
}

.footer-logo img {
  max-height: 140px;
  margin-bottom: 1.5rem;
}

.footer-title {
  font-size: 1.3rem;
  margin-bottom: 1.8rem;
  position: relative;
  padding-bottom: 0.8rem;
  font-weight: 600;
}

.footer-title::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 40px;
  height: 2px;
  background-color: var(--secondary-color);
}

.footer-links {
  list-style: none;
  padding: 0;
}

.footer-links li {
  margin-bottom: 0.8rem;
}

.footer-links a {
  color: var(--secondary-color);
  opacity: 0.8;
  transition: var(--transition);
}

.footer-links a:hover {
  opacity: 1;
  padding-left: 5px;
}

.social-links {
  display: flex;
  gap: 15px;
  margin-bottom: 2rem;
}

.social-links a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 45px;
  height: 45px;
  background-color: rgba(255, 255, 255, 0.1);
  color: var(--secondary-color);
  border-radius: 50%;
  transition: var(--transition);
}

.social-links a:hover {
  background-color: var(--secondary-color);
  color: var(--primary-color);
  transform: translateY(-5px);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 2rem;
  margin-top: 2rem;
  text-align: center;
}

.footer-bottom p {
  margin-bottom: 0.5rem;
  opacity: 0.8;
}

.footer-bottom a {
  color: var(--secondary-color);
  opacity: 0.8;
}

.footer-bottom a:hover {
  opacity: 1;
}

/* Back to Top Button */
.back-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 50px;
  height: 50px;
  background-color: var(--primary-color);
  color: var(--secondary-color);
  border: none;
  font-size: 1.2rem;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
  z-index: 999;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-lg);
  border-radius: 50%;
}

.back-to-top:hover {
  background-color: var(--accent-color);
  transform: translateY(-5px);
}

.back-to-top.show {
  opacity: 1;
  visibility: visible;
}

/* Book Appointment Button */
.book-appointment-btn {
  position: fixed;
  bottom: 30px;
  left: 30px;
  background-color: var(--primary-color);
  color: var(--secondary-color);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 25px;
  height: 70px;
  z-index: 999;
  box-shadow: var(--shadow-lg);
  transition: var(--transition);
  text-decoration: none;
  font-weight: 500;
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  white-space: nowrap;
  border-radius: 50px;
}

.book-appointment-btn i {
  font-size: 1.5rem;
  margin-right: 12px;
}

.book-appointment-btn:hover {
  background-color: var(--accent-color);
  transform: translateY(-5px);
  box-shadow: var(--shadow-xl);
  color: var(--secondary-color);
}

/* Responsive Styles */
@media (max-width: 991.98px) {
  .hero-title {
    font-size: 3rem;
  }

  .section-title {
    font-size: 2.2rem;
  }

  .navbar-nav {
    text-align: center;
    margin-top: 1rem;
  }

  .navbar-nav .nav-link {
    margin: 0.5rem 0;
  }

  .map-container {
    height: 350px;
  }

  .back-to-top {
    bottom: 20px;
    right: 20px;
    width: 45px;
    height: 45px;
  }

  .book-appointment-btn {
    bottom: 20px;
    left: 20px;
    height: 60px;
    padding: 0 20px;
    font-size: 0.9rem;
  }

  .book-appointment-btn i {
    font-size: 1.3rem;
    margin-right: 10px;
  }
}

@media (max-width: 767.98px) {
  .hero-title {
    font-size: 2.5rem;
  }

  .hero-subtitle {
    font-size: 1.2rem;
  }

  .section-title {
    font-size: 2rem;
  }

  .service-card {
    margin-bottom: 1.5rem;
  }

  .barber-card {
    margin-bottom: 1.5rem;
  }

  .portfolio-item {
    margin-bottom: 1.5rem;
  }

  .review-card {
    margin-bottom: 1.5rem;
  }

  .map-container {
    height: 300px;
  }

  .back-to-top {
    bottom: 15px;
    right: 15px;
    width: 40px;
    height: 40px;
  }

  .book-appointment-btn {
    bottom: 15px;
    left: 15px;
    height: 55px;
    padding: 0 18px;
    font-size: 0.85rem;
  }

  .book-appointment-btn i {
    font-size: 1.2rem;
    margin-right: 8px;
  }
}

@media (max-width: 575.98px) {
  .hero {
    height: auto;
    min-height: 100vh;
    padding-top: 140px;
    padding-bottom: 3rem;
  }

  .hero-title {
    font-size: 2rem;
  }

  .section-title {
    font-size: 1.8rem;
  }

  .btn {
    padding: 10px 20px;
    font-size: 0.8rem;
  }

  .back-to-top {
    bottom: 15px;
    right: 15px;
    width: 40px;
    height: 40px;
    font-size: 1rem;
  }

  .book-appointment-btn {
    bottom: 15px;
    left: 15px;
    height: 50px;
    padding: 0 15px;
    font-size: 0.8rem;
  }

  .book-appointment-btn i {
    font-size: 1.1rem;
    margin-right: 6px;
  }

  /* Progress bar adjustments for mobile */
  .progress-container {
    width: 60%;
    margin: 0 auto;
  }

  /* Logo adjustments for mobile */
  .preloader-logo {
    max-height: 140px;
  }

  .preloader-text {
    font-size: 1.4rem;
  }
}

@media (max-width: 480px) {
  .progress-container {
    width: 50%;
  }

  /* Logo adjustments for very small screens */
  .preloader-logo {
    max-height: 120px;
  }

  .preloader-text {
    font-size: 1.2rem;
  }
}

/* Barbers Section Responsive Styles */
.barbers-grid {
  display: grid;
  gap: 25px; /* Slightly reduced gap */
  justify-items: center; /* This centers items within their grid cell */
}

/* Desktop: 5 columns in a single row */
@media (min-width: 992px) {
  .barbers-grid {
    grid-template-columns: repeat(5, 1fr);
  }
}

/* Tablet: 3 columns in a single row */
@media (min-width: 768px) and (max-width: 991.98px) {
  .barbers-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* Small Tablet: 2 columns in a single row */
@media (min-width: 576px) and (max-width: 767.98px) {
  .barbers-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Mobile: 2 columns on top, 2 columns below, 1 centered below */
@media (max-width: 575.98px) {
  .barbers-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  /* The 5th barber (last child) spans both columns and is centered */
  .barbers-grid .barber-card:last-child {
    grid-column: 1 / -1; /* Spans from the first column to the last */
    max-width: 280px; /* Constrain the width of the centered card */
  }
}
