:root {
  --bg: #03060b;
  --card: #10141b;
  --border: rgba(255, 255, 255, 0.15);
  --text: #f2f4f8;
  --muted: rgba(210, 214, 222, 0.75);
  --accent: #c0c8d4;
  --accent-dark: #8f99a7;
  --accent-glow: rgba(192, 200, 212, 0.25);
  --accent-light: #dbe1ea;
  --accent-outline: rgba(255, 255, 255, 0.55);
  --gold: #bd9357;
}

html {
  scroll-behavior: smooth;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: radial-gradient(circle at top, rgba(255, 255, 255, 0.02), transparent 45%), var(--bg);
  color: var(--text);
  font-family: 'Montserrat', 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  line-height: 1.65;
  text-align: justify;
  scroll-behavior: smooth;
}

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

.eyebrow {
  letter-spacing: 0.25em;
  text-transform: uppercase;
  font-size: 0.75rem;
  color: var(--accent);
}

h1, h2, h3 {
  font-family: 'Playfair Display', serif;
  margin-top: 0;
}

p {
  color: var(--muted);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.85rem 1.6rem;
  border-radius: 999px;
  font-weight: 600;
  text-decoration: none;
  border: 1px solid transparent;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.35);
}

.btn--primary {
  background: linear-gradient(135deg, var(--accent), var(--accent-dark));
  color: #050608;
  box-shadow: 0 0 20px rgba(192, 200, 212, 0.3);
}

.btn--outline {
  border-color: var(--accent);
  color: var(--text);
}

.btn--ghost {
  color: var(--muted);
  border-color: rgba(255, 255, 255, 0.2);
}

.hero {
  position: relative;
  min-height: 90vh;
  padding: 3.5rem clamp(1.5rem, 6vw, 5rem) 4rem;
  background: url('./images/hero-barber.jpg') center 18%/cover no-repeat;
  display: flex;
  flex-direction: column;
  box-shadow: inset 0 0 120px rgba(0, 0, 0, 0.75);
}

.hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(3, 6, 11, 0.95), rgba(3, 6, 11, 0.65));
}

.hero__nav,
.hero__content {
  position: relative;
  z-index: 1;
}

.hero__nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 4rem;
}

.logo {
  font-family: 'Playfair Display', serif;
  font-size: 1.2rem;
  letter-spacing: 0.45em;
}

.logo span {
  display: block;
  font-size: 0.65rem;
  letter-spacing: 0.3em;
  color: var(--accent);
  text-shadow: 0 0 12px var(--accent-glow);
}

.hero__content {
  max-width: 700px;
  margin-top: auto;
}

.hero__content h1 {
  font-size: clamp(2.4rem, 5vw, 3.8rem);
  margin-bottom: 1rem;
}

.hero__content .lead {
  font-size: 1.1rem;
  margin-bottom: 2rem;
}

.hero__actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  align-items: center;
}

.section {
  padding: clamp(3rem, 8vw, 5rem) clamp(1.5rem, 6vw, 5rem);
}

.section--story {
  background: var(--bg);
}

.section__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: clamp(2rem, 5vw, 3.5rem);
  align-items: center;
}

.story__image {
  position: relative;
}

.story__image::before {
  content: '';
  position: absolute;
  inset: -20px;
  background: url('./images/story-blur.jpg') center/cover no-repeat;
  opacity: 0.5;
  z-index: 0;
}

.story__image .image__frame {
  position: relative;
  border: none;
  padding: 0;
  background: none;
  box-shadow: none;
  overflow: hidden;
  z-index: 1;
}

.story__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.95;
}

.story__text h2 {
  text-align: left;
}

.story__cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
  margin-top: 1.5rem;
}

.story__cards article {
  border: 1px solid rgba(255, 255, 255, 0.12);
  padding: 1.25rem;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.03);
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.35);
}

.section--dark {
  background: rgba(3, 6, 11, 0.95);
  position: relative;
  overflow: hidden;
}

.section__header {
  text-align: center;
  margin-bottom: 3rem;
}

.services__grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 1.25rem;
}

.services__grid article {
  border: 1px solid rgba(255, 255, 255, 0.15);
  padding: 1.6rem;
  border-radius: 18px;
  background: linear-gradient(145deg, rgba(16, 20, 27, 0.95), rgba(6, 8, 13, 0.95));
  min-height: 200px;
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.4);
  text-align: left;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.services__grid article:hover {
  transform: translateY(-4px);
  border-color: rgba(255, 255, 255, 0.4);
  box-shadow: 0 22px 50px rgba(0, 0, 0, 0.55), 0 0 0 1px rgba(255, 255, 255, 0.2);
}

.price {
  display: block;
  margin-top: 1rem;
  font-weight: 600;
  color: var(--gold);
}

.section--gallery {
  background: var(--bg);
}

.booking__info {
  list-style: none;
  padding: 0;
  margin: 1rem 0 2rem;
}

.booking__info li {
  margin-bottom: 0.5rem;
}

.booking__card {
  border: 1px solid var(--border);
  padding: 1.5rem;
  border-radius: 16px;
  background: var(--card);
}

.map iframe {
  width: 100%;
  border: 0;
  height: 240px;
  border-radius: 12px;
}

.footer {
  padding: 2rem clamp(1.5rem, 6vw, 5rem);
  border-top: 1px solid var(--border);
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
  align-items: center;
}

.footer__links {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.footer__links a {
  color: var(--muted);
  text-decoration: none;
}

.footer__copy {
  font-size: 0.85rem;
  color: var(--muted);
}

@media (max-width: 1024px) {
  .services__grid {
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  }
}

@media (max-width: 720px) {
  body {
    text-align: center;
  }

  p {
    text-align: center;
  }

  h1, h2, h3 {
    text-align: center;
  }

  .eyebrow {
    text-align: center;
    display: block;
  }

  .story__text h2 {
    text-align: center;
  }

  .story__text > p {
    text-align: center;
  }

  .hero {
    min-height: 100svh;
    padding-top: 1.5rem;
    padding-bottom: 2rem;
  }

  .hero__nav {
    flex-direction: column;
    gap: 0.5rem;
    align-items: center;
    margin-bottom: 1rem;
  }

  .nav__cta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    justify-content: center;
  }

  .hero__content {
    text-align: center;
    margin-top: 0 !important;
    display: flex;
    flex-direction: column;
  }

  .hero__address {
    display: block;
  }

  .hero-title-box {
    min-height: 0 !important;
    height: auto !important;
  }

  .hero__content h1 {
    font-size: clamp(2.2rem, 7vw, 2.8rem);
    margin-bottom: 0.75rem;
    line-height: 1.25;
  }

  .hero__content .lead {
    font-size: 0.95rem;
    margin-top: auto;
    margin-bottom: 1.25rem;
  }

  .hero__actions {
    flex-direction: column;
    align-items: center;
    gap: 0.6rem;
  }

  .hero__actions .btn {
    width: auto;
    min-width: 160px;
    text-align: center;
    justify-content: center;
    padding: 0.75rem 1.8rem;
  }

  .booking__info {
    text-align: center;
  }

  .services__grid article {
    text-align: center;
  }

  .booking__card {
    order: -1;
  }

  .carousel__track img {
    flex: 0 0 calc((100% - 2rem) / 2.2);
    height: 180px;
  }

  .story__image--blank {
    display: none;
  }

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

  .footer {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .footer__links {
    justify-content: center;
  }
}

@media (max-width: 480px) {
  .services__grid {
    grid-template-columns: 1fr;
  }

  .carousel__track img {
    flex: 0 0 calc(100% - 2rem);
    height: 200px;
  }

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


.carousel {
  overflow: hidden;
  mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
}
.carousel__track {
  display: flex;
  gap: 1rem;
  will-change: transform;
}
.carousel__track img {
  flex: 0 0 calc((100% - 4rem) / 5);
  cursor: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none'%3E%3Ccircle cx='10' cy='10' r='7' stroke='%23ffffff' stroke-width='2'/%3E%3Cline x1='15' y1='15' x2='21' y2='21' stroke='%23ffffff' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E" ) 12 12, zoom-in;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  height: 220px;
  object-fit: cover;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.35);
  transition: opacity 0.3s ease, transform 0.3s ease;
}
.carousel__track--dim img { opacity: 0.2; }
.carousel__track img.carousel__img--active {
  opacity: 1;
  transform: scale(1.02);
}
.carousel-modal {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.8);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 999;
}
.carousel-modal.active { display: flex; }
.carousel-modal__inner img {
  max-width: 80vw;
  max-height: 80vh;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.7);
}

.booking__info strong, .booking__info .hours { color: var(--text); }
.booking__info .hours--value { color: var(--gold); }
.booking__info .hours--value a,
.booking__info .hours--value a:visited,
.booking__info a.hours--value,
.booking__info a.hours--value:visited {
  color: var(--gold);
  text-decoration: none;
}

.btn--primary:hover {
  background: linear-gradient(135deg, #ffffff, #dfe6f2);
  color: #03060b;
}
.btn--ghost:hover {
  color: var(--text);
}

.btn--ghost:hover, .btn--outline:hover {
  border-color: var(--accent-outline);
  box-shadow: 0 0 0 1px var(--accent-outline), 0 0 12px rgba(255, 255, 255, 0.15);
}


.btn--icon.btn--ghost:hover {
  box-shadow: none;
  border-color: rgba(255,255,255,0.2);
}


.eyebrow--gold { color: var(--gold); }
.gold-text { color: var(--gold); }
.footer__copy--gold { color: var(--muted); }
.footer__copy--gold .gold-text { color: var(--gold); }
.footer__copy-year { color: var(--muted); }

.story__image--blank {
  min-height: 465px;
}


.hero-booking--sticky {
  transition: box-shadow 0.4s ease, background 0.4s ease;
  position: fixed;
  overflow: visible;
  right: clamp(2rem, 4vw, 3rem);
  bottom: clamp(2.5rem, 5vw, 4rem);
  background: linear-gradient(135deg, var(--accent-light), var(--accent));
  color: #03060b;
  padding: 0.9rem 1.8rem;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  border-color: transparent;
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.45);
  animation: ctaGlow 8s ease-in-out infinite;
  z-index: 999;
}
.hero-booking--sticky:hover {
  box-shadow: 0 25px 55px rgba(0, 0, 0, 0.5);
  background: linear-gradient(135deg, #ffffff, #dfe6f2);
  color: #03060b;
}
@media (max-width: 640px) {
  .hero-booking--sticky { bottom: 1rem; right: 1rem; padding: 0.75rem 1.2rem; }
}

.hero-booking--sticky span { white-space: nowrap; position: relative; z-index: 1; }

@keyframes ctaGlow {
  0%, 100% { box-shadow: 0 18px 45px rgba(0, 0, 0, 0.4), 0 0 0 rgba(255,255,255,0); }
  50% { box-shadow: 0 18px 45px rgba(0, 0, 0, 0.35), 0 0 20px rgba(255, 255, 255, 0.25); }
}

.hero-booking--sticky::after, .hero-booking--sticky::before {
  content: "";
  position: absolute;
  inset: -8px;
  border-radius: 999px;
  opacity: 0;
  pointer-events: none;
}
.hero-booking--sticky::after {
  border: 1px solid rgba(255, 255, 255, 0.35);
  animation: sonar 3s ease-out infinite;
}
.hero-booking--sticky::before {
  box-shadow: 0 0 25px rgba(255,255,255,0.25);
  animation: sonar 3s 1.5s ease-out infinite;
}
@keyframes sonar {
  0% { transform: scale(1); opacity: 0.45; }
  80% { transform: scale(1.7); opacity: 0; }
  100% { transform: scale(1.8); opacity: 0; }
}

.hero-line {
  display: block;
  min-height: 1.3em;
  overflow: hidden;
  border-right: 2px solid transparent;
}
.hero-line.typing {
  border-right-color: rgba(255,255,255,0.85);
  animation: cursorBlink 0.7s steps(1) infinite;
}
.hero-line.done {
  border-right-color: transparent;
  animation: none;
}
@keyframes cursorBlink {
  0%, 100% { border-right-color: transparent; }
  50% { border-right-color: rgba(255,255,255,0.85); }
}

.hero-title-box {
  width: 100%;
  max-width: 700px;
  min-height: 300px;
  position: relative;
}
.hero-title {
  margin: 0;
}
