/* =========================================================
   HigherEnd Barbershop - Modern Gray Purple Theme
   File: assets/css/modern.css
   ========================================================= */

/* -----------------------------
   Root / Design Tokens
----------------------------- */
:root {
  --color-bg: #111015;
  --color-bg-soft: #19171f;
  --color-bg-deep: #09090d;

  --color-card: #211f29;
  --color-card-2: #282532;
  --color-card-3: #312d3d;

  --color-text: #f4f1f7;
  --color-muted: #c7c0cf;
  --color-muted-2: #9f97aa;

  --color-accent: #8f7aa8;
  --color-accent-light: #b8a6cc;
  --color-accent-dark: #6e5b86;
  --color-accent-deep: #4b3e5d;

  --color-white: #ffffff;
  --color-black: #000000;

  --color-border: rgba(184, 166, 204, 0.18);
  --color-border-strong: rgba(184, 166, 204, 0.34);

  --font-heading: "Playfair Display", serif;
  --font-body: "Open Sans", sans-serif;

  --container: 1180px;

  --radius-sm: 10px;
  --radius-md: 18px;
  --radius-lg: 28px;
  --radius-xl: 36px;

  --shadow-sm: 0 10px 30px rgba(0, 0, 0, 0.24);
  --shadow-md: 0 18px 50px rgba(0, 0, 0, 0.32);
  --shadow-lg: 0 24px 70px rgba(0, 0, 0, 0.42);

  --header-height: 86px;
}

/* -----------------------------
   Reset / Base
----------------------------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  margin: 0;
  overflow-x: hidden;
  font-family: var(--font-body);
  color: var(--color-text);
  background:
    radial-gradient(circle at top left, rgba(143, 122, 168, 0.14), transparent 34rem),
    radial-gradient(circle at bottom right, rgba(75, 62, 93, 0.18), transparent 32rem),
    linear-gradient(180deg, #111015 0%, #0c0c10 100%);
  line-height: 1.6;
}

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

a {
  color: inherit;
  text-decoration: none;
  transition:
    color 0.25s ease,
    background 0.25s ease,
    border-color 0.25s ease,
    transform 0.25s ease,
    opacity 0.25s ease;
}

button {
  font: inherit;
}

::selection {
  background: var(--color-accent);
  color: var(--color-white);
}

/* -----------------------------
   Utilities
----------------------------- */
.container {
  width: min(100% - 32px, var(--container));
  margin-inline: auto;
}

.section {
  padding: 110px 0;
}

.section.alt,
.section-dark {
  background:
    radial-gradient(circle at top right, rgba(143, 122, 168, 0.12), transparent 30rem),
    var(--color-bg-soft);
}

.section-heading,
.section-head {
  max-width: 760px;
  margin: 0 auto 60px;
  text-align: center;
}

.eyebrow {
  display: inline-block;
  margin: 0 0 16px;
  color: var(--color-accent-light);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.section-heading h1,
.section-heading h2,
.section-head h1,
.section-head h2,
.page-hero h1,
.hero h1 {
  font-family: var(--font-heading);
  color: var(--color-text);
}

.section-heading h2,
.section-head h2 {
  margin: 0 0 18px;
  font-size: clamp(2.25rem, 5vw, 4rem);
  line-height: 1.05;
}

.section-heading p,
.section-head p {
  margin: 0;
  color: var(--color-muted);
  font-size: 1.04rem;
}

.text-center {
  text-align: center;
}

.mt-0 {
  margin-top: 0;
}

.mb-0 {
  margin-bottom: 0;
}

/* -----------------------------
   Header / Top Bar / Nav
----------------------------- */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 999;
  background: rgba(17, 16, 21, 0.84);
  border-bottom: 1px solid var(--color-border);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.top-strip {
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  padding: 0 20px;
  border-bottom: 1px solid var(--color-border);
  color: var(--color-muted);
  font-size: 0.8rem;
}

.top-strip .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.top-strip a:hover {
  color: var(--color-accent-light);
}

.navbar {
  width: min(100% - 32px, var(--container));
  height: var(--header-height);
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.brand img {
  width: 118px;
  height: auto;
  object-fit: contain;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 30px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-menu a {
  color: var(--color-text);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.nav-menu a:hover,
.nav-menu a.active {
  color: var(--color-accent-light);
}

.nav-cta,
.nav-menu a.book {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 20px;
  border-radius: 999px;
  background: linear-gradient(135deg, #8f7aa8, #655374);
  color: var(--color-white) !important;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.26);
}

.nav-cta:hover,
.nav-menu a.book:hover {
  transform: translateY(-2px);
  background: linear-gradient(135deg, #b8a6cc, #7a668d);
  color: var(--color-white) !important;
}

.nav-toggle {
  display: none;
  width: 46px;
  height: 46px;
  border: 1px solid var(--color-border);
  border-radius: 999px;
  background: rgba(184, 166, 204, 0.08);
  cursor: pointer;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
}

.nav-toggle span {
  width: 20px;
  height: 2px;
  border-radius: 999px;
  background: var(--color-text);
  transition: transform 0.25s ease, opacity 0.25s ease;
}

.nav-toggle.is-active span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-toggle.is-active span:nth-child(2) {
  opacity: 0;
}

.nav-toggle.is-active span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* -----------------------------
   Buttons
----------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 0 28px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-size: 0.84rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-primary {
  background: linear-gradient(135deg, #8f7aa8, #625270);
  color: var(--color-white);
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.32);
}

.btn-primary:hover {
  background: linear-gradient(135deg, #b8a6cc, #7d6a91);
  color: var(--color-white);
}

.btn-secondary,
.btn-ghost {
  border-color: var(--color-border);
  color: var(--color-text);
  background: rgba(184, 166, 204, 0.08);
}

.btn-secondary:hover,
.btn-ghost:hover {
  border-color: var(--color-border-strong);
  color: var(--color-accent-light);
  background: rgba(184, 166, 204, 0.14);
}

.btn-full {
  width: 100%;
}

/* -----------------------------
   Hero
----------------------------- */
.hero {
  min-height: 100vh;
  position: relative;
  display: grid;
  place-items: center;
  padding: 180px 24px 110px;
  background:
    linear-gradient(rgba(17, 16, 21, 0.68), rgba(12, 12, 16, 0.9)),
    url("../images/sliders/slide-bg/1.jpg") center/cover no-repeat;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: auto -20% -35% -20%;
  height: 420px;
  background: radial-gradient(circle, rgba(143, 122, 168, 0.2), transparent 65%);
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 900px;
  text-align: center;
}

.hero h1 {
  margin: 0 0 26px;
  font-size: clamp(3.1rem, 8vw, 7rem);
  line-height: 0.95;
  letter-spacing: -0.05em;
}

.hero p {
  max-width: 720px;
  margin: 0 auto 36px;
  color: var(--color-muted);
  font-size: clamp(1rem, 2vw, 1.25rem);
}

.hero-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
}

.hero-card {
  max-width: 820px;
  margin: 42px auto 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  overflow: hidden;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  background: rgba(33, 31, 41, 0.82);
  box-shadow: var(--shadow-lg);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.hero-card div {
  padding: 22px 18px;
  text-align: center;
  border-right: 1px solid var(--color-border);
}

.hero-card div:last-child {
  border-right: 0;
}

.hero-card span {
  display: block;
  margin-bottom: 5px;
  color: var(--color-muted-2);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.hero-card strong {
  color: var(--color-text);
  font-size: 0.95rem;
}

/* -----------------------------
   Page Hero
----------------------------- */
.page-hero {
  min-height: 440px;
  display: grid;
  place-items: center;
  padding: 160px 24px 90px;
  background:
    linear-gradient(rgba(17, 16, 21, 0.7), rgba(12, 12, 16, 0.9)),
    var(--image, var(--page-bg)) center/cover no-repeat;
  text-align: center;
}

.page-hero h1 {
  margin: 0;
  font-size: clamp(3rem, 7vw, 6rem);
  line-height: 1;
}

.page-hero p {
  max-width: 680px;
  margin: 22px auto 0;
  color: var(--color-muted);
  font-size: 1.08rem;
}

/* -----------------------------
   Intro / About
----------------------------- */
.split-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 56px;
  align-items: center;
}

.split-content h2 {
  margin: 0 0 22px;
  font-family: var(--font-heading);
  font-size: clamp(2.2rem, 5vw, 4rem);
  line-height: 1.08;
  color: var(--color-text);
}

.split-content p {
  color: var(--color-muted);
  font-size: 1.04rem;
}

.split-media {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-xl);
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-lg);
}

.split-media img,
.split-media video {
  width: 100%;
  height: 480px;
  object-fit: cover;
}

.split-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent, rgba(17, 16, 21, 0.42));
  pointer-events: none;
}

/* -----------------------------
   Services
----------------------------- */
.service-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
}

.service-card {
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, var(--color-card-2), var(--color-card));
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-lg);
}

.service-card img {
  width: 100%;
  height: 285px;
  object-fit: cover;
}

.service-card-content,
.service-card > div {
  padding: 28px;
}

.service-card h3 {
  margin: 0 0 10px;
  color: var(--color-text);
  font-family: var(--font-heading);
  font-size: 1.65rem;
  line-height: 1.1;
}

.service-card p {
  margin: 0;
  color: var(--color-muted);
}

/* -----------------------------
   Hours
----------------------------- */
.hours,
.hours-section {
  padding: 110px 0;
  background:
    linear-gradient(rgba(17, 16, 21, 0.8), rgba(12, 12, 16, 0.92)),
    url("../images/background/2.jpg") center/cover fixed no-repeat;
}

.hours-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 16px;
}

.hour-card {
  min-height: 150px;
  padding: 24px 16px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  background: rgba(33, 31, 41, 0.68);
  text-align: center;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: transform 0.25s ease, border-color 0.25s ease, background 0.25s ease;
}

.hour-card:hover {
  transform: translateY(-5px);
  border-color: var(--color-border-strong);
  background: rgba(49, 45, 61, 0.78);
}

.hour-card span {
  display: block;
  margin-bottom: 12px;
  color: var(--color-accent-light);
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.hour-card strong {
  display: block;
  color: var(--color-text);
  font-size: 0.95rem;
  line-height: 1.5;
}

/* -----------------------------
   Pricing / Services List
----------------------------- */
.price-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.price-card {
  padding: 30px;
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, var(--color-card-2), var(--color-card));
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-sm);
}

.price-card h3 {
  margin: 0 0 12px;
  color: var(--color-text);
  font-family: var(--font-heading);
  font-size: 1.45rem;
}

.price-card p {
  margin: 0;
  color: var(--color-muted);
}

.price-note {
  margin-top: -35px;
  margin-bottom: 48px;
  color: var(--color-accent-light);
  text-align: center;
  font-weight: 800;
}

/* -----------------------------
   Stats / Counter
----------------------------- */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
}

.stat-card {
  padding: 34px 24px;
  text-align: center;
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, var(--color-card-2), var(--color-card));
  border: 1px solid var(--color-border);
}

.stat-card img {
  width: 48px;
  height: 48px;
  object-fit: contain;
  margin: 0 auto 18px;
  opacity: 0.9;
}

.stat-number {
  display: block;
  margin-bottom: 6px;
  color: var(--color-text);
  font-family: var(--font-heading);
  font-size: 2.4rem;
  font-weight: 900;
  line-height: 1;
}

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

/* -----------------------------
   Staff
----------------------------- */
.staff-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 24px;
}

.staff-card {
  overflow: hidden;
  text-align: center;
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, var(--color-card-2), var(--color-card));
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-md);
}

.staff-card img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  filter: saturate(0.95) contrast(1.04);
}

.staff-card-content {
  padding: 24px 18px 28px;
}

.staff-card h3 {
  margin: 0 0 8px;
  color: var(--color-text);
  font-family: var(--font-heading);
  font-size: 1.42rem;
}

.staff-card p {
  margin: 0;
  color: var(--color-accent-light);
  font-weight: 700;
}

/* -----------------------------
   Gallery
----------------------------- */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
}

.gallery-card {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, var(--color-card-2), var(--color-card));
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-md);
}

.gallery-card img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  transition: transform 0.45s ease, filter 0.45s ease;
}

.gallery-card:hover img {
  transform: scale(1.06);
  filter: brightness(0.82) saturate(0.95);
}

.gallery-card::after {
  content: "HigherEnd";
  position: absolute;
  left: 18px;
  bottom: 18px;
  padding: 8px 14px;
  border: 1px solid var(--color-border);
  border-radius: 999px;
  background: rgba(17, 16, 21, 0.72);
  color: var(--color-text);
  font-size: 0.75rem;
  font-weight: 900;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.gallery-card:hover::after {
  opacity: 1;
  transform: translateY(0);
}

/* -----------------------------
   CTA Section
----------------------------- */
.cta,
.cta-section {
  position: relative;
  padding: 105px 0;
  overflow: hidden;
  background:
    radial-gradient(circle at center, rgba(143, 122, 168, 0.18), transparent 34rem),
    linear-gradient(135deg, var(--color-card-3), var(--color-bg-deep));
}

.cta-inner,
.cta-box {
  max-width: 900px;
  margin-inline: auto;
  text-align: center;
}

.cta-inner h2,
.cta-box h2 {
  margin: 0 0 24px;
  color: var(--color-text);
  font-family: var(--font-heading);
  font-size: clamp(2.4rem, 5vw, 4.5rem);
  line-height: 1.05;
}

.cta-box p {
  max-width: 680px;
  margin: 0 auto 34px;
  color: var(--color-muted);
  font-size: 1.08rem;
}

/* -----------------------------
   Follow / Social
----------------------------- */
.follow-section {
  padding: 80px 0;
  background: var(--color-bg-soft);
  text-align: center;
}

.follow-section h2 {
  margin: 0 0 18px;
  color: var(--color-text);
  font-family: var(--font-heading);
  font-size: clamp(2rem, 5vw, 3.5rem);
}

.follow-section p {
  margin: 0 0 24px;
  color: var(--color-muted);
}

.social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 54px;
  height: 54px;
  padding: 0 22px;
  border-radius: 999px;
  border: 1px solid var(--color-border);
  background: rgba(184, 166, 204, 0.08);
  color: var(--color-text);
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.social-link:hover {
  transform: translateY(-2px);
  border-color: var(--color-border-strong);
  background: rgba(184, 166, 204, 0.14);
  color: var(--color-accent-light);
}

/* -----------------------------
   Footer
----------------------------- */
.footer {
  background: #09090d;
  border-top: 1px solid var(--color-border);
}

.footer-inner {
  width: min(100% - 32px, var(--container));
  margin-inline: auto;
  padding: 34px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  color: var(--color-muted-2);
  font-size: 0.9rem;
}

.footer-links {
  display: flex;
  align-items: center;
  gap: 18px;
}

.footer a:hover {
  color: var(--color-accent-light);
}

/* -----------------------------
   Forms / Contact Pieces
----------------------------- */
.contact-card {
  padding: 34px;
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, var(--color-card-2), var(--color-card));
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-sm);
}

.contact-card h3 {
  margin: 0 0 14px;
  color: var(--color-text);
  font-family: var(--font-heading);
  font-size: 1.6rem;
}

.contact-card p,
.contact-card a {
  color: var(--color-muted);
}

.contact-card a:hover {
  color: var(--color-accent-light);
}

/* -----------------------------
   Legacy Compatibility
   Keeps some old class names from breaking
----------------------------- */
.text--center {
  text-align: center !important;
}

.text-white {
  color: var(--color-white) !important;
}

.bg-white,
.bg-gray {
  background: var(--color-bg) !important;
}

.btn--white,
.btn--primary,
.btn--bordered,
.btn--rounded {
  border-radius: 999px;
}

.btn-booking {
  display: flex;
  justify-content: center;
  margin-top: 22px;
}

/* -----------------------------
   Responsive
----------------------------- */
@media (max-width: 1180px) {
  .staff-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .hours-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 960px) {
  .section {
    padding: 86px 0;
  }

  .service-grid,
  .price-grid,
  .split-grid {
    grid-template-columns: 1fr;
  }

  .split-media img,
  .split-media video {
    height: 390px;
  }

  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .hero-card {
    grid-template-columns: 1fr;
    max-width: 520px;
  }

  .hero-card div {
    border-right: 0;
    border-bottom: 1px solid var(--color-border);
  }

  .hero-card div:last-child {
    border-bottom: 0;
  }
}

@media (max-width: 780px) {
  :root {
    --header-height: 76px;
  }

  .top-strip {
    display: none;
  }

  .navbar {
    height: var(--header-height);
  }

  .brand img {
    width: 98px;
  }

  .nav-toggle {
    display: inline-flex;
  }

  .nav-menu {
    position: fixed;
    inset: calc(var(--header-height) + 14px) 16px auto 16px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 18px;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    background: rgba(17, 16, 21, 0.96);
    box-shadow: var(--shadow-lg);
  }

  .nav-menu.is-open {
    display: flex;
  }

  .nav-menu li {
    width: 100%;
  }

  .nav-menu a {
    display: flex;
    width: 100%;
    padding: 14px 10px;
  }

  .nav-cta,
  .nav-menu a.book {
    justify-content: center;
    margin-top: 8px;
  }

  .hero {
    min-height: 92vh;
    padding: 130px 18px 80px;
  }

  .hero h1 {
    letter-spacing: -0.035em;
  }

  .hero-actions {
    flex-direction: column;
  }

  .hero-actions .btn {
    width: min(100%, 320px);
  }

  .page-hero {
    min-height: 360px;
    padding-top: 125px;
  }

  .section-heading,
  .section-head {
    margin-bottom: 42px;
  }

  .hours-grid,
  .staff-grid,
  .stats-grid,
  .gallery-grid {
    grid-template-columns: 1fr;
  }

  .hour-card {
    min-height: auto;
  }

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

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

@media (max-width: 520px) {
  .container {
    width: min(100% - 24px, var(--container));
  }

  .section {
    padding: 72px 0;
  }

  .btn {
    width: 100%;
    min-height: 48px;
    padding-inline: 20px;
  }

  .service-card img {
    height: 240px;
  }

  .price-card,
  .contact-card {
    padding: 24px;
  }

  .split-media img,
  .split-media video {
    height: 310px;
  }
}