/* ==========================================================================
   Icon Nails Studio — Minimal elegant landing
   Brand palette from identity PDF:
     Black       #252525
     Umber       #443A35
     Soft Dune   #E4DDCC
     Vanilla     #F8F4EE
     Classic Taupe #C5B49D
   ========================================================================== */

:root {
  --black: #252525;
  --umber: #443A35;
  --soft-dune: #E4DDCC;
  --vanilla: #F8F4EE;
  --taupe: #C5B49D;
  --white: #FFFFFF;

  --bg: var(--vanilla);
  --surface: var(--white);
  --ink: var(--black);
  --ink-soft: var(--umber);
  --muted: #6B625C;
  --border: rgba(68, 58, 53, 0.14);
  --border-strong: rgba(68, 58, 53, 0.28);
  --accent: var(--umber);
  --accent-warm: #9E4638;

  --serif: 'Cormorant Garamond', 'Playfair Display', 'Times New Roman', Georgia, serif;
  --sans: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;

  --max: 1240px;
  --pad-x: clamp(20px, 5vw, 56px);
  --radius: 2px;

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; display: block; }

a {
  color: inherit;
  text-decoration: none;
  transition: color 200ms var(--ease), opacity 200ms var(--ease);
}

a:hover { opacity: 0.7; }

button { font: inherit; cursor: pointer; }

::selection { background: var(--umber); color: var(--vanilla); }

:focus-visible {
  outline: 2px solid var(--umber);
  outline-offset: 3px;
  border-radius: 2px;
}

/* -------- Typography system -------- */
.eyebrow {
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-soft);
  display: inline-block;
}

h1, h2, h3, h4 {
  font-family: var(--serif);
  font-weight: 400;
  color: var(--ink);
  letter-spacing: -0.01em;
  line-height: 1.08;
  margin: 0;
}

h1 { font-size: clamp(42px, 7vw, 92px); }
h2 { font-size: clamp(34px, 5vw, 62px); }
h3 { font-size: clamp(20px, 2vw, 24px); letter-spacing: 0.14em; text-transform: uppercase; font-family: var(--sans); font-weight: 500; }

p { margin: 0; color: var(--ink-soft); }

.lead {
  font-size: clamp(16px, 1.4vw, 19px);
  line-height: 1.7;
  color: var(--ink-soft);
  max-width: 52ch;
}

/* -------- Buttons -------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 16px 28px;
  min-height: 48px;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  border-radius: var(--radius);
  border: 1px solid transparent;
  transition: all 220ms var(--ease);
  cursor: pointer;
  white-space: nowrap;
}

.btn-primary {
  background: var(--black);
  color: var(--vanilla);
}
.btn-primary:hover {
  background: var(--umber);
  opacity: 1;
  transform: translateY(-1px);
}

.btn-ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--border-strong);
}
.btn-ghost:hover {
  background: var(--ink);
  color: var(--vanilla);
  opacity: 1;
  border-color: var(--ink);
}

/* -------- Layout -------- */
.container {
  max-width: var(--max);
  margin: 0 auto;
  padding-inline: var(--pad-x);
}

section { padding-block: clamp(72px, 10vw, 140px); }

.section-head {
  display: flex;
  flex-direction: column;
  gap: 18px;
  margin-bottom: clamp(40px, 6vw, 72px);
  max-width: 780px;
}

/* -------- Navigation -------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(248, 244, 238, 0.82);
  backdrop-filter: saturate(140%) blur(14px);
  -webkit-backdrop-filter: saturate(140%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color 240ms var(--ease), background 240ms var(--ease);
}

.nav.scrolled {
  border-color: var(--border);
  background: rgba(248, 244, 238, 0.94);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding-block: 18px;
}

.logo {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  line-height: 1;
  gap: 2px;
}
.logo-main {
  font-family: var(--serif);
  font-size: 26px;
  letter-spacing: 0.16em;
  color: var(--ink);
  font-weight: 500;
}
.logo-sub {
  font-family: var(--serif);
  font-style: italic;
  font-size: 13px;
  color: var(--ink-soft);
  letter-spacing: 0.04em;
}

/* When brand.logoImage is set, the JS replaces the spans with an <img>. */
.logo--image {
  gap: 0;
  align-items: center;
}
.logo-img {
  display: block;
  width: auto;
  height: 44px;
  max-width: 200px;
  object-fit: contain;
}
.footer .logo-img { height: 36px; max-width: 180px; }

@media (max-width: 640px) {
  .logo-img { height: 38px; max-width: 160px; }
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 36px;
  list-style: none;
  padding: 0;
  margin: 0;
}
.nav-links a {
  font-size: 13px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-soft);
  font-weight: 500;
}
.nav-links a:hover { color: var(--ink); opacity: 1; }
.nav-links a.active {
  color: var(--ink);
  font-weight: 600;
  position: relative;
}
.nav-links a.active::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: -6px;
  height: 1.5px;
  background: var(--ink);
}

.nav-cta {
  padding: 12px 22px;
  min-height: 42px;
  font-size: 12px;
}

.nav-burger {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--border-strong);
  background: transparent;
  border-radius: var(--radius);
  position: relative;
  flex-shrink: 0;
}
.nav-burger::before,
.nav-burger::after {
  content: "";
  position: absolute;
  left: 12px;
  right: 12px;
  height: 1px;
  background: var(--ink);
  transition: transform 220ms var(--ease), top 220ms var(--ease);
}
.nav-burger::before { top: 17px; }
.nav-burger::after { top: 25px; }
.nav-burger.open::before { top: 21px; transform: rotate(45deg); }
.nav-burger.open::after  { top: 21px; transform: rotate(-45deg); }

@media (max-width: 880px) {
  .nav-links { display: none; }
  .nav-burger { display: block; }
  .nav.open .nav-mobile { display: flex; }

  /* Keep Book Now always visible, just tighter */
  .nav-inner { gap: 10px; padding-block: 14px; }
  .nav-cta {
    padding: 10px 14px;
    min-height: 40px;
    font-size: 11px;
    letter-spacing: 0.14em;
  }
  .logo-main { font-size: 22px; }
  .logo-sub { font-size: 11px; }
}

@media (max-width: 420px) {
  /* Ultra-compact row on very small phones */
  :root { --pad-x: 16px; }
  .nav-cta { padding: 9px 12px; font-size: 10px; letter-spacing: 0.12em; }
  .logo-main { font-size: 20px; letter-spacing: 0.12em; }
  .logo-sub { font-size: 10px; }
}

.nav-mobile {
  display: none;
  flex-direction: column;
  gap: 18px;
  padding: 24px var(--pad-x) 32px;
  background: var(--vanilla);
  border-top: 1px solid var(--border);
}
.nav-mobile a:not(.btn) {
  font-size: 16px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink);
  padding-block: 8px;
}
.nav-mobile a.active {
  font-weight: 600;
  border-left: 2px solid var(--ink);
  padding-left: 12px;
  margin-left: -14px;
}
.nav-mobile .btn {
  align-self: stretch;
  margin-top: 8px;
  font-size: 13px;
  letter-spacing: 0.18em;
  padding: 16px 24px;
}
.nav-mobile .btn-primary { color: var(--vanilla); }

/* -------- Hero -------- */
.hero {
  padding-block: clamp(60px, 8vw, 120px) clamp(60px, 8vw, 120px);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: clamp(32px, 5vw, 80px);
  align-items: center;
}

.hero-text { display: flex; flex-direction: column; gap: 28px; }

.hero h1 {
  font-style: italic;
  font-weight: 400;
}
.hero h1 .accent {
  font-style: normal;
  font-weight: 500;
}

.hero-ctas {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 8px;
}

.hero-media {
  position: relative;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  background: var(--soft-dune);
  border-radius: var(--radius);
}
.hero-media > * {
  width: 100%;
  height: 100%;
}
.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 900ms var(--ease);
}
.hero:hover .hero-media img { transform: scale(1.02); }

.hero-meta {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 24px;
  margin-top: 48px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
  color: var(--ink-soft);
  font-size: 13px;
  letter-spacing: 0.06em;
}

@media (max-width: 880px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-media { aspect-ratio: 4 / 3; order: -1; }
}

/* -------- About -------- */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: clamp(40px, 6vw, 96px);
  align-items: center;
}
.about-media {
  aspect-ratio: 4 / 5;
  background: var(--soft-dune);
  overflow: hidden;
  border-radius: var(--radius);
}
.about-media > * { width: 100%; height: 100%; }
.about-media img { width: 100%; height: 100%; object-fit: cover; }

.about-text { display: flex; flex-direction: column; gap: 22px; }
.about-text h2 { font-style: italic; }

.about-bullets {
  list-style: none;
  padding: 0;
  margin: 12px 0 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.about-bullets li {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  color: var(--ink-soft);
  font-size: 15px;
}
.about-bullets li::before {
  content: "";
  width: 18px;
  height: 1px;
  background: var(--umber);
  margin-top: 12px;
  flex-shrink: 0;
}

@media (max-width: 880px) { .about-grid { grid-template-columns: 1fr; } }

/* -------- Services -------- */
.services {
  background: var(--soft-dune);
}

.services .section-head {
  align-items: center;
  text-align: center;
  margin-left: auto;
  margin-right: auto;
  max-width: 900px;
}
.services h2 {
  font-style: italic;
  font-size: clamp(30px, 4.2vw, 54px);
  line-height: 1.15;
}
.services-note {
  font-size: 14px;
  color: var(--ink-soft);
  font-style: italic;
  margin-top: 8px;
}

/* Tabs — pills, selected = filled black */
.tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  margin-bottom: 40px;
  padding: 0;
  overflow-x: auto;
  scrollbar-width: none;
}
.tabs::-webkit-scrollbar { display: none; }

.tab {
  background: transparent;
  border: 1px solid var(--border-strong);
  padding: 12px 20px;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink);
  border-radius: var(--radius);
  white-space: nowrap;
  transition: background 220ms var(--ease), color 220ms var(--ease), border-color 220ms var(--ease);
  min-height: 42px;
}
.tab:hover {
  background: rgba(68, 58, 53, 0.08);
}
.tab[aria-selected="true"] {
  background: var(--ink);
  color: var(--vanilla);
  border-color: var(--ink);
}

.service-panel { display: none; }
.service-panel.active { display: block; animation: fadeUp 400ms var(--ease); }

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* Per-category lead line */
.service-panel-intro {
  text-align: center;
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(16px, 1.6vw, 19px);
  color: var(--ink-soft);
  margin: 16px auto 48px;
  max-width: 640px;
  line-height: 1.5;
}

/* List — single full-width column */
.service-list {
  display: flex;
  flex-direction: column;
  max-width: 1040px;
  margin: 0 auto;
}

.service-item {
  padding: 26px 0;
  border-bottom: 1px solid rgba(68, 58, 53, 0.12);
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 6px 24px;
  align-items: baseline;
}
.service-item:last-child { border-bottom: 0; }

.service-name {
  font-family: var(--serif);
  font-size: clamp(20px, 2vw, 24px);
  color: var(--ink);
  font-weight: 500;
  letter-spacing: 0;
  line-height: 1.25;
}
.service-price {
  font-family: var(--serif);
  font-size: clamp(20px, 2vw, 24px);
  color: var(--accent-warm);
  font-weight: 500;
  font-style: italic;
  white-space: nowrap;
}
.service-meta {
  grid-column: 1 / -1;
  display: flex;
  gap: 10px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.5;
  flex-wrap: wrap;
}
.service-meta .duration { color: var(--muted); letter-spacing: 0; }
.service-meta .duration + .note::before {
  content: "·";
  margin-right: 10px;
  color: var(--muted);
  opacity: 0.7;
}
.service-meta .note { font-style: normal; }

@media (max-width: 520px) {
  .service-item {
    padding: 22px 0;
    gap: 4px 14px;
  }
}

/* -------- Gallery -------- */
.gallery-carousel { position: relative; margin-top: 8px; }

.gallery-grid {
  display: flex;
  gap: 14px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  padding-bottom: 4px;
}
.gallery-grid::-webkit-scrollbar { display: none; }

.gallery-item {
  flex: 0 0 min(82%, 380px);
  aspect-ratio: 1 / 1;
  background: var(--soft-dune);
  overflow: hidden;
  border-radius: var(--radius);
  scroll-snap-align: start;
}
.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 800ms var(--ease);
}
.gallery-item:hover img { transform: scale(1.05); }

@media (min-width: 720px) {
  .gallery-item { flex-basis: min(32%, 360px); }
}

/* Dots — same visual language as reviews but on light bg */
.gallery-dots {
  display: flex;
  gap: 8px;
  justify-content: center;
  margin-top: 24px;
}
.gallery-dots button {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: rgba(68, 58, 53, 0.22);
  border: 0;
  padding: 0;
  cursor: pointer;
  transition: background 220ms var(--ease), transform 220ms var(--ease);
}
.gallery-dots button:hover { background: rgba(68, 58, 53, 0.45); }
.gallery-dots button.active {
  background: var(--umber);
  transform: scale(1.2);
}

/* -------- Reviews — Instagram-style carousel -------- */
.reviews {
  background: var(--umber);
  color: var(--vanilla);
  padding-block: clamp(56px, 7vw, 96px);
}
.reviews .eyebrow { color: var(--taupe); }
.reviews h2 {
  color: var(--vanilla);
  font-style: italic;
  font-size: clamp(28px, 3.4vw, 44px);
}
.reviews p { color: rgba(248, 244, 238, 0.82); }
.reviews .section-head { margin-bottom: clamp(24px, 3vw, 36px); }

.reviews-carousel { position: relative; margin-top: 8px; }

.reviews-track {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  padding: 4px 0 4px;
  scroll-padding-inline-start: 0;
}
.reviews-track::-webkit-scrollbar { display: none; }

.review {
  flex: 0 0 min(92%, 420px);
  scroll-snap-align: start;
  padding: 24px 24px;
  border: 1px solid rgba(248, 244, 238, 0.16);
  border-radius: var(--radius);
  display: flex;
  flex-direction: column;
  gap: 14px;
  background: rgba(248, 244, 238, 0.03);
}
.review-quote {
  font-family: var(--serif);
  font-size: 16px;
  line-height: 1.55;
  color: var(--vanilla);
  font-style: italic;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 5;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.review-quote::before {
  content: "“";
  font-family: var(--serif);
  font-size: 32px;
  line-height: 0;
  color: var(--taupe);
  display: inline-block;
  margin-right: 4px;
  vertical-align: -6px;
}
.review-author {
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--taupe);
}

/* Dots */
.reviews-dots {
  display: flex;
  gap: 8px;
  justify-content: center;
  margin-top: 20px;
}
.reviews-dots button {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: rgba(248, 244, 238, 0.28);
  border: 0;
  padding: 0;
  cursor: pointer;
  transition: background 220ms var(--ease), transform 220ms var(--ease);
}
.reviews-dots button:hover { background: rgba(248, 244, 238, 0.55); }
.reviews-dots button.active {
  background: var(--taupe);
  transform: scale(1.2);
}

/* -------- Visit -------- */
.visit-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: clamp(32px, 5vw, 72px);
}
.visit-text { display: flex; flex-direction: column; gap: 26px; }
.visit-text h2 { font-style: italic; }

.visit-details { display: flex; flex-direction: column; gap: 18px; margin-top: 8px; }
.visit-row {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 18px;
  padding-block: 12px;
  border-bottom: 1px solid var(--border);
  font-size: 15px;
}
.visit-row .label {
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
  padding-top: 3px;
}
.visit-row .value { color: var(--ink); }
.visit-row .value ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 6px; }
.visit-row .value ul span:first-child { color: var(--ink-soft); display: inline-block; min-width: 150px; }

.visit-directions {
  align-self: flex-start;
  gap: 10px;
}
.visit-directions svg { flex-shrink: 0; }
@media (max-width: 520px) {
  .visit-directions { align-self: stretch; justify-content: center; }
}

.visit-map {
  aspect-ratio: 4 / 5;
  min-height: 420px;
  background: var(--soft-dune);
  overflow: hidden;
  border-radius: var(--radius);
}
.visit-map iframe { width: 100%; height: 100%; border: 0; }

@media (max-width: 880px) { .visit-grid { grid-template-columns: 1fr; } }

/* -------- Footer -------- */
.footer {
  background: var(--black);
  color: var(--soft-dune);
  padding-block: 56px 32px;
}
.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
  align-items: flex-end;
}
.footer .logo-main { color: var(--vanilla); }
.footer .logo-sub { color: var(--taupe); }
.footer-social {
  display: flex;
  gap: 24px;
  list-style: none;
  padding: 0;
  margin: 0;
}
.footer-social a {
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--soft-dune);
}
.footer-meta {
  margin-top: 32px;
  padding-top: 20px;
  border-top: 1px solid rgba(228, 221, 204, 0.14);
  display: flex;
  gap: 24px;
  justify-content: space-between;
  font-size: 12px;
  color: rgba(228, 221, 204, 0.7);
  letter-spacing: 0.08em;
  flex-wrap: wrap;
}
.footer-meta a:hover { color: var(--vanilla); opacity: 1; }

/* -------- Placeholder images (when no image uploaded) -------- */
.ph {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--soft-dune) 0%, var(--taupe) 100%);
  color: var(--umber);
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(20px, 3vw, 32px);
  letter-spacing: 0.04em;
  text-align: center;
  padding: 24px;
  position: relative;
}
.ph::after {
  content: "";
  position: absolute;
  inset: 14px;
  border: 1px solid rgba(68, 58, 53, 0.28);
  border-radius: 2px;
  pointer-events: none;
}

/* -------- Reduced motion -------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* -------- Admin edit indicator (only when ?edit=1) -------- */
body.edit-mode [data-edit] {
  outline: 1px dashed rgba(68, 58, 53, 0.5);
  outline-offset: 4px;
  cursor: text;
  position: relative;
}
body.edit-mode [data-edit]:hover { outline-color: var(--umber); }
body.edit-mode [data-edit]:focus {
  outline: 2px solid var(--umber);
  outline-offset: 4px;
  background: rgba(248, 244, 238, 0.5);
}

/* ==========================================================================
   Services page (/services) — standalone page
   ========================================================================== */
.breadcrumb {
  padding-top: 32px;
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  letter-spacing: 0.04em;
  color: var(--umber);
  display: flex;
  gap: 10px;
  align-items: center;
  opacity: 0.75;
}
.breadcrumb a {
  color: var(--umber);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color 0.15s ease;
}
.breadcrumb a:hover { border-bottom-color: var(--umber); }
.breadcrumb span[aria-current="page"] { color: var(--ink); }
.breadcrumb span[aria-hidden="true"] { opacity: 0.5; }

.services-page {
  padding-top: clamp(60px, 8vw, 120px);
  padding-bottom: 96px;
}

.services-top-cta {
  margin-top: 24px;
  display: flex;
  justify-content: center;
}

.services-footer-cta {
  margin-top: 72px;
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
}

@media (max-width: 640px) {
  .breadcrumb { padding-top: 24px; font-size: 12px; }
  .services-footer-cta { margin-top: 48px; }
}
