/* 
  Kapper's Barbershop - Modern UI Design System
  Theme: Light Mode Clean & Premium
*/

:root {
  /* Color Palette - Minimalist Light Mode */
  --bg-primary: #FFFFFF;
  --bg-secondary: #F8FAFC;         /* Soft almost-white gray for sections */
  --bg-tertiary: #F1F5F9;
  
  --text-primary: #0F172A;         /* Dark Slate for high contrast */
  --text-secondary: #64748B;       /* Medium Slate for descriptions */
  
  --accent-color: #0F172A;         /* Using Dark slate as primary accent */
  --accent-hover: #1E293B;
  
  --border-light: #E2E8F0;
  
  /* Glassmorphism */
  --glass-bg: rgba(255, 255, 255, 0.75);
  --glass-border: rgba(255, 255, 255, 0.6);
  --glass-shadow: 0 4px 30px rgba(0, 0, 0, 0.05);

  /* Typography */
  --font-sans: 'Plus Jakarta Sans', sans-serif;
  
  /* Borders & Spacing */
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-pill: 9999px;
  
  /* Transitions */
  --transition-fast: 0.2s ease;
  --transition-smooth: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* =========================================
   Reset & Base Styles
========================================= */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-sans);
  background-color: var(--bg-secondary);
  color: var(--text-primary);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a {
  text-decoration: none;
  color: inherit;
}

/* =========================================
   Typography
========================================= */
h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

h1 { font-size: clamp(2.5rem, 5vw, 4rem); }
h2 { font-size: clamp(2rem, 4vw, 3rem); }

/* =========================================
   Layout & Containers
========================================= */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* =========================================
   Components: Buttons
========================================= */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.75rem;
  font-weight: 600;
  font-size: 1rem;
  border-radius: var(--radius-pill);
  border: none;
  cursor: pointer;
  transition: all var(--transition-smooth);
}

.btn-primary {
  background-color: var(--accent-color);
  color: #FFFFFF;
  box-shadow: 0 4px 14px 0 rgba(15, 23, 42, 0.2);
}

.btn-primary:hover {
  background-color: var(--accent-hover);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(15, 23, 42, 0.23);
}

/* =========================================
   Components: Navbar (Glassmorphism)
========================================= */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  padding: 1rem 0;
  transition: all var(--transition-smooth);
}

.navbar.glass {
  background: var(--glass-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-light);
}

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

.logo {
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -0.04em;
}

.nav-links {
  display: flex;
  gap: 2.5rem;
}

.nav-links a {
  font-weight: 500;
  color: var(--text-secondary);
  transition: color var(--transition-fast);
}

.nav-links a:hover {
  color: var(--text-primary);
}

/* Responsive Fixes & Hamburger Menu */
.nav-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.mobile-toggle {
  background: none;
  border: none;
  font-size: 1.75rem;
  color: var(--text-primary);
  cursor: pointer;
  display: none;
}

@media (max-width: 768px) {
  .nav-links {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background-color: var(--bg-primary);
    flex-direction: column;
    padding: 2rem;
    gap: 1.5rem;
    text-align: center;
    border-bottom: 1px solid var(--border-light);
    box-shadow: 0 10px 20px rgba(0,0,0,0.05);
    display: none; /* hidden initially */
  }
  
  .nav-links.active {
    display: flex;
  }
  
  .hide-mobile {
    display: none;
  }
  
  .mobile-toggle {
    display: block;
  }
}

/* =========================================
   Hero Section
========================================= */
.hero {
  padding: 8rem 0 5rem 0; /* Extra top padding for fixed navbar */
  min-height: 100vh;
  display: flex;
  align-items: center;
}

.hero-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.badge {
  display: inline-block;
  padding: 0.5rem 1rem;
  background-color: var(--bg-primary);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-pill);
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
  box-shadow: var(--glass-shadow);
}

.text-accent {
  color: var(--text-secondary); /* Give it a slightly softer tone or keep it dark */
  position: relative;
  display: inline-block;
}

.text-accent::after {
  content: '';
  position: absolute;
  bottom: 8px;
  left: 0;
  width: 100%;
  height: 8px;
  background-color: #E2E8F0;
  z-index: -1;
}

.hero-content p {
  color: var(--text-secondary);
  font-size: 1.125rem;
  margin: 1.5rem 0 2.5rem 0;
  max-width: 90%;
}

.hero-buttons {
  display: flex;
  gap: 1rem;
  margin-bottom: 3rem;
}

.btn-outline {
  background-color: transparent;
  color: var(--text-primary);
  border: 1px solid var(--border-light);
}

.btn-outline:hover {
  background-color: var(--bg-primary);
  border-color: var(--text-primary);
}

.hero-stats {
  display: flex;
  gap: 3rem;
  border-top: 1px solid var(--border-light);
  padding-top: 2rem;
}

.stat-item h3 {
  font-size: 1.75rem;
  margin-bottom: 0.25rem;
}

.stat-item p {
  font-size: 0.875rem;
  margin: 0;
  color: var(--text-secondary);
}

.hero-image-wrapper {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 20px 40px rgba(0,0,0,0.08); /* Soft shadow for the image */
}

.hero-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.hero-image-wrapper:hover .hero-image {
  transform: scale(1.02);
}

.floating-card {
  position: absolute;
  bottom: -20px; /* Hidden initially or peeking */
  left: 30px;
  bottom: 30px;
  background: var(--glass-bg);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  padding: 1rem 1.5rem;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  gap: 1rem;
  border: 1px solid var(--glass-border);
  box-shadow: var(--glass-shadow);
  animation: float 6s ease-in-out infinite;
}

.fc-icon {
  background: var(--bg-primary);
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  font-size: 1.25rem;
}

.fc-text strong {
  display: block;
  font-size: 0.875rem;
}

.fc-text span {
  font-size: 0.75rem;
  color: var(--text-secondary);
}

@keyframes float {
  0% { transform: translateY(0px); }
  50% { transform: translateY(-10px); }
  100% { transform: translateY(0px); }
}

/* =========================================
   Services Section
========================================= */
.services {
  padding: 6rem 0;
  background-color: var(--bg-primary);
}

.section-header {
  text-align: center;
  max-width: 600px;
  margin: 0 auto 4rem auto;
}

.section-header h2 {
  margin-bottom: 1rem;
}

.section-header p {
  color: var(--text-secondary);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.service-card {
  background-color: var(--bg-secondary);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 2.5rem 2rem;
  transition: all var(--transition-smooth);
  position: relative;
  overflow: hidden;
}

.service-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 24px rgba(0,0,0,0.06);
  background-color: var(--bg-primary);
}

.service-icon {
  font-size: 2.5rem;
  color: var(--text-primary);
  margin-bottom: 1.5rem;
}

.service-card h3 {
  font-size: 1.25rem;
  margin-bottom: 1rem;
}

.service-card p {
  color: var(--text-secondary);
  font-size: 0.95rem;
  margin-bottom: 2rem;
  min-height: 80px; /* Equal height approximation */
}

.service-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid var(--border-light);
  padding-top: 1.5rem;
}

.price {
  font-weight: 700;
  font-size: 1.125rem;
}

.duration {
  font-size: 0.875rem;
  color: var(--text-secondary);
  background: var(--bg-tertiary);
  padding: 0.25rem 0.75rem;
  border-radius: var(--radius-pill);
}

/* Highlight Card */
.highlight-card {
  background-color: var(--text-primary);
  color: var(--bg-primary);
  border-color: var(--text-primary);
}

.highlight-card:hover {
  background-color: var(--accent-hover);
}

.highlight-card .service-icon,
.highlight-card p,
.highlight-card .duration {
  color: var(--bg-primary);
}
.highlight-card .duration {
  background-color: rgba(255,255,255,0.2);
}
.highlight-card .service-footer {
  border-top-color: rgba(255,255,255,0.1);
}

.badge-ribbon {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: #EAB308; /* Subtle Gold for recommendation */
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.25rem 0.75rem;
  border-radius: var(--radius-pill);
}

/* Responsive Fixes */
@media (max-width: 992px) {
  .hero-container {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .hero-content p {
    margin: 1.5rem auto 2.5rem auto;
  }
  .hero-buttons {
    justify-content: center;
  }
  .hero-stats {
    justify-content: center;
  }
  .text-accent::after {
    left: 50%;
    transform: translateX(-50%);
  }
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .services-grid {
    grid-template-columns: 1fr;
  }
}

/* =========================================
   Booking Form Section
========================================= */
.booking-section {
  padding: 4rem 0 8rem 0;
}

.booking-card {
  max-width: 800px;
  margin: 0 auto;
  background-color: var(--bg-primary);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  box-shadow: 0 10px 30px rgba(0,0,0,0.03);
  overflow: hidden;
}

.booking-header {
  padding: 3rem 3rem 2rem 3rem;
  background-color: var(--bg-secondary);
  border-bottom: 1px solid var(--border-light);
  text-align: center;
}

.booking-header p {
  color: var(--text-secondary);
  margin-top: 0.5rem;
  margin-bottom: 2.5rem;
}

/* Progress Bar */
.progress-wrapper {
  position: relative;
  max-width: 400px;
  margin: 0 auto;
}

.progress-line {
  position: absolute;
  top: 50%;
  left: 0;
  transform: translateY(-50%);
  width: 100%;
  height: 4px;
  background-color: var(--border-light);
  z-index: 1;
}

.progress-line-fill {
  height: 100%;
  background-color: var(--accent-color);
  width: 0%; /* Dynamic */
  transition: width var(--transition-smooth);
}

.step-dots {
  position: relative;
  z-index: 2;
  display: flex;
  justify-content: space-between;
}

.step-dot {
  width: 32px;
  height: 32px;
  background-color: var(--bg-secondary);
  border: 4px solid var(--border-light);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.875rem;
  color: var(--text-secondary);
  transition: all var(--transition-smooth);
}

.step-dot.active {
  border-color: var(--accent-color);
  color: var(--accent-color);
  background-color: var(--bg-primary);
}

.step-dot.completed {
  background-color: var(--accent-color);
  border-color: var(--accent-color);
  color: white;
}

/* Booking Body */
.booking-body {
  padding: 3rem;
  position: relative;
  min-height: 400px;
}

.booking-step {
  display: none;
  animation: fadeIn 0.4s ease;
}

.booking-step.active {
  display: block;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

.booking-step h3 {
  margin-bottom: 2rem;
  font-size: 1.5rem;
}

/* Selectable Cards (Radio) */
.options-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5rem;
  margin-bottom: 3rem;
}

.selectable-card {
  position: relative;
  cursor: pointer;
  display: block;
}

.selectable-card input {
  position: absolute;
  opacity: 0;
  cursor: pointer;
}

.sc-content {
  border: 2px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  text-align: center;
  transition: all var(--transition-fast);
  background-color: var(--bg-primary);
}

.selectable-card:hover .sc-content {
  border-color: var(--text-secondary);
}

.selectable-card input:checked ~ .sc-content {
  border-color: var(--accent-color);
  background-color: var(--bg-secondary);
  box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}

.sc-content i {
  font-size: 2rem;
  display: block;
  margin-bottom: 1rem;
  color: var(--text-primary);
}

.sc-content strong {
  display: block;
  font-size: 1.125rem;
  margin-bottom: 0.5rem;
}

.sc-content span {
  color: var(--text-secondary);
  font-size: 0.875rem;
}

/* Barber Profile Card */
.barber-profile .avatar {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background-color: #3B82F6;
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  font-weight: 700;
  margin: 0 auto 1rem auto;
}

/* Step Footer */
.step-footer {
  display: flex;
  justify-content: space-between;
  border-top: 1px solid var(--border-light);
  padding-top: 2rem;
  margin-top: 2rem;
}

/* Form Groups & Schedule */
.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.form-control {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  font-family: var(--font-sans);
  font-size: 1rem;
  background-color: var(--bg-primary);
  transition: border-color var(--transition-fast);
}

.form-control:focus {
  outline: none;
  border-color: var(--accent-color);
}

.time-slots {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
  gap: 1rem;
}

.time-slot {
  position: relative;
  cursor: pointer;
  display: block;
}

.time-slot input {
  position: absolute;
  opacity: 0;
}

.time-slot span {
  display: block;
  text-align: center;
  padding: 0.75rem;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  transition: all var(--transition-fast);
}

.time-slot:not(.disabled):hover span {
  border-color: var(--text-secondary);
}

.time-slot input:checked ~ span {
  background-color: var(--accent-color);
  color: white;
  border-color: var(--accent-color);
}

.time-slot.disabled {
  cursor: not-allowed;
  opacity: 0.5;
}

.time-slot.disabled span {
  background-color: var(--bg-secondary);
}

/* Summary Box */
.summary-box {
  background-color: var(--bg-secondary);
  padding: 1.5rem;
  border-radius: var(--radius-md);
  margin-bottom: 2rem;
}

.summary-box p {
  margin-bottom: 0.5rem;
  display: flex;
  justify-content: space-between;
}

/* Responsive Booking */
@media (max-width: 768px) {
  .booking-header {
    padding: 2rem 1.5rem 1.5rem 1.5rem;
  }
  .booking-body {
    padding: 2rem 1.5rem;
  }
  .options-grid {
    grid-template-columns: 1fr;
  }
}

/* =========================================
   Barbers Showcase
========================================= */
.barber-card {
  background-color: var(--bg-primary);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  overflow: hidden;
  text-align: center;
  transition: all var(--transition-smooth);
}

.barber-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 30px rgba(0,0,0,0.06);
}

.barber-img-wrapper {
  width: 100%;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background-color: var(--bg-secondary);
}

.barber-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

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

.barber-info {
  padding: 1.5rem;
}

.barber-info h3 {
  font-size: 1.25rem;
  margin-bottom: 0.25rem;
}

.barber-info p {
  color: var(--text-secondary);
  font-size: 0.875rem;
  margin-bottom: 1rem;
}

.barber-socials {
  display: flex;
  justify-content: center;
  gap: 0.75rem;
}

.barber-socials a {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--bg-secondary);
  border-radius: 50%;
  color: var(--text-primary);
  transition: all var(--transition-fast);
}

.barber-socials a:hover {
  background-color: var(--accent-color);
  color: white;
}

/* =========================================
   Gallery (Portfolio)
========================================= */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}

.gallery-item {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
  aspect-ratio: 4/5;
  cursor: pointer;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.gallery-item:hover img {
  transform: scale(1.05);
}

.gallery-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  padding: 2rem 1rem 1rem;
  background: linear-gradient(to top, rgba(15, 23, 42, 0.9), transparent);
  color: white;
  transform: translateY(100%);
  transition: transform 0.3s ease;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
}

.gallery-item:hover .gallery-overlay {
  transform: translateY(0);
}

.gallery-overlay h4 {
  font-size: 1.1rem;
  font-weight: 600;
  margin: 0;
}

/* =========================================
   Footer
========================================= */
.footer {
  background-color: var(--bg-secondary);
  border-top: 1px solid var(--border-light);
  padding-top: 4rem;
  margin-top: 4rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  margin-bottom: 3rem;
}

@media (min-width: 768px) {
  .footer-grid {
    grid-template-columns: 2fr 1fr 1fr;
  }
}

.footer-brand h3 {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

.footer-brand p {
  color: var(--text-secondary);
  line-height: 1.6;
  max-width: 300px;
}

.footer h4 {
  font-size: 1.125rem;
  margin-bottom: 1.25rem;
}

.footer-hours ul {
  list-style: none;
}

.footer-hours li {
  display: flex;
  justify-content: space-between;
  margin-bottom: 0.75rem;
  color: var(--text-secondary);
  border-bottom: 1px dashed var(--border-light);
  padding-bottom: 0.25rem;
}

.footer-hours .day { font-weight: 500; }

.footer-contact p {
  color: var(--text-secondary);
  margin-bottom: 0.75rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.footer-bottom {
  text-align: center;
  padding: 1.5rem 0;
  border-top: 1px solid var(--border-light);
  color: var(--text-secondary);
  font-size: 0.875rem;
}
