/* =================================================================
   ELEMENT Barbershop — mobile
   Bauhaus-inspired landing. Mobile-first, fluid, single column.
   ================================================================= */

/* ---------- Design tokens ---------- */
:root {
  --cream:   #F1EFE9;
  --ink:     #111111;
  --blue:    #1B4FD8;
  --red:     #E63329;
  --yellow:  #F5C200;
  --white:   #FFFFFF;
  --dark:    #141414;

  --muted:   #4a4a48;

  --font: "Hanken Grotesk", system-ui, -apple-system, "Segoe UI", sans-serif;

  /* horizontal page padding, fluid */
  --gutter: clamp(1.25rem, 6vw, 1.75rem);

  --radius-lg: 1.5rem;
  --radius-xl: 2rem;
}

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

* { margin: 0; }

html { -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--font);
  color: var(--ink);
  background: #e7e4dc;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

img { height: auto; }

a { color: inherit; text-decoration: none; }

button {
  font: inherit;
  color: inherit;
  border: 0;
  background: none;
  cursor: pointer;
}

ul { list-style: none; padding: 0; }

:focus-visible {
  outline: 3px solid var(--blue);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ---------- Skip link ---------- */
.skip-link {
  position: absolute;
  left: 50%;
  top: -100%;
  transform: translateX(-50%);
  background: var(--ink);
  color: var(--white);
  padding: 0.6rem 1.1rem;
  border-radius: 0 0 0.75rem 0.75rem;
  z-index: 100;
  transition: top 0.2s;
}
.skip-link:focus { top: 0; }

/* ---------- Phone frame ----------
   Caps the layout for a phone-sized column and centres it on
   wider viewports so it always reads as a mobile screen.        */
.phone {
  width: 100%;
  max-width: 30rem;          /* ~480px */
  min-height: 100vh;
  margin-inline: auto;
  padding-inline: var(--gutter);
  padding-bottom: clamp(1.5rem, 6vw, 2.5rem);
  background: var(--cream);
  overflow: clip;            /* keep decorative shapes inside the frame */
  position: relative;
}

/* =================================================================
   HEADER
   ================================================================= */
.header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-block: clamp(1.4rem, 5vw, 2rem) clamp(1rem, 4vw, 1.5rem);
}

.logo {
  display: inline-block;
  width: clamp(10.5rem, 50vw, 13rem);
}

.logo__mark {
  width: 100%;
  height: auto;
}

/* Spread BARBERSHOP edge-to-edge so it matches the wordmark width exactly.
   Lighter weight + smaller caps so it reads as delicate as the logo strokes. */
.logo__word {
  display: flex;
  justify-content: space-between;
  width: 94%;                    /* inset slightly so it sits inside the mark */
  margin: 0.5rem auto 0;
  font-weight: 600;
  text-transform: uppercase;
  font-size: clamp(0.66rem, 2.95vw, 0.82rem);
  line-height: 1;
  color: var(--ink);
}
.logo__word span { display: block; }

/* Hamburger */
.burger {
  flex: none;
  width: clamp(3.1rem, 14vw, 3.6rem);
  aspect-ratio: 1;
  border-radius: 50%;
  background: var(--ink);
  display: grid;
  place-items: center;
  transition: transform 0.2s ease;
}
.burger:active { transform: scale(0.94); }

.burger__lines {
  display: grid;
  gap: 5px;
  width: 42%;
}
.burger__lines span {
  display: block;
  height: 2.5px;
  border-radius: 2px;
  background: var(--white);
  transition: transform 0.28s ease, opacity 0.2s ease;
}

/* open state -> X */
.burger[aria-expanded="true"] .burger__lines span:nth-child(1) {
  transform: translateY(7.5px) rotate(45deg);
}
.burger[aria-expanded="true"] .burger__lines span:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] .burger__lines span:nth-child(3) {
  transform: translateY(-7.5px) rotate(-45deg);
}

/* =================================================================
   MENU (slide-down)
   ================================================================= */
.menu {
  overflow: hidden;
}
.menu[hidden] { display: none; }

.menu__list {
  display: grid;
  gap: 0.25rem;
  padding-block: 0.5rem 1rem;
  animation: menuIn 0.28s ease;
}
@keyframes menuIn {
  from { opacity: 0; transform: translateY(-8px); }
  to   { opacity: 1; transform: translateY(0); }
}

.menu__list a {
  display: block;
  padding: 0.75rem 0.25rem;
  font-size: 1.15rem;
  font-weight: 700;
  border-bottom: 1.5px solid rgba(17, 17, 17, 0.08);
}
.menu__cta {
  margin-top: 0.5rem;
  color: var(--red);
  border-bottom: 0 !important;
}

/* =================================================================
   HERO
   ================================================================= */
.hero { padding-top: clamp(0.5rem, 2vw, 1rem); }

/* Kicker above the headline — location + heritage with a red Bauhaus mark */
.hero__eyebrow {
  display: flex;
  align-items: center;
  gap: 0.7em;
  margin-bottom: clamp(0.7rem, 3vw, 1.1rem);
  font-size: clamp(0.68rem, 3vw, 0.82rem);
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}
.hero__eyebrow-mark {
  flex: none;
  width: 0.62em;
  height: 0.62em;
  background: var(--red);
}

.hero__title {
  font-weight: 900;
  font-size: clamp(2.8rem, 14.5vw, 4rem);
  line-height: 0.95;
  letter-spacing: -0.025em;
  margin-bottom: clamp(1.5rem, 6vw, 2.25rem);
}
.t-red { color: var(--red); }

/* Lower hero: copy column on the left, visual stack on the right */
.hero__body {
  position: relative;
  /* shorter body lifts the figure AND the hours card up together */
  min-height: clamp(14.8rem, 66vw, 20rem);
}

.hero__copy {
  position: relative;
  z-index: 3;
  width: 47%;
}

.hero__lead {
  font-size: clamp(0.92rem, 4.3vw, 1.25rem);
  font-weight: 500;
  line-height: 1.4;
  color: #1f1f1d;
  margin-bottom: clamp(1.1rem, 5vw, 1.7rem);
}

/* Booking button */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.85em;
  font-weight: 800;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  border-radius: 999px;
  white-space: nowrap;
}
.btn--book {
  background: var(--ink);
  color: var(--white);
  padding: 1.12rem clamp(0.7rem, 3.8vw, 2rem);
  font-size: clamp(0.66rem, 3.3vw, 1.1rem);
  box-shadow: 0 14px 26px -14px rgba(17, 17, 17, 0.7);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.btn--book:hover { transform: translateY(-2px); }
.btn--book:active { transform: translateY(0); }
.btn { gap: clamp(0.45rem, 2.3vw, 0.85rem); }
/* arrow sits in a red Bauhaus disc — brand pop, geometric accent */
.btn--book .btn__arrow {
  display: inline-grid;
  place-items: center;
  flex: none;
  width: 1.8em;
  height: 1.8em;
  border-radius: 50%;
  background: var(--red);
  color: var(--white);
  font-size: 0.92em;
  line-height: 1;
}

/* Rating — stacked: large score on top, stars, then review count */
.rating {
  display: grid;
  justify-items: start;
  gap: 0.3rem;
  margin-top: clamp(1.2rem, 5.5vw, 1.85rem);
}
.rating__stars { display: flex; gap: 0.14rem; }
.rating__stars svg {
  width: clamp(1rem, 4.5vw, 1.4rem);
  height: auto;
  fill: var(--yellow);
}
.rating__score {
  font-weight: 800;
  font-size: clamp(1.8rem, 7.8vw, 2.4rem);
  line-height: 0.9;
  letter-spacing: -0.01em;
}
.rating__count {
  font-size: clamp(0.88rem, 3.9vw, 1.05rem);
  font-weight: 500;
  color: var(--muted);
}

/* =================================================================
   HERO — Bauhaus image composition
   -----------------------------------------------------------------
   A circular portrait (cut-out subject) framed by interlocking
   geometric forms. The circle echoes the logo's discs; the subject
   is the focal point without dominating the section.

   Everything is positioned with % + aspect-ratio (no hardcoded px),
   so the whole stack scales proportionally and stays intact from
   320px → 480px.

   Layering (low → high):
     blue disc / red block / yellow half-disc  →  portrait  →  stripes
   ================================================================= */
.hero__visual {
  position: absolute;
  inset: 0 0 0 auto;            /* pin to the right edge of the hero */
  width: 50%;
  z-index: 1;
  overflow: hidden;             /* clips the figure's foot to the frame */
  border-radius: 0 0 16% 16% / 0 0 7% 7%;   /* soft base, no hard shelf */
  transform: translateY(clamp(-1.1rem, -4vw, -0.7rem));  /* lift toward headline */
}

/* Base for every geometric element in the stack */
.shape {
  position: absolute;
  z-index: 1;                    /* background tier by default */
}

/* Blue circle — the anchor. Big, behind the head, nudged left so its
   left edge runs off-frame; the subject pops out and the crown breaks
   above the top. */
.shape--blue {
  width: 86%;
  aspect-ratio: 1;
  left: 5%;
  top: 18%;                      /* lower → the crown pops further above */
  background: var(--blue);
  border-radius: 50%;
  z-index: 1;
}

/* Red bar — clean, tall, architectural; anchors the right edge behind
   the figure and runs most of its height. */
.shape--red {
  width: 11%;
  height: 76%;
  top: 5%;
  right: 0;
  background: var(--red);
  z-index: 1;
}

/* Dot grid — subtle halftone texture filling the empty top-left corner. */
.shape--dots {
  width: 24%;
  height: 16%;
  top: 0;
  left: 0;
  z-index: 1;
  background-image: radial-gradient(var(--ink) 1.15px, transparent 1.3px);
  background-size: 9px 9px;
  background-position: 0 0;
  opacity: 0.8;
}

/* Yellow triangle — small grounding accent, lower band over the cape. */
.shape--yellow {
  width: 24%;
  height: 20%;
  bottom: 11%;
  left: 16%;
  background: var(--yellow);
  clip-path: polygon(0 100%, 100% 100%, 0 0);   /* right triangle */
  z-index: 2;
}

/* -----------------------------------------------------------------
   The figure: cut-out subject. Bottom-anchored, centred in the frame.
   ----------------------------------------------------------------- */
.hero__figure {
  position: absolute;
  bottom: 0;
  left: 52%;
  transform: translateX(-50%);
  width: 82%;                    /* a touch smaller so the circle frames him */
  margin: 0;
  z-index: 3;
}

.hero__cutout {
  position: relative;
  z-index: 1;                    /* in front of its disc */
  display: block;
  width: 100%;
  height: auto;
  transform: scaleX(-1);         /* face left */
  filter: grayscale(1) contrast(1.08);
}

/* =================================================================
   INFO BAR
   ================================================================= */
.info {
  display: flex;
  align-items: center;
  justify-content: space-between;     /* columns size to content, no edge-jam */
  gap: clamp(0.35rem, 1.7vw, 0.9rem);
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: clamp(1.5rem, 6.5vw, 2rem) clamp(1.05rem, 4.2vw, 1.6rem);
  margin-top: clamp(2rem, 9vw, 3rem);
  box-shadow: 0 18px 30px -22px rgba(17, 17, 17, 0.4);
}
.info__item {
  display: flex;
  align-items: center;
  gap: clamp(0.35rem, 1.6vw, 0.7rem);
  flex: 0 1 auto;
  min-width: 0;
}
.info__icon {
  flex: none;
  width: clamp(1.5rem, 7.4vw, 2.7rem);
  aspect-ratio: 1;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: var(--white);
}
.info__icon svg { width: 56%; height: auto; }
.info__icon--blue { background: var(--blue); }
.info__icon--red  { background: var(--red); }

.info__text { display: grid; min-width: 0; line-height: 1.25; }
.info__text strong {
  font-weight: 800;
  font-size: clamp(0.66rem, 3.2vw, 1.06rem);
  white-space: nowrap;
}
.info__text span {
  font-size: clamp(0.6rem, 2.8vw, 0.93rem);
  color: var(--muted);
  white-space: nowrap;
}

/* Location reads as tappable (wired up later) — slim full-height chevron */
.info__item--link { cursor: pointer; }
.info__go {
  flex: none;
  align-self: stretch;                       /* spans the row height */
  width: clamp(0.45rem, 2.1vw, 0.7rem);
  margin-left: clamp(0.2rem, 1.2vw, 0.55rem);
  color: rgba(17, 17, 17, 0.45);
  transition: color 0.15s ease, transform 0.15s ease;
}
.info__go path {
  fill: none;
  stroke: currentColor;
  stroke-width: 2.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.info__item--link:hover .info__go,
.info__item--link:focus-visible .info__go {
  color: var(--red);
  transform: translateX(2px);
}
.info__divider {
  flex: none;
  width: 1.5px;
  align-self: stretch;
  margin-block: 0.2rem;
  background: rgba(17, 17, 17, 0.12);
}

/* =================================================================
   FEATURES
   ================================================================= */
.features {
  background: var(--dark);
  color: var(--white);
  border-radius: var(--radius-xl);
  padding: clamp(2rem, 9vw, 2.75rem) clamp(1rem, 4vw, 1.5rem);
  margin-top: clamp(1.5rem, 6.5vw, 2.1rem);
}
.features__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(0.5rem, 3vw, 1rem);
}
.feature {
  display: grid;
  justify-items: center;
  text-align: center;
  gap: 0.4rem;
}
.feature__icon {
  width: clamp(2.5rem, 12vw, 3.5rem);
  aspect-ratio: 1;
  border-radius: 50%;
  display: grid;
  place-items: center;
  margin-bottom: clamp(0.7rem, 3.5vw, 1.1rem);
}
.feature__icon svg { width: 50%; height: auto; }
.feature__icon--blue   { background: var(--blue);   color: var(--white); }
.feature__icon--red    { background: var(--red);    color: var(--white); }
.feature__icon--yellow { background: var(--yellow); color: var(--ink); }

.feature__title {
  font-size: clamp(0.82rem, 3.8vw, 1rem);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.01em;
  line-height: 1.1;
}
.feature__desc {
  font-size: clamp(0.74rem, 3.4vw, 0.9rem);
  line-height: 1.3;
  color: rgba(255, 255, 255, 0.72);
}

/* =================================================================
   Motion preferences
   ================================================================= */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    transition-duration: 0.001ms !important;
  }
}
