/* A Salon Paul Mitchell */

:root {
  --bg: #0f0f10;
  --bg-alt: #161618;
  --surface: #1c1c1f;
  --border: rgba(255, 255, 255, 0.1);
  --text: #f4f4f5;
  --muted: #a1a1aa;
  --accent: #e70095;
  --serif: "Fraunces", Georgia, serif;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --max: 1200px;
  --radius: 12px;
}

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 {
  margin: 0 0 0.75rem;
  font-family: var(--serif);
  font-weight: 400;
  line-height: 1.15;
  letter-spacing: -0.01em;
}
h1 { font-size: clamp(2.5rem, 6vw, 4.5rem); }
h2 { font-size: clamp(1.75rem, 3.5vw, 2.5rem); }
h3 { font-size: 1.375rem; margin-top: 2rem; }
p { margin: 0 0 1rem; }
strong { font-weight: 600; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }

.container { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 24px; }
.narrow { max-width: 760px; }
.center { text-align: center; }
.visually-hidden {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}
@media (max-width: 640px) { .container { padding: 0 16px; } }

.eyebrow {
  margin-bottom: 0.75rem;
  font-size: 0.8125rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--accent);
}
.lede { font-size: 1.1875rem; color: var(--muted); max-width: 36rem; }
.lede a { color: var(--text); text-decoration: underline; text-underline-offset: 3px; white-space: nowrap; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 0.85rem 1.6rem; border: 1px solid var(--text); border-radius: 999px;
  background: var(--text); color: var(--bg);
  font: 500 1rem/1.2 var(--sans); cursor: pointer;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
}
.btn:hover { background: transparent; color: var(--text); }
.btn-ghost { background: transparent; color: var(--text); border-color: rgba(255, 255, 255, 0.4); }
.btn-ghost:hover { border-color: var(--text); }
.btn-sm { padding: 0.5rem 1.15rem; font-size: 0.9375rem; }
.btn-block { width: 100%; }
.btn:disabled { opacity: 0.6; cursor: wait; }

.link-arrow { font-weight: 500; border-bottom: 1px solid var(--border); padding-bottom: 2px; }
.link-arrow::after { content: " →"; }
.link-arrow:hover { border-color: var(--text); }

/* ---------- Header / nav ---------- */
.site-header {
  position: sticky; top: 0; z-index: 10;
  background: rgba(15, 15, 16, 0.85);
  backdrop-filter: saturate(160%) blur(12px); -webkit-backdrop-filter: saturate(160%) blur(12px);
  border-bottom: 1px solid var(--border);
}
.site-header .container { display: flex; align-items: center; justify-content: space-between; min-height: 80px; padding-block: 0.6rem; }
.logo img { width: 200px; }
@media (max-width: 640px) { .logo img { width: 170px; } }

.nav-list { display: flex; align-items: center; gap: 0.25rem; margin: 0; padding: 0; list-style: none; }
.nav-list a:not(.btn) { display: block; padding: 0.5rem 0.9rem; color: var(--muted); font-size: 0.9375rem; font-weight: 500; }
.nav-list a:not(.btn):hover, .nav-list a[aria-current="page"]:not(.btn) { color: var(--text); }
.nav-list .btn { margin-left: 0.5rem; }

.nav-toggle {
  display: none;
  background: transparent; border: 1px solid var(--border); border-radius: 999px;
  color: var(--text); font: 500 0.9375rem var(--sans); padding: 0.45rem 1rem; cursor: pointer;
}

@media (max-width: 860px) {
  .site-header .container { flex-wrap: wrap; }
  .nav-toggle { display: block; }
  .site-nav { flex-basis: 100%; display: none; padding-bottom: 1rem; }
  .site-nav.open { display: block; }
  .nav-list { flex-direction: column; align-items: stretch; }
  .nav-list a:not(.btn) { padding: 0.85rem 0; border-bottom: 1px solid var(--border); font-size: 1.0625rem; }
  .nav-list .btn { margin: 1rem 0 0; width: 100%; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden;
  min-height: min(82vh, 760px);
  display: flex; align-items: center;
  background: #1e1e1e;
}
.hero > img {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; object-position: 70% center;
}
.hero::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(15, 15, 16, 0.85) 0%, rgba(15, 15, 16, 0.35) 55%, rgba(15, 15, 16, 0) 100%);
}
.hero-content { position: relative; z-index: 1; padding-top: 4rem; padding-bottom: 4rem; }
.hero-content h1 { max-width: 12ch; }
.actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 2rem; }
@media (max-width: 760px) {
  .hero { align-items: flex-end; min-height: 640px; }
  .hero > img { object-position: 68% center; }
  .hero::after { background: linear-gradient(0deg, rgba(15, 15, 16, 0.95) 15%, rgba(15, 15, 16, 0.2) 70%); }
}

/* ---------- Sections ---------- */
.section { padding: 6rem 0; }
.section-tight { padding: 0 0 6rem; }
.section-alt { background: var(--bg-alt); border-block: 1px solid var(--border); }
@media (max-width: 640px) { .section { padding: 4rem 0; } .section-tight { padding-bottom: 4rem; } }

.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; flex-wrap: wrap; margin-bottom: 2rem; }
.section-head h2 { margin: 0; }

.split { display: grid; grid-template-columns: 1fr 1.4fr; gap: 2rem 5rem; }
.split p { color: #d4d4d8; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } }

.page-head { padding: 5rem 0 3rem; }
.page-head .lede { margin-bottom: 0; }
@media (max-width: 640px) { .page-head { padding: 3rem 0 2rem; } }

.card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 2rem;
}
@media (max-width: 640px) { .card { padding: 1.5rem; } }

.prose p { font-size: 1.125rem; color: #d4d4d8; }

/* Home feature tiles */
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.feature {
  position: relative; overflow: hidden; border-radius: var(--radius);
  aspect-ratio: 4 / 5; background: var(--surface);
}
.feature img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
.feature::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.7) 0%, rgba(0, 0, 0, 0) 45%);
}
.feature span {
  position: absolute; left: 1.25rem; bottom: 1.1rem; z-index: 1;
  font-family: var(--serif); font-size: 1.5rem;
}
.feature:hover img { transform: scale(1.04); }
@media (max-width: 860px) {
  .features { grid-template-columns: 1fr; }
  .feature { aspect-ratio: 16 / 10; }
}
@media (prefers-reduced-motion: reduce) { .feature img { transition: none; } }

/* Services */
.services-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 1rem; }
@media (max-width: 400px) { .services-grid { grid-template-columns: 1fr; } }
.services-grid h2 { font-size: 1.5rem; margin-bottom: 1rem; }
.services-grid ul { list-style: none; margin: 0; padding: 0; }
.services-grid li { padding: 0.5rem 0; border-top: 1px solid var(--border); color: #d4d4d8; }

/* Stylists */
.stylists { display: grid; gap: 1rem; }
.stylists .card > :last-child { margin-bottom: 0; }
.stylists h2 { font-size: 1.75rem; }
.stylists p { color: #d4d4d8; }

/* ---------- Appointment form ---------- */
.appt-form .field { display: flex; flex-direction: column; gap: 0.4rem; margin-bottom: 1.25rem; }
.appt-form .field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0 1rem; }
@media (max-width: 640px) { .appt-form .field-row { grid-template-columns: 1fr; } }
.appt-form label, .appt-form legend { font-size: 0.9375rem; font-weight: 500; }
.appt-form input:not([type="checkbox"], [type="radio"]), .appt-form select, .appt-form textarea {
  width: 100%; padding: 0.75rem 0.9rem;
  font: inherit; font-size: 1rem; color: var(--text);
  background: var(--bg); border: 1px solid var(--border); border-radius: 8px;
}
.appt-form input:focus, .appt-form select:focus, .appt-form textarea:focus {
  outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(231, 0, 149, 0.25);
}
.appt-form textarea { resize: vertical; }
.appt-form fieldset { border: 0; margin: 0 0 1.25rem; padding: 0; min-width: 0; }
.appt-form legend { padding: 0; margin-bottom: 0.5rem; }

/* Checkbox/radio "chips" */
.appt-form .choices { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.appt-form .choices label { position: relative; cursor: pointer; }
.appt-form .choices input { position: absolute; opacity: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.appt-form .choices span {
  display: inline-block; padding: 0.45rem 1rem;
  border: 1px solid var(--border); border-radius: 999px;
  font-weight: 400; color: var(--muted); transition: all 0.15s;
}
.appt-form .choices label:hover span { border-color: rgba(255, 255, 255, 0.35); color: var(--text); }
.appt-form .choices input:checked + span { background: var(--text); border-color: var(--text); color: var(--bg); }
.appt-form .choices input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }

.appt-form .field-hint { margin: -0.5rem 0 1.25rem; font-size: 0.875rem; color: var(--muted); }
.appt-form .turnstile { display: flex; justify-content: center; margin-bottom: 0.75rem; }
.appt-form .hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.form-status { text-align: center; min-height: 1.5em; color: var(--muted); }
.form-status.error { color: #fda4af; }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--border); padding: 4rem 0 2rem; color: var(--muted); font-size: 0.9375rem; }
.footer-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2.5rem; }
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr; } }
.footer-title {
  font-family: var(--sans); font-size: 0.8125rem; font-weight: 600;
  letter-spacing: 0.14em; text-transform: uppercase; color: var(--text); margin-bottom: 1rem;
}
.site-footer address { font-style: normal; margin-bottom: 1rem; }
.site-footer a:not(.btn):hover { color: var(--text); }
.hours { border-collapse: collapse; }
.hours th, .hours td { padding: 0.2rem 0; text-align: left; font-weight: 400; }
.hours th { padding-right: 2rem; color: var(--text); }
.social { display: flex; gap: 0.75rem; margin-bottom: 1.5rem; }
.social a {
  display: inline-flex; align-items: center; justify-content: center;
  width: 42px; height: 42px; border: 1px solid var(--border); border-radius: 50%;
  font-size: 1.05rem; color: var(--text);
}
.social a:hover { border-color: var(--text); }
.copyright { margin-top: 3rem; padding-top: 1.5rem; border-top: 1px solid var(--border); font-size: 0.8125rem; }
