/*
Theme Name: SF Salon – Fades & Blades PRO
Theme URI: https://fadesandbladessf.com
Author: SF Salon
Description: Professional Barber & Salon Theme with Custom Admin Management.
Version: 3.3
Text Domain: sf-salon
*/

/* =====================
   GLOBAL & RESET
===================== */
html { scroll-behavior: smooth; }

body {
  font-size: 16px;
  background-color: #0b0b0b;
  color: #ffffff;
  margin: 0;
  padding-top: 0; 
  font-family: 'Cinzel', serif;
}

section { scroll-margin-top: 100px; position: relative; z-index: 1; }

/* Tailwind Fallbacks */
.text-yellow-500 { color: #d4af37 !important; }
.bg-zinc-900 { background-color: #18181b !important; }
.bg-black { background-color: #000000 !important; }

/* =====================
   FIXED CENTERED GRID HEADER
===================== */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: auto;
  min-height: 110px;
  background: transparent !important; 
  backdrop-filter: blur(5px);
  z-index: 99999 !important; /* Extremely high to stay above hero */
  border-bottom: 1px solid rgba(212, 175, 55, 0.1);
  display: flex;
  justify-content: center;
  align-items: center;
  transition: background 0.3s ease;
  pointer-events: none; /* Allows clicks to pass through empty space to the page */
}

/* Add background on scroll - triggered by JS */
.site-header.scrolled {
  background: rgba(0, 0, 0, 0.95) !important;
}

.nav-bar {
  max-width: 1600px;
  margin: 0 auto;
  width: 100%;
  display: grid !important;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: 10px 60px;
  pointer-events: none; /* Pass through */
}

/* Reactivate pointer events for interactive elements only */
.menu-left, 
.menu-right, 
.menu-logo, 
.burger {
  pointer-events: auto !important; 
}

.menu-left, 
.menu-right {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: 3.5rem;
}

.menu-left { justify-content: flex-end; padding-right: 50px; }
.menu-right { justify-content: flex-start; padding-left: 50px; }

.menu.mobile-only { display: none; }

.menu a {
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 600;
  color: #ffffff;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  transition: 0.3s ease;
  white-space: nowrap;
}

.menu a:hover { color: #d4af37; }


/* =====================
   CENTER LOGO STYLING
===================== */
.menu-logo {
  text-align: center;
  white-space: nowrap;
  flex-shrink: 0;
  z-index: 10;
}

.menu-logo a { text-decoration: none; display: block; }

.logo-main {
  font-family: 'Cinzel Decorative', serif;
  font-size: 3.2rem; 
  letter-spacing: 0.05em;
  color: #d4af37 !important; 
  display: block;
  line-height: 0.9;
  text-transform: uppercase;
}

.logo-sub {
  font-family: 'Cinzel', serif;
  font-size: 0.85rem;
  letter-spacing: 0.6em;
  color: #ffffff;
  text-transform: uppercase;
  border-top: 1px solid rgba(212, 175, 55, 0.4);
  margin-top: 8px;
  padding-top: 5px;
  display: block;
}

/* =====================
   MOBILE MENU & BURGER
===================== */
.burger { 
  display: none; 
  position: relative;
  z-index: 100001 !important; /* Higher than mobile menu overlay */
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 15px; /* Bigger tap area */
  margin-right: -10px;
}

@media (max-width: 1100px) {
  .nav-bar { 
    display: flex !important; 
    justify-content: space-between; 
    padding: 10px 25px;
    height: 85px;
  }
  
  .menu-left, .menu-right { display: none !important; } 

  .burger {
    display: flex !important;
    flex-direction: column;
    gap: 6px;
    pointer-events: auto !important;
  }

  .burger span { 
    width: 30px; 
    height: 2px; 
    background: #d4af37; 
    transition: 0.3s; 
    display: block;
  }

  /* Animation for Burger to X */
  .burger.active span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
  .burger.active span:nth-child(2) { opacity: 0; }
  .burger.active span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

  .menu.mobile-only {
    position: fixed;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100vh;
    background: #0b0b0b;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 3rem;
    transition: 0.4s ease-in-out;
    z-index: 100000 !important;
    pointer-events: auto !important;
  }
  
  .menu.mobile-only.open { left: 0; }
  .logo-main { font-size: 2.2rem; }
}

/* =====================
   PRICING & ACCORDION FIX
===================== */
.price-category { 
    margin-bottom: 1.5rem; 
    border: 1px solid #333; 
    border-radius: 12px; 
    overflow: hidden;
    background: #141414;
}

.price-toggle { 
    width: 100%; 
    padding: 1.5rem; 
    display: flex; 
    justify-content: space-between; 
    align-items: center; 
    background: #1a1a1a !important; 
    border: none; 
    color: #fff !important; 
    cursor: pointer; 
}

/* Ensure the arrow turns gold when active */
.price-toggle.active i {
    transform: rotate(180deg);
    color: #d4af37 !important;
}

.price-details { 
    max-height: 0; 
    overflow: hidden; 
    transition: all 0.5s cubic-bezier(0, 1, 0, 1); /* Smoother expansion */
    background: #0f0f0f !important; /* Darker background for contrast */
    opacity: 0;
}

/* When open, force height and visibility */
.price-details.open { 
    max-height: 2000px; /* Increased to ensure no clipping */
    opacity: 1;
    transition: all 0.5s ease-in-out;
}

/* Inner content spacing */
.price-details .content-wrapper {
    padding: 1.5rem;
}

.price-item { 
    display: flex; 
    justify-content: space-between; 
    padding: 1rem 0; 
    border-bottom: 1px solid #222;
    color: #eee !important; /* Force light text */
}

.price-item span:last-child {
    color: #d4af37; /* Prices in Gold */
    font-weight: bold;
}

/* =====================
   GALLERY & LIGHTBOX
===================== */
.gallery-thumb { transition: 0.4s cubic-bezier(0.165, 0.84, 0.44, 1); cursor: pointer; }
.gallery-thumb:hover { transform: scale(1.02); filter: brightness(1.1); }
#lightbox img { box-shadow: 0 0 60px rgba(0,0,0,0.9); border: 1px solid rgba(212, 175, 55, 0.1); }


/* Testimonials Styling */
.testimonial-card {
    background: #111;
    border: 1px solid rgba(212, 175, 55, 0.2);
    padding: 30px;
    border-radius: 15px;
    width: 100%;
    max-width: 350px;
    text-align: center;
    transition: transform 0.3s ease;
}

.testimonial-card:hover {
    transform: translateY(-10px);
    border-color: #d4af37;
}

.testimonial-avatar {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
    border-radius: 50%;
    overflow: hidden;
    border: 2px solid #d4af37;
}

.testimonial-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.testimonial-quote {
    font-style: italic;
    line-height: 1.6;
    color: #ccc;
    margin-bottom: 15px;
    font-size: 0.95rem;
}

.testimonial-name {
    font-family: 'Cinzel', serif;
    color: #d4af37;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 0.85rem;
    font-weight: 700;
}

/* Submenu Logic */
.has-submenu {
    position: relative;
}

/* Submenu Container */
.has-submenu {
    position: relative;
    padding-bottom: 10px; /* Bridge gap so menu doesn't close on hover move */
}

.submenu {
    position: absolute;
    top: 110%; /* Starts slightly lower */
    left: 50%;
    transform: translateX(-50%) translateY(10px); /* Start position for animation */
    background: #000;
    border: 1px solid rgba(212, 175, 55, 0.5); /* Semi-transparent gold */
    min-width: 160px;
    padding: 10px 0;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1); /* Smooth easing */
    z-index: 1000;
    box-shadow: 0 15px 35px rgba(0,0,0,0.8);
}

/* The "Show" State */
.has-submenu:hover .submenu {
    opacity: 1;
    visibility: visible;
    top: 100%;
    transform: translateX(-50%) translateY(0);
}

/* Submenu Links */
.submenu li a {
    display: block;
    padding: 12px 20px;
    font-family: 'Cinzel', serif; /* Match your logo style */
    font-size: 13px;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: #fff;
    transition: background 0.2s;
}

.submenu li a:hover {
    background: #d4af37;
    color: #000;
}

/* Mobile Adjustments */
@media (max-width: 768px) {
    .mobile-only .submenu-indicator { display: none; }
    .mobile-only .submenu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        border: none;
        padding-left: 20px;
        box-shadow: none;
        display: block;
    }
}

/* Fix for mobile view - so submenus aren't floating */
@media (max-width: 768px) {
    .submenu {
        position: static;
        transform: none;
        background: transparent;
        border: none;
        display: block; /* Always visible in mobile drawer */
        padding-left: 20px;
    }
}
/* Fix for Burger Button being pushed off screen */
@media (max-width: 768px) {
    .nav-bar {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 0 15px; /* Ensures padding on the right edge */
        overflow: hidden; /* Prevents logo from pushing width */
    }

    .menu-logo {
        flex: 1; /* Allows logo to take available space but not more */
        max-width: 70%; /* Leaves 30% for the burger button */
        text-align: center;
    }

    .logo-main {
        font-size: 1.5rem !important; /* Slightly smaller to fit on one line */
        white-space: nowrap;
    }

    .burger {
        position: relative;
        right: 0;
        flex-shrink: 0; /* Prevents the button from being squashed */
        margin-left: 10px;
    }
}
/* Gallery Mobile Fix */
@media (max-width: 768px) {
   /* Container for the Gallery */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    padding: 20px;
    max-width: 1200px;
    margin: 0 auto;
}

/* Individual Gallery Item */
.gallery-item {
    position: relative;
    border: 1px solid rgba(212, 175, 55, 0.3); /* Subtle gold border */
    border-radius: 8px;
    overflow: hidden;
    background: #111;
    transition: transform 0.3s ease;
}

.gallery-item:hover {
    transform: scale(1.02);
    border-color: #d4af37;
}

/* Ensure the image fits perfectly without cropping */
.gallery-item img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: contain; /* This prevents the cropping seen in your photo */
}

/* Mobile Specific Fix */
@media (max-width: 768px) {
    .gallery-grid {
        grid-template-columns: 1fr; /* One column only on phones */
        padding: 10px;
        gap: 15px;
    }
    
    .gallery-item {
        border-radius: 4px; /* Slightly sharper look for mobile */
    }
}
/* Final fix for Mobile Gallery Image Alignment */
@media (max-width: 768px) {
    .gallery-grid {
        display: block !important; /* Removes grid gaps that cause misalignment */
        padding: 15px !important;
    }

    .gallery-item {
        width: 100% !important;
        height: auto !important; /* Forces the frame to match image height */
        margin-bottom: 20px !important;
        border: 1px solid rgba(212, 175, 55, 0.5) !important;
        background: transparent !important; /* Removes background gaps */
        display: block !important;
    }

    .gallery-item img {
        width: 100% !important;
        height: auto !important; /* Ensures the image doesn't stretch or shrink */
        display: block !important;
        object-fit: contain !important;
        margin: 0 !important;
        padding: 0 !important;
    }
}
