/* =========================================================
   Nailed by Boity — editorial luxe nail studio
   ========================================================= */

:root {
  --cream:    #fdf1f6;
  --cream-2:  #f8dde9;
  --ink:      #3a1226;
  --plum:     #5a1b3d;   /* deep berry-pink for dark sections */
  --rose:     #d6477f;   /* primary pink */
  --rose-soft:#f4a3c4;
  --gold:     #c98aa0;   /* soft rose-gold accent */
  --line:     rgba(90, 27, 61, 0.14);

  --font-display: "Fraunces", Georgia, serif;
  --font-body: "Hanken Grotesk", system-ui, sans-serif;

  --maxw: 1440px;
  --radius: 18px;
  --ease: cubic-bezier(.22, .61, .36, 1);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--cream);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* Atmospheric background wash */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(60% 50% at 15% 0%, rgba(244,163,196,.45), transparent 60%),
    radial-gradient(50% 45% at 100% 20%, rgba(214,71,127,.20), transparent 55%),
    radial-gradient(70% 60% at 80% 100%, rgba(244,163,196,.30), transparent 60%),
    var(--cream);
}

/* Film grain overlay */
.grain {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  opacity: .04;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2'/%3E%3C/filter%3E%3Crect width='120' height='120' filter='url(%23n)'/%3E%3C/svg%3E");
}

a { color: inherit; text-decoration: none; }
em { font-style: italic; }

section { position: relative; z-index: 2; }

/* ===== Buttons ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  padding: .9rem 1.6rem;
  border-radius: 100px;
  font-weight: 500;
  font-size: .98rem;
  letter-spacing: .01em;
  transition: transform .35s var(--ease), box-shadow .35s var(--ease), background .3s, color .3s;
  cursor: pointer;
  border: 1px solid transparent;
}
.btn--solid {
  background: var(--plum);
  color: var(--cream);
  box-shadow: 0 10px 30px -12px rgba(58,34,48,.7);
}
.btn--solid:hover { transform: translateY(-3px); box-shadow: 0 18px 40px -14px rgba(58,34,48,.8); }
.btn--ghost {
  background: transparent;
  border-color: var(--plum);
  color: var(--plum);
}
.btn--ghost:hover { background: var(--plum); color: var(--cream); transform: translateY(-3px); }

/* ===== Navigation ===== */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.1rem clamp(1.25rem, 4vw, 3.5rem);
  background: rgba(247,240,232,.72);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.brand { display: inline-flex; align-items: center; gap: .6rem; }
.brand__mark { width: 22px; height: 28px; }
.brand__mark path { fill: var(--rose-soft); }
.brand__mark .brand__shine { fill: none; stroke: rgba(255,255,255,.75); stroke-width: 1.4; stroke-linecap: round; }
.brand__text {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 500;
  letter-spacing: -.01em;
  color: var(--plum);
}
.brand__text em { color: var(--rose); font-weight: 400; }

.nav__links { display: flex; align-items: center; gap: 2rem; }
.nav__links a { font-size: .98rem; font-weight: 500; position: relative; }
.nav__links a:not(.nav__cta)::after {
  content: ""; position: absolute; left: 0; bottom: -4px;
  width: 0; height: 1.5px; background: var(--rose);
  transition: width .3s var(--ease);
}
.nav__links a:not(.nav__cta):hover::after { width: 100%; }
.nav__cta {
  padding: .55rem 1.1rem;
  background: var(--rose);
  color: var(--cream);
  border-radius: 100px;
  transition: background .3s, transform .3s var(--ease);
}
.nav__cta:hover { background: var(--plum); transform: translateY(-2px); }

.nav__toggle { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: 6px; }
.nav__toggle span { width: 26px; height: 2px; background: var(--plum); transition: transform .3s, opacity .3s; }

/* ===== Hero (split editorial) ===== */
.hero {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: clamp(2.5rem, 7vw, 5.5rem) clamp(1.25rem, 4vw, 3.5rem) clamp(3rem, 6vw, 5rem);
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  align-items: center;
  gap: clamp(2rem, 6vw, 5rem);
}
.hero__eyebrow {
  display: inline-block;
  font-size: .82rem;
  letter-spacing: .26em;
  text-transform: uppercase;
  color: var(--rose);
  margin-bottom: 1.4rem;
  padding: .4rem 1rem;
  border: 1px solid var(--line);
  border-radius: 100px;
}
.hero__title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(2.8rem, 7vw, 5.6rem);
  line-height: .98;
  letter-spacing: -.025em;
  color: var(--plum);
}
.hero__title span { display: block; }
.hero__title-em em {
  background: linear-gradient(100deg, var(--rose), var(--gold) 70%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero__lead {
  max-width: 44ch;
  margin: 1.6rem 0 2.2rem;
  font-size: clamp(1.05rem, 2vw, 1.22rem);
  color: rgba(44,26,34,.78);
}
.hero__actions { display: flex; gap: 1rem; flex-wrap: wrap; }

.hero__meta {
  display: flex;
  gap: clamp(1.5rem, 4vw, 3rem);
  margin-top: 3rem;
  flex-wrap: wrap;
}
.hero__meta div { display: flex; flex-direction: column; }
.hero__meta strong { font-family: var(--font-display); font-size: 1.7rem; color: var(--plum); }
.hero__meta span { font-size: .82rem; letter-spacing: .08em; text-transform: uppercase; color: rgba(44,26,34,.55); }

/* Visual side */
.hero__visual { position: relative; }
.hero__card {
  position: relative;
  aspect-ratio: 4 / 5;
  border-radius: 24px;
  background: var(--cream-2);
  box-shadow: 0 40px 80px -36px rgba(58,34,48,.65);
  overflow: hidden;
  margin: 0;
}
.hero__card img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .8s var(--ease);
}
.hero__card:hover img { transform: scale(1.04); }
.hero__card-tag {
  position: absolute; top: 1.1rem; left: 1.1rem; z-index: 2;
  font-size: .72rem; letter-spacing: .14em; text-transform: uppercase;
  color: var(--plum); background: rgba(253,241,246,.92);
  backdrop-filter: blur(4px);
  padding: .4rem .85rem; border-radius: 100px; font-weight: 600;
  box-shadow: 0 6px 16px -8px rgba(58,34,48,.5);
}
.hero__badge {
  position: absolute;
  left: -18px; bottom: 28px;
  background: var(--cream);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: .85rem 1.2rem;
  box-shadow: 0 20px 40px -22px rgba(58,34,48,.6);
  display: grid; gap: .15rem;
  animation: floatDot 5s ease-in-out infinite;
}
.hero__badge strong { font-family: var(--font-display); color: var(--plum); font-size: 1.05rem; }
.hero__badge span { font-size: .78rem; letter-spacing: .1em; text-transform: uppercase; color: rgba(44,26,34,.55); }
@keyframes floatDot { 50% { transform: translateY(-9px); } }

/* ===== Section heading ===== */
.section-head { text-align: center; max-width: 620px; margin: 0 auto clamp(2.5rem, 5vw, 3.5rem); }
.section-head__kicker {
  font-size: .78rem; letter-spacing: .26em; text-transform: uppercase;
  color: var(--gold); margin-bottom: .8rem;
}
.section-head__kicker--light { color: var(--rose-soft); }
.section-head__title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(2rem, 5vw, 3.1rem);
  line-height: 1.05;
  letter-spacing: -.02em;
  color: var(--plum);
}
.section-head__sub { margin-top: .9rem; color: rgba(44,26,34,.7); }

/* ===== Services ===== */
.services { max-width: var(--maxw); margin: 0 auto; padding: clamp(3rem, 7vw, 6rem) clamp(1.25rem, 4vw, 3.5rem); }
.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.2rem;
}
.card {
  position: relative;
  background: rgba(255,255,255,.55);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.8rem;
  transition: transform .4s var(--ease), box-shadow .4s var(--ease), background .4s;
}
.card:hover { transform: translateY(-6px); box-shadow: 0 24px 50px -28px rgba(58,34,48,.55); background: rgba(255,255,255,.8); }
.card--feature {
  background: var(--plum);
  color: var(--cream);
  border-color: transparent;
}
/* keep the feature card dark on hover (don't inherit the white base hover) */
.card.card--feature:hover { background: var(--plum); }
.card.card--feature .card__top h3 { color: var(--cream); }
.card.card--feature .card__price { color: var(--rose-soft); }
.card.card--feature p { color: rgba(247,240,232,.85); }
.card__badge {
  position: absolute; top: -12px; left: 1.8rem;
  background: var(--gold); color: var(--ink);
  font-size: .72rem; letter-spacing: .12em; text-transform: uppercase;
  padding: .35rem .8rem; border-radius: 100px; font-weight: 600;
}
.card__top { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; margin-bottom: .7rem; }
.card__top h3 { font-family: var(--font-display); font-weight: 500; font-size: 1.4rem; color: var(--plum); }
.card__price { font-family: var(--font-display); font-size: 1.25rem; color: var(--rose); white-space: nowrap; }
.card p { font-size: .95rem; color: rgba(44,26,34,.72); }
.card__time {
  display: inline-block; margin-top: 1.1rem;
  font-size: .78rem; letter-spacing: .1em; text-transform: uppercase;
  color: rgba(44,26,34,.5);
}
.card--feature .card__time { color: rgba(247,240,232,.6); }
.services__note { text-align: center; margin-top: 1.8rem; font-size: .86rem; color: rgba(44,26,34,.55); }

/* ===== Gallery ===== */
.gallery { max-width: var(--maxw); margin: 0 auto; padding: clamp(3rem, 7vw, 6rem) clamp(1.25rem, 4vw, 3.5rem); }
.gallery__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}
.tile {
  position: relative;
  aspect-ratio: 4 / 5;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--cream-2);
  box-shadow: 0 18px 40px -28px rgba(90,27,61,.5);
  cursor: pointer;
  margin: 0;
}
.tile img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .6s var(--ease);
}
.tile:hover img { transform: scale(1.07); }
.tile figcaption {
  position: absolute; left: 0; right: 0; bottom: 0;
  z-index: 2;
  padding: 1.6rem 1.2rem .9rem;
  font-family: var(--font-display);
  font-style: italic;
  color: #fff;
  font-size: 1.05rem;
  background: linear-gradient(transparent, rgba(40,8,24,.7));
  transform: translateY(8px);
  opacity: 0;
  transition: transform .4s var(--ease), opacity .4s;
}
.tile:hover figcaption { transform: translateY(0); opacity: 1; }

/* ===== About ===== */
.about {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: clamp(3rem, 7vw, 6rem) clamp(1.25rem, 4vw, 3.5rem);
  display: grid;
  grid-template-columns: .85fr 1.15fr;
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
}
.about__portrait {
  aspect-ratio: 4 / 5;
  border-radius: var(--radius);
  background: var(--cream-2);
  overflow: hidden;
  margin: 0;
  box-shadow: 0 30px 60px -30px rgba(58,34,48,.6);
}
.about__portrait img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .8s var(--ease);
}
.about__portrait:hover img { transform: scale(1.04); }
.about__body p { margin-top: 1.1rem; color: rgba(44,26,34,.78); }
.about__points { list-style: none; margin-top: 1.6rem; display: grid; gap: .6rem; }
.about__points li { position: relative; padding-left: 1.6rem; }
.about__points li::before {
  content: "✦"; position: absolute; left: 0; color: var(--gold);
}

/* ===== Booking ===== */
.booking {
  background: var(--plum);
  color: var(--cream);
  margin-top: clamp(3rem, 7vw, 5rem);
  padding: clamp(3.5rem, 8vw, 6rem) clamp(1.25rem, 4vw, 3.5rem);
}
.booking__inner {
  max-width: var(--maxw);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2.5rem, 6vw, 5rem);
  align-items: start;
}
.booking .section-head__title { color: var(--cream); }
.booking__text { margin-top: 1rem; color: rgba(247,240,232,.78); max-width: 36ch; }
.booking__contacts { list-style: none; margin: 2rem 0; display: grid; gap: .9rem; }
.booking__contacts a { display: inline-flex; align-items: center; gap: .8rem; font-size: 1.05rem; transition: color .3s; }
.booking__contacts a:hover { color: var(--rose-soft); }
.booking__contacts .ic {
  display: grid; place-items: center;
  width: 38px; height: 38px; border-radius: 50%;
  border: 1px solid rgba(247,240,232,.3);
  font-size: .95rem;
}
.booking__hours { display: grid; gap: .25rem; padding-top: 1.4rem; border-top: 1px solid rgba(247,240,232,.18); }
.booking__hours strong { font-family: var(--font-display); font-size: 1.05rem; }
.booking__hours span { color: rgba(247,240,232,.7); font-size: .95rem; }

.booking__form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  background: rgba(247,240,232,.06);
  border: 1px solid rgba(247,240,232,.16);
  border-radius: var(--radius);
  padding: clamp(1.5rem, 3vw, 2.2rem);
}
.booking__form label { display: grid; gap: .4rem; font-size: .85rem; letter-spacing: .04em; }
.booking__form-full { grid-column: 1 / -1; }
.booking__form input, .booking__form select, .booking__form textarea {
  font-family: var(--font-body);
  font-size: .98rem;
  padding: .8rem .9rem;
  border-radius: 10px;
  border: 1px solid rgba(247,240,232,.2);
  background: rgba(247,240,232,.04);
  color: var(--cream);
  width: 100%;
  transition: border .3s, background .3s;
}
.booking__form input::placeholder, .booking__form textarea::placeholder { color: rgba(247,240,232,.45); }
.booking__form input:focus, .booking__form select:focus, .booking__form textarea:focus {
  outline: none; border-color: var(--rose-soft); background: rgba(247,240,232,.08);
}
.booking__form select option { color: #2c1a22; }

/* Date input — match the dark form look & feel (cross-browser, incl. iOS Safari) */
.booking__form input[type="date"] {
  position: relative;
  -webkit-appearance: none;         /* iOS: drop intrinsic sizing so width:100% works */
  appearance: none;
  width: 100%;                      /* match the other fields exactly */
  max-width: 100%;
  min-width: 0;                     /* stop iOS forcing a wider intrinsic size */
  box-sizing: border-box;
  min-height: 50px;                 /* match the other fields' tap height */
  font-family: var(--font-body);
  font-size: .98rem;
  text-align: left;
  color: var(--cream);
  color-scheme: dark;               /* dark calendar popup */
  cursor: pointer;
  /* our own pink calendar icon — iOS won't render the native indicator */
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23f4a3c4' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='4' width='18' height='18' rx='2'/%3E%3Cpath d='M16 2v4M8 2v4M3 10h18'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right .95rem center;
  background-size: 19px;
  padding-right: 2.8rem;            /* keep text clear of the icon */
}
.booking__form input[type="date"]::-webkit-date-and-time-value { text-align: left; }
.booking__form input[type="date"]::-webkit-datetime-edit { padding: 0; line-height: 1.2; }
/* make the whole field open the picker (desktop) while staying invisible */
.booking__form input[type="date"]::-webkit-calendar-picker-indicator {
  position: absolute;
  inset: 0;
  width: auto; height: auto;
  margin: 0;
  opacity: 0;
  cursor: pointer;
}
/* dim an unset date so it reads like the other placeholders */
.booking__form input[type="date"]:not(.has-value):not(:focus) { color: rgba(247,240,232,.55); }

.booking__submit { grid-column: 1 / -1; margin-top: .4rem; background: var(--rose); }
.booking__submit:hover { background: var(--rose-soft); }
.booking__formnote { grid-column: 1 / -1; font-size: .88rem; color: var(--rose-soft); min-height: 1.2em; }

/* ===== Footer ===== */
.footer {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: clamp(2.5rem, 5vw, 3.5rem) clamp(1.25rem, 4vw, 3.5rem);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1.5rem;
}
.footer__brand p { font-size: .9rem; color: rgba(44,26,34,.6); margin-top: .3rem; }
.footer__links { display: flex; gap: 1.6rem; }
.footer__links a { font-size: .95rem; transition: color .3s; }
.footer__links a:hover { color: var(--rose); }
.footer__bottom {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: .6rem 1.5rem;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
}
.footer__copy, .footer__credit { font-size: .82rem; color: rgba(44,26,34,.5); margin: 0; }
.footer__credit a { color: var(--rose); font-weight: 500; transition: color .3s; }
.footer__credit a:hover { color: var(--plum); }

/* ===== Scroll to top ===== */
.to-top {
  position: fixed;
  right: clamp(1rem, 3vw, 2rem);
  bottom: clamp(1rem, 3vw, 2rem);
  z-index: 60;
  width: 50px;
  height: 50px;
  display: grid;
  place-items: center;
  border: none;
  border-radius: 50%;
  background: var(--rose);
  color: var(--cream);
  cursor: pointer;
  box-shadow: 0 14px 30px -10px rgba(90,27,61,.6);
  opacity: 0;
  visibility: hidden;
  transform: translateY(16px) scale(.9);
  transition: opacity .35s var(--ease), transform .35s var(--ease), background .3s, visibility .35s;
}
.to-top.show { opacity: 1; visibility: visible; transform: none; }
.to-top:hover { background: var(--plum); transform: translateY(-3px); }
.to-top svg {
  width: 22px; height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* ===== Reveal animation ===== */
.reveal { opacity: 0; transform: translateY(22px); }
.reveal.is-in {
  opacity: 1; transform: none;
  transition: opacity .8s var(--ease) var(--d, 0s), transform .8s var(--ease) var(--d, 0s);
}

/* ===== Responsive ===== */

/* offset anchor jumps so headings clear the sticky nav */
section[id] { scroll-margin-top: 84px; }

/* Large tablets / small laptops */
@media (max-width: 1024px) {
  .cards { grid-template-columns: repeat(2, 1fr); }
}

/* Tablets — collapse the nav to a hamburger and stack split layouts */
@media (max-width: 860px) {
  .nav__links {
    position: fixed;
    inset: 62px 0 auto 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 1.3rem;
    padding: 1.6rem clamp(1.25rem, 4vw, 3.5rem) 2rem;
    background: rgba(253,241,246,.97);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--line);
    box-shadow: 0 20px 40px -24px rgba(90,27,61,.4);
    transform: translateY(-130%);
    transition: transform .4s var(--ease);
  }
  .nav__links.open { transform: translateY(0); }
  .nav__cta { margin-top: .2rem; }
  .nav__toggle { display: flex; }
  .nav__toggle.open span:nth-child(1){ transform: translateY(7px) rotate(45deg); }
  .nav__toggle.open span:nth-child(2){ opacity: 0; }
  .nav__toggle.open span:nth-child(3){ transform: translateY(-7px) rotate(-45deg); }

  .hero, .about, .booking__inner { grid-template-columns: 1fr; }
  .hero { text-align: center; }
  .hero__lead { margin-left: auto; margin-right: auto; }
  .hero__actions, .hero__meta { justify-content: center; }
  .hero__visual { max-width: 340px; margin: 1.5rem auto 0; }
  .about { text-align: center; }
  .about__media { max-width: 340px; margin: 0 auto; }
  .about__points { justify-items: center; }
  .about__points li { text-align: left; }
}

/* Large phones */
@media (max-width: 640px) {
  .cards, .gallery__grid { grid-template-columns: 1fr; }
  .booking__form { grid-template-columns: 1fr; }
  .footer { flex-direction: column; text-align: center; gap: 1.2rem; }
  .footer__bottom { justify-content: center; text-align: center; }
}

/* Small phones — tighten type & spacing */
@media (max-width: 420px) {
  .nav { padding: .9rem 1.1rem; }
  .brand__text { font-size: 1.2rem; }
  .hero__title { font-size: clamp(2.4rem, 13vw, 3rem); }
  .hero__meta { gap: 1.4rem 2rem; }
  .hero__meta strong { font-size: 1.4rem; }
  .hero__badge { left: 8px; padding: .7rem 1rem; }
  .card, .booking__form { padding: 1.4rem; }
  .btn { padding: .85rem 1.3rem; width: 100%; }
  .hero__actions, .hero__actions .btn { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
}
