/* ================================================
   HAIR LAB CO – PREMIUM BARBER SHOP, BAHRAIN
   Dark Ash + Navy Blue, Cinematic Luxury
   ================================================ */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;500;600;700&family=Inter:wght@300;400;500;600;700&display=swap');

:root {
  --font-heading: 'Playfair Display', serif;
  --font-body: 'Inter', sans-serif;

  --bg-primary: #12171e;      /* dark ash */
  --bg-secondary: #181f28;    /* rich navy */
  --bg-card: #1d2632;         /* card */
  --text-primary: #f4f2ef;    /* soft white */
  --text-secondary: #b0b8c1;
  --accent: #b3b9c2;          /* platinum silver */
  --accent-hover: #9da3ad;
  --border: #2a3340;
  --overlay: rgba(18, 23, 30, 0.7);
  --shadow: 0 15px 35px rgba(0,0,0,0.6);
  --max-width: 1280px;
  --gap: clamp(1.5rem, 4vw, 3rem);
  --transition: 0.3s ease;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; font-size: 100%; }
body { font-family: var(--font-body); background: var(--bg-primary); color: var(--text-primary); line-height: 1.6; overflow-x: hidden; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; display: block; }
a { text-decoration: none; color: inherit; transition: color var(--transition); }
ul { list-style: none; }

/* Loader */
#loader { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: var(--bg-primary); display: flex; align-items: center; justify-content: center; z-index: 9999; transition: opacity 0.5s ease, visibility 0.5s ease; }
#loader.hidden { opacity: 0; visibility: hidden; }
.spinner { width: 50px; height: 50px; border: 3px solid var(--border); border-top-color: var(--accent); border-radius: 50%; animation: spin 0.8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* Typography */
h1, h2, h3, h4 { font-family: var(--font-heading); line-height: 1.1; font-weight: 600; }
h1 { font-size: clamp(3rem, 8vw, 5.5rem); }
h2 { font-size: clamp(2.2rem, 5vw, 3.5rem); margin-bottom: 1.5rem; }
h3 { font-size: clamp(1.2rem, 2.5vw, 1.8rem); font-weight: 500; }
.section-label { text-transform: uppercase; letter-spacing: 0.15em; font-size: 0.85rem; color: var(--accent); font-weight: 600; margin-bottom: 0.8rem; display: inline-block; }

/* Navbar */
.navbar { position: fixed; top: 0; left: 0; width: 100%; z-index: 1000; padding: 1.2rem 2rem; display: flex; align-items: center; justify-content: space-between; background: transparent; transition: background var(--transition), padding var(--transition); backdrop-filter: blur(5px); }
.navbar.scrolled { background: rgba(18, 23, 30, 0.95); padding: 0.8rem 2rem; box-shadow: 0 4px 20px rgba(0,0,0,0.5); }
.logo { font-family: var(--font-heading); font-size: 1.8rem; font-weight: 700; color: var(--accent); letter-spacing: 0.05em; }
.nav-links { display: flex; gap: 2rem; align-items: center; }
.nav-links a { font-size: 0.9rem; text-transform: uppercase; letter-spacing: 0.1em; font-weight: 500; position: relative; padding: 0.3rem 0; }
.nav-links a::after { content: ''; position: absolute; bottom: 0; left: 0; width: 0; height: 2px; background: var(--accent); transition: width var(--transition); }
.nav-links a:hover::after, .nav-links a.active::after { width: 100%; }
.nav-cta { background: var(--accent); color: #12171e !important; padding: 0.7rem 1.8rem !important; border-radius: 4px; font-weight: 600; }
.nav-cta:hover { background: var(--accent-hover); }
.lang-toggle { background: transparent; border: 1px solid var(--accent); color: var(--accent); padding: 0.5rem 1rem; margin-left: 1rem; cursor: pointer; font-size: 0.8rem; text-transform: uppercase; border-radius: 4px; transition: all var(--transition); }
.lang-toggle:hover { background: var(--accent); color: #12171e; }
.hamburger { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; }
.hamburger span { width: 28px; height: 2px; background: var(--text-primary); transition: all var(--transition); }

/* Buttons */
.btn { display: inline-block; padding: 1rem 2.2rem; font-family: var(--font-body); font-size: 0.9rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.12em; border-radius: 4px; transition: all var(--transition); cursor: pointer; border: 2px solid transparent; }
.btn-primary { background: var(--accent); color: #12171e; border-color: var(--accent); }
.btn-primary:hover { background: var(--accent-hover); }
.btn-outline { background: transparent; border-color: var(--accent); color: var(--accent); }
.btn-outline:hover { background: var(--accent); color: #12171e; }

/* Reveal */
.reveal { opacity: 0; transform: translateY(40px); transition: opacity 0.8s ease, transform 0.8s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }

/* Hero Video */
.hero { height: 100vh; min-height: 650px; position: relative; display: flex; align-items: center; justify-content: center; text-align: center; overflow: hidden; background: var(--bg-primary); }
.hero-video { position: absolute; top: 0; left: 0; width: 100%; height: 100%; object-fit: cover; z-index: 0; }
.hero-overlay { position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: linear-gradient(to bottom, rgba(18,23,30,0.4), rgba(18,23,30,0.85)); z-index: 1; }
.hero-content { position: relative; z-index: 2; max-width: 900px; padding: 0 2rem; }
.hero-label { text-transform: uppercase; letter-spacing: 0.2em; font-size: 0.9rem; color: var(--accent); margin-bottom: 1rem; }
.hero-title { color: #fff; margin-bottom: 1.5rem; }
.hero-subtitle { font-size: 1.1rem; max-width: 600px; margin: 0 auto 2.5rem; color: var(--text-secondary); }
.hero-buttons { display: flex; gap: 1.2rem; justify-content: center; flex-wrap: wrap; }

/* Floating particles (ash) */
.particle { position: absolute; background: var(--accent); border-radius: 50%; opacity: 0; animation: floatUp 12s infinite ease-in-out; pointer-events: none; z-index: 0; }
.particle:nth-child(1) { width: 4px; height: 4px; left: 10%; animation-delay: 0s; }
.particle:nth-child(2) { width: 6px; height: 6px; left: 25%; animation-delay: 1.5s; }
.particle:nth-child(3) { width: 3px; height: 3px; left: 40%; animation-delay: 0.5s; }
.particle:nth-child(4) { width: 5px; height: 5px; left: 55%; animation-delay: 2s; }
.particle:nth-child(5) { width: 4px; height: 4px; left: 70%; animation-delay: 1s; }
.particle:nth-child(6) { width: 3px; height: 3px; left: 80%; animation-delay: 3s; }
.particle:nth-child(7) { width: 6px; height: 6px; left: 15%; animation-delay: 2.5s; }
.particle:nth-child(8) { width: 4px; height: 4px; left: 45%; animation-delay: 0.8s; }
.particle:nth-child(9) { width: 5px; height: 5px; left: 65%; animation-delay: 1.2s; }
.particle:nth-child(10) { width: 3px; height: 3px; left: 90%; animation-delay: 2.2s; }
@keyframes floatUp {
  0% { transform: translateY(0) scale(1); opacity: 0; }
  10% { opacity: 0.5; }
  50% { transform: translateY(-100px) scale(1.2); opacity: 0.8; }
  90% { opacity: 0.2; }
  100% { transform: translateY(-200px) scale(0.8); opacity: 0; }
}

/* Sections */
.section { padding: 6rem 2rem; }
.container { max-width: var(--max-width); margin: 0 auto; }
.section-header { text-align: center; margin-bottom: 4rem; }

/* About / Copy */
.about-grid, .services-grid, .contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: var(--gap); align-items: start; }
.about-text p, .service-desc { color: var(--text-secondary); font-size: 1.05rem; line-height: 1.8; margin-bottom: 1.2rem; }
.about-image img, .service-image img { border-radius: 8px; box-shadow: var(--shadow); width: 100%; object-fit: cover; min-height: 400px; }

/* Services Packages */
.accordion-item { background: var(--bg-card); border-radius: 8px; padding: 1.5rem; margin-bottom: 1rem; cursor: pointer; transition: background var(--transition); }
.accordion-item:hover { background: #232d3a; }
.accordion-header { display: flex; justify-content: space-between; align-items: center; }
.accordion-body { max-height: 0; overflow: hidden; transition: max-height 0.4s ease; color: var(--text-secondary); }
.accordion-body.open { max-height: 300px; margin-top: 1rem; }
.price { color: var(--accent); font-weight: 600; font-size: 1.2rem; }

/* Gallery */
.gallery-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 1rem; }
.gallery-grid img { width: 100%; height: 300px; object-fit: cover; border-radius: 6px; transition: transform var(--transition); }
.gallery-grid img:hover { transform: scale(1.03); }

/* Reviews inside About */
.reviews-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 2rem; margin-top: 3rem; }
.review-card { background: var(--bg-card); padding: 2rem; border-radius: 8px; box-shadow: var(--shadow); border-left: 4px solid var(--accent); display: flex; gap: 1rem; align-items: center; }
.review-card img { width: 60px; height: 60px; border-radius: 50%; object-fit: cover; }
.review-content { flex: 1; }
.review-content .quote { font-style: italic; color: var(--text-secondary); }
.review-content .name { font-weight: 600; color: var(--accent); margin-top: 0.5rem; }

/* Team */
.team-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 2rem; margin-top: 3rem; }
.team-card { text-align: center; background: var(--bg-card); padding: 2rem; border-radius: 8px; box-shadow: var(--shadow); }
.team-card img { width: 180px; height: 180px; border-radius: 50%; object-fit: cover; margin: 0 auto 1rem; border: 3px solid var(--accent); }
.team-card h4 { margin-bottom: 0.3rem; }
.team-card .role { color: var(--accent); font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.1em; }

/* Reservation Form */
.reservation-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; }
.form-group { margin-bottom: 1.5rem; }
.form-group label { display: block; font-weight: 600; font-size: 0.9rem; margin-bottom: 0.4rem; color: var(--text-primary); }
.form-group input, .form-group textarea, .form-group select { width: 100%; padding: 1rem; background: var(--bg-card); border: 1px solid var(--border); color: var(--text-primary); font-family: var(--font-body); font-size: 1rem; border-radius: 4px; transition: border-color var(--transition); }
.form-group input:focus, .form-group textarea:focus, .form-group select:focus { border-color: var(--accent); outline: none; }
.form-group button { width: 100%; margin-top: 0.5rem; }
.confirmation-msg { display: none; background: var(--bg-card); padding: 3rem; text-align: center; border-radius: 8px; border: 2px solid var(--accent); }
.confirmation-msg .check-icon { font-size: 3rem; color: var(--accent); margin-bottom: 1rem; }

/* Contact */
.contact-info p { margin-bottom: 1.5rem; display: flex; align-items: center; gap: 1rem; color: var(--text-secondary); }
.contact-info .icon { font-size: 1.2rem; color: var(--accent); }
.map-embed { border-radius: 8px; overflow: hidden; box-shadow: var(--shadow); height: 350px; }
.map-embed iframe { width: 100%; height: 100%; border: none; }

/* Footer */
.footer { background: #0a0e13; padding: 4rem 2rem 2rem; border-top: 1px solid var(--border); text-align: center; }
.footer-grid { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 2rem; max-width: var(--max-width); margin: 0 auto 2rem; text-align: left; }
.footer-col { flex: 1; min-width: 200px; }
.footer-col h4 { color: var(--accent); margin-bottom: 1rem; }
.footer-col p, .footer-col a { color: var(--text-secondary); font-size: 0.9rem; display: block; margin-bottom: 0.5rem; }
.social-links a { display: inline-block; margin: 0 0.6rem; font-size: 1.2rem; }
.footer-bottom { color: var(--text-secondary); font-size: 0.8rem; border-top: 1px solid var(--border); padding-top: 1.5rem; margin-top: 2rem; }

/* Responsive */
@media (max-width: 768px) {
  .hamburger { display: flex; z-index: 1001; }
  .nav-links { position: fixed; top: 0; right: -100%; width: 75%; height: 100vh; background: var(--bg-primary); flex-direction: column; justify-content: center; padding: 2rem; transition: right 0.4s ease; box-shadow: -5px 0 20px rgba(0,0,0,0.5); }
  .nav-links.active { right: 0; }
  .about-grid, .reservation-layout, .contact-grid { grid-template-columns: 1fr; }
  .hero-title { font-size: clamp(2.2rem, 6vw, 3.5rem); }
  .section { padding: 4rem 1.5rem; }
  .hero-video { display: none; }
  .hero { background: url('https://images.unsplash.com/photo-1605497788044-5a32c7078486?w=1600&q=80') center/cover no-repeat; }
}
@media (max-width: 480px) {
  .hero-buttons { flex-direction: column; align-items: center; }
  .hero-buttons .btn { width: 100%; text-align: center; }
  .footer-grid { flex-direction: column; text-align: center; }
  }
