/* React adaptations for the licensed Barberon homepage. Template rules live in barberon.css. */
.barberon-landing {
  --body-font: "DM Sans", Helvetica, Arial, sans-serif;
  --bg-dark-1: #171311;
  --primary-color: #c8a46a;
  position: relative;
  isolation: isolate;
  overflow: clip;
  color-scheme: dark;
  font: 400 17px/30px var(--body-font);
  letter-spacing: -.16px;
  background: var(--bg-dark-1);
}

.barberon-landing[dir="rtl"],
.barberon-landing[dir="rtl"] :where(*) {
  --body-font: var(--app-font-family);
  --heading-font: var(--app-font-family);
  --mainmenu-font: var(--app-font-family);
  --subtitle-letter-spacing: 0;
  --h1-letter-spacing: 0;
  --h2-letter-spacing: 0;
}

.barberon-landing :where(section[id]) { scroll-margin-top: 72px; }
.barberon-landing :where(a, button, input, select, textarea, [tabindex]):focus-visible {
  outline: 2px solid var(--primary-color);
  outline-offset: 4px;
}

/* The template's .container and .row declarations supply the gutters and grid. */
.barberon-landing .barber-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #fff;
  font: 700 clamp(21px, 3vw, 34px)/1 "Playfair Display", Georgia, serif;
  letter-spacing: .07em;
  text-transform: uppercase;
  white-space: nowrap;
}

.barberon-landing .barber-brand img { width: 36px; height: auto; }
.barberon-landing .logo-footer.barber-brand { width: auto; margin-bottom: 14px; }
.barberon-landing[dir="rtl"] .barber-brand { font-family: var(--app-font-family); letter-spacing: 0; }
.barberon-landing .barber-header #menu-btn::before { content: none; }
.barberon-landing .barber-header #menu-btn svg { display: block; margin: auto; }
.barberon-landing .barber-header nav, .barberon-landing .barber-header #logo { align-self: center; }
.barberon-landing .barber-header #mainmenu .menu-item { white-space: nowrap; }
.barberon-landing .barber-header #mainmenu .barber-panel-link > span {
  position: static;
  display: inline;
  padding: 0;
  margin: 0;
  color: inherit;
  font: inherit;
  text-transform: inherit;
  background: none;
}

.barberon-landing .v-center .barber-hero-media {
  position: absolute;
  z-index: 0;
  inset: 0;
}

.barberon-landing .barber-hero-slide {
  inset: 0;
  position: absolute;
}

.barberon-landing .barber-hero-slide:nth-child(2) { opacity: 0; }
.barberon-landing .barber-hero-image { object-fit: cover; object-position: 38% 48%; }
.barberon-landing[dir="ltr"] .barber-hero-image { transform: scaleX(-1); }
.barberon-landing .barber-headlines { display: grid; }
.barberon-landing .barber-headlines > * { grid-area: 1 / 1; }
.barberon-landing .barber-headlines > :not(:first-child) { opacity: 0; }

.barberon-landing .barber-seal { width: 200px; height: 200px; }
.barberon-landing .barber-seal text { font-size: 12px; letter-spacing: 2px; fill: var(--primary-color); }
.barberon-landing .barber-seal img { width: 82px; height: 82px; object-fit: contain; }
.barberon-landing .barber-team-hover { object-fit: cover; }
.barberon-landing .barber-sample { font-size: .72em; }
.barberon-landing .barber-service:focus-within .hover-mh-100 { opacity: 1; max-height: 100px; }

.barberon-landing .barber-reviews-image,
.barberon-landing .barber-location-image { object-fit: cover; }
.barberon-landing .barber-location-image { z-index: 0; }
.barberon-landing .barber-location .gs-fixed { top: 50%; transform: translateY(-50%); }
.barberon-landing .barber-reviews { width: 100%; position: relative; overflow: visible; }
.barberon-landing .barber-reviews .swiper, .barberon-landing .barber-reviews .swiper-slide { background: transparent; }
.barberon-landing .barber-reviews .swiper { position: relative; width: 100%; height: auto; touch-action: pan-y; }
.barberon-landing .barber-reviews :is(.swiper-wrapper, .swiper-slide) { height: auto; }
.barberon-landing .barber-reviews figure { margin-block: 0; }
.barberon-landing .barber-reviews .swiper-notification { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
.barberon-landing .barber-review-text {
  color: var(--heading-font-color-bg-dark);
  font-family: var(--h3-font-family);
  font-weight: var(--h3-font-weight);
  letter-spacing: var(--h3-letter-spacing);
}
.barberon-landing .barber-quote { width: 48px; height: 48px; }
.barberon-landing .barber-star { display: inline-block; }
.barberon-landing .barber-reviews-controls { position: absolute; inset-inline-end: max(18px, 4vw); bottom: -52px; display: flex; gap: 8px; z-index: 3; }
.barberon-landing .barber-reviews-controls:not(:focus-within) { opacity: 0; }
.barberon-landing .barber-reviews:hover .barber-reviews-controls { opacity: 1; }
.barberon-landing .barber-reviews-controls button,
.barberon-landing .barber-lightbox button {
  display: inline-grid;
  place-items: center;
  width: 38px;
  height: 38px;
  color: white;
  border: 1px solid rgb(255 255 255 / 28%);
  background: var(--bg-dark-1);
}
.barberon-landing .barber-reviews-controls button:disabled { opacity: .35; }
.barberon-landing[dir="rtl"] :is(.barber-reviews-controls, .barber-lightbox-controls) button svg { rotate: 180deg; }

.barberon-landing .barber-gallery-trigger { width: 100%; cursor: zoom-in; color: inherit; }
.barberon-landing .barber-gallery {
  display: grid;
  row-gap: var(--bs-gutter-y);
  margin-block-start: 0;
}
.barberon-landing .barber-gallery > .item { width: auto; margin-block-start: 0; min-width: 0; grid-column: auto; }
@media (min-width: 576px) {
  .barberon-landing .barber-gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .barberon-landing .barber-gallery > :nth-child(2) { grid-row: span 2; }
}
@media (min-width: 768px) {
  .barberon-landing .barber-gallery { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .barberon-landing .barber-gallery > .item:nth-child(2) { grid-column: 2; }
}
.barberon-landing .barber-lightbox {
  position: fixed;
  inset: 0;
  margin: auto;
  padding: 12px;
  width: min(94vw, 1100px);
  max-height: 96dvh;
  color: #fff;
  border: 0;
  background: transparent;
}
.barberon-landing .barber-lightbox::backdrop { background: rgb(11 11 11 / 85%); }
.barberon-landing .barber-lightbox-close { display: grid; margin-inline-start: auto; margin-bottom: 6px; }
.barberon-landing .barber-lightbox-image { position: relative; height: min(72dvh, 760px); }
.barberon-landing .barber-lightbox-image img { object-fit: contain; }
.barberon-landing .barber-lightbox-controls { display: flex; align-items: center; justify-content: space-between; gap: 12px; text-align: center; }

.barberon-landing #contact_form :is(input, select, textarea) { color-scheme: dark; }
.barberon-landing #contact_form select { color: var(--bs-light); }
.barberon-landing #contact_form option { background: var(--bg-dark-2); }
.barberon-landing .barber-ticker { overflow: clip; }
.barberon-landing .barber-ticker-track { width: max-content; }
.barberon-landing .barber-ticker-group { flex: none; white-space: nowrap; }
.barberon-landing .barber-socials a { margin-inline: 12px; }
.barberon-landing #selector #demo-rtl { display: block; }

.barberon-landing[dir="rtl"] .border-start { border-left: 0 !important; border-right: var(--bs-border-width) solid var(--bs-border-color) !important; }
.barberon-landing[dir="rtl"] :is(.ps-5, .px-5.ps-5) { padding-right: 3rem !important; padding-left: 0 !important; }
.barberon-landing[dir="rtl"] .me-3 { margin-right: 0 !important; margin-left: 1rem !important; }
.barberon-landing[dir="rtl"] .ms-2 { margin-left: 0 !important; margin-right: .5rem !important; }
.barberon-landing[dir="rtl"] .end-0 { right: auto !important; left: 0 !important; }

@media (min-width: 992px) {
  .barberon-landing[dir="rtl"] .offset-lg-2 { margin-left: 0; margin-right: 16.666667%; }
  .barberon-landing[dir="rtl"] .offset-lg-3 { margin-left: 0; margin-right: 25%; }
}

@media (max-width: 991.98px) {
  .barberon-landing .barber-header {
    position: fixed;
    top: 0;
    padding-block: 10px;
  }
  .barberon-landing .barber-header.menu-open { min-height: 100dvh; background-color: var(--bg-dark-1); }
  .barberon-landing .barber-header #menu-btn { display: grid; place-items: center; margin-block: 0; }
  .barberon-landing .barber-header:not(.menu-open) .barber-main-navigation { display: none; }
  .barberon-landing .barber-header.menu-open #mainmenu {
    display: block;
    position: absolute;
    inset-block: 70px 0;
    inset-inline: 0;
    padding-inline: 30px;
    width: 100%;
    height: auto;
  }
  .barberon-landing .barber-header.menu-open #mainmenu > li { display: block; margin: 0; }
  .barberon-landing .barber-header.menu-open #mainmenu > li > a {
    display: block;
    padding: 11px 0;
    border-bottom: 1px solid rgb(255 255 255 / 12%);
  }
}

@media (max-width: 575.98px) {
  .barberon-landing .barber-hero-image { object-position: 34% 50%; }
  .barberon-landing .barber-quote { width: 35px; height: 35px; }
  .barberon-landing .barber-brand img { width: 32px; }
  .barberon-landing .barber-brand { font-size: clamp(20px, 6vw, 28px); }
}

@media (prefers-reduced-motion: no-preference) {
  .barberon-landing .barber-hero-slide:nth-child(2) { animation: barberon-background-fade 8s ease-in-out infinite; }
  .barberon-landing .barber-headlines > * { animation: barberon-headline-fade 16s linear infinite; }
  .barberon-landing .barber-headlines > :nth-child(2) { animation-delay: 4s; }
  .barberon-landing .barber-headlines > :nth-child(3) { animation-delay: 8s; }
  .barberon-landing .barber-headlines > :nth-child(4) { animation-delay: 12s; }
  .barberon-landing .barber-ticker-track { animation: barberon-ticker 38s linear infinite; }
  .barberon-landing[dir="rtl"] .barber-ticker-track { animation-direction: reverse; }
}
@media (prefers-reduced-motion: reduce) {
  .barberon-landing .barber-seal .text-circle { animation: none; }
}

@keyframes barberon-background-fade {
  0%, 42% { opacity: 0; }
  54%, 90% { opacity: 1; }
  100% { opacity: 0; }
}
@keyframes barberon-headline-fade {
  0%, 19% { opacity: 1; }
  25%, 95% { opacity: 0; }
  100% { opacity: 1; }
}
@keyframes barberon-ticker { to { transform: translateX(-50%); } }
