/* ==========================================================================
   Tiny Nails & Beauty Spa
   Palette taken from the butterfly logo: magenta, coral, marigold, charcoal.
   ========================================================================== */

:root {
  --magenta: #d4246f;
  --magenta-dark: #a8124f;
  --coral: #ee5a7c;
  --marigold: #f7a541;
  --gold: #fbc94a;

  --ink: #2e2729;
  --ink-soft: #6b5f62;
  --cream: #fbf6f1;
  --blush: #f7e6e4;
  --sand: #f1e4d8;
  --white: #ffffff;
  --line: rgba(46, 39, 41, 0.1);

  --grad: linear-gradient(120deg, var(--magenta) 0%, var(--coral) 55%, var(--marigold) 100%);

  --font-display: "Cormorant Garamond", Georgia, serif;
  --font-body: "Outfit", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-script: "Allura", cursive;

  --radius: 22px;
  --radius-sm: 12px;
  --shadow: 0 24px 60px -24px rgba(120, 30, 60, 0.28);
  --shadow-sm: 0 8px 24px -12px rgba(120, 30, 60, 0.22);
  --header-h: 76px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); }

body {
  margin: 0;
  font-family: var(--font-body);
  font-weight: 300;
  font-size: 1.0625rem;
  line-height: 1.7;
  color: var(--ink);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
svg { flex-shrink: 0; }

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.08;
  margin: 0 0 .5em;
  letter-spacing: -0.01em;
}
h1 em, h2 em {
  font-style: italic;
  font-weight: 500;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
p { margin: 0 0 1em; }

.container { width: min(1180px, 100% - 2.5rem); margin-inline: auto; }
.center { text-align: center; justify-content: center; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: .6em;
  font-size: .78rem;
  font-weight: 500;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--magenta);
  margin-bottom: 1rem;
}
.eyebrow::before {
  content: "";
  width: 28px;
  height: 1px;
  background: currentColor;
}
.eyebrow-light { color: var(--gold); }

/* Buttons ---------------------------------------------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .55em;
  padding: .95em 1.7em;
  border-radius: 999px;
  font: 500 .95rem/1 var(--font-body);
  letter-spacing: .02em;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease), background .3s, color .3s;
}
.btn svg { width: 1.2em; height: 1.2em; }
.btn:hover { transform: translateY(-2px); }

.btn-primary {
  color: var(--white);
  background: var(--grad);
  background-size: 160% 100%;
  box-shadow: 0 10px 28px -10px rgba(212, 36, 111, .6);
}
.btn-primary:hover { background-position: 100% 0; box-shadow: 0 16px 34px -12px rgba(212, 36, 111, .7); }

.btn-ghost { border-color: rgba(46, 39, 41, .2); color: var(--ink); background: transparent; }
.btn-ghost:hover { border-color: var(--magenta); color: var(--magenta); }

.btn-light { background: var(--white); color: var(--magenta-dark); }
.btn-light:hover { box-shadow: var(--shadow-sm); }

.btn-sm { padding: .7em 1.3em; font-size: .88rem; }

.link {
  color: var(--magenta);
  font-weight: 500;
  border-bottom: 1px solid transparent;
  transition: border-color .2s;
}
.link:hover { border-color: currentColor; }

/* Header ----------------------------------------------------------------- */

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 50;
  height: var(--header-h);
  transition: background .35s, box-shadow .35s, backdrop-filter .35s;
}
/* No backdrop-filter here: it would become the containing block for the
   fixed mobile menu and trap it inside the header bar. */
.site-header.is-scrolled {
  background: rgba(251, 246, 241, .96);
  box-shadow: 0 1px 0 var(--line);
}
.header-inner { height: 100%; display: flex; align-items: center; justify-content: space-between; }

.brand { position: relative; z-index: 2; display: inline-flex; align-items: center; gap: .55rem; }
.brand-mark { height: 42px; width: auto; }
.brand-wordmark { height: 48px; width: auto; }

.nav { display: flex; align-items: center; gap: 2rem; }
.nav a:not(.btn) {
  position: relative;
  font-size: .95rem;
  font-weight: 400;
  color: var(--ink-soft);
  transition: color .2s;
}
.nav a:not(.btn)::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -4px;
  height: 1px;
  background: var(--magenta);
  transform: scaleX(0);
  transition: transform .3s var(--ease);
}
.nav a:not(.btn):hover,
.nav a[aria-current="page"] { color: var(--ink); }
.nav a:not(.btn):hover::after,
.nav a[aria-current="page"]::after { transform: scaleX(1); }

.nav-toggle {
  display: none;
  width: 44px; height: 44px;
  border: 0; background: transparent;
  position: relative;
  cursor: pointer;
}
.nav-toggle span {
  position: absolute;
  left: 11px; right: 11px;
  height: 1.5px;
  background: var(--ink);
  transition: transform .3s var(--ease), top .3s var(--ease);
}
.nav-toggle span:first-child { top: 18px; }
.nav-toggle span:last-child { top: 25px; }
.nav-open .nav-toggle span:first-child { top: 21.5px; transform: rotate(45deg); }
.nav-open .nav-toggle span:last-child { top: 21.5px; transform: rotate(-45deg); }

/* Hero ------------------------------------------------------------------- */

.hero {
  position: relative;
  padding: calc(var(--header-h) + 4rem) 0 5rem;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
}
.hero-glow {
  position: absolute;
  inset: -20% -10% auto auto;
  width: 70vw; height: 70vw;
  max-width: 900px; max-height: 900px;
  background:
    radial-gradient(circle at 40% 40%, rgba(238, 90, 124, .22), transparent 60%),
    radial-gradient(circle at 70% 60%, rgba(247, 165, 65, .2), transparent 55%);
  filter: blur(20px);
  pointer-events: none;
}
.hero-inner {
  position: relative;
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 4rem;
  align-items: center;
}
.hero h1 { font-size: clamp(3rem, 6.4vw, 5.6rem); }
.lead { font-size: 1.15rem; color: var(--ink-soft); max-width: 34rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .9rem; margin-top: 2rem; }

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 2.5rem;
  list-style: none;
  padding: 0;
  margin: 3rem 0 0;
  font-size: .92rem;
  color: var(--ink-soft);
}
.hero-meta strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.8rem;
  font-weight: 600;
  color: var(--ink);
  line-height: 1.1;
}

.hero-visual { position: relative; aspect-ratio: 1 / 1.08; }
.hero-frame {
  position: absolute;
  margin: 0;
  overflow: hidden;
  box-shadow: var(--shadow);
  background: var(--blush);
}
.hero-frame-main {
  inset: 0 0 8% 16%;
  border-radius: 240px 240px var(--radius) var(--radius);
}
.hero-frame-small {
  width: 42%;
  aspect-ratio: 3 / 4;
  left: 0; bottom: 0;
  border-radius: var(--radius);
  border: 6px solid var(--cream);
}
.hero-frame img, .g-item img, .about-photo img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 1.2s var(--ease);
}
.hero-frame:hover img { transform: scale(1.04); }

.hero-badge {
  position: absolute;
  right: -4%; top: 12%;
  width: 118px; height: 118px;
  border-radius: 50%;
  background: var(--white);
  box-shadow: var(--shadow-sm);
  display: grid;
  place-items: center;
  align-content: center;
  text-align: center;
  font-size: .78rem;
  font-weight: 500;
  line-height: 1.25;
  letter-spacing: .04em;
  animation: float 6s ease-in-out infinite;
}
.hero-badge img { width: 44px; height: auto; margin-bottom: 4px; }

@keyframes float { 50% { transform: translateY(-10px); } }

/* Image fallbacks (shown until real photos are added) -------------------- */

figure.img-fallback {
  background:
    radial-gradient(circle at 30% 25%, rgba(255,255,255,.5), transparent 45%),
    linear-gradient(145deg, var(--blush), #f4cfd3 50%, #f9dcb9);
}
.img-fallback img { display: none; }
.img-fallback::after {
  content: attr(data-label);
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-family: var(--font-script);
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  color: rgba(168, 18, 79, .55);
}

/* Marquee ---------------------------------------------------------------- */

.marquee {
  background: var(--ink);
  color: var(--cream);
  overflow: hidden;
  padding: 1.15rem 0;
}
.marquee-track {
  display: flex;
  align-items: center;
  gap: 2.2rem;
  width: max-content;
  animation: marquee 34s linear infinite;
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-style: italic;
  white-space: nowrap;
}
.marquee-track i {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--grad);
}
@keyframes marquee { to { transform: translateX(-50%); } }

/* Sections --------------------------------------------------------------- */

.section { padding: 7rem 0; }
.section-head { max-width: 40rem; margin: 0 auto 4rem; text-align: center; }
.section-head .eyebrow::after { content: ""; width: 28px; height: 1px; background: currentColor; }
.section-head h2 { font-size: clamp(2.4rem, 4.5vw, 3.6rem); }
.section-head p { color: var(--ink-soft); }

/* Services --------------------------------------------------------------- */

/* Two columns so each card has room for a price list */
.service-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}
.service-card {
  position: relative;
  background: var(--white);
  border-radius: var(--radius);
  padding: 2.2rem 1.8rem 2rem;
  border: 1px solid var(--line);
  transition: transform .45s var(--ease), box-shadow .45s var(--ease), border-color .45s;
  overflow: hidden;
}
.service-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 3px;
  background: var(--grad);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .5s var(--ease);
}
.service-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: transparent; }
.service-card:hover::before { transform: scaleX(1); }

.service-icon {
  width: 56px; height: 56px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  background: var(--blush);
  color: var(--magenta);
  margin-bottom: 1.4rem;
}
.service-icon svg { width: 28px; height: 28px; }
.service-card h3 { font-size: 1.7rem; margin-bottom: .35em; }
.service-card p { color: var(--ink-soft); font-size: .98rem; }
.service-card ul { list-style: none; padding: 1rem 0 0; margin: 0; border-top: 1px dashed var(--line); }
.service-card li {
  position: relative;
  padding: .3rem 0 .3rem 1.2rem;
  font-size: .95rem;
}
.service-card li::before {
  content: "";
  position: absolute;
  left: 0; top: .95em;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--coral);
}

.service-card .price-list li { display: flex; align-items: baseline; gap: .75rem; padding: .45rem 0 .45rem 1.2rem; }
.price-name { flex: 1; }
.price-name small { display: block; font-size: .78rem; color: var(--ink-soft); }
.price { font-weight: 500; color: var(--magenta-dark); white-space: nowrap; }

.price-note {
  margin-top: 3rem;
  padding: 2rem 2.5rem;
  border-radius: var(--radius);
  background: var(--grad);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}
.price-note h3 { font-size: 1.9rem; margin-bottom: .2em; }
.price-note p { margin: 0; opacity: .92; max-width: 38rem; }

/* Specials --------------------------------------------------------------- */

.specials { background: var(--ink); color: var(--cream); position: relative; overflow: hidden; }
.specials::after {
  content: "";
  position: absolute;
  right: -10%; top: -40%;
  width: 600px; height: 600px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(212, 36, 111, .35), transparent 65%);
  pointer-events: none;
}
.specials-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 4rem;
  align-items: center;
}
.specials h2 { font-size: clamp(2.4rem, 4.5vw, 3.6rem); }
.specials p { color: rgba(251, 246, 241, .75); max-width: 32rem; margin-bottom: 2rem; }
.specials-inner + .specials-inner {
  margin-top: 4rem;
  padding-top: 4rem;
  border-top: 1px solid rgba(251, 246, 241, .14);
}
.specials-list { list-style: none; padding: 0; margin: 0; }
.specials-list li {
  display: flex;
  align-items: baseline;
  gap: 1.5rem;
  padding: 1.4rem 0;
  border-bottom: 1px solid rgba(251, 246, 241, .14);
  font-family: var(--font-display);
  font-size: 1.8rem;
}
.specials-list li:first-child { border-top: 1px solid rgba(251, 246, 241, .14); }
.specials-list span { font-family: var(--font-body); font-size: .8rem; letter-spacing: .15em; color: var(--gold); }

/* Gallery ---------------------------------------------------------------- */

.gallery { background: linear-gradient(var(--cream), var(--blush)); }
/* Even square tiles; 12 photos fill 4, 3 and 2 columns with no gaps */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  margin-bottom: 3rem;
}
.g-item {
  position: relative;
  margin: 0;
  aspect-ratio: 1;
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: var(--sand);
}
.g-item:hover img { transform: scale(1.06); }
.gallery .center { display: flex; }

/* About ------------------------------------------------------------------ */

.about-inner {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 5rem;
  align-items: center;
}
.about-photo {
  position: relative;
  margin: 0;
  aspect-ratio: 4 / 5;
  border-radius: var(--radius) 200px var(--radius) var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}
.about-copy h2 { font-size: clamp(2.4rem, 4.5vw, 3.4rem); }
.about-copy > p { color: var(--ink-soft); }

.values { list-style: none; padding: 0; margin: 2rem 0 0; display: grid; gap: 1.1rem; }
.values li { display: flex; gap: 1rem; align-items: flex-start; }
.values svg {
  width: 32px; height: 32px;
  padding: 7px;
  border-radius: 50%;
  background: var(--blush);
  color: var(--magenta);
}
.values strong { display: block; font-weight: 500; }
.values span { color: var(--ink-soft); font-size: .95rem; }

/* Visit ------------------------------------------------------------------ */

.visit { background: var(--white); }
.visit-grid {
  display: grid;
  grid-template-columns: 1fr 1.25fr;
  gap: 2rem;
  align-items: stretch;
}
.visit-cards { display: grid; gap: 1rem; }
.info-card {
  display: flex;
  gap: 1.2rem;
  padding: 1.6rem 1.8rem;
  border-radius: var(--radius);
  background: var(--cream);
  border: 1px solid var(--line);
}
.info-card > svg { width: 26px; height: 26px; color: var(--magenta); margin-top: .3rem; }
.info-card h3 { font-family: var(--font-body); font-size: 1rem; font-weight: 600; margin-bottom: .4rem; }
.info-card p { margin: 0 0 .5rem; color: var(--ink-soft); }

.hours { display: grid; grid-template-columns: auto auto; gap: .2rem 1.5rem; margin: 0 0 .6rem; color: var(--ink-soft); }
.hours dd { margin: 0; color: var(--ink); font-weight: 400; }

.open-status { display: inline-flex; align-items: center; gap: .5rem; font-size: .88rem; font-weight: 500; margin: 0; }
.open-status::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.open-status.is-open { color: #1f8a4c; }
.open-status.is-closed { color: var(--magenta); }
.open-status:empty { display: none; }

.map {
  border-radius: var(--radius);
  overflow: hidden;
  min-height: 380px;
  background: var(--sand);
  border: 1px solid var(--line);
}
.map iframe { width: 100%; height: 100%; min-height: 380px; border: 0; filter: saturate(.85); }

/* CTA -------------------------------------------------------------------- */

.cta { padding: 7rem 0; background: var(--blush); text-align: center; }
.cta-inner { max-width: 40rem; }
.cta-mark { width: 76px; height: auto; margin: 0 auto 1.2rem; display: block; }
.cta h2 { font-size: clamp(2.2rem, 4vw, 3.2rem); }
.cta p { color: var(--ink-soft); }
.cta .hero-actions { justify-content: center; }

/* Footer ----------------------------------------------------------------- */

.site-footer { background: var(--ink); color: rgba(251, 246, 241, .7); padding: 3.5rem 0 2.5rem; font-size: .92rem; }
/* Leave room under the footer so the floating WhatsApp button never covers its links */
@media (max-width: 880px) { .site-footer { padding-bottom: 6.5rem; } }
.footer-inner { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 1rem; }
.footer-inner p { margin: 0; }
.socials { display: flex; gap: .8rem; }
.socials a {
  width: 42px; height: 42px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  border: 1px solid rgba(251, 246, 241, .2);
  transition: background .3s, border-color .3s, color .3s;
}
.socials a:hover { background: var(--magenta); border-color: var(--magenta); color: var(--white); }
.socials svg { width: 18px; height: 18px; }
.copyright { font-size: .82rem; opacity: .6; }
.copyright a { text-decoration: underline; text-underline-offset: 2px; }
.copyright a:hover { color: var(--white); }

/* Floating WhatsApp ------------------------------------------------------ */

.float-wa {
  position: fixed;
  right: 1.25rem; bottom: 1.25rem;
  z-index: 40;
  width: 58px; height: 58px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #25d366;
  color: var(--white);
  box-shadow: 0 12px 30px -8px rgba(37, 211, 102, .6);
  transform: scale(0);
  transition: transform .4s var(--ease);
}
.float-wa.is-visible { transform: scale(1); }
.float-wa:hover { transform: scale(1.08); }
.float-wa svg { width: 30px; height: 30px; }

/* Reveal on scroll ------------------------------------------------------- */

.reveal { opacity: 0; transform: translateY(28px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.reveal.is-in { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }

/* Responsive ------------------------------------------------------------- */

@media (max-width: 1080px) {
  .gallery-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 880px) {
  :root { --header-h: 68px; }

  .nav-toggle { display: block; z-index: 2; }
  .nav {
    position: fixed;
    inset: 0;
    flex-direction: column;
    justify-content: center;
    gap: 1.8rem;
    background: var(--cream);
    opacity: 0;
    visibility: hidden;
    transition: opacity .35s, visibility .35s;
  }
  .nav a:not(.btn) { font-family: var(--font-display); font-size: 2.2rem; color: var(--ink); }
  .nav a[aria-current="page"] { color: var(--magenta); }
  .nav .nav-cta { margin-top: .6rem; padding: 1em 2.4em; font-size: 1rem; }
  .nav-open .nav { opacity: 1; visibility: visible; }
  .nav-open { overflow: hidden; }
  .nav-open .float-wa { transform: scale(0); }
  .site-header { background: rgba(251, 246, 241, .96); }

  .hero { min-height: auto; padding-top: calc(var(--header-h) + 2.5rem); }
  .hero-inner, .specials-inner, .about-inner, .visit-grid { grid-template-columns: 1fr; gap: 3rem; }
  .hero-visual { max-width: 480px; width: 100%; margin-inline: auto; }
  .hero-badge { right: 0; }
  .about-photo { max-width: 460px; margin-inline: auto; width: 100%; }

  .section, .cta { padding: 5rem 0; }
  .price-note { flex-direction: column; align-items: flex-start; padding: 2rem; }
}

@media (max-width: 560px) {
  .container { width: calc(100% - 2rem); }
  .service-grid { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); gap: .6rem; }
  .hero-meta { gap: 1.5rem; }
  .hero-actions .btn { flex: 1 1 100%; }
  .hero-badge { width: 96px; height: 96px; font-size: .7rem; }
  .hero-badge img { width: 36px; }
  .specials-list li { font-size: 1.5rem; }
  .info-card { flex-direction: column; gap: .5rem; padding: 1.4rem; }
  .info-card > svg { margin-top: 0; }
  .hours { grid-template-columns: 1fr auto; }
  .hours dd { white-space: nowrap; text-align: right; }
  .price-note .btn, .specials .btn { width: 100%; }
  .map, .map iframe { min-height: 300px; }
  .float-wa { width: 54px; height: 54px; right: 1rem; bottom: max(1rem, env(safe-area-inset-bottom)); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
  html { scroll-behavior: auto; }
}

/* CMS preview banner (only on /preview) ---------------------------------- */

.preview-bar {
  position: fixed;
  left: 50%; bottom: 1rem;
  transform: translateX(-50%);
  z-index: 100;
  padding: .7rem 1.2rem;
  border-radius: 999px;
  background: var(--ink);
  color: var(--cream);
  font-size: .85rem;
  box-shadow: var(--shadow-sm);
  max-width: calc(100% - 2rem);
  text-align: center;
}
