/*
  African Braids Soh Fashion — Premium & Responsive Design
*/

:root {
  --primary: #4a148c;
  --primary-light: #7c43bd;
  --accent: #d4af37;
  --text: #1a1a1a;
  --text-light: #666;
  --bg: #fdfbff;
  --white: #ffffff;
  --shadow: 0 10px 30px rgba(0,0,0,0.08);
  --shadow-lg: 0 20px 60px rgba(0,0,0,0.18);
  --radius: 16px;
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

html { scroll-behavior: smooth; }
* { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: 'Inter', sans-serif;
  background-color: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
}

h1, h2, h3 { font-family: 'Playfair Display', serif; font-weight: 700; }

/* === Navigation === */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(255,255,255,0.97);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(0,0,0,0.07);
  transition: box-shadow 0.3s;
}

.site-header.scrolled {
  box-shadow: 0 4px 20px rgba(0,0,0,0.09);
}

.nav {
  max-width: 1200px;
  margin: 0 auto;
  padding: 14px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: relative;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  color: var(--primary);
  text-decoration: none;
  font-size: 1.1rem;
}

.nav-brand img { height: 44px; border-radius: 50%; object-fit: cover; }

.nav-menu {
  display: flex;
  list-style: none;
  gap: 24px;
  align-items: center;
}

.nav-menu a {
  text-decoration: none;
  color: var(--text);
  font-weight: 600;
  font-size: 0.9rem;
  transition: color 0.3s;
  position: relative;
}

.nav-menu a::after {
  content: "";
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--accent);
  transition: width 0.3s;
  border-radius: 2px;
}

.nav-menu a:hover { color: var(--primary); }
.nav-menu a:hover::after { width: 100%; }

.lang-switcher {
  display: flex;
  gap: 6px;
  border-left: 1px solid #eee;
  padding-left: 18px;
  align-items: center;
}

.lang-switcher a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 8px;
  text-decoration: none;
  transition: transform 0.2s, box-shadow 0.2s;
}

.lang-switcher a .fi {
  width: 24px;
  height: 18px;
  border-radius: 3px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.25);
}

.lang-switcher a:hover { transform: scale(1.18); }
.lang-switcher a.active-lang { box-shadow: 0 0 0 2px var(--accent); }

/* === Burger Menu === */
.burger-btn {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
  z-index: 1001;
}

.burger-btn span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--primary);
  border-radius: 2px;
  transition: 0.3s;
}

.burger-btn.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger-btn.active span:nth-child(2) { opacity: 0; }
.burger-btn.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* === Hero Section === */
.hero {
  position: relative;
  height: 88vh;
  min-height: 560px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: white;
  overflow: hidden;
}

.slider { position: absolute; inset: 0; z-index: 1; overflow: hidden; }
.slides { display: flex; height: 100%; transition: transform 0.9s cubic-bezier(0.77, 0, 0.175, 1); }
.slide { flex: 0 0 100%; background-size: cover; background-position: center; position: relative; }
.slide::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(0,0,0,0.2) 0%, rgba(0,0,0,0.62) 100%);
}

.hero-content {
  position: relative;
  z-index: 10;
  padding: 20px;
  max-width: 820px;
  animation: fadeInUp 1s ease;
}

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

.hero h1 { font-size: clamp(2.2rem, 7vw, 4.2rem); margin-bottom: 16px; line-height: 1.2; }
.hero p  { font-size: 1.2rem; margin-bottom: 36px; font-weight: 300; opacity: 0.95; }

.slider-dots {
  position: absolute;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
  display: flex;
  gap: 8px;
}

.dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255,255,255,0.45);
  cursor: pointer;
  transition: 0.3s;
  border: none;
}

.dot.active { background: var(--accent); transform: scale(1.4); }

/* === Buttons === */
.btn {
  display: inline-block;
  padding: 14px 34px;
  background: var(--primary);
  color: white !important;
  text-decoration: none;
  border-radius: 50px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-size: 0.88rem;
  transition: var(--transition);
  border: none;
  cursor: pointer;
  box-shadow: 0 8px 25px rgba(74,20,140,0.25);
}

.btn:hover {
  background: var(--primary-light);
  transform: translateY(-3px);
  box-shadow: 0 15px 35px rgba(74,20,140,0.35);
}

.btn-sm { padding: 9px 20px; font-size: 0.78rem; }

/* === Sections === */
.section {
  max-width: 1200px;
  margin: 0 auto;
  padding: 90px 20px;
}

.section h2 {
  font-size: clamp(2rem, 5vw, 2.8rem);
  text-align: center;
  margin-bottom: 55px;
  color: var(--primary);
}

.section h2::after {
  content: "";
  display: block;
  width: 52px;
  height: 3px;
  background: var(--accent);
  margin: 12px auto 0;
  border-radius: 2px;
}

/* === About === */
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }
.about-text { font-size: 1.05rem; line-height: 1.8; }
.hours-box {
  background: white;
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow);
  border-left: 4px solid var(--accent);
}

/* === Stats Bar === */
.stats-bar { background: linear-gradient(135deg, #3a0070 0%, #6a1db5 100%); color: white; padding: 50px 20px; }
.stats-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 20px;
  text-align: center;
}
.stat-num { font-family: 'Playfair Display', serif; font-size: 2.8rem; font-weight: 700; color: var(--accent); }

/* === Services Grid === */
.grid3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 30px; }
.grid4 { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 20px; }

.service-card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: var(--transition);
  display: flex;
  flex-direction: column;
}

.service-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-lg); }
.service-card img { width: 100%; height: 240px; object-fit: cover; }
.service-card .content { padding: 24px; flex: 1; display: flex; flex-direction: column; }
.service-card-footer { display: flex; align-items: center; justify-content: space-between; margin-top: auto; padding-top: 16px; border-top: 1px solid #f2f2f2; }
.reserve-fee { font-size: 1.5rem; font-weight: 800; color: var(--primary); }
.btn-book-card { padding: 9px 18px; background: var(--accent); color: var(--primary); border-radius: 50px; font-size: 0.78rem; font-weight: 700; text-decoration: none; }

/* === Booking Form === */
.booking-wrap { background: linear-gradient(135deg, #f4f0f9 0%, #ede7f6 100%); border-radius: 30px; padding: 60px 40px; max-width: 800px; margin: 0 auto; }
.form-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 15px; margin-bottom: 15px; }
input, select, textarea { width: 100%; padding: 14px 18px; border-radius: 12px; border: 1.5px solid #ddd; font-family: inherit; }

/* === Gallery === */
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 16px; }
.gallery-item { position: relative; border-radius: 14px; overflow: hidden; cursor: pointer; }
.gallery-item img { width: 100%; height: 220px; object-fit: cover; transition: 0.4s; }
.gallery-item:hover img { transform: scale(1.07); }
.gallery-overlay { position: absolute; inset: 0; background: rgba(74,20,140,0.45); display: flex; align-items: center; justify-content: center; opacity: 0; transition: 0.3s; }
.gallery-item:hover .gallery-overlay { opacity: 1; }

/* === Lightbox === */
.lightbox { position: fixed; inset: 0; z-index: 9999; background: rgba(0,0,0,0.92); display: flex; align-items: center; justify-content: center; opacity: 0; pointer-events: none; transition: 0.3s; }
.lightbox.open { opacity: 1; pointer-events: all; }
.lb-content img { max-width: 90vw; max-height: 85vh; border-radius: 8px; }
.lb-close { position: absolute; top: 20px; right: 24px; color: white; background: none; border: none; font-size: 2rem; cursor: pointer; }
.lb-nav { position: absolute; top: 50%; color: white; background: rgba(255,255,255,0.1); border: none; width: 50px; height: 50px; border-radius: 50%; cursor: pointer; }
.lb-prev { left: 20px; } .lb-next { right: 20px; }

/* === Footer === */
.site-footer { background: #130728; color: rgba(255,255,255,0.75); padding: 60px 20px 20px; }
.footer-top { max-width: 1200px; margin: 0 auto; display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 50px; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.1); margin-top: 40px; padding-top: 20px; text-align: center; font-size: 0.8rem; opacity: 0.6; }

.footer-brand h3 { color: #fff; font-size: 1.2rem; margin-bottom: 12px; }
.footer-brand p { font-size: 0.88rem; color: rgba(255,255,255,0.55); line-height: 1.6; }
.footer-brand a { color: rgba(255,255,255,0.75); text-decoration: none; }
.footer-brand a:hover { color: #fff; }

.footer-col h4 { color: #fff; font-size: 0.95rem; font-weight: 700; margin-bottom: 16px; text-transform: uppercase; letter-spacing: 0.05em; }
.footer-col ul { list-style: none; padding: 0; margin: 0; }
.footer-col ul li { margin-bottom: 10px; }
.footer-col ul li a { color: rgba(255,255,255,0.65); text-decoration: none; font-size: 0.9rem; transition: color 0.2s; }
.footer-col ul li a:hover { color: #fff; }

/* === Mobile Responsive === */
@media (max-width: 900px) {
  .footer-top { grid-template-columns: 1fr 1fr; }
  .about-grid { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  .burger-btn { display: flex; }
  .nav-menu {
    display: none;
    position: absolute;
    top: 100%; left: 0; right: 0;
    background: white;
    flex-direction: column;
    padding: 30px;
    gap: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    z-index: 999;
  }
  .nav-menu.active { display: flex; }
  .lang-switcher { border-left: none; padding-left: 0; padding-top: 20px; border-top: 1px solid #eee; width: 100%; justify-content: center; }
  .hero { height: 75vh; }
  .section { padding: 60px 20px; }
  .footer-top { grid-template-columns: 1fr; text-align: center; }
}

/* === Animations === */
.fade-in { opacity: 0; transform: translateY(24px); transition: 0.65s ease; }
.fade-in.visible { opacity: 1; transform: none; }
