/* Sebas Perez Barber — barbería en Bahía Blanca
   Dark editorial / street. Palette pulled from the graffiti logo and the
   neon-lime + teal capes in the shop. One accent (lime); WhatsApp green
   is used only on the floating action, as a recognised brand convention. */

:root {
  --bg: #0e1219;
  --bg-2: #141a24;
  --bg-3: #1b232f;
  --ink: #f3f4ef;
  --muted: #9aa6b6;
  --faint: #6c7787;
  --line: rgba(255, 255, 255, 0.10);
  --line-strong: rgba(255, 255, 255, 0.22);
  --accent: #c9f24d;
  --accent-ink: #10140b;
  --wa: #25d366;
  --radius: 3px;
  --pad-x: clamp(1.15rem, 5vw, 4rem);
  --maxw: 1200px;
  --font-display: "Bebas Neue", "Arial Narrow", system-ui, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; height: auto; }
a { color: inherit; }

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 400;
  line-height: 0.94;
  letter-spacing: 0.012em;
  margin: 0;
  text-transform: uppercase;
}

h1 { font-size: clamp(2.7rem, 8.5vw, 6rem); }
h2 { font-size: clamp(2.1rem, 5.4vw, 3.6rem); }
h3 { font-size: 1.22rem; letter-spacing: 0.02em; }

p { margin: 0 0 1rem; }

.kicker {
  font-family: var(--font-body);
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 1rem;
}

.skip-link {
  position: fixed;
  left: 0.5rem;
  top: 0.5rem;
  transform: translateY(-160%);
  background: var(--accent);
  color: var(--accent-ink);
  padding: 0.6rem 1rem;
  font-weight: 600;
  border-radius: var(--radius);
  z-index: 200;
  transition: transform 0.18s ease;
}
.skip-link:focus { transform: translateY(0); }

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

/* ---------- Buttons ---------- */
.btn {
  --btn-bg: transparent;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.85rem 1.4rem;
  font-family: var(--font-body);
  font-size: 0.86rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  text-decoration: none;
  border-radius: var(--radius);
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.18s ease, background-color 0.18s ease, border-color 0.18s ease;
  white-space: nowrap;
}
.btn i { font-size: 1.15em; }
.btn:active { transform: translateY(1px); }

.btn--accent {
  background: var(--accent);
  color: var(--accent-ink);
}
.btn--accent:hover { background: #d8ff63; transform: translateY(-2px); }

.btn--ghost {
  border-color: var(--line-strong);
  color: var(--ink);
}
.btn--ghost:hover { border-color: var(--accent); color: var(--accent); transform: translateY(-2px); }

.btn--lg { padding: 1.05rem 1.9rem; font-size: 0.95rem; }

@media (prefers-reduced-motion: reduce) {
  .btn, .btn:hover, .btn:active { transform: none; }
}

/* ---------- Nav ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(14, 18, 25, 0.72);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid transparent;
  transition: background-color 0.25s ease, border-color 0.25s ease;
}
.nav.scrolled {
  background: rgba(14, 18, 25, 0.94);
  border-bottom-color: var(--line);
}
.nav__inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0.7rem var(--pad-x);
  display: flex;
  align-items: center;
  gap: 1.5rem;
}
.nav__brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
  flex-shrink: 0;
}
.nav__name {
  font-family: var(--font-display);
  font-size: 1.35rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ink);
}
.nav__name em { color: var(--accent); font-style: normal; }
.nav__links {
  display: flex;
  gap: 1.6rem;
  margin-left: auto;
}
.nav__links a {
  text-decoration: none;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  transition: color 0.15s ease;
}
.nav__links a:hover { color: var(--ink); }
.nav__cta { padding: 0.62rem 1.1rem; font-size: 0.78rem; }

@media (max-width: 860px) {
  .nav__links { display: none; }
  .nav__cta { margin-left: auto; }
}
@media (max-width: 560px) {
  .nav__inner { gap: 0.75rem; }
  .nav__name { font-size: 1.15rem; }
  .nav__cta { padding: 0.6rem 0.85rem; font-size: 0.72rem; letter-spacing: 0.02em; }
}
@media (max-width: 360px) {
  .nav__name { display: none; }
}

/* ---------- Hero ---------- */
.hero {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: clamp(2.5rem, 6vw, 5rem) var(--pad-x) clamp(3rem, 7vw, 6rem);
}
.hero__grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
}
.hero__copy { min-width: 0; }
.hero h1 { margin-bottom: 1.4rem; }
.hero__sub {
  color: var(--muted);
  font-size: 1.06rem;
  max-width: 42ch;
  margin-bottom: 2rem;
}
.hero__actions { display: flex; flex-wrap: wrap; gap: 0.85rem; }

.hero__media { position: relative; min-width: 0; }
.hero__media > img:first-child {
  width: 100%;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  aspect-ratio: 4 / 5;
  object-fit: cover;
  filter: contrast(1.04) saturate(1.02);
}
.hero__badge {
  position: absolute;
  left: -28px;
  bottom: -28px;
  width: clamp(84px, 14vw, 128px);
  height: auto;
  border: none;
  filter: drop-shadow(0 10px 24px rgba(0, 0, 0, 0.5));
}

@media (max-width: 820px) {
  .hero__grid { grid-template-columns: 1fr; }
  .hero__media { order: -1; max-width: 460px; }
  .hero__badge { left: auto; right: -18px; bottom: -18px; }
}

/* ---------- Quick band ---------- */
.band {
  background: var(--bg-2);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.band__inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: clamp(1.6rem, 4vw, 2.6rem) var(--pad-x);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
}
.band__item { padding: 0.4rem clamp(0.5rem, 3vw, 2rem); }
.band__item + .band__item { border-left: 1px solid var(--line); }
.band__label {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.55rem;
}
.band__item p { margin: 0; color: var(--muted); font-size: 0.95rem; }

@media (max-width: 840px) {
  .band__inner { grid-template-columns: 1fr; gap: 1.2rem; }
  .band__item { padding: 0; }
  .band__item + .band__item { border-left: none; border-top: 1px solid var(--line); padding-top: 1.2rem; }
}

/* ---------- Section rhythm ---------- */
section.about,
section.services,
section.work,
section.hours {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: clamp(2.75rem, 5vw, 4.5rem) var(--pad-x);
}

/* ---------- About ---------- */
.about__grid {
  display: grid;
  grid-template-columns: 0.8fr 1fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}
.about__photo { margin: 0; }
.about__photo img {
  width: 100%;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: center 28%;
  filter: grayscale(0.12) contrast(1.05);
}
.about__copy h2 { margin-bottom: 1.2rem; }
.about__copy p { color: var(--muted); max-width: 54ch; }
.about__copy .btn { margin-top: 0.6rem; }

@media (max-width: 860px) {
  .about__grid { grid-template-columns: 1fr; }
  .about__photo { max-width: 420px; }
}

/* ---------- Services ---------- */
.services__head { max-width: 60ch; margin-bottom: clamp(2rem, 4vw, 3rem); }
.services__head h2 { margin-bottom: 1rem; }
.services__head p { color: var(--muted); }

.services__grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(0.9rem, 2vw, 1.4rem);
}
.svc {
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(1.5rem, 3vw, 2.2rem);
}
.svc--wide { grid-column: span 2; }
.svc i {
  font-size: 1.7rem;
  color: var(--accent);
  display: block;
  margin-bottom: 0.9rem;
}
.svc h3 { margin-bottom: 0.5rem; }
.svc p { margin: 0; color: var(--muted); font-size: 0.96rem; }

@media (max-width: 680px) {
  .services__grid { grid-template-columns: 1fr; }
  .svc--wide { grid-column: auto; }
}

/* ---------- Work / reels ---------- */
.work__head { text-align: center; max-width: 52ch; margin: 0 auto clamp(2rem, 4vw, 3rem); }
.work__head h2 { margin-bottom: 0.8rem; }
.work__head p { color: var(--muted); margin: 0; }
.work__grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(0.9rem, 2vw, 1.4rem);
}
.reel {
  position: relative;
  display: block;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--bg-2);
  text-decoration: none;
  aspect-ratio: 4 / 5;
}
.reel img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease, filter 0.35s ease;
  filter: brightness(0.82) contrast(1.02);
}
.reel::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 45%, rgba(14, 18, 25, 0.75));
}
.reel__play {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 2;
  display: grid;
  place-items: center;
  width: 60px;
  height: 60px;
  border-radius: 999px;
  background: var(--accent);
  color: var(--accent-ink);
  font-size: 1.5rem;
  transition: transform 0.2s ease;
}
.reel__cap {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 2;
  padding: 0.9rem 1rem;
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink);
}
.reel:hover img { transform: scale(1.04); filter: brightness(0.92) contrast(1.02); }
.reel:hover .reel__play { transform: translate(-50%, -50%) scale(1.08); }
.reel:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

@media (prefers-reduced-motion: reduce) {
  .reel img, .reel:hover img, .reel:hover .reel__play { transform: none; transition: none; }
}
@media (max-width: 620px) {
  .work__grid { grid-template-columns: 1fr; max-width: 360px; margin-inline: auto; }
}
.work__more { text-align: center; margin-top: 2.4rem; }

/* ---------- Hours ---------- */
.hours {
  background:
    linear-gradient(180deg, transparent, rgba(201, 242, 77, 0.03)),
    var(--bg);
}
.hours__grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: clamp(1.5rem, 4vw, 3.5rem);
  align-items: start;
}
.hours__times h2 { margin-bottom: 1.6rem; }
.hours__list { margin: 0; }
.hours__list > div {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.5rem 1.5rem;
  padding: 1rem 0;
  border-bottom: 1px solid var(--line);
}
.hours__list > div:first-child { border-top: 1px solid var(--line); }
.hours__list dt {
  font-weight: 600;
  font-size: 0.82rem;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--muted);
  align-self: center;
}
.hours__list dd {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.5rem;
  letter-spacing: 0.03em;
  color: var(--ink);
  text-align: right;
}
.hours__list dd span {
  color: var(--faint);
  padding: 0 0.25rem;
}
.hours__list .is-off dd { color: var(--faint); }
.hours__note {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 1.5rem;
  color: var(--accent);
  font-weight: 600;
  font-size: 0.95rem;
}

.hours__place {
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(1.6rem, 3vw, 2.2rem);
}
.hours__place h3 { margin-bottom: 0.9rem; }
.hours__addr { color: var(--muted); }
.hours__place .btn { display: flex; justify-content: center; margin-top: 0.7rem; }

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

/* ---------- CTA ---------- */
.cta {
  border-top: 3px solid var(--accent);
  background: var(--bg-2);
}
.cta__inner {
  max-width: 720px;
  margin: 0 auto;
  padding: clamp(3.5rem, 8vw, 6rem) var(--pad-x);
  text-align: center;
}
.cta__inner h2 { margin-bottom: 1rem; }
.cta__inner p { color: var(--muted); margin-bottom: 2rem; }

/* ---------- Footer ---------- */
.foot {
  background: var(--bg);
  border-top: 1px solid var(--line);
  padding: clamp(2.5rem, 6vw, 4rem) var(--pad-x) 6.5rem;
}
.foot__inner {
  max-width: var(--maxw);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 2.5rem;
}
.foot__brand { display: flex; align-items: center; gap: 0.9rem; }
.foot__name {
  font-family: var(--font-display);
  font-size: 1.35rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin: 0;
}
.foot__tag { margin: 0.2rem 0 0; color: var(--faint); font-size: 0.85rem; }
.foot__cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.foot__h {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 0.5rem;
}
.foot__cols p { margin: 0; color: var(--muted); font-size: 0.9rem; }
.foot__cols a { color: var(--muted); text-decoration: none; }
.foot__cols a:hover { color: var(--accent); }
.foot__legal {
  max-width: var(--maxw);
  margin: 2.5rem auto 0;
  padding-top: 1.6rem;
  border-top: 1px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.5rem;
  color: var(--faint);
  font-size: 0.82rem;
}
.foot__legal p { margin: 0; }
.foot__legal a { color: var(--muted); text-decoration: underline; text-underline-offset: 2px; }
.foot__legal a:hover { color: var(--accent); }

@media (max-width: 840px) {
  .foot__inner { grid-template-columns: 1fr; gap: 1.8rem; }
  .foot__cols { grid-template-columns: 1fr 1fr; }
}

/* ---------- Floating WhatsApp ---------- */
.wa-float {
  position: fixed;
  right: clamp(0.9rem, 3vw, 1.6rem);
  bottom: clamp(0.9rem, 3vw, 1.6rem);
  z-index: 120;
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.9rem 1.2rem;
  background: var(--wa);
  color: #05300f;
  font-weight: 700;
  font-size: 0.9rem;
  letter-spacing: 0.02em;
  text-decoration: none;
  border-radius: 999px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.45);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.wa-float i { font-size: 1.4rem; }
.wa-float:hover { transform: translateY(-2px); box-shadow: 0 14px 36px rgba(0, 0, 0, 0.55); }

@media (max-width: 560px) {
  .wa-float span { display: none; }
  .wa-float { padding: 0.95rem; }
  .wa-float i { font-size: 1.6rem; }
}
@media (prefers-reduced-motion: reduce) {
  .wa-float:hover { transform: none; }
}

/* ---------- Reveal on scroll ----------
   Only hidden when JS is running and motion is allowed, so a failed or
   blocked script can never leave a section invisible. */
html.js [data-reveal] {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.6s ease, transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}
html.js [data-reveal].in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html.js [data-reveal] { opacity: 1; transform: none; transition: none; }
}
