/* =========================================================
   ProfessioNail v2 — design system
   Same brand, rebuilt for hierarchy, rhythm and accessibility.
   ========================================================= */

/* ---------- Fonts ---------- */
@font-face {
  font-family: "Futura Book";
  src: url("/assets/fonts/Futura-Book-font.ttf") format("truetype");
  font-weight: 400; font-display: swap;
}
@font-face {
  font-family: "Futura Demi";
  src: url("/assets/fonts/Futura-Demi-font.ttf") format("truetype");
  font-weight: 600; font-display: swap;
}
@font-face {
  font-family: "Honeymoon Hand";
  src: url("/assets/fonts/Honeymoon-Hand.otf") format("opentype");
  font-weight: 400; font-display: swap;
}

:root {
  /* --- brand ---------------------------------------------------- */
  --red: #ef1528;          /* brand red: large text, fills, accents   */
  --red-text: #c8102e;     /* AA-safe red for small text on light     */
  --red-dark: #a60d22;
  --ink: #1c1d21;
  --ink-70: #4a4b50;
  --ink-45: #76777d;
  --cream: #fef5ef;
  --sand: #f6e7dd;
  --sand-deep: #f2e0d5;
  --white: #fff;
  --line: rgba(28, 29, 33, .12);
  --line-strong: rgba(28, 29, 33, .26);

  /* --- type ----------------------------------------------------- */
  --font-body: "Futura Book", Futura, "Century Gothic", system-ui, sans-serif;
  --font-head: "Futura Demi", "Futura Book", Futura, "Century Gothic", system-ui, sans-serif;
  --font-script: "Honeymoon Hand", "Segoe Script", "Brush Script MT", cursive;

  --t-xs: .75rem;      /* 12 */
  --t-sm: .875rem;     /* 14 */
  --t-base: 1rem;      /* 16 */
  --t-md: 1.125rem;    /* 18 */
  --t-lg: 1.375rem;    /* 22 */
  --t-xl: clamp(1.5rem, 2.2vw, 1.875rem);
  --t-2xl: clamp(1.875rem, 3.2vw, 2.5rem);
  --t-3xl: clamp(2.25rem, 4.6vw, 3.5rem);
  --t-hero: clamp(2.5rem, 7vw, 5.5rem);

  /* --- space (4px base) ----------------------------------------- */
  --s-1: 4px;  --s-2: 8px;  --s-3: 12px; --s-4: 16px;
  --s-5: 24px; --s-6: 32px; --s-7: 48px; --s-8: 64px;
  --s-9: 96px; --s-10: 128px;

  --section-y: clamp(48px, 7vw, 96px);

  /* --- shape ---------------------------------------------------- */
  --r-sm: 8px; --r-md: 14px; --r-lg: 22px; --r-full: 999px;
  --shadow-sm: 0 1px 2px rgba(28, 29, 33, .06), 0 2px 8px rgba(28, 29, 33, .05);
  --shadow-md: 0 4px 10px rgba(28, 29, 33, .07), 0 12px 28px rgba(28, 29, 33, .07);
  --shadow-lg: 0 10px 24px rgba(28, 29, 33, .1), 0 24px 56px rgba(28, 29, 33, .1);

  --header-h: 72px;
  --wrap: 1280px;
  --wrap-narrow: 760px;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  overflow-x: clip;   /* contains the off-canvas drawer; `hidden` would break position:sticky */
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
}
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: var(--t-base);
  line-height: 1.65;
  color: var(--ink);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
}
img, svg { max-width: 100%; display: block; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; margin: 0; padding: 0; }
p { margin: 0 0 1em; }
h1, h2, h3, h4 {
  font-family: var(--font-head);
  font-weight: 600;
  line-height: 1.12;
  margin: 0;
  text-wrap: balance;
}
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
input, select, textarea { font: inherit; color: inherit; }

/* ---------- Focus: visible, never removed ---------- */
:focus-visible {
  outline: 3px solid var(--red);
  outline-offset: 2px;
  border-radius: 3px;
}
.sr-only {
  position: absolute; width: 1px; height: 1px;
  margin: -1px; padding: 0; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 200;
  background: var(--ink); color: var(--white);
  padding: var(--s-3) var(--s-5); border-radius: 0 0 var(--r-sm) 0;
}
.skip-link:focus { left: 0; }

/* ---------- Layout ---------- */
.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--s-5); }
.wrap-narrow { width: 100%; max-width: var(--wrap-narrow); margin-inline: auto; padding-inline: var(--s-5); }
.section { padding-block: var(--section-y); }
.section--tight { padding-block: clamp(32px, 4vw, 56px); }
.section--cream { background: var(--cream); }
.section--sand { background: var(--sand); }
.section--ink { background: var(--ink); color: var(--white); }
.stack > * + * { margin-top: var(--s-4); }
.center { text-align: center; }

/* ---------- Type helpers ---------- */
.eyebrow {
  font-family: var(--font-head);
  font-size: var(--t-xs);
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--red-text);
  margin-bottom: var(--s-3);
}
.h1 { font-size: var(--t-3xl); }
.h2 { font-size: var(--t-2xl); }
.h3 { font-size: var(--t-xl); }
.lede { font-size: var(--t-md); color: var(--ink-70); max-width: 62ch; }
.muted { color: var(--ink-70); }
.script {
  font-family: var(--font-script);
  font-style: italic;
  font-weight: 400;
  font-size: 1.25em;
  line-height: .9;
  display: inline-block;
  transform: rotate(-6deg);
  margin-inline: .08em;
}

/* ---------- Buttons ---------- */
.btn {
  --btn-bg: transparent;
  --btn-fg: var(--ink);
  --btn-bd: var(--line-strong);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--s-2);
  min-height: 48px;
  padding: var(--s-3) var(--s-6);
  border: 1.5px solid var(--btn-bd);
  border-radius: var(--r-full);
  background: var(--btn-bg);
  color: var(--btn-fg);
  font-family: var(--font-head);
  font-size: var(--t-sm);
  letter-spacing: .06em;
  text-transform: uppercase;
  transition: background-color .2s, color .2s, border-color .2s, transform .12s;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn svg { width: 1em; height: 1em; }
.btn--primary { --btn-bg: var(--red); --btn-fg: var(--white); --btn-bd: var(--red); }
.btn--primary:hover { --btn-bg: var(--red-dark); --btn-bd: var(--red-dark); }
.btn--ink { --btn-bg: var(--ink); --btn-fg: var(--white); --btn-bd: var(--ink); }
.btn--ink:hover { --btn-bg: #000; --btn-bd: #000; }
.btn--light { --btn-bg: var(--white); --btn-fg: var(--ink); --btn-bd: var(--white); }
.btn--onDark { --btn-fg: var(--white); --btn-bd: rgba(255,255,255,.5); }
.btn--onDark:hover { --btn-bg: var(--white); --btn-fg: var(--ink); --btn-bd: var(--white); }
.btn--sm { min-height: 38px; padding: var(--s-2) var(--s-4); font-size: var(--t-xs); }
.btn--block { width: 100%; }

/* ---------- Cards ---------- */
.card {
  display: block;            /* .card is used on <a>, which is inline by default */
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: var(--s-5);
  box-shadow: var(--shadow-sm);
  transition: box-shadow .2s, transform .15s, border-color .2s;
}
a.card:hover, .card--link:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
  border-color: var(--line-strong);
}

.grid { display: grid; gap: var(--s-5); }
.grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

/* ---------- Badges / chips ---------- */
.badge {
  display: inline-flex;
  align-items: center;
  gap: var(--s-1);
  padding: 3px 10px;
  border-radius: var(--r-full);
  background: var(--sand);
  color: var(--ink);
  font-family: var(--font-head);
  font-size: var(--t-xs);
  letter-spacing: .06em;
}
.badge--red { background: var(--red); color: var(--white); }
.badge--ghost { background: transparent; border: 1px solid var(--line-strong); }

.chip {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: var(--s-2) var(--s-4);
  border: 1.5px solid var(--line-strong);
  border-radius: var(--r-full);
  background: var(--white);
  font-size: var(--t-sm);
  transition: background-color .18s, color .18s, border-color .18s;
}
.chip:hover { border-color: var(--ink); }
.chip[aria-pressed="true"] {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--white);
}

/* ---------- Forms ---------- */
.field { display: flex; flex-direction: column; gap: var(--s-2); }
.field label { font-family: var(--font-head); font-size: var(--t-sm); }
.field .hint { font-size: var(--t-xs); color: var(--ink-70); }
.input, .field input, .field select, .field textarea {
  width: 100%;
  min-height: 48px;
  padding: var(--s-3) var(--s-4);
  border: 1.5px solid var(--line-strong);
  border-radius: var(--r-sm);
  background: var(--white);
  font-size: var(--t-base);
}
.field textarea { min-height: 150px; resize: vertical; }
.input[aria-invalid="true"], .field [aria-invalid="true"] { border-color: var(--red-text); }
.field .error { font-size: var(--t-xs); color: var(--red-text); }

.alert {
  padding: var(--s-4);
  border-radius: var(--r-sm);
  border: 1px solid var(--line-strong);
  background: var(--white);
  font-size: var(--t-sm);
}
.alert--ok { background: #ecf7ef; border-color: #a9d6b6; }
.alert--err { background: #fdecef; border-color: #f0b3bd; }

/* =========================================================
   Header
   ========================================================= */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  /* No backdrop-filter: it makes the header a containing block for
     position:fixed descendants, which collapsed the off-canvas drawer
     to the header's height instead of the viewport's. */
  background: var(--cream);
  border-bottom: 1px solid transparent;
  transition: border-color .2s, box-shadow .2s;
}
.site-header.is-stuck { border-bottom-color: var(--line); box-shadow: var(--shadow-sm); }
.header-bar {
  max-width: 1480px;
  margin-inline: auto;
  padding: var(--s-3) var(--s-5);
  min-height: var(--header-h);
  display: flex;
  align-items: center;
  gap: var(--s-5);
}
.brand { flex: none; }
.brand img { width: 150px; }

.nav { margin-left: auto; }
.nav-list { display: flex; align-items: center; gap: var(--s-2); }
.nav-link {
  position: relative;
  display: inline-block;
  white-space: nowrap;      /* "About Us" / "Open a Salon" must not break */
  padding: var(--s-2) var(--s-3);
  border-radius: var(--r-sm);
  font-size: var(--t-sm);
  letter-spacing: .02em;
  color: var(--ink);
  transition: color .18s, background-color .18s;
}
.nav-link:hover { color: var(--red-text); background: rgba(28,29,33,.04); }
.nav-link[aria-current="page"] { color: var(--red-text); font-family: var(--font-head); }
.nav-link[aria-current="page"]::after {
  content: "";
  position: absolute;
  left: var(--s-3); right: var(--s-3); bottom: 2px;
  height: 2px; border-radius: 2px;
  background: var(--red);
}

.header-actions { display: flex; align-items: center; gap: var(--s-3); flex: none; }

.nav-toggle {
  display: none;
  width: 44px; height: 44px;
  align-items: center;
  justify-content: center;
  border-radius: var(--r-sm);
  border: 1px solid var(--line);
}
.nav-toggle span {
  display: block; position: relative;
  width: 20px; height: 2px; border-radius: 2px; background: var(--ink);
  transition: transform .22s, background-color .18s;
}
.nav-toggle span::before,
.nav-toggle span::after {
  content: ""; position: absolute; left: 0;
  width: 20px; height: 2px; border-radius: 2px; background: var(--ink);
  transition: transform .22s, top .22s;
}
.nav-toggle span::before { top: -6px; }
.nav-toggle span::after { top: 6px; }
.nav-toggle[aria-expanded="true"] span { background: transparent; }
.nav-toggle[aria-expanded="true"] span::before { top: 0; transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] span::after { top: 0; transform: rotate(-45deg); }

/* mobile drawer */
.nav-backdrop {
  position: fixed; inset: 0; z-index: 90;
  background: rgba(28,29,33,.45);
  opacity: 0; pointer-events: none;
  transition: opacity .22s;
}
body.nav-open .nav-backdrop { opacity: 1; pointer-events: auto; }

@media (max-width: 1150px) {
  .nav-toggle { display: inline-flex; }
  .header-actions .btn { display: none; }
  /* .nav carries margin-left:auto on desktop, but it is display:none when
     the drawer is closed, so the actions need to claim the space instead. */
  .header-actions { margin-left: auto; }
  .nav {
    position: fixed;
    inset: 0 0 0 auto;
    width: min(360px, 86vw);
    max-width: 100vw;
    z-index: 95;
    background: var(--cream);
    padding: calc(var(--header-h) + var(--s-5)) var(--s-5) var(--s-5);
    box-shadow: var(--shadow-lg);
    /* display:none when closed -- a fixed element parked off-screen still
       extends the document's scroll width, which gave every page a
       horizontal scrollbar on mobile. allow-discrete keeps the slide. */
    display: none;
    transform: translateX(100%);
    transition: transform .26s cubic-bezier(.4,0,.2,1),
                display .26s allow-discrete;
    overflow-y: auto;
    scrollbar-gutter: stable;   /* links keep the same width when it scrolls */
    overscroll-behavior: contain;
  }
  body.nav-open .nav {
    display: block;
    transform: translateX(0);
  }
  @starting-style {
    body.nav-open .nav { transform: translateX(100%); }
  }
  .nav-list { flex-direction: column; align-items: stretch; gap: 0; }
  .nav-link {
    display: block;
    padding: var(--s-4) var(--s-2);
    font-size: var(--t-md);
    border-bottom: 1px solid var(--line);
    border-radius: 0;
  }
  .nav-link[aria-current="page"]::after { display: none; }
  .nav-cta { margin-top: var(--s-5); display: grid; gap: var(--s-3); }
}
@media (min-width: 1151px) { .nav-cta { display: none; } }

/* =========================================================
   Hero
   ========================================================= */
.hero {
  position: relative;
  min-height: min(82vh, 760px);
  display: grid;
  align-items: center;
  padding-block: var(--s-9);
  background-color: #e4a0a4;
  background-size: cover;
  background-position: center;
  color: var(--white);
  isolation: isolate;
}
.hero::after {
  content: "";
  position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg, rgba(28,29,33,.42) 0%, rgba(28,29,33,.18) 42%, rgba(28,29,33,.46) 100%);
}
.hero--compact { min-height: min(56vh, 470px); padding-block: var(--s-8); }
.hero h1 {
  font-size: var(--t-hero);
  text-shadow: 0 2px 24px rgba(0,0,0,.28);
  max-width: 18ch;
}
.hero--center { text-align: center; }
.hero--center h1 { max-width: 22ch; margin-inline: auto; }
.hero p {
  font-size: var(--t-md);
  max-width: 54ch;
  margin-top: var(--s-4);
  text-shadow: 0 1px 12px rgba(0,0,0,.3);
}
.hero--center p { margin-inline: auto; }
.hero-actions { display: flex; flex-wrap: wrap; gap: var(--s-3); margin-top: var(--s-6); }
.hero--center .hero-actions { justify-content: center; }

/* ---------- Breadcrumbs ---------- */
.crumbs {
  display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-2);
  font-size: var(--t-sm);
  color: var(--ink-70);
  padding-block: var(--s-4);
}
.crumbs a:hover { color: var(--red-text); text-decoration: underline; }
.crumbs li { display: flex; align-items: center; gap: var(--s-2); }
.crumbs li + li::before { content: "/"; color: var(--ink-45); }

/* ---------- Ticker ---------- */
.ticker {
  background: var(--ink);
  color: var(--white);
  overflow: hidden;
  padding-block: var(--s-4);
}
.ticker-track { display: flex; width: max-content; animation: ticker 30s linear infinite; }
.ticker-item {
  flex: none;
  padding-inline: var(--s-7);
  font-family: var(--font-head);
  font-size: var(--t-xs);
  letter-spacing: .14em;
  text-transform: uppercase;
  white-space: nowrap;
}
@keyframes ticker { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .ticker-track { animation: none; } }

/* ---------- Service / feature cards ---------- */
.feature { text-align: center; }
.feature img { width: 140px; height: 140px; object-fit: contain; margin-inline: auto; }
.feature h3 { margin-top: var(--s-4); font-size: var(--t-lg); }
.feature p { margin-top: var(--s-2); font-size: var(--t-sm); color: var(--ink-70); }

/* ---------- Split ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 5vw, 72px); align-items: center; }
.split--media-right .split-media { order: 2; }
.split-media img { width: 100%; border-radius: var(--r-md); }

/* ---------- Accordion ---------- */
.acc { border-top: 1px solid var(--line); }
.acc-item { border-bottom: 1px solid var(--line); }
.acc-head {
  width: 100%;
  display: flex; align-items: center; justify-content: space-between; gap: var(--s-4);
  padding: var(--s-4) var(--s-2);
  text-align: left;
  font-family: var(--font-head);
  font-size: var(--t-md);
}
.acc-head:hover { color: var(--red-text); }
.acc-icon { flex: none; width: 18px; height: 18px; position: relative; }
.acc-icon::before, .acc-icon::after {
  content: ""; position: absolute; background: currentColor; transition: transform .22s, opacity .22s;
}
.acc-icon::before { inset: 8px 0; height: 2px; }
.acc-icon::after { inset: 0 8px; width: 2px; }
.acc-head[aria-expanded="true"] .acc-icon::after { transform: scaleY(0); opacity: 0; }
.acc-panel { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .26s ease; }
.acc-panel > div { overflow: hidden; }
.acc-panel > div > p { margin: 0; padding: 0 var(--s-2); font-size: var(--t-sm); color: var(--ink-70); }
.acc-item.is-open .acc-panel { grid-template-rows: 1fr; }
.acc-item.is-open .acc-panel > div > p { padding-bottom: var(--s-5); }

/* =========================================================
   Footer
   ========================================================= */
.site-footer { background: var(--red); color: var(--white); padding-block: var(--s-8) var(--s-6); }
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: var(--s-7) var(--s-5);
}
.footer-grid h2 {
  font-size: var(--t-xs);
  letter-spacing: .14em;
  text-transform: uppercase;
  margin-bottom: var(--s-4);
  opacity: .92;
}
.footer-promise { font-family: var(--font-head); letter-spacing: .06em; text-transform: uppercase; font-size: var(--t-sm); }
.footer-promise li + li { margin-top: var(--s-4); }
.footer-nav li + li { margin-top: var(--s-2); }
.footer-nav a { font-size: var(--t-sm); opacity: .94; }
.footer-nav a:hover { text-decoration: underline; }
.footer-art img { width: 100%; max-width: 260px; }
.footer-social { display: flex; gap: var(--s-3); margin-top: var(--s-5); }
.footer-social a {
  width: 44px; height: 44px;
  display: grid; place-items: center;
  border: 1px solid rgba(255,255,255,.55);
  border-radius: var(--r-full);
  transition: background-color .18s, color .18s;
}
.footer-social a:hover { background: var(--white); color: var(--red); }
.footer-social svg { width: 20px; height: 20px; }
.footer-base {
  margin-top: var(--s-7);
  padding-top: var(--s-5);
  border-top: 1px solid rgba(255,255,255,.3);
  display: flex; flex-wrap: wrap; gap: var(--s-4);
  justify-content: space-between;
  font-size: var(--t-xs);
  opacity: .9;
}

/* =========================================================
   Responsive
   ========================================================= */
@media (max-width: 1024px) {
  .grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 860px) {
  .grid--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .split { grid-template-columns: 1fr; }
  .split--media-right .split-media { order: 0; }
}
@media (max-width: 600px) {
  .grid--2, .grid--3, .grid--4 { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .hero { min-height: 62vh; }

  /* The script face is ~2x the width of the body face at the same size,
     and "experience" cannot hyphenate. At the old 40px floor its
     min-content width exceeded 390px, which widened the whole page and
     clipped every section. Scale the hero down and let long words break. */
  :root { --t-hero: clamp(1.75rem, 8.5vw, 2.5rem); }
  .hero h1 { max-width: 100%; overflow-wrap: break-word; }
  .hero h1 .script { font-size: 1.1em; margin-inline: 0; }
  .hero p { font-size: var(--t-base); }

  .h1, .h2 { overflow-wrap: break-word; }
  .h2 { font-size: clamp(1.4rem, 6.2vw, 1.875rem); }
}

/* Grid/flex children default to min-width:auto, so one wide child can
   stretch its track. Opt every layout wrapper out of that. */
.hero > .wrap,
.split > *,
.grid > * { min-width: 0; }

/* =========================================================
   Icon sizing — must live here, not in a page-scoped sheet,
   or an inline SVG renders at its intrinsic size.
   ========================================================= */
.btn-ico { display: inline-flex; flex: none; }
.btn-ico svg, .chip svg, .badge svg { width: 1em; height: 1em; }

/* Search field pattern — shared by the home teaser and the locator */
.locator-search { position: relative; }
.locator-search .input { padding-left: 46px; }
.locator-search > svg {
  position: absolute;
  left: var(--s-4);
  top: 50%;
  transform: translateY(-50%);
  width: 18px;
  height: 18px;
  color: var(--ink-45);
  pointer-events: none;
}

/* =========================================================
   Home hero — the original site's pair: a wide crop for
   desktop, a near-square one for portrait screens.
   ========================================================= */
.hero--home { background-image: url('/assets/img/Banner2.jpg'); }
@media (max-width: 992px) {
  .hero--home { background-image: url('/assets/img/Banner4.jpg'); }
}
