/* -webkit-fill-available was an iOS address-bar workaround. In Chrome it
   computes to `stretch`, which on a block resolves against the containing block
   and COLLAPSED these heroes to their content height -- the restaurant hero
   measured 477px on an 800px viewport, so its centred h1 sat at the very top,
   under the fixed nav. 100svh is the modern spelling, does the iOS job properly,
   and falls back to the 100vh above it on anything that does not support it. */
/* ============================================================
   CRAFT & CO -- Stylesheet
   Preset: salon-v1
   Premium salon / barbershop template
   ============================================================ */

/* === RESET === */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-body);
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
ul, ol { list-style: none; }
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 400;
  line-height: 1;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

/* === DEMO BANNER === */
.cc-demo-banner {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: var(--z-banner);
  background: var(--bg-dark);
  color: var(--text-light);
  text-align: center;
  padding: 8px 16px;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.02em;
}
.cc-demo-banner a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.cc-demo-banner a:hover { color: #fff; }

/* === SIDE NAVIGATION (Desktop) === */
.cc-nav {
  position: fixed;
  top: 0;
  left: 0;
  width: var(--nav-w);
  height: 100vh;
  height: 100svh;
  background: var(--bg-dark);
  z-index: var(--z-nav);
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 80px 0 24px;
  border-right: 1px solid var(--border-light);
}
.cc-nav__logo {
  font-family: var(--font-display);
  font-size: 18px;
  color: var(--accent);
  letter-spacing: 0.1em;
  writing-mode: vertical-rl;
  text-orientation: mixed;
  transform: rotate(180deg);
  margin-bottom: auto;
}
.cc-nav__links {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 28px;
  margin-bottom: auto;
}
.cc-nav__links a {
  writing-mode: vertical-rl;
  text-orientation: mixed;
  transform: rotate(180deg);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--muted);
  transition: color var(--duration-fast) var(--ease);
  position: relative;
}
.cc-nav__links a::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: -4px;
  width: 0;
  height: 1px;
  background: var(--accent);
  transition: width var(--duration) var(--ease);
  transform: translateX(-50%);
}
.cc-nav__links a:hover { color: var(--text-light); }
.cc-nav__links a:hover::after { width: 100%; }
.cc-nav__social {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}
.cc-nav__social a {
  color: var(--muted);
  transition: color var(--duration-fast) var(--ease);
}
.cc-nav__social a:hover { color: var(--accent); }
.cc-nav__social svg { width: 16px; height: 16px; }

/* === MOBILE BOTTOM TAB BAR === */
.cc-mobile-nav {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--bg-dark);
  z-index: var(--z-nav);
  padding: 8px 0 calc(8px + env(safe-area-inset-bottom));
  border-top: 1px solid var(--border-light);
}
.cc-mobile-nav__inner {
  display: flex;
  justify-content: space-around;
  align-items: center;
}
.cc-mobile-nav a {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  color: var(--muted);
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  transition: color var(--duration-fast) var(--ease);
  padding: 4px 8px;
}
.cc-mobile-nav a:hover,
.cc-mobile-nav a.active { color: var(--accent); }
.cc-mobile-nav svg { width: 20px; height: 20px; }

/* === MAIN CONTENT OFFSET === */
.cc-main {
  margin-left: var(--nav-w);
  padding-top: 36px; /* demo banner height */
}

/* === HERO === */
.cc-hero {
  position: relative;
  height: 100vh;
  height: 100svh;
  min-height: 600px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  overflow: hidden;
  background: var(--bg-dark);
}
.cc-hero__bg {
  position: absolute;
  inset: 0;
  z-index: 1;
}
.cc-hero__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.45;
}
.cc-hero__content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 0 24px;
}
.cc-hero__title {
  font-family: var(--font-display);
  font-size: clamp(60px, 10vw, 180px);
  color: var(--text-light);
  line-height: 0.9;
  letter-spacing: 0.06em;
  margin-bottom: 40px;
  text-shadow: 0 4px 40px rgba(0,0,0,0.3);
}
.cc-hero__cta {
  display: inline-block;
  padding: 16px 48px;
  background: var(--accent);
  color: var(--bg-dark);
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  border-radius: 50px;
  transition: all var(--duration) var(--ease);
}
.cc-hero__cta:hover {
  background: var(--text-light);
  color: var(--bg-dark);
  transform: scale(1.05);
}

/* === SECTION UTILITIES === */
.cc-section {
  padding: var(--section-pad) 0;
}
.cc-section--dark {
  background: var(--bg-dark);
  color: var(--text-light);
}
.cc-section__header {
  text-align: center;
  margin-bottom: 60px;
  padding: 0 24px;
}
.cc-section__label {
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 16px;
  display: block;
}
.cc-section__title {
  font-size: clamp(36px, 5vw, 72px);
}
.cc-section--dark .cc-section__title { color: var(--text-light); }

/* === SERVICES (Horizontal Scroll) === */
.cc-services__scroll {
  display: flex;
  gap: var(--gap);
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  padding: 0 40px 20px;
  scrollbar-width: none;
}
.cc-services__scroll::-webkit-scrollbar { display: none; }
.cc-service-card {
  flex: 0 0 280px;
  scroll-snap-align: start;
  background: var(--card-bg);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform var(--duration) var(--ease);
  box-shadow: var(--shadow-sm);
}
.cc-service-card:hover {
  transform: rotate(-1deg) translateY(-4px);
  box-shadow: var(--shadow-md);
}
.cc-service-card__img {
  height: 320px;
  overflow: hidden;
}
.cc-service-card__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--duration) var(--ease);
}
.cc-service-card:hover .cc-service-card__img img {
  transform: scale(1.05);
}
.cc-service-card__body {
  padding: 24px;
}
.cc-service-card__body h3 {
  font-family: var(--font-display);
  font-size: 22px;
  letter-spacing: 0.08em;
  margin-bottom: 8px;
}
.cc-service-card__body p {
  font-size: 14px;
  color: var(--muted);
  margin-bottom: 12px;
  line-height: 1.5;
}
.cc-service-card__footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.cc-service-card__price {
  font-family: var(--font-display);
  font-size: 28px;
  color: var(--accent);
  letter-spacing: 0.04em;
}
.cc-service-card__book {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text);
  border-bottom: 2px solid var(--accent);
  padding-bottom: 2px;
  transition: color var(--duration-fast) var(--ease);
}
.cc-service-card__book:hover { color: var(--accent); }

/* === ABOUT (Asymmetric overlap) === */
.cc-about {
  position: relative;
  padding: var(--section-pad) 40px;
  max-width: calc(var(--max-w) + 80px);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  align-items: center;
  min-height: 500px;
}
.cc-about__card {
  position: relative;
  z-index: 2;
  background: var(--card-bg);
  padding: 48px;
  box-shadow: var(--shadow-lg);
  margin-right: -80px;
}
.cc-about__label {
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 16px;
  display: block;
}
.cc-about__title {
  font-size: clamp(32px, 4vw, 56px);
  margin-bottom: 20px;
}
.cc-about__body {
  font-size: 15px;
  color: var(--muted);
  line-height: 1.8;
  margin-bottom: 16px;
}
.cc-about__highlight {
  font-family: var(--font-display);
  font-size: 24px;
  color: var(--accent);
  margin-top: 24px;
  letter-spacing: 0.06em;
}
.cc-about__image {
  position: relative;
  z-index: 1;
  height: 100%;
  min-height: 500px;
  overflow: hidden;
}
.cc-about__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* === GALLERY (Masonry) === */
.cc-gallery__grid {
  column-count: 3;
  column-gap: var(--gap);
  padding: 0 40px;
  max-width: calc(var(--max-w) + 80px);
  margin: 0 auto;
}
.cc-gallery__item {
  break-inside: avoid;
  margin-bottom: var(--gap);
  position: relative;
  overflow: hidden;
  cursor: pointer;
}
.cc-gallery__item img {
  width: 100%;
  display: block;
  transition: transform var(--duration) var(--ease);
}
.cc-gallery__item:hover img { transform: scale(1.04); }
.cc-gallery__overlay {
  position: absolute;
  inset: 0;
  background: var(--overlay);
  display: flex;
  align-items: flex-end;
  padding: 20px;
  opacity: 0;
  transition: opacity var(--duration) var(--ease);
}
.cc-gallery__item:hover .cc-gallery__overlay { opacity: 1; }
.cc-gallery__overlay span {
  font-family: var(--font-display);
  font-size: 18px;
  color: var(--text-light);
  letter-spacing: 0.1em;
}

/* === STYLISTS (Horizontal Scroll) === */
.cc-team__scroll {
  display: flex;
  gap: 40px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  padding: 0 40px 20px;
  scrollbar-width: none;
}
.cc-team__scroll::-webkit-scrollbar { display: none; }
.cc-team__member {
  flex: 0 0 220px;
  scroll-snap-align: center;
  text-align: center;
  transition: transform var(--duration) var(--ease);
}
.cc-team__member:hover { transform: translateY(-6px); }
.cc-team__photo {
  width: 180px;
  height: 180px;
  border-radius: 50%;
  overflow: hidden;
  margin: 0 auto 20px;
  border: 3px solid var(--border-light);
}
.cc-team__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.cc-team__member h3 {
  font-family: var(--font-display);
  font-size: 22px;
  color: var(--text-light);
  letter-spacing: 0.08em;
  margin-bottom: 4px;
}
.cc-team__member span {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 12px;
}
.cc-team__member a {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--muted);
  border-bottom: 1px solid var(--accent);
  padding-bottom: 2px;
  transition: color var(--duration-fast) var(--ease);
}
.cc-team__member a:hover { color: var(--text-light); }

/* === TESTIMONIALS (Marquee) === */
.cc-testimonials {
  overflow: hidden;
  padding: var(--section-pad) 0;
}
.cc-marquee {
  overflow: hidden;
}
.cc-marquee--right {
  margin-top: var(--gap);
}
.cc-marquee__track {
  display: flex;
  gap: var(--gap);
  width: max-content;
  animation: marquee-scroll 40s linear infinite;
}
.cc-marquee--right .cc-marquee__track {
  animation-name: marquee-scroll-reverse;
}
.cc-marquee__track:hover { animation-play-state: paused; }

@keyframes marquee-scroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}
@keyframes marquee-scroll-reverse {
  0% { transform: translateX(-50%); }
  100% { transform: translateX(0); }
}

.cc-review-card {
  flex: 0 0 360px;
  background: var(--card-bg);
  padding: 28px;
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}
.cc-review-card__stars {
  color: var(--accent);
  font-size: 14px;
  letter-spacing: 2px;
  margin-bottom: 12px;
}
.cc-review-card p {
  font-size: 14px;
  line-height: 1.7;
  color: var(--text);
  margin-bottom: 16px;
  font-style: italic;
}
.cc-review-card cite {
  font-family: var(--font-display);
  font-size: 16px;
  letter-spacing: 0.08em;
  color: var(--accent);
}

/* === CONTACT (Split Screen) === */
.cc-contact {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 600px;
}
.cc-contact__hours {
  background: var(--bg-dark);
  color: var(--text-light);
  padding: 80px 60px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.cc-contact__hours .cc-section-title {
  color: var(--text-light);
  margin-bottom: 32px;
}
.cc-contact__hours-list {
  margin-bottom: 32px;
}
.cc-contact__hours-list div {
  display: flex;
  justify-content: space-between;
  padding: 10px 0;
  border-bottom: 1px solid var(--border-light);
  font-size: 15px;
  color: var(--muted);
}
.cc-contact__hours-list div span:first-child {
  font-weight: 600;
  color: var(--text-light);
}
.cc-contact__info {
  margin-top: 24px;
}
.cc-contact__info a {
  display: block;
  font-size: 20px;
  font-weight: 700;
  font-family: var(--font-display);
  letter-spacing: 0.06em;
  color: var(--accent);
  margin-bottom: 12px;
}
.cc-contact__info p {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.6;
}

.cc-contact__form-wrap {
  background: var(--bg);
  padding: 80px 60px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.cc-contact__form-wrap .cc-section-title {
  margin-bottom: 32px;
}
.cc-contact__form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.cc-contact__form input,
.cc-contact__form select {
  width: 100%;
  padding: 14px 16px;
  border: 1px solid var(--border);
  background: var(--card-bg);
  font-family: var(--font-body);
  font-size: 14px;
  color: var(--text);
  border-radius: var(--radius);
  transition: border-color var(--duration-fast) var(--ease);
  -webkit-appearance: none;
  appearance: none;
}
.cc-contact__form input:focus,
.cc-contact__form select:focus {
  outline: none;
  border-color: var(--accent);
}
.cc-btn {
  display: inline-block;
  padding: 16px 48px;
  background: var(--bg-dark);
  color: var(--text-light);
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  border: none;
  border-radius: var(--radius);
  cursor: pointer;
  transition: all var(--duration) var(--ease);
  margin-top: 8px;
}
.cc-btn:hover {
  background: var(--accent);
  color: var(--bg-dark);
}

/* === FOOTER === */
.cc-footer {
  background: var(--bg-dark);
  padding: 32px 40px;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 40px;
  border-top: 1px solid var(--border-light);
}
.cc-footer__logo {
  font-family: var(--font-display);
  font-size: 20px;
  color: var(--accent);
  letter-spacing: 0.1em;
}
.cc-footer__social {
  display: flex;
  gap: 16px;
  align-items: center;
}
.cc-footer__social a {
  color: var(--muted);
  transition: color var(--duration-fast) var(--ease);
}
.cc-footer__social a:hover { color: var(--accent); }
.cc-footer__social svg { width: 16px; height: 16px; }
.cc-footer__copy {
  font-size: 12px;
  color: var(--muted);
}

/* ============================================================
   RESPONSIVE
   ============================================================ */

@media (max-width: 1024px) {
  .cc-about {
    grid-template-columns: 1fr;
  }
  .cc-about__card {
    margin-right: 0;
    order: 2;
  }
  .cc-about__image {
    min-height: 350px;
    order: 1;
  }
  .cc-gallery__grid { column-count: 2; }
}

@media (max-width: 768px) {
  /* Hide side nav, show bottom nav */
  .cc-nav { display: none; }
  .cc-mobile-nav { display: block; }
  .cc-main {
    margin-left: 0;
    padding-bottom: 72px; /* bottom nav clearance */
  }

  .cc-hero { min-height: 100svh; }
  .cc-hero__title { font-size: clamp(48px, 14vw, 100px); }

  .cc-service-card { flex: 0 0 240px; }
  .cc-service-card__img { height: 260px; }

  .cc-about { padding: var(--section-pad) 20px; }
  .cc-about__card { padding: 32px 24px; }

  .cc-gallery__grid {
    column-count: 2;
    padding: 0 20px;
  }

  .cc-team__member { flex: 0 0 180px; }
  .cc-team__photo { width: 140px; height: 140px; }

  .cc-review-card { flex: 0 0 280px; padding: 20px; }

  .cc-contact {
    grid-template-columns: 1fr;
  }
  .cc-contact__hours { padding: 60px 24px; }
  .cc-contact__form-wrap { padding: 60px 24px; }
  /* form row responsive handled by flex gap */

  .cc-footer {
    flex-direction: column;
    gap: 16px;
    text-align: center;
    padding: 24px 20px;
  }
}

@media (max-width: 480px) {
  .cc-gallery__grid { column-count: 1; }
  .cc-hero__title { font-size: clamp(40px, 16vw, 80px); }
  .cc-service-card { flex: 0 0 220px; }
}

/* === SCROLL HINT === */
.cc-scroll-hint {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 40px;
  margin-bottom: 16px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.cc-scroll-hint svg { width: 16px; height: 16px; }

/* Dark section scroll hint */
.cc-section--dark .cc-scroll-hint { color: var(--muted); }

/* === CTA BANNER === */
.cc-cta-bar {
  background: var(--accent);
  text-align: center;
  padding: 60px 24px;
}
.cc-cta-bar__title {
  font-size: clamp(32px, 4vw, 56px);
  color: var(--bg-dark);
  margin-bottom: 24px;
}
.cc-cta-bar__btn {
  display: inline-block;
  padding: 16px 48px;
  background: var(--bg-dark);
  color: var(--text-light);
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  border-radius: 50px;
  transition: all var(--duration) var(--ease);
}
.cc-cta-bar__btn:hover {
  background: var(--card-bg);
  color: var(--bg-dark);
  transform: scale(1.05);
}

/* === SKIP LINK / A11Y === */
.cc-skip-link {
  position: absolute;
  top: -100%;
  left: 50%;
  transform: translateX(-50%);
  background: var(--accent);
  color: var(--bg-dark);
  padding: 12px 24px;
  font-weight: 700;
  z-index: 9999;
  font-size: 14px;
}
.cc-skip-link:focus { top: 8px; }

/* === PRINT === */
@media print {
  .cc-nav, .cc-mobile-nav, .cc-demo-banner, .cc-cta-bar { display: none; }
  .cc-main { margin-left: 0; }
  .cc-hero { min-height: auto; height: auto; padding: 40px; }
}

/* ── Loader ─────────────────────────────────────────────── */
.loader {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: var(--bg-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 16px;
  transition: opacity 0.8s var(--ease), visibility 0.8s;
}
.loader.done {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}
.loader-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.25rem;
}
.loader-icon {
  width: 64px;
  height: 64px;
}
.loader-draw {
  stroke-dasharray: 200;
  stroke-dashoffset: 200;
  animation: drawPath 1.4s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  fill: none;
}
.loader-draw-2 { animation-delay: 0.2s; }
.loader-draw-3 { animation-delay: 0.4s; }
@keyframes drawPath {
  to { stroke-dashoffset: 0; }
}
.loader-text {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 400;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--accent);
  opacity: 0;
  animation: loaderFade 0.6s ease 0.8s forwards;
}
@keyframes loaderFade { to { opacity: 1; } }

/* ── Scroll Progress ────────────────────────────────────── */
.scroll-progress {
  position: fixed;
  top: 0;
  left: var(--nav-w);
  right: 0;
  height: 2px;
  background: var(--accent);
  z-index: 10000;
  width: 0;
}

/* ── Scroll Animations ──────────────────────────────────── */
[data-animate] {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.6s var(--ease), transform 0.6s var(--ease);
}
[data-animate].visible {
  opacity: 1;
  transform: translateY(0);
}

a:focus-visible, button:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}
