/* ==========================================================================
   Style Studio by Chand — Foundation
   Design tokens are injected from theme settings in snippets/css-variables.liquid
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Reset
   -------------------------------------------------------------------------- */
*,
*::before,
*::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-offset, 96px);
}

body {
  margin: 0;
  background: var(--c-offwhite);
  color: var(--c-ink);
  font-family: var(--font-body);
  font-size: var(--fs-body);
  line-height: 1.65;
  font-weight: 400;
  letter-spacing: 0.005em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

body.is-locked { overflow: hidden; }

img, svg, video { display: block; max-width: 100%; }
img { height: auto; }

button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
a { color: inherit; text-decoration: none; }
ul, ol { margin: 0; padding: 0; list-style: none; }
figure { margin: 0; }

:target { scroll-margin-top: var(--header-offset, 96px); }

/* --------------------------------------------------------------------------
   2. Typography
   -------------------------------------------------------------------------- */
h1, h2, h3, h4, h5, h6, .h1, .h2, .h3, .h4, .h5 {
  font-family: var(--font-heading);
  font-weight: var(--fw-heading);
  line-height: var(--lh-heading);
  letter-spacing: var(--ls-heading);
  margin: 0;
  color: inherit;
  text-wrap: balance;
}

.h1, h1 { font-size: var(--fs-h1); }
.h2, h2 { font-size: var(--fs-h2); }
.h3, h3 { font-size: var(--fs-h3); }
.h4, h4 { font-size: var(--fs-h4); }
.h5, h5 { font-size: var(--fs-h5); letter-spacing: 0; }

/* Real emphasis in body copy stays italic. */
em {
  font-style: italic;
}

/* The display accent no longer relies on a serif italic — with Inter it is
   picked out in gold instead. For a slanted accent instead of a coloured one,
   swap the two declarations below for `font-style: italic`. */
.accent-italic {
  font-style: normal;
  color: var(--c-gold);
}

p { margin: 0 0 1.1em; }
p:last-child { margin-bottom: 0; }

.rte > :first-child { margin-top: 0; }
.rte > :last-child { margin-bottom: 0; }
.rte a { border-bottom: 1px solid var(--c-gold); padding-bottom: 1px; }
.rte a:hover { color: var(--c-gold); }
.rte ul { list-style: none; margin: 0 0 1.2em; }
.rte ul li { position: relative; padding-left: 1.35em; margin-bottom: 0.45em; }
.rte ul li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.72em;
  width: 14px;
  height: 1px;
  background: var(--c-gold);
}
.rte ol { list-style: decimal; margin: 0 0 1.2em; padding-left: 1.25em; }
.rte ol li { margin-bottom: 0.45em; }
.rte h2, .rte h3, .rte h4 { margin: 1.6em 0 0.5em; }
.rte img { margin: 2rem 0; border-radius: var(--radius-media); }
.rte blockquote {
  margin: 2rem 0;
  padding-left: 1.6rem;
  border-left: 1px solid var(--c-gold);
  font-family: var(--font-heading);
  font-size: 1.35em;
  font-style: italic;
  line-height: 1.4;
}

/* Eyebrow / kicker */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.85em;
  font-family: var(--font-body);
  font-size: 0.688rem;
  font-weight: 500;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--c-gold);
  margin: 0 0 1.15rem;
  line-height: 1.4;
}
.eyebrow::before {
  content: "";
  width: 28px;
  height: 1px;
  background: currentColor;
  flex: none;
  opacity: 0.8;
}
.eyebrow--center { justify-content: center; }
.eyebrow--center::after {
  content: "";
  width: 28px;
  height: 1px;
  background: currentColor;
  flex: none;
  opacity: 0.8;
}
.eyebrow--plain::before,
.eyebrow--plain::after { display: none; }

.lede {
  font-size: clamp(1rem, 0.5vw + 0.9rem, 1.125rem);
  line-height: 1.75;
  color: var(--c-body-muted);
  max-width: 56ch;
}

.text-muted { color: var(--c-body-muted); }
.text-gold { color: var(--c-gold); }

.overline {
  font-size: 0.688rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  font-weight: 500;
  color: var(--c-body-muted);
}

/* --------------------------------------------------------------------------
   3. Layout
   -------------------------------------------------------------------------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.container--narrow { max-width: 920px; }
.container--wide { max-width: 1680px; }
.container--flush { padding-inline: 0; }

.section {
  padding-block: var(--section-pad);
  position: relative;
}
.section--tight { padding-block: calc(var(--section-pad) * 0.62); }
.section--flush-top { padding-top: 0; }
.section--flush-bottom { padding-bottom: 0; }

/* Section colour schemes */
.scheme-cream { background: var(--c-cream); color: var(--c-ink); }
.scheme-white { background: var(--c-white); color: var(--c-ink); }
.scheme-offwhite { background: var(--c-offwhite); color: var(--c-ink); }
.scheme-ink { background: var(--c-ink); color: var(--c-offwhite); --c-body-muted: rgba(250, 249, 246, 0.62); --c-hairline: rgba(250, 249, 246, 0.16); }
.scheme-ink-soft { background: var(--c-ink-soft); color: var(--c-offwhite); --c-body-muted: rgba(250, 249, 246, 0.62); --c-hairline: rgba(250, 249, 246, 0.16); }

.divider {
  height: 1px;
  background: var(--c-hairline);
  border: 0;
  margin: 0;
}

/* Section header block */
.section-head {
  display: grid;
  gap: 1.25rem;
  margin-bottom: clamp(2.5rem, 4vw, 4rem);
}
.section-head__title { max-width: 22ch; }
.section-head__text { max-width: 58ch; }
.section-head--center {
  justify-items: center;
  text-align: center;
}
.section-head--center .section-head__title,
.section-head--center .section-head__text { max-width: 62ch; }

@media (min-width: 900px) {
  .section-head--split {
    grid-template-columns: minmax(0, 1fr) minmax(0, 0.85fr);
    align-items: end;
    column-gap: clamp(2rem, 5vw, 6rem);
  }
  .section-head--split .section-head__aside {
    grid-column: 2;
    grid-row: 1 / span 3;
    align-self: end;
    padding-bottom: 0.35rem;
  }
}

/* --------------------------------------------------------------------------
   4. Buttons
   -------------------------------------------------------------------------- */
.btn {
  --btn-bg: var(--c-ink);
  --btn-fg: var(--c-white);
  --btn-border: var(--c-ink);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.7em;
  min-height: 52px;
  padding: 0.95em 2.15em;
  background: var(--btn-bg);
  color: var(--btn-fg);
  border: 1px solid var(--btn-border);
  border-radius: var(--radius-btn);
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  line-height: 1;
  text-align: center;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition: background-color 0.35s ease, color 0.35s ease, border-color 0.35s ease, transform 0.35s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }

.btn--primary:hover { --btn-bg: var(--c-gold); --btn-border: var(--c-gold); --btn-fg: var(--c-ink); }

.btn--gold { --btn-bg: var(--c-gold); --btn-border: var(--c-gold); --btn-fg: var(--c-ink); }
.btn--gold:hover { --btn-bg: var(--c-ink); --btn-border: var(--c-ink); --btn-fg: var(--c-white); }

.btn--outline { --btn-bg: transparent; --btn-fg: currentColor; --btn-border: currentColor; }
.btn--outline:hover { --btn-bg: var(--c-ink); --btn-fg: var(--c-white); --btn-border: var(--c-ink); }

.btn--outline-light { --btn-bg: transparent; --btn-fg: var(--c-white); --btn-border: rgba(255, 255, 255, 0.55); }
.btn--outline-light:hover { --btn-bg: var(--c-white); --btn-fg: var(--c-ink); --btn-border: var(--c-white); }

.btn--light { --btn-bg: var(--c-white); --btn-fg: var(--c-ink); --btn-border: var(--c-white); }
.btn--light:hover { --btn-bg: var(--c-gold); --btn-border: var(--c-gold); }

.btn--sm { min-height: 42px; padding: 0.75em 1.5em; font-size: 0.688rem; letter-spacing: 0.16em; }
.btn--block { display: flex; width: 100%; }

.btn-group {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
}
.btn-group--center { justify-content: center; }

/* Text link with animated rule */
.link-underline {
  display: inline-flex;
  align-items: center;
  gap: 0.6em;
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  padding-bottom: 0.45em;
  position: relative;
}
.link-underline::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 1px;
  background: currentColor;
  opacity: 0.35;
  transform-origin: left;
  transition: transform 0.45s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.35s ease;
}
.link-underline:hover::after { opacity: 1; transform: scaleX(1.02); }
.link-underline .icon { width: 14px; height: 14px; transition: transform 0.35s ease; }
.link-underline:hover .icon { transform: translateX(4px); }

/* --------------------------------------------------------------------------
   5. Media
   -------------------------------------------------------------------------- */
.media {
  position: relative;
  display: block;
  overflow: hidden;
  background: var(--c-cream);
  border-radius: var(--radius-media);
}
.media > img,
.media > svg {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.media--1x1 { aspect-ratio: 1 / 1; }
.media--3x4 { aspect-ratio: 3 / 4; }
.media--4x5 { aspect-ratio: 4 / 5; }
.media--2x3 { aspect-ratio: 2 / 3; }
.media--4x3 { aspect-ratio: 4 / 3; }
.media--16x9 { aspect-ratio: 16 / 9; }

.media__zoom { transition: transform 1.1s cubic-bezier(0.2, 0.7, 0.2, 1); }
.has-hover-zoom:hover .media__zoom,
.has-hover-zoom:focus-visible .media__zoom { transform: scale(1.05); }

.media-placeholder {
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  background: linear-gradient(160deg, var(--c-cream), #e8e0d2);
  color: rgba(10, 10, 10, 0.22);
}
.media-placeholder svg { width: 46%; max-width: 120px; height: auto; }

/* --------------------------------------------------------------------------
   6. Filter tabs (services, styles, gallery)
   -------------------------------------------------------------------------- */
.filters {
  display: flex;
  flex-wrap: nowrap;
  gap: 0.4rem;
  overflow-x: auto;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
  padding-bottom: 2px;
  margin-bottom: clamp(2rem, 3vw, 3rem);
}
.filters::-webkit-scrollbar { display: none; }
.filters--center { justify-content: flex-start; }
@media (min-width: 750px) {
  .filters { flex-wrap: wrap; overflow: visible; }
  .filters--center { justify-content: center; }
}

.filter-btn {
  flex: none;
  padding: 0.72em 1.3em;
  border: 1px solid var(--c-hairline);
  border-radius: var(--radius-btn);
  font-size: 0.688rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--c-body-muted);
  background: transparent;
  transition: color 0.3s ease, border-color 0.3s ease, background-color 0.3s ease;
  white-space: nowrap;
}
.filter-btn:hover { color: inherit; border-color: currentColor; }
.filter-btn[aria-pressed="true"],
.filter-btn.is-active {
  background: var(--c-ink);
  border-color: var(--c-ink);
  color: var(--c-white);
}
.scheme-ink .filter-btn[aria-pressed="true"],
.scheme-ink-soft .filter-btn[aria-pressed="true"] {
  background: var(--c-gold);
  border-color: var(--c-gold);
  color: var(--c-ink);
}

.filter-empty {
  display: none;
  padding: 3rem 0;
  text-align: center;
  color: var(--c-body-muted);
}
.filter-empty.is-visible { display: block; }

[data-filter-item][hidden] { display: none !important; }

/* --------------------------------------------------------------------------
   7. Horizontal scroll rail (mobile-first card rows)
   -------------------------------------------------------------------------- */
.rail {
  display: flex;
  gap: 1rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  padding-inline: var(--gutter);
  margin-inline: calc(var(--gutter) * -1);
  padding-bottom: 0.5rem;
}
.rail::-webkit-scrollbar { display: none; }
.rail > * {
  flex: 0 0 72%;
  max-width: 320px;
  scroll-snap-align: start;
}
@media (min-width: 750px) {
  .rail {
    display: grid;
    grid-template-columns: repeat(var(--cols, 3), minmax(0, 1fr));
    gap: clamp(1rem, 2vw, 2rem);
    overflow: visible;
    padding-inline: 0;
    margin-inline: 0;
  }
  .rail > * { flex: none; max-width: none; }
}

.grid {
  display: grid;
  gap: clamp(1.25rem, 2.2vw, 2.25rem);
  grid-template-columns: repeat(var(--cols-mobile, 1), minmax(0, 1fr));
}
@media (min-width: 750px) {
  .grid { grid-template-columns: repeat(var(--cols-tablet, 2), minmax(0, 1fr)); }
}
@media (min-width: 1100px) {
  .grid { grid-template-columns: repeat(var(--cols, 3), minmax(0, 1fr)); }
}

/* --------------------------------------------------------------------------
   8. Accessibility helpers
   -------------------------------------------------------------------------- */
.visually-hidden,
.skip-link:not(:focus) {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: fixed;
  top: 0.75rem;
  left: 0.75rem;
  z-index: 200;
  background: var(--c-ink);
  color: var(--c-white);
  padding: 0.85rem 1.4rem;
  font-size: 0.75rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

:focus-visible {
  outline: 2px solid var(--c-gold);
  outline-offset: 3px;
  border-radius: 1px;
}
.scheme-ink :focus-visible,
.scheme-ink-soft :focus-visible { outline-color: var(--c-gold-soft); }

/* --------------------------------------------------------------------------
   9. Reveal on scroll
   -------------------------------------------------------------------------- */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.9s cubic-bezier(0.2, 0.7, 0.2, 1), transform 0.9s cubic-bezier(0.2, 0.7, 0.2, 1);
  transition-delay: var(--reveal-delay, 0ms);
}
.reveal.is-visible { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
  .reveal { opacity: 1; transform: none; }
}

/* --------------------------------------------------------------------------
   10. Forms
   -------------------------------------------------------------------------- */
.field { display: grid; gap: 0.5rem; margin-bottom: 1.25rem; }
.field label {
  font-size: 0.688rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 500;
  color: var(--c-body-muted);
}
.field input,
.field textarea,
.field select {
  width: 100%;
  padding: 0.95rem 1.1rem;
  background: var(--c-white);
  border: 1px solid var(--c-hairline);
  border-radius: 0;
  font: inherit;
  font-size: 0.95rem;
  color: inherit;
  transition: border-color 0.3s ease;
}
.field textarea { min-height: 150px; resize: vertical; }
.field input:focus,
.field textarea:focus,
.field select:focus { border-color: var(--c-gold); outline: none; }
.field input:focus-visible,
.field textarea:focus-visible { outline: 2px solid var(--c-gold); outline-offset: 2px; }

.form-status {
  padding: 1rem 1.2rem;
  border: 1px solid var(--c-gold);
  background: rgba(200, 155, 60, 0.08);
  margin-bottom: 1.5rem;
  font-size: 0.95rem;
}
.form-status--error { border-color: #a33; background: rgba(170, 51, 51, 0.07); }

/* --------------------------------------------------------------------------
   11. Utility
   -------------------------------------------------------------------------- */
.text-center { text-align: center; }
.no-scrollbar { scrollbar-width: none; }
.no-scrollbar::-webkit-scrollbar { display: none; }
.full-bleed { width: 100vw; margin-left: 50%; transform: translateX(-50%); }
