/* =========================================================
   Aria — Makeup Artistry  ·  luxury rose-gold design system
   ========================================================= */
:root {
  --ink: #201217;
  --ink-soft: #4a3640;
  --cream: #fbf6f2;
  --cream-2: #f4e9e3;
  --rose: #b76e79;
  --rose-deep: #7b3f5e;
  --gold: #c9a86a;
  --gold-lite: #e6cfa0;
  --blush: #f4c9c9;
  --line: rgba(123, 63, 94, 0.14);
  --shadow: 0 24px 60px -24px rgba(123, 63, 94, 0.35);
  --shadow-sm: 0 10px 30px -14px rgba(123, 63, 94, 0.3);
  --radius: 20px;
  --serif: 'Cormorant Garamond', Georgia, serif;
  --sans: 'Jost', -apple-system, system-ui, sans-serif;
  --maxw: 1200px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; }
body {
  font-family: var(--sans);
  color: var(--ink);
  background: var(--cream);
  overflow-x: hidden;
  line-height: 1.6;
  font-weight: 300;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
h1, h2, h3 { font-family: var(--serif); font-weight: 600; line-height: 1.08; }

/* fixed WebGL canvas behind everything */
#bg-canvas { position: fixed; inset: 0; width: 100%; height: 100%; z-index: -2; }
body::after { /* soft veil so text stays readable over 3D */
  content: ''; position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background: radial-gradient(120% 80% at 50% 0%, rgba(251,246,242,0.35), rgba(251,246,242,0.8) 60%, var(--cream));
}

/* ---------- Preloader ---------- */
#preloader {
  position: fixed; inset: 0; z-index: 999; display: grid; place-content: center; gap: 22px;
  background: var(--ink); color: var(--cream); transition: opacity .7s ease, visibility .7s;
}
#preloader.hide { opacity: 0; visibility: hidden; }
.loader-mark { font-family: var(--serif); font-size: 64px; text-align: center; letter-spacing: 3px;
  background: linear-gradient(120deg, var(--gold-lite), var(--rose)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.loader-bar { width: 180px; height: 2px; background: rgba(255,255,255,.15); overflow: hidden; }
.loader-bar span { display: block; height: 100%; width: 40%; background: var(--gold-lite);
  animation: slide 1s ease-in-out infinite; }
@keyframes slide { 0%{transform:translateX(-100%)} 100%{transform:translateX(350%)} }

/* ---------- Scroll progress ---------- */
#scroll-progress { position: fixed; top: 0; left: 0; height: 3px; width: 0; z-index: 200;
  background: linear-gradient(90deg, var(--gold), var(--rose)); }

/* ---------- Nav ---------- */
#nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 120;
  display: flex; align-items: center; justify-content: space-between;
  padding: 22px clamp(20px, 5vw, 64px); transition: .4s ease;
}
#nav.scrolled { background: rgba(251,246,242,.82); backdrop-filter: blur(14px);
  padding-top: 14px; padding-bottom: 14px; box-shadow: 0 1px 0 var(--line); }
.brand { font-family: var(--serif); font-size: 30px; font-weight: 700; letter-spacing: 1px; color: var(--ink); }
.nav-links { display: flex; align-items: center; gap: clamp(14px, 2vw, 30px); }
.nav-links a { font-size: 14px; letter-spacing: .5px; position: relative; color: var(--ink-soft); }
.nav-links a:not(.nav-cta)::after { content:''; position:absolute; left:0; bottom:-5px; height:1.5px; width:0;
  background: var(--rose); transition:.3s; }
.nav-links a:not(.nav-cta):hover::after { width: 100%; }
.nav-cta { padding: 10px 22px; border-radius: 40px; color: #fff !important;
  background: linear-gradient(120deg, var(--rose), var(--rose-deep)); box-shadow: var(--shadow-sm); }
.nav-cta:hover { transform: translateY(-2px); }
#nav-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: 0; cursor: pointer; }
#nav-toggle span { width: 26px; height: 2px; background: var(--ink); transition: .3s; }

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 15px 34px; border-radius: 40px; font-family: var(--sans); font-size: 14px; letter-spacing: 1px;
  cursor: pointer; border: 1px solid transparent; transition: .35s cubic-bezier(.2,.8,.2,1); text-transform: uppercase; }
.btn-primary { background: linear-gradient(120deg, var(--rose), var(--rose-deep)); color: #fff; box-shadow: var(--shadow-sm); }
.btn-primary:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.btn-ghost { border-color: var(--rose); color: var(--rose-deep); background: transparent; }
.btn-ghost:hover { background: var(--rose); color: #fff; }
.btn-block { width: 100%; }

/* ---------- Layout ---------- */
.section { max-width: var(--maxw); margin: 0 auto; padding: clamp(70px, 11vh, 130px) clamp(20px, 5vw, 40px); }
.section-head { text-align: center; max-width: 640px; margin: 0 auto 54px; }
.eyebrow { text-transform: uppercase; letter-spacing: 4px; font-size: 12px; color: var(--rose);
  font-weight: 500; margin-bottom: 12px; }
.section-head h2 { font-size: clamp(38px, 6vw, 66px); }
.section-sub { color: var(--ink-soft); margin-top: 14px; font-size: 17px; }
.eyebrow { }

/* ---------- Hero ---------- */
.hero { min-height: 100vh; display: grid; place-content: center; text-align: center;
  position: relative; padding: 120px 20px 60px; }
/* 3D cosmetics model — above the page veil so it renders crisp, below the copy.
   Opacity is driven by the scroll effect in js/hero-model.js (starts hidden). */
#hero-canvas { position: absolute; inset: 0; width: 100%; height: 100%;
  z-index: 0; opacity: 0; pointer-events: none; }
.hero-inner { max-width: 860px; position: relative; z-index: 2; }
@media screen and (min-width: 1024px) {
  .hero-inner { margin-right: 240px; }
}
.hero .scroll-hint { z-index: 2; }
.kicker { text-transform: uppercase; letter-spacing: 6px; font-size: 13px; color: var(--rose-deep); margin-bottom: 26px; }
.hero-title { font-size: clamp(48px, 10vw, 128px); line-height: .95; letter-spacing: -1px;
  background: linear-gradient(120deg, var(--ink) 30%, var(--rose-deep)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero-sub { max-width: 560px; margin: 26px auto 40px; font-size: clamp(16px, 2vw, 20px); color: var(--ink-soft); }
.hero-actions { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }
.scroll-hint { position: absolute; bottom: 34px; left: 50%; transform: translateX(-50%);
  font-size: 11px; letter-spacing: 3px; text-transform: uppercase; color: var(--ink-soft); display: grid; justify-items: center; gap: 8px; }
.scroll-hint span { width: 1px; height: 46px; background: linear-gradient(var(--rose), transparent); animation: down 1.8s ease-in-out infinite; }
@keyframes down { 0%,100%{transform:scaleY(.4);opacity:.4} 50%{transform:scaleY(1);opacity:1} }

/* ---------- About ---------- */
.about-grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: clamp(30px, 6vw, 80px); align-items: center; }
.about-visual { position: relative; }
.about-photo { aspect-ratio: 3/4; border-radius: var(--radius); background-size: cover; background-position: center;
  box-shadow: var(--shadow); }
.about-badge { position: absolute; bottom: 24px; right: -18px; background: #fff; padding: 12px 20px; border-radius: 40px;
  box-shadow: var(--shadow-sm); font-size: 13px; font-weight: 500; }
.about-copy h2 { font-size: clamp(34px, 5vw, 56px); margin: 10px 0 20px; }
.lead { color: var(--ink-soft); font-size: 18px; }
.about-stats { display: flex; gap: 40px; margin-top: 40px; flex-wrap: wrap; }
.about-stats strong { font-family: var(--serif); font-size: 46px; color: var(--rose-deep); display: block; }
.about-stats span { font-size: 13px; letter-spacing: 1px; text-transform: uppercase; color: var(--ink-soft); }

/* ---------- Services ---------- */
.services-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.service-card { background: rgba(255,255,255,.7); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 34px 30px; transition: .4s; backdrop-filter: blur(6px); }
.service-card:hover { transform: translateY(-8px); box-shadow: var(--shadow); background: #fff; }
.service-card .ico { font-size: 34px; margin-bottom: 16px; }
.service-card h3 { font-size: 25px; margin-bottom: 10px; }
.service-card p { color: var(--ink-soft); font-size: 15px; }
.service-card .price { display: inline-block; margin-top: 16px; color: var(--rose-deep); font-weight: 500; letter-spacing: 1px; }

/* ---------- Packages ---------- */
.packages-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; align-items: stretch; }
.package-card { position: relative; background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 40px 32px; display: flex; flex-direction: column; transition: .4s; }
.package-card:hover { transform: translateY(-8px); box-shadow: var(--shadow); }
.package-card.featured { background: linear-gradient(160deg, var(--ink), var(--rose-deep)); color: var(--cream); border: 0; transform: scale(1.03); }
.package-card.featured .price, .package-card.featured h3 { color: #fff; }
.package-card.featured .pkg-feat li { color: rgba(255,255,255,.9); }
.pkg-tag { position: absolute; top: 18px; right: 18px; background: var(--gold); color: #201217;
  font-size: 11px; letter-spacing: 1px; padding: 5px 12px; border-radius: 30px; text-transform: uppercase; font-weight: 600; }
.package-card h3 { font-size: 30px; margin-bottom: 6px; }
.package-card .desc { color: var(--ink-soft); font-size: 14px; min-height: 40px; }
.featured .desc { color: rgba(255,255,255,.75); }
.package-card .price { font-family: var(--serif); font-size: 46px; color: var(--rose-deep); margin: 16px 0 20px; }
.pkg-feat { list-style: none; display: grid; gap: 12px; margin-bottom: 28px; flex: 1; }
.pkg-feat li { font-size: 15px; padding-left: 26px; position: relative; color: var(--ink-soft); }
.pkg-feat li::before { content: '✦'; position: absolute; left: 0; color: var(--gold); }

/* ---------- Portfolio ---------- */
.filter-bar { display: flex; justify-content: center; gap: 10px; flex-wrap: wrap; margin-bottom: 36px; }
.filter-bar button { border: 1px solid var(--line); background: transparent; padding: 9px 22px; border-radius: 30px;
  font-family: var(--sans); font-size: 13px; letter-spacing: .5px; cursor: pointer; color: var(--ink-soft); transition: .3s; }
.filter-bar button.active, .filter-bar button:hover { background: var(--rose); color: #fff; border-color: var(--rose); }
.portfolio-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.folio-item { position: relative; border-radius: var(--radius); overflow: hidden; aspect-ratio: 4/5; cursor: pointer;
  box-shadow: var(--shadow-sm); }
.folio-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s cubic-bezier(.2,.8,.2,1); }
.folio-item:hover img { transform: scale(1.08); }
.folio-cap { position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: flex-end;
  padding: 22px; background: linear-gradient(transparent 45%, rgba(32,18,23,.82)); color: #fff; opacity: 0; transition: .4s; }
.folio-item:hover .folio-cap { opacity: 1; }
.folio-cap span { font-size: 12px; letter-spacing: 2px; text-transform: uppercase; color: var(--gold-lite); }
.folio-cap h4 { font-family: var(--serif); font-size: 24px; font-weight: 500; }

/* ---------- Booking ---------- */
.booking { }
.booking-wrap { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; align-items: start; }
.calendar-card, .booking-form { background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 28px; box-shadow: var(--shadow-sm); }
.calendar-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 18px; }
.calendar-head h3 { font-size: 24px; }
.calendar-head button { width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--line);
  background: var(--cream); font-size: 20px; cursor: pointer; color: var(--rose-deep); transition: .3s; }
.calendar-head button:hover { background: var(--rose); color: #fff; }
.calendar-dow { display: grid; grid-template-columns: repeat(7,1fr); text-align: center; font-size: 12px;
  color: var(--ink-soft); letter-spacing: 1px; margin-bottom: 8px; }
.calendar-grid { display: grid; grid-template-columns: repeat(7,1fr); gap: 6px; }
.cal-day { aspect-ratio: 1; display: grid; place-content: center; border-radius: 12px; font-size: 14px;
  cursor: default; color: var(--ink-soft); position: relative; transition: .2s; }
.cal-day.pad { visibility: hidden; }
.cal-day.available { background: var(--cream-2); color: var(--ink); cursor: pointer; font-weight: 500; }
.cal-day.available::after { content:''; position:absolute; bottom:6px; left:50%; transform:translateX(-50%);
  width:5px; height:5px; border-radius:50%; background: var(--rose); }
.cal-day.available:hover { background: var(--blush); }
.cal-day.selected { background: linear-gradient(120deg, var(--rose), var(--rose-deep)); color: #fff; }
.cal-day.selected::after { background: #fff; }
.cal-day.today { outline: 1.5px solid var(--gold); }
.calendar-legend { display: flex; gap: 16px; flex-wrap: wrap; margin-top: 18px; font-size: 12px; color: var(--ink-soft); }
.calendar-legend .dot { display: inline-block; width: 9px; height: 9px; border-radius: 50%; margin-right: 5px; vertical-align: middle; }
.dot.open { background: var(--rose); } .dot.none { background: #d8ccc4; } .dot.sel { background: var(--rose-deep); }

.slot-panel { margin-bottom: 18px; }
.slot-panel label { font-size: 12px; letter-spacing: 1px; text-transform: uppercase; color: var(--ink-soft); }
.selected-date { font-family: var(--serif); font-size: 22px; color: var(--rose-deep); margin: 4px 0 14px; }
.time-slots { display: flex; flex-wrap: wrap; gap: 8px; }
.time-slots .slot { padding: 9px 16px; border: 1px solid var(--line); border-radius: 30px; font-size: 13px; cursor: pointer;
  background: var(--cream); transition: .25s; }
.time-slots .slot:hover { border-color: var(--rose); }
.time-slots .slot.active { background: var(--rose); color: #fff; border-color: var(--rose); }

.field { margin-bottom: 14px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.field label { display: block; font-size: 12px; letter-spacing: 1px; text-transform: uppercase; color: var(--ink-soft); margin-bottom: 6px; }
.field input, .field select, .field textarea { width: 100%; padding: 13px 15px; border: 1px solid var(--line);
  border-radius: 12px; font-family: var(--sans); font-size: 15px; background: var(--cream); color: var(--ink); transition: .25s; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--rose); background: #fff; }
.form-note { font-size: 14px; margin-top: 12px; text-align: center; min-height: 20px; }
.form-note.ok { color: #2f8f5b; } .form-note.err { color: #c14b4b; }
.muted { color: var(--ink-soft); font-size: 14px; }

/* ---------- Testimonials ---------- */
.testimonials-track { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; }
.tcard { background: rgba(255,255,255,.75); border: 1px solid var(--line); border-radius: var(--radius); padding: 34px;
  backdrop-filter: blur(6px); }
.tcard .stars { color: var(--gold); letter-spacing: 3px; margin-bottom: 14px; }
.tcard blockquote { font-family: var(--serif); font-size: 22px; line-height: 1.4; color: var(--ink); font-style: italic; }
.tcard .who { display: flex; align-items: center; gap: 12px; margin-top: 22px; }
.tcard .who .av { width: 46px; height: 46px; border-radius: 50%; background: linear-gradient(120deg, var(--blush), var(--rose));
  display: grid; place-content: center; color: #fff; font-family: var(--serif); font-size: 20px; }
.tcard .who strong { display: block; font-weight: 500; }
.tcard .who small { color: var(--ink-soft); }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(30px, 6vw, 70px); }
.contact-info h2 { font-size: clamp(34px, 5vw, 56px); margin: 8px 0 16px; }
.contact-list { list-style: none; margin: 30px 0; display: grid; gap: 18px; }
.contact-list li { display: grid; }
.contact-list span { font-size: 12px; letter-spacing: 2px; text-transform: uppercase; color: var(--rose); }
.contact-list a, .contact-list em { font-size: 19px; font-style: normal; font-family: var(--serif); }
.socials { display: flex; gap: 12px; }
.socials a { width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line); display: grid; place-content: center;
  transition: .3s; font-size: 14px; letter-spacing: .5px; }
.socials a:hover { background: var(--rose); color: #fff; border-color: var(--rose); transform: translateY(-3px); }

/* ---------- Footer ---------- */
#footer { border-top: 1px solid var(--line); background: rgba(251,246,242,.6); }
.footer-inner { max-width: var(--maxw); margin: 0 auto; padding: 30px clamp(20px,5vw,40px); display: flex;
  align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.footer-admin { font-size: 13px; color: var(--ink-soft); border: 1px solid var(--line); padding: 7px 16px; border-radius: 30px; }
.footer-admin:hover { border-color: var(--rose); color: var(--rose-deep); }
/* CC-BY-4.0 attribution for the hero 3D model — required by its licence. */
.model-credit { flex-basis: 100%; text-align: center; font-size: 11px; color: var(--ink-soft);
  opacity: .75; border-top: 1px solid var(--line); padding-top: 14px; }
.model-credit a { text-decoration: underline; text-underline-offset: 2px; }

/* ---------- Toast ---------- */
.toast { position: fixed; bottom: 26px; left: 50%; transform: translate(-50%, 120px); z-index: 300;
  background: var(--ink); color: var(--cream); padding: 15px 26px; border-radius: 40px; box-shadow: var(--shadow);
  font-size: 14px; transition: transform .45s cubic-bezier(.2,.8,.2,1); max-width: 90vw; }
.toast.show { transform: translate(-50%, 0); }
.toast.err { background: #7a2e2e; }

/* ---------- Reveal animations (GSAP toggles .is-in) ---------- */
.reveal, .reveal-left, .reveal-right { opacity: 0; transition: opacity .9s ease, transform .9s cubic-bezier(.2,.8,.2,1); }
.reveal { transform: translateY(40px); }
.reveal-left { transform: translateX(-50px); }
.reveal-right { transform: translateX(50px); }
.is-in { opacity: 1 !important; transform: none !important; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .about-grid, .booking-wrap, .contact-grid { grid-template-columns: 1fr; }
  .services-grid, .packages-grid, .portfolio-grid, .testimonials-track { grid-template-columns: 1fr 1fr; }
  .package-card.featured { transform: none; }
  .about-badge { right: 12px; }
}
@media (max-width: 640px) {
  .nav-links { position: fixed; inset: 0 0 0 auto; width: min(78vw, 320px); flex-direction: column;
    justify-content: center; background: rgba(251,246,242,.97); backdrop-filter: blur(16px);
    transform: translateX(100%); transition: .4s; box-shadow: var(--shadow); }
  #nav.open .nav-links { transform: none; }
  #nav-toggle { display: flex; z-index: 130; }
  #nav.open #nav-toggle span:nth-child(1){ transform: translateY(7px) rotate(45deg); }
  #nav.open #nav-toggle span:nth-child(2){ opacity: 0; }
  #nav.open #nav-toggle span:nth-child(3){ transform: translateY(-7px) rotate(-45deg); }
  .services-grid, .packages-grid, .portfolio-grid, .testimonials-track { grid-template-columns: 1fr; }
  .field-row { grid-template-columns: 1fr; }
  .about-stats { gap: 26px; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; }
  .reveal, .reveal-left, .reveal-right { opacity: 1; transform: none; }
}
