/* Hair Plus — Milpitas neighborhood salon. Pink storefront, not SaaS chrome. */
:root {
  --pink: #c2185b;
  --pink-hot: #e91e8c;
  --pink-deep: #8e1048;
  --pink-soft: #fce4ec;
  --rose: #f8bbd0;
  --cream: #fff6f8;
  --paper: #ffffff;
  --ink: #2b1220;
  --muted: #6d4a58;
  --line: #f3c5d4;
  --header-h: 58px;
  --radius: 16px;
  --shadow: 0 10px 30px rgba(142, 16, 72, 0.14);
  --font-ui: "Nunito Sans", "Segoe UI", system-ui, sans-serif;
  --font-display: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --font-script: "Great Vibes", "Segoe Script", "Snell Roundhand", cursive;
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font-ui);
  font-size: 16.5px;
  line-height: 1.55;
  color: var(--ink);
  background: var(--cream);
  padding-top: var(--header-h);
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--pink); }
a:hover { color: var(--pink-deep); }
address { font-style: normal; }

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: 0.01em;
  color: var(--ink);
  margin: 0 0 0.4em;
}

h2 { font-size: clamp(1.7rem, 5.5vw, 2.35rem); }
h3 { font-size: 1.35rem; color: var(--pink-deep); }

p { margin: 0 0 0.9em; }
ul { margin: 0; padding: 0 0 0 1.1em; }

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  border: 0;
}

.skip {
  position: absolute;
  left: 12px;
  top: -40px;
  background: var(--pink);
  color: #fff;
  padding: 8px 12px;
  z-index: 100;
  border-radius: 8px;
}
.skip:focus { top: 8px; color: #fff; }

/* Header */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 0 12px 0 10px;
  padding-left: max(10px, env(safe-area-inset-left));
  padding-right: max(12px, env(safe-area-inset-right));
  background: rgba(255, 246, 248, 0.94);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}

.brand {
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  color: var(--ink);
  min-width: 0;
}
.brand:hover { color: var(--ink); }

.hp-mark {
  flex: none;
  width: 40px;
  height: 40px;
  filter: drop-shadow(0 2px 4px rgba(194, 24, 91, 0.35));
}
.hp-mark svg { display: block; }

.brand-text { display: flex; flex-direction: column; line-height: 1.05; min-width: 0; }
.brand-name {
  font-family: var(--font-script);
  font-size: 1.45rem;
  color: var(--pink);
}
.brand-loc {
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 700;
}

.header-actions { display: flex; gap: 8px; flex: none; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 0 14px;
  border-radius: 999px;
  font-family: inherit;
  font-size: 0.92rem;
  font-weight: 700;
  text-decoration: none;
  border: 1.5px solid transparent;
  cursor: pointer;
  white-space: nowrap;
}
.btn:hover { color: #fff; }

.btn-book {
  background: var(--pink);
  color: #fff;
  box-shadow: 0 4px 12px rgba(194, 24, 91, 0.32);
}
.btn-book:hover { background: var(--pink-deep); color: #fff; }

.btn-ghost {
  background: transparent;
  color: var(--pink-deep);
  border-color: var(--rose);
}
.btn-ghost:hover { background: var(--pink-soft); color: var(--pink-deep); }

.btn-outline {
  background: #fff;
  color: var(--pink);
  border-color: var(--pink);
}
.btn-outline:hover { background: var(--pink-soft); color: var(--pink-deep); }

.btn-light {
  background: rgba(255,255,255,0.18);
  color: #fff;
  border-color: rgba(255,255,255,0.55);
}
.btn-light:hover { background: #fff; color: var(--pink-deep); }

.btn-lg { min-height: 48px; padding: 0 20px; font-size: 1rem; }
.btn-block { width: 100%; }

/* Hero */
.hero {
  position: relative;
  min-height: min(72vw, 420px);
  color: #fff;
  overflow: hidden;
}
.hero-photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 40%;
}
.hero-scrim {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(43, 18, 32, 0.15) 0%, rgba(43, 18, 32, 0.2) 38%, rgba(43, 18, 32, 0.88) 100%);
}
.hero-copy {
  position: relative;
  z-index: 1;
  padding: 88px 20px 28px;
  max-width: 40rem;
}
.eyebrow {
  margin: 0;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--rose);
}
.script-title {
  font-family: var(--font-script);
  font-size: clamp(3.1rem, 14vw, 4.6rem);
  font-weight: 400;
  color: #fff;
  text-shadow: 0 2px 18px rgba(194, 24, 91, 0.55);
  margin: 0.05em 0 0.15em;
  line-height: 0.95;
}
.hero-lead {
  margin: 0 0 0.35em;
  font-size: 0.98rem;
  color: #ffe8f0;
}
.hero-langs {
  margin: 0 0 1.1em;
  font-size: 0.82rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--rose);
  font-weight: 700;
}
.hero-cta { display: flex; flex-wrap: wrap; gap: 10px; }

/* Walk-in card */
.walkin {
  padding: 0 16px;
  margin-top: -18px;
  position: relative;
  z-index: 2;
}
.walkin-card {
  background: var(--paper);
  border-radius: var(--radius);
  padding: 18px 18px 16px;
  box-shadow: var(--shadow);
  border: 1px solid var(--line);
}
.kicker {
  margin: 0 0 4px;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--pink);
}
.status {
  margin: 0 0 10px;
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 600;
  color: var(--pink-deep);
}
.status.is-open { color: var(--pink); }
.status.is-closed { color: var(--pink-deep); }

.addr { display: flex; flex-direction: column; gap: 2px; margin-bottom: 8px; color: var(--muted); }
.addr-line { font-weight: 800; font-size: 1.08rem; color: var(--ink); text-decoration: none; }
.addr-line:hover { color: var(--pink); }

.phone-lg {
  display: inline-block;
  font-size: 1.45rem;
  font-weight: 800;
  letter-spacing: 0.01em;
  text-decoration: none;
  color: var(--pink);
  margin-bottom: 4px;
}
.hours-today { margin: 0 0 14px; color: var(--muted); font-size: 0.95rem; }
.walkin-actions, .visit-cta, .hero-cta { display: flex; flex-wrap: wrap; gap: 8px; }

/* Sections */
.section-inner {
  width: min(920px, calc(100% - 32px));
  margin: 0 auto;
  padding: 42px 0 8px;
}
.lede { color: var(--muted); max-width: 40rem; }
.lede em { font-style: italic; color: var(--ink); }

.welcome-grid, .visit-grid, .award-grid, .cert-grid, .gal-grid, .svc-groups {
  display: grid;
  gap: 18px;
}

.welcome-grid { margin-top: 18px; }
.welcome-photo img {
  width: 100%;
  border-radius: 12px;
  border: 6px solid #fff;
  box-shadow: var(--shadow);
  object-fit: cover;
  max-height: 320px;
}
.welcome-copy strong { color: var(--pink-deep); }

.spec-list {
  list-style: none;
  padding: 0;
  display: grid;
  gap: 8px;
  margin-top: 16px;
}
.spec-list li {
  background: #fff;
  border: 1px solid var(--line);
  border-left: 4px solid var(--pink);
  border-radius: 10px;
  padding: 12px 14px;
  font-weight: 700;
}

.svc-groups { margin-top: 20px; }
.svc {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 16px 16px 12px;
}
.svc p { color: var(--muted); font-size: 0.95rem; }
.svc ul { color: var(--ink); padding-left: 1.15em; }
.svc li { margin-bottom: 4px; }
.svc-note {
  margin-top: 16px;
  font-style: italic;
  color: var(--muted);
}

.keratin { background: #1a0f14; color: #fde8f0; margin-top: 28px; }
.keratin .section-inner { padding-top: 36px; padding-bottom: 36px; }
.keratin h2, .keratin .kicker { color: #fff; }
.keratin .kicker { color: var(--rose); }
.keratin-benefits {
  columns: 1;
  padding-left: 1.15em;
  margin: 0 0 18px;
}
.keratin-benefits li { break-inside: avoid; margin-bottom: 6px; }
.keratin-fig img {
  width: 100%;
  border-radius: 10px;
  border: 1px solid rgba(233, 30, 140, 0.45);
}

.award-grid figure, .cert-grid figure, .gal-grid figure { margin: 0; }
.award-grid img, .cert-grid img, .gal-grid img {
  width: 100%;
  border-radius: 12px;
  background: #fff;
  border: 1px solid var(--line);
  object-fit: contain;
  max-height: 340px;
}
.gal-grid img { object-fit: cover; max-height: 280px; min-height: 180px; }
figcaption {
  margin-top: 8px;
  font-size: 0.85rem;
  color: var(--muted);
  text-align: center;
}

.hours {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--line);
}
.hours th, .hours td {
  text-align: left;
  padding: 10px 14px;
  border-bottom: 1px solid var(--line);
}
.hours thead th {
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  background: var(--pink-soft);
}
.hours tbody th { font-weight: 700; }
.hours tr.is-today th,
.hours tr.is-today td {
  background: var(--pink-soft);
  color: var(--pink-deep);
}

.visit-contact p { margin-bottom: 1em; }
.visit-links a { font-weight: 700; }

.site-footer {
  margin-top: 36px;
  padding: 22px 20px 32px;
  padding-bottom: max(32px, env(safe-area-inset-bottom));
  text-align: center;
  background: var(--pink-deep);
  color: #f8bbd0;
  font-size: 0.88rem;
}
.site-footer p { margin: 0 0 8px; }
.mock-note {
  font-size: 0.72rem;
  letter-spacing: 0.02em;
  color: rgba(255, 255, 255, 0.62);
}

/* Book panel */
.book-overlay {
  position: fixed;
  inset: 0;
  z-index: 80;
  background: rgba(43, 18, 32, 0.55);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 0;
}
.book-overlay[hidden] { display: none; }

.book-panel {
  position: relative;
  background: var(--cream);
  width: 100%;
  max-width: 480px;
  max-height: min(92vh, 760px);
  overflow: auto;
  border-radius: 20px 20px 0 0;
  padding: 22px 18px 28px;
  padding-bottom: max(28px, env(safe-area-inset-bottom));
  box-shadow: 0 -12px 40px rgba(43, 18, 32, 0.25);
}

.book-close {
  position: absolute;
  top: 10px;
  right: 12px;
  width: 40px;
  height: 40px;
  border: 0;
  background: transparent;
  font-size: 1.8rem;
  line-height: 1;
  color: var(--muted);
  cursor: pointer;
}
.book-close:hover { color: var(--ink); }

.book-sub { color: var(--muted); margin-bottom: 14px; }

#book-form {
  display: grid;
  gap: 12px;
}
#book-form label {
  display: grid;
  gap: 5px;
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--pink-deep);
}
.opt { font-weight: 600; text-transform: none; letter-spacing: 0; color: var(--muted); }

#book-form input,
#book-form select,
#book-form textarea {
  font: inherit;
  font-size: 1rem;
  font-weight: 500;
  letter-spacing: 0;
  text-transform: none;
  color: var(--ink);
  background: #fff;
  border: 1.5px solid var(--line);
  border-radius: 10px;
  padding: 11px 12px;
  width: 100%;
}
#book-form input:focus,
#book-form select:focus,
#book-form textarea:focus {
  outline: 2px solid var(--pink);
  outline-offset: 1px;
  border-color: var(--pink);
}
#book-form .is-invalid {
  border-color: #b42318;
}

.err {
  min-height: 0;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0;
  text-transform: none;
  color: #b42318;
}
.err:empty { display: none; }

.book-fallback {
  margin: 14px 0 0;
  text-align: center;
  color: var(--muted);
  font-size: 0.95rem;
}
.book-fallback a { font-weight: 800; }

#book-thanks .btn { margin-top: 10px; }
#thanks-body { font-size: 1.05rem; }

body.book-open { overflow: hidden; }

@media (min-width: 640px) {
  :root { --header-h: 64px; }
  .hero { min-height: 440px; }
  .hero-copy { padding: 110px 28px 40px; }
  .walkin { padding: 0 24px; }
  .section-inner { width: min(920px, calc(100% - 48px)); padding-top: 56px; }
  .welcome-grid { grid-template-columns: 0.9fr 1.2fr; align-items: center; }
  .svc-groups { grid-template-columns: 1fr 1fr; }
  .award-grid, .cert-grid { grid-template-columns: repeat(3, 1fr); }
  .cert-grid { grid-template-columns: 1fr 1fr; }
  .gal-grid { grid-template-columns: 1fr 1fr 1fr; }
  .visit-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .keratin-benefits { columns: 2; }
  .book-overlay { align-items: center; padding: 24px; }
  .book-panel {
    border-radius: 18px;
    max-height: min(90vh, 720px);
    padding: 28px 26px 30px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
