/* GlowbyNikz — colours sampled from the logo: its cream paper, the
   near-black ink of the lettering, the deep red of the lotus, the rust swoosh,
   copper line work and the crown's gold. Every value downstream uses these tokens. */
:root {
  --ground: #FFFAF0;
  --surface: #F8EEDC;
  --ink: #1A0F08;
  --ink-2: #5E4636;

  --stain: #4A2314;
  --stain-ink: #FCF5E5;
  --stain-ink-2: #E5CFB8;

  --paste: #A9471C;
  --paste-ink: #FCF5E5;
  --paste-ink-2: #F4D6BE;

  --accent: #A8461A;
  --accent-press: #8A3812;
  --accent-bright: #D98A48;
  --accent-bright-press: #E6A26A;
  --gold: #C9963F;

  --skin: #E2AF8A;
  --henna-peak: #5E1D12;

  --font-display: "Playfair Display", "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  --font-text: "Jost", "Century Gothic", "Segoe UI", system-ui, sans-serif;

  --step-display: clamp(2.75rem, 1.6rem + 5.4vw, 6rem);
  --step-h2: clamp(2.25rem, 1.5rem + 3.4vw, 4rem);
  --step-h3: clamp(1.25rem, 1.1rem + 0.6vw, 1.625rem);
  --step-statement: clamp(1.375rem, 1.1rem + 1.1vw, 2.125rem);
  --step-lede: clamp(1.125rem, 1.05rem + 0.35vw, 1.3125rem);
  --step-body: 1.0625rem;
  --step-small: 0.9375rem;

  --gutter: clamp(16px, 3vw, 32px);
  --section: clamp(96px, 6rem + 6vw, 200px);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);

  --field-bg: var(--ground);
  --field-ink: var(--ink);
  --field-ink-2: var(--ink-2);
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 6.5rem; -webkit-text-size-adjust: 100%; scrollbar-color: var(--stain) var(--surface); }
body {
  margin: 0;
  background: var(--ground);
  color: var(--ink);
  font-family: var(--font-text);
  font-size: var(--step-body);
  line-height: 1.55;
  font-feature-settings: "kern", "liga";
  text-rendering: optimizeLegibility;
  caret-color: var(--accent);
  accent-color: var(--accent);
}
img, svg { display: block; max-width: 100%; }
h1, h2, h3 { margin: 0; font-weight: 400; text-wrap: balance; }
p, ul, ol, dl, dd, figure { margin: 0; }
ul, ol { padding: 0; }
a { color: inherit; text-decoration-thickness: 1.5px; text-underline-offset: 0.2em; }

::selection { background: var(--accent-bright); color: var(--ink); }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 2px; }
.field-stain :focus-visible, .field-paste :focus-visible { outline-color: var(--accent-bright); }

::-webkit-scrollbar { width: 12px; height: 12px; }
::-webkit-scrollbar-track { background: var(--surface); }
::-webkit-scrollbar-thumb { background: var(--stain); border: 3px solid var(--surface); border-radius: 999px; }

.wrap { width: 100%; max-width: 1360px; margin-inline: auto; padding-inline: var(--gutter); }

.skip {
  position: absolute; left: var(--gutter); top: -100px; z-index: 50;
  background: var(--ink); color: var(--ground); padding: 0.75rem 1rem; text-decoration: none;
}
.skip:focus { top: 0.75rem; }

/* Fields: a section changes its whole colour, never with a line between. */
section { background: var(--field-bg); color: var(--field-ink); padding-block: var(--section); }
.field-surface { --field-bg: var(--surface); }
.field-stain { --field-bg: var(--stain); --field-ink: var(--stain-ink); --field-ink-2: var(--stain-ink-2); }
.field-paste { --field-bg: var(--paste); --field-ink: var(--paste-ink); --field-ink-2: var(--paste-ink-2); }

h2 { font-family: var(--font-display); font-weight: 500; font-size: var(--step-h2); line-height: 1.02; letter-spacing: -0.015em; }
h3 { font-family: var(--font-display); font-weight: 500; font-size: var(--step-h3); line-height: 1.15; }
.lede { font-size: var(--step-lede); line-height: 1.5; max-width: 34em; margin-top: 1.25rem; }

/* ---------- Buttons & links ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 3.25rem; padding: 0.85rem 1.75rem;
  border: 0; border-radius: 999px;
  font: 600 1rem/1 var(--font-text);
  text-decoration: none; cursor: pointer;
  transition: background-color 180ms var(--ease-out), transform 180ms var(--ease-out);
}
.btn:active { transform: scale(0.97); }
.btn-solid { background: var(--accent); color: #fff; }
.btn-solid:hover { background: var(--accent-press); }
.btn-bright { background: var(--accent-bright); color: var(--ink); }
.btn-bright:hover { background: var(--accent-bright-press); }
/* On the deep red field the copper would sink; the logo's cream carries the action instead. */
.field-paste .btn-bright { background: var(--ground); color: var(--ink); }
.field-paste .btn-bright:hover { background: var(--surface); }

.text-link { font-weight: 600; text-decoration: underline; text-decoration-color: color-mix(in srgb, currentColor 40%, transparent); transition: text-decoration-color 180ms; }
.text-link:hover { text-decoration-color: currentColor; }

/* ---------- Header ---------- */
.bar { position: sticky; top: 0; z-index: 20; background: var(--ground); padding-top: env(safe-area-inset-top, 0px); }
.bar-inner { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; min-height: 4.5rem; }
.wordmark { display: inline-flex; flex-direction: column; align-items: center; text-decoration: none; line-height: 1; }
.wm-logo { width: auto; height: 3.75rem; margin-bottom: 0.15rem; }
.wordmark { padding-block: 0.4rem; }
.wm-name { font-family: var(--font-display); font-weight: 600; font-size: 1.875rem; letter-spacing: -0.01em; }
.wm-tag { font-family: var(--font-text); font-weight: 500; font-size: 0.625rem; letter-spacing: 0.32em; text-transform: uppercase; margin-top: 0.3rem; margin-right: -0.32em; }
.nav { display: flex; align-items: center; gap: clamp(1rem, 2vw, 2rem); }
.nav a:not(.btn) { text-decoration: none; font-weight: 500; padding-block: 0.5rem; background: linear-gradient(currentColor, currentColor) 0 100% / 0 2px no-repeat; transition: background-size 220ms var(--ease-out); }
.nav a:not(.btn):hover { background-size: 100% 2px; }
.nav-cta { min-height: 2.75rem; padding-inline: 1.25rem; }
.menu-toggle { display: none; }

@media (max-width: 860px) {
  .menu-toggle {
    display: inline-flex; align-items: center; min-height: 2.75rem; padding: 0 1.25rem;
    border: 0; border-radius: 999px; background: var(--ink); color: var(--ground);
    font: 600 1rem/1 var(--font-text); cursor: pointer;
  }
  .nav {
    position: absolute; left: var(--gutter); right: var(--gutter); top: calc(100% + 0.25rem);
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--ground); padding: 0.75rem 1.25rem 1.25rem; border-radius: 16px;
    box-shadow: 0 18px 40px -12px rgb(36 20 15 / 0.35);
  }
  .nav a:not(.btn) { padding-block: 0.85rem; font-size: 1.125rem; }
  .nav-cta { margin-top: 0.75rem; }
  .js .nav:not(.open) { display: none; }
}

/* ---------- Hero ---------- */
.hero { padding-block: clamp(48px, 6vw, 96px) 0; overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: var(--gutter); align-items: end; min-height: min(calc(100svh - 4.5rem), 900px); }
.hero-copy { grid-column: 1 / 7; align-self: center; padding-bottom: clamp(48px, 6vw, 96px); }
.hero h1 { font-family: var(--font-display); font-weight: 500; font-size: var(--step-display); line-height: 1; letter-spacing: -0.02em; max-width: 7.5em; }
.hero-lede { font-size: var(--step-lede); line-height: 1.5; margin-top: 1.75rem; max-width: 26em; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.75rem; margin-top: 2.25rem; }
.hero-note { margin-top: 2.5rem; color: var(--field-ink-2); }
.hero-art { grid-column: 7 / 13; align-self: end; display: flex; justify-content: center; }
.hero .hand { width: min(100%, 520px); height: auto; max-height: calc(100svh - 7rem); color: var(--henna-peak); }

.hand .skin { fill: var(--skin); }
.hand .f { fill: currentColor; stroke: none; }

@media (max-width: 860px) {
  .hero-grid { grid-template-columns: 1fr; min-height: 0; }
  .hero-copy, .hero-art { grid-column: 1; }
  .hero-copy { padding-bottom: 0; }
  .hero .hand { width: min(78%, 400px); max-height: 70svh; margin-top: 2rem; }
}

/* The signature move: the pattern is piped on line by line, the way a cone draws it. */
@media (prefers-reduced-motion: no-preference) {
  .hand .d { stroke-dasharray: 1; stroke-dashoffset: 1; animation: pipe 1.4s var(--ease-out) forwards; animation-delay: calc(var(--i, 0) * 180ms + 250ms); }
  .hand .f, .hand .fd { opacity: 0; animation: settle 700ms var(--ease-out) forwards; animation-delay: calc(var(--i, 0) * 180ms + 900ms); }
}
@keyframes pipe { to { stroke-dashoffset: 0; } }
@keyframes settle { to { opacity: 1; } }

/* ---------- Stain dial ---------- */
.stain-grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: var(--gutter); align-items: center; }
.stain-art { grid-column: 1 / 6; background: var(--ground); border-radius: 0; display: flex; justify-content: center; padding: clamp(24px, 4vw, 56px) clamp(16px, 3vw, 40px) 0; overflow: hidden; }
.stain-art .hand { width: min(100%, 420px); color: var(--henna-peak); transition: color 300ms linear; }
.stain-copy { grid-column: 7 / 13; }

.dial { margin-top: 2.5rem; }
.dial label { display: block; font-weight: 600; margin-bottom: 0.75rem; }
.dial-row { display: flex; align-items: center; gap: 1.25rem; }
.dial output { min-width: 6.5ch; font-family: var(--font-display); font-size: 1.75rem; font-variant-numeric: tabular-nums lining-nums; }

input[type="range"] { -webkit-appearance: none; appearance: none; flex: 1; height: 2.75rem; background: transparent; cursor: pointer; margin: 0; }
input[type="range"]::-webkit-slider-runnable-track { height: 10px; border-radius: 999px; background: linear-gradient(90deg, #F2882E, #C9561E 25%, #9A3418 50%, #5E1D12); }
input[type="range"]::-moz-range-track { height: 10px; border-radius: 999px; background: linear-gradient(90deg, #F2882E, #C9561E 25%, #9A3418 50%, #5E1D12); }
input[type="range"]::-webkit-slider-thumb { -webkit-appearance: none; width: 30px; height: 30px; margin-top: -10px; border-radius: 50%; background: var(--ground); border: 4px solid var(--ink); transition: transform 150ms var(--ease-out); }
input[type="range"]::-moz-range-thumb { width: 22px; height: 22px; border-radius: 50%; background: var(--ground); border: 4px solid var(--ink); }
input[type="range"]:active::-webkit-slider-thumb { transform: scale(1.12); }

.stages { list-style: none; display: grid; grid-template-columns: 1fr 1fr; gap: 0.75rem; margin-top: 2rem; }
.stages li { background: var(--ground); padding: 1.25rem 1.25rem 1.4rem; transition: background-color 250ms var(--ease-out), color 250ms var(--ease-out); }
.stages h3 { font-size: 1.3125rem; margin-bottom: 0.4rem; }
.stages p { color: var(--ink-2); font-size: var(--step-small); }
.stages li[aria-current] { background: var(--stain); color: var(--stain-ink); }
.stages li[aria-current] p { color: var(--stain-ink-2); }

@media (max-width: 860px) {
  .stain-art, .stain-copy { grid-column: 1 / -1; }
  /* Hand sits above the slider so it stays in view while dragging. */
  .stain-art { padding-top: 1.5rem; }
  .stain-art .hand { width: min(52%, 260px); }
}
@media (max-width: 480px) { .stages { grid-template-columns: 1fr; } }

/* ---------- Prices ---------- */
.prices-head { max-width: 46rem; }
.prices-head .btn { margin-top: 2rem; }

/* ---------- Styles ---------- */
.styles-head { max-width: 46rem; margin-bottom: clamp(3rem, 5vw, 5rem); }
.styles-head .lede { color: var(--field-ink); }
.styles-grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: clamp(2.5rem, 4vw, 4rem) var(--gutter); }
.plate img { width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover; background: var(--skin); }
.plate figcaption { margin-top: 1.1rem; max-width: 30em; }
.plate h3 { margin-bottom: 0.35rem; }
.plate figcaption p { color: var(--field-ink-2); }
.plate-a { grid-column: 1 / 8; }
.plate-b { grid-column: 9 / 13; align-self: end; }
.plate-c { grid-column: 1 / 6; }
.plate-d { grid-column: 7 / 13; margin-top: clamp(0px, 8vw, 8rem); }
.plate img { transition: transform 600ms var(--ease-out); }
.plate:hover img { transform: scale(1.015); }

@media (max-width: 720px) {
  .plate-a, .plate-b, .plate-c, .plate-d { grid-column: 1 / -1; margin-top: 0; }
}

/* ---------- Inspiration ---------- */
.inspiration-head { max-width: 46rem; margin-bottom: clamp(2.5rem, 4vw, 4rem); }
.inspiration-grid { list-style: none; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(150px, 100%), 1fr)); gap: 0.75rem; }
@media (min-width: 720px) { .inspiration-grid { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: var(--gutter); } }
.inspiration-grid img { width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover; background: var(--skin); transition: transform 600ms var(--ease-out); }
.inspiration-grid li { overflow: hidden; }
.inspiration-grid li:hover img { transform: scale(1.03); }
/* With script, the grid becomes one photo at a time with Back and Next. */
.carousel.ready { max-width: 560px; margin-inline: auto; }
.carousel.ready .inspiration-grid { display: block; }
.carousel.ready .inspiration-grid li:not(.is-current) { display: none; }
.carousel.ready .inspiration-grid img { object-fit: contain; background: var(--ground); }
.carousel.ready .inspiration-grid li:hover img { transform: none; }
.carousel-controls { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-top: 1.25rem; }
.carousel-count { font-family: var(--font-display); font-size: 1.25rem; font-variant-numeric: tabular-nums lining-nums; }

/* ---------- Paste ---------- */
.paste-grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: var(--gutter); }
.paste-main { grid-column: 1 / 8; }
.statement { font-size: var(--step-statement); line-height: 1.3; letter-spacing: -0.01em; margin-top: 1.75rem; max-width: 24em; }
.ingredients { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem var(--gutter); margin-top: clamp(3rem, 5vw, 4.5rem); }
.ingredients dt { font-family: var(--font-display); font-size: var(--step-h3); margin-bottom: 0.4rem; }
.ingredients dd { color: var(--field-ink-2); }
.aftercare { grid-column: 9 / 13; align-self: end; background: color-mix(in srgb, var(--stain) 82%, #fff); padding: clamp(1.5rem, 3vw, 2.5rem); }
.aftercare h3 { font-size: clamp(1.5rem, 1.2rem + 1vw, 2rem); margin-bottom: 1.25rem; }
.aftercare ol { padding-left: 1.4rem; display: grid; gap: 1rem; }
.aftercare li::marker { font-family: var(--font-display); color: var(--gold); }

@media (max-width: 960px) {
  .paste-main, .aftercare { grid-column: 1 / -1; }
  .aftercare { margin-top: 3rem; }
}
@media (max-width: 520px) { .ingredients { grid-template-columns: 1fr; } }

/* ---------- Bridal ---------- */
.bridal-head { max-width: 46rem; margin-bottom: clamp(3rem, 5vw, 4.5rem); }
.timeline { list-style: none; display: grid; grid-template-columns: repeat(5, 1fr); gap: var(--gutter); }
.timeline li { padding-top: 1.5rem; position: relative; }
.timeline li::before { content: ""; position: absolute; top: 0; left: 0; width: 14px; height: 14px; border-radius: 50%; background: var(--accent); }
.timeline li:last-child::before { background: var(--gold); width: 22px; height: 22px; top: -4px; }
.timeline h3 { margin-bottom: 0.6rem; }
.timeline p { color: var(--ink-2); }

@media (max-width: 960px) { .timeline { grid-template-columns: 1fr 1fr; row-gap: 2.5rem; } }
@media (max-width: 520px) { .timeline { grid-template-columns: 1fr; } }

/* ---------- FAQ ---------- */
.faq-grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: var(--gutter); }
.faq-grid h2 { grid-column: 1 / 5; }
.faq-list { grid-column: 6 / 13; display: grid; gap: 0.5rem; }
details { background: var(--ground); }
summary {
  list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 1rem;
  padding: 1.25rem 1.5rem; font-family: var(--font-display); font-size: var(--step-h3); line-height: 1.2;
}
summary::-webkit-details-marker { display: none; }
summary::after {
  content: ""; flex: none; width: 16px; height: 16px;
  background: linear-gradient(var(--accent), var(--accent)) center / 100% 2.5px no-repeat, linear-gradient(var(--accent), var(--accent)) center / 2.5px 100% no-repeat;
  transition: transform 250ms var(--ease-out);
}
details[open] summary::after { transform: rotate(45deg); }
details p { padding: 0 1.5rem 1.5rem; max-width: 40em; }

@media (max-width: 860px) {
  .faq-grid h2, .faq-list { grid-column: 1 / -1; }
  .faq-grid h2 { margin-bottom: 1.5rem; }
}

/* ---------- Booking ---------- */
.book-grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: var(--gutter); }
.book-copy { grid-column: 1 / 6; }
.contact { display: grid; gap: 1.25rem; margin-top: 2.5rem; }
.contact dt { color: var(--field-ink-2); font-size: var(--step-small); }
.contact dd { font-size: 1.125rem; font-weight: 500; }
.book-form { grid-column: 7 / 13; display: grid; gap: 1.25rem; }
.field { display: grid; gap: 0.45rem; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; }
.field label { font-weight: 600; }
.optional { font-weight: 400; color: var(--field-ink-2); }
input:not([type="range"]), select, textarea {
  width: 100%; min-height: 3.25rem; padding: 0.8rem 1rem;
  font: 400 1rem/1.4 var(--font-text); color: var(--ink);
  background: var(--ground); border: 2px solid transparent; border-radius: 10px;
  transition: border-color 150ms;
}
textarea { resize: vertical; min-height: 7rem; }
select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--ink) 50%), linear-gradient(-45deg, transparent 50%, var(--ink) 50%); background-position: calc(100% - 22px) 52%, calc(100% - 16px) 52%; background-size: 6px 6px; background-repeat: no-repeat; padding-right: 2.75rem; }
input::placeholder, textarea::placeholder { color: #6E5D54; }
input:hover, select:hover, textarea:hover { border-color: var(--paste-ink-2); }
input[aria-invalid="true"], select[aria-invalid="true"] { border-color: var(--accent-bright); }
.error { color: #FFC9A3; font-size: var(--step-small); font-weight: 500; }
.book-form .btn { justify-self: start; margin-top: 0.5rem; }
.form-status { min-height: 1.5em; color: var(--field-ink); }

@media (max-width: 860px) {
  .book-copy, .book-form { grid-column: 1 / -1; }
  .book-form { margin-top: 2rem; }
}
@media (max-width: 480px) { .field-row { grid-template-columns: 1fr; } }

/* ---------- Footer ---------- */
.foot { padding-block: clamp(64px, 8vw, 120px) calc(2rem + env(safe-area-inset-bottom, 0px)); overflow: hidden; }
/* The page ground is sampled from the logo's paper, so the image sits in it without a visible edge. */
.foot-logo { width: min(440px, 82%); height: auto; margin-inline: auto; }
.foot-row { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.75rem 2rem; margin-top: 1.5rem; color: var(--ink-2); }
.foot-row a { color: var(--ink); }

/* ---------- Entrances (content stays visible without script) ---------- */
@media (prefers-reduced-motion: no-preference) {
  .js [data-reveal] { opacity: 0; transform: translateY(24px); transition: opacity 700ms var(--ease-out), transform 700ms var(--ease-out); transition-delay: calc(var(--d, 0) * 80ms); }
  .js [data-reveal].in { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
}
