/* ==========================================================================
   Sekar Makeup. Editorial beauty site.
   Design tokens first, then base, then sections.
   ========================================================================== */

@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/inter-400-normal.woff2") format("woff2");
}
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("../fonts/inter-500-normal.woff2") format("woff2");
}
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("../fonts/inter-600-normal.woff2") format("woff2");
}

:root {
  --porcelain: #faf8f7;
  --blush: #f2e8e5;
  --blush-deep: #e8dad6;
  --ink: #141112;
  --ink-2: #3b3336;
  --muted: #6f6467;
  --line: #e6dcd9;
  --plum: #7c4a5c;
  --plum-deep: #63384a;
  --dark: #171314;
  --on-dark: #f3edeb;
  --on-dark-muted: #a4948f;
  --wa: #25d366;

  --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    Helvetica, Arial, sans-serif;

  --fs-display: clamp(2.75rem, 1.5rem + 5.6vw, 6rem);
  --fs-h2: clamp(1.75rem, 1.2rem + 2.6vw, 3.25rem);
  --fs-h3: clamp(1.125rem, 1rem + 0.6vw, 1.5rem);
  --fs-body: clamp(0.9375rem, 0.9rem + 0.2vw, 1.0625rem);
  --fs-small: 0.875rem;
  --fs-label: 0.6875rem;

  --tracking-label: 0.2em;
  --tracking-tight: -0.03em;

  --gutter: clamp(1.25rem, 0.9rem + 1.8vw, 3rem);
  --section-y: clamp(4rem, 2.5rem + 7vw, 8.5rem);
  --container: 82rem;

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --dur: 320ms;
  --dur-slow: 800ms;
  --bar-h: 4.5rem;
}

/* Base --------------------------------------------------------------------- */

*,
*::before,
*::after { box-sizing: border-box; }
* { margin: 0; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  background: var(--porcelain);
  color: var(--ink);
  font-family: var(--font);
  font-size: var(--fs-body);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { display: block; max-width: 100%; height: auto; }
button, input, textarea { font: inherit; color: inherit; }
ul { list-style: none; padding: 0; }
a { color: inherit; }

h1, h2, h3 {
  font-weight: 600;
  line-height: 1.05;
  letter-spacing: var(--tracking-tight);
  text-wrap: balance;
}

p { text-wrap: pretty; }

:focus-visible {
  outline: 2px solid var(--plum);
  outline-offset: 3px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.skip {
  position: absolute;
  left: 1rem;
  top: 1rem;
  z-index: 200;
  padding: 0.75rem 1rem;
  background: var(--ink);
  color: var(--porcelain);
  text-decoration: none;
  font-size: var(--fs-small);
  transform: translateY(-150%);
  transition: transform var(--dur) var(--ease);
}
.skip:focus-visible { transform: translateY(0); }

.wrap {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.label {
  font-size: var(--fs-label);
  letter-spacing: var(--tracking-label);
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 500;
}

.section { padding-block: var(--section-y); }

/* Reveal ------------------------------------------------------------------- */

.js .reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity var(--dur-slow) var(--ease),
    transform var(--dur-slow) var(--ease);
  transition-delay: var(--d, 0ms);
}
.js .reveal.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .js .reveal { opacity: 1; transform: none; }
}

/* Buttons ------------------------------------------------------------------ */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 3rem;
  padding: 0.85rem 1.75rem;
  border: 1px solid transparent;
  border-radius: 0;
  font-size: var(--fs-small);
  font-weight: 500;
  letter-spacing: 0.02em;
  text-decoration: none;
  cursor: pointer;
  transition: background var(--dur) var(--ease), color var(--dur) var(--ease),
    border-color var(--dur) var(--ease);
}

.btn--solid { background: var(--ink); color: var(--porcelain); }
.btn--solid:hover { background: var(--plum); }

.btn--line { border-color: var(--ink); color: var(--ink); }
.btn--line:hover { background: var(--ink); color: var(--porcelain); }

.btn--wa { background: var(--wa); color: #fff; font-weight: 600; }
.btn--wa:hover { background: #1eb85a; }

/* Top bar ------------------------------------------------------------------ */

.bar {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  height: var(--bar-h);
  display: flex;
  align-items: center;
  background: transparent;
  transition: background var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}

.bar.stuck {
  background: rgba(250, 248, 247, 0.9);
  backdrop-filter: blur(10px);
  box-shadow: 0 1px 0 var(--line);
}

.bar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  width: 100%;
}

.brand {
  display: inline-flex;
  align-items: center;
  min-height: 2.75rem;
  font-size: var(--fs-label);
  letter-spacing: var(--tracking-label);
  text-transform: uppercase;
  font-weight: 600;
  text-decoration: none;
}

.bar__nav { display: none; }

@media (min-width: 60rem) {
  .bar__nav { display: flex; align-items: center; gap: 2.5rem; }
}

.bar__link {
  display: inline-flex;
  align-items: center;
  min-height: 2.75rem;
  font-size: var(--fs-label);
  letter-spacing: var(--tracking-label);
  text-transform: uppercase;
  text-decoration: none;
  color: var(--ink-2);
  transition: color var(--dur) var(--ease);
}
.bar__link:hover { color: var(--plum); }

.bar__cta { display: none; }
@media (min-width: 60rem) { .bar__cta { display: inline-flex; } }

.burger {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  margin-right: -0.5rem;
  background: none;
  border: 0;
  cursor: pointer;
}
@media (min-width: 60rem) { .burger { display: none; } }

.burger__bars { position: relative; width: 22px; height: 11px; }
.burger__bars span {
  position: absolute;
  left: 0;
  width: 100%;
  height: 1.5px;
  background: var(--ink);
  transition: transform var(--dur) var(--ease);
}
.burger__bars span:nth-child(1) { top: 0; }
.burger__bars span:nth-child(2) { bottom: 0; }
.burger[aria-expanded="true"] .burger__bars span:nth-child(1) { transform: translateY(4.75px) rotate(45deg); }
.burger[aria-expanded="true"] .burger__bars span:nth-child(2) { transform: translateY(-4.75px) rotate(-45deg); }

.drawer {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 2rem;
  padding: var(--bar-h) var(--gutter) calc(2rem + env(safe-area-inset-bottom));
  background: var(--blush);
  visibility: hidden;
  opacity: 0;
  transition: opacity var(--dur) var(--ease), visibility var(--dur) var(--ease);
}
.drawer.open { visibility: visible; opacity: 1; }
@media (min-width: 60rem) { .drawer { display: none; } }

.drawer__link {
  display: block;
  padding: 1rem 0;
  border-bottom: 1px solid var(--blush-deep);
  font-size: clamp(1.75rem, 8vw, 2.5rem);
  font-weight: 600;
  letter-spacing: var(--tracking-tight);
  text-decoration: none;
}

/* Hero. Split layout, type left, portrait right ---------------------------- */

.hero {
  padding-top: calc(var(--bar-h) + clamp(2rem, 1rem + 6vw, 5rem));
  padding-bottom: clamp(2rem, 1rem + 4vw, 4rem);
}

.hero__grid {
  display: grid;
  gap: clamp(2rem, 1rem + 4vw, 4rem);
  align-items: end;
}

@media (min-width: 64rem) {
  .hero__grid {
    grid-template-columns: 1.1fr 0.9fr;
    gap: clamp(2rem, 1rem + 3vw, 4.5rem);
  }
}

.hero__title {
  font-size: var(--fs-display);
  margin-block: 1.25rem 1.5rem;
}

.hero__title em {
  font-style: italic;
  font-weight: 400;
  color: var(--plum);
}

.hero__lead {
  color: var(--ink-2);
  max-width: 40ch;
  margin-bottom: 2rem;
}

.hero__actions { display: flex; flex-wrap: wrap; gap: 0.75rem; }

@media (max-width: 26rem) {
  .hero__actions .btn { flex: 1 1 100%; }
}

.hero__meta {
  margin-top: 2.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 2rem;
  font-size: var(--fs-small);
  color: var(--muted);
}

.hero__media {
  position: relative;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  background: var(--blush);
}

.hero__media img { width: 100%; height: 100%; object-fit: cover; }

/* Ticker ------------------------------------------------------------------- */

.ticker {
  border-block: 1px solid var(--line);
  padding-block: 1rem;
  overflow: hidden;
}

.ticker__track {
  display: flex;
  gap: 3rem;
  width: max-content;
  animation: slide 38s linear infinite;
}

.ticker__track span {
  font-size: var(--fs-label);
  letter-spacing: var(--tracking-label);
  text-transform: uppercase;
  color: var(--muted);
  white-space: nowrap;
}

@keyframes slide {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

@media (prefers-reduced-motion: reduce) {
  .ticker__track { animation: none; }
  .ticker { overflow-x: auto; }
}

/* Looks. Horizontal snap rail --------------------------------------------- */

.looks__head {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-bottom: 2.5rem;
}

@media (min-width: 48rem) {
  .looks__head {
    flex-direction: row;
    align-items: end;
    justify-content: space-between;
  }
}

.looks__title { font-size: var(--fs-h2); max-width: 16ch; }

.looks__hint { font-size: var(--fs-small); color: var(--muted); }

.rail {
  display: flex;
  gap: clamp(0.75rem, 0.5rem + 1vw, 1.5rem);
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding-inline: var(--gutter);
  padding-bottom: 1rem;
  scrollbar-width: thin;
  -webkit-overflow-scrolling: touch;
}

.look {
  flex: 0 0 auto;
  width: min(78vw, 22rem);
  scroll-snap-align: start;
}

.look__media {
  position: relative;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  background: var(--blush);
}

.look__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--dur-slow) var(--ease);
}

@media (hover: hover) {
  .look:hover .look__media img { transform: scale(1.04); }
}

.look__cap {
  display: flex;
  align-items: baseline;
  gap: 0.75rem;
  margin-top: 0.85rem;
}

.look__num {
  font-size: var(--fs-label);
  letter-spacing: 0.1em;
  color: var(--plum);
}

.look__name { font-size: var(--fs-small); font-weight: 500; }

/* Services. Editorial rows ------------------------------------------------- */

.services { background: var(--blush); }

.svc-list { border-top: 1px solid var(--blush-deep); }

.svc {
  display: grid;
  gap: 0.5rem 2rem;
  padding-block: clamp(1.5rem, 1rem + 1.5vw, 2.25rem);
  border-bottom: 1px solid var(--blush-deep);
}

@media (min-width: 48rem) {
  .svc {
    grid-template-columns: auto 1fr auto;
    align-items: baseline;
  }
}

.svc__num { font-size: var(--fs-label); letter-spacing: 0.1em; color: var(--plum); }
.svc__name { font-size: var(--fs-h3); }
.svc__desc { color: var(--muted); max-width: 46ch; }
.svc__price { font-size: var(--fs-small); color: var(--ink-2); white-space: nowrap; }

@media (min-width: 48rem) {
  .svc__name { grid-column: 2; }
  .svc__desc { grid-column: 2; }
  .svc__price { grid-row: 1; grid-column: 3; }
}

/* Artist ------------------------------------------------------------------- */

.artist { display: grid; gap: clamp(2rem, 1rem + 4vw, 4rem); }

@media (min-width: 64rem) {
  .artist { grid-template-columns: 1fr 1fr; align-items: center; }
}

.artist__media { position: relative; }

.artist__main { aspect-ratio: 3 / 2; overflow: hidden; background: var(--blush); }
.artist__main img { width: 100%; height: 100%; object-fit: cover; }

.artist__inset {
  display: none;
  position: absolute;
  right: -1.5rem;
  bottom: -2.5rem;
  width: 38%;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  border: 6px solid var(--porcelain);
}

@media (min-width: 48rem) { .artist__inset { display: block; } }

.artist__inset img { width: 100%; height: 100%; object-fit: cover; }

.artist__title { font-size: var(--fs-h2); margin-block: 1rem 1.25rem; max-width: 18ch; }
.artist__text { color: var(--ink-2); max-width: 46ch; }
.artist__text + .artist__text { margin-top: 1rem; }

/* Steps -------------------------------------------------------------------- */

.steps { display: grid; gap: 1.5rem; margin-top: 2.5rem; }

@media (min-width: 48rem) { .steps { grid-template-columns: repeat(3, 1fr); gap: 2.5rem; } }

.step { border-top: 1px solid var(--line); padding-top: 1.25rem; }
.step__num { font-size: var(--fs-label); letter-spacing: 0.1em; color: var(--plum); }
.step__title { font-size: var(--fs-h3); margin-block: 0.5rem; }
.step__text { color: var(--muted); }

/* Booking ------------------------------------------------------------------ */

.booking { background: var(--dark); color: var(--on-dark); }

.booking .label { color: var(--on-dark-muted); }

.booking__grid { display: grid; gap: clamp(2rem, 1rem + 4vw, 4rem); }

@media (min-width: 64rem) {
  .booking__grid { grid-template-columns: 0.9fr 1.1fr; align-items: start; }
}

.booking__title { font-size: var(--fs-h2); margin-block: 1rem 1rem; max-width: 14ch; }
.booking__text { color: var(--on-dark-muted); max-width: 40ch; }

.booking__direct {
  display: inline-flex;
  align-items: center;
  min-height: 2.75rem;
  margin-top: 1.5rem;
  font-size: var(--fs-small);
  color: var(--on-dark);
  border-bottom: 1px solid rgba(243, 237, 235, 0.35);
  padding-bottom: 3px;
  text-decoration: none;
}

.form__label {
  display: block;
  font-size: var(--fs-label);
  letter-spacing: var(--tracking-label);
  text-transform: uppercase;
  color: var(--on-dark-muted);
  margin-bottom: 0.75rem;
}

.chips { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-bottom: 1.75rem; }

.chip {
  padding: 0.7rem 1.1rem;
  background: transparent;
  border: 1px solid rgba(243, 237, 235, 0.25);
  color: var(--on-dark);
  font-size: var(--fs-small);
  cursor: pointer;
  transition: background var(--dur) var(--ease), border-color var(--dur) var(--ease);
}

.chip:hover { border-color: var(--on-dark); }
.chip[aria-pressed="true"] { background: var(--on-dark); color: var(--dark); border-color: var(--on-dark); }

.fields { display: grid; gap: 1.25rem; }

@media (min-width: 34rem) { .fields--two { grid-template-columns: 1fr 1fr; } }

.field { display: flex; flex-direction: column; gap: 0.5rem; }

.field input,
.field textarea {
  width: 100%;
  padding: 0.85rem 1rem;
  background: transparent;
  border: 1px solid rgba(243, 237, 235, 0.25);
  color: var(--on-dark);
  font-size: 1rem;
  resize: vertical;
}

.field input::placeholder,
.field textarea::placeholder { color: rgba(164, 148, 143, 0.8); }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--on-dark); }
.field input[type="date"] { min-height: 3.1rem; }

.preview {
  margin-top: 1.5rem;
  padding: 1rem 1.15rem;
  border: 1px dashed rgba(243, 237, 235, 0.25);
  font-family: inherit;
  font-size: var(--fs-small);
  color: var(--on-dark);
  white-space: pre-wrap;
  word-break: break-word;
}

.form__send { width: 100%; margin-top: 1.25rem; }
.form__note { margin-top: 0.85rem; font-size: 0.8125rem; color: var(--on-dark-muted); text-align: center; }

/* Footer ------------------------------------------------------------------- */

.foot { padding-block: 3rem calc(3rem + env(safe-area-inset-bottom)); }

.foot__inner {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 2rem;
  align-items: center;
  justify-content: space-between;
  font-size: var(--fs-small);
  color: var(--muted);
}

.foot__note { max-width: 46ch; }

/* WhatsApp float ----------------------------------------------------------- */

.wa {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  z-index: 80;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 3.25rem;
  height: 3.25rem;
  border-radius: 50%;
  background: var(--wa);
  color: #fff;
  box-shadow: 0 8px 22px rgba(37, 211, 102, 0.35);
  transition: transform var(--dur) var(--ease);
}

.wa:hover { transform: scale(1.06); }
.wa svg { width: 1.7rem; height: 1.7rem; }

/* ==========================================================================
   Mobile composition. Full bleed portrait, ruled service rows, and a booking
   bar that stays in reach until the form itself is on screen.
   ========================================================================== */

@media (max-width: 47.99rem) {
  /* The portrait runs to both edges, which is the point of the brand. */
  .hero__media {
    margin-inline: calc(var(--gutter) * -1);
    width: calc(100% + var(--gutter) * 2);
    aspect-ratio: 3 / 4;
  }

  .hero__meta {
    gap: 0;
    flex-direction: column;
    align-items: stretch;
  }

  .hero__meta span {
    padding-block: 0.85rem;
    border-bottom: 1px solid var(--line);
  }

  .hero__meta span:last-child { border-bottom: 0; }

  /* Looks rail: a wider card and a visible peek of the next one. */
  .look { width: 76vw; }

  .looks__head { gap: 0.75rem; }
  .looks__hint { padding-top: 0.85rem; border-top: 1px solid var(--line); }

  /* Service rows keep the name and price on one line. */
  .svc {
    grid-template-columns: auto 1fr auto;
    column-gap: 0.85rem;
  }

  .svc__name { grid-column: 2; }
  .svc__price { grid-row: 1; grid-column: 3; align-self: baseline; }
  .svc__desc { grid-column: 1 / -1; margin-top: 0.35rem; }

  .steps { gap: 0; }
  .step { padding-block: 1.25rem; border-top: 1px solid var(--line); }

  .artist__main { aspect-ratio: 4 / 3; }

  /* Room for the booking bar. The floating button would double up with it,
     and the booking panel already carries a direct message link. */
  body { padding-bottom: 4.75rem; }
  .wa { display: none; }
}

/* Sticky booking bar, mobile only. Hidden once the form is on screen. */
.bookbar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 85;
  display: none;
  gap: 0.75rem;
  align-items: center;
  padding: 0.75rem var(--gutter) calc(0.75rem + env(safe-area-inset-bottom));
  background: rgba(250, 248, 247, 0.94);
  backdrop-filter: blur(10px);
  border-top: 1px solid var(--line);
  transform: translateY(0);
  transition: transform var(--dur) var(--ease), opacity var(--dur) var(--ease);
}

@media (max-width: 47.99rem) { .bookbar { display: flex; } }

.bookbar.tucked {
  transform: translateY(110%);
  opacity: 0;
  pointer-events: none;
}

.bookbar__text { flex: 1; font-size: 0.8125rem; line-height: 1.35; color: var(--muted); }
.bookbar__text strong { display: block; color: var(--ink); font-weight: 600; }
.bookbar .btn { min-height: 2.75rem; padding-inline: 1.25rem; white-space: nowrap; }
