/*=============================================
 LA GASSA SALON & SPA FOR MEN – KUWAIT
 PREMIUM BARBER WEBSITE
 Dark Ash + Navy, Silver Accent, Arabic-ready
=============================================*/

/* --- Google Fonts --- */
@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:wght@400;500;600;700&family=Raleway:wght@300;400;500;600;700&family=Cairo:wght@400;500;600;700&display=swap');

:root {
  --font-heading-en: 'Cormorant Garamond', serif;
  --font-body-en: 'Raleway', sans-serif;
  --font-ar: 'Cairo', sans-serif;

  --bg-primary: #181d25;      /* dark ash */
  --bg-secondary: #0f1520;    /* dark navy */
  --bg-card: #1e2633;         /* lighter ash for cards */
  --text-primary: #f0ede6;
  --text-secondary: #a1aab5;
  --accent: #b0b9c6;          /* cool silver */
  --accent-hover: #939ca8;
  --border: #2b3442;
  --overlay: rgba(15, 21, 32, 0.8);
  --shadow: 0 15px 35px rgba(0,0,0,0.7);

  --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-en);
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* Arabic body font */
html[lang="ar"] body {
  font-family: var(--font-ar);
  direction: rtl;
  text-align: right;
}

img { max-width: 100%; height: auto; display: block; }
a { text-decoration: none; color: inherit; transition: color var(--transition); }
ul { list-style: none; }

/* Loader (only index) */
#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-weight: 600; line-height: 1.2; }
h1 { font-size: clamp(3rem, 8vw, 5rem); }
h2 { font-size: clamp(2.2rem, 5vw, 3.2rem); margin-bottom: 1.2rem; }
h3 { font-size: clamp(1.3rem, 3vw, 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;
}

/* Language switcher */
.lang-switch {
  display: flex;
  gap: 0.5rem;
  align-items: center;
  background: transparent;
  border: none;
  color: var(--text-primary);
  cursor: pointer;
  font-weight: 600;
  font-size: 0.9rem;
  text-transform: uppercase;
  padding: 0.5rem 1rem;
  border-radius: 4px;
  transition: background var(--transition);
}
.lang-switch:hover { background: rgba(255,255,255,0.1); }
.lang-switch span { color: var(--accent); margin: 0 0.2rem; }

/* 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: rgba(15, 21, 32, 0.7);
  backdrop-filter: blur(15px);
  transition: background var(--transition), padding var(--transition);
}
.navbar.scrolled {
  background: rgba(15, 21, 32, 0.95);
  padding: 0.8rem 2rem;
  box-shadow: 0 2px 25px rgba(0,0,0,0.6);
}
.logo {
  font-family: var(--font-heading-en);
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: 0.05em;
}
html[lang="ar"] .logo { font-family: var(--font-ar); }

.nav-links {
  display: flex;
  gap: 1.8rem;
  align-items: center;
}
.nav-links a {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  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: #181d25 !important;
  padding: 0.7rem 1.8rem !important;
  border-radius: 4px;
  font-weight: 600;
  transition: background var(--transition);
}
.nav-cta:hover { background: var(--accent-hover); }

.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-en);
  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: #181d25; border-color: var(--accent); }
.btn-primary:hover { background: var(--accent-hover); border-color: var(--accent-hover); }
.btn-outline { background: transparent; border-color: var(--accent); color: var(--accent); }
.btn-outline:hover { background: var(--accent); color: #181d25; }

html[lang="ar"] .btn { font-family: var(--font-ar); }

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

/* Video Hero */
.hero {
  position: relative;
  height: 100vh;
  min-height: 700px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
}
#heroVideo {
  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(15,21,32,0.7), rgba(15,21,32,0.9));
  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.2rem;
}
.hero-subtitle {
  font-size: 1.1rem;
  max-width: 600px;
  margin: 0 auto 2.5rem;
  color: var(--text-secondary);
}
.hero-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

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

/* Hairstyle cards (like menu) */
.hairstyle-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 2rem;
}
.hairstyle-card {
  background: var(--bg-card);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform var(--transition);
}
.hairstyle-card:hover { transform: translateY(-8px); }
.hairstyle-card img {
  width: 100%;
  height: 300px;
  object-fit: cover;
}
.hairstyle-card-content {
  padding: 1.5rem;
}
.hairstyle-card h4 {
  font-family: var(--font-heading-en);
  font-size: 1.3rem;
  margin-bottom: 0.5rem;
  color: var(--accent);
}
.hairstyle-card p {
  color: var(--text-secondary);
  font-size: 0.9rem;
}
html[lang="ar"] .hairstyle-card h4 { font-family: var(--font-ar); }

/* Review cards */
.review-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}
.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: 70px;
  height: 70px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--accent);
}
.review-text p {
  font-style: italic;
  color: var(--text-secondary);
  margin-bottom: 0.3rem;
}
.review-text .author {
  font-weight: 600;
  color: var(--accent);
  font-style: normal;
}

/* Gallery grid */
.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); }

/* 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);
}
.reservation-form input,
.reservation-form select,
.reservation-form textarea {
  width: 100%;
  padding: 1rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  color: var(--text-primary);
  font-family: var(--font-body-en);
  font-size: 1rem;
  border-radius: 4px;
  transition: border-color var(--transition);
}
.reservation-form input:focus,
.reservation-form select:focus,
.reservation-form textarea:focus { border-color: var(--accent); outline: none; }
.reservation-form textarea { min-height: 100px; resize: vertical; }
.reservation-form button { width: 100%; margin-top: 0.5rem; }
.reservation-info {
  background: var(--bg-card);
  padding: 2.5rem;
  border-radius: 8px;
  height: fit-content;
}
.reservation-info h3 { margin-bottom: 1.5rem; color: var(--accent); }
.reservation-info p { color: var(--text-secondary); margin-bottom: 1rem; }

/* Confirmation */
.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-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
}
.contact-info h3 { margin-bottom: 2rem; color: var(--accent); }
.contact-info p {
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  color: var(--text-secondary);
}
.contact-info a { color: var(--accent); }
.map-embed {
  border-radius: 8px;
  overflow: hidden;
  box-shadow: var(--shadow);
  height: 400px;
}
.map-embed iframe { width: 100%; height: 100%; border: none; }

/* Footer */
.footer {
  background: #0b1119;
  padding: 4rem 2rem 2rem;
  border-top: 1px solid var(--border);
}
.footer-grid {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 2rem;
  max-width: var(--max-width);
  margin: 0 auto 2rem;
}
.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; }
.footer-col a:hover { color: var(--accent); }
.social-links a { display: inline-block; margin: 0 0.6rem; font-size: 1.2rem; }
.footer-bottom {
  text-align: center;
  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; }
  .reservation-layout, .contact-grid { grid-template-columns: 1fr; }
  .hero-title { font-size: clamp(2.2rem, 6vw, 3.5rem); }
  .section { padding: 4rem 1.5rem; }
}

@media (max-width: 480px) {
  .hero-buttons { flex-direction: column; align-items: center; }
  .hero-buttons .btn { width: 100%; text-align: center; }
  }
