/* ========================================
   NEW HEADER STYLES
   ======================================== */
/* rgb(135, 135, 135) hover color */
/* rgb(221, 221, 221) hover button color */
/* Reset and base styles */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background-color: #000000;
  color: #ffffff;
  font-family: "Alumni Sans", sans-serif;
}

.header * {
  box-sizing: border-box;
}

/* Container */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ========================================
   FULL HEADER (Desktop at top)
   ======================================== */

.header__full {
  display: block;
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.header__full.hidden {
  opacity: 0;
  transform: translateY(-100%);
  pointer-events: none;
}

/* Upper Row */
.header__upper-row {
  padding-top: 6px;
  padding-bottom: 2px;
}

.header__upper-content {
  display: flex;
  align-items: center;
  gap: 40px;
}

.header__logo-container {
  flex-shrink: 0;
}

.header__logo {
  height: 60px;
  width: auto;
  transition: height 0.3s ease;
}

.header__logo-link {
  display: block;
  text-decoration: none;
}

/* Location Dropdown */
.header__location-dropdown {
  position: relative;
  flex-shrink: 0;
}

.header__location-btn {
  background: none;
  border: none;
  color: #ffffff;
  font-family: inherit;
  font-size: 24px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 1px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 8px 12px;
  padding-right: 32px;
  border-radius: 4px;
  transition: background-color 0.3s ease;
}

.header__dropdown-arrow {
  transition: transform 0.3s ease;
}

.header__location-btn.active .header__dropdown-arrow {
  transform: rotate(180deg);
}

.header__location-menu {
  position: absolute;
  top: 100%;
  left: 0;
  background-color: #ffffff;
  color: #000000;
  border-radius: 4px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
  min-width: 120px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: all 0.3s ease;
  z-index: 100;
}

.header__location-menu.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.header__location-link {
  display: block;
  padding: 12px 16px;
  color: #000000;
  text-decoration: none;
  font-size: 24px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 1px;
  transition: background-color 0.3s ease;
}

.header__location-link:hover {
  background-color: #f5f5f5;
}

/* Contact Info - Upper Row */
.header__upper-row .header__contact-info {
  display: flex;
  align-items: flex-end;
  gap: 30px;
  justify-content: flex-start;
  margin-left: 215px; /* Align with logo space */
}

.header__upper-content {
  justify-content: flex-start;
  position: relative;
}

.header__address,
.header__hours {
  font-size: 16px;
  font-weight: 400;
  letter-spacing: 0.5px;
}

.header__social {
  display: flex;
  align-items: center;
  gap: 15px;
}

.header__social-link {
  color: #ffffff;
  text-decoration: none;
  transition: color 0.3s ease, transform 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.1);
}

.header__social-link:hover {
  color: rgb(135, 135, 135);
  transform: scale(1.1);
  background-color: rgba(255, 255, 255, 0.2);
}

/* Lower Row */
.header__lower-row {
  padding: 16px 0;
}

.header__lower-content {
  display: flex;
  align-items: center;
}

.header__logo-container {
  flex-shrink: 0;
  margin-right: 40px;
}

.header__navigation {
  flex: 1;
  margin-right: 30px;
}

.header__nav-list {
  display: flex;
  align-items: center;
  gap: 32px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.header__nav-link {
  color: #ffffff;
  text-decoration: none;
  font-size: 24px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: 8px 0;
  position: relative;
  transition: color 0.3s ease;
  min-width: 48px;
  display: inline-block;
}

.header__nav-link:hover {
  color: rgb(135, 135, 135);
}

/* .header__nav-link::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background-color: rgb(135, 135, 135);
  transition: width 0.3s ease;
}

.header__nav-link:hover::after {
  width: 100%;
} */

.header__phone {
  color: #ffffff;
  text-decoration: none;
  font-family: "Viaoda Libre", serif;
  font-size: 18px;
  font-weight: 400;
  flex-shrink: 0;
  transition: color 0.3s ease;
  letter-spacing: 1px;
}

.header__phone:hover {
  color: rgb(135, 135, 135);
}

@media (min-width: 768px) and (max-width: 890px) {
  .header__location-btn {
    padding-right: 16px;
  }
  .header__nav-list {
    gap: 16px;
  }
}

/* Compact header styles removed - now using simple upper row hide/show */

/* ========================================
   MOBILE HEADER
   ======================================== */

.header__mobile {
  display: none;
  padding: 12px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

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

.header__mobile .header__logo {
  height: 35px;
}

.header__mobile-actions {
  display: flex;
  align-items: center;
  gap: 15px;
}

.header__mobile-phone {
  color: #ffffff;
  text-decoration: none;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  transition: all 0.3s ease;
}

.header__mobile-phone:hover {
  transform: scale(1.05);
}

/* Hamburger Menu */
.header__mobile-burger {
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  transition: transform 0.3s ease;
}

.header__burger-line {
  width: 24px;
  height: 2px;
  background-color: #ffffff;
  transition: all 0.3s ease;
  transform-origin: center;
}

.header__mobile-burger.active {
  transform: rotate(0deg);
}

.header__mobile-burger.active .header__burger-line:nth-child(1) {
  transform: rotate(45deg) translate(3px, 5px);
}

.header__mobile-burger.active .header__burger-line:nth-child(2) {
  opacity: 0;
  transform: scale(0);
}

.header__mobile-burger.active .header__burger-line:nth-child(3) {
  transform: rotate(-45deg) translate(4px, -6px);
}

/* ========================================
   MOBILE MENU
   ======================================== */

.header__mobile-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 998;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.header__mobile-overlay.show {
  opacity: 1;
  visibility: visible;
}

.header__mobile-menu {
  position: fixed;
  top: 0;
  left: -1%;
  bottom: 0;
  width: 70%;
  max-width: 320px;
  background-color: #ffffff;
  z-index: 999;
  transform: translateX(-100%);
  transition: transform 0.3s ease;
  overflow-y: auto;
}

.header__mobile-menu.show {
  transform: translateX(0);
}

.header__mobile-menu-header {
  background-color: #000000;
  padding: 12px 20px;
  text-align: center;
}

.header__mobile-menu-logo {
  height: 35px;
  width: auto;
}

.header__mobile-menu-content {
  padding: 20px 20px;
}

/* Mobile Location Dropdown */
.header__mobile-location {
  position: relative;
  margin-bottom: 15px;
  padding-bottom: 0;
  border-bottom: none;
}

.header__mobile-location-btn {
  display: flex;
  background: none;
  border: none;
  color: #000000;
  font-family: inherit;
  font-size: 24px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 1px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 4px;
  width: 100%;
  padding: 1px 0;
  transition: color 0.3s ease;
}

.header__mobile-location-btn:hover {
  border-color: rgb(135, 135, 135);
}

.header__mobile-location-menu {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background-color: #f9f9f9;
  border: 1px solid #e5e5e5;
  /* border-top: none; */
  border-radius: 0 0 4px 4px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: all 0.3s ease;
  z-index: 100;
}

.header__mobile-location-menu.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.header__mobile-location-link {
  display: block;
  padding: 12px 16px;
  color: #000000;
  text-decoration: none;
  font-size: 24px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 1px;
  transition: background-color 0.3s ease;
}

.header__mobile-location-link:hover {
  background-color: #e5e5e5;
}

/* Mobile Navigation */
.header__mobile-nav-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.header__mobile-nav-list li {
  margin-bottom: 15px;
}

.header__mobile-nav-link {
  color: #000000;
  text-decoration: none;
  font-size: 24px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 1px;
  display: block;
  padding: 6px 0;
  transition: color 0.3s ease;
}

.header__mobile-nav-link:hover {
  color: rgb(135, 135, 135);
}

.header__mobile-phone-link {
  display: flex;
  align-items: flex-end;
  color: #000000;
  text-decoration: none;
  font-family: serif;
  font-size: 18px;
  font-weight: 600;
  text-align: left;
  padding: 15px 0;
  transition: all 0.3s ease;
  letter-spacing: 1px;
  min-height: 24px;
  gap: 4px;
}

.header__mobile-phone-link:hover {
  background-color: rgb(135, 135, 135);
  color: #ffffff;
}

/* Mobile Social */
.header__mobile-social {
  display: flex;
  justify-content: flex-start;
  padding-top: 0;
  border-top: none;
}

.header__mobile-social-link {
  color: #000000;
  text-decoration: none;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background-color: #ffffff;
  transition: all 0.3s ease;
}

.header__mobile-social-link:hover {
  background-color: rgb(135, 135, 135);
  color: #ffffff;
  transform: scale(1.1);
}

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

/* Specific rule for exactly 768px */
@media (min-width: 768px) and (max-width: 768px) {
  .header__full {
    display: block;
  }

  .header__mobile {
    display: none;
  }
}

@media (max-width: 767px) {
  .header__full {
    display: none !important;
  }

  .header__mobile {
    display: block;
  }

  .mobile-hidden {
    display: none !important;
  }
}

@media (min-width: 769px) and (max-width: 1120px) {
  .header__upper-row .header__contact-info {
    margin-left: 182px;
    position: relative;
    gap: 15px;
  }

  .header__upper-row .header__contact-info::after {
    content: "+375 (25) 725-50-00";
    font-family: "Viaoda Libre", serif;
    font-size: 16px;
    letter-spacing: 1px;
    /* margin-left: 40px; */
    color: #ffffff;
  }

  .header__lower-row .header__phone {
    display: none;
  }

  .header__logo-container {
    margin-right: 10px;
  }
  .header__upper-content {
    padding: 0px;
  }
}

@media (min-width: 768px) and (max-width: 805px) {
  .header__upper-row .header__contact-info {
    margin-left: 150px;
  }
}

@media (min-width: 1001px) {
  .header__phone {
    position: static;
    order: 0;
  }
}

@media (min-width: 769px) {
  .header__mobile,
  .header__mobile-overlay,
  .header__mobile-menu {
    display: none !important;
  }
}

@media (min-width: 768px) and (max-width: 915px) {
  .header__nav-link {
    font-size: 18px;
  }
  .header__location-btn {
    font-size: 18px;
  }
  .header__location-link {
    font-size: 18px;
  }
}

/* ========================================
   NEW SCREEN LOGO (Mobile Top)
   ======================================== */

.new__screen {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
}

.mobile_top {
  display: flex !important;
  justify-content: center;
  align-items: center;
  padding: 40px 20px;
}

.mobile_top ul {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 40px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.mobile_top .logo {
  display: flex;
  align-items: center;
}

.mobile_top .logo_barbershop {
  height: 80px;
  width: auto;
  max-width: 100%;
}

.mobile_top .reser {
  display: flex;
  align-items: center;
}

.hero__book-btn {
  display: inline-block;
  background-color: #ffffff;
  color: #000000 !important;
  text-decoration: none;
  font-size: 18px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: 15px 30px;
  border-radius: 8px;
  border: 2px solid #ffffff;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.hero__book-btn:hover {
  background-color: rgb(221, 221, 221);
  color: #ffffff;
  border-color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

/* Desktop styles for new__screen centered content */
@media (min-width: 768px) {
  /* Center the existing desktop header navigation */
  .body_desktop_header_nav {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 100;
  }

  .body_desktop_header_nav ul {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 60px;
    padding-top: 0;
  }

  .body_desktop_header_nav_center {
    min-width: 360px;
    max-width: 360px;
  }

  .body_desktop_header_nav_right {
    font-size: 24px !important;
    padding: 20px 45px;
    background-color: #ffffff;
    color: #000000 !important;
    text-decoration: none;
    border-radius: 10px;
    text-transform: uppercase;
    letter-spacing: 2px;
    transition: all 0.3s ease;
  }

  .body_desktop_header_nav_right:hover {
    background-color: rgb(221, 221, 221);
    transform: translateY(-2px);
  }
}

/* Specific rule for exactly 768px - ensure mobile_top is hidden */
@media (min-width: 768px) and (max-width: 768px) {
  .mobile_top {
    display: none !important;
  }
}

@media (max-width: 767px) {
  .mobile_top {
    padding: 30px 15px;
  }

  .mobile_top ul {
    gap: 25px;
  }

  .mobile_top .logo_barbershop {
    height: 60px;
  }

  .hero__book-btn {
    font-size: 16px !important;
    padding: 6px 10px;
  }
}

/* ========================================
   UTILITIES
   ======================================== */

.header__nav-list li a[href^="#"] {
  scroll-behavior: smooth;
}

/* Focus states for accessibility */
.header__location-btn:focus,
.header__nav-link:focus,
.header__phone:focus,
.header__mobile-burger:focus {
  outline: none;
  box-shadow: none;
}

/* Prevent body scroll when mobile menu is open */
body.mobile-menu-open {
  overflow: hidden;
}

/* Smooth transitions for all interactive elements */
.header a,
.header button {
  transition: all 0.3s ease;
}

/* High contrast mode support */
@media (prefers-contrast: high) {
  .header__social-link,
  .header__mobile-phone {
    border: 1px solid currentColor;
  }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
  .header *,
  .header *::before,
  .header *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* Desktop header centering styles */
@media (min-width: 768px) {
  .body_desktop_header_nav {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 100;
  }

  .body_desktop_header_nav ul {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 60px;
    padding-top: 0;
  }

  .body_desktop_header_nav_center {
    min-width: 360px;
    max-width: 360px;
  }

  .body_desktop_header_nav_right {
    font-size: 24px !important;
    padding: 20px 45px;
    background-color: #ffffff;
    color: #000000 !important;
    text-decoration: none;
    border-radius: 10px;
    text-transform: uppercase;
    letter-spacing: 2px;
    transition: all 0.3s ease;
  }

  .body_desktop_header_nav_right:hover {
    background-color: rgb(221, 221, 221);
    transform: translateY(-2px);
  }

  /* New screen centered content */
  .new__screen .mobile_top {
    display: flex !important;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 100;
    width: auto;
    padding: 0;
  }

  .new__screen .mobile_top ul {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 60px;
    margin: 0;
    padding: 0;
    list-style: none;
  }

  .new__screen .mobile_top .logo_barbershop {
    width: auto;
    max-width: 360px;
    height: auto;
  }

  .new__screen .mobile_top .reser a {
    font-size: 24px;
    padding: 20px 45px;
    background-color: #ffffff;
    color: #000000;
    text-decoration: none;
    border-radius: 10px;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-family: "Alumni Sans", sans-serif;
    font-weight: 600;
    transition: all 0.3s ease;
  }

  .new__screen .mobile_top .reser a:hover {
    background-color: rgb(221, 221, 221);
    transform: translateY(-2px);
  }

  .new__screen .mobile_top .borovl {
    display: none;
  }
}

@media (max-width: 360px) {
  .header__mobile-phone-link {
    font-size: 16px;
  }
}
