/* ============================================================
   Neutral Nail Studio — design tokens (see /design-system/neutral-nail-studio/MASTER.md)
   ============================================================ */
:root {
  --color-primary: #8B4A2B;
  --color-on-primary: #FFFFFF;
  --color-secondary: #B76E79;
  --color-on-secondary: #FFFFFF;
  --color-accent: #B76E79;
  --color-on-accent: #FFFFFF;
  --color-background: #FAF6F0;
  --color-foreground: #2E2620;
  --color-card: #FFFFFF;
  --color-card-foreground: #2E2620;
  --color-muted: #F0E8DE;
  --color-muted-foreground: #6B5B4E;
  --color-border: #E4D8C8;
  --color-destructive: #B3261E;
  --color-on-destructive: #FFFFFF;
  --color-ring: #8B4A2B;
  --color-success: #3F6B4A;

  --font-heading: 'Playfair Display', Georgia, 'Times New Roman', serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  --space-xs: 0.25rem;
  --space-sm: 0.5rem;
  --space-md: 1rem;
  --space-lg: 1.5rem;
  --space-xl: 2rem;
  --space-2xl: 3rem;
  --space-3xl: 4rem;

  --shadow-sm: 0 1px 2px rgba(46, 38, 32, 0.06);
  --shadow-md: 0 4px 10px rgba(46, 38, 32, 0.08);
  --shadow-lg: 0 12px 24px rgba(46, 38, 32, 0.12);
  --shadow-xl: 0 24px 48px rgba(46, 38, 32, 0.16);

  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-full: 999px;

  --container-max: 1200px;
  --transition: 220ms ease;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; scroll-behavior: auto !important; }
}
body {
  margin: 0;
  font-family: var(--font-body);
  background: var(--color-background);
  color: var(--color-foreground);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; }
ul { list-style: none; margin: 0; padding: 0; }
h1, h2, h3, h4 { font-family: var(--font-heading); font-weight: 600; line-height: 1.2; margin: 0 0 var(--space-md); color: var(--color-foreground); }
p { margin: 0 0 var(--space-md); }
input, select, textarea { font-family: inherit; font-size: 1rem; }

/* Focus visibility (a11y) */
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: 3px solid var(--color-ring);
  outline-offset: 2px;
}

.container { max-width: var(--container-max); margin: 0 auto; padding: 0 var(--space-lg); }
@media (min-width: 768px) { .container { padding: 0 var(--space-xl); } }

.section { padding: var(--space-3xl) 0; }
.section--tight { padding: var(--space-2xl) 0; }
.section--muted { background: var(--color-muted); }

.eyebrow {
  display: inline-block;
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-secondary);
  font-weight: 600;
  margin-bottom: var(--space-sm);
}
.section-head { max-width: 640px; margin: 0 auto var(--space-2xl); text-align: center; }
.section-head h2 { font-size: clamp(1.75rem, 3vw, 2.5rem); }
.section-head p { color: var(--color-muted-foreground); font-size: 1.05rem; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.85rem 1.75rem;
  border-radius: var(--radius-full);
  font-weight: 600;
  font-size: 0.95rem;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform var(--transition), box-shadow var(--transition), background var(--transition), color var(--transition), border-color var(--transition);
  white-space: nowrap;
}
.btn-primary { background: var(--color-primary); color: var(--color-on-primary); box-shadow: var(--shadow-sm); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); opacity: 0.95; }
.btn-secondary { background: transparent; color: var(--color-primary); border-color: var(--color-primary); }
.btn-secondary:hover { background: var(--color-primary); color: var(--color-on-primary); }
.btn-ghost { background: transparent; color: var(--color-foreground); border-color: var(--color-border); }
.btn-ghost:hover { border-color: var(--color-primary); color: var(--color-primary); }
.btn-block { width: 100%; }
.btn-lg { padding: 1rem 2.25rem; font-size: 1.05rem; }
.btn[disabled] { opacity: 0.6; cursor: not-allowed; transform: none; }

/* ---------- Header / Nav ---------- */
.topbar {
  background: var(--color-foreground);
  color: #F3ECE3;
  font-size: 0.82rem;
}
.topbar .container { display: flex; align-items: center; justify-content: space-between; padding-top: 0.4rem; padding-bottom: 0.4rem; gap: var(--space-md); flex-wrap: wrap; }
.topbar a { display: inline-flex; align-items: center; gap: 0.35rem; opacity: 0.9; transition: opacity var(--transition); }
.topbar a:hover { opacity: 1; }
.topbar-info { display: flex; gap: var(--space-lg); flex-wrap: wrap; }
.lang-switch { display: flex; gap: 0.4rem; }
.lang-switch a { padding: 0.15rem 0.5rem; border-radius: var(--radius-full); border: 1px solid rgba(255,255,255,0.35); font-weight: 600; }
.lang-switch a[aria-current="true"] { background: #F3ECE3; color: var(--color-foreground); }

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(250, 246, 240, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--color-border);
}
.site-header .container { display: flex; align-items: center; justify-content: space-between; padding-top: var(--space-md); padding-bottom: var(--space-md); }
.brand { display: flex; align-items: center; gap: 0.6rem; font-family: var(--font-heading); font-size: 1.35rem; font-weight: 700; color: var(--color-foreground); cursor: pointer; }
.brand-mark { width: 38px; height: 38px; border-radius: var(--radius-full); background: var(--color-primary); color: var(--color-on-primary); display: flex; align-items: center; justify-content: center; font-family: var(--font-heading); font-size: 1.1rem; flex-shrink: 0; }

.main-nav { display: none; }
.main-nav ul { display: flex; gap: var(--space-xl); align-items: center; }
.main-nav a { font-weight: 500; padding: 0.4rem 0; position: relative; color: var(--color-foreground); cursor: pointer; }
.main-nav a::after {
  content: '';
  position: absolute; left: 0; right: 100%; bottom: -2px; height: 2px;
  background: var(--color-primary);
  transition: right var(--transition);
}
.main-nav a:hover::after, .main-nav a[aria-current="page"]::after { right: 0; }
.main-nav a[aria-current="page"] { color: var(--color-primary); }

.header-cta { display: none; align-items: center; gap: var(--space-md); }
.nav-toggle {
  display: inline-flex; align-items: center; justify-content: center;
  width: 42px; height: 42px; border-radius: var(--radius-sm);
  border: 1px solid var(--color-border); background: var(--color-card); cursor: pointer;
}
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after {
  content: ''; display: block; width: 20px; height: 2px; background: var(--color-foreground); position: relative; transition: all var(--transition);
}
.nav-toggle span::before { position: absolute; top: -6px; }
.nav-toggle span::after { position: absolute; top: 6px; }

.mobile-nav {
  display: none;
  position: fixed; inset: 0; top: var(--mobile-nav-offset, 0);
  background: var(--color-background);
  z-index: 60;
  padding: var(--space-xl) var(--space-lg);
  overflow-y: auto;
}
.mobile-nav.is-open { display: block; }
.mobile-nav ul { display: flex; flex-direction: column; gap: var(--space-lg); font-size: 1.25rem; font-family: var(--font-heading); }
.mobile-nav-close { position: absolute; top: var(--space-lg); right: var(--space-lg); width: 42px; height: 42px; border-radius: var(--radius-full); border: 1px solid var(--color-border); background: var(--color-card); cursor: pointer; }
.mobile-nav-footer { margin-top: var(--space-2xl); display: flex; flex-direction: column; gap: var(--space-md); }

@media (min-width: 1024px) {
  .main-nav { display: block; }
  .header-cta { display: inline-flex; }
  .nav-toggle { display: none; }
}

/* ---------- Hero ---------- */
.hero { padding: var(--space-3xl) 0; overflow: hidden; }
.hero .container { display: grid; gap: var(--space-2xl); align-items: center; }
.hero-copy h1 { font-size: clamp(2.25rem, 5vw, 3.5rem); }
.hero-copy p { font-size: 1.15rem; color: var(--color-muted-foreground); max-width: 46ch; }
.hero-actions { display: flex; flex-wrap: wrap; gap: var(--space-md); margin-top: var(--space-xl); }
.hero-trust { display: flex; flex-wrap: wrap; gap: var(--space-lg); margin-top: var(--space-2xl); }
.hero-trust-item { display: flex; align-items: center; gap: 0.5rem; font-size: 0.9rem; color: var(--color-muted-foreground); }
.hero-trust-item svg { color: var(--color-primary); flex-shrink: 0; }
.hero-media { position: relative; border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-xl); aspect-ratio: 4/5; background: var(--color-muted); }
.hero-media img { width: 100%; height: 100%; object-fit: cover; }
.hero-media-badge {
  position: absolute; bottom: var(--space-lg); left: var(--space-lg);
  background: rgba(255,255,255,0.92); backdrop-filter: blur(4px);
  padding: 0.6rem 1rem; border-radius: var(--radius-md); box-shadow: var(--shadow-md);
  font-size: 0.85rem; font-weight: 600;
}
@media (min-width: 1024px) { .hero .container { grid-template-columns: 1fr 0.9fr; } }

/* ---------- Cards ---------- */
.card {
  background: var(--color-card);
  border-radius: var(--radius-md);
  border: 1px solid var(--color-border);
  padding: var(--space-xl);
  box-shadow: var(--shadow-sm);
  transition: box-shadow var(--transition), transform var(--transition);
}
.card:hover { box-shadow: var(--shadow-lg); transform: translateY(-3px); }

.grid { display: grid; gap: var(--space-xl); }
.grid-2 { grid-template-columns: 1fr; }
.grid-3 { grid-template-columns: 1fr; }
.grid-4 { grid-template-columns: repeat(2, 1fr); }
@media (min-width: 640px) { .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 768px) { .grid-2 { grid-template-columns: repeat(2, 1fr); } .grid-3 { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1024px) { .grid-4 { grid-template-columns: repeat(4, 1fr); } }

/* Service card */
.service-card { display: flex; flex-direction: column; height: 100%; }
.service-card-top { display: flex; justify-content: space-between; gap: var(--space-md); align-items: baseline; }
.service-card h3 { font-size: 1.15rem; margin-bottom: 0.35rem; }
.service-price { font-family: var(--font-heading); font-size: 1.2rem; color: var(--color-primary); white-space: nowrap; }
.service-meta { color: var(--color-muted-foreground); font-size: 0.85rem; margin-bottom: var(--space-md); }
.service-desc { color: var(--color-muted-foreground); font-size: 0.95rem; flex-grow: 1; }
.service-card .btn { margin-top: var(--space-md); align-self: flex-start; }

.category-tabs { display: flex; gap: var(--space-sm); flex-wrap: wrap; justify-content: center; margin-bottom: var(--space-2xl); }
.category-tab {
  padding: 0.55rem 1.2rem; border-radius: var(--radius-full); border: 1px solid var(--color-border);
  background: var(--color-card); font-weight: 600; font-size: 0.9rem; cursor: pointer; transition: all var(--transition);
}
.category-tab:hover { border-color: var(--color-primary); }
.category-tab[aria-selected="true"] { background: var(--color-primary); border-color: var(--color-primary); color: var(--color-on-primary); }

/* Value / why-us card */
.value-card { text-align: center; }
.value-icon {
  width: 56px; height: 56px; border-radius: var(--radius-full); background: var(--color-muted);
  color: var(--color-primary); display: flex; align-items: center; justify-content: center; margin: 0 auto var(--space-md);
}

/* ---------- Gallery ---------- */
.gallery-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--space-md); }
@media (min-width: 640px) { .gallery-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1024px) { .gallery-grid { grid-template-columns: repeat(4, 1fr); } }
.gallery-item {
  position: relative; border-radius: var(--radius-md); overflow: hidden; cursor: pointer;
  aspect-ratio: 1/1; background: var(--color-muted); border: 1px solid var(--color-border);
}
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform 400ms ease; }
.gallery-item:hover img { transform: scale(1.06); }
.gallery-item-label {
  position: absolute; inset: auto 0 0 0; padding: 0.5rem 0.75rem;
  background: linear-gradient(to top, rgba(46,38,32,0.75), transparent);
  color: #fff; font-size: 0.75rem; opacity: 0; transition: opacity var(--transition);
}
.gallery-item:hover .gallery-item-label { opacity: 1; }
.gallery-empty { text-align: center; padding: var(--space-3xl) 0; color: var(--color-muted-foreground); }

.lightbox {
  display: none; position: fixed; inset: 0; z-index: 100; background: rgba(20, 15, 10, 0.92);
  align-items: center; justify-content: center; padding: var(--space-lg);
}
.lightbox.is-open { display: flex; }
.lightbox-inner { position: relative; max-width: 90vw; max-height: 88vh; }
.lightbox-inner img { max-width: 90vw; max-height: 80vh; border-radius: var(--radius-md); }
.lightbox-caption { color: #F3ECE3; text-align: center; margin-top: var(--space-md); font-size: 0.9rem; }
.lightbox-close, .lightbox-prev, .lightbox-next {
  position: absolute; background: rgba(255,255,255,0.12); color: #fff; border: none; border-radius: var(--radius-full);
  width: 44px; height: 44px; display: flex; align-items: center; justify-content: center; cursor: pointer; transition: background var(--transition);
}
.lightbox-close:hover, .lightbox-prev:hover, .lightbox-next:hover { background: rgba(255,255,255,0.24); }
.lightbox-close { top: -56px; right: 0; }
.lightbox-prev { left: -56px; top: 50%; transform: translateY(-50%); }
.lightbox-next { right: -56px; top: 50%; transform: translateY(-50%); }
@media (max-width: 640px) {
  .lightbox-close { top: -48px; right: 0; }
  .lightbox-prev { left: 0; top: auto; bottom: -56px; transform: none; }
  .lightbox-next { right: 0; top: auto; bottom: -56px; transform: none; }
}

/* ---------- CTA banner ---------- */
.cta-banner {
  background: var(--color-primary); color: var(--color-on-primary);
  border-radius: var(--radius-lg); padding: var(--space-2xl); text-align: center;
}
.cta-banner h2 { color: var(--color-on-primary); }
.cta-banner p { color: rgba(255,255,255,0.85); max-width: 50ch; margin-left: auto; margin-right: auto; }
.cta-banner .btn-primary { background: var(--color-on-primary); color: var(--color-primary); }

/* ---------- Forms ---------- */
.form-grid { display: grid; gap: var(--space-lg); }
@media (min-width: 640px) { .form-grid-2 { grid-template-columns: 1fr 1fr; } }
.form-field { display: flex; flex-direction: column; gap: 0.4rem; }
.form-field label { font-weight: 600; font-size: 0.9rem; }
.form-field .required { color: var(--color-destructive); }
.form-field input, .form-field select, .form-field textarea {
  padding: 0.8rem 1rem; border-radius: var(--radius-sm); border: 1px solid var(--color-border);
  background: var(--color-card); color: var(--color-foreground); transition: border-color var(--transition), box-shadow var(--transition);
}
.form-field input:focus, .form-field select:focus, .form-field textarea:focus {
  border-color: var(--color-primary); outline: none; box-shadow: 0 0 0 3px rgba(139, 74, 43, 0.15);
}
.form-field textarea { resize: vertical; min-height: 110px; }
.form-error { color: var(--color-destructive); font-size: 0.85rem; min-height: 1.2em; }
.form-hint { color: var(--color-muted-foreground); font-size: 0.85rem; }
.form-status { padding: 0.85rem 1rem; border-radius: var(--radius-sm); font-size: 0.9rem; margin-bottom: var(--space-lg); }
.form-status--success { background: #E7F0E9; color: var(--color-success); border: 1px solid #BFDBC7; }
.form-status--error { background: #FBEAE8; color: var(--color-destructive); border: 1px solid #F3C6C1; }

.slot-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.5rem; }
@media (min-width: 480px) { .slot-grid { grid-template-columns: repeat(4, 1fr); } }
.slot {
  padding: 0.6rem 0.4rem; text-align: center; border-radius: var(--radius-sm); border: 1px solid var(--color-border);
  background: var(--color-card); cursor: pointer; font-size: 0.85rem; font-weight: 600; transition: all var(--transition);
}
.slot:hover { border-color: var(--color-primary); }
.slot[aria-pressed="true"] { background: var(--color-primary); border-color: var(--color-primary); color: var(--color-on-primary); }
.slot[disabled] { opacity: 0.35; cursor: not-allowed; text-decoration: line-through; }

.booking-summary { background: var(--color-muted); border-radius: var(--radius-md); padding: var(--space-lg); }
.booking-summary dt { font-size: 0.8rem; color: var(--color-muted-foreground); }
.booking-summary dd { margin: 0 0 var(--space-sm); font-weight: 600; }

/* ---------- Success page ---------- */
.success-box { text-align: center; max-width: 560px; margin: 0 auto; }
.success-icon {
  width: 72px; height: 72px; border-radius: 50%; background: var(--color-success); color: #fff;
  display: flex; align-items: center; justify-content: center; margin: 0 auto var(--space-lg);
}

/* ---------- Badges ---------- */
.badge {
  display: inline-flex; align-items: center; gap: 0.4rem; padding: 0.4rem 0.9rem;
  border-radius: var(--radius-full); background: var(--color-muted); color: var(--color-primary);
  font-weight: 600; font-size: 0.85rem;
}
.badge-row { display: flex; flex-wrap: wrap; gap: var(--space-md); justify-content: center; }

/* ---------- Pricing table ---------- */
.pricing-group { margin-bottom: var(--space-2xl); }
.pricing-group h3 { border-bottom: 2px solid var(--color-border); padding-bottom: var(--space-sm); margin-bottom: var(--space-lg); }
.pricing-row { display: flex; justify-content: space-between; gap: var(--space-md); padding: 0.9rem 0; border-bottom: 1px dashed var(--color-border); }
.pricing-row:last-child { border-bottom: none; }
.pricing-row-name { font-weight: 600; }
.pricing-row-desc { color: var(--color-muted-foreground); font-size: 0.85rem; margin-top: 0.15rem; }
.pricing-row-price { font-family: var(--font-heading); color: var(--color-primary); white-space: nowrap; font-size: 1.05rem; }

/* ---------- Footer ---------- */
.site-footer { background: var(--color-foreground); color: #E9DED2; padding: var(--space-3xl) 0 var(--space-lg); }
.site-footer a { color: #E9DED2; opacity: 0.85; transition: opacity var(--transition); }
.site-footer a:hover { opacity: 1; color: #fff; }
.footer-grid { display: grid; gap: var(--space-2xl); grid-template-columns: 1fr; }
@media (min-width: 768px) { .footer-grid { grid-template-columns: 1.2fr 1fr 1fr 1fr; } }
.footer-brand { display: flex; align-items: center; gap: 0.6rem; font-family: var(--font-heading); font-size: 1.25rem; margin-bottom: var(--space-md); color: #fff; }
.footer-col h4 { color: #fff; font-family: var(--font-body); font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: var(--space-md); }
.footer-col ul { display: flex; flex-direction: column; gap: 0.6rem; }
.footer-hours-row { display: flex; justify-content: space-between; font-size: 0.88rem; padding: 0.15rem 0; }
.footer-social { display: flex; gap: 0.75rem; margin-top: var(--space-md); }
.footer-social a {
  width: 38px; height: 38px; border-radius: 50%; border: 1px solid rgba(233,222,210,0.3);
  display: flex; align-items: center; justify-content: center;
}
.footer-bottom { border-top: 1px solid rgba(233,222,210,0.15); margin-top: var(--space-2xl); padding-top: var(--space-lg); display: flex; flex-direction: column; gap: 0.5rem; text-align: center; font-size: 0.82rem; opacity: 0.75; }
@media (min-width: 768px) { .footer-bottom { flex-direction: row; justify-content: space-between; text-align: left; } }

/* ---------- Utility ---------- */
.text-center { text-align: center; }
.mt-0 { margin-top: 0; }
.map-frame { width: 100%; height: 380px; border: 0; border-radius: var(--radius-lg); box-shadow: var(--shadow-md); }
.skip-link {
  position: absolute; left: -9999px; top: 0; background: var(--color-primary); color: #fff; padding: 0.75rem 1rem; z-index: 200;
}
.skip-link:focus { left: var(--space-md); top: var(--space-md); }

/* Simple scroll-reveal (no GSAP dependency; respects reduced motion) */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity 500ms ease, transform 500ms ease; }
.reveal.is-visible { opacity: 1; transform: translateY(0); }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; } }
