/* ========================================
   Hair Fashion by Laura Tschaggelar
   Custom Styles — complements Tailwind CDN
   ======================================== */

/* --- Font Faces --- */
@font-face {
  font-family: 'Billion';
  src: url('../hair-fashionhouse.ch-assets/fonts/BillionWebFonts.woff') format('woff'),
       url('../hair-fashionhouse.ch-assets/fonts/BillionWebFonts.ttf') format('truetype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

/* --- Base --- */
html {
  scroll-behavior: smooth;
  scroll-padding-top: 5rem;
}

body {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

::selection {
  background: #2da0ce33;
  color: #1A1A1A;
}

/* --- Scroll Reveal Animations --- */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s cubic-bezier(.16,1,.3,1), transform 0.7s cubic-bezier(.16,1,.3,1);
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}
.reveal-delay-1 { transition-delay: .1s; }
.reveal-delay-2 { transition-delay: .2s; }
.reveal-delay-3 { transition-delay: .3s; }
.reveal-delay-4 { transition-delay: .4s; }

/* --- Hero --- */
.hero-overlay {
  background: linear-gradient(180deg, rgba(0,0,0,0.35) 0%, rgba(0,0,0,0.55) 100%);
}

/* --- Gallery Horizontal Scroll --- */
.gallery-scroll {
  display: flex;
  gap: 1rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  padding-bottom: 0.5rem;
}
.gallery-scroll::-webkit-scrollbar { display: none; }
.gallery-scroll > * {
  scroll-snap-align: start;
  flex-shrink: 0;
}

/* --- Gallery Grid (Inspiration Page) --- */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1rem;
}
.gallery-grid img {
  width: 100%;
  height: 320px;
  object-fit: cover;
  border-radius: 0.5rem;
  transition: transform 0.4s cubic-bezier(.16,1,.3,1), box-shadow 0.3s;
  cursor: pointer;
}
.gallery-grid img:hover {
  transform: scale(1.03);
  box-shadow: 0 8px 30px rgba(0,0,0,.12);
}

/* --- Service Accordion --- */
.accordion-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s cubic-bezier(.16,1,.3,1);
}
.accordion-content.open {
  max-height: 600px;
}
.accordion-icon {
  transition: transform 0.3s ease;
}
.accordion-icon.rotated {
  transform: rotate(180deg);
}

/* --- Trust Bar --- */
.trust-bar {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}
@media (max-width: 768px) {
  .trust-bar {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* --- Location Tabs --- */
.loc-tab {
  padding: 0.75rem 1.5rem;
  border-bottom: 3px solid transparent;
  cursor: pointer;
  font-weight: 600;
  transition: all 0.3s;
  color: #555;
}
.loc-tab.active {
  border-bottom-color: #2da0ce;
  color: #1A1A1A;
}
.loc-tab:hover {
  color: #1A1A1A;
}

/* --- Team Card --- */
.team-card {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.team-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0,0,0,.08);
}

/* --- Sticky CTA (Mobile) --- */
.sticky-cta {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 40;
  padding: 0.75rem 1rem;
  background: white;
  border-top: 1px solid #eee;
  box-shadow: 0 -4px 20px rgba(0,0,0,.08);
  transform: translateY(100%);
  transition: transform 0.3s ease;
}
.sticky-cta.visible {
  transform: translateY(0);
}
@media (min-width: 1024px) {
  .sticky-cta { display: none; }
}

/* --- WhatsApp Button --- */
.whatsapp-btn {
  position: fixed;
  bottom: 5rem;
  right: 1.25rem;
  z-index: 39;
  width: 56px;
  height: 56px;
  background: #25D366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 16px rgba(0,0,0,.15);
  transition: transform 0.3s, box-shadow 0.3s;
}
.whatsapp-btn:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 24px rgba(0,0,0,.2);
}
@media (min-width: 1024px) {
  .whatsapp-btn { bottom: 1.5rem; }
}

/* --- Filter Buttons (Gallery) --- */
.filter-btn {
  padding: 0.5rem 1.25rem;
  border-radius: 9999px;
  font-size: 0.875rem;
  font-weight: 500;
  border: 1.5px solid #ddd;
  background: white;
  color: #555;
  cursor: pointer;
  transition: all 0.2s;
}
.filter-btn:hover {
  border-color: #2da0ce;
  color: #2da0ce;
}
.filter-btn.active {
  background: #000;
  color: white;
  border-color: #000;
}

/* --- Lightbox --- */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 50;
  background: rgba(0,0,0,.9);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
}
.lightbox.open {
  opacity: 1;
  pointer-events: auto;
}
.lightbox img {
  max-width: 90%;
  max-height: 90vh;
  object-fit: contain;
  border-radius: 0.5rem;
}

/* --- Mobile Menu Overlay --- */
.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 45;
  background: white;
  transform: translateX(100%);
  transition: transform 0.35s cubic-bezier(.16,1,.3,1);
}
.mobile-menu.open {
  transform: translateX(0);
}

/* --- Cookie Banner --- */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 50;
  background: white;
  border-top: 1px solid #eee;
  box-shadow: 0 -4px 20px rgba(0,0,0,.08);
  padding: 1.25rem;
  transform: translateY(100%);
  transition: transform 0.4s cubic-bezier(.16,1,.3,1);
}
.cookie-banner.visible {
  transform: translateY(0);
}

/* --- Opening Hours Table --- */
.hours-table td {
  padding: 0.5rem 0;
  border-bottom: 1px solid #f0f0f0;
}
.hours-table tr:last-child td {
  border-bottom: none;
}

/* --- Timeline --- */
.timeline-item {
  position: relative;
  padding-left: 2rem;
}
.timeline-item::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.5rem;
  width: 12px;
  height: 12px;
  background: #2da0ce;
  border-radius: 50%;
}
.timeline-item::after {
  content: '';
  position: absolute;
  left: 5px;
  top: 1.5rem;
  bottom: -1rem;
  width: 2px;
  background: #e5e5e5;
}
.timeline-item:last-child::after {
  display: none;
}

/* --- Print --- */
@media print {
  .sticky-cta, .whatsapp-btn, .cookie-banner, header, .mobile-menu { display: none !important; }
}
