/* ===== Variables ===== */
:root {
  --bg-dark: #0f0f0f;
  --bg-card: #1a1a1a;
  --text: #f5f0e8;
  --text-muted: #a39e94;
  --accent: #ea580c;
  --accent-hover: #fb923c;
  --border: rgba(234, 88, 12, 0.35);
  --font-head: Georgia, 'Times New Roman', Times, serif;
  --font-body: system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
}

/* ===== Reset & base ===== */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg-dark);
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-hover); }
ul { list-style: none; padding: 0; margin: 0; }

.container {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1.25rem;
}

/* ===== Header ===== */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(15, 15, 15, 0.95);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0.75rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.logo-scissors {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  color: var(--accent);
}
.logo-scissors-icon {
  width: 32px;
  height: 32px;
  display: block;
}
.logo img {
  height: 48px;
  width: auto;
  object-fit: contain;
}
.logo-fallback {
  display: none;
  font-family: var(--font-head);
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--accent);
}
.logo:has(img[style*="display: none"]) .logo-fallback { display: block; }

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  padding: 8px;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 6px;
  cursor: pointer;
  color: var(--text);
}
.nav-toggle span {
  display: block;
  height: 2px;
  background: currentColor;
  border-radius: 1px;
}
@media (max-width: 768px) {
  .nav-toggle { display: flex; }
  .main-nav {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    width: 280px;
    background: var(--bg-card);
    border-left: 1px solid var(--border);
    padding: 5rem 1.5rem 1.5rem;
    transform: translateX(100%);
    transition: transform 0.25s ease;
  }
  .main-nav.is-open { transform: translateX(0); }
  .main-nav ul { flex-direction: column; }
  .main-nav a { display: block; padding: 0.75rem 0; border-bottom: 1px solid var(--border); }
}
.main-nav ul {
  display: flex;
  gap: 0.5rem 1.5rem;
  flex-wrap: wrap;
}
.main-nav a {
  color: var(--text);
  font-weight: 500;
  padding: 0.25rem 0;
}
.main-nav a:hover { color: var(--accent); }

/* ===== Hero ===== */
.hero {
  min-height: 70vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 6rem 1.5rem 4rem;
  background: var(--bg-dark) url("../images/background.jpg") center / cover no-repeat;
  position: relative;
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(15, 15, 15, 0.6);
  pointer-events: none;
}
.hero-content { position: relative; }
.hero h1 {
  font-family: var(--font-head);
  font-size: clamp(2.25rem, 6vw, 3.5rem);
  font-weight: 600;
  margin: 0 0 0.5rem;
  letter-spacing: 0.02em;
}
.tagline {
  font-size: 1.25rem;
  color: var(--accent);
  margin: 0 0 1.5rem;
  font-weight: 500;
}
.btn {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 600;
  border-radius: 6px;
  transition: background 0.2s, color 0.2s;
}
.btn-primary {
  background: var(--accent);
  color: var(--bg-dark);
  border: none;
}
.btn-primary:hover {
  background: var(--accent-hover);
  color: var(--bg-dark);
}

.hero-walkin {
  position: relative;
  margin: 1.25rem 0 0;
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: #fff;
  text-transform: uppercase;
}

/* ===== Sections common ===== */
section {
  padding: 4rem 0;
}
section h2 {
  font-family: var(--font-head);
  font-size: clamp(1.75rem, 4vw, 2.25rem);
  font-weight: 600;
  margin: 0 0 1rem;
  color: var(--text);
}
.section-sub {
  color: var(--text-muted);
  margin: 0 0 2rem;
  font-size: 1.05rem;
}

/* ===== Text + image rows (image on the right on desktop) ===== */
.section-split {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  align-items: center;
}
@media (min-width: 768px) {
  .section-split {
    grid-template-columns: 1fr minmax(220px, 42%);
    gap: 2rem 2.5rem;
  }
}
.section-split-media {
  margin: 0;
  order: 0;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.2);
  transition: box-shadow 0.4s ease, transform 0.4s ease, border-color 0.4s ease;
}
.section-split-media:hover {
  transform: translateY(-5px);
  border-color: rgba(234, 88, 12, 0.55);
  box-shadow: 0 14px 40px rgba(234, 88, 12, 0.28), 0 8px 24px rgba(0, 0, 0, 0.35);
}
.section-split-media img {
  width: 100%;
  height: auto;
  max-height: 400px;
  object-fit: cover;
  display: block;
  transition: transform 0.5s cubic-bezier(0.33, 1, 0.68, 1), filter 0.4s ease;
}
.section-split-media:hover img {
  transform: scale(1.06);
  filter: brightness(1.06) contrast(1.03);
}
@media (min-width: 768px) {
  .section-split-media img {
    max-height: 340px;
  }
  .intro .section-split-media img {
    max-height: 420px;
  }
}

/* Respect reduced motion */
@media (prefers-reduced-motion: reduce) {
  .section-split-media,
  .section-split-media img {
    transition: none;
  }
  .section-split-media:hover {
    transform: none;
  }
  .section-split-media:hover img {
    transform: none;
    filter: none;
  }
}

/* ===== Intro ===== */
.intro {
  background: var(--bg-card);
}
.intro h2 { margin-bottom: 1.25rem; }
.intro-en, .intro-fr {
  max-width: 720px;
  margin: 0 0 1rem;
  color: var(--text-muted);
}
.intro .section-split-text .intro-en,
.intro .section-split-text .intro-fr {
  max-width: none;
}
.intro-fr { font-style: italic; }

/* ===== Pricing ===== */
.pricing { background: var(--bg-dark); }
.price-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 1rem;
  margin-bottom: 3rem;
}
.price-list li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 1.25rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 8px;
}
.service-name { font-weight: 500; }
.service-price { color: var(--accent); font-weight: 600; }

.services-detail {
  margin-top: 2rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
}
.services-detail h3 {
  font-family: var(--font-head);
  font-size: 1.5rem;
  margin: 0 0 1.5rem;
}
.service-category {
  margin-bottom: 2rem;
}
.service-category.section-split {
  margin-bottom: 2.75rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--border);
}
.service-category.section-split:last-child {
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: none;
}
.service-category h4 {
  font-size: 1.1rem;
  margin: 0 0 0.5rem;
  color: var(--accent);
}
.service-category p {
  color: var(--text-muted);
  margin: 0 0 0.75rem;
  font-size: 0.95rem;
}
.service-category ul {
  padding-left: 1.25rem;
  margin: 0;
  list-style: disc;
}
.service-category li {
  margin-bottom: 0.35rem;
  color: var(--text);
}

/* ===== Testimonials ===== */
.testimonials { background: var(--bg-card); }
.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.25rem;
}
.testimonial {
  margin: 0;
  padding: 1.5rem;
  background: var(--bg-dark);
  border: 1px solid var(--border);
  border-radius: 8px;
  border-left: 4px solid var(--accent);
}
.testimonial p {
  margin: 0 0 0.75rem;
  font-size: 0.95rem;
  color: var(--text);
}
.testimonial-stars {
  margin: 0 0 0.65rem;
  line-height: 1;
}
.testimonial-stars-inner {
  color: var(--accent);
  font-size: 1.2rem;
  letter-spacing: 0.18em;
}
.testimonial cite {
  font-size: 0.9rem;
  color: var(--text-muted);
  font-style: normal;
}

/* ===== Gallery ===== */
.gallery { background: var(--bg-dark); }
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1rem;
}
.gallery-item {
  aspect-ratio: 1;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid var(--border);
}
.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}
.gallery-item:hover img { transform: scale(1.05); }

/* ===== About ===== */
.about { background: var(--bg-card); }
.about-story {
  max-width: 720px;
  margin: 0 0 2rem;
  color: var(--text-muted);
}
.about-team {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}
@media (min-width: 768px) {
  .about-team {
    grid-template-columns: 1fr 1fr;
    gap: 1.25rem;
    align-items: start;
  }
}
.barber-card {
  padding: 1.5rem;
  background: var(--bg-dark);
  border: 1px solid var(--border);
  border-radius: 8px;
  display: flex;
  gap: 1.25rem;
  align-items: flex-start;
}
.barber-avatar {
  width: 92px;
  height: 92px;
  border-radius: 999px;
  overflow: hidden;
  border: 1px solid var(--border);
  flex: 0 0 auto;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.35);
}
.barber-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.barber-info h3 {
  font-family: var(--font-head);
  font-size: 1.5rem;
  margin: 0 0 0.5rem;
  color: var(--accent);
}
.barber-title {
  margin: -0.25rem 0 0.75rem;
  color: var(--text-muted);
  font-weight: 600;
}
.barber-info p { margin: 0; color: var(--text); }

/* ===== Contact ===== */
.contact { background: var(--bg-dark); }
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  align-items: start;
}
@media (max-width: 768px) {
  .contact-grid { grid-template-columns: 1fr; }
}
.contact-info p {
  margin: 0 0 0.75rem;
  color: var(--text);
}
.address { font-weight: 500; }
.hours { color: var(--accent); }
.parking, .booking-note {
  font-size: 0.95rem;
  color: var(--text-muted);
}
.contact-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin: 1rem 0;
}
.contact-links a {
  font-weight: 500;
  padding: 0.5rem 0;
}
/* Social & contact icon links */
.social-icons {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
  margin-top: 1rem;
}
.social-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--bg-dark);
  border: 1px solid var(--border);
  color: var(--text-muted);
  transition: color 0.2s, border-color 0.2s, background 0.2s, transform 0.2s;
}
.social-icon:hover {
  color: var(--accent);
  border-color: var(--accent);
  background: rgba(234, 88, 12, 0.12);
  transform: translateY(-2px);
}
.social-icon svg {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
}

.contact-links-icons {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem 1rem;
  margin: 1rem 0 0;
}
.contact-links-icons li {
  margin: 0;
}
.contact-links-icons a.contact-tel {
  font-weight: 600;
  color: var(--accent);
  padding: 0.35rem 0;
}
.contact-links-icons a.social-icon {
  margin: 0;
}

.footer-social {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.5rem 0.75rem;
  margin-top: 0.75rem;
}
.footer-social .social-icon {
  width: 40px;
  height: 40px;
}
.footer-social .social-icon svg {
  width: 18px;
  height: 18px;
}

.map-wrap {
  position: relative;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid var(--border);
  aspect-ratio: 4/3;
  min-height: 240px;
}
.map-wrap iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
}
.map-link {
  position: absolute;
  bottom: 0.5rem;
  right: 0.5rem;
  padding: 0.35rem 0.75rem;
  background: var(--bg-dark);
  border-radius: 6px;
  font-size: 0.85rem;
}

/* ===== Footer ===== */
.site-footer {
  padding: 2rem 1.25rem;
  text-align: center;
  border-top: 1px solid var(--border);
  background: var(--bg-card);
}
.site-footer p {
  margin: 0.25rem 0;
  font-size: 0.9rem;
  color: var(--text-muted);
}
.site-footer a { color: var(--accent); }

/* ===== Chat assistant ===== */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.chat-launcher {
  position: fixed;
  bottom: 1.25rem;
  right: 1.25rem;
  z-index: 9999;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.1rem;
  border: none;
  border-radius: 999px;
  background: var(--accent);
  color: var(--bg-dark);
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 4px 20px rgba(234, 88, 12, 0.45);
  transition: transform 0.2s, background 0.2s;
}
.chat-launcher:hover {
  background: var(--accent-hover);
  transform: scale(1.03);
}
.chat-launcher-icon {
  display: flex;
  line-height: 0;
}
.chat-panel {
  position: fixed;
  bottom: 5.5rem;
  right: 1.25rem;
  z-index: 10000;
  width: min(100vw - 2.5rem, 380px);
  max-height: min(560px, calc(100vh - 7rem));
  display: none;
  flex-direction: column;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.5);
  overflow: hidden;
}
.chat-panel.chat-panel--open {
  display: flex;
}
.chat-panel-inner {
  display: flex;
  flex-direction: column;
  max-height: inherit;
  min-height: 0;
}
.chat-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 1rem 1rem 0.75rem;
  background: linear-gradient(180deg, rgba(234, 88, 12, 0.15) 0%, transparent 100%);
  border-bottom: 1px solid var(--border);
}
.chat-header h2 {
  margin: 0;
  font-family: var(--font-head);
  font-size: 1.25rem;
  font-weight: 600;
}
.chat-sub {
  margin: 0.25rem 0 0;
  font-size: 0.8rem;
  color: var(--text-muted);
}
.chat-close {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--bg-dark);
  color: var(--text);
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
}
.chat-close:hover {
  color: var(--accent);
}
.chat-messages {
  flex: 1;
  overflow-y: auto;
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  min-height: 220px;
  max-height: 360px;
}
.chat-msg {
  max-width: 92%;
  padding: 0.65rem 0.85rem;
  border-radius: 10px;
  font-size: 0.9rem;
  line-height: 1.45;
}
.chat-msg-bot {
  align-self: flex-start;
  background: var(--bg-dark);
  border: 1px solid var(--border);
  color: var(--text);
}
.chat-msg-user {
  align-self: flex-end;
  background: rgba(234, 88, 12, 0.2);
  border: 1px solid var(--border);
  color: var(--text);
}
.chat-msg a {
  color: var(--accent);
  word-break: break-word;
}
.chat-form {
  display: flex;
  gap: 0.5rem;
  padding: 0.75rem;
  border-top: 1px solid var(--border);
  background: var(--bg-dark);
}
.chat-form input {
  flex: 1;
  min-width: 0;
  padding: 0.65rem 0.85rem;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--bg-card);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 0.9rem;
}
.chat-form input:focus {
  outline: 2px solid var(--accent);
  outline-offset: 1px;
}
.chat-send {
  padding: 0.65rem 1rem;
  border: none;
  border-radius: 8px;
  background: var(--accent);
  color: var(--bg-dark);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
}
.chat-send:hover {
  background: var(--accent-hover);
}
.chat-typing {
  font-size: 0.85rem;
  color: var(--text-muted);
  font-style: italic;
  padding: 0 0.25rem;
}
@media (max-width: 480px) {
  .chat-panel {
    right: 0.75rem;
    bottom: 5rem;
    width: calc(100vw - 1.5rem);
  }
  .chat-launcher {
    right: 0.75rem;
    bottom: 0.75rem;
  }
}

.lang-switch a {
  font-weight: bold;
  text-decoration: none;
  border: 1px solid currentColor;
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 0.9em;
}
