/* NK Nails & Spa — marketing site styles.
   Reuses the design-system tokens (colors, type, spacing, fonts) verbatim;
   this file only translates the prototype's inline component styles into
   real CSS classes. */
@import "design-system/styles.css";

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; overflow-x: clip; }
body {
  font-family: var(--font-body);
  color: var(--text-body);
  background: var(--bg-page);
  line-height: var(--lh-body);
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; }
img { max-width: 100%; }

.wrap { max-width: var(--wrap-max); margin: 0 auto; padding: 0 var(--wrap-pad); }
.section { padding: var(--space-9) 0; }
/* sticky-header offset for anchor scrolling — native, no JS */
:where(section[id], main[id]) { scroll-margin-top: 84px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  font-family: var(--font-body); font-size: var(--fs-sm); letter-spacing: .04em;
  padding: 14px 28px; min-height: 46px; border-radius: var(--radius-pill);
  border: 1px solid transparent; cursor: pointer; text-decoration: none; white-space: nowrap;
  transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease),
              background var(--dur) var(--ease), color var(--dur) var(--ease),
              border-color var(--dur) var(--ease);
}
.btn:disabled { opacity: .5; cursor: not-allowed; }
.btn--full { width: 100%; }
.btn--primary { background: var(--action-primary); color: #fff; box-shadow: var(--shadow-cta); }
.btn--primary:not(:disabled):hover { background: var(--action-primary-hover); transform: var(--lift); }
.btn--ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn--ghost:not(:disabled):hover { border-color: var(--sky-deep); color: var(--sky-deep); transform: var(--lift); }
.btn--gold { background: var(--action-gold); color: #fff; box-shadow: var(--shadow-gold); }
.btn--gold:not(:disabled):hover { background: var(--action-gold-hover); transform: var(--lift); }
.btn:not(:disabled):active { transform: translateY(1px); }

/* ---------- Eyebrow / Rule / SectionHead ---------- */
.eyebrow {
  font-family: var(--font-body); font-size: var(--eyebrow-size);
  letter-spacing: var(--eyebrow-spacing); text-transform: uppercase;
  color: var(--text-accent); font-weight: var(--fw-medium);
}
.rule { width: 48px; height: 1px; background: var(--gold); margin: 18px 0; }
.section-head { max-width: 640px; }
.section-head--center { margin: 0 auto; text-align: center; }
.section-head--center .rule { margin: 18px auto; }
.section-head h2 {
  font-family: var(--font-display); font-weight: var(--fw-medium);
  line-height: var(--lh-display); font-size: var(--fs-h2); color: var(--text-heading);
}
.section-head .lede {
  margin-top: 14px; color: var(--text-muted); font-weight: var(--fw-light);
  font-size: var(--fs-lg); line-height: var(--lh-body);
}

/* ---------- Card ---------- */
.card {
  background: var(--bg-surface); border: var(--border); border-radius: var(--radius);
  padding: 34px 32px; box-shadow: var(--shadow); transition: transform .3s var(--ease);
}
.card--interactive:hover { transform: var(--lift-card); border-color: var(--border-gold); box-shadow: var(--shadow); }
.card h3 {
  font-family: var(--font-display); font-weight: var(--fw-medium); font-size: var(--fs-h3);
}

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50; background: rgba(245,250,253,.85);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap {
  height: 74px; display: flex; align-items: center; justify-content: space-between; gap: 28px;
}
.site-nav { display: flex; align-items: center; gap: 34px; }
.site-nav a {
  font-family: var(--font-body); font-size: .9rem; color: var(--ink-soft);
  text-decoration: none; transition: color var(--dur) var(--ease); white-space: nowrap;
}
.site-nav a:hover { color: var(--ink); }
.nav-toggle { display: none; background: none; border: 0; font-size: 1.5rem; color: var(--ink); cursor: pointer; }

/* ---------- Logo ---------- */
.logo { display: inline-flex; align-items: baseline; gap: .5rem; text-decoration: none; }
.logo .mark {
  font-family: var(--font-display); font-weight: var(--fw-semibold); font-size: 1.6rem;
  letter-spacing: .02em; color: var(--ink); white-space: nowrap;
}
.logo .mark b { color: var(--sky-deep); font-weight: var(--fw-semibold); }
.logo .tagline {
  font-family: var(--font-body); font-size: .62rem; letter-spacing: .28em;
  text-transform: uppercase; color: var(--ink-soft); white-space: nowrap;
}
.logo--dark .mark { color: #fff; }
.logo--dark .mark b { color: var(--sky); }
.logo--dark .tagline { color: var(--text-on-ink); }
.logo--lg .mark { font-size: 2rem; }

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden; text-align: center;
  background: var(--ink); /* fallback while the photo loads */
  padding: clamp(90px,13vw,170px) 0 clamp(100px,14vw,180px);
}
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: 0;
  background:
    linear-gradient(180deg, rgba(18,36,50,.62) 0%, rgba(18,36,50,.42) 42%, rgba(18,36,50,.66) 100%),
    url("design-system/assets/photos/hero-background.jpg") center/cover no-repeat;
  animation: hero-drift 32s ease-in-out infinite alternate;
}
@keyframes hero-drift { from { transform: scale(1); } to { transform: scale(1.07); } }
.hero .inner { position: relative; z-index: 2; max-width: 760px; margin: 0 auto; padding: 0 var(--wrap-pad); }
.hero .eyebrow { color: var(--gold-soft); }
.hero h1 {
  font-family: var(--font-display); font-weight: var(--fw-medium); line-height: var(--lh-display);
  font-size: var(--fs-display); letter-spacing: .01em; margin: 10px 0 0; color: #fff;
  text-shadow: 0 2px 24px rgba(10,22,32,.4);
}
.hero h1 b { font-weight: var(--fw-semibold); font-style: italic; color: #fff; }
.hero .lede {
  font-size: var(--fs-lede); color: rgba(255,255,255,.94); margin: 22px auto 8px;
  max-width: 540px; font-weight: var(--fw-light); line-height: 1.5;
  text-shadow: 0 1px 16px rgba(10,22,32,.35);
}
.hero .cta-row { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; margin-top: 34px; }
.hero .btn--ghost { color: #fff; border-color: rgba(255,255,255,.55); background: rgba(255,255,255,.06); }
.hero .btn--ghost:not(:disabled):hover { background: #fff; color: var(--sky-deeper); border-color: #fff; }
.hero .meta {
  margin-top: 30px; font-size: var(--fs-xs); letter-spacing: .16em;
  text-transform: uppercase; color: rgba(255,255,255,.85);
}
.hero .meta span { margin: 0 10px; }

/* ---------- Trust strip ---------- */
.trust-strip { padding: 26px 0; background: var(--white); border-bottom: 1px solid var(--line); }
.trust-list {
  list-style: none; display: flex; flex-wrap: wrap; justify-content: center;
  gap: 14px 44px;
}
.trust-list li {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: var(--fs-xs); letter-spacing: .14em; text-transform: uppercase;
  color: var(--ink-soft); font-weight: var(--fw-medium);
}
.trust-stars { color: var(--gold); letter-spacing: .08em; font-size: .95rem; }

/* ---------- Promise ---------- */
.promise { background: var(--ivory); border-top: 1px solid var(--sand); border-bottom: 1px solid var(--sand); }
.promise .grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 60px; align-items: stretch; }
.promise .body { color: var(--ink-soft); font-weight: var(--fw-light); font-size: var(--fs-lg); margin-top: 18px; line-height: var(--lh-body); }
.promise ul { list-style: none; margin: 28px 0 0; display: flex; flex-direction: column; gap: 18px; }
.promise li { display: flex; gap: 14px; align-items: flex-start; font-size: .98rem; }
.promise li .dot { flex: none; width: 8px; height: 8px; border-radius: 50%; background: var(--gold); margin-top: 9px; }

.photo { position: relative; border-radius: var(--radius); overflow: hidden; min-height: 220px; }
.photo--tall { min-height: 420px; }
.photo img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* ---------- Services ---------- */
.services .grid { display: grid; grid-template-columns: repeat(2,1fr); gap: 28px; }
.services .card--span { grid-column: 1 / -1; }
.services .card-head {
  display: flex; align-items: baseline; justify-content: space-between; gap: 16px;
}
.services .tag {
  font-family: var(--font-body); font-size: .66rem; letter-spacing: .22em;
  text-transform: uppercase; color: var(--gold); font-weight: var(--fw-medium);
}
.services .divider { height: 1px; background: var(--line); margin: 18px 0 6px; }
.services .note { color: var(--ink-soft); font-weight: var(--fw-light); font-size: .92rem; margin-top: 18px; }
.price-list { list-style: none; }
.price-list--2col { columns: 2; column-gap: 40px; }
.price-item {
  display: flex; justify-content: space-between; gap: 16px; align-items: baseline;
  padding: 9px 0; border-bottom: 1px dotted #E7EEF3; break-inside: avoid;
}
.price-item:last-child { border-bottom: 0; }
.price-item .name { font-weight: var(--fw-regular); color: var(--ink); }
.price-item .name small {
  display: block; color: var(--ink-soft); font-weight: var(--fw-light);
  font-size: .8rem; line-height: 1.4; margin-top: 2px;
}
.price-item .price {
  flex: none; color: var(--text-price); font-weight: var(--fw-medium); font-variant-numeric: tabular-nums;
}

/* ---------- Extras ---------- */
.extras { background: linear-gradient(180deg, var(--white), var(--cloud)); }
.extras .grid { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
.extras .card { padding: 38px 36px; }
.extras .card p { color: var(--ink-soft); font-weight: var(--fw-light); margin-top: 10px; }
.extras .card h3 { font-size: 1.9rem; }
.pill-row { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 20px; }
.chip {
  display: inline-flex; align-items: center; font-family: var(--font-body); font-size: var(--fs-xs);
  letter-spacing: .02em; background: var(--chip-bg); color: var(--chip-text);
  padding: 6px 14px; border-radius: var(--radius-pill);
}
.ptag {
  display: inline-flex; align-items: center; font-family: var(--font-body); font-size: var(--fs-xs);
  color: var(--ink); border: 1px solid var(--line); padding: 7px 16px;
  border-radius: var(--radius-pill); background: transparent;
}

/* ---------- Gallery ---------- */
.gallery .grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 18px; }
.gallery .photo--feature { grid-column: span 2; grid-row: span 2; }
.gallery .photo img { transition: transform .6s var(--ease); }
.gallery .photo:hover img { transform: scale(1.05); }

/* ---------- Team ---------- */
.team { background: var(--ivory); border-top: 1px solid var(--sand); border-bottom: 1px solid var(--sand); }
.team-carousel { position: relative; }
/* Horizontal carousel: native scroll-snap does the swiping; JS only adds arrows.
   ponytail: gap here (24px) is mirrored in app.js page-step math — keep in sync. */
.team-grid {
  list-style: none; display: flex; gap: 24px;
  overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth;
  padding-bottom: 8px; /* headroom so hover scale isn't clipped */
  scrollbar-width: none; -ms-overflow-style: none;
}
.team-grid::-webkit-scrollbar { display: none; }
.team .member {
  text-align: center; flex: 0 0 auto;
  width: clamp(160px, 42vw, 200px); scroll-snap-align: start;
}
.team .member .photo { aspect-ratio: 2 / 3; min-height: 0; }
.carousel-arrow {
  position: absolute; top: 44%; transform: translateY(-50%); z-index: 2;
  width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center;
  background: color-mix(in srgb, var(--white) 88%, transparent); color: var(--ink);
  border: 1px solid var(--line); box-shadow: var(--shadow-soft);
  font-size: 26px; line-height: 1; cursor: pointer; -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px);
  transition: transform var(--dur) var(--ease), color var(--dur) var(--ease), opacity var(--dur) var(--ease);
}
.carousel-arrow:hover { color: var(--sky-deep); transform: translateY(-50%) scale(1.06); }
.carousel-arrow--prev { left: 4px; }
.carousel-arrow--next { right: 4px; }
.carousel-arrow[disabled] { opacity: 0; pointer-events: none; }
@media (max-width: 640px) { .carousel-arrow { display: none; } } /* mobile: swipe is natural */
@media (prefers-reduced-motion: reduce) { .team-grid { scroll-behavior: auto; } }
.team .member .photo img { transition: transform .6s var(--ease); }
.team .member:hover .photo img { transform: scale(1.05); }
.team .member-name {
  margin-top: 14px; font-family: var(--font-display); font-weight: var(--fw-medium);
  font-size: var(--fs-lg); color: var(--text-heading);
}

/* ---------- Our Work (reuses .team-carousel/.team-grid carousel) ---------- */
.work { background: var(--white); }
.work .work-item { flex: 0 0 auto; width: clamp(180px, 46vw, 240px); scroll-snap-align: start; }
.work .work-item .photo { aspect-ratio: 4 / 5; min-height: 0; }
.work .work-item .photo img { transition: transform .6s var(--ease); }
.work .work-item:hover .photo img { transform: scale(1.05); }

/* ---------- Reviews ---------- */
.reviews { background: var(--white); }
.reviews .grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.review-card {
  background: var(--bg-surface); border: var(--border); border-radius: var(--radius);
  padding: 30px 28px; box-shadow: var(--shadow-soft);
  display: flex; flex-direction: column; gap: 14px;
}
.review-stars { color: var(--gold); letter-spacing: .12em; font-size: 1rem; }
.review-card blockquote {
  font-family: var(--font-display); font-size: var(--fs-lg); line-height: 1.55;
  color: var(--ink); font-weight: var(--fw-regular);
}
.review-card figcaption {
  margin-top: auto; font-size: var(--fs-xs); letter-spacing: .1em;
  text-transform: uppercase; color: var(--ink-soft);
}
.reviews-cta { text-align: center; margin-top: 40px; }

/* ---------- FAQ ---------- */
.faq { background: var(--ivory); border-top: 1px solid var(--sand); }
.faq-list { max-width: 720px; margin: 0 auto; }
.faq-item {
  background: var(--white); border: var(--border); border-radius: var(--radius);
  box-shadow: var(--shadow-soft); margin-bottom: 14px; overflow: hidden;
}
.faq-item summary {
  cursor: pointer; list-style: none; padding: 20px 24px;
  font-family: var(--font-display); font-weight: var(--fw-medium);
  font-size: 1.15rem; color: var(--text-heading);
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+"; color: var(--gold); font-size: 1.4rem; line-height: 1;
  transition: transform var(--dur) var(--ease); flex: none;
}
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item p {
  padding: 0 24px 22px; color: var(--ink-soft); font-weight: var(--fw-light);
  line-height: var(--lh-body);
}
@media (prefers-reduced-motion: reduce) { .faq-item summary::after { transition: none; } }

/* ---------- Visit ---------- */
.visit { background: var(--white); border-top: 1px solid var(--line); }
.visit .grid { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; align-items: start; }
.info-row { display: flex; gap: 16px; padding: 18px 0; border-bottom: var(--border); }
.info-row--last { border-bottom: 0; }
.info-row .key {
  flex: none; width: 108px; font-size: var(--fs-2xs); letter-spacing: var(--label-spacing);
  text-transform: uppercase; color: var(--text-accent); padding-top: 4px;
}
.info-row .val { font-size: var(--fs-lg); color: var(--ink); }
.info-row .val a { text-decoration: none; }
.info-row .val small { display: block; color: var(--ink-soft); font-weight: var(--fw-light); }
.visit .reassure { margin-top: 24px; font-size: var(--fs-xs); color: var(--ink-soft); font-weight: var(--fw-light); }
.map-frame {
  border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line);
  box-shadow: var(--shadow); height: 100%;
}
.map-frame iframe {
  border: 0; width: 100%; height: 100%; min-height: 380px; display: block; filter: grayscale(.15);
}

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: var(--text-on-ink); padding: 54px 0 40px; text-align: center; }
.site-footer p { margin-top: 6px; font-size: .85rem; letter-spacing: .04em; }
.site-footer .logo-wrap { margin-bottom: 14px; }
.site-footer .social-row { display: flex; gap: 20px; justify-content: center; margin-top: 16px; }
.site-footer .social-row a { color: var(--text-on-ink); transition: color var(--dur) var(--ease); }
.site-footer .social-row a:hover { color: #fff; }
.site-footer .fine { margin-top: 24px; font-size: .72rem; color: #7B8C97; letter-spacing: .05em; }

/* ---------- Scroll reveal (classes added by app.js only) ---------- */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.is-visible { opacity: 1; transform: none; }

/* ---------- Sticky mobile book bar ---------- */
.mobile-book-bar { display: none; }

/* ---------- Responsive ---------- */
@media (max-width: 860px) {
  .mobile-book-bar {
    display: block; position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
    padding: 10px var(--wrap-pad) calc(10px + env(safe-area-inset-bottom));
    background: rgba(245,250,253,.92);
    backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
    border-top: 1px solid var(--line);
  }
  body { padding-bottom: 74px; }
  .nav-toggle { display: block; }
  .header-book { display: none; }
  .logo .tagline { display: none; }
  .logo .mark { font-size: 1.4rem; }
  .site-nav {
    display: none; position: absolute; top: 74px; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: rgba(245,250,253,.97); backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--line); padding: 8px 0;
  }
  .site-nav.open { display: flex; }
  .site-nav a { padding: 14px var(--wrap-pad); font-size: 1rem; }
  .promise .grid, .extras .grid, .visit .grid, .reviews .grid { grid-template-columns: 1fr; gap: 34px; }
  .services .grid { grid-template-columns: 1fr; }
  .services .price-list--2col { columns: 1; }
  .gallery .grid { grid-template-columns: 1fr 1fr; }
  .gallery .photo--feature { grid-column: span 2; grid-row: auto; }
}
@media (max-width: 520px) {
  .gallery .grid { grid-template-columns: 1fr; }
  .gallery .photo--feature { grid-column: auto; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn, .card, .gallery .photo img, .team .member .photo img, .work .work-item .photo img { transition: none; }
  .hero::before { animation: none; }
  .reveal { opacity: 1; transform: none; transition: none; }
}
