/* ═══════════════════════════════════════════════════
   DUBAI BARBERSHOP — Design System
   Colors: Black, Gold/Yellow, Brown, Marble
   ═══════════════════════════════════════════════════ */

:root {
  /* Core palette from logo */
  --black: #0a0a0a;
  --black-soft: #141414;
  --black-card: #1a1a18;
  --gold: #F5C518;
  --gold-light: #FFD84D;
  --gold-dark: #C9A000;
  --gold-muted: #B8962E;

  /* Extended palette */
  --brown: #6B4226;
  --brown-light: #8B6342;
  --brown-dark: #3E2013;
  --wood: #5C4033;
  --cream: #FAF0E0;
  --marble-grey: #2a2a2a;
  --text-primary: #F5F0E8;
  --text-secondary: #A09888;
  --text-muted: #706858;

  /* Typography */
  --font-display: 'Playfair Display', Georgia, serif;
  --font-body: 'Montserrat', 'Helvetica Neue', sans-serif;
  --font-accent: 'Cormorant Garamond', Georgia, serif;

  /* Spacing */
  --section-pad: clamp(4rem, 8vw, 8rem);
  --container-max: 1280px;

  /* Effects */
  --gold-glow: 0 0 30px rgba(245, 197, 24, 0.15);
  --card-shadow: 0 12px 40px rgba(0, 0, 0, 0.5);
  --transition: 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* ═══════════════ RESET & BASE ═══════════════ */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}

body {
  font-family: var(--font-body);
  background: var(--black);
  color: var(--text-primary);
  line-height: 1.7;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--gold); text-decoration: none; transition: var(--transition); }
a:hover { color: var(--gold-light); }

img { max-width: 100%; display: block; }

.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 clamp(1.25rem, 4vw, 2.5rem);
}

.accent { color: var(--gold); }

.section {
  padding: var(--section-pad) 0;
  position: relative;
}

/* Marble background overlay */
.marble-bg {
  position: absolute;
  inset: 0;
  background: url('assets/marble-texture.png') center/cover;
  opacity: 0.08;
  pointer-events: none;
  z-index: 0;
}

.section > .container { position: relative; z-index: 1; }

/* Section headers */
.section-header {
  text-align: center;
  margin-bottom: clamp(2.5rem, 5vw, 4rem);
}

.section-tag {
  display: inline-block;
  font-family: var(--font-accent);
  font-size: 1rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.75rem;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 3.2rem);
  font-weight: 700;
  letter-spacing: 0.02em;
  line-height: 1.2;
  margin-bottom: 1rem;
}

.section-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin-top: 0.5rem;
}

.divider-line {
  display: block;
  width: 60px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
}

.divider-icon {
  color: var(--gold);
  font-size: 1.2rem;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.9rem 2rem;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  border: none;
  border-radius: 2px;
  cursor: pointer;
  transition: var(--transition);
  text-decoration: none;
}

.btn-primary {
  background: linear-gradient(135deg, var(--gold), var(--gold-dark));
  color: var(--black);
  box-shadow: var(--gold-glow);
}

.btn-primary:hover {
  background: linear-gradient(135deg, var(--gold-light), var(--gold));
  color: var(--black);
  transform: translateY(-2px);
  box-shadow: 0 0 50px rgba(245, 197, 24, 0.3);
}

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

.btn-outline:hover {
  background: var(--gold);
  color: var(--black);
  transform: translateY(-2px);
}

/* ═══════════════ NAVBAR ═══════════════ */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 1rem 0;
  transition: var(--transition);
  background: transparent;
}

.navbar.scrolled {
  background: rgba(10, 10, 10, 0.95);
  backdrop-filter: blur(20px);
  padding: 0.6rem 0;
  box-shadow: 0 2px 40px rgba(0, 0, 0, 0.5);
  border-bottom: 1px solid rgba(245, 197, 24, 0.1);
}

.nav-inner {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 clamp(1.25rem, 4vw, 2.5rem);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  display: flex;
  align-items: center;
  text-decoration: none;
}

.nav-logo-img {
  height: 48px;
  width: auto;
  object-fit: contain;
  transition: var(--transition);
}

.nav-logo-img:hover {
  filter: brightness(1.15);
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 2rem;
}

.nav-links a {
  color: var(--text-primary);
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  position: relative;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--gold);
  transition: var(--transition);
}

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

.nav-cta {
  font-size: 0.8rem;
  font-weight: 600;
  padding: 0.6rem 1.4rem;
  background: linear-gradient(135deg, var(--gold), var(--gold-dark));
  color: var(--black) !important;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border-radius: 2px;
}

.nav-cta:hover {
  background: linear-gradient(135deg, var(--gold-light), var(--gold));
  color: var(--black) !important;
  transform: translateY(-1px);
}

.nav-social {
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  transition: var(--transition);
}

.nav-social:hover {
  color: var(--gold);
  transform: scale(1.1);
}

.footer-social {
  display: inline-flex;
  align-items: center;
  color: var(--text-secondary);
}

.footer-social:hover {
  color: var(--gold);
}

.nav-burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 5px;
}

.nav-burger span {
  display: block;
  width: 28px;
  height: 2px;
  background: var(--gold);
  transition: var(--transition);
}

/* ═══════════════ HERO ═══════════════ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--black);
  overflow: hidden;
}

.hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg,
      rgba(10, 10, 10, 0.85) 0%,
      rgba(10, 10, 10, 0.7) 30%,
      rgba(10, 10, 10, 0.65) 50%,
      rgba(10, 10, 10, 0.8) 75%,
      rgba(10, 10, 10, 0.97) 100%
    );
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 2rem;
  animation: fadeInUp 1.2s ease-out;
}



.hero-title {
  font-family: var(--font-display);
  line-height: 1;
  margin-bottom: 1.5rem;
}

.hero-title-line {
  display: block;
  font-size: clamp(3.5rem, 12vw, 8rem);
  font-weight: 800;
  letter-spacing: 0.15em;
  color: var(--text-primary);
  text-shadow: 0 2px 20px rgba(0, 0, 0, 0.8), 0 4px 40px rgba(0, 0, 0, 0.5);
  animation: fadeInUp 1s 0.4s ease-out both;
}

.hero-title-line.accent {
  font-size: clamp(1.8rem, 5vw, 3.5rem);
  color: var(--gold);
  letter-spacing: 0.4em;
  font-weight: 600;
  text-shadow: 0 2px 15px rgba(0, 0, 0, 0.7), 0 0 30px rgba(245, 197, 24, 0.2);
  animation-delay: 0.6s;
}

.hero-subtitle {
  font-family: var(--font-accent);
  font-size: clamp(1rem, 2.5vw, 1.4rem);
  color: var(--cream);
  font-weight: 400;
  letter-spacing: 0.05em;
  text-shadow: 0 2px 15px rgba(0, 0, 0, 0.9);
  margin-bottom: 1.5rem;
  animation: fadeInUp 1s 0.7s ease-out both;
}

.hero-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
  animation: fadeInUp 1s 0.8s ease-out both;
}

.hero-tagline {
  font-size: 1.1rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-primary);
  text-shadow: 0 2px 15px rgba(0, 0, 0, 0.9);
  margin-bottom: 2.5rem;
  animation: fadeInUp 1s 0.9s ease-out both;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  animation: fadeInUp 1s 1s ease-out both;
}

.hero-scroll-indicator {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  animation: fadeInUp 1s 1.5s ease-out both;
}

.hero-scroll-indicator span {
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.scroll-line {
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, var(--gold), transparent);
  animation: scrollPulse 2s ease-in-out infinite;
}

/* ═══════════════ ABOUT ═══════════════ */
.about {
  background: var(--black-soft);
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}

.about-text p {
  color: var(--text-secondary);
  margin-bottom: 1.2rem;
  font-size: 1.05rem;
}

.about-lead {
  font-family: var(--font-accent);
  font-size: 1.3rem !important;
  color: var(--text-primary) !important;
  line-height: 1.6;
}

.about-stats {
  display: flex;
  gap: 2rem;
  margin-top: 2rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(245, 197, 24, 0.15);
}

.stat {
  text-align: center;
}

.stat-number {
  display: block;
  font-family: var(--font-display);
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--gold);
  line-height: 1.2;
}

.stat-label {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
}

.about-image {
  position: relative;
}

.about-img-frame {
  position: relative;
  border-radius: 4px;
  overflow: hidden;
}

.about-img-frame img {
  width: 100%;
  height: 400px;
  object-fit: contain;
  background: var(--black-card);
  transition: var(--transition);
}

.about-img-frame:hover img {
  transform: scale(1.03);
}

.about-img-border {
  position: absolute;
  inset: -8px;
  border: 1px solid var(--gold-dark);
  border-radius: 4px;
  opacity: 0.3;
  z-index: -1;
}

/* ═══════════════ SERVICES ═══════════════ */
.services {
  background: var(--black);
}

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

.service-card {
  background: linear-gradient(145deg, var(--black-card), rgba(30, 28, 24, 0.9));
  border: 1px solid rgba(245, 197, 24, 0.08);
  padding: 2.5rem 2rem;
  border-radius: 4px;
  text-align: center;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
  opacity: 0;
  transform: translateY(30px);
}

.service-card.visible {
  opacity: 1;
  transform: translateY(0);
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  opacity: 0;
  transition: var(--transition);
}

.service-card:hover {
  border-color: rgba(245, 197, 24, 0.2);
  transform: translateY(-8px);
  box-shadow: var(--gold-glow);
}

.service-card:hover::before { opacity: 1; }

.service-icon {
  font-size: 2.5rem;
  margin-bottom: 1.2rem;
  filter: grayscale(0.3);
}

.service-card h3 {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
  color: var(--text-primary);
}

.service-card p {
  color: var(--text-secondary);
  font-size: 0.92rem;
  line-height: 1.7;
}

/* ═══════════════ GALLERY ═══════════════ */
.gallery {
  background: var(--black-soft);
}

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

.gallery-item {
  position: relative;
  border-radius: 4px;
  overflow: hidden;
  cursor: pointer;
  aspect-ratio: 4/3;
}

.gallery-item:nth-child(1) {
  grid-column: span 2;
  grid-row: span 2;
  aspect-ratio: auto;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
  filter: saturate(0.85) brightness(0.9);
}

.gallery-item:hover img {
  transform: scale(1.08);
  filter: saturate(1) brightness(1);
}

.gallery-item::after {
  content: '';
  position: absolute;
  inset: 0;
  border: 1px solid rgba(245, 197, 24, 0);
  transition: var(--transition);
  border-radius: 4px;
}

.gallery-item:hover::after {
  border-color: rgba(245, 197, 24, 0.3);
}

/* ═══════════════ REVIEWS CAROUSEL ═══════════════ */
.reviews {
  background: var(--black);
  overflow: hidden;
}

.reviews-summary {
  margin-top: 1.5rem;
}

.reviews-stars {
  font-size: 1.8rem;
  color: var(--gold);
  letter-spacing: 0.1em;
  margin-bottom: 0.25rem;
}

.reviews-count {
  font-size: 0.95rem;
  color: var(--text-secondary);
}

.reviews-carousel-wrapper {
  overflow: hidden;
  mask-image: linear-gradient(90deg, transparent, black 5%, black 95%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, black 5%, black 95%, transparent);
}

.reviews-carousel {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.review-row {
  display: flex;
  gap: 1rem;
  animation-timing-function: linear;
  animation-iteration-count: infinite;
  width: max-content;
}

.review-row:nth-child(1) {
  animation: scrollLeft 60s linear infinite;
}
.review-row:nth-child(2) {
  animation: scrollRight 55s linear infinite;
}
.review-row:nth-child(3) {
  animation: scrollLeft 65s linear infinite;
}

.review-card {
  flex-shrink: 0;
  width: 340px;
  background: linear-gradient(145deg, var(--black-card), rgba(30, 28, 24, 0.95));
  border: 1px solid rgba(245, 197, 24, 0.08);
  border-radius: 8px;
  padding: 1.5rem;
  transition: var(--transition);
}

.review-card:hover {
  border-color: rgba(245, 197, 24, 0.25);
  box-shadow: var(--gold-glow);
}

.review-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
}

.review-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--gold-dark), var(--brown));
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1rem;
  color: var(--black);
  flex-shrink: 0;
}

.review-name {
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--text-primary);
}

.review-stars {
  color: var(--gold);
  font-size: 0.85rem;
  letter-spacing: 2px;
}

.review-text {
  color: var(--text-secondary);
  font-size: 0.88rem;
  line-height: 1.6;
  font-style: italic;
}

.review-google {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  margin-top: 0.75rem;
  font-size: 0.75rem;
  color: var(--text-muted);
}

.review-google svg {
  width: 14px;
  height: 14px;
}

/* ═══════════════ CONTACT ═══════════════ */
.contact {
  background: var(--black-soft);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.contact-card {
  background: linear-gradient(145deg, var(--black-card), rgba(30, 28, 24, 0.9));
  border: 1px solid rgba(245, 197, 24, 0.08);
  padding: 1.75rem;
  border-radius: 4px;
  transition: var(--transition);
}

.contact-card:hover {
  border-color: rgba(245, 197, 24, 0.2);
}

.contact-icon {
  font-size: 1.5rem;
  margin-bottom: 0.75rem;
}

.contact-card h3 {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: var(--gold);
}

.contact-card p {
  color: var(--text-secondary);
  line-height: 1.8;
}

.contact-card a {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--gold);
}

.contact-note {
  font-size: 0.85rem !important;
  color: var(--text-muted) !important;
  margin-top: 0.25rem;
}

.hours-table {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.hours-row {
  display: flex;
  justify-content: space-between;
  padding: 0.4rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  color: var(--text-secondary);
  font-size: 0.95rem;
}

.hours-row.closed span:last-child {
  color: #8B4444;
}

.open-status {
  margin-top: 0.75rem;
  padding: 0.5rem 1rem;
  border-radius: 4px;
  font-size: 0.85rem;
  font-weight: 600;
  text-align: center;
}

.open-status.open {
  background: rgba(80, 180, 80, 0.1);
  border: 1px solid rgba(80, 180, 80, 0.3);
  color: #6CBB6C;
}

.open-status.closed {
  background: rgba(180, 80, 80, 0.1);
  border: 1px solid rgba(180, 80, 80, 0.3);
  color: #BB6C6C;
}

.map-frame {
  width: 100%;
  height: 400px;
  border-radius: 4px;
  overflow: hidden;
  border: 1px solid rgba(245, 197, 24, 0.1);
}

.map-btn {
  margin-top: 1rem;
  width: 100%;
  justify-content: center;
}

/* ═══════════════ FOOTER ═══════════════ */
.footer {
  background: var(--black);
  border-top: 1px solid rgba(245, 197, 24, 0.1);
  padding: 3rem 0 1.5rem;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 2rem;
  margin-bottom: 2rem;
}

.footer-logo-img {
  height: 60px;
  width: auto;
  object-fit: contain;
}

.footer-address {
  color: var(--text-muted);
  font-size: 0.85rem;
  margin-top: 0.5rem;
}

.footer-links {
  display: flex;
  gap: 2rem;
}

.footer-links a {
  color: var(--text-secondary);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.footer-links a:hover { color: var(--gold); }

.footer-bottom {
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  text-align: center;
}

.footer-bottom p {
  font-size: 0.8rem;
  color: var(--text-muted);
}

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

@keyframes fadeInDown {
  from { opacity: 0; transform: translateY(-20px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes scrollPulse {
  0%, 100% { opacity: 0.3; height: 40px; }
  50% { opacity: 1; height: 55px; }
}

@keyframes scrollLeft {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

@keyframes scrollRight {
  0% { transform: translateX(-50%); }
  100% { transform: translateX(0); }
}

/* ═══════════════ RESPONSIVE ═══════════════ */
@media (max-width: 1024px) {
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .gallery-item:nth-child(1) {
    grid-column: span 2;
    grid-row: span 1;
  }
}

@media (max-width: 768px) {
  .nav-links, .nav-cta { display: none; }
  .nav-burger { display: flex; }

  .nav-links.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: rgba(10, 10, 10, 0.98);
    backdrop-filter: blur(20px);
    padding: 2rem;
    gap: 1.5rem;
    border-bottom: 1px solid rgba(245, 197, 24, 0.1);
  }

  .about-grid {
    grid-template-columns: 1fr;
  }

  .about-image { order: -1; }

  .about-stats {
    justify-content: center;
  }

  .services-grid {
    grid-template-columns: 1fr;
  }

  .gallery-grid {
    grid-template-columns: 1fr 1fr;
  }

  .gallery-item:nth-child(1) {
    grid-column: span 2;
  }

  .contact-grid {
    grid-template-columns: 1fr;
  }

  .review-card {
    width: 280px;
  }

  .footer-inner {
    flex-direction: column;
    text-align: center;
  }

  .footer-links {
    flex-wrap: wrap;
    justify-content: center;
  }
}

@media (max-width: 480px) {
  .hero-actions {
    flex-direction: column;
    align-items: center;
  }

  .about-stats {
    flex-direction: column;
    gap: 1.5rem;
  }

  .gallery-grid {
    grid-template-columns: 1fr;
  }

  .gallery-item:nth-child(1) {
    grid-column: span 1;
  }

  .review-card {
    width: 260px;
  }
}
