/* Maison Aurel — soft salon style. See design-system/MASTER.md */
:root {
  --bg: #FFF6F3;
  --surface: #FFFFFF;
  --blush: #FBE3E0;
  --ink: #2D282A;
  --muted: #4A3F43;
  --accent: #7A2440;
  --accent-dark: #5C1830;
  --line: #EEDAD6;
  --serif: "Playfair Display", Georgia, serif;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --radius: 20px;
  --shadow: 0 2px 6px rgb(120 60 70 / .05), 0 14px 36px rgb(120 60 70 / .09);
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 1rem/1.7 var(--sans); overflow-x: clip; }
img { display: block; max-width: 100%; height: auto; }
h1, h2, h3, p, ul, ol, dl, dd, blockquote { margin: 0; padding: 0; }
ul, ol { list-style: none; }
a { color: inherit; text-underline-offset: .2em; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; }
h1, h2, h3 { font-family: var(--serif); font-weight: 600; line-height: 1.15; text-wrap: balance; }
h1 { font-size: clamp(2.5rem, 5.4vw, 4.5rem); }
h2 { font-size: clamp(2rem, 3.8vw, 3rem); }
h3 { font-size: 1.35rem; }
em { font-style: normal; color: var(--accent); }
address { font-style: normal; }
[id] { scroll-margin-top: 6rem; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
.skip { position: absolute; left: 1rem; top: -5rem; z-index: 100; background: var(--ink); color: #fff; padding: .75rem 1rem; border-radius: 8px; }
.skip:focus { top: 1rem; }

.wrap { width: min(100% - 2.5rem, 72rem); margin-inline: auto; }
.section { padding: clamp(4rem, 8vw, 7rem) 0; }
.tint { background: rgb(255 255 255 / .28); }
.section-head { text-align: center; max-width: 38rem; margin: 0 auto 3rem; }
.section-head > p:last-child:not(.eyebrow) { color: var(--muted); margin-top: .75rem; }
.eyebrow { color: var(--accent); font-size: .75rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; margin-bottom: .6rem; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }

.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 3.25rem; padding: .6rem 1.8rem; border: 2px solid var(--accent); border-radius: 999px; background: var(--accent); color: #fff; font-weight: 600; font-size: .95rem; text-decoration: none; cursor: pointer; transition: background-color .2s, border-color .2s, transform .2s; }
.btn:hover { background: var(--accent-dark); border-color: var(--accent-dark); transform: translateY(-2px); }
.btn-ghost { background: transparent; color: var(--ink); border-color: #E6B4B8; }
.btn-ghost:hover { background: var(--blush); border-color: var(--accent); }

/* Navigation */
.masthead { position: fixed; inset: .75rem 0 auto; z-index: 50; }
.bar { width: min(100% - 1.5rem, 74rem); margin-inline: auto; display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 4.5rem; padding: .5rem .75rem .5rem 1.5rem; background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow); }
.wordmark { font: 600 1.4rem var(--serif); text-decoration: none; white-space: nowrap; }
.wordmark span { color: var(--accent); }
.nav ul { display: flex; align-items: center; gap: 1.75rem; }
.nav a:not(.btn) { display: inline-block; padding: .6rem 0; font-size: .9rem; font-weight: 500; color: var(--muted); text-decoration: none; }
.nav a:not(.btn):hover, .nav a:not(.btn)[aria-current] { color: var(--accent); }
.nav-book { min-height: 3rem; }
.menu-toggle { display: none; }

/* Hero */
.hero { display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: clamp(2rem, 6vw, 5rem); padding: 8rem 0 5rem; }
.pill { display: inline-block; background: var(--blush); border-radius: 999px; padding: .35rem 1rem; font-size: .85rem; font-weight: 500; margin-bottom: 1.25rem; }
.lead { color: var(--muted); font-size: 1.15rem; max-width: 30rem; margin-top: 1.25rem; }
.actions { display: flex; flex-wrap: wrap; gap: 1rem; margin-top: 2rem; }
.stats { display: flex; flex-wrap: wrap; gap: 1rem 2.5rem; margin-top: 2.5rem; }
.stats div { display: flex; flex-direction: column-reverse; }
.stats dt { font-size: .85rem; color: var(--muted); }
.stats dd { font-size: 1.6rem; font-weight: 600; line-height: 1.3; }
.hero-photo { position: relative; width: 100%; max-width: 32rem; justify-self: end; }
.frame { background: var(--surface); padding: .9rem; border-radius: 28px; box-shadow: var(--shadow); }
.frame img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: var(--radius); }
.hero-photo .frame img { height: min(70svh, 40rem); aspect-ratio: auto; min-height: 26rem; }
.badge { position: absolute; background: var(--surface); border-radius: 16px; box-shadow: var(--shadow); padding: .7rem 1.1rem; font-size: .8rem; color: var(--muted); }
.badge b { display: block; color: var(--ink); font-size: .95rem; }
.badge-top { top: 2.5rem; right: -.75rem; }
.badge-bottom { bottom: 2.5rem; left: -1.5rem; }

/* Services */
.services { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.5rem; }
.service { display: flex; flex-direction: column; overflow: hidden; }
.service > img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.card-body { display: flex; flex-direction: column; flex: 1; padding: 1.5rem; }
.service ul { margin: .75rem 0 1.25rem; }
.service li { padding: .7rem 0; border-bottom: 1px solid var(--line); }
.row { display: flex; justify-content: space-between; gap: 1rem; font-weight: 600; font-size: .95rem; }
.row b { white-space: nowrap; color: var(--accent); }
.meta { font-size: .8125rem; color: var(--muted); }
.more { margin-top: auto; align-self: start; min-height: 2.75rem; display: inline-flex; align-items: center; color: var(--accent); font-weight: 600; font-size: .9rem; }
.help { background: var(--blush); justify-content: center; text-align: center; }
.help .card-body { justify-content: center; align-items: center; gap: 1rem; }
.note { text-align: center; color: var(--muted); font-size: .85rem; margin-top: 2rem; }

/* About */
.about { display: grid; grid-template-columns: 5fr 6fr; gap: clamp(2rem, 6vw, 5rem); align-items: center; }
.about h2 { margin-bottom: 1.25rem; }
.about p:not(.eyebrow) { color: var(--muted); margin-bottom: 1rem; }
.ticks { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin-top: 1.75rem; }
.ticks li { display: flex; align-items: center; gap: .7rem; font-size: .9rem; font-weight: 500; }
.ticks svg { flex: none; width: 2.25rem; height: 2.25rem; padding: .5rem; border-radius: 50%; background: var(--blush); fill: none; stroke: var(--accent); stroke-width: 2.5; }

/* Gallery */
.gallery { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1rem; }
.gallery a { display: block; overflow: hidden; border-radius: 16px; cursor: zoom-in; }
.gallery img { width: 100%; aspect-ratio: 1; object-fit: cover; transition: transform .4s; }
.gallery a:hover img { transform: scale(1.05); }
.gallery a:focus-visible { outline-offset: 2px; }

/* Team and testimonials */
.team { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1.25rem; }
.person { padding: 2rem 1.25rem; text-align: center; font-size: .9rem; color: var(--muted); }
.person h3 { color: var(--ink); font-size: 1.15rem; }
.avatar { display: grid; place-items: center; width: 5rem; height: 5rem; margin: 0 auto 1rem; border-radius: 50%; background: var(--blush); color: var(--accent); font: 600 1.5rem var(--serif); }
.role { color: var(--accent); font-weight: 600; font-size: .8rem; margin: .25rem 0 .75rem; }
.reviews { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.5rem; }
.review { display: flex; flex-direction: column; align-items: flex-start; padding: 2rem; }
.review blockquote { font-size: 1.05rem; margin-bottom: 1.25rem; }
.tag { background: var(--blush); border-radius: 999px; padding: .2rem .85rem; font-size: .8rem; margin-top: auto; }
.who { align-self: stretch; border-top: 1px solid var(--line); margin-top: 1.25rem; padding-top: 1rem; font-weight: 600; font-size: .9rem; }

/* Contact */
.contact { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: 1.5rem; align-items: start; }
.form { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; padding: clamp(1.25rem, 4vw, 2.5rem); }
.form > * { min-width: 0; }
.full { grid-column: 1 / -1; }
.field label { display: block; font-weight: 600; font-size: .875rem; margin-bottom: .4rem; }
.field label span { color: var(--muted); font-weight: 400; }
.field input, .field select, .field textarea { width: 100%; min-height: 3.1rem; padding: .6rem 1rem; background: var(--bg); border: 1px solid #A98E92; border-radius: 12px; font-size: 1rem; }
.field textarea { resize: vertical; }
.field [aria-invalid="true"] { border: 2px solid #A3211C; }
.error { color: #A3211C; font-size: .8125rem; margin-top: .3rem; }
.error:empty, .form-status:empty { display: none; }
.form-status { text-align: center; font-size: .9rem; }
.info { padding: 2rem; background: var(--blush); overflow-wrap: anywhere; }
.info h3 { font-size: 1.1rem; margin-bottom: .35rem; }
.info address, .info > p { margin-bottom: 1.5rem; }
.info a { display: inline-block; padding: .15rem 0; }
.hours { width: 100%; border-collapse: collapse; font-size: .875rem; }
.hours th, .hours td { padding: .5rem 0; border-top: 1px solid #E9C4C2; text-align: left; font-weight: 400; }
.hours td { text-align: right; white-space: nowrap; }

/* Footer */
.footer { background: rgb(255 255 255 / .55); border-top: 1px solid var(--line); padding: 4rem 0 2rem; font-size: .9rem; color: var(--muted); }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 2rem; }
.footer .wordmark { color: var(--ink); margin-bottom: .75rem; }
.footer h2 { font-size: 1rem; color: var(--ink); margin-bottom: .75rem; }
.footer nav a { display: block; padding: .3rem 0; text-decoration: none; }
.footer nav a:hover { color: var(--accent); text-decoration: underline; }
.copyright { border-top: 1px solid var(--line); margin-top: 2.5rem; padding-top: 1.5rem; font-size: .8rem; }

/* Lightbox */
.lightbox { width: 100%; height: 100%; max-width: none; max-height: none; border: 0; margin: 0; padding: 1rem 1.25rem; background: #221A1C; color: #fff; }
.lightbox[open] { display: grid; grid-template-rows: auto minmax(0, 1fr) auto; gap: 1rem; }
.lightbox button { color: inherit; min-height: 2.75rem; padding: 0 1rem; font-weight: 600; font-size: .9rem; }
.lightbox :focus-visible { outline-color: #FFB9C4; }
.lb-close { justify-self: end; }
.lightbox figure { display: grid; grid-template-rows: minmax(0, 1fr) auto; justify-items: center; min-height: 0; margin: 0; }
.lightbox img { width: 100%; height: 100%; min-height: 0; object-fit: contain; }
.lightbox figcaption { margin-top: .75rem; }
.lb-nav { display: flex; justify-content: space-between; }
body.is-locked { overflow: hidden; }

/* Legal and 404 pages */
.legal-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: .5rem 1rem; padding: 1.25rem; background: var(--surface); border-bottom: 1px solid var(--line); }
.link { color: var(--accent); font-weight: 600; font-size: .9rem; padding: .5rem 0; }
.legal { width: min(100% - 2.5rem, 46rem); margin-inline: auto; padding: 3rem 0 5rem; overflow-wrap: break-word; hyphens: auto; }
.legal h1 { font-size: clamp(2rem, 6vw, 3.25rem); margin-bottom: 1.5rem; }
.legal h2 { font-size: 1.35rem; margin: 2.5rem 0 .6rem; }
.legal p + p, .legal ul { margin-top: 1rem; }
.legal ul { list-style: disc; padding-left: 1.25rem; }
.notice { background: var(--blush); border-radius: 12px; padding: 1rem 1.25rem; }

/* Reveal: JS only hides what is still below the fold */
[data-reveal] { transition: opacity .6s ease, transform .6s ease; }
[data-reveal].pre { opacity: 0; transform: translateY(18px); }

@media (max-width: 1000px) {
  .js .menu-toggle { display: inline-flex; align-items: center; gap: .6rem; min-height: 2.75rem; padding: 0 .75rem; font-weight: 600; font-size: .9rem; }
  .menu-toggle i { width: 1.4rem; height: 8px; border-block: 2px solid currentColor; }
  .js .nav { position: fixed; left: .75rem; right: .75rem; top: 6rem; max-height: calc(100dvh - 7rem); overflow-y: auto; background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow); padding: 1rem 1.5rem 1.5rem; visibility: hidden; opacity: 0; transition: opacity .2s, visibility .2s; }
  .js .masthead.is-open .nav { visibility: visible; opacity: 1; }
  .js .nav ul { flex-direction: column; align-items: stretch; gap: 0; }
  .js .nav a:not(.btn) { display: block; padding: .8rem 0; font-size: 1.05rem; border-bottom: 1px solid var(--line); }
  .js .nav-book { width: 100%; margin-top: 1rem; }
  html:not(.js) .masthead { position: static; padding-top: .75rem; }
  html:not(.js) .bar, html:not(.js) .nav ul { flex-wrap: wrap; gap: .75rem 1.25rem; }
  html:not(.js) .hero { padding-top: 3rem; }
  .services { grid-template-columns: 1fr 1fr; }
  .team { grid-template-columns: 1fr 1fr; }
  .reviews, .contact { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 760px) {
  .hero, .about { grid-template-columns: minmax(0, 1fr); }
  .hero { padding: 7rem 0 4rem; }
  .hero-photo { justify-self: center; }
  .hero-photo .frame img { height: 26rem; min-height: 0; }
  .badge-top { right: -.5rem; }
  .badge-bottom { left: -.5rem; bottom: 1.5rem; }
  .gallery { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid > div { grid-column: 1 / -1; }
}
@media (max-width: 600px) {
  .services, .team, .form { grid-template-columns: minmax(0, 1fr); }
  .actions .btn { flex: 1 1 100%; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}

/* ---------- Background gradients and motion (Aurora UI, Motion-Driven) ---------- */
body { background: transparent; }
.hero h1 em, .section-head em, .about em { -webkit-background-clip: text; background-clip: text; color: transparent; -webkit-box-decoration-break: clone; box-decoration-break: clone; }
@property --c1 { syntax: "<color>"; inherits: true; initial-value: #F9A8D4; }
@property --c2 { syntax: "<color>"; inherits: true; initial-value: #DDD6FE; }
@property --c3 { syntax: "<color>"; inherits: true; initial-value: #FBCFE8; }
@property --c4 { syntax: "<color>"; inherits: true; initial-value: #FECDD3; }

:root { --ink: #341A30; --muted: #4C2E48; --accent: #831843; --accent-dark: #5F0F30; --line: #F3D3E6; --ease: cubic-bezier(.22, 1, .36, 1); }
html { background: #FDF2F8; }

body { transition: --c1 1.6s ease, --c2 1.6s ease, --c3 1.6s ease, --c4 1.6s ease; }
body[data-mood="services"]     { --c1: #F5D0FE; --c2: #FBCFE8; --c3: #DDD6FE; --c4: #E9D5FF; }
body[data-mood="about"]        { --c1: #FECDD3; --c2: #FBCFE8; --c3: #FED7AA; --c4: #F9A8D4; }
body[data-mood="gallery"]      { --c1: #DDD6FE; --c2: #C7D2FE; --c3: #F5D0FE; --c4: #E9D5FF; }
body[data-mood="team"]         { --c1: #FBCFE8; --c2: #FECDD3; --c3: #E9D5FF; --c4: #F9A8D4; }
body[data-mood="testimonials"] { --c1: #E9D5FF; --c2: #F5D0FE; --c3: #FBCFE8; --c4: #DDD6FE; }
body[data-mood="contact"]      { --c1: #F9A8D4; --c2: #DDD6FE; --c3: #FECDD3; --c4: #F5D0FE; }

/* Two mesh layers moving against each other */
body::before, body::after { content: ""; position: fixed; inset: -20vmax; z-index: -1; pointer-events: none; }
body::before {
  background:
    radial-gradient(42% 40% at 20% 22%, var(--c1) 0%, transparent 100%),
    radial-gradient(40% 44% at 82% 18%, var(--c2) 0%, transparent 100%),
    radial-gradient(48% 44% at 74% 80%, var(--c3) 0%, transparent 100%),
    radial-gradient(44% 42% at 22% 80%, var(--c4) 0%, transparent 100%),
    #FDF2F8;
  animation: mesh-a 11s ease-in-out infinite alternate;
}
body::after {
  background:
    radial-gradient(26% 28% at 62% 38%, var(--c1) 0%, transparent 100%),
    radial-gradient(28% 26% at 34% 62%, var(--c2) 0%, transparent 100%);
  opacity: .6;
  animation: mesh-b 9s ease-in-out infinite alternate;
}
@keyframes mesh-a { to { transform: translate3d(6vmax, -4vmax, 0) rotate(6deg) scale(1.08); } }
@keyframes mesh-b { to { transform: translate3d(-9vmax, 6vmax, 0) rotate(-10deg) scale(1.15); } }

/* Surfaces pick up the page colour; no blur */
.tint { background: transparent; }
.card, .bar { background-color: rgb(255 255 255 / .82); border-color: rgb(255 255 255 / .9); }
.help, .info { background: linear-gradient(150deg, rgb(255 255 255 / .9), rgb(251 207 232 / .75)); }
.frame { background: linear-gradient(145deg, #FFF, #FBCFE8 50%, #DDD6FE); }
.pill, .tag, .avatar { background: linear-gradient(120deg, #FCE7F3, #EDE9FE); }

/* Matching gradient on buttons and headline emphasis */
.btn:not(.btn-ghost) { border: 0; background: linear-gradient(100deg, #9D174D, #6D28D9 50%, #9D174D) 0 0 / 200% 100%; transition: background-position .6s var(--ease), transform .35s var(--ease), box-shadow .35s var(--ease); }
.btn:not(.btn-ghost):hover { background-position: 100% 0; box-shadow: 0 12px 28px rgb(109 40 217 / .28); }
.btn-ghost { border-color: #D9A7C7; transition: background-color .35s var(--ease), transform .35s var(--ease); }
.hero h1 em, .section-head em, .about em { background-image: linear-gradient(90deg, #9D174D, #5B21B6, #9D174D); background-size: 200% 100%; animation: sheen 8s ease-in-out infinite alternate; }
@keyframes sheen { to { background-position: 100% 0; } }

/* Smooth transitions */
[data-reveal] { transition: opacity .9s var(--ease), transform .9s var(--ease); }
[data-reveal].pre { transform: translateY(32px) scale(.98); }
.service, .person, .review { transition: opacity .9s var(--ease), transform .45s var(--ease), box-shadow .45s var(--ease); }
@media (hover: hover) {
  .service:not(.pre):hover, .person:not(.pre):hover, .review:not(.pre):hover { transform: translateY(-6px); box-shadow: 0 24px 48px rgb(131 24 67 / .16); }
}
.gallery img { transition: transform .7s var(--ease); }
.nav a:not(.btn) { background: linear-gradient(90deg, #9D174D, #6D28D9) 0 100% / 0 2px no-repeat; transition: background-size .35s var(--ease), color .35s; }
.nav a:not(.btn):hover, .nav a:not(.btn)[aria-current] { background-size: 100% 2px; }

/* Scroll-linked effects, only where the browser supports them */
@supports (animation-timeline: scroll()) {
  @media (prefers-reduced-motion: no-preference) {
    .progress { position: fixed; top: 0; left: 0; z-index: 60; width: 100%; height: 3px; background: linear-gradient(90deg, #EC4899, #8B5CF6); transform-origin: 0 50%; animation: grow linear both; animation-timeline: scroll(); }
    .hero-photo { animation: drift linear both; animation-timeline: scroll(); animation-range: 0 100vh; }
  }
}
@keyframes grow { from { transform: scaleX(0); } }
@keyframes drift { to { transform: translateY(3rem); } }

@media (prefers-reduced-motion: reduce) {
  body::before, body::after, .hero h1 em, .section-head em, .about em { animation: none; }
}
@media (forced-colors: active) { .hero h1 em, .section-head em, .about em { background: none; color: inherit; } }
