/* ============================================================
   Kylie Cupp — Hair Stylist · personal-brand site
   Aesthetic: soft feminine-glam. Warm cream + blush rose base,
   deep plum ink, gold hairline accents. High-contrast serif
   display (Fraunces) paired with clean sans (Outfit) + a
   handwritten signature accent (Dancing Script) for her name.
   Deliberately distinct from any other build. Mobile-first.
   Tunable tokens in :root.
   ============================================================ */

:root {
  /* Color */
  --cream: #FBF4F1;
  --paper: #FFFFFF;
  --blush: #F3DDD9;
  --blush-soft: #FAECE8;
  --rose: #D99CA0;
  --rose-deep: #B96D74;
  --plum: #3A2230;
  --plum-soft: #5C3D4E;
  --gold: #C6A15B;
  --gold-soft: #E4CE9E;
  --line: rgba(58, 34, 48, 0.14);
  --error: #B0472F;

  /* Type */
  --font-display: "Fraunces", serif;
  --font-body: "Outfit", sans-serif;
  --font-script: "Dancing Script", cursive;

  --fs-hero: clamp(2.6rem, 1.4rem + 5vw, 5.5rem);
  --fs-h2: clamp(1.9rem, 1.3rem + 2.4vw, 3.1rem);
  --fs-h3: clamp(1.2rem, 1.05rem + 0.7vw, 1.55rem);
  --fs-body: clamp(1rem, 0.97rem + 0.2vw, 1.1rem);
  --fs-small: 0.85rem;
  --fs-script: clamp(1.8rem, 1.3rem + 2vw, 3rem);

  --s-1: 0.5rem; --s-2: 1rem; --s-3: 1.5rem; --s-4: 2rem;
  --s-5: 3rem; --s-6: 4.5rem; --s-7: 6.5rem;

  --radius: 14px;
  --radius-lg: 26px;
  --radius-pill: 999px;
  --shadow-sm: 0 2px 12px rgba(58, 34, 48, 0.08);
  --shadow-md: 0 12px 34px rgba(58, 34, 48, 0.13);
  --shadow-lg: 0 24px 60px rgba(58, 34, 48, 0.18);

  --ease: cubic-bezier(0.22, 0.7, 0.3, 1);
  --t-fast: 180ms; --t-med: 300ms;
  --header-h: 84px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: var(--fs-body);
  line-height: 1.7;
  color: var(--plum);
  background: var(--cream);
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 500; line-height: 1.1; margin: 0 0 var(--s-2); text-wrap: balance; }
p { margin: 0 0 var(--s-2); }
a { color: var(--rose-deep); text-underline-offset: 3px; }
a:hover { color: var(--plum); }
:focus-visible { outline: 3px solid var(--rose-deep); outline-offset: 3px; border-radius: 4px; }
[id] { scroll-margin-top: calc(var(--header-h) + 16px); }

.skip-link { position: absolute; left: -9999px; top: 0; background: var(--plum); color: var(--cream); padding: 0.75rem 1.25rem; z-index: 200; border-radius: 0 0 var(--radius) 0; }
.skip-link:focus { left: 0; color: var(--cream); }

.container { width: 100%; max-width: 1200px; margin-inline: auto; padding-inline: clamp(1.1rem, 4vw, 2.5rem); }
.section { padding-block: clamp(3.4rem, 8vw, 6.5rem); }
.section--tight { padding-block: clamp(2.2rem, 5vw, 4rem); }

/* Type helpers */
.eyebrow {
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--rose-deep);
  display: inline-block;
  margin-bottom: 0.9rem;
}
.script { font-family: var(--font-script); font-size: var(--fs-script); color: var(--rose-deep); line-height: 1; font-weight: 600; }
.lede { font-size: calc(var(--fs-body) * 1.08); color: var(--plum-soft); max-width: 60ch; }
.small { font-size: var(--fs-small); color: var(--plum-soft); }
.h-display { font-size: var(--fs-h2); }
.gold-rule { width: 60px; height: 2px; background: var(--gold); border: 0; margin: var(--s-2) 0; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.55rem;
  font-family: var(--font-body); font-size: 0.9rem; font-weight: 600;
  letter-spacing: 0.12em; text-transform: uppercase; text-decoration: none;
  border-radius: var(--radius-pill); padding: 0.9rem 1.9rem; min-height: 46px;
  border: 1.5px solid transparent; cursor: pointer; white-space: nowrap;
  transition: background var(--t-fast) var(--ease), color var(--t-fast) var(--ease),
              border-color var(--t-fast) var(--ease), transform var(--t-fast) var(--ease), box-shadow var(--t-fast) var(--ease);
}
.btn:hover { transform: translateY(-2px); }
.btn--primary { background: var(--plum); color: var(--cream); box-shadow: var(--shadow-sm); }
.btn--primary:hover { background: var(--plum-soft); color: var(--cream); box-shadow: var(--shadow-md); }
.btn--ghost { background: transparent; color: var(--plum); border-color: var(--plum); }
.btn--ghost:hover { background: var(--plum); color: var(--cream); }
.btn--sm { padding: 0.6rem 1.3rem; font-size: 0.8rem; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(251, 244, 241, 0.9);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid transparent;
  transition: box-shadow var(--t-med) var(--ease), border-color var(--t-med) var(--ease), transform var(--t-med) var(--ease);
}
.site-header.is-scrolled { border-bottom-color: var(--line); box-shadow: 0 6px 24px rgba(58,34,48,0.07); }
.site-header.is-hidden { transform: translateY(-100%); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: var(--s-2); min-height: var(--header-h); }
.brand { text-decoration: none; color: var(--plum); line-height: 1; }
.brand .brand-name { font-family: var(--font-script); font-size: 1.9rem; font-weight: 700; color: var(--plum); display: block; }
.brand .brand-sub { font-family: var(--font-body); font-size: 0.62rem; letter-spacing: 0.34em; text-transform: uppercase; color: var(--rose-deep); }

.primary-nav { display: none; }
.nav-toggle {
  display: inline-flex; align-items: center; justify-content: center;
  width: 46px; height: 46px; border: 1.5px solid var(--plum);
  border-radius: var(--radius-pill); background: transparent; cursor: pointer; color: var(--plum);
}
.nav-toggle svg { width: 20px; height: 20px; }

.mobile-menu {
  position: fixed; inset: 0; z-index: 150; background: var(--cream);
  display: flex; flex-direction: column; padding: var(--s-3);
  transform: translateY(-102%); transition: transform 320ms var(--ease); visibility: hidden;
}
.mobile-menu.is-open { transform: translateY(0); visibility: visible; }
.mobile-menu-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: var(--s-4); }
.mobile-menu nav { display: flex; flex-direction: column; gap: 0.3rem; }
.mobile-menu nav a {
  font-family: var(--font-display); font-size: clamp(1.6rem, 7vw, 2.4rem);
  text-decoration: none; color: var(--plum); padding: 0.55rem 0.25rem; border-bottom: 1px solid var(--line);
}
.mobile-menu .menu-contact { margin-top: auto; padding-top: var(--s-3); display: grid; gap: 0.7rem; }

/* Hero */
.hero { position: relative; overflow: hidden; background: linear-gradient(160deg, var(--blush-soft) 0%, var(--cream) 60%); }
.hero-inner { display: grid; gap: var(--s-4); padding-block: clamp(2.5rem, 7vw, 5.5rem) clamp(3rem, 8vw, 6rem); align-items: center; }
.hero h1 { font-size: var(--fs-hero); font-weight: 400; }
.hero h1 em { font-style: italic; color: var(--rose-deep); }
.hero-ctas { display: flex; flex-wrap: wrap; gap: var(--s-2); margin-top: var(--s-3); }
.hero-media { position: relative; }
.hero-photo {
  position: relative; z-index: 1; border-radius: 200px 200px var(--radius) var(--radius);
  overflow: hidden; box-shadow: var(--shadow-lg); max-width: 380px; margin-inline: auto;
  border: 8px solid var(--paper);
}
.hero-photo img { width: 100%; object-fit: cover; }
.hero-arc {
  position: absolute; z-index: 0; width: min(80vw, 420px); aspect-ratio: 1;
  border-radius: 50%; background: var(--rose); opacity: 0.35; top: 8%; right: -8%;
}
.hero-badge {
  position: absolute; z-index: 2; bottom: 6%; left: 2%;
  background: var(--paper); border-radius: var(--radius-pill);
  padding: 0.65rem 1.2rem; box-shadow: var(--shadow-md); font-family: var(--font-script);
  font-size: 1.35rem; color: var(--rose-deep); font-weight: 700;
}

/* Marquee of specialties */
.ribbon { background: var(--plum); color: var(--cream); overflow: hidden; }
.ribbon-track {
  display: flex; gap: 2.5rem; padding-block: 0.9rem; white-space: nowrap;
  font-family: var(--font-display); font-style: italic; font-size: 1.05rem;
  animation: marquee 26s linear infinite;
}
.ribbon-track span { display: inline-flex; align-items: center; gap: 2.5rem; }
.ribbon-track span::after { content: "✦"; color: var(--gold); }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* Section head */
.section-head { max-width: 720px; margin-bottom: clamp(1.8rem, 4vw, 3rem); }
.section-head--center { margin-inline: auto; text-align: center; }

/* About — photo + editorial text */
.about-grid { display: grid; gap: var(--s-4); align-items: center; }
.about-photo {
  border-radius: 200px 200px var(--radius-lg) var(--radius-lg);
  overflow: hidden; box-shadow: var(--shadow-md);
  max-width: 400px; margin-inline: auto;
  border: 8px solid var(--paper);
  display: none; /* hero already shows Kylie on mobile; avoid stacked duplicate portraits */
}
@media (min-width: 900px) { .about-photo { display: block; } }
.about-photo img { width: 100%; object-fit: cover; }
.about-editorial .script { display: block; margin-bottom: var(--s-2); }
@media (min-width: 900px) {
  .about-grid { grid-template-columns: minmax(0, 400px) 1fr; gap: var(--s-5); }
}

/* Services */
.services-grid { display: grid; gap: var(--s-3); grid-template-columns: 1fr; }
.service-card {
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-lg);
  overflow: hidden; display: flex; flex-direction: column;
  transition: transform var(--t-med) var(--ease), box-shadow var(--t-med) var(--ease);
}
.service-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }
.service-card figure { margin: 0; aspect-ratio: 3 / 4; overflow: hidden; }
.service-card figure img { width: 100%; height: 100%; object-fit: cover; transition: transform 500ms var(--ease); }
.service-card:hover figure img { transform: scale(1.06); }
.service-card .card-body { padding: var(--s-3) var(--s-3) var(--s-4); }
.service-card h3 { font-size: var(--fs-h3); margin: 0 0 0.45rem; }
.service-card h3 .script-tag { font-family: var(--font-script); font-size: 1.15rem; color: var(--gold); display: block; font-weight: 600; margin-bottom: 0.15rem; }
.service-card p { color: var(--plum-soft); margin: 0; font-size: 0.96rem; }

/* Gallery */
.gallery { background: var(--blush-soft); }
.gallery-grid {
  display: grid; gap: var(--s-2);
  grid-template-columns: repeat(2, 1fr);
}
.gallery-grid figure { margin: 0; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm); position: relative; aspect-ratio: 3 / 4; }
.gallery-grid img { width: 100%; height: 100%; object-fit: cover; object-position: center 12%; transition: transform 500ms var(--ease); }
.gallery-grid figure:hover img { transform: scale(1.05); }
.tile-caption {
  position: absolute; left: 0.9rem; bottom: 0.7rem; z-index: 2;
  font-family: var(--font-script); font-size: 1.6rem; font-weight: 700; color: #fff;
  text-shadow: 0 2px 14px rgba(58,34,48,0.55); pointer-events: none;
}

/* Booking / appointment info */
.booking { background: var(--plum); color: var(--cream); }
.booking .eyebrow { color: var(--rose); }
.booking h2, .booking .h-display { color: var(--cream); }
.booking p { color: rgba(251,244,241,0.82); }
.booking-grid { display: grid; gap: var(--s-4); }
.booking-steps { list-style: none; padding: 0; margin: var(--s-3) 0; display: grid; gap: 0.9rem; }
.booking-steps li { display: flex; gap: 0.9rem; align-items: flex-start; }
.booking-steps .n {
  flex: none; width: 34px; height: 34px; border-radius: 50%; background: var(--rose);
  color: var(--plum); font-family: var(--font-display); font-weight: 600;
  display: flex; align-items: center; justify-content: center; font-size: 0.95rem;
}
.booking .social-row { display: flex; gap: 0.7rem; margin-top: var(--s-3); }
.booking .social-row a {
  display: inline-flex; align-items: center; justify-content: center; width: 48px; height: 48px;
  border: 1.5px solid rgba(251,244,241,0.4); border-radius: 50%; color: var(--cream);
  transition: background var(--t-fast) var(--ease), color var(--t-fast) var(--ease);
}
.booking .social-row a:hover { background: var(--rose); color: var(--plum); border-color: var(--rose); }
.booking .social-row svg { width: 20px; height: 20px; }

/* Contact form */
.contact-form { background: var(--cream); border-radius: var(--radius-lg); padding: clamp(1.5rem, 4vw, 2.4rem); box-shadow: var(--shadow-md); }
.contact-form h3 { margin: 0 0 0.4rem; }
.form-row { margin-bottom: var(--s-2); }
.form-row label { display: block; font-size: 0.78rem; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--plum); margin-bottom: 0.4rem; }
.form-row input, .form-row select, .form-row textarea {
  width: 100%; font: inherit; color: var(--plum); background: var(--paper);
  border: 1.5px solid var(--line); border-radius: 10px; padding: 0.8rem 1rem; min-height: 48px;
  transition: border-color var(--t-fast) var(--ease), box-shadow var(--t-fast) var(--ease);
}
.form-row textarea { min-height: 120px; resize: vertical; }
.form-row input:focus, .form-row select:focus, .form-row textarea:focus {
  outline: none; border-color: var(--rose-deep); box-shadow: 0 0 0 3px rgba(185,109,116,0.18);
}
.form-row.has-error input, .form-row.has-error select, .form-row.has-error textarea { border-color: var(--error); }
.field-error { display: none; color: var(--error); font-size: var(--fs-small); margin-top: 0.3rem; }
.form-row.has-error .field-error { display: block; }

/* Footer */
.site-footer { background: var(--plum); color: rgba(251,244,241,0.85); padding-block: var(--s-6) var(--s-3); }
.footer-inner { display: grid; gap: var(--s-3); text-align: center; }
.footer-inner .brand-name { font-family: var(--font-script); font-size: 2.2rem; color: var(--rose); font-weight: 700; }
.site-footer a { color: rgba(251,244,241,0.85); text-decoration: none; }
.site-footer a:hover { color: var(--rose); }
.footer-social { display: flex; gap: 0.7rem; justify-content: center; }
.footer-social a { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border: 1.5px solid rgba(251,244,241,0.3); border-radius: 50%; color: var(--cream); }
.footer-social a:hover { background: var(--rose); color: var(--plum); border-color: var(--rose); }
.footer-social svg { width: 18px; height: 18px; }
.footer-bottom { border-top: 1px solid rgba(251,244,241,0.18); padding-top: var(--s-3); margin-top: var(--s-3); font-size: var(--fs-small); }

/* Modal */
.modal-backdrop { position: fixed; inset: 0; z-index: 180; background: rgba(58,34,48,0.5); backdrop-filter: blur(3px); display: flex; align-items: center; justify-content: center; padding: var(--s-2); opacity: 0; visibility: hidden; transition: opacity var(--t-med) var(--ease), visibility var(--t-med) var(--ease); }
.modal-backdrop.is-open { opacity: 1; visibility: visible; }
.modal { background: var(--cream); border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); max-width: 440px; width: 100%; padding: clamp(1.6rem, 5vw, 2.4rem); text-align: center; transform: translateY(14px) scale(0.97); transition: transform var(--t-med) var(--ease); }
.modal-backdrop.is-open .modal { transform: none; }
.modal-icon { width: 60px; height: 60px; margin: 0 auto var(--s-2); border-radius: 50%; background: var(--rose); display: flex; align-items: center; justify-content: center; color: var(--plum); }
.modal-icon svg { width: 28px; height: 28px; }
.modal h3 { font-size: 1.4rem; }
.modal-actions { margin-top: var(--s-3); }

/* Toasts */
.toast-region { position: fixed; z-index: 190; bottom: var(--s-2); left: 50%; transform: translateX(-50%); display: flex; flex-direction: column; gap: 0.6rem; width: min(92vw, 400px); pointer-events: none; }
.toast { pointer-events: auto; background: var(--plum); color: var(--cream); border-radius: 12px; box-shadow: var(--shadow-lg); padding: 0.9rem 1.1rem; display: flex; gap: 0.8rem; align-items: center; font-size: 0.95rem; transform: translateY(16px); opacity: 0; transition: transform var(--t-med) var(--ease), opacity var(--t-med) var(--ease); }
.toast.is-visible { transform: none; opacity: 1; }
.toast--success { border-left: 5px solid var(--rose); }
.toast--error { border-left: 5px solid #E08A6F; }
.toast .toast-dismiss { margin-left: auto; background: none; border: 0; color: inherit; cursor: pointer; font-size: 1.1rem; line-height: 1; padding: 0.4rem; }

/* Reveal */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity 600ms var(--ease), transform 600ms var(--ease); transition-delay: var(--reveal-delay, 0ms); }
.reveal.is-visible { opacity: 1; transform: none; }
body.is-locked { overflow: hidden; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
  .reveal { opacity: 1; transform: none; }
}

/* Tablet */
@media (min-width: 641px) {
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .gallery-grid { grid-template-columns: repeat(3, 1fr); }
  .booking-grid { grid-template-columns: 1fr 1fr; align-items: start; }
  .footer-inner { gap: var(--s-3); }
}

/* Laptop+ */
@media (min-width: 1025px) {
  .site-header.is-hidden { transform: none; }
  .nav-toggle { display: none; }
  .primary-nav { display: flex; align-items: center; gap: clamp(1rem, 2vw, 2rem); }
  .primary-nav a:not(.btn) { font-family: var(--font-body); font-size: 0.82rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; text-decoration: none; color: var(--plum); position: relative; padding: 0.3rem 0; }
  .primary-nav a:not(.btn)::after { content: ""; position: absolute; left: 0; right: 100%; bottom: 0; height: 2px; background: var(--rose-deep); transition: right var(--t-med) var(--ease); }
  .primary-nav a:not(.btn):hover::after { right: 0; }
  .hero-inner { grid-template-columns: 1.05fr 0.95fr; gap: var(--s-5); }
  .services-grid { grid-template-columns: repeat(3, 1fr); }
  .gallery-grid { grid-template-columns: repeat(4, 1fr); }
}

@media (min-width: 1441px) { .container { max-width: 1280px; } }

/* Per-photo crop tuning */
.crop-low { object-position: center 10% !important; }
.crop-mid { object-position: center 10% !important; }

/* Credentials row */
.cred-row {
  list-style: none; padding: 0;
  margin: var(--s-4) auto var(--s-2);
  display: grid; gap: var(--s-2);
  grid-template-columns: 1fr;
  max-width: 720px;
}
.cred-row li {
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1rem 1.2rem; text-align: center;
}
.cred-row strong {
  font-family: var(--font-display); font-size: 1.3rem; display: block; color: var(--rose-deep);
}
.cred-row span { font-size: var(--fs-small); color: var(--plum-soft); }
@media (min-width: 641px) { .cred-row { grid-template-columns: repeat(3, 1fr); } }

/* Nails gallery: 2-up mobile, 4-up desktop */
.gallery-grid--nails { max-width: 1100px; margin-inline: auto; }
