/* ============================================================
   REGAL NAILS · SANTURCE — Design tokens & global styles
   Palette: Ink black / Ivory / Champagne gold
   Type: Playfair Display (display) + Inter (UI/body)
   ============================================================ */

:root {
  /* Color tokens */
  --ink:        #131313;
  --ink-soft:   #2A2A2C;
  --ivory:      #FAF7F0;
  --ivory-deep: #F1EDE2;
  --paper:      #FFFFFF;
  --gold-text:  #7E6231;   /* gold for TEXT on light — 5.2:1 on ivory (WCAG AA) */
  --gold:       #A88234;   /* decorative gold: rules, borders, icons — 3.3:1 on ivory */
  --gold-bright:#C6A863;   /* gold on dark surfaces — 7.9:1 on ink */
  --gold-soft:  #E9DFC8;
  --line:       #DDD5C4;
  --line-dark:  #3A3A3C;
  --text:       var(--ink);
  --text-muted: #5C594F;
  --danger:     #B3261E;

  /* Type scale */
  --fs-hero:  clamp(2.6rem, 6.5vw, 4.75rem);
  --fs-h2:    clamp(2rem, 4vw, 3rem);
  --fs-h3:    clamp(1.25rem, 2vw, 1.5rem);
  --fs-body:  1.0625rem;
  --fs-small: 0.875rem;
  --fs-eyebrow: 0.8125rem;

  /* Spacing scale (8px rhythm) */
  --s-1: .5rem; --s-2: 1rem; --s-3: 1.5rem; --s-4: 2rem;
  --s-5: 3rem;  --s-6: 4rem; --s-7: 6rem;  --s-8: 8rem;

  /* Layout */
  --container: 72rem;
  --radius: 4px;
  --arch: 999px 999px 4px 4px;

  /* Motion */
  --ease-out: cubic-bezier(.22,.61,.36,1);
  --t-fast: 180ms; --t-med: 320ms; --t-slow: 650ms;

  /* Z scale */
  --z-nav: 100; --z-sticky-cta: 90; --z-skip: 200;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

body {
  margin: 0;
  font-family: "Inter", "Helvetica Neue", Arial, sans-serif;
  font-size: var(--fs-body);
  line-height: 1.65;
  color: var(--text);
  background: var(--ivory);
  -webkit-font-smoothing: antialiased;
}

img, svg { max-width: 100%; display: block; }

h1, h2, h3 {
  font-family: "Playfair Display", Georgia, serif;
  font-weight: 500;
  line-height: 1.12;
  margin: 0 0 var(--s-3);
  text-wrap: balance;
}
h1 { font-size: var(--fs-hero); letter-spacing: -.01em; }
h2 { font-size: var(--fs-h2); }
h3 { font-size: var(--fs-h3); }
p  { margin: 0 0 var(--s-2); max-width: 65ch; }

a { color: inherit; }
:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 3px;
  border-radius: 2px;
}

.container { max-width: var(--container); margin-inline: auto; padding-inline: clamp(1.25rem, 4vw, 2.5rem); }
.section { padding-block: clamp(4rem, 9vw, 7rem); }
.section--dark { background: var(--ink); color: var(--ivory); }
.section--paper { background: var(--paper); }

.eyebrow {
  display: inline-flex; align-items: center; gap: .75rem;
  font-size: var(--fs-eyebrow); font-weight: 600;
  letter-spacing: .22em; text-transform: uppercase;
  color: var(--gold-text); margin-bottom: var(--s-2);
}
.eyebrow::before { content: ""; width: 2.5rem; height: 1px; background: var(--gold); }
.section--dark .eyebrow { color: var(--gold-bright); }
.section--dark .eyebrow::before { background: var(--gold-bright); }

.muted { color: var(--text-muted); }
.section--dark .muted { color: #C9C4B8; }

/* ---------- Skip link ---------- */
.skip-link {
  position: fixed; top: -4rem; left: 1rem; z-index: var(--z-skip);
  background: var(--ink); color: var(--ivory);
  padding: .75rem 1.25rem; border-radius: var(--radius);
  transition: top var(--t-fast) var(--ease-out);
}
.skip-link:focus-visible { top: 1rem; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .6rem;
  min-height: 48px; padding: .8rem 1.9rem;
  font: 600 var(--fs-small)/1 "Inter", sans-serif;
  letter-spacing: .14em; text-transform: uppercase; text-decoration: none;
  border: 1px solid var(--ink); border-radius: var(--radius);
  cursor: pointer; transition: background var(--t-fast) var(--ease-out),
    color var(--t-fast) var(--ease-out), border-color var(--t-fast) var(--ease-out),
    transform var(--t-fast) var(--ease-out);
}
.btn:active { transform: scale(.97); }
.btn svg { width: 1.05em; height: 1.05em; flex: none; }
.nav-call { flex: none; white-space: nowrap; }

.btn--solid { background: var(--ink); color: var(--ivory); }
.btn--solid:hover { background: var(--gold); border-color: var(--gold); color: var(--ink); }
.btn--ghost { background: transparent; color: var(--ink); }
.btn--ghost:hover { background: var(--ink); color: var(--ivory); }

.section--dark .btn--solid, .on-dark.btn--solid { background: var(--gold-bright); border-color: var(--gold-bright); color: var(--ink); }
.section--dark .btn--solid:hover, .on-dark.btn--solid:hover { background: var(--ivory); border-color: var(--ivory); }
.section--dark .btn--ghost, .on-dark.btn--ghost { border-color: var(--ivory); color: var(--ivory); }
.section--dark .btn--ghost:hover, .on-dark.btn--ghost:hover { background: var(--ivory); color: var(--ink); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: var(--z-nav);
  background: color-mix(in srgb, var(--ivory) 92%, transparent);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.nav {
  display: flex; align-items: center; gap: var(--s-3);
  min-height: 4.5rem;
}
.brand { display: flex; align-items: center; gap: .8rem; min-width: 0; text-decoration: none; color: var(--ink); }
.brand > span { min-width: 0; }
.brand svg { width: 2.1rem; height: 2.1rem; color: var(--gold); }
.brand-name {
  font-family: "Playfair Display", Georgia, serif;
  font-size: 1.3rem; letter-spacing: .18em;
}
.brand-sub {
  display: block; font: 500 .58rem/1.4 "Inter", sans-serif;
  letter-spacing: .34em; text-transform: uppercase; color: var(--text-muted);
}

.nav-links { display: flex; gap: clamp(1rem, 2.5vw, 2.25rem); list-style: none; margin: 0 0 0 auto; padding: 0; }
.nav-links a {
  font: 500 var(--fs-small)/1 "Inter", sans-serif;
  letter-spacing: .08em; text-decoration: none; padding: .6rem .15rem;
  border-bottom: 2px solid transparent;
  transition: border-color var(--t-fast) var(--ease-out), color var(--t-fast) var(--ease-out);
}
.nav-links a:hover, .nav-links a[aria-current="true"] { border-bottom-color: var(--gold); color: var(--gold-text); }

.lang-toggle {
  display: inline-flex; flex: none;
  border: 1px solid var(--ink); border-radius: var(--radius); overflow: hidden;
}
.lang-toggle > * {
  display: grid; place-items: center;
  min-width: 44px; min-height: 40px;
  font: 600 .78rem/1 "Inter", sans-serif; letter-spacing: .1em;
  text-decoration: none; color: var(--text-muted);
  transition: background var(--t-fast), color var(--t-fast);
}
.lang-toggle a:hover { background: var(--ivory-deep); color: var(--ink); }
.lang-toggle .lang-on { background: var(--ink); color: var(--ivory); cursor: default; }

.nav-call { display: inline-flex; }
.nav-burger {
  display: none; margin-left: auto; flex: none;
  width: 48px; height: 48px; border: 1px solid var(--ink); border-radius: var(--radius);
  background: transparent; cursor: pointer; align-items: center; justify-content: center;
}
.nav-burger svg { width: 1.4rem; height: 1.4rem; }

@media (max-width: 900px) {
  .nav-links {
    display: none;
    position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; gap: 0;
    background: var(--ivory); border-bottom: 1px solid var(--line);
    padding: var(--s-2) clamp(1.25rem, 4vw, 2.5rem) var(--s-3);
  }
  .nav-links.open { display: flex; }
  .nav-links a { display: block; padding: .9rem .15rem; border-bottom: 1px solid var(--line); }
  .nav-burger { display: inline-flex; }
  .nav-call { display: none; }
  .lang-toggle { margin-left: auto; }
  .nav-burger { margin-left: 0; }
  .brand-sub { letter-spacing: .22em; }
}
@media (max-width: 400px) {
  .nav { gap: .6rem; }
  .brand svg { width: 1.8rem; height: 1.8rem; }
  .brand-name { font-size: 1.1rem; letter-spacing: .14em; }
  .brand-sub { font-size: .6rem; letter-spacing: .14em; }
}

/* ---------- Hero ---------- */
.hero { position: relative; overflow: clip; }
.hero-grid {
  display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr);
  gap: clamp(2rem, 5vw, 5rem); align-items: center;
  padding-block: clamp(3.5rem, 8vw, 6.5rem);
}
.hero-copy .btn + .btn { margin-left: .9rem; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: .9rem; margin-top: var(--s-4); }
.hero-ctas .btn + .btn { margin-left: 0; }
.hero-note { margin-top: var(--s-3); font-size: var(--fs-small); color: var(--text-muted); }
.hero-note strong { color: var(--ink); }

.hero-art { position: relative; display: grid; grid-template-columns: repeat(12, 1fr); }
.hero-art .arch-main {
  grid-column: 3 / 13; grid-row: 1;
  border-radius: var(--arch); overflow: hidden;
  border: 1px solid var(--line);
  aspect-ratio: 4 / 5;
}
.hero-art .arch-side {
  grid-column: 1 / 6; grid-row: 1; align-self: end;
  transform: translateY(14%);
  border-radius: var(--arch); overflow: hidden;
  border: 4px solid var(--ivory); box-shadow: 0 24px 60px rgba(19,19,19,.18);
  aspect-ratio: 3 / 4; background: var(--paper);
}
.hero-art img { width: 100%; height: 100%; object-fit: cover; }
.hero-ring {
  position: absolute; inset: auto -6% -10% auto; width: 46%;
  aspect-ratio: 1; border: 1px solid var(--gold); border-radius: 50%;
  opacity: .5; pointer-events: none;
}

@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-art { max-width: 26rem; margin-inline: auto; width: 100%; }
}

/* ---------- Stats strip ---------- */
.stats { border-block: 1px solid var(--line-dark); }
.stats-grid { display: grid; grid-template-columns: repeat(2, 1fr); }
.stat { padding: var(--s-4) var(--s-3); text-align: center; }
.stat + .stat { border-left: 1px solid var(--line-dark); }
.stat b {
  display: block; font: 500 clamp(1.9rem, 3.5vw, 2.6rem)/1.1 "Playfair Display", serif;
  color: var(--gold-bright); font-variant-numeric: tabular-nums;
}
.stat span { font-size: var(--fs-small); letter-spacing: .12em; text-transform: uppercase; color: #C9C4B8; }
@media (max-width: 640px) {
  .stats-grid { grid-template-columns: 1fr; }
  .stat + .stat { border-left: 0; border-top: 1px solid var(--line-dark); }
}

/* ---------- Services ---------- */
.services-head { display: flex; align-items: end; justify-content: space-between; gap: var(--s-3); flex-wrap: wrap; margin-bottom: var(--s-5); }
.services-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s-3); }
.svc {
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius);
  padding: var(--s-4);
  transition: transform var(--t-med) var(--ease-out), box-shadow var(--t-med) var(--ease-out), border-color var(--t-med);
}
.svc:hover { transform: translateY(-4px); box-shadow: 0 18px 44px rgba(19,19,19,.10); border-color: var(--gold-soft); }
.svc-icon {
  width: 3rem; height: 3rem; display: grid; place-items: center;
  border: 1px solid var(--gold); border-radius: 50%; color: var(--gold);
  margin-bottom: var(--s-3);
}
.svc-icon svg { width: 1.35rem; height: 1.35rem; }
.svc h3 { margin-bottom: .5rem; }
.svc p { font-size: var(--fs-small); color: var(--text-muted); margin-bottom: var(--s-3); }
.svc-price {
  display: flex; align-items: baseline; justify-content: space-between;
  border-top: 1px solid var(--line); padding-top: var(--s-2);
  font-size: var(--fs-small);
}
.svc-price b { font: 500 1.25rem/1 "Playfair Display", serif; color: var(--gold-text); font-variant-numeric: tabular-nums; }
@media (max-width: 980px) { .services-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .services-grid { grid-template-columns: 1fr; } }

/* ---------- About / Why us ---------- */
.about-grid { display: grid; grid-template-columns: minmax(0,.9fr) minmax(0,1.1fr); gap: clamp(2.5rem, 6vw, 6rem); align-items: center; }
.about-art { position: relative; }
.about-art .arch { border-radius: var(--arch); overflow: hidden; border: 1px solid var(--line-dark); aspect-ratio: 4/5; }
.about-art img { width: 100%; height: 100%; object-fit: cover; }
.about-badge {
  position: absolute; right: -1rem; bottom: 2.5rem;
  background: var(--gold-bright); color: var(--ink);
  border-radius: var(--radius); padding: var(--s-2) var(--s-3);
  font: 600 var(--fs-small)/1.4 "Inter", sans-serif; letter-spacing: .06em;
  box-shadow: 0 16px 40px rgba(0,0,0,.35);
}
.why-list { list-style: none; margin: var(--s-4) 0 0; padding: 0; display: grid; gap: var(--s-3); }
.why-list li { display: flex; gap: var(--s-2); align-items: flex-start; }
.why-list svg { width: 1.5rem; height: 1.5rem; flex: none; color: var(--gold-bright); margin-top: .2rem; }
.why-list b { display: block; font: 600 1rem/1.4 "Inter", sans-serif; }
.why-list p { font-size: var(--fs-small); margin: 0; color: #C9C4B8; }
@media (max-width: 900px) { .about-grid { grid-template-columns: 1fr; } .about-art { max-width: 24rem; margin-inline: auto; } }

/* ---------- Gallery ---------- */
.gallery-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s-2); }
.gallery-grid figure {
  margin: 0; border-radius: var(--radius); overflow: hidden;
  border: 1px solid var(--line); aspect-ratio: 1; background: var(--paper);
}
.gallery-grid img { width: 100%; height: 100%; object-fit: cover; transition: transform var(--t-slow) var(--ease-out); }
.gallery-grid figure:hover img { transform: scale(1.04); }
@media (max-width: 700px) { .gallery-grid { grid-template-columns: repeat(2, 1fr); } }

/* ---------- Testimonials ---------- */
.quotes-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s-3); }
.quote {
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius);
  padding: var(--s-4); display: flex; flex-direction: column; gap: var(--s-2);
}
.quote-stars { display: flex; gap: .25rem; color: var(--gold); }
.quote-stars svg { width: 1rem; height: 1rem; }
.quote blockquote {
  margin: 0; font-family: "Playfair Display", Georgia, serif;
  font-size: 1.15rem; line-height: 1.5; font-style: italic;
}
.quote figcaption { font-size: var(--fs-small); color: var(--text-muted); letter-spacing: .06em; }
@media (max-width: 900px) { .quotes-grid { grid-template-columns: 1fr; } }

/* ---------- Visit / contact ---------- */
.visit-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: clamp(2rem, 5vw, 4.5rem); }
.visit-block h3 { display: flex; align-items: center; gap: .7rem; }
.visit-block h3 svg { width: 1.2rem; height: 1.2rem; color: var(--gold-bright); }
.hours { width: 100%; border-collapse: collapse; font-size: var(--fs-small); }
.hours th, .hours td { text-align: left; padding: .65rem 0; border-bottom: 1px solid var(--line-dark); }
.hours td { text-align: right; font-variant-numeric: tabular-nums; color: #C9C4B8; }
.hours .today th, .hours .today td { color: var(--gold-bright); font-weight: 600; }
.visit-cta { margin-top: var(--s-4); display: flex; flex-wrap: wrap; gap: .9rem; }
address { font-style: normal; }
.map-link { color: var(--gold-bright); text-underline-offset: 3px; }
@media (max-width: 760px) { .visit-grid { grid-template-columns: 1fr; } }

/* ---------- Footer ---------- */
.site-footer { background: #0C0C0D; color: #A8A398; padding-block: var(--s-5); font-size: var(--fs-small); }
.footer-row { display: flex; align-items: center; justify-content: space-between; gap: var(--s-3); flex-wrap: wrap; }
.footer-brand { display: flex; align-items: center; gap: .7rem; color: var(--ivory); }
.footer-brand svg { width: 1.6rem; height: 1.6rem; color: var(--gold-bright); }
.footer-social { display: flex; gap: var(--s-2); list-style: none; margin: 0; padding: 0; }
.footer-social a {
  display: grid; place-items: center; width: 44px; height: 44px;
  border: 1px solid var(--line-dark); border-radius: 50%; color: #C9C4B8;
  transition: color var(--t-fast), border-color var(--t-fast);
}
.footer-social a:hover { color: var(--gold-bright); border-color: var(--gold-bright); }
.footer-social svg { width: 1.15rem; height: 1.15rem; }

/* ---------- Sticky mobile call bar ---------- */
.sticky-call {
  display: none;
  position: fixed; left: 0; right: 0; bottom: 0; z-index: var(--z-sticky-cta);
  background: var(--ink); border-top: 1px solid var(--line-dark);
  padding: .65rem clamp(1rem, 4vw, 2rem) calc(.65rem + env(safe-area-inset-bottom));
  gap: .75rem;
}
.sticky-call .btn { flex: 1; min-height: 50px; }
@media (max-width: 760px) {
  .sticky-call { display: flex; }
  body { padding-bottom: 5.5rem; }
}

/* ---------- Scroll reveal ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity var(--t-slow) var(--ease-out), transform var(--t-slow) var(--ease-out); }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; } }

/* Inline contact links: meet WCAG 2.2 target-size minimum (24x24 CSS px) */
address a, .map-link {
  display: inline-block;
  min-height: 24px;
  padding-block: 2px;
}

/* Focal points: keep the nails in frame when the arch crops the photo */
.about-art .arch img { object-position: center 30%; }
.hero-art .arch-main img { object-position: center 42%; }

/* ---------- Full price list ---------- */
.price-note { max-width: 58ch; margin-bottom: var(--s-5); font-size: var(--fs-small); }

.price-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(17rem, 1fr));
  gap: var(--s-4) clamp(2rem, 5vw, 4rem);
}
.price-block { break-inside: avoid; }
.price-block h3 {
  font-size: 1.15rem;
  letter-spacing: .02em;
  padding-bottom: .6rem;
  margin-bottom: .35rem;
  border-bottom: 2px solid var(--gold);
}
.price-list { margin: 0; }
.price-list > div {
  display: flex;
  align-items: baseline;
  gap: .75rem;
  padding-block: .6rem;
  border-bottom: 1px solid var(--line);
}
.price-list > div:last-child { border-bottom: 0; }
.price-list dt { margin: 0; font-size: var(--fs-small); }
.price-list dd {
  margin: 0 0 0 auto;
  font: 500 1.0625rem/1 "Playfair Display", Georgia, serif;
  color: var(--gold-text);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.price-gift {
  display: inline-flex; align-items: center; gap: .65rem;
  margin-top: var(--s-5); padding: .85rem 1.4rem;
  border: 1px solid var(--gold); border-radius: var(--radius);
  background: var(--ivory);
  font-size: var(--fs-small); font-weight: 600;
  letter-spacing: .04em; color: var(--gold-text);
}
.price-gift svg { width: 1.25rem; height: 1.25rem; flex: none; }

/* Walmart wayfinding line in the address block */
.addr-inside {
  font-weight: 600;
  color: var(--gold-bright);
  margin-bottom: .35rem;
}

/* "up" = starting price, as printed on the salon's menu */
.price-list .up {
  font-family: "Inter", sans-serif;
  font-size: .68rem;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--text-muted);
}

/* Header: 6 nav items + toggle + CTA get tight before the burger kicks in at 900px */
.nav-links a { white-space: nowrap; }
@media (min-width: 901px) and (max-width: 1240px) {
  .nav { gap: 1rem; }
  .nav-links { gap: 1.15rem; }
  .brand-sub { display: none; }
  .brand svg { width: 1.9rem; height: 1.9rem; }
}
.brand-sub { white-space: nowrap; }
