/* Nails Perfection — Fremont. Lacquer / stucco / paper. Not URbooked chrome. */
:root {
  --ink: #171614;
  --night: #1E1C1A;
  --stucco: #2A2C2E;
  --coral: #C44536;
  --coral-bright: #E25A48;
  --coral-deep: #9A3429;
  --paper: #F4EFE8;
  --cream: #FBF8F3;
  --ivory: #FFFCF7;
  --jade: #314844;
  --muted: #6A625A;
  --line: #E2D9CE;
  --header-h: 4.05rem;
  --dock-h: 3.85rem;
  --wrap: 1080px;
  --display: "Fraunces", "Times New Roman", serif;
  --body: "Be Vietnam Pro", "Segoe UI", sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--body);
  font-size: 1.02rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--paper);
  padding-bottom: calc(var(--dock-h) + env(safe-area-inset-bottom, 0px));
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--coral-deep); text-underline-offset: 0.18em; }
a:hover { color: var(--coral); }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--coral); outline-offset: 3px; }
.skip { position: absolute; left: -999px; top: 0; }
.skip:focus {
  left: 0.75rem; top: 0.75rem; z-index: 500;
  background: var(--ivory); color: var(--ink);
  padding: 0.5rem 0.85rem;
}
.wrap { width: min(var(--wrap), calc(100% - 1.5rem)); margin-inline: auto; }
.eyebrow {
  margin: 0 0 0.45rem;
  font-size: 0.68rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--coral);
  font-weight: 600;
}
h1, h2, h3 { font-family: var(--display); font-weight: 600; line-height: 1.12; letter-spacing: -0.015em; }
h1 { font-size: clamp(2.2rem, 8vw, 4rem); margin: 0 0 0.85rem; }
h2 { font-size: clamp(1.8rem, 5vw, 2.7rem); margin: 0 0 0.7rem; }
.visually-hidden {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); border: 0;
}

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 0.35rem;
  min-height: 2.75rem;
  padding: 0.55rem 1.1rem;
  border: 1px solid transparent;
  border-radius: 2px;
  text-decoration: none;
  cursor: pointer;
  font-weight: 600;
  font-size: 0.86rem;
  letter-spacing: 0.04em;
  white-space: nowrap;
  transition: background 0.15s, color 0.15s, border-color 0.15s, transform 0.15s;
}
.btn:active { transform: translateY(1px); }
.btn-lg { min-height: 3.1rem; padding: 0.7rem 1.3rem; font-size: 0.95rem; }
.btn-block { width: 100%; }
.btn-coral {
  background: var(--coral);
  color: #fff;
  border-color: var(--coral-deep);
}
.btn-coral:hover { background: var(--coral-bright); color: #fff; }
.btn-ink {
  background: var(--night);
  color: var(--cream);
}
.btn-ink:hover { background: #000; color: #fff; }
.btn-ghost {
  background: transparent;
  color: #F3E8DF;
  border-color: rgba(243, 232, 223, 0.35);
}
.btn-ghost:hover { background: rgba(255,255,255,0.08); color: #fff; }
.btn-light {
  background: transparent;
  color: #fff;
  border-color: rgba(255,255,255,0.45);
}
.btn-light:hover { background: rgba(255,255,255,0.1); color: #fff; }
.btn-ghost-ink {
  background: transparent;
  color: var(--ink);
  border-color: var(--line);
}
.btn-ghost-ink:hover { border-color: var(--ink); color: var(--ink); }

.site-header {
  position: sticky; top: 0; z-index: 200;
  background: var(--stucco);
  border-bottom: 1px solid rgba(255,255,255,0.08);
  padding-top: env(safe-area-inset-top, 0px);
}
.header-inner {
  display: flex; align-items: center; gap: 0.7rem;
  min-height: var(--header-h);
}
.brand {
  display: flex; align-items: center; gap: 0.6rem;
  text-decoration: none; color: inherit; min-width: 0;
}
.brand-mark {
  width: 1.7rem; height: 1.7rem; flex: 0 0 auto;
  background: var(--coral);
  clip-path: ellipse(42% 48% at 50% 58%);
  box-shadow: 0 -0.55rem 0 -0.22rem var(--coral);
}
.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-name {
  font-family: var(--display);
  font-size: 1.05rem;
  font-weight: 600;
  color: #F6EFE6;
}
.brand-loc {
  font-size: 0.62rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #B8AFA6;
}
.nav-desk { display: none; gap: 1.15rem; margin-left: 1.2rem; }
.nav-desk a {
  color: #E6DDD3;
  text-decoration: none;
  font-size: 0.78rem;
  display: flex; flex-direction: column;
  line-height: 1.2;
}
.nav-desk a .nav-en {
  font-size: 0.62rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #9A928A;
}
.nav-desk a:hover { color: #fff; }
.header-actions {
  margin-left: auto;
  display: flex; align-items: center; gap: 0.4rem;
}
.header-actions .btn { padding-inline: 0.8rem; }

.hero {
  position: relative;
  min-height: min(92svh, 800px);
  display: flex;
  align-items: flex-end;
  color: var(--cream);
  overflow: hidden;
  background: var(--stucco);
}
.hero-photo {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: 50% 28%;
}
.hero-veil {
  position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(26,24,22,0.12) 0%, rgba(26,24,22,0.22) 38%, rgba(26,24,22,0.9) 100%),
    linear-gradient(90deg, rgba(26,24,22,0.45) 0%, rgba(26,24,22,0.05) 60%);
}
.hero-copy {
  position: relative; z-index: 1;
  padding: 2.3rem 0 calc(1.3rem + var(--dock-h) + env(safe-area-inset-bottom, 0px));
}
.hero-copy h1 { color: #FFF8F2; max-width: 14ch; }
.lede {
  margin: 0 0 1.2rem;
  max-width: 36em;
  color: #E8DDD3;
  font-size: 1.01rem;
}
.hero-cta { display: flex; flex-wrap: wrap; gap: 0.55rem; }

.strip {
  background: var(--night);
  color: var(--cream);
  border-top: 1px solid rgba(196,69,54,0.35);
}
.strip-grid { display: grid; gap: 0.1rem; padding: 0.85rem 0; }
.strip-item {
  display: flex; flex-direction: column; gap: 0.1rem;
  padding: 0.55rem 0;
  color: inherit; text-decoration: none;
  border-bottom: 1px solid rgba(255,255,255,0.07);
}
.strip-item:last-child { border-bottom: 0; }
.strip-k {
  font-size: 0.62rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--coral-bright);
  font-weight: 600;
}
.strip-v { font-weight: 500; color: #F3E8DF; }
a.strip-item:hover .strip-v { color: #fff; }

.section { padding: 3rem 0 3.2rem; }
.section-alt { background: var(--cream); }
.section-dark {
  background: var(--jade);
  color: #F3EBE3;
}
.section-dark .eyebrow { color: #E8B4A8; }
.section-dark h2 { color: #FFF8F2; }
.section-lede { margin: 0; color: var(--muted); }
.section-lede.light { color: #D5CBC1; }
.section-head { max-width: 38rem; margin-bottom: 1.55rem; }

.about-grid, .visit-grid, .hours-grid { display: grid; gap: 1.5rem; }
.visit-photos { display: grid; gap: 0.45rem; }
.about-photo, .visit-photo {
  margin: 0;
  overflow: hidden;
  border-radius: 2px;
}
.about-photo img, .visit-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  aspect-ratio: 4 / 5;
}
.visit-photo img { aspect-ratio: 4 / 3; }
.about-note {
  font-family: var(--display);
  font-style: italic;
  font-size: 1.2rem;
  color: var(--jade);
}

.menu {
  display: grid;
  gap: 1.35rem;
  background: var(--ivory);
  border: 1px solid var(--line);
  border-radius: 2px;
  padding: 1.15rem 1.1rem 1.3rem;
}
.menu-col h3 {
  font-family: var(--display);
  font-size: 1.25rem;
  letter-spacing: 0.02em;
  color: var(--coral-deep);
  border-bottom: 1px solid var(--coral);
  padding-bottom: 0.3rem;
  margin: 1.15rem 0 0.5rem;
}
.menu-col h3:first-child { margin-top: 0; }
.menu ul { list-style: none; margin: 0; padding: 0; }
.menu li {
  display: flex; justify-content: space-between; gap: 0.75rem;
  align-items: baseline;
  padding: 0.42rem 0;
  border-bottom: 1px dotted #E4D8CC;
  font-size: 0.98rem;
}
.menu li em { font-style: normal; color: var(--muted); font-size: 0.86rem; }
.menu-note { margin: 1rem 0 0; color: var(--muted); font-size: 0.92rem; }
.center-cta { margin-top: 1.35rem; display: flex; justify-content: center; }

.gallery {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.45rem;
}
.gallery figure { margin: 0; overflow: hidden; }
.gallery img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  aspect-ratio: 3 / 4;
}

.hours { width: 100%; border-collapse: collapse; }
.hours th, .hours td {
  text-align: left;
  padding: 0.55rem 0;
  border-bottom: 1px solid rgba(255,255,255,0.12);
  font-weight: 500;
}
.hours th { font-weight: 600; width: 42%; }
.hours .closed td, .hours .closed th { color: #C9B8AE; }
.hours tr.is-today th, .hours tr.is-today td { color: #fff; }

.visit-phone {
  font-family: var(--display);
  font-size: clamp(1.6rem, 5vw, 2.1rem);
  margin: 0.4rem 0 1.1rem;
}
.visit-phone a { color: var(--ink); text-decoration: none; }
.visit-phone a:hover { color: var(--coral); }

.site-footer {
  background: var(--stucco);
  color: #C9C0B6;
  padding: 1.6rem 0 calc(1.4rem + var(--dock-h) + env(safe-area-inset-bottom, 0px));
  font-size: 0.88rem;
}
.footer-inner p { margin: 0 0 0.45rem; }
.site-footer a { color: #F3E8DF; }
.preview-note {
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.68rem;
  color: #8A827A;
}

.dock {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 180;
  display: grid; grid-template-columns: 1fr 1fr;
  min-height: calc(var(--dock-h) + env(safe-area-inset-bottom, 0px));
  padding-bottom: env(safe-area-inset-bottom, 0px);
  background: var(--stucco);
  border-top: 1px solid rgba(196,69,54,0.45);
}
.dock a, .dock button {
  display: flex; align-items: center; justify-content: center;
  background: transparent; color: #F3E8DF;
  border: 0; text-decoration: none;
  font-weight: 600; font-size: 0.86rem; cursor: pointer;
}
.dock button { background: var(--coral); color: #fff; }

.modal[hidden] { display: none; }
.modal { position: fixed; inset: 0; z-index: 400; }
.modal-backdrop {
  position: absolute; inset: 0;
  background: rgba(20, 18, 16, 0.62);
}
.modal-panel {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  max-height: min(94svh, 820px);
  overflow: auto;
  background: var(--ivory);
  color: var(--ink);
  border-radius: 10px 10px 0 0;
  padding: 1.25rem 1.15rem calc(1.4rem + env(safe-area-inset-bottom, 0px));
  box-shadow: 0 -20px 50px rgba(0,0,0,0.28);
}
.modal-x {
  position: absolute; top: 0.7rem; right: 0.75rem;
  width: 2.4rem; height: 2.4rem;
  border: 0; background: transparent;
  font-size: 1.6rem; line-height: 1;
  color: var(--muted); cursor: pointer;
}
.modal-panel h2 { padding-right: 2rem; }
.modal-lede { margin: 0 0 1rem; color: var(--muted); }
#book-form { display: grid; gap: 0.75rem; }
#book-form label { display: grid; gap: 0.28rem; }
#book-form label > span {
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--coral-deep);
}
#book-form label i { font-style: normal; font-weight: 400; color: var(--muted); text-transform: none; letter-spacing: 0; }
#book-form input,
#book-form select,
#book-form textarea {
  width: 100%;
  min-height: 2.85rem;
  padding: 0.55rem 0.75rem;
  border: 1px solid var(--line);
  border-radius: 2px;
  background: #fff;
  font-size: 16px;
}
#book-form textarea { min-height: 5rem; resize: vertical; }
#book-form input:focus,
#book-form select:focus,
#book-form textarea:focus {
  outline: 2px solid var(--coral);
  border-color: var(--coral);
}
.form-row { display: grid; gap: 0.75rem; }
.err { color: #9B1C2C; font-size: 0.78rem; min-height: 0; }
label.is-invalid input,
label.is-invalid select { border-color: #9B1C2C; }
#book-thanks .btn { margin-top: 0.55rem; }
body.book-open { overflow: hidden; }

@media (min-width: 640px) {
  .wrap { width: min(var(--wrap), calc(100% - 2.4rem)); }
  .nav-desk { display: flex; }
  .strip-grid {
    grid-template-columns: 1.2fr 0.95fr 1.15fr;
    gap: 1rem;
    padding: 1rem 0;
  }
  .strip-item { border-bottom: 0; padding: 0.35rem 0; }
  .menu { grid-template-columns: 1fr 1fr 1fr; gap: 1.6rem; padding: 1.5rem 1.6rem; }
  .gallery { grid-template-columns: repeat(3, 1fr); gap: 0.6rem; }
  .about-grid, .visit-grid, .hours-grid { grid-template-columns: 1fr 1fr; align-items: center; gap: 2.3rem; }
  .hero-copy { padding: 3.3rem 0 3rem; }
  .form-row { grid-template-columns: 1fr 1fr; }
  .dock { display: none; }
  body { padding-bottom: 0; }
  .site-footer { padding-bottom: 1.6rem; }
  .modal-panel {
    left: 50%; right: auto; bottom: auto; top: 50%;
    transform: translate(-50%, -50%);
    width: min(32rem, calc(100% - 2rem));
    max-height: min(90vh, 780px);
    border-radius: 4px;
    padding: 1.6rem 1.5rem 1.7rem;
  }
}
@media (min-width: 960px) {
  .hero { min-height: 86vh; }
  .hero-photo { object-position: 50% 22%; }
  .section { padding: 4.1rem 0; }
}
