/* Freya Plus Esthetic Centar – presentational site */

:root {
  color-scheme: light;

  --bg: #fcf5f8;
  --surface: #ffffff;
  --blush: #f9ecf1;
  --blush-2: #f2dae3;
  --line: #f0e1e8;

  --rose-soft: #e3a3b1;
  --rose: #b0687a;        /* logo colour */
  --rose-deep: #8e3f57;   /* text-safe accent (AA on white) */
  --rose-deeper: #74304a;

  --ink: #36252c;
  --ink-2: #5d4853;
  --ink-3: #7c6571;

  --display: "Noto Serif Display", Georgia, "Times New Roman", serif;
  --text: "Lora", Georgia, "Times New Roman", serif;

  --radius: 1.25rem;
  --header-h: 4.25rem;
  --shadow-sm: 0 1px 2px rgb(54 37 44 / 0.04);
  --shadow: 0 1px 2px rgb(54 37 44 / 0.04), 0 18px 40px -18px rgb(142 63 87 / 0.22);
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
  --leader: radial-gradient(circle, var(--rose-soft) 0.75px, transparent 1.25px) 0 50% / 6px 3px repeat-x;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 1rem);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--text);
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

a {
  color: inherit;
}

h1,
h2,
h3 {
  margin: 0;
  font-family: var(--display);
  font-weight: 400;
  line-height: 1.1;
  color: var(--ink);
}

p {
  margin: 0;
}

h1,
h2,
h3,
.lede,
.ritual-desc {
  text-wrap: balance;
}

:focus-visible {
  outline: 2px solid var(--rose-deep);
  outline-offset: 3px;
  border-radius: 6px;
}

.wrap {
  width: min(100% - 2rem, 72rem);
  margin-inline: auto;
}

@media (min-width: 40rem) {
  .wrap {
    width: min(100% - 3rem, 72rem);
  }
}

.skip {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 100;
  padding: 0.5rem 1rem;
  border-radius: 999px;
  background: var(--rose-deep);
  color: #fff;
  text-decoration: none;
}

.skip:focus {
  top: 1rem;
}

.num {
  font-family: var(--display);
  font-style: italic;
  font-weight: 300;
  color: var(--rose);
  line-height: 1;
}

small {
  font-size: 0.66em;
  letter-spacing: 0.08em;
  font-weight: 400;
  color: var(--ink-3);
}

/* ------------------------------------------------------------------ header */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  height: var(--header-h);
  border-bottom: 1px solid transparent;
  transition: background-color 0.3s, border-color 0.3s, backdrop-filter 0.3s;
}

.site-header.is-scrolled {
  background: rgb(252 245 248 / 0.86);
  border-bottom-color: var(--line);
  -webkit-backdrop-filter: saturate(1.4) blur(14px);
  backdrop-filter: saturate(1.4) blur(14px);
}

.header-inner {
  height: 100%;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.brand {
  flex: none;
  border-radius: 8px;
}

.brand img {
  width: 4.25rem;
}

.nav {
  display: flex;
  gap: 0.25rem;
  min-width: 0;
  margin-left: auto;
  margin-right: -1rem;
  padding-inline: 1rem;
  overflow-x: auto;
  scrollbar-width: none;
  -webkit-mask-image: linear-gradient(to right, transparent, #000 1rem, #000 calc(100% - 1rem), transparent);
  mask-image: linear-gradient(to right, transparent, #000 1rem, #000 calc(100% - 1rem), transparent);
}

.nav::-webkit-scrollbar {
  display: none;
}

.nav a {
  flex: none;
  padding: 0.45rem 0.9rem;
  border-radius: 999px;
  color: var(--ink-2);
  font-size: 0.95rem;
  text-decoration: none;
  white-space: nowrap;
  transition: background-color 0.2s, color 0.2s;
}

.nav a:hover {
  background: var(--blush);
  color: var(--rose-deep);
}

.nav a[aria-current="true"] {
  background: var(--blush-2);
  color: var(--rose-deep);
}

/* -------------------------------------------------------------------- hero */

.hero {
  position: relative;
  margin-top: calc(-1 * var(--header-h));
  padding: calc(var(--header-h) + 2.5rem) 0 4rem;
  min-height: min(100svh, 54rem);
  display: grid;
  align-items: center;
  text-align: center;
  background:
    radial-gradient(56rem 30rem at 50% 0%, #fff 0%, rgb(255 255 255 / 0) 70%),
    radial-gradient(38rem 26rem at 92% 34%, rgb(227 163 177 / 0.24), transparent 70%),
    radial-gradient(34rem 24rem at 4% 78%, rgb(227 163 177 / 0.18), transparent 70%),
    var(--bg);
  overflow: hidden;
}

.hero-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hero-inner > * {
  animation: rise 1s var(--ease) both;
}

.hero-inner > :nth-child(2) { animation-delay: 0.15s; }
.hero-inner > :nth-child(3) { animation-delay: 0.25s; }
.hero-inner > :nth-child(4) { animation-delay: 0.35s; }
.hero-inner > :nth-child(5) { animation-delay: 0.45s; }

.hero-logo {
  width: min(27rem, 80vw);
  margin-bottom: 2.25rem;
}

.eyebrow {
  margin-bottom: 0.9rem;
  color: var(--rose-deep);
  font-size: 0.78rem;
  letter-spacing: 0.32em;
  text-transform: uppercase;
}

h1 {
  font-size: clamp(2.3rem, 1.5rem + 3.6vw, 4rem);
  font-weight: 300;
  letter-spacing: -0.01em;
}

h1 em {
  color: var(--rose);
  font-style: italic;
}

.lede {
  max-width: 30rem;
  margin-top: 1rem;
  color: var(--ink-2);
  font-size: 1.1rem;
}

.button {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  margin-top: 2.25rem;
  padding: 0.9rem 1.6rem;
  border-radius: 999px;
  background: var(--rose-deep);
  color: #fff;
  font-size: 1rem;
  text-decoration: none;
  box-shadow: 0 10px 24px -12px rgb(142 63 87 / 0.7);
  transition: background-color 0.25s, transform 0.25s var(--ease), box-shadow 0.25s;
}

.button:hover {
  background: var(--rose-deeper);
  transform: translateY(-2px);
  box-shadow: 0 14px 28px -12px rgb(142 63 87 / 0.75);
}

.button svg {
  transition: transform 0.25s var(--ease);
}

.button:hover svg {
  transform: translateY(2px);
}

/* ---------------------------------------------------------------- overview */

.overview {
  padding-bottom: 3rem;
}

.cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
}

.cat-card {
  display: flex;
  flex-direction: column;
  padding: 1.25rem 1.25rem 1.35rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  text-decoration: none;
  transition: transform 0.35s var(--ease), box-shadow 0.35s, border-color 0.35s;
}

.cat-card:hover {
  transform: translateY(-4px);
  border-color: var(--blush-2);
  box-shadow: var(--shadow);
}

.cat-card .num {
  font-size: 1.15rem;
}

.cat-name {
  margin-top: 1.4rem;
  font-family: var(--display);
  font-size: clamp(1.25rem, 1.05rem + 0.9vw, 1.6rem);
  font-weight: 400;
  line-height: 1.15;
}

.cat-meta {
  color: var(--ink-3);
  font-size: 0.85rem;
}

.cat-card .cat-meta {
  margin-top: 0.35rem;
}

.cat-from {
  margin-top: auto;
  padding-top: 0.9rem;
  color: var(--rose-deep);
  font-size: 0.95rem;
  font-variant-numeric: lining-nums;
}

@media (min-width: 56rem) {
  .cards {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1.25rem;
  }

  .cat-card {
    padding: 1.5rem 1.6rem 1.6rem;
  }
}

/* --------------------------------------------------------------- pricelist */

.pricelist {
  padding: 3rem 0 2rem;
}

.pricelist-head {
  text-align: center;
  margin-bottom: 1rem;
}

.framed {
  display: inline-block;
  padding: 0.3em calc(0.8em - 0.16em) 0.3em 0.8em;
  border: 1px solid var(--blush-2);
  color: var(--rose);
  font-size: clamp(1.7rem, 0.8rem + 4vw, 3.6rem);
  font-weight: 300;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  line-height: 1;
}

.pricelist-head p {
  margin-top: 1rem;
  color: var(--ink-3);
  font-size: 0.9rem;
  font-style: italic;
}

.category {
  display: grid;
  gap: 1.25rem;
  padding-block: 2.5rem;
}

.category + .category {
  border-top: 1px solid var(--line);
}

.cat-aside {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  column-gap: 0.75rem;
  row-gap: 0.25rem;
}

.cat-aside .num {
  font-size: 1.4rem;
}

.cat-aside h3 {
  font-size: clamp(1.8rem, 1.4rem + 1.6vw, 2.4rem);
  font-weight: 300;
}

.cat-aside .cat-meta {
  width: 100%;
}

@media (min-width: 56rem) {
  .category {
    grid-template-columns: 15rem minmax(0, 1fr);
    gap: 3rem;
    padding-block: 4rem;
  }

  .cat-aside {
    position: sticky;
    top: calc(var(--header-h) + 2rem);
    align-self: start;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.6rem;
  }

  .cat-aside .num {
    font-size: 3rem;
    color: var(--rose-soft);
  }

  .cat-aside::after {
    content: "";
    width: 2.5rem;
    height: 1px;
    margin-top: 0.6rem;
    background: var(--rose);
  }
}

.items {
  margin: 0;
  padding: 0.5rem 1rem;
  list-style: none;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}

@media (min-width: 40rem) {
  .items {
    padding: 1rem 2.25rem;
  }
}

.item {
  display: grid;
  grid-template-columns: minmax(0, max-content) minmax(1rem, 1fr) auto;
  align-items: baseline;
  column-gap: 0.5rem;
  padding-block: 0.8rem;
}

.name {
  line-height: 1.4;
}

.note {
  display: block;
  color: var(--ink-3);
  font-size: 0.82rem;
  font-style: italic;
}

/* dotted leader; with no text inside it, its baseline is its bottom edge */
.dots {
  height: 3px;
  transform: translateY(-0.3em);
  background: var(--leader);
}

.price {
  color: var(--rose-deep);
  font-variant-numeric: lining-nums tabular-nums;
  text-align: right;
  white-space: nowrap;
}

.prices {
  display: grid;
  grid-template-columns: auto auto;
  align-items: baseline;
  justify-items: end;
  column-gap: 0.6rem;
  row-gap: 0.15rem;
}

.variant {
  color: var(--ink-3);
  font-size: 0.82rem;
  font-style: italic;
}

/* narrow phones: service name on its own line, each variant gets its own leader */
@media (max-width: 24rem) {
  .item:has(.prices) {
    grid-template-columns: minmax(0, 1fr);
  }

  .item:has(.prices) > .dots {
    display: none;
  }

  .prices {
    grid-template-columns: minmax(0, 1fr) auto;
    justify-items: stretch;
    margin-top: 0.3rem;
    padding-left: 0.75rem;
  }

  .variant {
    display: flex;
    align-items: baseline;
    gap: 0.5rem;
  }

  .variant::after {
    content: "";
    flex: 1;
    height: 3px;
    transform: translateY(-0.3em);
    background: var(--leader);
  }
}

@media (min-width: 40rem) {
  .item {
    column-gap: 0.75rem;
  }

  .name {
    font-size: 1.0625rem;
  }
}

/* ----------------------------------------------------------------- rituals */

.rituals {
  position: relative;
  padding: 4.5rem 0 5rem;
  background:
    radial-gradient(40rem 22rem at 85% 0%, rgb(255 255 255 / 0.7), transparent 70%),
    linear-gradient(var(--blush), var(--bg));
  border-top: 1px solid var(--line);
}

.rituals-head {
  text-align: center;
}

.rituals-head .num {
  font-size: 1.6rem;
}

.rituals-head h2 {
  margin-top: 0.5rem;
  font-size: clamp(2.1rem, 1.5rem + 3vw, 3.3rem);
  font-weight: 300;
}

.rituals-head p {
  margin-top: 0.75rem;
  color: var(--ink-2);
  font-style: italic;
}

.ritual-grid {
  display: grid;
  gap: 1rem;
  margin: 2.75rem 0 0;
  padding: 0;
  list-style: none;
}

.ritual {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 1.6rem 1.5rem 1.5rem;
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  transition: transform 0.35s var(--ease), box-shadow 0.35s;
}

.ritual:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

.ritual h3 {
  font-size: clamp(1.45rem, 1.25rem + 0.8vw, 1.8rem);
}

.ritual-desc {
  margin-top: 0.6rem;
  max-width: 26rem;
  color: var(--ink-2);
  font-size: 0.98rem;
}

.ritual-price {
  margin-top: auto;
  padding-top: 1.25rem;
  color: var(--rose-deep);
  font-size: 1.5rem;
  font-variant-numeric: lining-nums;
}

.ritual--lg {
  background:
    linear-gradient(140deg, #fff 35%, #fbeef3 100%);
}

/* faint wing from the logo, tucked into the corner */
.ritual--lg::after {
  content: "";
  position: absolute;
  right: -2.5rem;
  bottom: -1.5rem;
  width: 14rem;
  aspect-ratio: 3 / 2;
  background: url("assets/logo-mark.png") no-repeat center / contain;
  opacity: 0.09;
  pointer-events: none;
}

.ritual--lg h3 {
  font-size: clamp(1.7rem, 1.4rem + 1.2vw, 2.2rem);
  font-weight: 300;
}

@media (min-width: 40rem) {
  .ritual-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.25rem;
  }

  .ritual {
    min-height: 12rem;
    padding: 1.75rem 1.6rem 1.6rem;
  }

  .ritual--lg {
    min-height: 15rem;
  }

  .ritual:last-child {
    grid-column: 1 / -1;
  }
}

@media (min-width: 60rem) {
  .ritual-grid {
    grid-template-columns: repeat(6, minmax(0, 1fr));
  }

  .ritual,
  .ritual:last-child {
    grid-column: span 2;
  }

  .ritual--lg {
    grid-column: span 3;
  }
}

/* ------------------------------------------------------------------ footer */

.site-footer {
  padding: 4rem 0 3rem;
  border-top: 1px solid var(--line);
  text-align: center;
}

.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.footer-logo {
  width: 11rem;
}

.footer-tag {
  margin-top: 1rem;
  color: var(--rose-deep);
  font-size: 0.75rem;
  letter-spacing: 0.32em;
  text-transform: uppercase;
}

.to-top {
  margin-top: 1.75rem;
  color: var(--ink-2);
  font-size: 0.9rem;
  text-decoration-color: var(--rose-soft);
  text-underline-offset: 0.3em;
}

.to-top:hover {
  color: var(--rose-deep);
}

.copy {
  margin-top: 0.75rem;
  color: var(--ink-3);
  font-size: 0.82rem;
}

/* ---------------------------------------------------------------- motion */

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
}

.js .reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
}

.js .reveal.is-in {
  opacity: 1;
  transform: none;
}

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

  .hero-inner > * {
    animation: none;
  }

  .js .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}
