/* ============================================================
   GlamNails Studio — luxury, soft pink / nude / gold
   Mobile-first. Bootstrap 5 + custom layer.
   ============================================================ */

:root {
  /* palette */
  --blush: #fbf4f5;        /* page background */
  --porcelain: #fffdfb;    /* card background */
  --nude: #f4ece5;         /* warm section background */
  --beige: #e9dccd;        /* borders, soft fills */
  --rose: #c98c98;         /* primary */
  --rose-dark: #a96b77;
  --rose-mist: #f3dfe3;    /* soft rose fill */
  --gold: #b08d57;
  --gold-soft: #d8c19c;
  --ink: #3f3338;
  --ink-soft: #8a787f;

  /* shape & motion */
  --radius: 1.4rem;
  --shadow-soft: 0 10px 34px rgba(169, 107, 119, .10);
  --shadow-hover: 0 18px 44px rgba(169, 107, 119, .20);
  --ease: cubic-bezier(.22, .61, .36, 1);
}

body {
  font-family: "Jost", system-ui, sans-serif;
  font-weight: 350;
  color: var(--ink);
  background: var(--blush);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, .navbar-brand, .brand-script, .display-serif {
  font-family: "Cormorant Garamond", "Playfair Display", serif;
}

a { color: var(--rose-dark); text-decoration: none; }
a:hover { color: var(--gold); }

::selection { background: var(--rose-mist); }

/* ------------------------------------------------------------
   Buttons
   ------------------------------------------------------------ */
.btn-rose, .btn-outline-rose, .btn-gold {
  border-radius: 999px;
  letter-spacing: .08em;
  text-transform: uppercase;
  font-size: .82rem;
  font-weight: 500;
  padding: .65rem 1.7rem;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease),
              background-color .25s, border-color .25s, color .25s;
}
.btn-rose {
  background: linear-gradient(135deg, var(--rose), var(--rose-dark));
  border: none;
  color: #fff;
}
.btn-rose:hover, .btn-rose:focus {
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 10px 26px rgba(169, 107, 119, .38);
}
.btn-rose:disabled { background: var(--rose); opacity: .65; transform: none; }
.btn-outline-rose {
  border: 1px solid var(--rose);
  color: var(--rose-dark);
  background: transparent;
}
.btn-outline-rose:hover { background: var(--rose-mist); color: var(--rose-dark); }
.btn-gold {
  border: 1px solid var(--gold-soft);
  color: var(--gold);
  background: transparent;
}
.btn-gold:hover {
  background: var(--gold);
  border-color: var(--gold);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 10px 26px rgba(176, 141, 87, .35);
}
.btn-sm.btn-rose, .btn-sm.btn-outline-rose, .btn-sm.btn-gold {
  padding: .4rem 1.1rem;
  font-size: .74rem;
}

/* ------------------------------------------------------------
   Navbar
   ------------------------------------------------------------ */
.salon-navbar {
  background: rgba(255, 253, 251, .9);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(233, 220, 205, .8);
  padding-block: .8rem;
}
.salon-navbar .navbar-brand {
  color: var(--ink);
  font-weight: 600;
  font-size: 1.45rem;
  letter-spacing: .02em;
}
.salon-navbar .navbar-brand .brand-mark { color: var(--rose); }
.salon-navbar .nav-link {
  color: var(--ink);
  font-size: .92rem;
  letter-spacing: .05em;
  position: relative;
}
.salon-navbar .nav-link::after {
  content: "";
  position: absolute;
  left: .5rem;
  right: .5rem;
  bottom: .25rem;
  height: 1px;
  background: var(--gold);
  transform: scaleX(0);
  transition: transform .25s var(--ease);
}
.salon-navbar .nav-link:hover::after,
.salon-navbar .nav-link.active::after { transform: scaleX(1); }
.salon-navbar .nav-link.active { color: var(--rose-dark); }
.navbar-toggler { border: none; }
.navbar-toggler:focus { box-shadow: none; }

/* ------------------------------------------------------------
   Type helpers
   ------------------------------------------------------------ */
.eyebrow {
  text-transform: uppercase;
  letter-spacing: .42em;
  font-size: .72rem;
  font-weight: 500;
  color: var(--gold);
}
.eyebrow::before, .eyebrow::after { content: "✦"; opacity: .7; margin-inline: .6em; font-size: .65rem; }
.section-title {
  font-size: clamp(2rem, 4.5vw, 2.9rem);
  font-weight: 600;
  line-height: 1.12;
}
.section-sub { color: var(--ink-soft); font-weight: 300; max-width: 560px; margin-inline: auto; }
.gold-rule {
  width: 56px;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  border: none;
  opacity: 1;
  margin: 1rem auto;
}

/* ------------------------------------------------------------
   Hero
   ------------------------------------------------------------ */
.hero {
  position: relative;
  min-height: 82vh;
  padding: 5rem 0 4rem;
  overflow: hidden;
  background: linear-gradient(165deg, var(--porcelain) 0%, var(--blush) 55%, var(--nude) 100%);
}
.hero::before, .hero::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  filter: blur(70px);
  pointer-events: none;
}
.hero::before {
  width: 420px; height: 420px;
  top: -120px; left: -120px;
  background: rgba(201, 140, 152, .25);
}
.hero::after {
  width: 380px; height: 380px;
  bottom: -140px; right: -100px;
  background: rgba(176, 141, 87, .18);
}
.hero .container { position: relative; z-index: 1; }
.hero-title {
  font-size: clamp(2.8rem, 8vw, 5rem);
  font-weight: 600;
  line-height: 1.05;
}
.hero-title em { color: var(--rose-dark); }
.hero-sub {
  max-width: 540px;
  font-size: 1.12rem;
  font-weight: 300;
  color: var(--ink-soft);
  margin-block: 1.4rem 2.2rem;
}
.hero-trust {
  display: flex;
  justify-content: center;
  gap: 1.8rem;
  flex-wrap: wrap;
  margin-top: 2.6rem;
  color: var(--ink-soft);
  font-size: .85rem;
  letter-spacing: .04em;
}
.hero-trust .stars { color: var(--gold); letter-spacing: .15em; }

/* ------------------------------------------------------------
   Cards (shared)
   ------------------------------------------------------------ */
.lux-card {
  border: 1px solid rgba(233, 220, 205, .9);
  border-radius: var(--radius);
  background: var(--porcelain);
  box-shadow: var(--shadow-soft);
}

/* services */
.service-card {
  transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s;
}
.service-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-hover);
  border-color: var(--gold-soft);
}
.service-icon {
  width: 72px; height: 72px;
  margin-inline: auto;
  display: grid;
  place-items: center;
  font-size: 1.9rem;
  border-radius: 50%;
  background: linear-gradient(145deg, var(--rose-mist), var(--nude));
  box-shadow: inset 0 0 0 1px rgba(216, 193, 156, .5);
}
.service-card h5 { font-size: 1.35rem; font-weight: 600; margin-top: 1rem; }
.service-divider {
  width: 34px; height: 1px;
  margin: .65rem auto;
  background: var(--gold-soft);
}
.service-price { color: var(--gold); font-weight: 500; letter-spacing: .06em; }

/* gallery */
.gallery-section { background: var(--nude); }
.gallery-tile {
  position: relative;
  aspect-ratio: 1 / 1;
  border-radius: var(--radius);
  display: grid;
  place-items: center;
  font-size: 2.7rem;
  overflow: hidden;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .55);
  transition: transform .35s var(--ease), box-shadow .35s var(--ease);
}
.gallery-tile:hover {
  transform: scale(1.04) rotate(-1deg);
  box-shadow: var(--shadow-hover), inset 0 0 0 2px var(--gold-soft);
}
.gallery-tile img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.tile-1 { background: linear-gradient(135deg, #f6ccd6, #e3a4b4); }
.tile-2 { background: linear-gradient(135deg, #f7e4d3, #ecc3a4); }
.tile-3 { background: linear-gradient(135deg, #e2d8f1, #c0aede); }
.tile-4 { background: linear-gradient(135deg, #f6e8cb, #e2cba0); }
.tile-5 { background: linear-gradient(135deg, #f3bcc8, #db93a6); }
.tile-6 { background: linear-gradient(135deg, #dcecea, #b3d3cf); }
.tile-7 { background: linear-gradient(135deg, #d6def4, #aebde7); }
.tile-8 { background: linear-gradient(135deg, #f8dde8, #ecb9d1); }

/* testimonials */
.testimonial-card { position: relative; padding-top: 2.6rem !important; }
.testimonial-card::before {
  content: "“";
  position: absolute;
  top: .4rem; left: 1.4rem;
  font-family: "Cormorant Garamond", serif;
  font-size: 3.4rem;
  line-height: 1;
  color: var(--gold-soft);
}
.testimonial-card p { font-weight: 300; }
.stars { color: var(--gold); letter-spacing: .25em; margin-bottom: .5rem; font-size: .85rem; }
.testimonial-author {
  display: flex;
  align-items: center;
  gap: .6rem;
  color: var(--rose-dark);
  font-weight: 500;
  margin-top: auto;
}
.avatar-initial {
  width: 38px; height: 38px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: linear-gradient(145deg, var(--rose-mist), var(--beige));
  color: var(--rose-dark);
  font-family: "Cormorant Garamond", serif;
  font-weight: 600;
  font-size: 1.05rem;
}

/* CTA band */
.cta-band {
  background:
    radial-gradient(ellipse at 75% 20%, rgba(243, 223, 227, .9), transparent 55%),
    radial-gradient(ellipse at 15% 90%, rgba(216, 193, 156, .35), transparent 50%),
    var(--porcelain);
  border-block: 1px solid var(--beige);
}

/* ------------------------------------------------------------
   Alerts & badges
   ------------------------------------------------------------ */
.alert {
  border: none;
  border-radius: 1rem;
  border-left: 3px solid var(--gold);
  box-shadow: var(--shadow-soft);
  font-size: .92rem;
}
.alert-success { background: #f1f7f1; color: #3e6147; border-left-color: #7fae8a; }
.alert-danger { background: #fbeff0; color: #8c4450; border-left-color: var(--rose); }
.alert-info, .alert-warning { background: var(--nude); color: var(--ink); }

.badge-booked, .badge-cancelled, .badge-completed {
  font-weight: 500;
  letter-spacing: .05em;
  border-radius: 999px;
  padding: .3em .85em;
  font-size: .68rem;
  text-transform: uppercase;
}
.badge-booked { background: #eaf4ec; color: #3e6147; }
.badge-cancelled { background: #f3eef0; color: var(--ink-soft); }
.badge-completed { background: #f6efe2; color: var(--gold); }

/* ------------------------------------------------------------
   Forms & auth
   ------------------------------------------------------------ */
.auth-section { min-height: 72vh; display: flex; align-items: center; }
.auth-card { padding: 2.4rem 1.6rem; }
@media (min-width: 576px) { .auth-card { padding: 3rem 2.8rem; } }

.form-label { font-size: .82rem; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-soft); }
.form-control, .form-select {
  border-radius: .9rem;
  border-color: var(--beige);
  background: var(--porcelain);
  padding: .7rem 1rem;
  font-weight: 350;
  transition: border-color .2s, box-shadow .2s;
}
.form-control:focus, .form-select:focus {
  border-color: var(--rose);
  box-shadow: 0 0 0 .22rem rgba(201, 140, 152, .15);
}
.form-text { color: var(--ink-soft); }

/* service radio cards (booking confirmation page) */
.service-options > div { display: flex; flex-direction: column; gap: .6rem; }
.service-options label {
  display: block;
  border: 1px solid var(--beige);
  border-radius: 1rem;
  background: var(--porcelain);
  padding: .8rem 1.1rem;
  cursor: pointer;
  user-select: none;
  transition: all .2s var(--ease);
}
.service-options input { position: absolute; opacity: 0; pointer-events: none; }
.service-options label:hover { border-color: var(--rose); }
.service-options label:has(input:checked) {
  border-color: var(--rose);
  background: var(--rose-mist);
  box-shadow: 0 0 0 .18rem rgba(201, 140, 152, .15);
}

/* weekday pill checkboxes (bulk slot form) */
.weekday-checks > div { display: flex; flex-wrap: wrap; gap: .5rem; }
.weekday-checks label {
  border: 1px solid var(--beige);
  border-radius: 999px;
  padding: .35rem 1rem;
  font-size: .85rem;
  cursor: pointer;
  user-select: none;
  background: var(--porcelain);
  transition: all .2s var(--ease);
}
.weekday-checks input { position: absolute; opacity: 0; pointer-events: none; }
.weekday-checks label:hover { border-color: var(--rose); }
.weekday-checks label:has(input:checked) {
  background: linear-gradient(135deg, var(--rose), var(--rose-dark));
  border-color: var(--rose-dark);
  color: #fff;
}

/* ------------------------------------------------------------
   Calendar page
   ------------------------------------------------------------ */
.legend-chip {
  display: inline-flex;
  align-items: center;
  gap: .45em;
  border: 1px solid var(--beige);
  border-radius: 999px;
  background: var(--porcelain);
  padding: .3rem .95rem;
  font-size: .8rem;
  color: var(--ink-soft);
}
.legend-dot { width: .65em; height: .65em; border-radius: 50%; display: inline-block; }
.dot-green { background: #2e9e6b; }
.dot-red { background: #d64550; }
.dot-gray { background: #9aa0a6; }

.calendar-card { position: relative; padding: 1rem; }
@media (min-width: 768px) { .calendar-card { padding: 1.8rem; } }

.calendar-loading {
  position: absolute;
  inset: 0;
  z-index: 5;
  display: grid;
  place-items: center;
  border-radius: var(--radius);
  background: rgba(255, 253, 251, .75);
  backdrop-filter: blur(2px);
}
.spinner-rose { color: var(--rose); }

#calendar { --fc-border-color: var(--nude); --fc-today-bg-color: rgba(243, 223, 227, .35); }
.fc .fc-toolbar-title { font-family: "Cormorant Garamond", serif; font-size: 1.45rem; font-weight: 600; }
.fc .fc-button {
  background: var(--porcelain);
  border: 1px solid var(--beige);
  color: var(--ink);
  border-radius: 999px;
  text-transform: capitalize;
  font-size: .82rem;
  padding: .35rem .9rem;
}
.fc .fc-button:hover { background: var(--rose-mist); border-color: var(--rose); color: var(--ink); }
.fc .fc-button-primary:not(:disabled).fc-button-active,
.fc .fc-button-primary:not(:disabled):active {
  background: var(--rose);
  border-color: var(--rose);
  color: #fff;
}
.fc .fc-button:focus, .fc .fc-button:focus-visible { box-shadow: 0 0 0 .2rem rgba(201, 140, 152, .25) !important; }
.fc .fc-button:disabled { background: var(--nude); border-color: var(--beige); color: var(--ink-soft); }
.fc-event { border: none; cursor: pointer; font-size: .76rem; border-radius: .45rem; padding: 1px 3px; }
.fc-event[title="Blocked"], .fc-event:not(.bookable) { cursor: default; }
.fc .fc-col-header-cell-cushion { color: var(--ink-soft); font-weight: 500; font-size: .8rem; }
.fc .fc-timegrid-slot-label-cushion { color: var(--ink-soft); font-size: .75rem; }

/* ------------------------------------------------------------
   Modal
   ------------------------------------------------------------ */
.modal-content {
  border: 1px solid var(--beige);
  border-radius: var(--radius);
  background: var(--porcelain);
  box-shadow: var(--shadow-hover);
}
.modal-title { font-weight: 600; }
.booking-summary {
  background: var(--nude);
  border-radius: 1rem;
  padding: .9rem 1.1rem;
  font-size: .95rem;
}
.confirm-check {
  width: 74px; height: 74px;
  margin-inline: auto;
  display: grid;
  place-items: center;
  font-size: 2rem;
  color: #fff;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--rose), var(--gold));
  box-shadow: 0 12px 30px rgba(169, 107, 119, .35);
}

/* ------------------------------------------------------------
   My bookings / profile
   ------------------------------------------------------------ */
.profile-card { display: flex; align-items: center; gap: 1.1rem; padding: 1.4rem 1.6rem; }
.profile-avatar {
  width: 64px; height: 64px;
  flex-shrink: 0;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-family: "Cormorant Garamond", serif;
  font-size: 1.7rem;
  font-weight: 600;
  color: var(--rose-dark);
  background: linear-gradient(145deg, var(--rose-mist), var(--beige));
  box-shadow: inset 0 0 0 2px rgba(216, 193, 156, .6);
}
.profile-meta { color: var(--ink-soft); font-size: .88rem; }

.booking-row { transition: transform .25s var(--ease), box-shadow .25s var(--ease); }
.booking-row:hover { transform: translateY(-2px); box-shadow: var(--shadow-hover); }
.booking-date { font-weight: 500; font-size: 1.02rem; }
.booking-meta { color: var(--ink-soft); font-size: .88rem; }

.empty-state { padding: 4rem 1rem; }
.empty-state .empty-icon {
  width: 86px; height: 86px;
  margin: 0 auto 1.2rem;
  display: grid;
  place-items: center;
  font-size: 2.3rem;
  border-radius: 50%;
  background: linear-gradient(145deg, var(--rose-mist), var(--nude));
}

/* ------------------------------------------------------------
   Salon admin panel
   ------------------------------------------------------------ */
.panel-tab {
  display: inline-block;
  border: 1px solid var(--beige);
  border-radius: 999px;
  background: var(--porcelain);
  color: var(--ink-soft);
  padding: .35rem 1.1rem;
  font-size: .82rem;
  letter-spacing: .05em;
  transition: all .2s var(--ease);
}
.panel-tab:hover { border-color: var(--rose); color: var(--rose-dark); }
.panel-tab.active {
  background: linear-gradient(135deg, var(--rose), var(--rose-dark));
  border-color: var(--rose-dark);
  color: #fff;
}

.stat-card { transition: transform .25s var(--ease), box-shadow .25s var(--ease); }
.stat-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-hover); }
.stat-number {
  font-family: "Cormorant Garamond", serif;
  font-size: 2.6rem;
  font-weight: 600;
  line-height: 1.1;
  color: var(--rose-dark);
}
.stat-label {
  text-transform: uppercase;
  letter-spacing: .14em;
  font-size: .7rem;
  color: var(--ink-soft);
}

.panel-table { font-size: .92rem; }
.panel-table thead th {
  text-transform: uppercase;
  letter-spacing: .12em;
  font-size: .68rem;
  font-weight: 500;
  color: var(--ink-soft);
  border-bottom: 1px solid var(--beige);
  background: transparent;
}
.panel-table td { border-color: var(--nude); }
.panel-table tbody tr:last-child td { border-bottom: none; }
.panel-table tbody tr { transition: background .15s; }
.panel-table tbody tr:hover { background: rgba(243, 223, 227, .25); }

.badge-danger-soft {
  background: #fbeff0;
  color: #b04855;
  font-weight: 500;
  letter-spacing: .05em;
  border-radius: 999px;
  padding: .3em .85em;
  font-size: .68rem;
  text-transform: uppercase;
}

/* ------------------------------------------------------------
   Footer
   ------------------------------------------------------------ */
.salon-footer {
  background: var(--ink);
  color: #d9ccd1;
  margin-top: 4rem;
  font-size: .9rem;
  font-weight: 300;
}
.salon-footer h6 {
  color: var(--gold-soft);
  letter-spacing: .25em;
  text-transform: uppercase;
  font-size: .72rem;
  font-family: "Jost", sans-serif;
  margin-bottom: 1rem;
}
.salon-footer a { color: #d9ccd1; }
.salon-footer a:hover { color: var(--gold-soft); }
.brand-script { font-size: 1.6rem; font-style: italic; color: #f3e7ea; }
.footer-bottom {
  border-top: 1px solid rgba(216, 193, 156, .2);
  font-size: .78rem;
  color: #a8979e;
}

/* ------------------------------------------------------------
   Misc
   ------------------------------------------------------------ */
section { scroll-margin-top: 5rem; }
@media (max-width: 767px) {
  .hero { min-height: 68vh; padding-top: 3.5rem; }
  .fc .fc-toolbar { flex-direction: column; gap: .6rem; }
  .profile-card { flex-direction: column; text-align: center; }
}
