/* Lina Hair Studio */

@font-face {
  font-family: "Instrument Serif";
  src: url("fonts/instrument-serif-400.woff2") format("woff2");
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Instrument Serif";
  src: url("fonts/instrument-serif-400-italic.woff2") format("woff2");
  font-weight: 400; font-style: italic; font-display: swap;
}
@font-face {
  font-family: "Instrument Sans";
  src: url("fonts/instrument-sans-variable.woff2") format("woff2");
  font-weight: 400 700; font-style: normal; font-display: swap;
}

:root {
  --mirror: #EEF0EF;   /* background */
  --ink: #1E1A1D;      /* text */
  --plum: #6B2D4F;     /* buttons, links */
  --plum-dark: #521F3B;
  --caramel: #C9A27E;  /* decoration only */
  --steel: #9AA3A8;    /* lines */
  --muted: #56505A;
  --ph: #DADDDC;       /* image placeholders */

  --serif: "Instrument Serif", Georgia, serif;
  --sans: "Instrument Sans", system-ui, sans-serif;
  --gutter: clamp(1rem, 4vw, 2.5rem);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; font-family: var(--sans); font-size: 1.0625rem; line-height: 1.6;
  color: var(--ink); background: var(--mirror);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
h1, h2, h3 { font-family: var(--serif); font-weight: 400; line-height: 1.1; margin: 0 0 .5em; }
h2 { font-size: clamp(2.25rem, 5vw, 3.5rem); }
h3 { font-size: 1.75rem; }
p { margin: 0 0 1em; }
a { color: var(--plum); text-underline-offset: .2em; }
a:hover { color: var(--plum-dark); }
:focus-visible { outline: 3px solid var(--plum); outline-offset: 3px; border-radius: 2px; }
.muted { color: var(--muted); font-size: .95rem; }

.skip-link {
  position: absolute; left: 1rem; top: -4rem; z-index: 10;
  background: var(--ink); color: #fff; padding: .6rem 1rem; border-radius: 4px;
}
.skip-link:focus { top: 1rem; color: #fff; }

/* Buttons */
.button {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  min-height: 3rem; padding: .7rem 1.4rem; border-radius: 999px;
  background: var(--plum); color: #fff; border: 2px solid var(--plum);
  font-weight: 600; text-decoration: none; transition: background .2s, color .2s;
}
.button:hover { background: var(--plum-dark); border-color: var(--plum-dark); color: #fff; }
.button--outline { background: transparent; color: var(--plum); }
.button--outline:hover { background: var(--plum); color: #fff; }
.button--small { min-height: 2.5rem; padding: .4rem 1.1rem; }

/* Header */
.site-header {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: 1rem var(--gutter);
}
.logo { display: block; line-height: 0; margin: 0; }
.logo img { display: block; width: auto; height: 44px; }
@media (min-width: 720px) { .logo img { height: 52px; } }
.nav-links { display: none; list-style: none; margin: 0; padding: 0; gap: 2rem; }
.nav-links a { color: var(--ink); text-decoration: none; font-weight: 500; }
.nav-links a:hover { color: var(--plum); text-decoration: underline; }
@media (min-width: 720px) {
  .nav-links { display: flex; }
  .site-header nav { margin-left: auto; margin-right: 1rem; }
}

/* Scroll animation: the section is tall, the canvas stays pinned while you scroll through it */
.sequence { position: relative; height: 400vh; background: var(--plum); }
.sequence.reduced-motion { height: 100vh; }
.sequence.is-empty { height: 300vh; background: linear-gradient(180deg, #6B2D4F 0%, #4A1F37 100%); }
.sequence.is-empty.reduced-motion { height: 100vh; }
.sequence__sticky { position: sticky; top: 0; height: 100vh; overflow: hidden; }
.sequence canvas { display: block; width: 100%; height: 100%; opacity: 0; transition: opacity .6s; }
.sequence.is-ready canvas { opacity: 1; }
/* Dark fade at the bottom so the white text stays readable on the light salon floor */
.sequence__sticky::after {
  content: ""; position: absolute; inset: 45% 0 0 0; pointer-events: none;
  background: linear-gradient(180deg, rgba(30,26,29,0) 0%, rgba(30,26,29,.45) 55%, rgba(30,26,29,.7) 100%);
}
.sequence.is-empty .sequence__sticky::after { display: none; }
.sequence__text { z-index: 1; }
.sequence__placeholder { display: none; }
.sequence.is-empty .sequence__placeholder {
  display: block; position: absolute; top: 1.25rem; left: 50%; transform: translateX(-50%);
  margin: 0; padding: .35rem .9rem; border: 1px dashed rgba(255,255,255,.5); border-radius: 999px;
  color: rgba(255,255,255,.8); font-size: .8rem; white-space: nowrap;
}
.sequence.is-empty canvas { display: none; }

.sequence__text {
  position: absolute; left: 50%; bottom: 14vh; transform: translate(-50%, 1rem);
  width: min(90%, 44rem); text-align: center; color: #fff;
  text-shadow: 0 2px 16px rgba(0,0,0,.45);
  opacity: 0; transition: opacity .5s, transform .5s; pointer-events: none;
  text-wrap: balance;
}
.sequence__text.is-visible { opacity: 1; transform: translate(-50%, 0); }
.sequence.reduced-motion .sequence__text { opacity: 0; }
.sequence.reduced-motion .sequence__text:first-of-type { opacity: 1; transform: translate(-50%, 0); }
.sequence__text h1 { font-size: clamp(3rem, 10vw, 7rem); margin: 0 0 .5rem; }
.sequence__text p { font-size: clamp(1.1rem, 2.5vw, 1.5rem); margin: 0; }
.sequence__text .sequence__big { font-family: var(--serif); font-size: clamp(2rem, 6vw, 4rem); line-height: 1.15; }

/* Sections */
.section { max-width: 72rem; margin: 0 auto; padding: clamp(4rem, 10vw, 7rem) var(--gutter); }
.section + .section { border-top: 1px solid rgba(154,163,168,.45); }
.section-intro { max-width: 38rem; color: var(--muted); }

/* Image placeholders (swap for <img> when the photos arrive) */
.ph {
  display: flex; align-items: center; justify-content: center; text-align: center;
  background: var(--ph); color: #46414A; border-radius: 6px; padding: 1rem;
  font-size: .85rem;
}
.ph--landscape { aspect-ratio: 3 / 2; }
.ph--portrait { aspect-ratio: 2 / 3; }
.ph--square { aspect-ratio: 1 / 1; }

/* Photos */
.photo { width: 100%; height: auto; border-radius: 6px; background: var(--ph); object-fit: cover; }

/* About */
.about { display: grid; gap: 2.5rem; align-items: center; }
@media (min-width: 860px) { .about { grid-template-columns: 1fr 1.1fr; gap: 4rem; } }

/* Services + colour swatches (the memorable element) */
.service-grid { display: grid; gap: 3rem 4rem; margin-top: 3rem; }
@media (min-width: 760px) { .service-grid { grid-template-columns: 1fr 1fr; } }
.service { display: grid; grid-template-columns: auto 1fr; column-gap: 1.5rem; }
.service h3 { grid-column: 2; }
.service .price-list { grid-column: 2; }
.swatch { grid-row: 1 / span 2; display: flex; gap: 3px; height: 9.5rem; padding-top: .3rem; }
.swatch i {
  display: block; width: 9px; height: 100%;
  border-radius: 2px 2px 50% 50% / 2px 2px 14px 14px;
  background: linear-gradient(180deg, var(--c) 0%, var(--c) 70%, color-mix(in srgb, var(--c) 70%, #fff) 100%);
  transform-origin: top center; transition: transform .45s cubic-bezier(.3,.7,.3,1);
}
.swatch i:nth-child(1) { --c: var(--s1); }
.swatch i:nth-child(2) { --c: var(--s2); height: 94%; }
.swatch i:nth-child(3) { --c: var(--s3); height: 88%; }
.swatch i:nth-child(4) { --c: var(--s4); height: 82%; }
.swatch i:nth-child(5) { --c: var(--s5); height: 76%; }
.service:hover .swatch i:nth-child(1) { transform: rotate(9deg); }
.service:hover .swatch i:nth-child(2) { transform: rotate(4.5deg); }
.service:hover .swatch i:nth-child(4) { transform: rotate(-4.5deg); }
.service:hover .swatch i:nth-child(5) { transform: rotate(-9deg); }

.price-list { list-style: none; margin: 0; padding: 0; }
.price-list li {
  display: flex; justify-content: space-between; gap: 1rem;
  padding: .55rem 0; border-bottom: 1px solid rgba(154,163,168,.45);
}
.price-list li span:last-child { white-space: nowrap; font-variant-numeric: tabular-nums; font-weight: 600; }

/* Team */
.team-grid { display: grid; gap: 2.5rem; margin-top: 2.5rem; }
@media (min-width: 720px) { .team-grid { grid-template-columns: repeat(3, 1fr); gap: 2rem; } }
.person .photo { margin-bottom: 1.25rem; }
@media (max-width: 719px) { .person .photo { aspect-ratio: 4 / 5; object-position: 50% 20%; } }
.person h3 { margin-bottom: .1em; }
.person__role { color: var(--plum); font-weight: 600; font-size: .95rem; }

/* Gallery */
.gallery-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: .75rem; margin-top: 2.5rem; }
@media (min-width: 720px) { .gallery-grid { grid-template-columns: repeat(3, 1fr); gap: 1rem; } }

/* Visit */
.visit { display: grid; gap: 3rem; align-items: start; }
@media (min-width: 900px) { .visit { grid-template-columns: 1.1fr 1fr; gap: 4rem; } }
.contact-buttons { display: flex; flex-wrap: wrap; gap: .75rem; margin: 2rem 0 3rem; }
.visit__details { display: grid; gap: 2rem; }
@media (min-width: 560px) { .visit__details { grid-template-columns: 1fr 1fr; } }
.visit__details h3 { font-size: 1.4rem; }
.hours { margin: 0; }
.hours div { display: flex; justify-content: space-between; gap: 1rem; padding: .3rem 0; border-bottom: 1px solid rgba(154,163,168,.45); }
.hours dt { font-weight: 600; }
.hours dd { margin: 0; font-variant-numeric: tabular-nums; }

/* Footer */
.site-footer {
  background: var(--ink); color: #D9D4D8;
  padding: 3rem var(--gutter); display: flex; flex-wrap: wrap; gap: 1.5rem 3rem; align-items: center;
}
.site-footer .logo img { height: 60px; }
.site-footer nav { display: flex; gap: 1.5rem; }
.site-footer a { color: #fff; }
.site-footer a:hover { color: var(--caramel); }
.site-footer :focus-visible { outline-color: var(--caramel); }
.footer-note { flex-basis: 100%; margin: 0; font-size: .85rem; color: #A9A2A8; }

/* Legal pages */
.legal { max-width: 44rem; margin: 0 auto; padding: 3rem var(--gutter) 6rem; }
.legal h1 { font-size: clamp(2.5rem, 7vw, 4rem); }
.legal h2 { font-size: 1.75rem; margin-top: 2.5rem; }
.legal .notice { background: #fff; border-left: 4px solid var(--plum); padding: 1rem 1.25rem; border-radius: 4px; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .sequence canvas, .sequence__text, .swatch i { transition: none; }
  .service:hover .swatch i { transform: none; }
}
