/* BeautyLife – static site styles */
:root {
  --paper: #f5f1f3;
  --paper-2: #ebe3e8;
  --white: #ffffff;
  --ink: #2a2026;
  --mute: #6b5e66;
  --line: #dccfd6;
  --plum: #5b2a45;
  --plum-dark: #451f34;
  --rose: #d9a7bf;

  --serif: "Gilda Display", "Didot", Georgia, serif;
  --sans: "Figtree", system-ui, -apple-system, "Segoe UI", sans-serif;

  --wrap: 1160px;
  --gutter: clamp(16px, 4vw, 40px);
}

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

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

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; }
a:focus-visible, button:focus-visible {
  outline: 2px solid var(--plum);
  outline-offset: 3px;
  border-radius: 4px;
}

h1, h2, h3 { font-family: var(--serif); font-weight: 400; line-height: 1.1; margin: 0; }
h2 { font-size: clamp(2rem, 4vw, 2.75rem); margin-bottom: 1.5rem; }
h3 { font-size: 1.5rem; }
p { margin: 0 0 1em; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }

.skip {
  position: absolute; left: -9999px; top: 8px;
  background: var(--ink); color: var(--white); padding: 8px 14px; z-index: 100;
}
.skip:focus { left: 8px; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 48px; padding: 0 24px;
  background: var(--plum); color: var(--white);
  border: 1px solid var(--plum); border-radius: 999px;
  font: 600 1rem/1 var(--sans); text-decoration: none;
  transition: background-color .15s ease;
}
.btn:hover { background: var(--plum-dark); border-color: var(--plum-dark); }
.btn-ghost { background: transparent; color: var(--plum); }
.btn-ghost:hover { background: var(--white); color: var(--plum-dark); }
.btn-small { min-height: 40px; padding: 0 18px; font-size: .95rem; }

.text-link { color: var(--plum); font-weight: 600; text-underline-offset: 4px; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 10;
  background: color-mix(in srgb, var(--paper) 88%, transparent);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; gap: 24px; height: 64px; }
.wordmark {
  font-family: var(--serif); font-size: 1.6rem; text-decoration: none; letter-spacing: .01em;
}
.wordmark-sm { font-size: 1.15rem; }
nav { margin-left: auto; }
.nav-links { display: flex; gap: 28px; list-style: none; margin: 0; padding: 0; }
.nav-links a { text-decoration: none; color: var(--mute); font-weight: 500; }
.nav-links a:hover { color: var(--ink); }

/* Hero */
.hero { padding: clamp(48px, 8vw, 96px) 0 clamp(56px, 8vw, 104px); overflow: hidden; }
.hero-inner {
  display: grid; grid-template-columns: 1.15fr .85fr; gap: clamp(32px, 6vw, 80px); align-items: center;
}
.hero-place { color: var(--mute); font-weight: 500; margin-bottom: 1.25rem; }
.hero h1 { font-size: clamp(2.6rem, 6.2vw, 4.75rem); letter-spacing: -.01em; margin-bottom: 1.5rem; max-width: 14ch; }
.lede { font-size: 1.15rem; color: var(--mute); max-width: 46ch; margin-bottom: 2rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.today { margin: 1.5rem 0 0; font-weight: 500; display: flex; align-items: center; gap: 10px; }
.today::before {
  content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--plum); flex: none;
}

/* Swatch strands – the colourist's ring, drawn as hanging hair samples */
.swatches {
  display: flex; justify-content: center; align-items: flex-start; gap: clamp(8px, 1.4vw, 16px);
  height: clamp(300px, 42vw, 480px);
  padding-top: 28px;
  position: relative;
}
.swatches::before {
  /* the ring/bar the samples hang from */
  content: ""; position: absolute; top: 14px; left: 4%; right: 4%; height: 6px;
  border-radius: 6px; background: var(--ink); opacity: .85;
}
.swatches span {
  flex: 1; max-width: 56px;
  border-radius: 6px 6px 40% 40% / 6px 6px 18% 18%;
  background: linear-gradient(to bottom, var(--a) 0%, var(--a) 18%, var(--b) 78%, var(--b) 100%);
  transform-origin: top center;
  animation: hang 1.4s cubic-bezier(.2,.7,.2,1) both;
}
.swatches span:nth-child(odd)  { height: 92%; }
.swatches span:nth-child(even) { height: 80%; }
.swatches span:nth-child(3n)   { height: 100%; }
.swatches span:nth-child(1) { animation-delay: .05s; }
.swatches span:nth-child(2) { animation-delay: .12s; }
.swatches span:nth-child(3) { animation-delay: .19s; }
.swatches span:nth-child(4) { animation-delay: .26s; }
.swatches span:nth-child(5) { animation-delay: .33s; }
.swatches span:nth-child(6) { animation-delay: .40s; }
.swatches span:nth-child(7) { animation-delay: .47s; }
@keyframes hang {
  0%   { transform: scaleY(0); }
  70%  { transform: scaleY(1.03); }
  100% { transform: scaleY(1); }
}
@media (prefers-reduced-motion: reduce) { .swatches span { animation: none; } }

/* Sections */
.section { padding: clamp(64px, 9vw, 112px) 0; }
.section-alt { background: var(--white); }
.section-head { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; flex-wrap: wrap; margin-bottom: 1.5rem; }
.section-head h2 { margin-bottom: 0; }

/* Services */
.services {
  display: grid; grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--ink);
}
.service { padding: 28px 28px 8px 0; }
.service + .service { padding-left: 28px; border-left: 1px solid var(--line); }
.service h3 { margin-bottom: .75rem; }
.service p { color: var(--mute); }
.service .who { color: var(--ink); font-weight: 500; font-size: .95rem; }
.note { margin-top: 2rem; color: var(--mute); }

/* Team */
.team {
  display: grid; grid-template-columns: repeat(6, 1fr); gap: 48px 32px;
}
.person { grid-column: span 2; }
.person:nth-child(4) { grid-column: 2 / span 2; }
.photo {
  aspect-ratio: 4 / 5; border-radius: 200px 200px 8px 8px; overflow: hidden;
  background: linear-gradient(160deg, var(--paper-2), var(--rose));
  margin-bottom: 20px;
}
.photo img { width: 100%; height: 100%; object-fit: cover; }
.person h3 { margin-bottom: .25rem; }
.role { color: var(--plum); font-weight: 600; margin-bottom: .75rem; }
.person p:not(.role) { color: var(--mute); font-size: .98rem; }
.person-book { border-left: 2px solid var(--rose); padding-left: 12px; }
.person-book a { color: var(--plum); font-weight: 600; }

/* Gallery */
.gallery {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px;
}
.gallery button {
  display: block; width: 100%; padding: 0; border: 0; cursor: zoom-in;
  aspect-ratio: 1; overflow: hidden; border-radius: 8px;
  background: linear-gradient(160deg, var(--paper-2), var(--rose));
}
.gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.gallery button:hover img { transform: scale(1.04); }

.lightbox {
  border: 0; padding: 0; background: transparent; max-width: 92vw; max-height: 92vh; overflow: visible;
}
.lightbox::backdrop { background: rgba(30, 20, 26, .88); }
.lightbox img { max-width: 92vw; max-height: 86vh; border-radius: 8px; }
.lightbox button {
  position: fixed; width: 48px; height: 48px; border-radius: 50%; border: 0;
  background: var(--white); color: var(--ink); font-size: 28px; line-height: 1; cursor: pointer;
}
.lb-close { top: 16px; right: 16px; }
.lb-prev { left: 16px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 16px; top: 50%; transform: translateY(-50%); }

/* Contact */
.contact { background: var(--plum); color: var(--white); }
.contact-inner { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(32px, 6vw, 72px); align-items: stretch; }
.contact h3 { font-size: 1.25rem; margin: 2rem 0 .75rem; }
.contact a { color: var(--white); }
address { font-style: normal; font-size: 1.1rem; }
.addr { font-family: var(--serif); font-size: 1.6rem; line-height: 1.25; }
.hours { border-collapse: collapse; width: 100%; max-width: 400px; }
.hours th, .hours td { text-align: left; padding: 8px 0; border-bottom: 1px solid rgba(255,255,255,.2); font-weight: 400; }
.hours td { text-align: right; }
.hours tr.is-today th, .hours tr.is-today td { font-weight: 600; color: var(--rose); }
.contact-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 2rem; }
.contact .btn { background: var(--white); color: var(--plum); border-color: var(--white); }
.contact .btn:hover { background: var(--paper-2); }
.contact .btn-ghost { background: transparent; color: var(--white); }
.contact .btn-ghost:hover { background: rgba(255,255,255,.1); }
.contact a:focus-visible { outline-color: var(--white); }
.social { list-style: none; padding: 0; margin: 2rem 0 0; display: flex; gap: 24px; }
.social a { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; font-weight: 500; }
.social a:hover { text-decoration: underline; text-underline-offset: 4px; }
.map { border-radius: 12px; overflow: hidden; min-height: 360px; background: var(--plum-dark); }
.map iframe { width: 100%; height: 100%; min-height: 360px; border: 0; display: block; }

/* Footer */
.site-footer { padding: 28px 0; font-size: .95rem; color: var(--mute); }
.footer-inner { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.footer-inner p { margin: 0; }

/* Responsive */
@media (max-width: 960px) {
  .services { grid-template-columns: repeat(2, 1fr); }
  .service:nth-child(3) { padding-left: 0; border-left: 0; }
  .service:nth-child(n+3) { border-top: 1px solid var(--line); }
  .team { grid-template-columns: repeat(2, 1fr); }
  .person, .person:nth-child(4) { grid-column: auto; }
  .gallery { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 760px) {
  .nav-links { display: none; }
  nav { margin-left: auto; }
  .hero-inner { grid-template-columns: 1fr; }
  .swatches { height: 220px; order: -1; }
  .contact-inner { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  body { font-size: 16px; }
  .services { grid-template-columns: 1fr; }
  .service, .service + .service { padding: 24px 0 4px; border-left: 0; }
  .service + .service { border-top: 1px solid var(--line); }
  .team { grid-template-columns: 1fr; }
  .gallery { grid-template-columns: repeat(2, 1fr); gap: 8px; }
  .hero-actions .btn { width: 100%; }
  .btn-small { padding: 0 14px; }
}
